From 49820b6a636f2a2244e24ab0869b1fd8daee9ffa Mon Sep 17 00:00:00 2001 From: LKuemmel Date: Fri, 1 Aug 2025 14:17:11 +0200 Subject: [PATCH 1/9] build UI --- ...ChargeLog-0bc5a230.js => ChargeLog-5f1564ba.js} | 2 +- ...8e1d.js => ChargePointInstallation-9345f83e.js} | 2 +- .../{Chart-526b0a77.js => Chart-56d76d74.js} | 2 +- ...dConfig-17419a85.js => CloudConfig-592841ed.js} | 2 +- ...ment-93d69162.js => DataManagement-3531e291.js} | 2 +- ...gConfig-2807847f.js => DebugConfig-3be918cd.js} | 2 +- ...866a1615.js => GeneralChargeConfig-28e21ec2.js} | 2 +- ...onfig-a1e6f160.js => GeneralConfig-3d94b7eb.js} | 2 +- .../assets/HardwareInstallation-0c77715a.js | 1 + .../assets/HardwareInstallation-b7e2b58c.js | 1 - web/settings/assets/InstallAssistant-928c3063.js | 1 + web/settings/assets/InstallAssistant-ed1cd3a8.js | 1 - ...395106.js => InstallAssistantStep0-05f2a947.js} | 2 +- ...5ec826.js => InstallAssistantStep1-eae371cf.js} | 2 +- ...050c9.js => InstallAssistantStep10-f190b3e4.js} | 2 +- ...5f7c72.js => InstallAssistantStep2-007a2666.js} | 2 +- ...61dfb6.js => InstallAssistantStep3-62488b7c.js} | 2 +- ...a97cf8.js => InstallAssistantStep4-06ee63b5.js} | 2 +- ...9d3e6e.js => InstallAssistantStep5-e6bd1410.js} | 2 +- ...201b09.js => InstallAssistantStep6-8a3f6b5b.js} | 2 +- ...bf3e73.js => InstallAssistantStep7-42b4a6af.js} | 2 +- ...eebc60.js => InstallAssistantStep8-b00d87de.js} | 2 +- ...e25bb0.js => InstallAssistantStep9-e3c563a2.js} | 2 +- ...js => InstallAssistantStepTemplate-71d42fdc.js} | 2 +- .../{IoConfig-3eeecf97.js => IoConfig-1ffa1790.js} | 2 +- ...tings-bad44d1c.js => LegalSettings-fa1fe7ea.js} | 2 +- ...13bc596.js => LoadManagementConfig-adf5f944.js} | 2 +- ...ig-d0b5bf80.js => MqttBridgeConfig-dcc167ed.js} | 2 +- ...ern-86c2d923.js => OpenwbIoPattern-43abb292.js} | 2 +- ...df64f6.js => OpenwbIoSinglePattern-2e542bd1.js} | 2 +- ...-2a6a01cb.js => OpenwbSortableList-e9396362.js} | 2 +- ...-7d7b65c9.js => OptionalComponents-1d822d98.js} | 2 +- ...nfig-aa930462.js => PVChargeConfig-9086cd97.js} | 2 +- .../{Status-9fd32ca3.js => Status-0bb03b2e.js} | 2 +- .../{Support-bbe6a404.js => Support-76a3c998.js} | 2 +- .../{System-47d1c8ae.js => System-186920b0.js} | 2 +- ...gStore-955b09f5.js => TestingStore-ae29e04b.js} | 2 +- web/settings/assets/VehicleConfig-28b52371.js | 1 - web/settings/assets/VehicleConfig-44d8bbb2.js | 1 + ...t-c0918982.js => VehicleIdWikiHint-714fb4c5.js} | 2 +- ..._cloud-eb857b29.js => backup_cloud-0ad9d8c7.js} | 2 +- ..._cloud-5a239921.js => backup_cloud-5bddc3c8.js} | 2 +- ..._cloud-ff9029f2.js => backup_cloud-86207a2a.js} | 2 +- ..._cloud-464f53c3.js => backup_cloud-f0c12d69.js} | 2 +- .../assets/{bat-930b195f.js => bat-075b7870.js} | 2 +- .../assets/{bat-dbd31d7f.js => bat-08ccd434.js} | 2 +- .../assets/{bat-e91cb1d1.js => bat-18b93404.js} | 2 +- .../assets/{bat-49fe7df0.js => bat-1b4b9f24.js} | 2 +- .../assets/{bat-493fcb15.js => bat-211344ee.js} | 2 +- .../assets/{bat-db1242e4.js => bat-45b65bea.js} | 2 +- .../assets/{bat-efbd5e7a.js => bat-48f193a8.js} | 2 +- .../assets/{bat-94a28e10.js => bat-64f6b92b.js} | 2 +- .../assets/{bat-5cd17a97.js => bat-77274805.js} | 2 +- .../assets/{bat-21979bf2.js => bat-8d51e9b6.js} | 2 +- .../assets/{bat-1e0787a5.js => bat-9dc30682.js} | 2 +- .../assets/{bat-2665a943.js => bat-a3d4e3ba.js} | 2 +- .../assets/{bat-4367cd57.js => bat-b745477e.js} | 2 +- .../assets/{bat-63af7049.js => bat-b8c5cdb6.js} | 2 +- .../assets/{bat-b9b77e59.js => bat-ba82b782.js} | 2 +- .../assets/{bat-bb99028b.js => bat-babd59c5.js} | 2 +- .../assets/{bat-fd0a6337.js => bat-c7c848f1.js} | 2 +- .../assets/{bat-e10ba718.js => bat-c7ee6179.js} | 2 +- .../assets/{bat-7e834da4.js => bat-d7cfe363.js} | 2 +- .../assets/{bat-f3043e62.js => bat-ecf94da0.js} | 2 +- .../assets/{bat-6cf37408.js => bat-f53788cb.js} | 2 +- .../assets/{bat-525c8cbc.js => bat-fb56e76d.js} | 2 +- ...gy-ffd4b2a9.js => bat_smart_energy-e0c5fbbd.js} | 2 +- ...gePoint-55721b75.js => chargePoint-3b38c504.js} | 2 +- ...gePoint-a66b50b5.js => chargePoint-3d7477d0.js} | 2 +- ...gePoint-805d37db.js => chargePoint-86b1ed88.js} | 2 +- ...gePoint-44826d13.js => chargePoint-97a91d23.js} | 2 +- ...gePoint-01a68860.js => chargePoint-a5a3af6a.js} | 2 +- ...gePoint-c9890423.js => chargePoint-d21fff2e.js} | 2 +- ...gePoint-bca3f365.js => chargePoint-d78b5b66.js} | 2 +- .../{commands-0f7aef64.js => commands-2be8d876.js} | 2 +- .../{commands-a50295e0.js => commands-4c824edc.js} | 2 +- ...2e31a35f.js => consumption_counter-3aa8670b.js} | 2 +- .../{counter-4492ff33.js => counter-059aac54.js} | 2 +- .../{counter-a748557e.js => counter-0d81c4e8.js} | 2 +- .../{counter-80fa230d.js => counter-14bdbbf1.js} | 2 +- .../{counter-a241b59e.js => counter-2a9f653b.js} | 2 +- .../{counter-530a38a8.js => counter-328892f7.js} | 2 +- .../{counter-db80b3b7.js => counter-359a5c4f.js} | 2 +- .../{counter-ba55eb76.js => counter-39d4af34.js} | 2 +- .../{counter-511bff85.js => counter-3ba24356.js} | 2 +- .../{counter-38b5b751.js => counter-4644e6cb.js} | 2 +- .../{counter-c1e3dac6.js => counter-4e6d9499.js} | 2 +- .../{counter-f2f0c6a5.js => counter-5661736f.js} | 2 +- .../{counter-3e31d9a4.js => counter-566a9e91.js} | 2 +- .../{counter-91b63bf3.js => counter-58f8613e.js} | 2 +- .../{counter-9aae6b3e.js => counter-5fe4c9c7.js} | 2 +- .../{counter-4bd255f1.js => counter-696bc2b5.js} | 2 +- .../{counter-9cae3702.js => counter-6c205795.js} | 2 +- .../{counter-7c0a1b4c.js => counter-6f4588d4.js} | 2 +- .../{counter-af1ad647.js => counter-84b3047d.js} | 2 +- .../{counter-484db2f2.js => counter-8a64260e.js} | 2 +- .../{counter-b7508d1c.js => counter-8f9e07d5.js} | 2 +- .../{counter-858527e9.js => counter-9413118e.js} | 2 +- .../{counter-c9fa17a6.js => counter-94cb1f63.js} | 2 +- .../{counter-71c817be.js => counter-9cc7434e.js} | 2 +- .../{counter-f53a55cd.js => counter-aa714b1f.js} | 2 +- .../{counter-510c4bff.js => counter-ad9cf578.js} | 2 +- .../{counter-1951067e.js => counter-b94bfe2c.js} | 2 +- .../{counter-d7979450.js => counter-ccc4227f.js} | 2 +- .../{counter-69ac9fe8.js => counter-e054b606.js} | 2 +- .../{counter-5505722d.js => counter-e68e3c33.js} | 2 +- .../{counter-cae900f7.js => counter-e9030149.js} | 2 +- .../{counter-0b772c20.js => counter-efe3ec69.js} | 2 +- .../{counter-40c49fbb.js => counter-f13a85ea.js} | 2 +- .../{counter-4321da14.js => counter-f910d11a.js} | 2 +- .../{counter-686e6911.js => counter-f990ab02.js} | 2 +- .../{counter-351902ed.js => counter-f9f8b4aa.js} | 2 +- ...cf52aa82.js => counter_consumption-14cd8b87.js} | 2 +- ...unter_sm-d1b8f654.js => counter_sm-09ba7690.js} | 2 +- .../{device-465f5d76.js => device-012d3b5a.js} | 2 +- .../{device-12a7dbac.js => device-019ef76a.js} | 2 +- .../{device-126f751b.js => device-075d9674.js} | 2 +- .../{device-18442843.js => device-0812a0b7.js} | 2 +- .../{device-f42f3b17.js => device-083b322d.js} | 2 +- .../{device-29966a32.js => device-0a610e9f.js} | 2 +- .../{device-e96fb3a1.js => device-0b615e92.js} | 2 +- .../{device-8e1ca3b6.js => device-0bbde04c.js} | 2 +- .../{device-722e0495.js => device-1734f335.js} | 2 +- .../{device-aa40f40e.js => device-18f04763.js} | 2 +- .../{device-5f077938.js => device-2060009a.js} | 2 +- .../{device-df9a450a.js => device-209d430b.js} | 2 +- .../{device-4bc532b0.js => device-2c5bfecf.js} | 2 +- .../{device-8677c7f9.js => device-2e6ed3d2.js} | 2 +- .../{device-0e3564cf.js => device-317fa85d.js} | 2 +- .../{device-1041d4f9.js => device-345bd775.js} | 2 +- .../{device-64d52b78.js => device-39b20fb3.js} | 2 +- .../{device-87950857.js => device-3af8cb6b.js} | 2 +- .../{device-53ae7640.js => device-3bfb9718.js} | 2 +- .../{device-72eb4453.js => device-3c6a1975.js} | 2 +- .../{device-54bd57ba.js => device-3cefb251.js} | 2 +- .../{device-68afe813.js => device-3da862be.js} | 2 +- .../{device-079f5cdc.js => device-434acb81.js} | 2 +- .../{device-afea5820.js => device-44a9fe5b.js} | 2 +- .../{device-5d2a3e3a.js => device-4687580a.js} | 2 +- .../{device-23d9f519.js => device-47e158c3.js} | 2 +- .../{device-214978b0.js => device-4a7dd16d.js} | 2 +- .../{device-b860ea67.js => device-4bc72e48.js} | 2 +- .../{device-e2624d17.js => device-545b2256.js} | 2 +- .../{device-8c48e19c.js => device-547c5594.js} | 2 +- .../{device-c4b87c43.js => device-57fdb288.js} | 2 +- .../{device-70c29a17.js => device-5d61b244.js} | 2 +- .../{device-01cc831a.js => device-652a9744.js} | 2 +- .../{device-383e08a5.js => device-6c191cc5.js} | 2 +- .../{device-a07b3e3d.js => device-6fbd7b85.js} | 2 +- .../{device-65767a9c.js => device-70078db6.js} | 2 +- .../{device-3dfd4984.js => device-71bc1bb6.js} | 2 +- .../{device-04c35d6b.js => device-76063706.js} | 2 +- .../{device-a75bb0fd.js => device-774e33ff.js} | 2 +- .../{device-69d484dc.js => device-7bafcf0f.js} | 2 +- .../{device-41905c43.js => device-7d5ffda7.js} | 2 +- .../{device-b9725af4.js => device-81740119.js} | 2 +- .../{device-225f64e5.js => device-8a76503c.js} | 2 +- .../{device-f3564d79.js => device-90b99ba4.js} | 2 +- .../{device-b119076e.js => device-9732226b.js} | 2 +- .../{device-5aa89219.js => device-97db254f.js} | 2 +- .../{device-5cd242bf.js => device-9e5971cf.js} | 2 +- .../{device-32b32d79.js => device-a362181c.js} | 2 +- .../{device-43ea3db6.js => device-a8208384.js} | 2 +- .../{device-4cc9719a.js => device-aa0fb6fb.js} | 2 +- .../{device-9b32a0e5.js => device-ae133671.js} | 2 +- .../{device-8a02bf9e.js => device-b0fef6f7.js} | 2 +- .../{device-53266948.js => device-b89dcacb.js} | 2 +- .../{device-c5d84904.js => device-bba50fe5.js} | 2 +- .../{device-6d6283ca.js => device-c9250c5b.js} | 2 +- .../{device-ef0c1ebd.js => device-c9b784c2.js} | 2 +- .../{device-e3d4ebdd.js => device-cea58e31.js} | 2 +- .../{device-429bda33.js => device-d28a42a6.js} | 2 +- .../{device-dd870d85.js => device-d801ab50.js} | 2 +- .../{device-779403a1.js => device-dbd0d29c.js} | 2 +- .../{device-42a91b6b.js => device-dc230eb0.js} | 2 +- .../{device-94881378.js => device-dd17995b.js} | 2 +- .../{device-4216efb1.js => device-dd5cb4eb.js} | 2 +- .../{device-de7086f5.js => device-de940d29.js} | 2 +- .../{device-60803ee4.js => device-e061c3ce.js} | 2 +- .../{device-3ffc8ac2.js => device-e1e97349.js} | 2 +- .../{device-32daf8c4.js => device-e2b6e352.js} | 2 +- .../{device-bb4ff5b1.js => device-e3414ea3.js} | 2 +- .../{device-ec276f96.js => device-eb24efb6.js} | 2 +- .../{device-79c9c89c.js => device-ed18848c.js} | 2 +- .../{device-e210f928.js => device-ee7b1351.js} | 2 +- .../{device-16e005d5.js => device-f3ea5347.js} | 2 +- ...yTheme-2283c696.js => displayTheme-9b47aca9.js} | 2 +- ...yTheme-14df5dae.js => displayTheme-c1cc8f13.js} | 2 +- ...-858ebc25.js => electricity_tariff-192d8c6f.js} | 2 +- ...-02377493.js => electricity_tariff-30cdacc8.js} | 2 +- ...-9eb316f1.js => electricity_tariff-46183402.js} | 2 +- ...-09587c2e.js => electricity_tariff-54f66a4e.js} | 2 +- ...-e3583a43.js => electricity_tariff-56f9a905.js} | 2 +- ...-48b3c8b7.js => electricity_tariff-7adf718b.js} | 2 +- ...-c8b9c23c.js => electricity_tariff-e06fa542.js} | 2 +- ...-9da2adde.js => electricity_tariff-f82826f0.js} | 2 +- ...r-f3d046db.js => external_inverter-ac3fe3d1.js} | 2 +- .../{index-93388667.js => index-eccf5556.js} | 2 +- web/settings/assets/inverter-0e60b688.js | 1 + .../{inverter-da7b4d6d.js => inverter-14d8ff03.js} | 2 +- .../{inverter-da89e3ac.js => inverter-21f4f499.js} | 2 +- .../{inverter-7c045e1d.js => inverter-23a0795f.js} | 2 +- web/settings/assets/inverter-2464c133.js | 1 - .../{inverter-8261fbcd.js => inverter-273c4d09.js} | 2 +- .../{inverter-0eab0f03.js => inverter-39424733.js} | 2 +- .../{inverter-3c1b86b2.js => inverter-3ba58e65.js} | 2 +- .../{inverter-3a09fafa.js => inverter-3f8066c8.js} | 2 +- .../{inverter-280fc766.js => inverter-3ff240fb.js} | 2 +- .../{inverter-1475e049.js => inverter-426faebc.js} | 2 +- .../{inverter-fcb44e16.js => inverter-43948e1d.js} | 2 +- .../{inverter-517a33e3.js => inverter-4a6155cb.js} | 2 +- .../{inverter-09d7efba.js => inverter-4b8c7e35.js} | 2 +- .../{inverter-242f8f6b.js => inverter-4f480ee7.js} | 2 +- web/settings/assets/inverter-55951246.js | 1 - .../{inverter-7fe24049.js => inverter-59d7cfeb.js} | 2 +- .../{inverter-d02dc296.js => inverter-5cf4002d.js} | 2 +- web/settings/assets/inverter-77029227.js | 1 + .../{inverter-4272ff71.js => inverter-7a8ba133.js} | 2 +- .../{inverter-3abb1a19.js => inverter-82a5e024.js} | 2 +- .../{inverter-8c76c5fa.js => inverter-9cc82d3a.js} | 2 +- .../{inverter-538f8b90.js => inverter-9f809b2f.js} | 2 +- .../{inverter-d9c54d22.js => inverter-a72dbeb0.js} | 2 +- .../{inverter-7354c663.js => inverter-aadeffcc.js} | 2 +- .../{inverter-cd891c2c.js => inverter-aaf5cc74.js} | 2 +- .../{inverter-6170a78d.js => inverter-b18457fa.js} | 2 +- .../{inverter-269cffec.js => inverter-c4d4cb47.js} | 2 +- .../{inverter-b2aa2f88.js => inverter-dda60d18.js} | 2 +- .../{inverter-db8b8e38.js => inverter-df87aae6.js} | 2 +- .../{inverter-c7f31b65.js => inverter-f1e6b12e.js} | 2 +- .../{inverter-f0642b5c.js => inverter-f6b68618.js} | 2 +- .../{inverter-3f6e0a86.js => inverter-f704eca9.js} | 2 +- ...-a6696fc6.js => inverter_secondary-9852ff67.js} | 2 +- ...io_action-511c0cd7.js => io_action-25f5451d.js} | 2 +- ...io_action-d714df0c.js => io_action-33369fcf.js} | 2 +- ...io_action-7060fe71.js => io_action-4c5b44eb.js} | 2 +- ...io_action-3df13474.js => io_action-8d0f9f11.js} | 2 +- ...io_device-1b22f974.js => io_device-6526992b.js} | 2 +- ...io_device-850aa661.js => io_device-f28df559.js} | 2 +- ...nitoring-5f234ebf.js => monitoring-cec4113b.js} | 2 +- .../{vehicle-e6540d4c.js => vehicle-02aaf130.js} | 2 +- .../{vehicle-96da0410.js => vehicle-07456498.js} | 2 +- .../{vehicle-f8c7286d.js => vehicle-0d5a824a.js} | 2 +- .../{vehicle-b61bf4e9.js => vehicle-10e7f333.js} | 2 +- .../{vehicle-d4a0797c.js => vehicle-1814a218.js} | 2 +- .../{vehicle-168e43cd.js => vehicle-3527acb4.js} | 2 +- .../{vehicle-a8c00d63.js => vehicle-355260c2.js} | 2 +- .../{vehicle-f0f2cea1.js => vehicle-42b70938.js} | 2 +- .../{vehicle-3b91fe46.js => vehicle-4c896303.js} | 2 +- .../{vehicle-1ca5962d.js => vehicle-57410994.js} | 2 +- .../{vehicle-d2af01a7.js => vehicle-8e08c50a.js} | 2 +- .../{vehicle-ceb6622c.js => vehicle-94d80e22.js} | 2 +- .../{vehicle-85376722.js => vehicle-c53d1445.js} | 2 +- .../{vehicle-4d40b28f.js => vehicle-cb7088f9.js} | 2 +- .../{vehicle-ba6a1f31.js => vehicle-cb9a9cb5.js} | 2 +- .../{vehicle-cee2dd5b.js => vehicle-d568544e.js} | 2 +- .../{vehicle-982d80e7.js => vehicle-d6bf9d86.js} | 2 +- .../{vehicle-5e681017.js => vehicle-d87c0cc9.js} | 2 +- .../{vehicle-3e73bf6e.js => vehicle-d91cf08c.js} | 2 +- .../{vehicle-a0cbd4bf.js => vehicle-e8e57114.js} | 2 +- .../{vehicle-075e67ef.js => vehicle-f2cedad6.js} | 2 +- .../{vendor-25d394b4.js => vendor-57e3a63c.js} | 10 +++++----- ...-axios-ac33d60c.js => vendor-axios-89a9dc60.js} | 2 +- ...ap-374cd88e.js => vendor-bootstrap-6fb47dbc.js} | 2 +- ...rtjs-94a826eb.js => vendor-chartjs-b3bc0878.js} | 2 +- ...-66071a0e.js => vendor-fortawesome-d6ee0a65.js} | 2 +- ...query-3364d39b.js => vendor-jquery-92d6c4db.js} | 2 +- ...s-0eb84ec8.js => vendor-sortablejs-63b3e6e3.js} | 2 +- .../{webTheme-c3f02b77.js => webTheme-45ca7ce6.js} | 2 +- .../{webTheme-27077fcd.js => webTheme-eb62fae2.js} | 2 +- web/settings/index.html | 14 +++++++------- 270 files changed, 275 insertions(+), 275 deletions(-) rename web/settings/assets/{ChargeLog-0bc5a230.js => ChargeLog-5f1564ba.js} (97%) rename web/settings/assets/{ChargePointInstallation-34ff8e1d.js => ChargePointInstallation-9345f83e.js} (87%) rename web/settings/assets/{Chart-526b0a77.js => Chart-56d76d74.js} (98%) rename web/settings/assets/{CloudConfig-17419a85.js => CloudConfig-592841ed.js} (96%) rename web/settings/assets/{DataManagement-93d69162.js => DataManagement-3531e291.js} (92%) rename web/settings/assets/{DebugConfig-2807847f.js => DebugConfig-3be918cd.js} (95%) rename web/settings/assets/{GeneralChargeConfig-866a1615.js => GeneralChargeConfig-28e21ec2.js} (83%) rename web/settings/assets/{GeneralConfig-a1e6f160.js => GeneralConfig-3d94b7eb.js} (95%) create mode 100644 web/settings/assets/HardwareInstallation-0c77715a.js delete mode 100644 web/settings/assets/HardwareInstallation-b7e2b58c.js create mode 100644 web/settings/assets/InstallAssistant-928c3063.js delete mode 100644 web/settings/assets/InstallAssistant-ed1cd3a8.js rename web/settings/assets/{InstallAssistantStep0-6b395106.js => InstallAssistantStep0-05f2a947.js} (85%) rename web/settings/assets/{InstallAssistantStep1-a75ec826.js => InstallAssistantStep1-eae371cf.js} (75%) rename web/settings/assets/{InstallAssistantStep10-69c050c9.js => InstallAssistantStep10-f190b3e4.js} (75%) rename web/settings/assets/{InstallAssistantStep2-e75f7c72.js => InstallAssistantStep2-007a2666.js} (82%) rename web/settings/assets/{InstallAssistantStep3-2e61dfb6.js => InstallAssistantStep3-62488b7c.js} (84%) rename web/settings/assets/{InstallAssistantStep4-63a97cf8.js => InstallAssistantStep4-06ee63b5.js} (83%) rename web/settings/assets/{InstallAssistantStep5-139d3e6e.js => InstallAssistantStep5-e6bd1410.js} (84%) rename web/settings/assets/{InstallAssistantStep6-05201b09.js => InstallAssistantStep6-8a3f6b5b.js} (86%) rename web/settings/assets/{InstallAssistantStep7-9bbf3e73.js => InstallAssistantStep7-42b4a6af.js} (83%) rename web/settings/assets/{InstallAssistantStep8-c4eebc60.js => InstallAssistantStep8-b00d87de.js} (82%) rename web/settings/assets/{InstallAssistantStep9-63e25bb0.js => InstallAssistantStep9-e3c563a2.js} (80%) rename web/settings/assets/{InstallAssistantStepTemplate-2f5f6eeb.js => InstallAssistantStepTemplate-71d42fdc.js} (87%) rename web/settings/assets/{IoConfig-3eeecf97.js => IoConfig-1ffa1790.js} (84%) rename web/settings/assets/{LegalSettings-bad44d1c.js => LegalSettings-fa1fe7ea.js} (89%) rename web/settings/assets/{LoadManagementConfig-913bc596.js => LoadManagementConfig-adf5f944.js} (96%) rename web/settings/assets/{MqttBridgeConfig-d0b5bf80.js => MqttBridgeConfig-dcc167ed.js} (96%) rename web/settings/assets/{OpenwbIoPattern-86c2d923.js => OpenwbIoPattern-43abb292.js} (98%) rename web/settings/assets/{OpenwbIoSinglePattern-14df64f6.js => OpenwbIoSinglePattern-2e542bd1.js} (97%) rename web/settings/assets/{OpenwbSortableList-2a6a01cb.js => OpenwbSortableList-e9396362.js} (92%) rename web/settings/assets/{OptionalComponents-7d7b65c9.js => OptionalComponents-1d822d98.js} (91%) rename web/settings/assets/{PVChargeConfig-aa930462.js => PVChargeConfig-9086cd97.js} (98%) rename web/settings/assets/{Status-9fd32ca3.js => Status-0bb03b2e.js} (99%) rename web/settings/assets/{Support-bbe6a404.js => Support-76a3c998.js} (95%) rename web/settings/assets/{System-47d1c8ae.js => System-186920b0.js} (98%) rename web/settings/assets/{TestingStore-955b09f5.js => TestingStore-ae29e04b.js} (96%) delete mode 100644 web/settings/assets/VehicleConfig-28b52371.js create mode 100644 web/settings/assets/VehicleConfig-44d8bbb2.js rename web/settings/assets/{VehicleIdWikiHint-c0918982.js => VehicleIdWikiHint-714fb4c5.js} (88%) rename web/settings/assets/{backup_cloud-eb857b29.js => backup_cloud-0ad9d8c7.js} (81%) rename web/settings/assets/{backup_cloud-5a239921.js => backup_cloud-5bddc3c8.js} (69%) rename web/settings/assets/{backup_cloud-ff9029f2.js => backup_cloud-86207a2a.js} (76%) rename web/settings/assets/{backup_cloud-464f53c3.js => backup_cloud-f0c12d69.js} (89%) rename web/settings/assets/{bat-930b195f.js => bat-075b7870.js} (94%) rename web/settings/assets/{bat-dbd31d7f.js => bat-08ccd434.js} (63%) rename web/settings/assets/{bat-e91cb1d1.js => bat-18b93404.js} (66%) rename web/settings/assets/{bat-49fe7df0.js => bat-1b4b9f24.js} (63%) rename web/settings/assets/{bat-493fcb15.js => bat-211344ee.js} (67%) rename web/settings/assets/{bat-db1242e4.js => bat-45b65bea.js} (64%) rename web/settings/assets/{bat-efbd5e7a.js => bat-48f193a8.js} (63%) rename web/settings/assets/{bat-94a28e10.js => bat-64f6b92b.js} (63%) rename web/settings/assets/{bat-5cd17a97.js => bat-77274805.js} (63%) rename web/settings/assets/{bat-21979bf2.js => bat-8d51e9b6.js} (72%) rename web/settings/assets/{bat-1e0787a5.js => bat-9dc30682.js} (69%) rename web/settings/assets/{bat-2665a943.js => bat-a3d4e3ba.js} (64%) rename web/settings/assets/{bat-4367cd57.js => bat-b745477e.js} (63%) rename web/settings/assets/{bat-63af7049.js => bat-b8c5cdb6.js} (67%) rename web/settings/assets/{bat-b9b77e59.js => bat-ba82b782.js} (73%) rename web/settings/assets/{bat-bb99028b.js => bat-babd59c5.js} (67%) rename web/settings/assets/{bat-fd0a6337.js => bat-c7c848f1.js} (68%) rename web/settings/assets/{bat-e10ba718.js => bat-c7ee6179.js} (73%) rename web/settings/assets/{bat-7e834da4.js => bat-d7cfe363.js} (93%) rename web/settings/assets/{bat-f3043e62.js => bat-ecf94da0.js} (65%) rename web/settings/assets/{bat-6cf37408.js => bat-f53788cb.js} (64%) rename web/settings/assets/{bat-525c8cbc.js => bat-fb56e76d.js} (87%) rename web/settings/assets/{bat_smart_energy-ffd4b2a9.js => bat_smart_energy-e0c5fbbd.js} (65%) rename web/settings/assets/{chargePoint-55721b75.js => chargePoint-3b38c504.js} (82%) rename web/settings/assets/{chargePoint-a66b50b5.js => chargePoint-3d7477d0.js} (72%) rename web/settings/assets/{chargePoint-805d37db.js => chargePoint-86b1ed88.js} (59%) rename web/settings/assets/{chargePoint-44826d13.js => chargePoint-97a91d23.js} (72%) rename web/settings/assets/{chargePoint-01a68860.js => chargePoint-a5a3af6a.js} (59%) rename web/settings/assets/{chargePoint-c9890423.js => chargePoint-d21fff2e.js} (96%) rename web/settings/assets/{chargePoint-bca3f365.js => chargePoint-d78b5b66.js} (72%) rename web/settings/assets/{commands-0f7aef64.js => commands-2be8d876.js} (84%) rename web/settings/assets/{commands-a50295e0.js => commands-4c824edc.js} (88%) rename web/settings/assets/{consumption_counter-2e31a35f.js => consumption_counter-3aa8670b.js} (79%) rename web/settings/assets/{counter-4492ff33.js => counter-059aac54.js} (75%) rename web/settings/assets/{counter-a748557e.js => counter-0d81c4e8.js} (63%) rename web/settings/assets/{counter-80fa230d.js => counter-14bdbbf1.js} (73%) rename web/settings/assets/{counter-a241b59e.js => counter-2a9f653b.js} (78%) rename web/settings/assets/{counter-530a38a8.js => counter-328892f7.js} (62%) rename web/settings/assets/{counter-db80b3b7.js => counter-359a5c4f.js} (54%) rename web/settings/assets/{counter-ba55eb76.js => counter-39d4af34.js} (68%) rename web/settings/assets/{counter-511bff85.js => counter-3ba24356.js} (77%) rename web/settings/assets/{counter-38b5b751.js => counter-4644e6cb.js} (63%) rename web/settings/assets/{counter-c1e3dac6.js => counter-4e6d9499.js} (70%) rename web/settings/assets/{counter-f2f0c6a5.js => counter-5661736f.js} (81%) rename web/settings/assets/{counter-3e31d9a4.js => counter-566a9e91.js} (53%) rename web/settings/assets/{counter-91b63bf3.js => counter-58f8613e.js} (93%) rename web/settings/assets/{counter-9aae6b3e.js => counter-5fe4c9c7.js} (72%) rename web/settings/assets/{counter-4bd255f1.js => counter-696bc2b5.js} (93%) rename web/settings/assets/{counter-9cae3702.js => counter-6c205795.js} (55%) rename web/settings/assets/{counter-7c0a1b4c.js => counter-6f4588d4.js} (58%) rename web/settings/assets/{counter-af1ad647.js => counter-84b3047d.js} (65%) rename web/settings/assets/{counter-484db2f2.js => counter-8a64260e.js} (64%) rename web/settings/assets/{counter-b7508d1c.js => counter-8f9e07d5.js} (76%) rename web/settings/assets/{counter-858527e9.js => counter-9413118e.js} (71%) rename web/settings/assets/{counter-c9fa17a6.js => counter-94cb1f63.js} (71%) rename web/settings/assets/{counter-71c817be.js => counter-9cc7434e.js} (59%) rename web/settings/assets/{counter-f53a55cd.js => counter-aa714b1f.js} (66%) rename web/settings/assets/{counter-510c4bff.js => counter-ad9cf578.js} (65%) rename web/settings/assets/{counter-1951067e.js => counter-b94bfe2c.js} (63%) rename web/settings/assets/{counter-d7979450.js => counter-ccc4227f.js} (58%) rename web/settings/assets/{counter-69ac9fe8.js => counter-e054b606.js} (63%) rename web/settings/assets/{counter-5505722d.js => counter-e68e3c33.js} (66%) rename web/settings/assets/{counter-cae900f7.js => counter-e9030149.js} (65%) rename web/settings/assets/{counter-0b772c20.js => counter-efe3ec69.js} (78%) rename web/settings/assets/{counter-40c49fbb.js => counter-f13a85ea.js} (63%) rename web/settings/assets/{counter-4321da14.js => counter-f910d11a.js} (92%) rename web/settings/assets/{counter-686e6911.js => counter-f990ab02.js} (68%) rename web/settings/assets/{counter-351902ed.js => counter-f9f8b4aa.js} (63%) rename web/settings/assets/{counter_consumption-cf52aa82.js => counter_consumption-14cd8b87.js} (71%) rename web/settings/assets/{counter_sm-d1b8f654.js => counter_sm-09ba7690.js} (87%) rename web/settings/assets/{device-465f5d76.js => device-012d3b5a.js} (69%) rename web/settings/assets/{device-12a7dbac.js => device-019ef76a.js} (76%) rename web/settings/assets/{device-126f751b.js => device-075d9674.js} (87%) rename web/settings/assets/{device-18442843.js => device-0812a0b7.js} (74%) rename web/settings/assets/{device-f42f3b17.js => device-083b322d.js} (69%) rename web/settings/assets/{device-29966a32.js => device-0a610e9f.js} (90%) rename web/settings/assets/{device-e96fb3a1.js => device-0b615e92.js} (77%) rename web/settings/assets/{device-8e1ca3b6.js => device-0bbde04c.js} (74%) rename web/settings/assets/{device-722e0495.js => device-1734f335.js} (90%) rename web/settings/assets/{device-aa40f40e.js => device-18f04763.js} (73%) rename web/settings/assets/{device-5f077938.js => device-2060009a.js} (73%) rename web/settings/assets/{device-df9a450a.js => device-209d430b.js} (69%) rename web/settings/assets/{device-4bc532b0.js => device-2c5bfecf.js} (75%) rename web/settings/assets/{device-8677c7f9.js => device-2e6ed3d2.js} (62%) rename web/settings/assets/{device-0e3564cf.js => device-317fa85d.js} (71%) rename web/settings/assets/{device-1041d4f9.js => device-345bd775.js} (74%) rename web/settings/assets/{device-64d52b78.js => device-39b20fb3.js} (62%) rename web/settings/assets/{device-87950857.js => device-3af8cb6b.js} (77%) rename web/settings/assets/{device-53ae7640.js => device-3bfb9718.js} (74%) rename web/settings/assets/{device-72eb4453.js => device-3c6a1975.js} (78%) rename web/settings/assets/{device-54bd57ba.js => device-3cefb251.js} (63%) rename web/settings/assets/{device-68afe813.js => device-3da862be.js} (89%) rename web/settings/assets/{device-079f5cdc.js => device-434acb81.js} (69%) rename web/settings/assets/{device-afea5820.js => device-44a9fe5b.js} (73%) rename web/settings/assets/{device-5d2a3e3a.js => device-4687580a.js} (63%) rename web/settings/assets/{device-23d9f519.js => device-47e158c3.js} (64%) rename web/settings/assets/{device-214978b0.js => device-4a7dd16d.js} (69%) rename web/settings/assets/{device-b860ea67.js => device-4bc72e48.js} (63%) rename web/settings/assets/{device-e2624d17.js => device-545b2256.js} (71%) rename web/settings/assets/{device-8c48e19c.js => device-547c5594.js} (86%) rename web/settings/assets/{device-c4b87c43.js => device-57fdb288.js} (83%) rename web/settings/assets/{device-70c29a17.js => device-5d61b244.js} (69%) rename web/settings/assets/{device-01cc831a.js => device-652a9744.js} (75%) rename web/settings/assets/{device-383e08a5.js => device-6c191cc5.js} (78%) rename web/settings/assets/{device-a07b3e3d.js => device-6fbd7b85.js} (74%) rename web/settings/assets/{device-65767a9c.js => device-70078db6.js} (70%) rename web/settings/assets/{device-3dfd4984.js => device-71bc1bb6.js} (69%) rename web/settings/assets/{device-04c35d6b.js => device-76063706.js} (62%) rename web/settings/assets/{device-a75bb0fd.js => device-774e33ff.js} (74%) rename web/settings/assets/{device-69d484dc.js => device-7bafcf0f.js} (73%) rename web/settings/assets/{device-41905c43.js => device-7d5ffda7.js} (76%) rename web/settings/assets/{device-b9725af4.js => device-81740119.js} (73%) rename web/settings/assets/{device-225f64e5.js => device-8a76503c.js} (66%) rename web/settings/assets/{device-f3564d79.js => device-90b99ba4.js} (73%) rename web/settings/assets/{device-b119076e.js => device-9732226b.js} (73%) rename web/settings/assets/{device-5aa89219.js => device-97db254f.js} (91%) rename web/settings/assets/{device-5cd242bf.js => device-9e5971cf.js} (62%) rename web/settings/assets/{device-32b32d79.js => device-a362181c.js} (80%) rename web/settings/assets/{device-43ea3db6.js => device-a8208384.js} (62%) rename web/settings/assets/{device-4cc9719a.js => device-aa0fb6fb.js} (69%) rename web/settings/assets/{device-9b32a0e5.js => device-ae133671.js} (80%) rename web/settings/assets/{device-8a02bf9e.js => device-b0fef6f7.js} (77%) rename web/settings/assets/{device-53266948.js => device-b89dcacb.js} (69%) rename web/settings/assets/{device-c5d84904.js => device-bba50fe5.js} (70%) rename web/settings/assets/{device-6d6283ca.js => device-c9250c5b.js} (69%) rename web/settings/assets/{device-ef0c1ebd.js => device-c9b784c2.js} (74%) rename web/settings/assets/{device-e3d4ebdd.js => device-cea58e31.js} (71%) rename web/settings/assets/{device-429bda33.js => device-d28a42a6.js} (69%) rename web/settings/assets/{device-dd870d85.js => device-d801ab50.js} (78%) rename web/settings/assets/{device-779403a1.js => device-dbd0d29c.js} (63%) rename web/settings/assets/{device-42a91b6b.js => device-dc230eb0.js} (69%) rename web/settings/assets/{device-94881378.js => device-dd17995b.js} (76%) rename web/settings/assets/{device-4216efb1.js => device-dd5cb4eb.js} (63%) rename web/settings/assets/{device-de7086f5.js => device-de940d29.js} (83%) rename web/settings/assets/{device-60803ee4.js => device-e061c3ce.js} (77%) rename web/settings/assets/{device-3ffc8ac2.js => device-e1e97349.js} (69%) rename web/settings/assets/{device-32daf8c4.js => device-e2b6e352.js} (86%) rename web/settings/assets/{device-bb4ff5b1.js => device-e3414ea3.js} (76%) rename web/settings/assets/{device-ec276f96.js => device-eb24efb6.js} (74%) rename web/settings/assets/{device-79c9c89c.js => device-ed18848c.js} (78%) rename web/settings/assets/{device-e210f928.js => device-ee7b1351.js} (73%) rename web/settings/assets/{device-16e005d5.js => device-f3ea5347.js} (69%) rename web/settings/assets/{displayTheme-2283c696.js => displayTheme-9b47aca9.js} (78%) rename web/settings/assets/{displayTheme-14df5dae.js => displayTheme-c1cc8f13.js} (94%) rename web/settings/assets/{electricity_tariff-858ebc25.js => electricity_tariff-192d8c6f.js} (68%) rename web/settings/assets/{electricity_tariff-02377493.js => electricity_tariff-30cdacc8.js} (90%) rename web/settings/assets/{electricity_tariff-9eb316f1.js => electricity_tariff-46183402.js} (74%) rename web/settings/assets/{electricity_tariff-09587c2e.js => electricity_tariff-54f66a4e.js} (95%) rename web/settings/assets/{electricity_tariff-e3583a43.js => electricity_tariff-56f9a905.js} (85%) rename web/settings/assets/{electricity_tariff-48b3c8b7.js => electricity_tariff-7adf718b.js} (72%) rename web/settings/assets/{electricity_tariff-c8b9c23c.js => electricity_tariff-e06fa542.js} (84%) rename web/settings/assets/{electricity_tariff-9da2adde.js => electricity_tariff-f82826f0.js} (74%) rename web/settings/assets/{external_inverter-f3d046db.js => external_inverter-ac3fe3d1.js} (82%) rename web/settings/assets/{index-93388667.js => index-eccf5556.js} (90%) create mode 100644 web/settings/assets/inverter-0e60b688.js rename web/settings/assets/{inverter-da7b4d6d.js => inverter-14d8ff03.js} (67%) rename web/settings/assets/{inverter-da89e3ac.js => inverter-21f4f499.js} (68%) rename web/settings/assets/{inverter-7c045e1d.js => inverter-23a0795f.js} (86%) delete mode 100644 web/settings/assets/inverter-2464c133.js rename web/settings/assets/{inverter-8261fbcd.js => inverter-273c4d09.js} (66%) rename web/settings/assets/{inverter-0eab0f03.js => inverter-39424733.js} (67%) rename web/settings/assets/{inverter-3c1b86b2.js => inverter-3ba58e65.js} (66%) rename web/settings/assets/{inverter-3a09fafa.js => inverter-3f8066c8.js} (64%) rename web/settings/assets/{inverter-280fc766.js => inverter-3ff240fb.js} (75%) rename web/settings/assets/{inverter-1475e049.js => inverter-426faebc.js} (75%) rename web/settings/assets/{inverter-fcb44e16.js => inverter-43948e1d.js} (64%) rename web/settings/assets/{inverter-517a33e3.js => inverter-4a6155cb.js} (86%) rename web/settings/assets/{inverter-09d7efba.js => inverter-4b8c7e35.js} (71%) rename web/settings/assets/{inverter-242f8f6b.js => inverter-4f480ee7.js} (63%) delete mode 100644 web/settings/assets/inverter-55951246.js rename web/settings/assets/{inverter-7fe24049.js => inverter-59d7cfeb.js} (63%) rename web/settings/assets/{inverter-d02dc296.js => inverter-5cf4002d.js} (64%) create mode 100644 web/settings/assets/inverter-77029227.js rename web/settings/assets/{inverter-4272ff71.js => inverter-7a8ba133.js} (61%) rename web/settings/assets/{inverter-3abb1a19.js => inverter-82a5e024.js} (89%) rename web/settings/assets/{inverter-8c76c5fa.js => inverter-9cc82d3a.js} (82%) rename web/settings/assets/{inverter-538f8b90.js => inverter-9f809b2f.js} (77%) rename web/settings/assets/{inverter-d9c54d22.js => inverter-a72dbeb0.js} (65%) rename web/settings/assets/{inverter-7354c663.js => inverter-aadeffcc.js} (63%) rename web/settings/assets/{inverter-cd891c2c.js => inverter-aaf5cc74.js} (65%) rename web/settings/assets/{inverter-6170a78d.js => inverter-b18457fa.js} (66%) rename web/settings/assets/{inverter-269cffec.js => inverter-c4d4cb47.js} (72%) rename web/settings/assets/{inverter-b2aa2f88.js => inverter-dda60d18.js} (67%) rename web/settings/assets/{inverter-db8b8e38.js => inverter-df87aae6.js} (63%) rename web/settings/assets/{inverter-c7f31b65.js => inverter-f1e6b12e.js} (73%) rename web/settings/assets/{inverter-f0642b5c.js => inverter-f6b68618.js} (68%) rename web/settings/assets/{inverter-3f6e0a86.js => inverter-f704eca9.js} (81%) rename web/settings/assets/{inverter_secondary-a6696fc6.js => inverter_secondary-9852ff67.js} (82%) rename web/settings/assets/{io_action-511c0cd7.js => io_action-25f5451d.js} (87%) rename web/settings/assets/{io_action-d714df0c.js => io_action-33369fcf.js} (78%) rename web/settings/assets/{io_action-7060fe71.js => io_action-4c5b44eb.js} (86%) rename web/settings/assets/{io_action-3df13474.js => io_action-8d0f9f11.js} (81%) rename web/settings/assets/{io_device-1b22f974.js => io_device-6526992b.js} (83%) rename web/settings/assets/{io_device-850aa661.js => io_device-f28df559.js} (70%) rename web/settings/assets/{monitoring-5f234ebf.js => monitoring-cec4113b.js} (81%) rename web/settings/assets/{vehicle-e6540d4c.js => vehicle-02aaf130.js} (76%) rename web/settings/assets/{vehicle-96da0410.js => vehicle-07456498.js} (92%) rename web/settings/assets/{vehicle-f8c7286d.js => vehicle-0d5a824a.js} (76%) rename web/settings/assets/{vehicle-b61bf4e9.js => vehicle-10e7f333.js} (76%) rename web/settings/assets/{vehicle-d4a0797c.js => vehicle-1814a218.js} (81%) rename web/settings/assets/{vehicle-168e43cd.js => vehicle-3527acb4.js} (60%) rename web/settings/assets/{vehicle-a8c00d63.js => vehicle-355260c2.js} (80%) rename web/settings/assets/{vehicle-f0f2cea1.js => vehicle-42b70938.js} (82%) rename web/settings/assets/{vehicle-3b91fe46.js => vehicle-4c896303.js} (76%) rename web/settings/assets/{vehicle-1ca5962d.js => vehicle-57410994.js} (84%) rename web/settings/assets/{vehicle-d2af01a7.js => vehicle-8e08c50a.js} (75%) rename web/settings/assets/{vehicle-ceb6622c.js => vehicle-94d80e22.js} (70%) rename web/settings/assets/{vehicle-85376722.js => vehicle-c53d1445.js} (86%) rename web/settings/assets/{vehicle-4d40b28f.js => vehicle-cb7088f9.js} (91%) rename web/settings/assets/{vehicle-ba6a1f31.js => vehicle-cb9a9cb5.js} (65%) rename web/settings/assets/{vehicle-cee2dd5b.js => vehicle-d568544e.js} (60%) rename web/settings/assets/{vehicle-982d80e7.js => vehicle-d6bf9d86.js} (82%) rename web/settings/assets/{vehicle-5e681017.js => vehicle-d87c0cc9.js} (71%) rename web/settings/assets/{vehicle-3e73bf6e.js => vehicle-d91cf08c.js} (79%) rename web/settings/assets/{vehicle-a0cbd4bf.js => vehicle-e8e57114.js} (90%) rename web/settings/assets/{vehicle-075e67ef.js => vehicle-f2cedad6.js} (87%) rename web/settings/assets/{vendor-25d394b4.js => vendor-57e3a63c.js} (85%) rename web/settings/assets/{vendor-axios-ac33d60c.js => vendor-axios-89a9dc60.js} (99%) rename web/settings/assets/{vendor-bootstrap-374cd88e.js => vendor-bootstrap-6fb47dbc.js} (99%) rename web/settings/assets/{vendor-chartjs-94a826eb.js => vendor-chartjs-b3bc0878.js} (99%) rename web/settings/assets/{vendor-fortawesome-66071a0e.js => vendor-fortawesome-d6ee0a65.js} (99%) rename web/settings/assets/{vendor-jquery-3364d39b.js => vendor-jquery-92d6c4db.js} (99%) rename web/settings/assets/{vendor-sortablejs-0eb84ec8.js => vendor-sortablejs-63b3e6e3.js} (99%) rename web/settings/assets/{webTheme-c3f02b77.js => webTheme-45ca7ce6.js} (66%) rename web/settings/assets/{webTheme-27077fcd.js => webTheme-eb62fae2.js} (88%) diff --git a/web/settings/assets/ChargeLog-0bc5a230.js b/web/settings/assets/ChargeLog-5f1564ba.js similarity index 97% rename from web/settings/assets/ChargeLog-0bc5a230.js rename to web/settings/assets/ChargeLog-5f1564ba.js index 812d6c139b..e68740d6c9 100644 --- a/web/settings/assets/ChargeLog-0bc5a230.js +++ b/web/settings/assets/ChargeLog-5f1564ba.js @@ -1,3 +1,3 @@ -import{l as N,a2 as k,a3 as B,F as E}from"./vendor-fortawesome-66071a0e.js";import{_ as x,a1 as S,u,l as h,m as c,G as g,E as i,A as s,x as V,z as I,B as d,F as n,P as _,q as w}from"./vendor-25d394b4.js";import{C as W}from"./index-93388667.js";import"./vendor-sortablejs-0eb84ec8.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";N.add(k,B);const F={name:"OpenwbChargeLogView",components:{Vue3TableLite:S,FontAwesomeIcon:E},mixins:[W],emits:["sendCommand"],data(){return{dateTimeFormat:new Intl.DateTimeFormat("de-DE",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/charge_log_data_config","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentMonth:"",chargeLogRequestData:{month:"",year:"",filter:{chargepoint:{id:[]},vehicle:{id:[],tag:[],chargemode:[],prio:void 0}}},downloadFile:null,table:{messages:{pagingInfo:"Einträge {0}-{1} von {2}",pageSizeChangeLabel:"Einträge:",gotoPageLabel:" Gehe zu:",noDataAvailable:"Keine Einträge gefunden."},pageOptions:[{value:5,text:"5"},{value:10,text:"10"},{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"}],columns:[{label:"Beginn",field:"time_begin",sortable:!0},{label:"Ende",field:"time_end",sortable:!0},{label:"Dauer",field:"time_time_charged",sortable:!0},{label:"Kosten",field:"data_costs",sortable:!0},{label:"Energieaufteilung",field:"data_power_source",sortable:!1},{label:"Fahrzeug",field:"vehicle_name",sortable:!0},{label:"Lademodus",field:"vehicle_chargemode",sortable:!0},{label:"Priorität",field:"vehicle_prio",sortable:!0},{label:"ID-Tag",field:"vehicle_rfid",sortable:!0},{label:"SoC Beginn",field:"vehicle_soc_at_start",sortable:!0},{label:"SoC Ende",field:"vehicle_soc_at_end",sortable:!0},{label:"Ladepunkt",field:"chargepoint_name",sortable:!0},{label:"Seriennummer",field:"chargepoint_serial_number",sortable:!0},{label:"Energie",field:"data_imported_since_mode_switch",sortable:!0},{label:"Zähler Beginn",field:"chargepoint_imported_at_start",sortable:!0},{label:"Zähler Ende",field:"chargepoint_imported_at_end",sortable:!0}],sortable:{order:"timestamp_begin",sort:"asc"}},totals:{columns:[{label:"Dauer",field:"time_charged",sortable:!1},{label:"Energie",field:"imported_since_mode_switch",sortable:!1},{label:"Reichweite",field:"range_charged",sortable:!1},{label:"Kosten",field:"costs",sortable:!1}]}}},computed:{mqttClientId(){return this.$root.mqttClientId},baseUrl(){const t=parseInt(location.port)||(location.protocol==="https:"?443:80);return`${location.protocol}//${location.hostname}:${t}/openWB/web/settings/downloadChargeLog.php`},downloadUrlMonth(){return!this.chargeLogRequestData.year||!this.chargeLogRequestData.month?(console.error("Fehlende Parameter für Monat oder Jahr"),null):`${this.baseUrl}?year=${this.chargeLogRequestData.year}&month=${this.chargeLogRequestData.month}`},downloadUrlYear(){return this.chargeLogRequestData.year?`${this.baseUrl}?year=${this.chargeLogRequestData.year}`:(console.error("Fehlendes Jahr"),null)},chargeLogDate:{get(){return this.chargeLogRequestData.year+"-"+this.chargeLogRequestData.month},set(t){let e=t.split("-");this.chargeLogRequestData.year=e[0],this.chargeLogRequestData.month=e[1]}},chargeLogTotals(){return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"]?[this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].totals]:[]},chargeLogColumns(){return this.table.columns.map(t=>({...t,headerClasses:this.addClasses(t.field),columnClasses:this.addClasses(t.field)}))},chargeLogDataset:{get(){if(this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"]==null)return[];try{return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].entries.map(t=>{var e=Date.parse(t.time.begin),o=Date.parse(t.time.end);return{chargepoint_id:t.chargepoint.id,chargepoint_name:t.chargepoint.name,chargepoint_imported_at_start:t.chargepoint.imported_at_start,chargepoint_imported_at_end:t.chargepoint.imported_at_end,chargepoint_serial_number:t.chargepoint.serial_number,vehicle_id:t.vehicle.id,vehicle_name:t.vehicle.name,vehicle_chargemode:this.translateChargeMode(t.vehicle.chargemode),vehicle_rfid:t.vehicle.rfid,vehicle_prio:t.vehicle.prio,vehicle_soc_at_start:t.vehicle.soc_at_start,vehicle_soc_at_end:t.vehicle.soc_at_end,vehicle_range_at_start:t.vehicle.range_at_start,vehicle_range_at_end:t.vehicle.range_at_end,timestamp_begin:e/1e3,time_begin:isNaN(e)?null:this.dateTimeFormat.format(new Date(e)),timestamp_end:o/1e3,time_end:isNaN(o)?null:this.dateTimeFormat.format(new Date(o)),time_time_charged:t.time.time_charged,data_power_source:t.data.power_source?{pv:t.data.power_source.pv*100,grid:t.data.power_source.grid*100,bat:t.data.power_source.bat*100,cp:t.data.power_source.cp*100}:void 0,data_range_charged:t.data.range_charged,data_costs:t.data.costs,data_imported_since_plugged:t.data.imported_since_plugged,data_imported_since_mode_switch:t.data.imported_since_mode_switch}})}catch(t){return console.error(t),[]}}},chargeLogCsv:{get(){return[['"Beginn"','"Ende"','"Zeitstempel Beginn"','"Zeitstempel Ende"','"Dauer"','"Kosten"','"Energieanteil Netz"','"Energieanteil Ladepunkte"','"Energieanteil Speicher"','"Energieanteil PV"','"Fahrzeug"','"Fahrzeug-ID"','"Lademodus"','"Priorität"','"ID-Tag"','"SoC Beginn"','"SoC Ende"','"Reichweite Beginn"','"Reichweite Ende"','"Ladepunkt"','"Ladepunkt-ID"','"Zähler Seriennummer"','"Energie"','"Reichweite"','"Zählerstand Beginn"','"Zählerstand Ende"','"Energie seit Anstecken"'],...this.chargeLogDataset.map(e=>[e.time_begin==null?"":'"'+e.time_begin+'"',e.time_end==null?"":'"'+e.time_end+'"',e.timestamp_begin==null||isNaN(e.timestamp_begin)?"":e.timestamp_begin,e.timestamp_end==null||isNaN(e.timestamp_end)?"":e.timestamp_end,'"'+e.time_time_charged+'"',this.formatCosts(e.data_costs,!1),e.data_power_source==null?"":this.formatNumber(e.data_power_source.grid,2),e.data_power_source==null?"":this.formatNumber(e.data_power_source.cp,2),e.data_power_source==null?"":this.formatNumber(e.data_power_source.bat,2),e.data_power_source==null?"":this.formatNumber(e.data_power_source.pv,2),'"'+e.vehicle_name+'"',e.vehicle_id,'"'+e.vehicle_chargemode+'"','"'+this.formatBool(e.vehicle_prio)+'"',e.vehicle_rfid==null?"":'"'+e.vehicle_rfid+'"',e.vehicle_soc_at_start==null?"":this.formatNumber(e.vehicle_soc_at_start,0),e.vehicle_soc_at_end==null?"":this.formatNumber(e.vehicle_soc_at_end,0),e.vehicle_range_at_start==null?"":this.formatNumber(e.vehicle_range_at_start,0),e.vehicle_range_at_end==null?"":this.formatNumber(e.vehicle_range_at_end,0),'"'+e.chargepoint_name+'"',e.chargepoint_id,e.chargepoint_serial_number==null?"":'"'+e.chargepoint_serial_number+'"',this.formatNumber(e.data_imported_since_mode_switch/1e3,2),this.formatNumber(e.data_range_charged,0),this.formatNumber(e.chargepoint_imported_at_start/1e3,2),this.formatNumber(e.chargepoint_imported_at_end/1e3,2),this.formatNumber(e.data_imported_since_plugged/1e3,2)])].map(e=>e.join(";")).join(` +import{l as N,a2 as k,a3 as B,F as E}from"./vendor-fortawesome-d6ee0a65.js";import{_ as x,a1 as S,u,l as h,m as c,G as g,E as i,A as s,x as V,z as I,B as d,F as n,P as _,q as w}from"./vendor-57e3a63c.js";import{C as W}from"./index-eccf5556.js";import"./vendor-sortablejs-63b3e6e3.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";N.add(k,B);const F={name:"OpenwbChargeLogView",components:{Vue3TableLite:S,FontAwesomeIcon:E},mixins:[W],emits:["sendCommand"],data(){return{dateTimeFormat:new Intl.DateTimeFormat("de-DE",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/charge_log_data_config","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentMonth:"",chargeLogRequestData:{month:"",year:"",filter:{chargepoint:{id:[]},vehicle:{id:[],tag:[],chargemode:[],prio:void 0}}},downloadFile:null,table:{messages:{pagingInfo:"Einträge {0}-{1} von {2}",pageSizeChangeLabel:"Einträge:",gotoPageLabel:" Gehe zu:",noDataAvailable:"Keine Einträge gefunden."},pageOptions:[{value:5,text:"5"},{value:10,text:"10"},{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"}],columns:[{label:"Beginn",field:"time_begin",sortable:!0},{label:"Ende",field:"time_end",sortable:!0},{label:"Dauer",field:"time_time_charged",sortable:!0},{label:"Kosten",field:"data_costs",sortable:!0},{label:"Energieaufteilung",field:"data_power_source",sortable:!1},{label:"Fahrzeug",field:"vehicle_name",sortable:!0},{label:"Lademodus",field:"vehicle_chargemode",sortable:!0},{label:"Priorität",field:"vehicle_prio",sortable:!0},{label:"ID-Tag",field:"vehicle_rfid",sortable:!0},{label:"SoC Beginn",field:"vehicle_soc_at_start",sortable:!0},{label:"SoC Ende",field:"vehicle_soc_at_end",sortable:!0},{label:"Ladepunkt",field:"chargepoint_name",sortable:!0},{label:"Seriennummer",field:"chargepoint_serial_number",sortable:!0},{label:"Energie",field:"data_imported_since_mode_switch",sortable:!0},{label:"Zähler Beginn",field:"chargepoint_imported_at_start",sortable:!0},{label:"Zähler Ende",field:"chargepoint_imported_at_end",sortable:!0}],sortable:{order:"timestamp_begin",sort:"asc"}},totals:{columns:[{label:"Dauer",field:"time_charged",sortable:!1},{label:"Energie",field:"imported_since_mode_switch",sortable:!1},{label:"Reichweite",field:"range_charged",sortable:!1},{label:"Kosten",field:"costs",sortable:!1}]}}},computed:{mqttClientId(){return this.$root.mqttClientId},baseUrl(){const t=parseInt(location.port)||(location.protocol==="https:"?443:80);return`${location.protocol}//${location.hostname}:${t}/openWB/web/settings/downloadChargeLog.php`},downloadUrlMonth(){return!this.chargeLogRequestData.year||!this.chargeLogRequestData.month?(console.error("Fehlende Parameter für Monat oder Jahr"),null):`${this.baseUrl}?year=${this.chargeLogRequestData.year}&month=${this.chargeLogRequestData.month}`},downloadUrlYear(){return this.chargeLogRequestData.year?`${this.baseUrl}?year=${this.chargeLogRequestData.year}`:(console.error("Fehlendes Jahr"),null)},chargeLogDate:{get(){return this.chargeLogRequestData.year+"-"+this.chargeLogRequestData.month},set(t){let e=t.split("-");this.chargeLogRequestData.year=e[0],this.chargeLogRequestData.month=e[1]}},chargeLogTotals(){return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"]?[this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].totals]:[]},chargeLogColumns(){return this.table.columns.map(t=>({...t,headerClasses:this.addClasses(t.field),columnClasses:this.addClasses(t.field)}))},chargeLogDataset:{get(){if(this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"]==null)return[];try{return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].entries.map(t=>{var e=Date.parse(t.time.begin),o=Date.parse(t.time.end);return{chargepoint_id:t.chargepoint.id,chargepoint_name:t.chargepoint.name,chargepoint_imported_at_start:t.chargepoint.imported_at_start,chargepoint_imported_at_end:t.chargepoint.imported_at_end,chargepoint_serial_number:t.chargepoint.serial_number,vehicle_id:t.vehicle.id,vehicle_name:t.vehicle.name,vehicle_chargemode:this.translateChargeMode(t.vehicle.chargemode),vehicle_rfid:t.vehicle.rfid,vehicle_prio:t.vehicle.prio,vehicle_soc_at_start:t.vehicle.soc_at_start,vehicle_soc_at_end:t.vehicle.soc_at_end,vehicle_range_at_start:t.vehicle.range_at_start,vehicle_range_at_end:t.vehicle.range_at_end,timestamp_begin:e/1e3,time_begin:isNaN(e)?null:this.dateTimeFormat.format(new Date(e)),timestamp_end:o/1e3,time_end:isNaN(o)?null:this.dateTimeFormat.format(new Date(o)),time_time_charged:t.time.time_charged,data_power_source:t.data.power_source?{pv:t.data.power_source.pv*100,grid:t.data.power_source.grid*100,bat:t.data.power_source.bat*100,cp:t.data.power_source.cp*100}:void 0,data_range_charged:t.data.range_charged,data_costs:t.data.costs,data_imported_since_plugged:t.data.imported_since_plugged,data_imported_since_mode_switch:t.data.imported_since_mode_switch}})}catch(t){return console.error(t),[]}}},chargeLogCsv:{get(){return[['"Beginn"','"Ende"','"Zeitstempel Beginn"','"Zeitstempel Ende"','"Dauer"','"Kosten"','"Energieanteil Netz"','"Energieanteil Ladepunkte"','"Energieanteil Speicher"','"Energieanteil PV"','"Fahrzeug"','"Fahrzeug-ID"','"Lademodus"','"Priorität"','"ID-Tag"','"SoC Beginn"','"SoC Ende"','"Reichweite Beginn"','"Reichweite Ende"','"Ladepunkt"','"Ladepunkt-ID"','"Zähler Seriennummer"','"Energie"','"Reichweite"','"Zählerstand Beginn"','"Zählerstand Ende"','"Energie seit Anstecken"'],...this.chargeLogDataset.map(e=>[e.time_begin==null?"":'"'+e.time_begin+'"',e.time_end==null?"":'"'+e.time_end+'"',e.timestamp_begin==null||isNaN(e.timestamp_begin)?"":e.timestamp_begin,e.timestamp_end==null||isNaN(e.timestamp_end)?"":e.timestamp_end,'"'+e.time_time_charged+'"',this.formatCosts(e.data_costs,!1),e.data_power_source==null?"":this.formatNumber(e.data_power_source.grid,2),e.data_power_source==null?"":this.formatNumber(e.data_power_source.cp,2),e.data_power_source==null?"":this.formatNumber(e.data_power_source.bat,2),e.data_power_source==null?"":this.formatNumber(e.data_power_source.pv,2),'"'+e.vehicle_name+'"',e.vehicle_id,'"'+e.vehicle_chargemode+'"','"'+this.formatBool(e.vehicle_prio)+'"',e.vehicle_rfid==null?"":'"'+e.vehicle_rfid+'"',e.vehicle_soc_at_start==null?"":this.formatNumber(e.vehicle_soc_at_start,0),e.vehicle_soc_at_end==null?"":this.formatNumber(e.vehicle_soc_at_end,0),e.vehicle_range_at_start==null?"":this.formatNumber(e.vehicle_range_at_start,0),e.vehicle_range_at_end==null?"":this.formatNumber(e.vehicle_range_at_end,0),'"'+e.chargepoint_name+'"',e.chargepoint_id,e.chargepoint_serial_number==null?"":'"'+e.chargepoint_serial_number+'"',this.formatNumber(e.data_imported_since_mode_switch/1e3,2),this.formatNumber(e.data_range_charged,0),this.formatNumber(e.chargepoint_imported_at_start/1e3,2),this.formatNumber(e.chargepoint_imported_at_end/1e3,2),this.formatNumber(e.data_imported_since_plugged/1e3,2)])].map(e=>e.join(";")).join(` `)+` `}},chargeLogRead:{get(){return this.chargeLogDataset!=null}},chargeLogHasEntries:{get(){return this.chargeLogDataset==null?!1:this.chargeLogDataset.length>0}},totalRecordCount(){return this.chargeLogDataset.length},chargeModeList(){let t=this.chargeModes.map(e=>({value:e,text:this.translateChargeMode(e)}));return t.unshift({value:void 0,text:"Alle"}),t},chargePointList(){let t=this.getWildcardTopics("openWB/chargepoint/+/config");var e=[{value:void 0,text:"Alle"}];for(const[,o]of Object.entries(t))e.push({value:o.id,text:o.name});return e},vehicleList(){let t=this.getWildcardTopics("openWB/vehicle/+/name");var e=[{value:void 0,text:"Alle"}];for(const[o,f]of Object.entries(t)){let l=parseInt(o.match(/\/([0-9]+)\/name$/)[1]);e.push({value:l,text:f})}return e}},beforeMount(){this.mqttTopicsToSubscribe.push("openWB/log/"+this.mqttClientId+"/data")},mounted(){const t=new Date;this.currentMonth=this.chargeLogDate=t.getFullYear()+"-"+String(t.getMonth()+1).padStart(2,"0"),this.requestChargeLog()},methods:{cleanRequestData(){"id"in this.chargeLogRequestData.filter.chargepoint&&(this.chargeLogRequestData.filter.chargepoint.id=this.chargeLogRequestData.filter.chargepoint.id.filter(t=>t!=null)),"chargemode"in this.chargeLogRequestData.filter.vehicle&&(this.chargeLogRequestData.filter.vehicle.chargemode=this.chargeLogRequestData.filter.vehicle.chargemode.filter(t=>t!=null)),"id"in this.chargeLogRequestData.filter.vehicle&&(this.chargeLogRequestData.filter.vehicle.id=this.chargeLogRequestData.filter.vehicle.id.filter(t=>t!=null))},requestChargeLog(){if(document.forms.chargeLogForm.reportValidity())this.cleanRequestData(),this.$emit("sendCommand",{command:"getChargeLog",data:this.chargeLogRequestData});else{console.warn("form invalid");return}},makeTextFile(t){var e=new Blob([t],{type:"text/csv"});return this.downloadFile!==null&&window.URL.revokeObjectURL(this.downloadFile),this.downloadFile=window.URL.createObjectURL(e),this.downloadFile},downloadChargeLog(){this.$refs.downloadChargeLogLink.setAttribute("download","Ladeprotokoll-"+this.chargeLogDate+".csv"),this.$refs.downloadChargeLogLink.href=this.makeTextFile(this.chargeLogCsv),this.$refs.downloadChargeLogLink.dispatchEvent(new MouseEvent("click"))},addClasses(t){return this.$store.state.mqtt["openWB/general/charge_log_data_config"]!==void 0&&Object.hasOwn(this.$store.state.mqtt["openWB/general/charge_log_data_config"],t)?this.$store.state.mqtt["openWB/general/charge_log_data_config"][t]?[]:["d-none"]:[]},getProgressTitle(t){return`Netz: ${this.formatNumber(t.grid,0,0)}%, Ladepunkte: ${this.formatNumber(t.cp,0,0)}%, Speicher: ${this.formatNumber(t.bat,0,0)}%, PV: ${this.formatNumber(t.pv,0,0)}%`},formatBool(t){return t?"Ja":"Nein"},formatW(t,e=!0){let o=this.dashIfNotSet(this.formatNumber(t/1e3,2));return e?o+"kW":o},formatWh(t,e=!0){let o=this.dashIfNotSet(this.formatNumber(t/1e3,2));return e?o+"kWh":o},formatRange(t,e=!0){let o=this.dashIfNotSet(this.formatNumber(t,0));return e?o+"km":o},formatSoc(t,e=!0){let o=this.dashIfNotSet(this.formatNumber(t,0));return e?o+"%":o},formatCosts(t,e=!0){let o=this.dashIfNotSet(this.formatNumber(t,2));return e?o+"€":o},dashIfNotSet(t){return t==null||t==""||t==null?"-":t},getChargeModeClass(t){switch(t){case"Sofort":return"bg-danger";case"PV":return"bg-success";case"Zielladen":return"bg-primary";case"Zeitladen":return"bg-warning";case"Eco":case"Standby":return"bg-secondary";case"Stop":return"bg-dark";default:return console.warn("unknown charge mode:",t),"bg-light"}}}},y={class:"chargeLog"},T={key:0},U={key:1},M={name:"chargeLogForm"},P=["href"],z=["href"],O={key:1},A={class:"td-end"},Z={class:"td-end"},j=["title"],J=["aria-valuenow"],K=["aria-valuenow"],Y=["aria-valuenow"],G=["aria-valuenow"],H={key:1,class:"td-center"},Q={class:"td-end"},X={class:"no-wrap"},$={class:"no-wrap"},ee={class:"td-end"},te={class:"no-wrap"},ae={class:"no-wrap"},re={class:"td-end"},se={class:"no-wrap"},ie={class:"no-wrap"},oe={class:"td-end"},ne={class:"td-end"},le={key:0},de={class:"row justify-content-center"},ge={ref:"downloadChargeLogLink",class:"hide"},ue={class:"td-end"},he={class:"td-end"},ce={class:"td-end"},_e={class:"td-end"};function me(t,e,o,f,l,r){const m=u("openwb-base-alert"),D=u("openwb-base-text-input"),b=u("font-awesome-icon"),C=u("openwb-base-button-group-input"),p=u("openwb-base-select-input"),q=u("openwb-base-array-input"),v=u("openwb-base-card"),L=u("vue3-table-lite"),R=u("openwb-base-click-button");return h(),c("div",y,[t.$store.state.mqtt["openWB/general/extern"]===!0?(h(),c("div",T,[g(m,{subtype:"info"},{default:i(()=>e[13]||(e[13]=[d(' Das Ladeprotokoll ist nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. Du findest alle Ladevorgänge in der openWB, die sich im Steuerungsmodus "primary" befindet. ',-1)])),_:1,__:[13]})])):(h(),c("div",U,[s("form",M,[g(v,{title:"Filter"},{default:i(()=>[g(D,{modelValue:r.chargeLogDate,"onUpdate:modelValue":[e[0]||(e[0]=a=>r.chargeLogDate=a),e[1]||(e[1]=a=>r.requestChargeLog())],title:"Zeitraum",subtype:"month",min:"2018-01","show-quick-buttons":!0,max:l.currentMonth},null,8,["modelValue","max"]),g(v,{title:"Erweiterte Optionen",collapsible:!0,collapsed:!0},{header:i(()=>[g(b,{icon:["fas","filter"]}),e[14]||(e[14]=d(" Erweiterte Optionen ",-1))]),default:i(()=>[g(C,{modelValue:l.chargeLogRequestData.filter.vehicle.prio,"onUpdate:modelValue":[e[2]||(e[2]=a=>l.chargeLogRequestData.filter.vehicle.prio=a),e[3]||(e[3]=a=>r.requestChargeLog())],title:"Priorität",buttons:[{buttonValue:void 0,text:"Alle"},{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"]),g(p,{modelValue:l.chargeLogRequestData.filter.vehicle.chargemode,"onUpdate:modelValue":[e[4]||(e[4]=a=>l.chargeLogRequestData.filter.vehicle.chargemode=a),e[5]||(e[5]=a=>r.requestChargeLog())],title:"Lademodus",multiple:"",options:r.chargeModeList},{help:i(()=>e[15]||(e[15]=[d(" Es können mehrere Elemente ausgewählt werden. ",-1)])),_:1},8,["modelValue","options"]),g(p,{modelValue:l.chargeLogRequestData.filter.chargepoint.id,"onUpdate:modelValue":[e[6]||(e[6]=a=>l.chargeLogRequestData.filter.chargepoint.id=a),e[7]||(e[7]=a=>r.requestChargeLog())],title:"Ladepunkt",multiple:"",options:r.chargePointList},{help:i(()=>e[16]||(e[16]=[d(" Es können mehrere Elemente ausgewählt werden. ",-1)])),_:1},8,["modelValue","options"]),g(p,{modelValue:l.chargeLogRequestData.filter.vehicle.id,"onUpdate:modelValue":[e[8]||(e[8]=a=>l.chargeLogRequestData.filter.vehicle.id=a),e[9]||(e[9]=a=>r.requestChargeLog())],title:"Fahrzeug",multiple:"",options:r.vehicleList},{help:i(()=>e[17]||(e[17]=[d(" Es können mehrere Elemente ausgewählt werden. ",-1)])),_:1},8,["modelValue","options"]),g(q,{modelValue:l.chargeLogRequestData.filter.vehicle.tag,"onUpdate:modelValue":[e[10]||(e[10]=a=>l.chargeLogRequestData.filter.vehicle.tag=a),e[11]||(e[11]=a=>r.requestChargeLog())],title:"ID-Tags"},{help:i(()=>e[18]||(e[18]=[d(" Es können mehrere Tags als Filter verwendet werden. ",-1)])),_:1},8,["modelValue"])]),_:1})]),_:1}),g(m,{subtype:"info"},{default:i(()=>[e[19]||(e[19]=d(" Das Ladeprotokoll kann monatsweise automatisiert über folgende URL abgerufen werden: ",-1)),s("a",{href:r.downloadUrlMonth},n(r.downloadUrlMonth),9,P),e[20]||(e[20]=d()),e[21]||(e[21]=s("br",null,null,-1)),e[22]||(e[22]=d(" Das komplette Ladeprotokoll für das gesamte Jahr kann automatisiert über folgende URL abgerufen werden: ",-1)),s("a",{href:r.downloadUrlYear},n(r.downloadUrlYear),9,z)]),_:1,__:[19,20,21,22]}),r.chargeLogRead?(h(),c("div",O,[g(L,{class:"charge-log-table","is-static-mode":!0,columns:r.chargeLogColumns,rows:r.chargeLogDataset,total:r.totalRecordCount,sortable:l.table.sortable,messages:l.table.messages,"page-options":l.table.pageOptions,limit:25,"is-slot-mode":!0},{time_begin:i(a=>[d(n(r.dashIfNotSet(a.value.time_begin)),1)]),time_end:i(a=>[d(n(r.dashIfNotSet(a.value.time_end)),1)]),time_time_charged:i(a=>[s("div",A,n(a.value.time_time_charged),1)]),data_costs:i(a=>[s("div",Z,n(r.formatCosts(a.value.data_costs)),1)]),data_power_source:i(a=>[a.value.data_power_source?(h(),c("div",{key:0,class:"progress td-center",title:r.getProgressTitle(a.value.data_power_source)},[s("div",{class:"progress-bar bg-danger",role:"progressbar",style:_({width:a.value.data_power_source.grid+"%"}),"aria-valuenow":a.value.data_power_source.grid,"aria-valuemin":"0","aria-valuemax":"100"},null,12,J),s("div",{class:"progress-bar bg-primary",role:"progressbar",style:_({width:a.value.data_power_source.cp+"%"}),"aria-valuenow":a.value.data_power_source.cp,"aria-valuemin":"0","aria-valuemax":"100"},null,12,K),s("div",{class:"progress-bar bg-warning",role:"progressbar",style:_({width:a.value.data_power_source.bat+"%"}),"aria-valuenow":a.value.data_power_source.bat,"aria-valuemin":"0","aria-valuemax":"100"},null,12,Y),s("div",{class:"progress-bar bg-success",role:"progressbar",style:_({width:a.value.data_power_source.pv+"%"}),"aria-valuenow":a.value.data_power_source.pv,"aria-valuemin":"0","aria-valuemax":"100"},null,12,G)],8,j)):(h(),c("div",H," - "))]),vehicle_chargemode:i(a=>[s("div",{class:w(["td-center tag",r.getChargeModeClass(a.value.vehicle_chargemode)])},n(a.value.vehicle_chargemode),3)]),vehicle_prio:i(a=>[s("div",{class:w(["td-center tag",a.value.vehicle_prio?"bg-success":"bg-danger"])},n(r.formatBool(a.value.vehicle_prio)),3)]),vehicle_rfid:i(a=>[d(n(r.dashIfNotSet(a.value.vehicle_rfid)),1)]),vehicle_soc_at_start:i(a=>[s("div",Q,[s("span",X,n(r.formatSoc(a.value.vehicle_soc_at_start)),1),s("span",$," ("+n(r.formatRange(a.value.vehicle_range_at_start))+") ",1)])]),vehicle_soc_at_end:i(a=>[s("div",ee,[s("span",te,n(r.formatSoc(a.value.vehicle_soc_at_end)),1),s("span",ae," ("+n(r.formatRange(a.value.vehicle_range_at_end))+") ",1)])]),chargepoint_name:i(a=>[d(n(r.dashIfNotSet(a.value.chargepoint_name)),1)]),chargepoint_serial_number:i(a=>[d(n(r.dashIfNotSet(a.value.chargepoint_serial_number)),1)]),data_imported_since_mode_switch:i(a=>[s("div",re,[s("span",se,n(r.formatWh(a.value.data_imported_since_mode_switch)),1),s("span",ie," ("+n(r.formatRange(a.value.data_range_charged))+") ",1)])]),chargepoint_imported_at_start:i(a=>[s("div",oe,n(r.formatWh(a.value.chargepoint_imported_at_start)),1)]),chargepoint_imported_at_end:i(a=>[s("div",ne,n(r.formatWh(a.value.chargepoint_imported_at_end)),1)]),_:1},8,["columns","rows","total","sortable","messages","page-options"]),r.totalRecordCount>0?(h(),c("div",le,[s("div",de,[g(R,{class:"col-4 btn-success",onButtonClicked:e[12]||(e[12]=a=>r.downloadChargeLog())},{default:i(()=>[e[24]||(e[24]=d(" Als CSV exportieren ",-1)),g(b,{icon:["fas","download"]})]),_:1,__:[24]}),s("a",ge,null,512)]),e[25]||(e[25]=s("div",{class:"row"},[s("div",{class:"col"},[s("h2",null,"Summe")])],-1)),g(L,{class:"charge-log-totals","is-static-mode":!0,"is-hide-paging":!0,columns:l.totals.columns,rows:r.chargeLogTotals,total:1,"is-slot-mode":!0},{time_charged:i(a=>[s("div",ue,n(a.value.time_charged),1)]),imported_since_mode_switch:i(a=>[s("div",he,n(r.formatWh(a.value.imported_since_mode_switch)),1)]),range_charged:i(a=>[s("div",ce,n(r.formatRange(a.value.range_charged)),1)]),costs:i(a=>[s("div",_e,n(r.formatCosts(a.value.costs)),1)]),_:1},8,["columns","rows"])])):I("",!0)])):(h(),V(m,{key:0,subtype:"info"},{default:i(()=>e[23]||(e[23]=[d(" Es wurden noch keine Daten abgerufen. ",-1)])),_:1,__:[23]}))])]))])}const Ce=x(F,[["render",me],["__scopeId","data-v-8607e7e7"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargeLog.vue"]]);export{Ce as default}; diff --git a/web/settings/assets/ChargePointInstallation-34ff8e1d.js b/web/settings/assets/ChargePointInstallation-9345f83e.js similarity index 87% rename from web/settings/assets/ChargePointInstallation-34ff8e1d.js rename to web/settings/assets/ChargePointInstallation-9345f83e.js index d884c80479..5231f75fdb 100644 --- a/web/settings/assets/ChargePointInstallation-34ff8e1d.js +++ b/web/settings/assets/ChargePointInstallation-9345f83e.js @@ -1 +1 @@ -import{l as O,aa as T,al as N,G as R,am as j,an as Z,F as J,d as K,Q as ee,ao as te,M as ne}from"./vendor-fortawesome-66071a0e.js";import{_ as P,C as $}from"./index-93388667.js";import{_ as q}from"./dynamic-import-helper-be004503.js";import{_ as W,u as g,l,m as d,x as f,E as o,B as s,F as v,G as a,A as m,a2 as M,a3 as F,N as B,q as ae,y as S,z as c,M as z,D as oe}from"./vendor-25d394b4.js";const le={props:{chargePoint:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},ie=W(le,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/ChargePointConfigMixin.vue"]]),re={name:"ChargePointConfigFallback",mixins:[ie]},se={class:"charge-point-config-fallback"},ue={key:1};function de(t,e,b,V,_,n){const w=g("openwb-base-alert"),h=g("openwb-base-textarea");return l(),d("div",se,[Object.keys(t.chargePoint.configuration).length==0?(l(),f(w,{key:0,subtype:"info"},{default:o(()=>[s(' Der Ladepunkt-Typ "'+v(t.chargePoint.type)+'" bietet keine Einstellungen. ',1)]),_:1})):(l(),d("div",ue,[a(w,{subtype:"warning"},{default:o(()=>[s(' Es wurde keine Konfigurationsseite für den Ladepunkt-Typ "'+v(t.chargePoint.type)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),a(h,{title:"Konfiguration",subtype:"json","model-value":t.chargePoint.configuration,"onUpdate:modelValue":e[0]||(e[0]=C=>t.updateConfiguration(C,"configuration"))},{help:o(()=>e[1]||(e[1]=[s(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),a(w,{subtype:"info"},{default:o(()=>[m("pre",null,v(JSON.stringify(t.chargePoint.configuration,void 0,2)),1)]),_:1})]))])}const pe=W(re,[["render",de],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointConfigFallback.vue"]]),me={props:{chargePoint:{type:Object,required:!0}}},ge=W(me,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/ChargePointCommandsMixin.vue"]]),ce={name:"ChargePointCommandsFallback",mixins:[ge]},be={class:"charge-point-commands-fallback"};function he(t,e,b,V,_,n){return l(),d("div",be)}const fe=W(ce,[["render",he],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointCommandsFallback.vue"]]),_e={name:"OpenwbChargePointProxy",props:{chargePoint:{required:!0,type:Object}},emits:["update:configuration"],methods:{getChargePointSettingsComponent(){return console.debug(`loading charge point settings: ${this.chargePoint.type}`),M({loader:()=>q(Object.assign({"./external_openwb/chargePoint.vue":()=>P(()=>import("./chargePoint-bca3f365.js"),["assets/chargePoint-bca3f365.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./internal_openwb/chargePoint.vue":()=>P(()=>import("./chargePoint-55721b75.js"),["assets/chargePoint-55721b75.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mqtt/chargePoint.vue":()=>P(()=>import("./chargePoint-c9890423.js"),["assets/chargePoint-c9890423.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb_dc_adapter/chargePoint.vue":()=>P(()=>import("./chargePoint-805d37db.js"),["assets/chargePoint-805d37db.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb_pro/chargePoint.vue":()=>P(()=>import("./chargePoint-01a68860.js"),["assets/chargePoint-01a68860.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb_series2_satellit/chargePoint.vue":()=>P(()=>import("./chargePoint-44826d13.js"),["assets/chargePoint-44826d13.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smartwb/chargePoint.vue":()=>P(()=>import("./chargePoint-a66b50b5.js"),["assets/chargePoint-a66b50b5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.chargePoint.type}/chargePoint.vue`),errorComponent:pe})},getChargePointCommandsComponent(){return console.debug(`loading charge point commands: ${this.chargePoint.type}`),M({loader:()=>q(Object.assign({"./internal_openwb/commands.vue":()=>P(()=>import("./commands-a50295e0.js"),["assets/commands-a50295e0.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb_pro/commands.vue":()=>P(()=>import("./commands-0f7aef64.js"),["assets/commands-0f7aef64.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.chargePoint.type}/commands.vue`),errorComponent:fe})},updateConfiguration(t){this.$emit("update:configuration",t)}}};function ke(t,e,b,V,_,n){const w=g("openwb-base-heading");return l(),d(B,null,[a(w,null,{default:o(()=>[s(' Einstellungen für Ladepunkt Typ "'+v(b.chargePoint.type)+'" ',1)]),_:1}),(l(),f(F(n.getChargePointSettingsComponent()),{"charge-point":b.chargePoint,"onUpdate:configuration":e[0]||(e[0]=h=>n.updateConfiguration(h))},null,40,["charge-point"])),e[1]||(e[1]=m("hr",null,null,-1)),a(w,null,{default:o(()=>[s(' Befehle für Ladepunkt Typ "'+v(b.chargePoint.type)+'" ',1)]),_:1}),(l(),f(F(n.getChargePointCommandsComponent()),{"charge-point":b.chargePoint},null,8,["charge-point"]))],64)}const ve=W(_e,[["render",ke],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointProxy.vue"]]);O.add(T,N,R,j,Z);const we={name:"TemplateAutoLockPlan",components:{FontAwesomeIcon:J},mixins:[$],props:{modelValue:{type:Object,required:!0},templateId:{type:Number,required:!0}},emits:["update:modelValue","sendCommand"],data(){return{showRemoveModal:!1}},computed:{plan(){return this.modelValue}},watch:{plan:{handler(t){this.$emit("update:modelValue",t)},deep:!0}},methods:{copyPlan(){this.$emit("sendCommand",{command:"addAutolockPlan",data:{template:this.templateId,copy:this.modelValue.id}})},removePlanModal(){this.showRemoveModal=!0},removePlan(t){this.showRemoveModal=!1,t=="confirm"&&this.$emit("sendCommand",{command:"removeAutolockPlan",data:{template:this.templateId,plan:this.modelValue.id}})}}},Ce={key:0},ye={key:1},Ve={key:2},Pe={key:1},Le={key:2};function Be(t,e,b,V,_,n){const w=g("openwb-base-modal-dialog"),h=g("font-awesome-icon"),C=g("openwb-base-avatar"),y=g("openwb-base-text-input"),A=g("openwb-base-button-group-input"),I=g("openwb-base-card");return l(),d(B,null,[a(w,{show:_.showRemoveModal,title:"Autolock Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:n.removePlan},{default:o(()=>[s(' Wollen Sie den Autolock Zeitplan "'+v(n.plan.name)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),a(I,{title:n.plan.name,collapsible:!0,collapsed:!0},{actions:o(p=>[p.collapsed==!0?(l(),d("span",{key:0,class:ae(["pill clickable",n.plan.active?"bg-success":"bg-danger"]),onClick:e[0]||(e[0]=S(k=>n.plan.active=!n.plan.active,["stop"]))},[a(h,{icon:["fas","clock"]}),s(" "+v(n.plan.time[0])+" - "+v(n.plan.time[1])+" ",1),n.plan.frequency.selected=="once"?(l(),d("span",Ce,[a(h,{icon:["fas","calendar-day"]}),s(" "+v(t.formatDate(n.plan.frequency.once[0])==t.formatDate(n.plan.frequency.once[1])?t.formatDate(n.plan.frequency.once[0]):t.formatDate(n.plan.frequency.once[0])+" - "+t.formatDate(n.plan.frequency.once[1])),1)])):c("",!0),n.plan.frequency.selected=="daily"?(l(),d("span",ye,[a(h,{icon:["fas","calendar-week"]})])):c("",!0),n.plan.frequency.selected=="weekly"?(l(),d("span",Ve,[a(h,{icon:["fas","calendar-alt"]})])):c("",!0)],2)):c("",!0),p.collapsed==!1?(l(),d("span",Pe,[a(C,{class:"bg-success clickable",title:"Autolock Zeitplan duplizieren",onClick:e[1]||(e[1]=S(k=>n.copyPlan(),["stop"]))},{default:o(()=>[a(h,{icon:["fas","copy"]})]),_:1}),a(C,{class:"bg-danger clickable ml-1",title:"Autolock Zeitplan löschen",onClick:e[2]||(e[2]=S(k=>n.removePlanModal(),["stop"]))},{default:o(()=>[a(h,{icon:["fas","trash"]})]),_:1})])):c("",!0)]),default:o(()=>[a(y,{modelValue:n.plan.name,"onUpdate:modelValue":e[3]||(e[3]=p=>n.plan.name=p),title:"Bezeichnung"},null,8,["modelValue"]),a(A,{modelValue:n.plan.active,"onUpdate:modelValue":e[4]||(e[4]=p=>n.plan.active=p),title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"]),a(y,{modelValue:n.plan.time[0],"onUpdate:modelValue":e[5]||(e[5]=p=>n.plan.time[0]=p),title:"Sperren um",subtype:"time"},null,8,["modelValue"]),a(y,{modelValue:n.plan.time[1],"onUpdate:modelValue":e[6]||(e[6]=p=>n.plan.time[1]=p),title:"Freigeben um",subtype:"time"},null,8,["modelValue"]),a(A,{modelValue:n.plan.frequency.selected,"onUpdate:modelValue":e[7]||(e[7]=p=>n.plan.frequency.selected=p),title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}]},null,8,["modelValue"]),n.plan.frequency.selected=="once"?(l(),f(y,{key:0,modelValue:n.plan.frequency.once[0],"onUpdate:modelValue":e[8]||(e[8]=p=>n.plan.frequency.once[0]=p),title:"Sperren ab ...",subtype:"date"},null,8,["modelValue"])):c("",!0),n.plan.frequency.selected=="once"?(l(),f(y,{key:1,modelValue:n.plan.frequency.once[1],"onUpdate:modelValue":e[9]||(e[9]=p=>n.plan.frequency.once[1]=p),title:"... bis",subtype:"date",min:n.plan.frequency.once[0]},null,8,["modelValue","min"])):c("",!0),n.plan.frequency.selected=="weekly"?(l(),d("div",Le,[(l(!0),d(B,null,z(t.weekdays,(p,k)=>(l(),f(A,{key:k,modelValue:n.plan.frequency.weekly[k],"onUpdate:modelValue":U=>n.plan.frequency.weekly[k]=U,title:p,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["modelValue","onUpdate:modelValue","title"]))),128))])):c("",!0)]),_:1},8,["title"])],64)}const We=W(we,[["render",Be],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/TemplateAutoLockPlan.vue"]]);O.add(K,T,N,R,j,Z,ee,te);const Ae={name:"OpenwbChargePointInstallationView",components:{FontAwesomeIcon:J,FontAwesomeLayers:ne,OpenwbChargePointProxy:ve,TemplateAutoLockPlan:We},mixins:[$],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["sendCommand","save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/dc_charging","openWB/optional/ocpp/config","openWB/optional/rfid/active","openWB/chargepoint/+/config","openWB/chargepoint/template/+","openWB/system/configurable/chargepoints","openWB/system/configurable/chargepoints_internal"],chargePointToAdd:void 0,showChargePointModal:!1,modalChargePointIndex:void 0,showChargePointTemplateModal:!1,modalChargePointTemplateIndex:void 0}},computed:{dcChargingEnabled:{get(){return this.$store.state.mqtt["openWB/optional/dc_charging"]}},installedChargePoints:{get(){let t=this.getWildcardTopics("openWB/chargepoint/+/config"),e={};for(const[b,V]of Object.entries(t))(V.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(e[b]=V);return e}},chargePointTemplates:{get(){return this.getWildcardTopics("openWB/chargepoint/template/+")}},chargePointTemplateList:{get(){let t=[];return Object.keys(this.chargePointTemplates).forEach(e=>{let b=parseInt(e.match(/([0-9]+)/g)[0]),V=this.$store.state.mqtt["openWB/chargepoint/template/"+b].name;t.push({value:b,text:V})}),t}}},methods:{addChargePoint(){this.$emit("sendCommand",{command:"addChargepoint",data:{type:this.chargePointToAdd}})},removeChargePointModal(t,e){t.stopPropagation(),this.modalChargePointIndex=parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1]),this.showChargePointModal=!0},removeChargePoint(t,e){this.showChargePointModal=!1,t=="confirm"&&this.$emit("sendCommand",{command:"removeChargepoint",data:{id:e}})},getChargePointList(){return this.$store.state.mqtt["openWB/general/extern"]===!1?this.$store.state.mqtt["openWB/system/configurable/chargepoints"]:this.$store.state.mqtt["openWB/system/configurable/chargepoints_internal"]},getChargePointName(t){return this.$store.state.mqtt["openWB/chargepoint/"+t+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+t+"/config"].name:"Ladepunkt "+t},getChargePointTemplateIndex(t){return parseInt(t.match(/([^/]+)$/)[0])},getChargePointTemplateName(t){return this.$store.state.mqtt["openWB/chargepoint/template/"+t]?this.$store.state.mqtt["openWB/chargepoint/template/"+t].name:"Profil "+t},addChargePointTemplate(t,e){t.stopPropagation();let b={};e&&(b.copy=this.getChargePointTemplateIndex(e)),this.$emit("sendCommand",{command:"addChargepointTemplate",data:b})},removeChargePointTemplateModal(t,e){t.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.showChargePointTemplateModal=!0},removeChargePointTemplate(t,e){this.showChargePointTemplateModal=!1,t=="confirm"&&this.$emit("sendCommand",{command:"removeChargepointTemplate",data:{id:e}})},addChargePointTemplateAutolockPlan(t){this.$emit("sendCommand",{command:"addAutolockPlan",data:{template:this.getChargePointTemplateIndex(t)}})},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)}}},Ue={class:"chargePointInstallation"},Se={name:"chargePointInstallationForm"},ze={key:0},Ie={key:2},xe={key:0},De={key:0},Ee={key:1},qe={key:0},Me={key:1},Fe={key:0},Oe={key:2},Te={key:4};function Ne(t,e,b,V,_,n){const w=g("openwb-base-modal-dialog"),h=g("font-awesome-icon"),C=g("openwb-base-avatar"),y=g("openwb-base-text-input"),A=g("openwb-base-select-input"),I=g("openwb-charge-point-proxy"),p=g("openwb-base-heading"),k=g("openwb-base-button-group-input"),U=g("openwb-base-card"),H=g("font-awesome-layers"),D=g("openwb-base-alert"),G=g("openwb-base-array-input"),E=g("openwb-base-range-input"),Q=g("openwb-base-number-input"),X=g("template-auto-lock-plan"),Y=g("openwb-base-submit-buttons");return l(),d(B,null,[a(w,{show:_.showChargePointModal,title:"Ladepunkt löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=r=>n.removeChargePoint(r,_.modalChargePointIndex))},{default:o(()=>[s(' Wollen Sie den Ladepunkt "'+v(n.getChargePointName(_.modalChargePointIndex))+'" (ID: '+v(_.modalChargePointIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),a(w,{show:_.showChargePointTemplateModal,title:"Ladepunkt-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[1]||(e[1]=r=>n.removeChargePointTemplate(r,_.modalChargePointTemplateIndex))},{default:o(()=>[s(' Wollen Sie das Ladepunkt-Profil "'+v(n.getChargePointTemplateName(_.modalChargePointTemplateIndex))+'" (ID: '+v(_.modalChargePointTemplateIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),m("div",Ue,[m("form",Se,[a(U,{title:"Ladepunkte",subtype:"primary",collapsible:!0,collapsed:!b.installAssistantActive},{header:o(()=>[a(h,{icon:["fas","charging-station"]}),e[7]||(e[7]=s(" Ladepunkte ",-1))]),default:o(()=>[(l(!0),d(B,null,z(n.installedChargePoints,(r,u)=>(l(),f(U,{key:u,title:r.name+" (ID: "+r.id+")",collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(i=>[i.collapsed?c("",!0):(l(),f(C,{key:0,class:"bg-danger clickable",title:"Ladepunkt löschen",onClick:L=>n.removeChargePointModal(L,u)},{default:o(()=>[a(h,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[a(y,{title:"Bezeichnung",subtype:"text","model-value":r.name,"onUpdate:modelValue":i=>t.updateState(u,i,"name")},null,8,["model-value","onUpdate:modelValue"]),a(y,{title:"Modul",subtype:"text",disabled:"",readonly:"","model-value":t.$store.state.mqtt[u].type},null,8,["model-value"]),r.type!=="internal_openwb"||t.$store.state.mqtt["openWB/general/extern"]===!1?(l(),d("span",ze,[a(A,{title:"Ladepunkt-Profil",options:n.chargePointTemplateList,"model-value":t.$store.state.mqtt[u].template,"onUpdate:modelValue":i=>t.updateState(u,i,"template")},null,8,["options","model-value","onUpdate:modelValue"])])):c("",!0),t.$store.state.mqtt["openWB/optional/ocpp/config"].active===!0?(l(),f(y,{key:1,title:"OCPP-Chargebox ID","model-value":r.ocpp_chargebox_id,"onUpdate:modelValue":i=>t.updateState(u,i,"ocpp_chargebox_id")},{help:o(()=>[...e[8]||(e[8]=[s(" Bitte geben Sie hier die Chargebox ID ein, die im OCPP-Backend für diesen Ladepunkt verwendet wird. Sollen die Daten dieses Ladepunktes nicht an ein OCPP-Backend übertragen werden, lasse dieses Feld leer. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),e[14]||(e[14]=m("hr",null,null,-1)),a(I,{"charge-point":r,"onUpdate:configuration":i=>n.updateConfiguration(u,i)},null,8,["charge-point","onUpdate:configuration"]),(r.type!=="internal_openwb"||t.$store.state.mqtt["openWB/general/extern"]===!1)&&r.charging_type!=="DC"?(l(),d("div",Ie,[e[13]||(e[13]=m("hr",null,null,-1)),a(p,null,{default:o(()=>[...e[9]||(e[9]=[s(" Hardware-Optionen ",-1)])]),_:1,__:[9]}),a(k,{title:"automatische Phasenumschaltung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.auto_phase_switch_hw,"onUpdate:modelValue":i=>t.updateState(u,i,"auto_phase_switch_hw")},null,8,["model-value","onUpdate:modelValue"]),a(k,{title:"Control-Pilot-Unterbrechung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.control_pilot_interruption_hw,"onUpdate:modelValue":i=>t.updateState(u,i,"control_pilot_interruption_hw")},{help:o(()=>[...e[10]||(e[10]=[s(' Die Control-Pilot-Leitung ist im Ladekabel integriert und dient der Steuerung der Fahrzeugladung (An/Aus/Stromvorgaben). Bei einigen Fahrzeugen können durch die Regelung erzwungene, längere Ladestopps (z.B. beim PV-Laden) zu unerwünschten "Einschlaf"-Effekten des Fahrzeuges führen. Mit diesem Feature, welches hardwareseitig verbaut sein muss, kann ein Abstecken des Ladesteckers simuliert werden, um ein Aufwecken des Fahrzeuges zu ermöglichen. Die Funktion hängt immer auch vom Fahrzeugtyp ab. ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),a(p,null,{default:o(()=>[...e[11]||(e[11]=[s(" Elektrischer Anschluss ",-1)])]),_:1,__:[11]}),a(k,{title:"Anzahl angeschlossener Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":r.connected_phases,"onUpdate:modelValue":i=>t.updateState(u,i,"connected_phases")},null,8,["model-value","onUpdate:modelValue"]),a(k,{title:"Phase 1 des Ladekabels",buttons:[{buttonValue:1,text:"EVU L1"},{buttonValue:2,text:"EVU L2"},{buttonValue:3,text:"EVU L3"}],"model-value":r.phase_1,"onUpdate:modelValue":i=>t.updateState(u,i,"phase_1")},{help:o(()=>[...e[12]||(e[12]=[s(" Hier ist anzugeben, an welcher Phase des Hausanschlusses (EVU-Punkt) die Phase 1 dieses Ladepunktes angeschlossen ist. Diese Information wird für das Lastmanagement benötigt, um bei einer Schieflast gezielt einzelne Ladepunkte zu drosseln.",-1),m("br",null,null,-1),s(' Bei mehreren Ladepunkten macht es Sinn, die Phasen der LP rotierend anzuschließen, damit mehrere "nicht-dreiphasig" ladende Fahrzeuge mit optimaler Leistung laden können, bevor das Lastmanagement eingreift.',-1),m("br",null,null,-1),s(" Es wird vorausgesetzt, dass das Drehfeld innerhalb der Installation gleich bleibt. Wenn z.B. L1 des Ladepunktes auf EVU-L2 liegt, muss L2 des Ladepunktes auf EVU-L3 aufgelegt sein (und L3 des Ladepunktes auf EVU-L1).",-1),m("br",null,null,-1),s(" Eine Möglichkeit, die zur Ladepunktphase L1 zugehörige EVU-Phase zu ermitteln, ist eine einphasige Ladung zu starten und die Phasenströme am EVU-Zähler zu beobachten. Mit einem zweiphasig ladenden Fahrzeug kann danach auch der Anschluss von L2 ermittelt und so das Drehfeld kontrolliert werden.",-1),m("br",null,null,-1),s(" Im Zweifel bitte das Drehfeld von einer Fachkraft prüfen und korrigieren lassen. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])])):c("",!0)]),_:2,__:[14]},1032,["title"]))),128)),Object.keys(n.installedChargePoints).length>0?(l(),d("hr",xe)):c("",!0),a(A,{title:"Verfügbare Ladepunkte","not-selected":"Bitte auswählen",options:n.getChargePointList(),"model-value":_.chargePointToAdd,"add-button":!0,"onUpdate:modelValue":e[2]||(e[2]=r=>_.chargePointToAdd=r),"onInput:add":n.addChargePoint},{help:o(()=>e[15]||(e[15]=[s(" Bitte einen Ladepunkt auswählen, der der openWB-Regelung hinzugefügt werden soll.",-1),m("br",null,null,-1),m("ul",null,[m("li",null," Interne openWB - wenn diese openWB über einen verbauten Ladepunkt mit Regelcontroller verfügt (z.B. Standard(+), Custom, Duo, Buchse, NICHT Standalone); ansonsten immer anlegen, egal ob diese openWB steuert = primary oder ferngesteuert wird = secondary "),m("li",null," Secondary openWB - wenn diese openWB (primary) die Fernsteuerung von weiteren openWB (secondary) übernimmt "),m("li",null,"MQTT-Ladepunkt - nur zur Nutzung des openWB-Simulators zugelassen"),m("li",null,"openWB Pro - wenn diese openWB (primary) die Fernsteuerung einer openWB Pro (secondary) übernimmt"),m("li",null," openWB series2 Satellit/Satellit Duo - wenn diese openWB (primary) die Fernsteuerung einer openWB series2 Satellit/Satellit Duo (secondary) übernimmt "),m("li",null," smartWB/EVSE-Wifi - wenn diese openWB (primary) die Fernsteuerung einer smartWB/EVSE-Wifi übernimmt ")],-1)])),_:1},8,["options","model-value","onInput:add"])]),_:1},8,["collapsed"]),e[37]||(e[37]=m("hr",{class:"border-secondary"},null,-1)),a(U,{title:"Ladepunkt-Profile",collapsible:!0,collapsed:!0},{header:o(()=>[a(H,{class:"fa-lg"},{default:o(()=>[a(h,{icon:["far","file"]}),a(h,{icon:["fas","charging-station"],transform:"shrink-8"})]),_:1}),e[16]||(e[16]=s(" Ladepunkt-Profile ",-1))]),actions:o(()=>[t.$store.state.mqtt["openWB/general/extern"]===!1?(l(),f(C,{key:0,class:"bg-success clickable",title:"Neues Ladepunkt-Profil anlegen",onClick:n.addChargePointTemplate},{default:o(()=>[a(h,{icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:o(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(l(),d("div",De,[a(D,{subtype:"info"},{default:o(()=>e[17]||(e[17]=[s(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[17]})])):(l(),d("div",Ee,[(l(!0),d(B,null,z(n.chargePointTemplates,(r,u)=>(l(),f(U,{key:u,title:`${r.name} (ID: ${n.getChargePointTemplateIndex(u)})`,collapsible:!0,collapsed:!0},{actions:o(i=>[i.collapsed==!1?(l(),d("span",qe,[a(C,{class:"bg-success clickable",title:"Ladepunkt-Profil duplizieren",onClick:L=>n.addChargePointTemplate(L,u)},{default:o(()=>[a(h,{icon:["fas","copy"]})]),_:2},1032,["onClick"]),u.endsWith("/0")?c("",!0):(l(),f(C,{key:0,class:"bg-danger clickable ml-1",title:"Ladepunkt-Profil löschen",onClick:L=>n.removeChargePointTemplateModal(L,u)},{default:o(()=>[a(h,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))])):c("",!0)]),default:o(()=>[a(y,{title:"Bezeichnung",subtype:"text","model-value":r.name,disabled:u.endsWith("/0"),"onUpdate:modelValue":i=>t.updateState(u,i,"name")},oe({_:2},[u.endsWith("/0")?{name:"help",fn:o(()=>[e[18]||(e[18]=s(" Das Standard-Profil kann nicht umbenannt werden. ",-1))]),key:"0"}:void 0]),1032,["model-value","disabled","onUpdate:modelValue"]),n.dcChargingEnabled===!0?(l(),f(k,{key:0,title:"Typ des Ladeprofils",buttons:[{buttonValue:"AC",text:"AC"},{buttonValue:"DC",text:"DC"}],"model-value":r.charging_type,"onUpdate:modelValue":i=>t.updateState(u,i,"charging_type")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),e[35]||(e[35]=m("hr",null,null,-1)),a(p,null,{default:o(()=>[...e[19]||(e[19]=[s(" Zugangskontrolle ",-1)])]),_:1,__:[19]}),a(k,{title:"Sperre nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.disable_after_unplug,"onUpdate:modelValue":i=>t.updateState(u,i,"disable_after_unplug")},{help:o(()=>[...e[20]||(e[20]=[s(" Sperrt den Ladepunkt nach Abstecken eines Fahrzeuges. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t.$store.state.mqtt["openWB/optional/rfid/active"]===!0&&!b.installAssistantActive?(l(),d("div",Me,[r.disable_after_unplug?(l(),f(G,{key:0,title:"Zugeordnete ID-Tags","no-elements-message":"Keine ID-Tags zugeordnet.","model-value":r.valid_tags,"onUpdate:modelValue":i=>t.updateState(u,i,"valid_tags")},{help:o(()=>[...e[21]||(e[21]=[s(" Die hier eingetragenen ID-Tags dienen ausschließlich zum Entsperren des Ladepunktes. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0)])):c("",!0),e[36]||(e[36]=m("hr",null,null,-1)),a(p,null,{default:o(()=>[...e[22]||(e[22]=[s(" Angaben zum konfigurierten Ladestrom der openWB ",-1)])]),_:1,__:[22]}),a(D,{subtype:"info"},{default:o(()=>[e[23]||(e[23]=s(" Hier werden die maximalen Ladeströme entsprechend der in dem zugeordneten Ladepunkt genutzten Phasen eingestellt.",-1)),e[24]||(e[24]=m("br",null,null,-1)),e[25]||(e[25]=s(" Generell gilt, dass diese Werte in Übereinstimmung mit der Ausführung des Ladepunktes und des elektrischen Anschlusses bzw. der Absicherung zu wählen sind. ",-1)),r.charging_type==="AC"?(l(),d("span",Fe," Bei einer openWB mit 22kW Maximalleistung sind hier jeweils 32A einzustellen. Ist die openWB beispielsweise auf 11kW begrenzt (KfW-Förderung oder die Zuleitung ist mit 16A abgesichert), dann sind hier jeweils 16A einzustellen. ")):c("",!0),e[26]||(e[26]=m("br",null,null,-1)),e[27]||(e[27]=s(" Komplexere Installationen mit mehreren Ladepunkten werden im ",-1)),e[28]||(e[28]=m("a",{href:"https://github.com/openWB/core/wiki/Lastmanagement-und-kaskadierte-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"},"Wiki zum Lastmanagement",-1)),e[29]||(e[29]=s(" beschrieben. ",-1))]),_:2,__:[23,24,25,26,27,28,29]},1024),r.charging_type==="AC"||n.dcChargingEnabled!==!0?(l(),d("div",Oe,[a(E,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":r.max_current_single_phase,"onUpdate:modelValue":i=>t.updateState(u,i,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),a(E,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":r.max_current_multi_phases,"onUpdate:modelValue":i=>t.updateState(u,i,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"])])):(l(),f(Q,{key:3,title:"Maximalleistung",min:22,max:420,step:1,unit:"kW",precision:5,"model-value":t.ac_current2dc_power(r.dc_max_current),"onUpdate:modelValue":i=>t.updateState(u,t.dc_power2ac_current(i),"dc_max_current")},null,8,["model-value","onUpdate:modelValue"])),b.installAssistantActive?c("",!0):(l(),d("div",Te,[e[34]||(e[34]=m("hr",null,null,-1)),a(p,null,{default:o(()=>[...e[30]||(e[30]=[s(" Sperren nach Uhrzeit (Komplettsperrung - keine Freischaltung per ID-Tag möglich) ",-1)])]),_:1,__:[30]}),a(k,{title:"Sperren nach Uhrzeit aktiv",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.autolock.active,"onUpdate:modelValue":i=>t.updateState(u,i,"autolock.active")},{help:o(()=>[...e[31]||(e[31]=[s(" WirdSperren nach Uhrzeit aktiviert, können Fahrzeugladungen mittels Zeitplan auf gewünschte Zeitbereiche eingeschränkt werden. Dies kann z.B. bei Zugänglichkeiten zu Ladepunkten in öffentlichen oder halb-öffentlichen Bereichen sinnvoll sein. In dieser Zeit ist keine Freischaltung per RFID, Fahrzeugerkennung oder Pin möglich. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),a(k,{title:"Erst nach Ladeende sperren",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.autolock.wait_for_charging_end,"onUpdate:modelValue":i=>t.updateState(u,i,"autolock.wait_for_charging_end")},{help:o(()=>[...e[32]||(e[32]=[s(' Wenn ein Zeitplan Sperren nach Uhrzeit aktiviert, werden alle Ladepunkte direkt gesperrt und laufende Ladevorgänge beendet. Wird hier "Ja" ausgewählt, dann werden laufende Ladevorgänge NICHT beendet und diese Ladepunkte erst nach abgeschlossener Ladung gesperrt. ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),a(p,null,{actions:o(()=>[a(C,{class:"bg-success clickable",title:"Neuen Autolock Zeitplan anlegen",onClick:S(i=>n.addChargePointTemplateAutolockPlan(u),["stop"])},{default:o(()=>[a(h,{icon:["fas","plus"]})]),_:2},1032,["onClick"])]),default:o(()=>[e[33]||(e[33]=s(" Zeitpläne für Sperren nach Uhrzeit ",-1))]),_:2,__:[33]},1024)])),(l(!0),d(B,null,z(r.autolock.plans,(i,L)=>(l(),f(X,{key:L,"model-value":i,"template-id":r.id,"onUpdate:modelValue":x=>t.updateState(u,x,`autolock.plans.${L}`),onSendCommand:e[3]||(e[3]=x=>t.$emit("sendCommand",x))},null,8,["model-value","template-id","onUpdate:modelValue"]))),128))]),_:2,__:[35,36]},1032,["title"]))),128))]))]),_:1}),a(Y,{"form-name":"chargePointInstallationForm",onSave:e[4]||(e[4]=r=>t.$emit("save")),onReset:e[5]||(e[5]=r=>t.$emit("reset")),onDefaults:e[6]||(e[6]=r=>t.$emit("defaults"))})])])],64)}const Re=W(Ae,[["render",Ne],["__scopeId","data-v-75fe5743"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargePointInstallation.vue"]]),He=Object.freeze(Object.defineProperty({__proto__:null,default:Re},Symbol.toStringTag,{value:"Module"}));export{ie as C,ge as a,Re as b,He as c}; +import{l as O,aa as T,al as N,G as R,am as j,an as Z,F as J,d as K,Q as ee,ao as te,M as ne}from"./vendor-fortawesome-d6ee0a65.js";import{_ as P,C as $}from"./index-eccf5556.js";import{_ as q}from"./dynamic-import-helper-be004503.js";import{_ as W,u as g,l,m as d,x as f,E as o,B as s,F as v,G as a,A as m,a2 as M,a3 as F,N as B,q as ae,y as S,z as c,M as z,D as oe}from"./vendor-57e3a63c.js";const le={props:{chargePoint:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},ie=W(le,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/ChargePointConfigMixin.vue"]]),re={name:"ChargePointConfigFallback",mixins:[ie]},se={class:"charge-point-config-fallback"},ue={key:1};function de(t,e,b,V,_,n){const w=g("openwb-base-alert"),h=g("openwb-base-textarea");return l(),d("div",se,[Object.keys(t.chargePoint.configuration).length==0?(l(),f(w,{key:0,subtype:"info"},{default:o(()=>[s(' Der Ladepunkt-Typ "'+v(t.chargePoint.type)+'" bietet keine Einstellungen. ',1)]),_:1})):(l(),d("div",ue,[a(w,{subtype:"warning"},{default:o(()=>[s(' Es wurde keine Konfigurationsseite für den Ladepunkt-Typ "'+v(t.chargePoint.type)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),a(h,{title:"Konfiguration",subtype:"json","model-value":t.chargePoint.configuration,"onUpdate:modelValue":e[0]||(e[0]=C=>t.updateConfiguration(C,"configuration"))},{help:o(()=>e[1]||(e[1]=[s(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),a(w,{subtype:"info"},{default:o(()=>[m("pre",null,v(JSON.stringify(t.chargePoint.configuration,void 0,2)),1)]),_:1})]))])}const pe=W(re,[["render",de],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointConfigFallback.vue"]]),me={props:{chargePoint:{type:Object,required:!0}}},ge=W(me,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/ChargePointCommandsMixin.vue"]]),ce={name:"ChargePointCommandsFallback",mixins:[ge]},be={class:"charge-point-commands-fallback"};function he(t,e,b,V,_,n){return l(),d("div",be)}const fe=W(ce,[["render",he],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointCommandsFallback.vue"]]),_e={name:"OpenwbChargePointProxy",props:{chargePoint:{required:!0,type:Object}},emits:["update:configuration"],methods:{getChargePointSettingsComponent(){return console.debug(`loading charge point settings: ${this.chargePoint.type}`),M({loader:()=>q(Object.assign({"./external_openwb/chargePoint.vue":()=>P(()=>import("./chargePoint-d78b5b66.js"),["assets/chargePoint-d78b5b66.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./internal_openwb/chargePoint.vue":()=>P(()=>import("./chargePoint-3b38c504.js"),["assets/chargePoint-3b38c504.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mqtt/chargePoint.vue":()=>P(()=>import("./chargePoint-d21fff2e.js"),["assets/chargePoint-d21fff2e.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb_dc_adapter/chargePoint.vue":()=>P(()=>import("./chargePoint-86b1ed88.js"),["assets/chargePoint-86b1ed88.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb_pro/chargePoint.vue":()=>P(()=>import("./chargePoint-a5a3af6a.js"),["assets/chargePoint-a5a3af6a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb_series2_satellit/chargePoint.vue":()=>P(()=>import("./chargePoint-97a91d23.js"),["assets/chargePoint-97a91d23.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smartwb/chargePoint.vue":()=>P(()=>import("./chargePoint-3d7477d0.js"),["assets/chargePoint-3d7477d0.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.chargePoint.type}/chargePoint.vue`),errorComponent:pe})},getChargePointCommandsComponent(){return console.debug(`loading charge point commands: ${this.chargePoint.type}`),M({loader:()=>q(Object.assign({"./internal_openwb/commands.vue":()=>P(()=>import("./commands-4c824edc.js"),["assets/commands-4c824edc.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb_pro/commands.vue":()=>P(()=>import("./commands-2be8d876.js"),["assets/commands-2be8d876.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.chargePoint.type}/commands.vue`),errorComponent:fe})},updateConfiguration(t){this.$emit("update:configuration",t)}}};function ke(t,e,b,V,_,n){const w=g("openwb-base-heading");return l(),d(B,null,[a(w,null,{default:o(()=>[s(' Einstellungen für Ladepunkt Typ "'+v(b.chargePoint.type)+'" ',1)]),_:1}),(l(),f(F(n.getChargePointSettingsComponent()),{"charge-point":b.chargePoint,"onUpdate:configuration":e[0]||(e[0]=h=>n.updateConfiguration(h))},null,40,["charge-point"])),e[1]||(e[1]=m("hr",null,null,-1)),a(w,null,{default:o(()=>[s(' Befehle für Ladepunkt Typ "'+v(b.chargePoint.type)+'" ',1)]),_:1}),(l(),f(F(n.getChargePointCommandsComponent()),{"charge-point":b.chargePoint},null,8,["charge-point"]))],64)}const ve=W(_e,[["render",ke],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointProxy.vue"]]);O.add(T,N,R,j,Z);const we={name:"TemplateAutoLockPlan",components:{FontAwesomeIcon:J},mixins:[$],props:{modelValue:{type:Object,required:!0},templateId:{type:Number,required:!0}},emits:["update:modelValue","sendCommand"],data(){return{showRemoveModal:!1}},computed:{plan(){return this.modelValue}},watch:{plan:{handler(t){this.$emit("update:modelValue",t)},deep:!0}},methods:{copyPlan(){this.$emit("sendCommand",{command:"addAutolockPlan",data:{template:this.templateId,copy:this.modelValue.id}})},removePlanModal(){this.showRemoveModal=!0},removePlan(t){this.showRemoveModal=!1,t=="confirm"&&this.$emit("sendCommand",{command:"removeAutolockPlan",data:{template:this.templateId,plan:this.modelValue.id}})}}},Ce={key:0},ye={key:1},Ve={key:2},Pe={key:1},Le={key:2};function Be(t,e,b,V,_,n){const w=g("openwb-base-modal-dialog"),h=g("font-awesome-icon"),C=g("openwb-base-avatar"),y=g("openwb-base-text-input"),A=g("openwb-base-button-group-input"),I=g("openwb-base-card");return l(),d(B,null,[a(w,{show:_.showRemoveModal,title:"Autolock Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:n.removePlan},{default:o(()=>[s(' Wollen Sie den Autolock Zeitplan "'+v(n.plan.name)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),a(I,{title:n.plan.name,collapsible:!0,collapsed:!0},{actions:o(p=>[p.collapsed==!0?(l(),d("span",{key:0,class:ae(["pill clickable",n.plan.active?"bg-success":"bg-danger"]),onClick:e[0]||(e[0]=S(k=>n.plan.active=!n.plan.active,["stop"]))},[a(h,{icon:["fas","clock"]}),s(" "+v(n.plan.time[0])+" - "+v(n.plan.time[1])+" ",1),n.plan.frequency.selected=="once"?(l(),d("span",Ce,[a(h,{icon:["fas","calendar-day"]}),s(" "+v(t.formatDate(n.plan.frequency.once[0])==t.formatDate(n.plan.frequency.once[1])?t.formatDate(n.plan.frequency.once[0]):t.formatDate(n.plan.frequency.once[0])+" - "+t.formatDate(n.plan.frequency.once[1])),1)])):c("",!0),n.plan.frequency.selected=="daily"?(l(),d("span",ye,[a(h,{icon:["fas","calendar-week"]})])):c("",!0),n.plan.frequency.selected=="weekly"?(l(),d("span",Ve,[a(h,{icon:["fas","calendar-alt"]})])):c("",!0)],2)):c("",!0),p.collapsed==!1?(l(),d("span",Pe,[a(C,{class:"bg-success clickable",title:"Autolock Zeitplan duplizieren",onClick:e[1]||(e[1]=S(k=>n.copyPlan(),["stop"]))},{default:o(()=>[a(h,{icon:["fas","copy"]})]),_:1}),a(C,{class:"bg-danger clickable ml-1",title:"Autolock Zeitplan löschen",onClick:e[2]||(e[2]=S(k=>n.removePlanModal(),["stop"]))},{default:o(()=>[a(h,{icon:["fas","trash"]})]),_:1})])):c("",!0)]),default:o(()=>[a(y,{modelValue:n.plan.name,"onUpdate:modelValue":e[3]||(e[3]=p=>n.plan.name=p),title:"Bezeichnung"},null,8,["modelValue"]),a(A,{modelValue:n.plan.active,"onUpdate:modelValue":e[4]||(e[4]=p=>n.plan.active=p),title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"]),a(y,{modelValue:n.plan.time[0],"onUpdate:modelValue":e[5]||(e[5]=p=>n.plan.time[0]=p),title:"Sperren um",subtype:"time"},null,8,["modelValue"]),a(y,{modelValue:n.plan.time[1],"onUpdate:modelValue":e[6]||(e[6]=p=>n.plan.time[1]=p),title:"Freigeben um",subtype:"time"},null,8,["modelValue"]),a(A,{modelValue:n.plan.frequency.selected,"onUpdate:modelValue":e[7]||(e[7]=p=>n.plan.frequency.selected=p),title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}]},null,8,["modelValue"]),n.plan.frequency.selected=="once"?(l(),f(y,{key:0,modelValue:n.plan.frequency.once[0],"onUpdate:modelValue":e[8]||(e[8]=p=>n.plan.frequency.once[0]=p),title:"Sperren ab ...",subtype:"date"},null,8,["modelValue"])):c("",!0),n.plan.frequency.selected=="once"?(l(),f(y,{key:1,modelValue:n.plan.frequency.once[1],"onUpdate:modelValue":e[9]||(e[9]=p=>n.plan.frequency.once[1]=p),title:"... bis",subtype:"date",min:n.plan.frequency.once[0]},null,8,["modelValue","min"])):c("",!0),n.plan.frequency.selected=="weekly"?(l(),d("div",Le,[(l(!0),d(B,null,z(t.weekdays,(p,k)=>(l(),f(A,{key:k,modelValue:n.plan.frequency.weekly[k],"onUpdate:modelValue":U=>n.plan.frequency.weekly[k]=U,title:p,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["modelValue","onUpdate:modelValue","title"]))),128))])):c("",!0)]),_:1},8,["title"])],64)}const We=W(we,[["render",Be],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/TemplateAutoLockPlan.vue"]]);O.add(K,T,N,R,j,Z,ee,te);const Ae={name:"OpenwbChargePointInstallationView",components:{FontAwesomeIcon:J,FontAwesomeLayers:ne,OpenwbChargePointProxy:ve,TemplateAutoLockPlan:We},mixins:[$],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["sendCommand","save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/dc_charging","openWB/optional/ocpp/config","openWB/optional/rfid/active","openWB/chargepoint/+/config","openWB/chargepoint/template/+","openWB/system/configurable/chargepoints","openWB/system/configurable/chargepoints_internal"],chargePointToAdd:void 0,showChargePointModal:!1,modalChargePointIndex:void 0,showChargePointTemplateModal:!1,modalChargePointTemplateIndex:void 0}},computed:{dcChargingEnabled:{get(){return this.$store.state.mqtt["openWB/optional/dc_charging"]}},installedChargePoints:{get(){let t=this.getWildcardTopics("openWB/chargepoint/+/config"),e={};for(const[b,V]of Object.entries(t))(V.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(e[b]=V);return e}},chargePointTemplates:{get(){return this.getWildcardTopics("openWB/chargepoint/template/+")}},chargePointTemplateList:{get(){let t=[];return Object.keys(this.chargePointTemplates).forEach(e=>{let b=parseInt(e.match(/([0-9]+)/g)[0]),V=this.$store.state.mqtt["openWB/chargepoint/template/"+b].name;t.push({value:b,text:V})}),t}}},methods:{addChargePoint(){this.$emit("sendCommand",{command:"addChargepoint",data:{type:this.chargePointToAdd}})},removeChargePointModal(t,e){t.stopPropagation(),this.modalChargePointIndex=parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1]),this.showChargePointModal=!0},removeChargePoint(t,e){this.showChargePointModal=!1,t=="confirm"&&this.$emit("sendCommand",{command:"removeChargepoint",data:{id:e}})},getChargePointList(){return this.$store.state.mqtt["openWB/general/extern"]===!1?this.$store.state.mqtt["openWB/system/configurable/chargepoints"]:this.$store.state.mqtt["openWB/system/configurable/chargepoints_internal"]},getChargePointName(t){return this.$store.state.mqtt["openWB/chargepoint/"+t+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+t+"/config"].name:"Ladepunkt "+t},getChargePointTemplateIndex(t){return parseInt(t.match(/([^/]+)$/)[0])},getChargePointTemplateName(t){return this.$store.state.mqtt["openWB/chargepoint/template/"+t]?this.$store.state.mqtt["openWB/chargepoint/template/"+t].name:"Profil "+t},addChargePointTemplate(t,e){t.stopPropagation();let b={};e&&(b.copy=this.getChargePointTemplateIndex(e)),this.$emit("sendCommand",{command:"addChargepointTemplate",data:b})},removeChargePointTemplateModal(t,e){t.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.showChargePointTemplateModal=!0},removeChargePointTemplate(t,e){this.showChargePointTemplateModal=!1,t=="confirm"&&this.$emit("sendCommand",{command:"removeChargepointTemplate",data:{id:e}})},addChargePointTemplateAutolockPlan(t){this.$emit("sendCommand",{command:"addAutolockPlan",data:{template:this.getChargePointTemplateIndex(t)}})},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)}}},Ue={class:"chargePointInstallation"},Se={name:"chargePointInstallationForm"},ze={key:0},Ie={key:2},xe={key:0},De={key:0},Ee={key:1},qe={key:0},Me={key:1},Fe={key:0},Oe={key:2},Te={key:4};function Ne(t,e,b,V,_,n){const w=g("openwb-base-modal-dialog"),h=g("font-awesome-icon"),C=g("openwb-base-avatar"),y=g("openwb-base-text-input"),A=g("openwb-base-select-input"),I=g("openwb-charge-point-proxy"),p=g("openwb-base-heading"),k=g("openwb-base-button-group-input"),U=g("openwb-base-card"),H=g("font-awesome-layers"),D=g("openwb-base-alert"),G=g("openwb-base-array-input"),E=g("openwb-base-range-input"),Q=g("openwb-base-number-input"),X=g("template-auto-lock-plan"),Y=g("openwb-base-submit-buttons");return l(),d(B,null,[a(w,{show:_.showChargePointModal,title:"Ladepunkt löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=r=>n.removeChargePoint(r,_.modalChargePointIndex))},{default:o(()=>[s(' Wollen Sie den Ladepunkt "'+v(n.getChargePointName(_.modalChargePointIndex))+'" (ID: '+v(_.modalChargePointIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),a(w,{show:_.showChargePointTemplateModal,title:"Ladepunkt-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[1]||(e[1]=r=>n.removeChargePointTemplate(r,_.modalChargePointTemplateIndex))},{default:o(()=>[s(' Wollen Sie das Ladepunkt-Profil "'+v(n.getChargePointTemplateName(_.modalChargePointTemplateIndex))+'" (ID: '+v(_.modalChargePointTemplateIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),m("div",Ue,[m("form",Se,[a(U,{title:"Ladepunkte",subtype:"primary",collapsible:!0,collapsed:!b.installAssistantActive},{header:o(()=>[a(h,{icon:["fas","charging-station"]}),e[7]||(e[7]=s(" Ladepunkte ",-1))]),default:o(()=>[(l(!0),d(B,null,z(n.installedChargePoints,(r,u)=>(l(),f(U,{key:u,title:r.name+" (ID: "+r.id+")",collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(i=>[i.collapsed?c("",!0):(l(),f(C,{key:0,class:"bg-danger clickable",title:"Ladepunkt löschen",onClick:L=>n.removeChargePointModal(L,u)},{default:o(()=>[a(h,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[a(y,{title:"Bezeichnung",subtype:"text","model-value":r.name,"onUpdate:modelValue":i=>t.updateState(u,i,"name")},null,8,["model-value","onUpdate:modelValue"]),a(y,{title:"Modul",subtype:"text",disabled:"",readonly:"","model-value":t.$store.state.mqtt[u].type},null,8,["model-value"]),r.type!=="internal_openwb"||t.$store.state.mqtt["openWB/general/extern"]===!1?(l(),d("span",ze,[a(A,{title:"Ladepunkt-Profil",options:n.chargePointTemplateList,"model-value":t.$store.state.mqtt[u].template,"onUpdate:modelValue":i=>t.updateState(u,i,"template")},null,8,["options","model-value","onUpdate:modelValue"])])):c("",!0),t.$store.state.mqtt["openWB/optional/ocpp/config"].active===!0?(l(),f(y,{key:1,title:"OCPP-Chargebox ID","model-value":r.ocpp_chargebox_id,"onUpdate:modelValue":i=>t.updateState(u,i,"ocpp_chargebox_id")},{help:o(()=>[...e[8]||(e[8]=[s(" Bitte geben Sie hier die Chargebox ID ein, die im OCPP-Backend für diesen Ladepunkt verwendet wird. Sollen die Daten dieses Ladepunktes nicht an ein OCPP-Backend übertragen werden, lasse dieses Feld leer. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),e[14]||(e[14]=m("hr",null,null,-1)),a(I,{"charge-point":r,"onUpdate:configuration":i=>n.updateConfiguration(u,i)},null,8,["charge-point","onUpdate:configuration"]),(r.type!=="internal_openwb"||t.$store.state.mqtt["openWB/general/extern"]===!1)&&r.charging_type!=="DC"?(l(),d("div",Ie,[e[13]||(e[13]=m("hr",null,null,-1)),a(p,null,{default:o(()=>[...e[9]||(e[9]=[s(" Hardware-Optionen ",-1)])]),_:1,__:[9]}),a(k,{title:"automatische Phasenumschaltung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.auto_phase_switch_hw,"onUpdate:modelValue":i=>t.updateState(u,i,"auto_phase_switch_hw")},null,8,["model-value","onUpdate:modelValue"]),a(k,{title:"Control-Pilot-Unterbrechung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.control_pilot_interruption_hw,"onUpdate:modelValue":i=>t.updateState(u,i,"control_pilot_interruption_hw")},{help:o(()=>[...e[10]||(e[10]=[s(' Die Control-Pilot-Leitung ist im Ladekabel integriert und dient der Steuerung der Fahrzeugladung (An/Aus/Stromvorgaben). Bei einigen Fahrzeugen können durch die Regelung erzwungene, längere Ladestopps (z.B. beim PV-Laden) zu unerwünschten "Einschlaf"-Effekten des Fahrzeuges führen. Mit diesem Feature, welches hardwareseitig verbaut sein muss, kann ein Abstecken des Ladesteckers simuliert werden, um ein Aufwecken des Fahrzeuges zu ermöglichen. Die Funktion hängt immer auch vom Fahrzeugtyp ab. ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),a(p,null,{default:o(()=>[...e[11]||(e[11]=[s(" Elektrischer Anschluss ",-1)])]),_:1,__:[11]}),a(k,{title:"Anzahl angeschlossener Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":r.connected_phases,"onUpdate:modelValue":i=>t.updateState(u,i,"connected_phases")},null,8,["model-value","onUpdate:modelValue"]),a(k,{title:"Phase 1 des Ladekabels",buttons:[{buttonValue:1,text:"EVU L1"},{buttonValue:2,text:"EVU L2"},{buttonValue:3,text:"EVU L3"}],"model-value":r.phase_1,"onUpdate:modelValue":i=>t.updateState(u,i,"phase_1")},{help:o(()=>[...e[12]||(e[12]=[s(" Hier ist anzugeben, an welcher Phase des Hausanschlusses (EVU-Punkt) die Phase 1 dieses Ladepunktes angeschlossen ist. Diese Information wird für das Lastmanagement benötigt, um bei einer Schieflast gezielt einzelne Ladepunkte zu drosseln.",-1),m("br",null,null,-1),s(' Bei mehreren Ladepunkten macht es Sinn, die Phasen der LP rotierend anzuschließen, damit mehrere "nicht-dreiphasig" ladende Fahrzeuge mit optimaler Leistung laden können, bevor das Lastmanagement eingreift.',-1),m("br",null,null,-1),s(" Es wird vorausgesetzt, dass das Drehfeld innerhalb der Installation gleich bleibt. Wenn z.B. L1 des Ladepunktes auf EVU-L2 liegt, muss L2 des Ladepunktes auf EVU-L3 aufgelegt sein (und L3 des Ladepunktes auf EVU-L1).",-1),m("br",null,null,-1),s(" Eine Möglichkeit, die zur Ladepunktphase L1 zugehörige EVU-Phase zu ermitteln, ist eine einphasige Ladung zu starten und die Phasenströme am EVU-Zähler zu beobachten. Mit einem zweiphasig ladenden Fahrzeug kann danach auch der Anschluss von L2 ermittelt und so das Drehfeld kontrolliert werden.",-1),m("br",null,null,-1),s(" Im Zweifel bitte das Drehfeld von einer Fachkraft prüfen und korrigieren lassen. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])])):c("",!0)]),_:2,__:[14]},1032,["title"]))),128)),Object.keys(n.installedChargePoints).length>0?(l(),d("hr",xe)):c("",!0),a(A,{title:"Verfügbare Ladepunkte","not-selected":"Bitte auswählen",options:n.getChargePointList(),"model-value":_.chargePointToAdd,"add-button":!0,"onUpdate:modelValue":e[2]||(e[2]=r=>_.chargePointToAdd=r),"onInput:add":n.addChargePoint},{help:o(()=>e[15]||(e[15]=[s(" Bitte einen Ladepunkt auswählen, der der openWB-Regelung hinzugefügt werden soll.",-1),m("br",null,null,-1),m("ul",null,[m("li",null," Interne openWB - wenn diese openWB über einen verbauten Ladepunkt mit Regelcontroller verfügt (z.B. Standard(+), Custom, Duo, Buchse, NICHT Standalone); ansonsten immer anlegen, egal ob diese openWB steuert = primary oder ferngesteuert wird = secondary "),m("li",null," Secondary openWB - wenn diese openWB (primary) die Fernsteuerung von weiteren openWB (secondary) übernimmt "),m("li",null,"MQTT-Ladepunkt - nur zur Nutzung des openWB-Simulators zugelassen"),m("li",null,"openWB Pro - wenn diese openWB (primary) die Fernsteuerung einer openWB Pro (secondary) übernimmt"),m("li",null," openWB series2 Satellit/Satellit Duo - wenn diese openWB (primary) die Fernsteuerung einer openWB series2 Satellit/Satellit Duo (secondary) übernimmt "),m("li",null," smartWB/EVSE-Wifi - wenn diese openWB (primary) die Fernsteuerung einer smartWB/EVSE-Wifi übernimmt ")],-1)])),_:1},8,["options","model-value","onInput:add"])]),_:1},8,["collapsed"]),e[37]||(e[37]=m("hr",{class:"border-secondary"},null,-1)),a(U,{title:"Ladepunkt-Profile",collapsible:!0,collapsed:!0},{header:o(()=>[a(H,{class:"fa-lg"},{default:o(()=>[a(h,{icon:["far","file"]}),a(h,{icon:["fas","charging-station"],transform:"shrink-8"})]),_:1}),e[16]||(e[16]=s(" Ladepunkt-Profile ",-1))]),actions:o(()=>[t.$store.state.mqtt["openWB/general/extern"]===!1?(l(),f(C,{key:0,class:"bg-success clickable",title:"Neues Ladepunkt-Profil anlegen",onClick:n.addChargePointTemplate},{default:o(()=>[a(h,{icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:o(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(l(),d("div",De,[a(D,{subtype:"info"},{default:o(()=>e[17]||(e[17]=[s(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[17]})])):(l(),d("div",Ee,[(l(!0),d(B,null,z(n.chargePointTemplates,(r,u)=>(l(),f(U,{key:u,title:`${r.name} (ID: ${n.getChargePointTemplateIndex(u)})`,collapsible:!0,collapsed:!0},{actions:o(i=>[i.collapsed==!1?(l(),d("span",qe,[a(C,{class:"bg-success clickable",title:"Ladepunkt-Profil duplizieren",onClick:L=>n.addChargePointTemplate(L,u)},{default:o(()=>[a(h,{icon:["fas","copy"]})]),_:2},1032,["onClick"]),u.endsWith("/0")?c("",!0):(l(),f(C,{key:0,class:"bg-danger clickable ml-1",title:"Ladepunkt-Profil löschen",onClick:L=>n.removeChargePointTemplateModal(L,u)},{default:o(()=>[a(h,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))])):c("",!0)]),default:o(()=>[a(y,{title:"Bezeichnung",subtype:"text","model-value":r.name,disabled:u.endsWith("/0"),"onUpdate:modelValue":i=>t.updateState(u,i,"name")},oe({_:2},[u.endsWith("/0")?{name:"help",fn:o(()=>[e[18]||(e[18]=s(" Das Standard-Profil kann nicht umbenannt werden. ",-1))]),key:"0"}:void 0]),1032,["model-value","disabled","onUpdate:modelValue"]),n.dcChargingEnabled===!0?(l(),f(k,{key:0,title:"Typ des Ladeprofils",buttons:[{buttonValue:"AC",text:"AC"},{buttonValue:"DC",text:"DC"}],"model-value":r.charging_type,"onUpdate:modelValue":i=>t.updateState(u,i,"charging_type")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),e[35]||(e[35]=m("hr",null,null,-1)),a(p,null,{default:o(()=>[...e[19]||(e[19]=[s(" Zugangskontrolle ",-1)])]),_:1,__:[19]}),a(k,{title:"Sperre nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.disable_after_unplug,"onUpdate:modelValue":i=>t.updateState(u,i,"disable_after_unplug")},{help:o(()=>[...e[20]||(e[20]=[s(" Sperrt den Ladepunkt nach Abstecken eines Fahrzeuges. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t.$store.state.mqtt["openWB/optional/rfid/active"]===!0&&!b.installAssistantActive?(l(),d("div",Me,[r.disable_after_unplug?(l(),f(G,{key:0,title:"Zugeordnete ID-Tags","no-elements-message":"Keine ID-Tags zugeordnet.","model-value":r.valid_tags,"onUpdate:modelValue":i=>t.updateState(u,i,"valid_tags")},{help:o(()=>[...e[21]||(e[21]=[s(" Die hier eingetragenen ID-Tags dienen ausschließlich zum Entsperren des Ladepunktes. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0)])):c("",!0),e[36]||(e[36]=m("hr",null,null,-1)),a(p,null,{default:o(()=>[...e[22]||(e[22]=[s(" Angaben zum konfigurierten Ladestrom der openWB ",-1)])]),_:1,__:[22]}),a(D,{subtype:"info"},{default:o(()=>[e[23]||(e[23]=s(" Hier werden die maximalen Ladeströme entsprechend der in dem zugeordneten Ladepunkt genutzten Phasen eingestellt.",-1)),e[24]||(e[24]=m("br",null,null,-1)),e[25]||(e[25]=s(" Generell gilt, dass diese Werte in Übereinstimmung mit der Ausführung des Ladepunktes und des elektrischen Anschlusses bzw. der Absicherung zu wählen sind. ",-1)),r.charging_type==="AC"?(l(),d("span",Fe," Bei einer openWB mit 22kW Maximalleistung sind hier jeweils 32A einzustellen. Ist die openWB beispielsweise auf 11kW begrenzt (KfW-Förderung oder die Zuleitung ist mit 16A abgesichert), dann sind hier jeweils 16A einzustellen. ")):c("",!0),e[26]||(e[26]=m("br",null,null,-1)),e[27]||(e[27]=s(" Komplexere Installationen mit mehreren Ladepunkten werden im ",-1)),e[28]||(e[28]=m("a",{href:"https://github.com/openWB/core/wiki/Lastmanagement-und-kaskadierte-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"},"Wiki zum Lastmanagement",-1)),e[29]||(e[29]=s(" beschrieben. ",-1))]),_:2,__:[23,24,25,26,27,28,29]},1024),r.charging_type==="AC"||n.dcChargingEnabled!==!0?(l(),d("div",Oe,[a(E,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":r.max_current_single_phase,"onUpdate:modelValue":i=>t.updateState(u,i,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),a(E,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":r.max_current_multi_phases,"onUpdate:modelValue":i=>t.updateState(u,i,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"])])):(l(),f(Q,{key:3,title:"Maximalleistung",min:22,max:420,step:1,unit:"kW",precision:5,"model-value":t.ac_current2dc_power(r.dc_max_current),"onUpdate:modelValue":i=>t.updateState(u,t.dc_power2ac_current(i),"dc_max_current")},null,8,["model-value","onUpdate:modelValue"])),b.installAssistantActive?c("",!0):(l(),d("div",Te,[e[34]||(e[34]=m("hr",null,null,-1)),a(p,null,{default:o(()=>[...e[30]||(e[30]=[s(" Sperren nach Uhrzeit (Komplettsperrung - keine Freischaltung per ID-Tag möglich) ",-1)])]),_:1,__:[30]}),a(k,{title:"Sperren nach Uhrzeit aktiv",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.autolock.active,"onUpdate:modelValue":i=>t.updateState(u,i,"autolock.active")},{help:o(()=>[...e[31]||(e[31]=[s(" WirdSperren nach Uhrzeit aktiviert, können Fahrzeugladungen mittels Zeitplan auf gewünschte Zeitbereiche eingeschränkt werden. Dies kann z.B. bei Zugänglichkeiten zu Ladepunkten in öffentlichen oder halb-öffentlichen Bereichen sinnvoll sein. In dieser Zeit ist keine Freischaltung per RFID, Fahrzeugerkennung oder Pin möglich. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),a(k,{title:"Erst nach Ladeende sperren",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.autolock.wait_for_charging_end,"onUpdate:modelValue":i=>t.updateState(u,i,"autolock.wait_for_charging_end")},{help:o(()=>[...e[32]||(e[32]=[s(' Wenn ein Zeitplan Sperren nach Uhrzeit aktiviert, werden alle Ladepunkte direkt gesperrt und laufende Ladevorgänge beendet. Wird hier "Ja" ausgewählt, dann werden laufende Ladevorgänge NICHT beendet und diese Ladepunkte erst nach abgeschlossener Ladung gesperrt. ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),a(p,null,{actions:o(()=>[a(C,{class:"bg-success clickable",title:"Neuen Autolock Zeitplan anlegen",onClick:S(i=>n.addChargePointTemplateAutolockPlan(u),["stop"])},{default:o(()=>[a(h,{icon:["fas","plus"]})]),_:2},1032,["onClick"])]),default:o(()=>[e[33]||(e[33]=s(" Zeitpläne für Sperren nach Uhrzeit ",-1))]),_:2,__:[33]},1024)])),(l(!0),d(B,null,z(r.autolock.plans,(i,L)=>(l(),f(X,{key:L,"model-value":i,"template-id":r.id,"onUpdate:modelValue":x=>t.updateState(u,x,`autolock.plans.${L}`),onSendCommand:e[3]||(e[3]=x=>t.$emit("sendCommand",x))},null,8,["model-value","template-id","onUpdate:modelValue"]))),128))]),_:2,__:[35,36]},1032,["title"]))),128))]))]),_:1}),a(Y,{"form-name":"chargePointInstallationForm",onSave:e[4]||(e[4]=r=>t.$emit("save")),onReset:e[5]||(e[5]=r=>t.$emit("reset")),onDefaults:e[6]||(e[6]=r=>t.$emit("defaults"))})])])],64)}const Re=W(Ae,[["render",Ne],["__scopeId","data-v-75fe5743"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargePointInstallation.vue"]]),He=Object.freeze(Object.defineProperty({__proto__:null,default:Re},Symbol.toStringTag,{value:"Module"}));export{ie as C,ge as a,Re as b,He as c}; diff --git a/web/settings/assets/Chart-526b0a77.js b/web/settings/assets/Chart-56d76d74.js similarity index 98% rename from web/settings/assets/Chart-526b0a77.js rename to web/settings/assets/Chart-56d76d74.js index 177cca432c..9b0accf65b 100644 --- a/web/settings/assets/Chart-526b0a77.js +++ b/web/settings/assets/Chart-56d76d74.js @@ -1 +1 @@ -import{l as L,Q as T,_ as H,Z as V,Y as M,a4 as O,a5 as j,F as q}from"./vendor-fortawesome-66071a0e.js";import{C as z}from"./index-93388667.js";import{C as P,p as E,a as B,L as N,b as F,B as K,f as Z,P as $,c as J,T as X,i as G,d as Y,e as U,g as Q}from"./vendor-chartjs-94a826eb.js";import{_ as ee,u as h,l as o,m as s,G as l,E as d,x as _,B as b,A as f,N as k,M as x,F as C,z as v}from"./vendor-25d394b4.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./vendor-luxon-cc86f6dc.js";L.add(T,H,V,M,O,j);P.register(E,B,N,F,K,Z,$,J,X,G,Y);const te={name:"OpenwbChartView",components:{ChartjsLine:U,FontAwesomeIcon:q},mixins:[z],props:{initialChartRange:{type:String,required:!1,validator:function(e){return["day","month","year"].indexOf(e)!==-1},default:"day"},initialDate:{type:String,required:!1,validator:function(e){return e.match(/^(([0-9]{4})(-[0-9]{2}(-[0-9]{2})?)?)?$/g)},default:""}},emits:["sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/log/daily/#","openWB/log/monthly/#","openWB/log/yearly/#","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentDate:"",chartRange:"day",blockChartInit:!1,chartIsLoading:!1,chartRequestDate:{day:"",month:"",year:""},datasetTemplates:{"counter-power_average":{label:"Zähler",unit:"kW",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_exported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 255, 105, 0.7)",backgroundColor:"rgba(0, 255, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported_grid":{label:"Zähler (Netzanteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"#-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported_pv":{label:"Zähler (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"#-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported_bat":{label:"Zähler (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"#-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-power_exported":{label:"PV",unit:"kW",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"inverter-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-energy_exported":{label:"PV",unit:"kWh",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"inverter-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-power_average":{label:"Speicher",unit:"kW",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"battery-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_imported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_exported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-soc":{label:"Speicher SoC",unit:"%",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-power_average":{label:"Ladepunkt",unit:"kW",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"charge-point-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported":{label:"Ladepunkt",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"charge-point-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_grid":{label:"Ladepunkt (Netzanteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_pv":{label:"Ladepunkt (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_bat":{label:"Ladepunkt (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"ev-soc":{label:"Fahrzeug SoC",unit:"%",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-power_average":{label:"SmartHome",unit:"kW",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_imported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_exported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-power_imported":{label:"Hausverbrauch",unit:"kW",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported":{label:"Hausverbrauch",unit:"kWh",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_grid":{label:"Hausverbrauch (Netzanteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_pv":{label:"Hausverbrauch (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_bat":{label:"Hausverbrauch (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}}},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0,callbacks:{label:e=>`${e.dataset.label}: ${e.formattedValue} ${e.dataset.unit}`}},legend:{display:!0},zoom:{pan:{enabled:!0,mode:"x",threshold:5},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"",tooltipFormat:""},display:!0,title:{display:!0,text:""},ticks:{source:"timestamp",font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Leistung [kW]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y2:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Energie [kWh]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y3:{position:"right",type:"linear",display:"auto",suggestedMin:0,suggestedMax:100,title:{font:{size:12},display:!0,text:"SoC [%]"},grid:{display:!1},ticks:{font:{size:12},stepSize:10,maxTicksLimit:11}}}},chartDatasets:{datasets:[]}}},computed:{dateInput(){var e={title:"Datum",type:"date",min:"2018-01-01"};switch(this.chartRange){case"month":e={title:"Monat",type:"month",min:"2018-01"};break;case"year":e={title:"Jahr",type:"year",min:"2018"};break}return e},chartDate:{get(){var e=this.chartRequestDate.year;return this.chartRange!="year"&&(e=e+"-"+this.chartRequestDate.month),this.chartRange=="day"&&(e=e+"-"+this.chartRequestDate.day),e},set(e){let t=e.split("-");this.chartRequestDate.year=t[0],t.length>1?this.chartRequestDate.month=t[1]:this.chartRequestDate.month="",t.length>2?this.chartRequestDate.day=t[2]:this.chartRequestDate.day=""}},chartScaleX(){var e={unit:"minute",tooltipFormat:"DD T",text:"Zeit",maxTicksLimit:24};switch(this.chartRange){case"month":e={unit:"day",tooltipFormat:"DD",text:"Tag",maxTicksLimit:31};break;case"year":e={unit:"month",tooltipFormat:"LLLL yyyy",text:"Monat",maxTicksLimit:12};break}return e},commandData(){var e={date:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day};switch(this.chartRange){case"month":e={date:this.chartRequestDate.year+this.chartRequestDate.month};break;case"year":e={date:this.chartRequestDate.year};break}return e},baseTopic(){var e="openWB/log/";switch(this.chartRange){case"day":e=e+"daily/";break;case"month":e=e+"monthly/";break;case"year":e=e+"yearly/";break}return e},chartDataRead(){return this.chartDataObject!=null},chartDataHasEntries(){return this.chartDataObject?this.chartDataObject.length>0:!1},chartTotals(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"totals")){var e=JSON.parse(JSON.stringify(this.$store.state.mqtt[this.baseTopic+this.commandData.date].totals));return delete e.energy_source,Object.keys(e.counter).forEach(t=>{Object.prototype.hasOwnProperty.call(e.counter[t],"grid")&&delete e.counter[t].grid}),Object.keys(e).forEach(t=>{Object.prototype.hasOwnProperty.call(e[t],"all")&&(Object.keys(e[t]).length<=2&&["bat","pv"].includes(t)?delete e[t].all:e[t]={all:e[t].all,...e[t]})}),e}},chartDataObject(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]){var e=this.$store.state.mqtt[this.baseTopic+this.commandData.date];Object.prototype.hasOwnProperty.call(e,"entries")&&(e=e.entries);var t=JSON.parse(JSON.stringify(e)).map(a=>(a.timestamp=a.timestamp*1e3,a));return t}},chartData(){if(this.chartDataObject){var e=["pv","counter","bat","cp","sh","ev","hc"];const t=this.chartDataObject[this.chartDataObject.length-1];return t&&e.forEach(a=>{Object.prototype.hasOwnProperty.call(t,a)&&(Object.prototype.hasOwnProperty.call(t[a],"all")&&(["bat","pv"].includes(a)&&Object.keys(t[a]).length<=2?delete t[a].all:t[a]={all:t[a].all,...t[a]}),Object.entries(t[a]).forEach(([n,i])=>{Object.keys(i).forEach(r=>{this.initDataset(a,n,r)})}))}),this.chartDatasets}}},watch:{chartRange(){this.init()},chartDataRead:{handler(e){e&&(this.chartIsLoading=!1)},immediate:!0}},mounted(){this.init()},methods:{handleChartClick(e){if(this.chartRange=="day")return;const t=this.$refs.myChart.chart;if(!t)return;const a=Q(t,e);if(!a.length)return;const{datasetIndex:n,index:i}=a[0],r=this.chartData.datasets[n].data[i].date;var u="",g="";switch(this.chartRange){case"month":u=r.substring(0,4)+"-"+r.substring(4,6)+"-"+r.substring(6),g="day";break;case"year":u=r.substring(0,4)+"-"+r.substring(4,6),g="month";break}this.blockChartInit=!0,this.chartDate=u,this.chartRange=g},getCardSubtype(e){switch(e){case"bat":return"warning";case"counter":return"danger";case"cp":return"primary";case"pv":return"success";case"sh":return"pink";default:return"secondary"}},getCardIcon(e){switch(e){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"pv":return["fas","solar-panel"];case"sh":return["fas","house-signal"];case"hc":return["fas","house"];default:return}},hideDataset(e,t,a){return!!(["bat","pv","cp"].includes(e)&&Object.prototype.hasOwnProperty.call(this.chartTotals[e],"all")&&t!="all"||["grid","bat","pv","cp"].includes(a.split("_").pop()))},getTotalsLabel(e,t=void 0,a=void 0){var n="*test*";if(!t&&!a){switch(e){case"bat":return"Speicher";case"counter":return"Zähler";case"pv":return"Wechselrichter";case"cp":return"Ladepunkte";case"sh":return"SmartHome-Geräte";case"hc":return"Hausverbrauch";default:console.warn("unknown group key:",e)}return"*"+e+"*"}if(t&&!a){if(t=="all")return"Summe";if(Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names"))return this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[t]}if(t&&a){switch(e){case"bat":case"cp":switch(a){case"imported":case"energy_imported":return"Ladung";case"exported":case"energy_exported":return"Entladung";case"energy_imported_grid":return"Ladung (Netz-Anteil)";case"energy_imported_pv":return"Ladung (PV-Anteil)";case"energy_imported_bat":return"Ladung (Speicher-Anteil)";case"energy_imported_cp":return"Ladung (Ladepunkt-Anteil)";default:console.warn("unknown measurement key:",e,a)}break;case"counter":switch(a){case"imported":case"energy_imported":return"Bezug/Verbrauch";case"exported":case"energy_exported":return"Einspeisung/Erzeugung";case"energy_imported_grid":return"Verbrauch (Netz-Anteil)";case"energy_imported_pv":return"Verbrauch (PV-Anteil)";case"energy_imported_bat":return"Verbrauch (Speicher-Anteil)";case"energy_imported_cp":return"Verbrauch (Ladepunkt-Anteil)";default:console.warn("unknown measurement key:",e,a)}break;case"pv":switch(a){case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,a)}break;case"sh":switch(a){case"imported":case"energy_imported":return"Verbrauch";case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,a)}break;case"hc":switch(a){case"imported":case"energy_imported":return"Verbrauch";case"energy_imported_grid":return"Verbrauch (Netz-Anteil)";case"energy_imported_pv":return"Verbrauch (PV-Anteil)";case"energy_imported_bat":return"Verbrauch (Speicher-Anteil)";case"energy_imported_cp":return"Verbrauch (Ladepunkt-Anteil)";default:console.warn("unknown measurement key:",e,a)}break;default:console.warn("unknown group key:",e)}return"*"+e+"+"+t+"+"+a+"*"}return n},getDatasetLabel(e,t,a,n){var i=["*"+n],r=[];if(t=="all")switch(e!=="hc"&&r.push("Summe"),e){case"pv":i=["PV"];break;case"bat":switch(i=["Speicher"],a){case"soc":i.push("SoC");break}break;case"cp":i=["Ladepunkte"];break;case"hc":i=["Hausverbrauch"]}else Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names")&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date].names,t)&&(i=[this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[t]]);switch(e){case"bat":case"ev":case"cp":switch(a){case"soc":r.push("SoC");break;case"energy_imported":r.push("Ladung");break;case"energy_exported":r.push("Entladung");break;case"energy_imported_grid":r.push("Netz-Anteil");break;case"energy_imported_pv":r.push("PV-Anteil");break;case"energy_imported_bat":r.push("Speicher-Anteil");break;case"energy_imported_cp":r.push("Ladepunkt-Anteil");break}break;case"counter":switch(a){case"energy_imported":r.push("Bezug/Verbrauch");break;case"energy_exported":r.push("Einspeisung/Erzeugung");break;case"energy_imported_grid":r.push("Netz-Anteil");break;case"energy_imported_pv":r.push("PV-Anteil");break;case"energy_imported_bat":r.push("Speicher-Anteil");break;case"energy_imported_cp":r.push("Ladepunkt-Anteil");break}break;case"sh":switch(a){case"energy_imported":r.push("Verbrauch");break;case"energy_exported":r.push("Erzeugung");break}break;case"hc":switch(a){case"energy_imported_grid":r.push("Netz-Anteil");break;case"energy_imported_pv":r.push("PV-Anteil");break;case"energy_imported_bat":r.push("Speicher-Anteil");break;case"energy_imported_cp":r.push("Ladepunkt-Anteil");break}break}return`${i.join(" ")}${r.length?" ("+r.join(", ")+")":""}`},getDatasetIndex(e){let t=this.chartDatasets.datasets.findIndex(a=>a.jsonKey==e);if(t!=-1)return t},updateDatasetStack(e,t,a){if(e){if(t=="all"&&!["grid","pv","bat","cp"].includes(a.split("_").slice(-1)[0])){console.debug("not stacking totals for:",e,t,a);return}return e.includes("#")?(console.debug("updating stack template:",e,t,a),e.replace("#",t)):e}},addDataset(e,t,a,n){if(console.debug("adding dataset:",e,t,a,n),!(Object.prototype.hasOwnProperty.call(this.chartTotals,e)&&!Object.prototype.hasOwnProperty.call(this.chartTotals[e],t))){var i=e+"-"+a;if(this.datasetTemplates[i]){var r=JSON.parse(JSON.stringify(this.datasetTemplates[i]));return r.parsing.yAxisKey=n,r.jsonKey=n,r.data=this.chartDataObject,r.label=this.getDatasetLabel(e,t,a,n),r.labelSuffix!=null&&(r.label=r.label+r.labelSuffix),r.hidden=this.hideDataset(e,t,a),r.stack=this.updateDatasetStack(r.stack,t,a),this.chartDatasets.datasets.push(r)-1}else console.warn("no matching template found for: "+n+" with template: "+i)}},initDataset(e,t,a){var n=[];this.chartRange=="day"?n={counter:["power_average"],pv:["power_exported"],bat:["power_average","soc"],cp:["power_average"],sh:["power_average"],ev:["soc"],hc:["power_imported"]}:n={counter:["energy_imported","energy_exported","energy_imported_grid","energy_imported_pv","energy_imported_bat"],pv:["energy_exported"],bat:["energy_imported","energy_exported"],cp:["energy_imported","energy_imported_grid","energy_imported_pv","energy_imported_bat"],sh:["energy_imported","energy_exported"],ev:[],hc:["energy_imported","energy_imported_grid","energy_imported_pv","energy_imported_bat"]};const i=e+"."+t+"."+a;if(n[e].includes(a)){var r=this.getDatasetIndex(i);r==null&&(r=this.addDataset(e,t,a,i))}else console.debug("skipping dataset:",i)},setupScaleX(){this.chartOptions.scales.x.time.unit=this.chartScaleX.unit,this.chartOptions.scales.x.time.tooltipFormat=this.chartScaleX.tooltipFormat,this.chartOptions.scales.x.title.text=this.chartScaleX.text,this.chartOptions.scales.x.ticks.maxTicksLimit=this.chartScaleX.maxTicksLimit},requestChart(){if(document.forms.chartFilterForm.reportValidity()){this.chartIsLoading=!0,this.setupScaleX(),this.chartDatasets.datasets=[];var t="";switch(this.chartRange){case"day":t="getDailyLog";break;case"month":t="getMonthlyLog";break;case"year":t="getYearlyLog";break}this.$emit("sendCommand",{command:t,data:this.commandData})}else{console.warn("form invalid");return}},clearChartData(){this.getWildcardIndexList(this.baseTopic+"+").forEach(e=>{this.$store.commit("removeTopic",`${this.baseTopic}${e}`)})},updateChart(){this.clearChartData(),this.requestChart()},init(){const e=new Date;this.currentDate=String(e.getFullYear()),this.chartRange!="year"&&(this.currentDate=this.currentDate+"-"+String(e.getMonth()+1).padStart(2,"0")),this.chartRange=="day"&&(this.currentDate=this.currentDate+"-"+String(e.getDate()).padStart(2,"0")),this.blockChartInit?this.blockChartInit=!1:this.initialDate==null||this.initialDate==""?this.chartDate=this.currentDate:this.chartDate=this.initialDate,this.updateChart()}}},re={class:"chart"},ae={key:0},ie={key:1},ne={name:"chartFilterForm"},oe={key:1},se={key:1},le={class:"openwb-chart"},de={name:"chartTotalsForm"},ce={key:1};function ue(e,t,a,n,i,r){const u=h("openwb-base-alert"),g=h("openwb-base-select-input"),A=h("openwb-base-text-input"),y=h("openwb-base-card"),S=h("chartjs-line"),R=h("font-awesome-icon"),w=h("openwb-base-heading");return o(),s("div",re,[e.$store.state.mqtt["openWB/general/extern"]===!0?(o(),s("div",ae,[l(u,{subtype:"info"},{default:d(()=>t[3]||(t[3]=[b(' Die Auswertungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. Du findest alle Auswertungen in der openWB, welche sich im Steuerungsmodus "primary" befindet. ',-1)])),_:1,__:[3]})])):(o(),s("div",ie,[l(y,{title:"Filter",collapsible:!0,collapsed:!1},{default:d(()=>[f("form",ne,[l(g,{modelValue:i.chartRange,"onUpdate:modelValue":t[0]||(t[0]=p=>i.chartRange=p),title:"Zeitraum",options:[{value:"day",text:"Tag"},{value:"month",text:"Monat"},{value:"year",text:"Jahr"}]},null,8,["modelValue"]),l(A,{modelValue:r.chartDate,"onUpdate:modelValue":[t[1]||(t[1]=p=>r.chartDate=p),t[2]||(t[2]=p=>r.updateChart())],title:r.dateInput.title,subtype:r.dateInput.type,min:r.dateInput.min,max:i.currentDate,"show-quick-buttons":!0},null,8,["modelValue","title","subtype","min","max"])])]),_:1}),i.chartIsLoading?(o(),_(u,{key:0,subtype:"info"},{default:d(()=>t[4]||(t[4]=[b(" Daten werden geladen... ",-1)])),_:1,__:[4]})):(o(),s("div",oe,[r.chartDataHasEntries?(o(),s("div",se,[l(y,{title:"Diagramm",collapsible:!0,collapsed:!1},{default:d(()=>[f("div",le,[l(S,{ref:"myChart",data:r.chartData,options:i.chartOptions,onClick:r.handleChartClick},null,8,["data","options","onClick"])])]),_:1}),l(y,{title:"Summen",collapsible:!0,collapsed:!0},{default:d(()=>[f("form",de,[(o(!0),s(k,null,x(r.chartTotals,(p,c)=>(o(),s("div",{key:c},[Object.keys(p).length>0?(o(),_(y,{key:0,collapsible:!0,collapsed:!0,subtype:r.getCardSubtype(c)},{header:d(()=>[l(R,{icon:r.getCardIcon(c)},null,8,["icon"]),b(" "+C(r.getTotalsLabel(c)),1)]),default:d(()=>[(o(!0),s(k,null,x(p,(I,m)=>(o(),s("div",{key:m},[c!=="hc"?(o(),_(w,{key:0},{default:d(()=>[b(C(r.getTotalsLabel(c,m)),1)]),_:2},1024)):v("",!0),(o(!0),s(k,null,x(I,(W,D)=>(o(),s("div",{key:D},[l(A,{title:r.getTotalsLabel(c,m,D),readonly:"",class:"text-right",unit:"kWh","model-value":e.formatNumber(W/1e3,3)},null,8,["title","model-value"])]))),128)),m=="all"&&c!="hc"?(o(),s("hr",ce)):v("",!0)]))),128))]),_:2},1032,["subtype"])):v("",!0)]))),128))])]),_:1})])):(o(),_(u,{key:0,subtype:"info"},{default:d(()=>t[5]||(t[5]=[b(" Es konnten keine Daten für diesen Zeitraum gefunden werden. ",-1)])),_:1,__:[5]}))]))]))])}const xe=ee(te,[["render",ue],["__scopeId","data-v-e00a7cd5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Chart.vue"]]);export{xe as default}; +import{l as L,Q as T,_ as H,Z as V,Y as M,a4 as O,a5 as j,F as q}from"./vendor-fortawesome-d6ee0a65.js";import{C as z}from"./index-eccf5556.js";import{C as P,p as E,a as B,L as N,b as F,B as K,f as Z,P as $,c as J,T as X,i as G,d as Y,e as U,g as Q}from"./vendor-chartjs-b3bc0878.js";import{_ as ee,u as h,l as o,m as s,G as l,E as d,x as _,B as b,A as f,N as k,M as x,F as C,z as v}from"./vendor-57e3a63c.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./vendor-luxon-cc86f6dc.js";L.add(T,H,V,M,O,j);P.register(E,B,N,F,K,Z,$,J,X,G,Y);const te={name:"OpenwbChartView",components:{ChartjsLine:U,FontAwesomeIcon:q},mixins:[z],props:{initialChartRange:{type:String,required:!1,validator:function(e){return["day","month","year"].indexOf(e)!==-1},default:"day"},initialDate:{type:String,required:!1,validator:function(e){return e.match(/^(([0-9]{4})(-[0-9]{2}(-[0-9]{2})?)?)?$/g)},default:""}},emits:["sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/log/daily/#","openWB/log/monthly/#","openWB/log/yearly/#","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentDate:"",chartRange:"day",blockChartInit:!1,chartIsLoading:!1,chartRequestDate:{day:"",month:"",year:""},datasetTemplates:{"counter-power_average":{label:"Zähler",unit:"kW",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_exported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 255, 105, 0.7)",backgroundColor:"rgba(0, 255, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported_grid":{label:"Zähler (Netzanteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"#-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported_pv":{label:"Zähler (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"#-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported_bat":{label:"Zähler (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"#-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-power_exported":{label:"PV",unit:"kW",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"inverter-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-energy_exported":{label:"PV",unit:"kWh",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"inverter-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-power_average":{label:"Speicher",unit:"kW",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"battery-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_imported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_exported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-soc":{label:"Speicher SoC",unit:"%",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-power_average":{label:"Ladepunkt",unit:"kW",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"charge-point-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported":{label:"Ladepunkt",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"charge-point-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_grid":{label:"Ladepunkt (Netzanteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_pv":{label:"Ladepunkt (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_bat":{label:"Ladepunkt (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"ev-soc":{label:"Fahrzeug SoC",unit:"%",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-power_average":{label:"SmartHome",unit:"kW",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_imported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_exported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-power_imported":{label:"Hausverbrauch",unit:"kW",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported":{label:"Hausverbrauch",unit:"kWh",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_grid":{label:"Hausverbrauch (Netzanteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_pv":{label:"Hausverbrauch (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_bat":{label:"Hausverbrauch (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}}},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0,callbacks:{label:e=>`${e.dataset.label}: ${e.formattedValue} ${e.dataset.unit}`}},legend:{display:!0},zoom:{pan:{enabled:!0,mode:"x",threshold:5},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"",tooltipFormat:""},display:!0,title:{display:!0,text:""},ticks:{source:"timestamp",font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Leistung [kW]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y2:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Energie [kWh]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y3:{position:"right",type:"linear",display:"auto",suggestedMin:0,suggestedMax:100,title:{font:{size:12},display:!0,text:"SoC [%]"},grid:{display:!1},ticks:{font:{size:12},stepSize:10,maxTicksLimit:11}}}},chartDatasets:{datasets:[]}}},computed:{dateInput(){var e={title:"Datum",type:"date",min:"2018-01-01"};switch(this.chartRange){case"month":e={title:"Monat",type:"month",min:"2018-01"};break;case"year":e={title:"Jahr",type:"year",min:"2018"};break}return e},chartDate:{get(){var e=this.chartRequestDate.year;return this.chartRange!="year"&&(e=e+"-"+this.chartRequestDate.month),this.chartRange=="day"&&(e=e+"-"+this.chartRequestDate.day),e},set(e){let t=e.split("-");this.chartRequestDate.year=t[0],t.length>1?this.chartRequestDate.month=t[1]:this.chartRequestDate.month="",t.length>2?this.chartRequestDate.day=t[2]:this.chartRequestDate.day=""}},chartScaleX(){var e={unit:"minute",tooltipFormat:"DD T",text:"Zeit",maxTicksLimit:24};switch(this.chartRange){case"month":e={unit:"day",tooltipFormat:"DD",text:"Tag",maxTicksLimit:31};break;case"year":e={unit:"month",tooltipFormat:"LLLL yyyy",text:"Monat",maxTicksLimit:12};break}return e},commandData(){var e={date:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day};switch(this.chartRange){case"month":e={date:this.chartRequestDate.year+this.chartRequestDate.month};break;case"year":e={date:this.chartRequestDate.year};break}return e},baseTopic(){var e="openWB/log/";switch(this.chartRange){case"day":e=e+"daily/";break;case"month":e=e+"monthly/";break;case"year":e=e+"yearly/";break}return e},chartDataRead(){return this.chartDataObject!=null},chartDataHasEntries(){return this.chartDataObject?this.chartDataObject.length>0:!1},chartTotals(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"totals")){var e=JSON.parse(JSON.stringify(this.$store.state.mqtt[this.baseTopic+this.commandData.date].totals));return delete e.energy_source,Object.keys(e.counter).forEach(t=>{Object.prototype.hasOwnProperty.call(e.counter[t],"grid")&&delete e.counter[t].grid}),Object.keys(e).forEach(t=>{Object.prototype.hasOwnProperty.call(e[t],"all")&&(Object.keys(e[t]).length<=2&&["bat","pv"].includes(t)?delete e[t].all:e[t]={all:e[t].all,...e[t]})}),e}},chartDataObject(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]){var e=this.$store.state.mqtt[this.baseTopic+this.commandData.date];Object.prototype.hasOwnProperty.call(e,"entries")&&(e=e.entries);var t=JSON.parse(JSON.stringify(e)).map(a=>(a.timestamp=a.timestamp*1e3,a));return t}},chartData(){if(this.chartDataObject){var e=["pv","counter","bat","cp","sh","ev","hc"];const t=this.chartDataObject[this.chartDataObject.length-1];return t&&e.forEach(a=>{Object.prototype.hasOwnProperty.call(t,a)&&(Object.prototype.hasOwnProperty.call(t[a],"all")&&(["bat","pv"].includes(a)&&Object.keys(t[a]).length<=2?delete t[a].all:t[a]={all:t[a].all,...t[a]}),Object.entries(t[a]).forEach(([n,i])=>{Object.keys(i).forEach(r=>{this.initDataset(a,n,r)})}))}),this.chartDatasets}}},watch:{chartRange(){this.init()},chartDataRead:{handler(e){e&&(this.chartIsLoading=!1)},immediate:!0}},mounted(){this.init()},methods:{handleChartClick(e){if(this.chartRange=="day")return;const t=this.$refs.myChart.chart;if(!t)return;const a=Q(t,e);if(!a.length)return;const{datasetIndex:n,index:i}=a[0],r=this.chartData.datasets[n].data[i].date;var u="",g="";switch(this.chartRange){case"month":u=r.substring(0,4)+"-"+r.substring(4,6)+"-"+r.substring(6),g="day";break;case"year":u=r.substring(0,4)+"-"+r.substring(4,6),g="month";break}this.blockChartInit=!0,this.chartDate=u,this.chartRange=g},getCardSubtype(e){switch(e){case"bat":return"warning";case"counter":return"danger";case"cp":return"primary";case"pv":return"success";case"sh":return"pink";default:return"secondary"}},getCardIcon(e){switch(e){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"pv":return["fas","solar-panel"];case"sh":return["fas","house-signal"];case"hc":return["fas","house"];default:return}},hideDataset(e,t,a){return!!(["bat","pv","cp"].includes(e)&&Object.prototype.hasOwnProperty.call(this.chartTotals[e],"all")&&t!="all"||["grid","bat","pv","cp"].includes(a.split("_").pop()))},getTotalsLabel(e,t=void 0,a=void 0){var n="*test*";if(!t&&!a){switch(e){case"bat":return"Speicher";case"counter":return"Zähler";case"pv":return"Wechselrichter";case"cp":return"Ladepunkte";case"sh":return"SmartHome-Geräte";case"hc":return"Hausverbrauch";default:console.warn("unknown group key:",e)}return"*"+e+"*"}if(t&&!a){if(t=="all")return"Summe";if(Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names"))return this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[t]}if(t&&a){switch(e){case"bat":case"cp":switch(a){case"imported":case"energy_imported":return"Ladung";case"exported":case"energy_exported":return"Entladung";case"energy_imported_grid":return"Ladung (Netz-Anteil)";case"energy_imported_pv":return"Ladung (PV-Anteil)";case"energy_imported_bat":return"Ladung (Speicher-Anteil)";case"energy_imported_cp":return"Ladung (Ladepunkt-Anteil)";default:console.warn("unknown measurement key:",e,a)}break;case"counter":switch(a){case"imported":case"energy_imported":return"Bezug/Verbrauch";case"exported":case"energy_exported":return"Einspeisung/Erzeugung";case"energy_imported_grid":return"Verbrauch (Netz-Anteil)";case"energy_imported_pv":return"Verbrauch (PV-Anteil)";case"energy_imported_bat":return"Verbrauch (Speicher-Anteil)";case"energy_imported_cp":return"Verbrauch (Ladepunkt-Anteil)";default:console.warn("unknown measurement key:",e,a)}break;case"pv":switch(a){case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,a)}break;case"sh":switch(a){case"imported":case"energy_imported":return"Verbrauch";case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,a)}break;case"hc":switch(a){case"imported":case"energy_imported":return"Verbrauch";case"energy_imported_grid":return"Verbrauch (Netz-Anteil)";case"energy_imported_pv":return"Verbrauch (PV-Anteil)";case"energy_imported_bat":return"Verbrauch (Speicher-Anteil)";case"energy_imported_cp":return"Verbrauch (Ladepunkt-Anteil)";default:console.warn("unknown measurement key:",e,a)}break;default:console.warn("unknown group key:",e)}return"*"+e+"+"+t+"+"+a+"*"}return n},getDatasetLabel(e,t,a,n){var i=["*"+n],r=[];if(t=="all")switch(e!=="hc"&&r.push("Summe"),e){case"pv":i=["PV"];break;case"bat":switch(i=["Speicher"],a){case"soc":i.push("SoC");break}break;case"cp":i=["Ladepunkte"];break;case"hc":i=["Hausverbrauch"]}else Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names")&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date].names,t)&&(i=[this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[t]]);switch(e){case"bat":case"ev":case"cp":switch(a){case"soc":r.push("SoC");break;case"energy_imported":r.push("Ladung");break;case"energy_exported":r.push("Entladung");break;case"energy_imported_grid":r.push("Netz-Anteil");break;case"energy_imported_pv":r.push("PV-Anteil");break;case"energy_imported_bat":r.push("Speicher-Anteil");break;case"energy_imported_cp":r.push("Ladepunkt-Anteil");break}break;case"counter":switch(a){case"energy_imported":r.push("Bezug/Verbrauch");break;case"energy_exported":r.push("Einspeisung/Erzeugung");break;case"energy_imported_grid":r.push("Netz-Anteil");break;case"energy_imported_pv":r.push("PV-Anteil");break;case"energy_imported_bat":r.push("Speicher-Anteil");break;case"energy_imported_cp":r.push("Ladepunkt-Anteil");break}break;case"sh":switch(a){case"energy_imported":r.push("Verbrauch");break;case"energy_exported":r.push("Erzeugung");break}break;case"hc":switch(a){case"energy_imported_grid":r.push("Netz-Anteil");break;case"energy_imported_pv":r.push("PV-Anteil");break;case"energy_imported_bat":r.push("Speicher-Anteil");break;case"energy_imported_cp":r.push("Ladepunkt-Anteil");break}break}return`${i.join(" ")}${r.length?" ("+r.join(", ")+")":""}`},getDatasetIndex(e){let t=this.chartDatasets.datasets.findIndex(a=>a.jsonKey==e);if(t!=-1)return t},updateDatasetStack(e,t,a){if(e){if(t=="all"&&!["grid","pv","bat","cp"].includes(a.split("_").slice(-1)[0])){console.debug("not stacking totals for:",e,t,a);return}return e.includes("#")?(console.debug("updating stack template:",e,t,a),e.replace("#",t)):e}},addDataset(e,t,a,n){if(console.debug("adding dataset:",e,t,a,n),!(Object.prototype.hasOwnProperty.call(this.chartTotals,e)&&!Object.prototype.hasOwnProperty.call(this.chartTotals[e],t))){var i=e+"-"+a;if(this.datasetTemplates[i]){var r=JSON.parse(JSON.stringify(this.datasetTemplates[i]));return r.parsing.yAxisKey=n,r.jsonKey=n,r.data=this.chartDataObject,r.label=this.getDatasetLabel(e,t,a,n),r.labelSuffix!=null&&(r.label=r.label+r.labelSuffix),r.hidden=this.hideDataset(e,t,a),r.stack=this.updateDatasetStack(r.stack,t,a),this.chartDatasets.datasets.push(r)-1}else console.warn("no matching template found for: "+n+" with template: "+i)}},initDataset(e,t,a){var n=[];this.chartRange=="day"?n={counter:["power_average"],pv:["power_exported"],bat:["power_average","soc"],cp:["power_average"],sh:["power_average"],ev:["soc"],hc:["power_imported"]}:n={counter:["energy_imported","energy_exported","energy_imported_grid","energy_imported_pv","energy_imported_bat"],pv:["energy_exported"],bat:["energy_imported","energy_exported"],cp:["energy_imported","energy_imported_grid","energy_imported_pv","energy_imported_bat"],sh:["energy_imported","energy_exported"],ev:[],hc:["energy_imported","energy_imported_grid","energy_imported_pv","energy_imported_bat"]};const i=e+"."+t+"."+a;if(n[e].includes(a)){var r=this.getDatasetIndex(i);r==null&&(r=this.addDataset(e,t,a,i))}else console.debug("skipping dataset:",i)},setupScaleX(){this.chartOptions.scales.x.time.unit=this.chartScaleX.unit,this.chartOptions.scales.x.time.tooltipFormat=this.chartScaleX.tooltipFormat,this.chartOptions.scales.x.title.text=this.chartScaleX.text,this.chartOptions.scales.x.ticks.maxTicksLimit=this.chartScaleX.maxTicksLimit},requestChart(){if(document.forms.chartFilterForm.reportValidity()){this.chartIsLoading=!0,this.setupScaleX(),this.chartDatasets.datasets=[];var t="";switch(this.chartRange){case"day":t="getDailyLog";break;case"month":t="getMonthlyLog";break;case"year":t="getYearlyLog";break}this.$emit("sendCommand",{command:t,data:this.commandData})}else{console.warn("form invalid");return}},clearChartData(){this.getWildcardIndexList(this.baseTopic+"+").forEach(e=>{this.$store.commit("removeTopic",`${this.baseTopic}${e}`)})},updateChart(){this.clearChartData(),this.requestChart()},init(){const e=new Date;this.currentDate=String(e.getFullYear()),this.chartRange!="year"&&(this.currentDate=this.currentDate+"-"+String(e.getMonth()+1).padStart(2,"0")),this.chartRange=="day"&&(this.currentDate=this.currentDate+"-"+String(e.getDate()).padStart(2,"0")),this.blockChartInit?this.blockChartInit=!1:this.initialDate==null||this.initialDate==""?this.chartDate=this.currentDate:this.chartDate=this.initialDate,this.updateChart()}}},re={class:"chart"},ae={key:0},ie={key:1},ne={name:"chartFilterForm"},oe={key:1},se={key:1},le={class:"openwb-chart"},de={name:"chartTotalsForm"},ce={key:1};function ue(e,t,a,n,i,r){const u=h("openwb-base-alert"),g=h("openwb-base-select-input"),A=h("openwb-base-text-input"),y=h("openwb-base-card"),S=h("chartjs-line"),R=h("font-awesome-icon"),w=h("openwb-base-heading");return o(),s("div",re,[e.$store.state.mqtt["openWB/general/extern"]===!0?(o(),s("div",ae,[l(u,{subtype:"info"},{default:d(()=>t[3]||(t[3]=[b(' Die Auswertungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. Du findest alle Auswertungen in der openWB, welche sich im Steuerungsmodus "primary" befindet. ',-1)])),_:1,__:[3]})])):(o(),s("div",ie,[l(y,{title:"Filter",collapsible:!0,collapsed:!1},{default:d(()=>[f("form",ne,[l(g,{modelValue:i.chartRange,"onUpdate:modelValue":t[0]||(t[0]=p=>i.chartRange=p),title:"Zeitraum",options:[{value:"day",text:"Tag"},{value:"month",text:"Monat"},{value:"year",text:"Jahr"}]},null,8,["modelValue"]),l(A,{modelValue:r.chartDate,"onUpdate:modelValue":[t[1]||(t[1]=p=>r.chartDate=p),t[2]||(t[2]=p=>r.updateChart())],title:r.dateInput.title,subtype:r.dateInput.type,min:r.dateInput.min,max:i.currentDate,"show-quick-buttons":!0},null,8,["modelValue","title","subtype","min","max"])])]),_:1}),i.chartIsLoading?(o(),_(u,{key:0,subtype:"info"},{default:d(()=>t[4]||(t[4]=[b(" Daten werden geladen... ",-1)])),_:1,__:[4]})):(o(),s("div",oe,[r.chartDataHasEntries?(o(),s("div",se,[l(y,{title:"Diagramm",collapsible:!0,collapsed:!1},{default:d(()=>[f("div",le,[l(S,{ref:"myChart",data:r.chartData,options:i.chartOptions,onClick:r.handleChartClick},null,8,["data","options","onClick"])])]),_:1}),l(y,{title:"Summen",collapsible:!0,collapsed:!0},{default:d(()=>[f("form",de,[(o(!0),s(k,null,x(r.chartTotals,(p,c)=>(o(),s("div",{key:c},[Object.keys(p).length>0?(o(),_(y,{key:0,collapsible:!0,collapsed:!0,subtype:r.getCardSubtype(c)},{header:d(()=>[l(R,{icon:r.getCardIcon(c)},null,8,["icon"]),b(" "+C(r.getTotalsLabel(c)),1)]),default:d(()=>[(o(!0),s(k,null,x(p,(I,m)=>(o(),s("div",{key:m},[c!=="hc"?(o(),_(w,{key:0},{default:d(()=>[b(C(r.getTotalsLabel(c,m)),1)]),_:2},1024)):v("",!0),(o(!0),s(k,null,x(I,(W,D)=>(o(),s("div",{key:D},[l(A,{title:r.getTotalsLabel(c,m,D),readonly:"",class:"text-right",unit:"kWh","model-value":e.formatNumber(W/1e3,3)},null,8,["title","model-value"])]))),128)),m=="all"&&c!="hc"?(o(),s("hr",ce)):v("",!0)]))),128))]),_:2},1032,["subtype"])):v("",!0)]))),128))])]),_:1})])):(o(),_(u,{key:0,subtype:"info"},{default:d(()=>t[5]||(t[5]=[b(" Es konnten keine Daten für diesen Zeitraum gefunden werden. ",-1)])),_:1,__:[5]}))]))]))])}const xe=ee(te,[["render",ue],["__scopeId","data-v-e00a7cd5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Chart.vue"]]);export{xe as default}; diff --git a/web/settings/assets/CloudConfig-17419a85.js b/web/settings/assets/CloudConfig-592841ed.js similarity index 96% rename from web/settings/assets/CloudConfig-17419a85.js rename to web/settings/assets/CloudConfig-592841ed.js index ae16eaf984..a101ddc9ac 100644 --- a/web/settings/assets/CloudConfig-17419a85.js +++ b/web/settings/assets/CloudConfig-592841ed.js @@ -1 +1 @@ -import{l as S,ab as q,F as z}from"./vendor-fortawesome-66071a0e.js";import{C as P}from"./index-93388667.js";import{_ as Z,u as a,l,m as b,G as r,E as t,A as m,x as p,z as i,D as h,N as I,B as s,q as k}from"./vendor-25d394b4.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";S.add(q);const K={name:"OpenwbCloudConfigView",components:{FontAwesomeIcon:z},mixins:[P],emits:["sendCommand","save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged","openWB/system/mqtt/bridge/+","openWB/system/mqtt/valid_partner_ids"],enableNewCloudButton:!0,newCloudData:{email:"",username:"",partner:!1},enableCloudConnectButton:!0,connectCloudData:{username:"",password:"",partner:!1},enableRemoveCloudButton:!0,showCloudRemoveModal:!1}},computed:{cloudBridge:{get(){let n=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[e,B]of Object.entries(n))B.remote.is_openwb_cloud||delete n[e];return n}},cloudBridgeKey:{get(){for(const[n,e]of Object.entries(this.cloudBridge))if(e.remote.is_openwb_cloud)return n}},cloudSettings:{get(){return{username:this.cloudBridge[this.cloudBridgeKey].remote.username,password:this.cloudBridge[this.cloudBridgeKey].remote.password,partner:this.cloudBridge[this.cloudBridgeKey].access?this.cloudBridge[this.cloudBridgeKey].access.partner:!1}}}},methods:{getMqttBridgeIndex(n){return parseInt(n.match(/(?:\/)(\d+)$/)[1])},createCloud(){document.forms.cloudConfigCreateForm.reportValidity()&&(this.$emit("save"),this.$emit("sendCommand",{command:"initCloud",data:this.newCloudData}),this.enableNewCloudButton=!1)},connectCloud(){document.forms.cloudConfigConnectForm.reportValidity()&&(this.$emit("save"),this.$emit("sendCommand",{command:"connectCloud",data:this.connectCloudData}),this.enableCloudConnectButton=!1)},removeCloudModal(n){n.stopPropagation(),this.showCloudRemoveModal=!0},removeCloud(n){this.showCloudRemoveModal=!1,n=="confirm"&&(this.updateState("openWB/system/mqtt/valid_partner_ids",[]),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:this.getMqttBridgeIndex(this.cloudBridgeKey)}}),this.enableCloudConnectButton=!0)}}},M={class:"cloud-config"},x={key:1},R={key:1,name:"cloudConfigCreateForm"},N={key:2,name:"cloudConfigConnectForm"},U={class:"row justify-content-center"},A={key:3,name:"cloudConfigured"},F={class:"row justify-content-center"};function j(n,e,B,G,u,d){const D=a("openwb-base-modal-dialog"),c=a("router-link"),g=a("openwb-base-alert"),w=a("openwb-base-card"),f=a("openwb-base-text-input"),_=a("openwb-base-button-group-input"),C=a("font-awesome-icon"),y=a("openwb-base-array-input"),v=a("openwb-base-click-button"),V=a("openwb-base-heading"),W=a("openwb-base-submit-buttons");return l(),b(I,null,[r(D,{show:u.showCloudRemoveModal,title:"Cloud Zugang löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=o=>d.removeCloud(o))},{default:t(()=>e[13]||(e[13]=[s(" Willst Du den vorhandenen Cloud Zugang wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",-1)])),_:1,__:[13]},8,["show"]),m("div",M,[n.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(l(),p(g,{key:0,subtype:"danger"},{default:t(()=>[e[15]||(e[15]=s(" Du musst der ",-1)),r(c,{to:"/System/LegalSettings"},{default:t(()=>e[14]||(e[14]=[s(" Datenschutzerklärung ",-1)])),_:1,__:[14]}),e[16]||(e[16]=s(" zustimmen, um die openWB Cloud nutzen zu können. ",-1))]),_:1,__:[15,16]})):(l(),b("div",x,[r(g,{subtype:"success"},{default:t(()=>[e[18]||(e[18]=s(" Du hast der ",-1)),r(c,{to:"/System/LegalSettings"},{default:t(()=>e[17]||(e[17]=[s(" Datenschutzerklärung ",-1)])),_:1,__:[17]}),e[19]||(e[19]=s(" zugestimmt und kannst die openWB Cloud nutzen. ",-1))]),_:1,__:[18,19]}),u.enableRemoveCloudButton?i("",!0):(l(),p(g,{key:0,subtype:"warning"},{default:t(()=>e[20]||(e[20]=[s(" Der Zugang wurde entfernt. Bitte starte die openWB neu, um die Änderungen anzuwenden! ",-1)])),_:1,__:[20]})),d.cloudBridgeKey?i("",!0):(l(),b("form",R,[r(w,{title:"Neuen Zugang erstellen"},{default:t(()=>[r(g,{subtype:"warning"},{default:t(()=>e[21]||(e[21]=[s(" Derzeit können keine neuen Zugänge für die openWB Cloud angelegt werden. Bitte nutze die in/an der openWB notierten Zugangsdaten im unteren Bereich dieser Seite. Wenn bei einer gekauften openWB keine Zugangsdaten vorhanden sind, schreibe bitte eine Mail unter Angabe der Bestell- und/oder Seriennummer an ",-1),m("a",{href:"mailto:support@openwb.de",subject:"Cloud Zugangsdaten"}," support@openwb.de ",-1),s(" . ",-1)])),_:1,__:[21]})]),_:1})])),d.cloudBridgeKey?i("",!0):(l(),b("form",N,[r(w,{title:"Vorhandenen Zugang einrichten"},h({default:t(()=>[r(f,{modelValue:u.connectCloudData.username,"onUpdate:modelValue":e[1]||(e[1]=o=>u.connectCloudData.username=o),title:"Benutzername",required:"",subtype:"user"},null,8,["modelValue"]),r(f,{modelValue:u.connectCloudData.password,"onUpdate:modelValue":e[2]||(e[2]=o=>u.connectCloudData.password=o),title:"Passwort",required:"",subtype:"password"},null,8,["modelValue"]),r(_,{modelValue:u.connectCloudData.partner,"onUpdate:modelValue":e[3]||(e[3]=o=>u.connectCloudData.partner=o),title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},{help:t(()=>e[22]||(e[22]=[s(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ",-1)])),_:1},8,["modelValue"]),u.connectCloudData.partner?(l(),p(y,{key:0,title:"Gültige Partner-IDs","no-elements-message":"Keine Partner-ID zugeordnet.","model-value":n.$store.state.mqtt["openWB/system/mqtt/valid_partner_ids"],"onUpdate:modelValue":e[4]||(e[4]=o=>n.updateState("openWB/system/mqtt/valid_partner_ids",o))},{"input-prefix":t(()=>[r(C,{icon:["fas","user-gear"]})]),"element-prefix":t(()=>[r(C,{icon:["fas","user-gear"]})]),help:t(()=>e[23]||(e[23]=[s(" Die Partner-ID erhältst Du von Deinem Installateur. Ist hier keine Partner-ID eingetragen, dann kann auch niemand - trotz aktiviertem Zugang für Partner - über das Partner-Portal auf diese openWB zugreifen! ",-1)])),_:1},8,["model-value"])):i("",!0)]),_:2},[n.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:t(()=>[m("div",U,[r(v,{class:k(["col-4",u.enableCloudConnectButton?"btn-success":"btn-outline-success"]),disabled:!u.enableCloudConnectButton,onButtonClicked:d.connectCloud},{default:t(()=>e[24]||(e[24]=[s(" Mit Cloud verbinden ",-1)])),_:1,__:[24]},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024)])),d.cloudBridgeKey?(l(),b("form",A,[!u.enableCloudConnectButton||!u.enableNewCloudButton?(l(),p(g,{key:0,subtype:"warning"},{default:t(()=>e[25]||(e[25]=[s(" Der Zugang wurde eingerichtet. Bitte starte die die openWB neu, um die Änderungen anzuwenden! ",-1)])),_:1,__:[25]})):i("",!0),r(w,{title:"Vorhandener Cloud Zugang"},{footer:t(()=>[m("div",F,[r(v,{class:k(["col-4",u.enableRemoveCloudButton?"btn-danger":"btn-outline-danger"]),disabled:!u.enableRemoveCloudButton,onButtonClicked:e[9]||(e[9]=o=>d.removeCloudModal(o))},{default:t(()=>e[29]||(e[29]=[s(" Zugang löschen ",-1)])),_:1,__:[29]},8,["class","disabled"])])]),default:t(()=>[r(V,null,{default:t(()=>e[26]||(e[26]=[m("span",null,[s(" Mit diesen Zugangsdaten kannst Du dich in der "),m("a",{href:"https://remote.openwb.de/",target:"_blank",rel:"noopener noreferrer"}," openWB Cloud "),s(" anmelden. ")],-1)])),_:1,__:[26]}),r(f,{modelValue:d.cloudSettings.username,"onUpdate:modelValue":e[5]||(e[5]=o=>d.cloudSettings.username=o),title:"Benutzername",required:"",subtype:"user",disabled:""},null,8,["modelValue"]),r(f,{modelValue:d.cloudSettings.password,"onUpdate:modelValue":e[6]||(e[6]=o=>d.cloudSettings.password=o),title:"Passwort",required:"",subtype:"password",disabled:""},null,8,["modelValue"]),e[30]||(e[30]=m("hr",null,null,-1)),r(_,{title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":d.cloudSettings.partner,"onUpdate:modelValue":e[7]||(e[7]=o=>n.updateState(d.cloudBridgeKey,o,"access.partner"))},{help:t(()=>e[27]||(e[27]=[s(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ",-1)])),_:1},8,["model-value"]),d.cloudSettings.partner?(l(),p(y,{key:0,title:"Gültige Partner-IDs","no-elements-message":"Keine Partner-ID zugeordnet.","model-value":n.$store.state.mqtt["openWB/system/mqtt/valid_partner_ids"],"onUpdate:modelValue":e[8]||(e[8]=o=>n.updateState("openWB/system/mqtt/valid_partner_ids",o))},{"input-prefix":t(()=>[r(C,{icon:["fas","user-gear"]})]),"element-prefix":t(()=>[r(C,{icon:["fas","user-gear"]})]),help:t(()=>e[28]||(e[28]=[s(" Die Partner-ID erhältst Du von Deinem Installateur. Ist hier keine Partner-ID eingetragen, dann kann auch niemand - trotz aktiviertem Zugang für Partner - über das Partner-Portal auf diese openWB zugreifen! ",-1)])),_:1},8,["model-value"])):i("",!0)]),_:1,__:[30]})])):i("",!0),d.cloudBridgeKey?(l(),p(W,{key:4,"form-name":"cloudConfigured",onSave:e[10]||(e[10]=o=>n.$emit("save")),onReset:e[11]||(e[11]=o=>n.$emit("reset")),onDefaults:e[12]||(e[12]=o=>n.$emit("defaults"))})):i("",!0)]))])],64)}const X=Z(K,[["render",j],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/CloudConfig.vue"]]);export{X as default}; +import{l as S,ab as q,F as z}from"./vendor-fortawesome-d6ee0a65.js";import{C as P}from"./index-eccf5556.js";import{_ as Z,u as a,l,m as b,G as r,E as t,A as m,x as p,z as i,D as h,N as I,B as s,q as k}from"./vendor-57e3a63c.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";S.add(q);const K={name:"OpenwbCloudConfigView",components:{FontAwesomeIcon:z},mixins:[P],emits:["sendCommand","save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged","openWB/system/mqtt/bridge/+","openWB/system/mqtt/valid_partner_ids"],enableNewCloudButton:!0,newCloudData:{email:"",username:"",partner:!1},enableCloudConnectButton:!0,connectCloudData:{username:"",password:"",partner:!1},enableRemoveCloudButton:!0,showCloudRemoveModal:!1}},computed:{cloudBridge:{get(){let n=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[e,B]of Object.entries(n))B.remote.is_openwb_cloud||delete n[e];return n}},cloudBridgeKey:{get(){for(const[n,e]of Object.entries(this.cloudBridge))if(e.remote.is_openwb_cloud)return n}},cloudSettings:{get(){return{username:this.cloudBridge[this.cloudBridgeKey].remote.username,password:this.cloudBridge[this.cloudBridgeKey].remote.password,partner:this.cloudBridge[this.cloudBridgeKey].access?this.cloudBridge[this.cloudBridgeKey].access.partner:!1}}}},methods:{getMqttBridgeIndex(n){return parseInt(n.match(/(?:\/)(\d+)$/)[1])},createCloud(){document.forms.cloudConfigCreateForm.reportValidity()&&(this.$emit("save"),this.$emit("sendCommand",{command:"initCloud",data:this.newCloudData}),this.enableNewCloudButton=!1)},connectCloud(){document.forms.cloudConfigConnectForm.reportValidity()&&(this.$emit("save"),this.$emit("sendCommand",{command:"connectCloud",data:this.connectCloudData}),this.enableCloudConnectButton=!1)},removeCloudModal(n){n.stopPropagation(),this.showCloudRemoveModal=!0},removeCloud(n){this.showCloudRemoveModal=!1,n=="confirm"&&(this.updateState("openWB/system/mqtt/valid_partner_ids",[]),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:this.getMqttBridgeIndex(this.cloudBridgeKey)}}),this.enableCloudConnectButton=!0)}}},M={class:"cloud-config"},x={key:1},R={key:1,name:"cloudConfigCreateForm"},N={key:2,name:"cloudConfigConnectForm"},U={class:"row justify-content-center"},A={key:3,name:"cloudConfigured"},F={class:"row justify-content-center"};function j(n,e,B,G,u,d){const D=a("openwb-base-modal-dialog"),c=a("router-link"),g=a("openwb-base-alert"),w=a("openwb-base-card"),f=a("openwb-base-text-input"),_=a("openwb-base-button-group-input"),C=a("font-awesome-icon"),y=a("openwb-base-array-input"),v=a("openwb-base-click-button"),V=a("openwb-base-heading"),W=a("openwb-base-submit-buttons");return l(),b(I,null,[r(D,{show:u.showCloudRemoveModal,title:"Cloud Zugang löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=o=>d.removeCloud(o))},{default:t(()=>e[13]||(e[13]=[s(" Willst Du den vorhandenen Cloud Zugang wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",-1)])),_:1,__:[13]},8,["show"]),m("div",M,[n.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(l(),p(g,{key:0,subtype:"danger"},{default:t(()=>[e[15]||(e[15]=s(" Du musst der ",-1)),r(c,{to:"/System/LegalSettings"},{default:t(()=>e[14]||(e[14]=[s(" Datenschutzerklärung ",-1)])),_:1,__:[14]}),e[16]||(e[16]=s(" zustimmen, um die openWB Cloud nutzen zu können. ",-1))]),_:1,__:[15,16]})):(l(),b("div",x,[r(g,{subtype:"success"},{default:t(()=>[e[18]||(e[18]=s(" Du hast der ",-1)),r(c,{to:"/System/LegalSettings"},{default:t(()=>e[17]||(e[17]=[s(" Datenschutzerklärung ",-1)])),_:1,__:[17]}),e[19]||(e[19]=s(" zugestimmt und kannst die openWB Cloud nutzen. ",-1))]),_:1,__:[18,19]}),u.enableRemoveCloudButton?i("",!0):(l(),p(g,{key:0,subtype:"warning"},{default:t(()=>e[20]||(e[20]=[s(" Der Zugang wurde entfernt. Bitte starte die openWB neu, um die Änderungen anzuwenden! ",-1)])),_:1,__:[20]})),d.cloudBridgeKey?i("",!0):(l(),b("form",R,[r(w,{title:"Neuen Zugang erstellen"},{default:t(()=>[r(g,{subtype:"warning"},{default:t(()=>e[21]||(e[21]=[s(" Derzeit können keine neuen Zugänge für die openWB Cloud angelegt werden. Bitte nutze die in/an der openWB notierten Zugangsdaten im unteren Bereich dieser Seite. Wenn bei einer gekauften openWB keine Zugangsdaten vorhanden sind, schreibe bitte eine Mail unter Angabe der Bestell- und/oder Seriennummer an ",-1),m("a",{href:"mailto:support@openwb.de",subject:"Cloud Zugangsdaten"}," support@openwb.de ",-1),s(" . ",-1)])),_:1,__:[21]})]),_:1})])),d.cloudBridgeKey?i("",!0):(l(),b("form",N,[r(w,{title:"Vorhandenen Zugang einrichten"},h({default:t(()=>[r(f,{modelValue:u.connectCloudData.username,"onUpdate:modelValue":e[1]||(e[1]=o=>u.connectCloudData.username=o),title:"Benutzername",required:"",subtype:"user"},null,8,["modelValue"]),r(f,{modelValue:u.connectCloudData.password,"onUpdate:modelValue":e[2]||(e[2]=o=>u.connectCloudData.password=o),title:"Passwort",required:"",subtype:"password"},null,8,["modelValue"]),r(_,{modelValue:u.connectCloudData.partner,"onUpdate:modelValue":e[3]||(e[3]=o=>u.connectCloudData.partner=o),title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},{help:t(()=>e[22]||(e[22]=[s(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ",-1)])),_:1},8,["modelValue"]),u.connectCloudData.partner?(l(),p(y,{key:0,title:"Gültige Partner-IDs","no-elements-message":"Keine Partner-ID zugeordnet.","model-value":n.$store.state.mqtt["openWB/system/mqtt/valid_partner_ids"],"onUpdate:modelValue":e[4]||(e[4]=o=>n.updateState("openWB/system/mqtt/valid_partner_ids",o))},{"input-prefix":t(()=>[r(C,{icon:["fas","user-gear"]})]),"element-prefix":t(()=>[r(C,{icon:["fas","user-gear"]})]),help:t(()=>e[23]||(e[23]=[s(" Die Partner-ID erhältst Du von Deinem Installateur. Ist hier keine Partner-ID eingetragen, dann kann auch niemand - trotz aktiviertem Zugang für Partner - über das Partner-Portal auf diese openWB zugreifen! ",-1)])),_:1},8,["model-value"])):i("",!0)]),_:2},[n.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:t(()=>[m("div",U,[r(v,{class:k(["col-4",u.enableCloudConnectButton?"btn-success":"btn-outline-success"]),disabled:!u.enableCloudConnectButton,onButtonClicked:d.connectCloud},{default:t(()=>e[24]||(e[24]=[s(" Mit Cloud verbinden ",-1)])),_:1,__:[24]},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024)])),d.cloudBridgeKey?(l(),b("form",A,[!u.enableCloudConnectButton||!u.enableNewCloudButton?(l(),p(g,{key:0,subtype:"warning"},{default:t(()=>e[25]||(e[25]=[s(" Der Zugang wurde eingerichtet. Bitte starte die die openWB neu, um die Änderungen anzuwenden! ",-1)])),_:1,__:[25]})):i("",!0),r(w,{title:"Vorhandener Cloud Zugang"},{footer:t(()=>[m("div",F,[r(v,{class:k(["col-4",u.enableRemoveCloudButton?"btn-danger":"btn-outline-danger"]),disabled:!u.enableRemoveCloudButton,onButtonClicked:e[9]||(e[9]=o=>d.removeCloudModal(o))},{default:t(()=>e[29]||(e[29]=[s(" Zugang löschen ",-1)])),_:1,__:[29]},8,["class","disabled"])])]),default:t(()=>[r(V,null,{default:t(()=>e[26]||(e[26]=[m("span",null,[s(" Mit diesen Zugangsdaten kannst Du dich in der "),m("a",{href:"https://remote.openwb.de/",target:"_blank",rel:"noopener noreferrer"}," openWB Cloud "),s(" anmelden. ")],-1)])),_:1,__:[26]}),r(f,{modelValue:d.cloudSettings.username,"onUpdate:modelValue":e[5]||(e[5]=o=>d.cloudSettings.username=o),title:"Benutzername",required:"",subtype:"user",disabled:""},null,8,["modelValue"]),r(f,{modelValue:d.cloudSettings.password,"onUpdate:modelValue":e[6]||(e[6]=o=>d.cloudSettings.password=o),title:"Passwort",required:"",subtype:"password",disabled:""},null,8,["modelValue"]),e[30]||(e[30]=m("hr",null,null,-1)),r(_,{title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":d.cloudSettings.partner,"onUpdate:modelValue":e[7]||(e[7]=o=>n.updateState(d.cloudBridgeKey,o,"access.partner"))},{help:t(()=>e[27]||(e[27]=[s(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ",-1)])),_:1},8,["model-value"]),d.cloudSettings.partner?(l(),p(y,{key:0,title:"Gültige Partner-IDs","no-elements-message":"Keine Partner-ID zugeordnet.","model-value":n.$store.state.mqtt["openWB/system/mqtt/valid_partner_ids"],"onUpdate:modelValue":e[8]||(e[8]=o=>n.updateState("openWB/system/mqtt/valid_partner_ids",o))},{"input-prefix":t(()=>[r(C,{icon:["fas","user-gear"]})]),"element-prefix":t(()=>[r(C,{icon:["fas","user-gear"]})]),help:t(()=>e[28]||(e[28]=[s(" Die Partner-ID erhältst Du von Deinem Installateur. Ist hier keine Partner-ID eingetragen, dann kann auch niemand - trotz aktiviertem Zugang für Partner - über das Partner-Portal auf diese openWB zugreifen! ",-1)])),_:1},8,["model-value"])):i("",!0)]),_:1,__:[30]})])):i("",!0),d.cloudBridgeKey?(l(),p(W,{key:4,"form-name":"cloudConfigured",onSave:e[10]||(e[10]=o=>n.$emit("save")),onReset:e[11]||(e[11]=o=>n.$emit("reset")),onDefaults:e[12]||(e[12]=o=>n.$emit("defaults"))})):i("",!0)]))])],64)}const X=Z(K,[["render",j],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/CloudConfig.vue"]]);export{X as default}; diff --git a/web/settings/assets/DataManagement-93d69162.js b/web/settings/assets/DataManagement-3531e291.js similarity index 92% rename from web/settings/assets/DataManagement-93d69162.js rename to web/settings/assets/DataManagement-3531e291.js index df05897e05..9b9b3bcb81 100644 --- a/web/settings/assets/DataManagement-93d69162.js +++ b/web/settings/assets/DataManagement-3531e291.js @@ -1 +1 @@ -import{l as F,a6 as V,a7 as E,F as A,aq as U,ar as H,as as N,at as $,au as I}from"./vendor-fortawesome-66071a0e.js";import{_ as B,C as G}from"./index-93388667.js";import{_ as j}from"./dynamic-import-helper-be004503.js";import{_ as C,u as d,l as u,m as f,x as y,E as i,B as o,F as b,G as t,A as s,a2 as z,a3 as P,N as W,z as w,q as M,M as T,D as J}from"./vendor-25d394b4.js";const K={props:{backupCloud:{type:Object,required:!0}},emits:["update:configuration","sendCommand"],methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})},sendSystemCommand(n,e={}){this.$emit("sendCommand",{command:n,data:e})}}},Z=C(K,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/BackupCloudConfigMixin.vue"]]),Q={name:"BackupCloudConfigFallback",mixins:[Z]},X={class:"backup-cloud-fallback"},Y={key:1};function ee(n,e,r,_,l,a){const p=d("openwb-base-alert"),c=d("openwb-base-textarea");return u(),f("div",X,[Object.keys(n.backupCloud.configuration).length==0?(u(),y(p,{key:0,subtype:"info"},{default:i(()=>[o(' Die Backup-Cloud "'+b(n.backupCloud.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(u(),f("div",Y,[t(p,{subtype:"warning"},{default:i(()=>[o(' Es wurde keine Konfigurationsseite für die Backup-Cloud "'+b(n.backupCloud.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),t(c,{title:"Konfiguration",subtype:"json","model-value":n.backupCloud.configuration,"onUpdate:modelValue":e[0]||(e[0]=k=>n.updateConfiguration(k,"configuration"))},{help:i(()=>e[1]||(e[1]=[o(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),t(p,{subtype:"info"},{default:i(()=>[s("pre",null,b(JSON.stringify(n.backupCloud.configuration,void 0,2)),1)]),_:1})]))])}const ne=C(Q,[["render",ee],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudConfigFallback.vue"]]);F.add(V,E);const te={name:"OpenwbBackupCloudProxy",components:{FontAwesomeIcon:A},props:{backupCloud:{type:Object,required:!0}},emits:["update:configuration","sendCommand"],methods:{getBackupCloudComponent(){return console.debug(`loading backup cloud: ${this.backupCloud.type}`),z({loader:()=>j(Object.assign({"./nextcloud/backup_cloud.vue":()=>B(()=>import("./backup_cloud-ff9029f2.js"),["assets/backup_cloud-ff9029f2.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./nfs/backup_cloud.vue":()=>B(()=>import("./backup_cloud-5a239921.js"),["assets/backup_cloud-5a239921.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./onedrive/backup_cloud.vue":()=>B(()=>import("./backup_cloud-464f53c3.js"),["assets/backup_cloud-464f53c3.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./samba/backup_cloud.vue":()=>B(()=>import("./backup_cloud-eb857b29.js"),["assets/backup_cloud-eb857b29.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.backupCloud.type}/backup_cloud.vue`),errorComponent:ne})},updateConfiguration(n){this.$emit("update:configuration",n)},sendCommand(n){this.$emit("sendCommand",n)}}};function oe(n,e,r,_,l,a){const p=d("font-awesome-icon"),c=d("openwb-base-alert"),k=d("openwb-base-heading");return u(),f(W,null,[r.backupCloud.official?(u(),y(c,{key:0,subtype:"success"},{default:i(()=>[t(p,{icon:["fas","certificate"]}),o(' Das ausgewählte Backup-Cloud Modul "'+b(r.backupCloud.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(u(),y(c,{key:1,subtype:"info"},{default:i(()=>[t(p,{icon:["fas","people-group"]}),o(' Das ausgewählte Backup-Cloud Modul "'+b(r.backupCloud.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),t(k,null,{default:i(()=>[o(' Einstellungen für Backup-Cloud Modul "'+b(r.backupCloud.name)+'" ',1)]),_:1}),(u(),y(P(a.getBackupCloudComponent()),{"backup-cloud":r.backupCloud,"onUpdate:configuration":e[0]||(e[0]=h=>a.updateConfiguration(h)),onSendCommand:e[1]||(e[1]=h=>a.sendCommand(h))},null,40,["backup-cloud"]))],64)}const ie=C(te,[["render",oe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudProxy.vue"]]),se={props:{monitoring:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},ae=C(se,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/monitoring/MonitoringConfigMixin.vue"]]),re={name:"MonitoringConfigFallback",mixins:[ae]},le={class:"monitoring-fallback"},ue={key:1};function de(n,e,r,_,l,a){const p=d("openwb-base-alert"),c=d("openwb-base-textarea");return u(),f("div",le,[Object.keys(n.monitoring.configuration).length==0?(u(),y(p,{key:0,subtype:"info"},{default:i(()=>[o(' Der Anbieter "'+b(n.monitoring.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(u(),f("div",ue,[t(p,{subtype:"warning"},{default:i(()=>[o(' Es wurde keine Konfigurationsseite für den Anbieter "'+b(n.monitoring.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),t(c,{title:"Konfiguration",subtype:"json","model-value":n.monitoring.configuration,"onUpdate:modelValue":e[0]||(e[0]=k=>n.updateConfiguration(k,"configuration"))},{help:i(()=>e[1]||(e[1]=[o(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),t(p,{subtype:"info"},{default:i(()=>[s("pre",null,b(JSON.stringify(n.monitoring.configuration,void 0,2)),1)]),_:1})]))])}const pe=C(re,[["render",de],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/monitoring/OpenwbMonitoringConfigFallback.vue"]]);F.add(V,E);const ce={name:"OpenwbMonitoringProxy",components:{FontAwesomeIcon:A},props:{monitoring:{type:Object,required:!0}},emits:["update:configuration"],methods:{getMonitoringComponent(){return console.debug(`loading monitoring: ${this.monitoring.type}`),z({loader:()=>j(Object.assign({"./zabbix/monitoring.vue":()=>B(()=>import("./monitoring-5f234ebf.js"),["assets/monitoring-5f234ebf.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.monitoring.type}/monitoring.vue`),errorComponent:pe})},updateConfiguration(n){this.$emit("update:configuration",n)}}};function me(n,e,r,_,l,a){const p=d("font-awesome-icon"),c=d("openwb-base-alert"),k=d("openwb-base-heading");return u(),f(W,null,[r.monitoring.official?(u(),y(c,{key:0,subtype:"success"},{default:i(()=>[t(p,{icon:["fas","certificate"]}),o(' Das ausgewählte Monitoring Modul "'+b(r.monitoring.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(u(),y(c,{key:1,subtype:"info"},{default:i(()=>[t(p,{icon:["fas","people-group"]}),o(' Das ausgewählte Monitoring Modul "'+b(r.monitoring.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),t(k,null,{default:i(()=>[o(' Einstellungen für Modul "'+b(r.monitoring.name)+'" ',1)]),_:1}),(u(),y(P(a.getMonitoringComponent()),{monitoring:r.monitoring,"onUpdate:configuration":e[0]||(e[0]=h=>a.updateConfiguration(h))},null,40,["monitoring"]))],64)}const ge=C(ce,[["render",me],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/monitoring/OpenwbMonitoringProxy.vue"]]);F.add(U,H,N,$,I);const fe={name:"OpenwbDataManagementView",components:{FontAwesomeIcon:A,OpenwbBackupCloudProxy:ie,OpenwbMonitoringProxy:ge},mixins:[G],props:{installAssistantActive:{type:Boolean,required:!1,default:!1},showBackupCloudSection:{type:Boolean,required:!1,default:!0}},emits:["sendCommand","save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/configurable/backup_clouds","openWB/system/configurable/monitoring","openWB/system/backup_cloud/config","openWB/system/backup_cloud/backup_before_update","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/optional/monitoring/config","openWB/vehicle/+/name","openWB/LegacySmartHome/config/get/Devices/+/device_configured","openWB/LegacySmartHome/config/get/Devices/+/device_name"],warningAcknowledged:!1,showRestoreSection:!this.installAssistantActive,selectedRestoreFile:void 0,restoreUploadDone:!1,selectedDataMigrationFile:void 0,dataMigrationUploadDone:!1,dataMigrationConfig:[{sectionName:"Ladepunkte",sectionComponents:[{key:"cp1",label:"Ladepunkt 1",validTypes:["chargePoint"]},{key:"cp2",label:"Ladepunkt 2",validTypes:["chargePoint"]},{key:"cp3",label:"Ladepunkt 3",validTypes:["chargePoint"]},{key:"cp4",label:"Ladepunkt 4",validTypes:["chargePoint"]},{key:"cp5",label:"Ladepunkt 5",validTypes:["chargePoint"]},{key:"cp6",label:"Ladepunkt 6",validTypes:["chargePoint"]},{key:"cp7",label:"Ladepunkt 7",validTypes:["chargePoint"]},{key:"cp8",label:"Ladepunkt 8",validTypes:["chargePoint"]}]},{sectionName:"Zähler",sectionComponents:[{key:"evu",label:"EVU",validTypes:["counter"]},{key:"consumer1",label:"Verbraucher 1",validTypes:["counter"]},{key:"consumer2",label:"Verbraucher 2",validTypes:["counter"]},{key:"consumer3",label:"Verbraucher 3",validTypes:["counter"]}]},{sectionName:"Wechselrichter",sectionComponents:[{key:"pvAll",label:"Wechselrichter (Summe)",validTypes:["inverter"],help:"Die 1.9er Version von openWB speichert lediglich die Summen-Leistung aller Wechselrichter."}]},{sectionName:"Batteriespeicher",sectionComponents:[{key:"bat",label:"Speicher 1",validTypes:["battery"]}]},{sectionName:"Fahrzeuge",sectionComponents:[{key:"ev1",label:"Fahrzeug von Ladepunkt 1",validTypes:["vehicle"]},{key:"ev2",label:"Fahrzeug von Ladepunkt 2",validTypes:["vehicle"]}]},{sectionName:"SmartHome 2.0",sectionComponents:[{key:"sh1",label:"Gerät 1",validTypes:["smartHome"]},{key:"sh2",label:"Gerät 2",validTypes:["smartHome"]},{key:"sh3",label:"Gerät 3",validTypes:["smartHome"]},{key:"sh4",label:"Gerät 4",validTypes:["smartHome"]},{key:"sh5",label:"Gerät 5",validTypes:["smartHome"]},{key:"sh6",label:"Gerät 6",validTypes:["smartHome"]},{key:"sh7",label:"Gerät 7",validTypes:["smartHome"]},{key:"sh8",label:"Gerät 8",validTypes:["smartHome"]},{key:"sh9",label:"Gerät 9",validTypes:["smartHome"]}]}],dataMigrationMapping:{cp1:void 0,cp2:void 0,cp3:void 0,cp4:void 0,cp5:void 0,cp6:void 0,cp7:void 0,cp8:void 0,evu:void 0,pvAll:void 0,bat:void 0,consumer1:void 0,consumer2:void 0,consumer3:void 0,sh1:void 0,sh2:void 0,sh3:void 0,sh4:void 0,sh5:void 0,sh6:void 0,sh7:void 0,sh8:void 0,sh9:void 0,ev1:void 0,ev2:void 0}}},computed:{backupCloudList(){return this.$store.state.mqtt["openWB/system/configurable/backup_clouds"]},componentConfigurations(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")},chargePointOptions(){let n=this.getWildcardTopics("openWB/chargepoint/+/config");var e=[];for(const r of Object.values(n))e.push({value:r.id,text:r.name});return e},counterOptions(){var n=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"counter")&&n.push({value:e.id,text:e.name});return n},inverterOptions(){var n=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"inverter")&&n.push({value:e.id,text:e.name});return n},monitoringList(){return this.$store.state.mqtt["openWB/system/configurable/monitoring"]},batteryOptions(){var n=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"bat")&&n.push({value:e.id,text:e.name});return n},vehicleOptions(){let n=this.getWildcardTopics("openWB/vehicle/+/name");var e=[];for(const[r,_]of Object.entries(n)){let l=parseInt(r.match(/\/(\d\d?)\//)[1]);e.push({value:l,text:_})}return e},smartHomeOptions(){let n=this.getWildcardTopics("openWB/LegacySmartHome/config/get/Devices/+/device_configured");var e=[];for(const[r,_]of Object.entries(n))if(_==1){let l=parseInt(r.match(/\/(\d\d?)\//)[1]);e.push({value:l,text:this.$store.state.mqtt[`openWB/LegacySmartHome/config/get/Devices/${l}/device_name`]})}return e}},methods:{isComponentType(n,e){return n.split("_").includes(e)},getBackupCloudDefaultConfiguration(n){const e=this.backupCloudList.find(r=>r.value==n);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...JSON.parse(JSON.stringify(e.defaults))}:(console.warn("no default configuration found for backup cloud type!",n),{})},sendSystemCommand(n,e={}){this.$emit("sendCommand",{command:n,data:e})},getMigrationOptions(n){var e=[{value:void 0,text:"-- nicht übernehmen --"}];return n.includes("chargePoint")&&e.push(...this.chargePointOptions),n.includes("counter")&&e.push(...this.counterOptions),n.includes("inverter")&&e.push(...this.inverterOptions),n.includes("battery")&&e.push(...this.batteryOptions),n.includes("vehicle")&&e.push(...this.vehicleOptions),n.includes("smartHome")&&e.push(...this.smartHomeOptions),e},updateConfiguration(n,e){console.debug("updateConfiguration",n,e),this.updateState(n,e.value,e.object)},updateSelectedBackupCloud(n){this.updateState("openWB/system/backup_cloud/config",n,"type"),this.updateState("openWB/system/backup_cloud/config",this.getBackupCloudDefaultConfiguration(n))},updateSelectedRestoreFile(n){this.selectedRestoreFile=n.target.files[0]},updateSelectedDataMigrationFile(n){this.selectedDataMigrationFile=n.target.files[0]},uploadFile(n,e,r){return new Promise(_=>{if(e!==void 0){this.$root.postClientMessage("Hochladen der Datei gestartet.","info");let l=new FormData;l.append("file",e),l.append("target",n),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/uploadFile.php",l,{headers:{"Content-Type":"multipart/form-data"}}).then(()=>{this.$root.postClientMessage(r,"success"),_(!0)}).catch(a=>{if(a.response){console.error(a.response.status,a.response.data);var p="Hochladen der Datei fehlgeschlagen!
"+a.response.status+": "+a.response.data}else a.request?(console.error(a.request),p+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",a.message),p+="Es ist ein unbekannter Fehler aufgetreten.");this.$root.postClientMessage(p,"danger"),_(!1)})}else console.error("no file selected for upload"),_(!1)})},getMonitoringDefaultConfiguration(n){const e=this.monitoringList.find(r=>r.value==n);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...e.defaults}:(console.warn("no default configuration found for monitoring type!",n),{})},updateSelectedMonitoring(n){this.updateState("openWB/optional/monitoring/config",n,"type"),this.updateState("openWB/optional/monitoring/config",this.getMonitoringDefaultConfiguration(n))},async uploadRestoreFile(){const n="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können die Wiederherstellung jetzt starten.";this.restoreUploadDone=await this.uploadFile("restore",this.selectedRestoreFile,n)},async uploadDataMigrationFile(){const n="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können den Import jetzt starten.";this.dataMigrationUploadDone=await this.uploadFile("migrate",this.selectedDataMigrationFile,n)},restoreBackup(){this.sendSystemCommand("restoreBackup"),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})},dataMigration(){this.sendSystemCommand("dataMigration",this.dataMigrationMapping)},factoryReset(){this.sendSystemCommand("factoryReset",{}),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})}}},be={class:"system"},he={key:1},ke={name:"backupForm"},_e={class:"row justify-content-center"},ye={class:"col-md-4 d-flex py-1 justify-content-center"},ve={key:0,name:"restoreForm"},we={class:"input-group"},Ce={class:"input-group-prepend"},Be={class:"input-group-text"},De={class:"custom-file"},Se={id:"input-file-label",class:"custom-file-label",for:"input-file","data-browse":"Suchen"},Me={class:"input-group-append"},We=["disabled"],Oe={class:"row justify-content-center"},Fe={class:"col-md-4 d-flex py-1 justify-content-center"},Ae={key:1,name:"cloudBackupForm"},Le={key:0},Te={name:"dataMigrationForm"},Ve={class:"input-group"},Ee={class:"input-group-prepend"},je={class:"input-group-text"},ze={class:"custom-file"},Pe={id:"data-migration-file-label",class:"custom-file-label",for:"data-migration-file","data-browse":"Suchen"},Re={class:"input-group-append"},xe=["disabled"],qe={class:"row justify-content-center"},Ue={class:"col-md-4 d-flex py-1 justify-content-center"},He={key:1,name:"resetForm"},Ne={class:"row justify-content-center"},$e={class:"col-md-4 d-flex py-1 justify-content-center"},Ie={key:2,name:"monitoringConfigured"},Ge={key:0},Je={key:1},Ke={key:0};function Ze(n,e,r,_,l,a){const p=d("openwb-base-button-group-input"),c=d("openwb-base-alert"),k=d("openwb-base-heading"),h=d("font-awesome-icon"),D=d("openwb-base-click-button"),O=d("openwb-base-select-input"),R=d("openwb-base-button-input"),x=d("openwb-backup-cloud-proxy"),L=d("openwb-base-submit-buttons"),S=d("openwb-base-card"),q=d("openwb-monitoring-proxy");return u(),f("div",be,[r.installAssistantActive?w("",!0):(u(),y(c,{key:0,subtype:"danger"},{default:i(()=>[e[21]||(e[21]=s("h2",null,"Achtung!",-1)),e[22]||(e[22]=s("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1)),t(p,{modelValue:l.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=m=>l.warningAcknowledged=m),title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"])]),_:1,__:[21,22]})),l.warningAcknowledged||r.installAssistantActive?(u(),f("div",he,[t(S,{title:"Sicherung / Wiederherstellung",subtype:"success",collapsible:!0,collapsed:!r.installAssistantActive},{default:i(()=>{var m,v;return[s("form",ke,[t(k,null,{default:i(()=>e[23]||(e[23]=[o("Sicherung",-1)])),_:1,__:[23]}),t(c,{subtype:"danger"},{default:i(()=>e[24]||(e[24]=[o(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ',-1)])),_:1,__:[24]}),t(c,{subtype:"info"},{default:i(()=>e[25]||(e[25]=[o(" Nachdem die Sicherung abgeschlossen ist, kann die erstellte Datei über den Link in der Benachrichtigung oder ",-1),s("a",{href:"/openWB/data/backup/",target:"_blank"},"hier",-1),o(" heruntergeladen werden. Beim Herunterladen bitte darauf achten, dass die Datei mit der Endung .tar.gz gespeichert wird. Ggf. das automatische Entpacken des Browsers deaktivieren. ",-1)])),_:1,__:[25]}),s("div",_e,[s("div",ye,[t(D,{class:"btn-success clickable",onButtonClicked:e[1]||(e[1]=g=>a.sendSystemCommand("createBackup",{use_extended_filename:!0}))},{default:i(()=>[e[26]||(e[26]=o(" Sicherung erstellen ",-1)),t(h,{icon:["fas","archive"]})]),_:1,__:[26]})])])]),l.showRestoreSection?(u(),f("form",ve,[e[31]||(e[31]=s("hr",null,null,-1)),t(k,null,{default:i(()=>e[27]||(e[27]=[o("Wiederherstellung",-1)])),_:1,__:[27]}),t(c,{subtype:"danger"},{default:i(()=>e[28]||(e[28]=[o(" Für die Wiederherstellung wird eine aktive Internetverbindung benötigt.",-1),s("br",null,null,-1),o(' Es können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ',-1)])),_:1,__:[28]}),s("div",we,[s("div",Ce,[s("div",Be,[t(h,{icon:["fas","file-archive"]})])]),s("div",De,[s("input",{id:"input-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[2]||(e[2]=g=>a.updateSelectedRestoreFile(g))},null,32),s("label",Se,b(l.selectedRestoreFile?l.selectedRestoreFile.name:"Bitte eine Datei auswählen"),1)]),s("div",Me,[s("button",{class:M(["btn",l.selectedRestoreFile?"btn-success clickable":"btn-outline-success"]),disabled:!l.selectedRestoreFile,type:"button",onClick:e[3]||(e[3]=g=>a.uploadRestoreFile())},[e[29]||(e[29]=o(" Hochladen ",-1)),t(h,{icon:["fas","upload"]})],10,We)])]),s("div",Oe,[s("div",Fe,[t(D,{class:M(l.restoreUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!l.restoreUploadDone,onButtonClicked:e[4]||(e[4]=g=>a.restoreBackup())},{default:i(()=>[e[30]||(e[30]=o(" Wiederherstellung starten ",-1)),t(h,{icon:["fas","box-open"]})]),_:1,__:[30]},8,["class","disabled"])])])])):w("",!0),r.showBackupCloudSection?(u(),f("form",Ae,[e[35]||(e[35]=s("hr",null,null,-1)),t(k,null,{default:i(()=>e[32]||(e[32]=[o(" Automatische Sicherung in einen Cloud-Dienst ",-1)])),_:1,__:[32]}),t(c,{subtype:"info"},{default:i(()=>e[33]||(e[33]=[o(" Ist die openWB als primary konfiguriert, wird zwischen Mitternacht und 5:00 Uhr automatisch eine Sicherung erstellt und in den angegebenen Cloud-Dienst (nicht openWB Cloud!) hochgeladen. Ist kein Cloud-Dienst konfiguriert, wird keine automatische Sicherung erstellt. Die automatische Sicherung kann unabhängig von der openWB Cloud genutzt werden.",-1),s("br",null,null,-1),o(" Die manuelle Cloud-Sicherung und -falls aktiviert- die Sicherung vor einem Update werden sowohl von einer primary als auch von einer secondary durchgeführt.",-1),s("br",null,null,-1),o(" Die Anleitung zur Konfiguration des Cloud-Dienstes findest Du ",-1),s("a",{href:"https://github.com/openWB/core/wiki/Cloud-Sicherung",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),o(" . ",-1)])),_:1,__:[33]}),t(O,{class:"mb-2",title:"Backup-Cloud",options:a.backupCloudList,"model-value":(m=n.$store.state.mqtt["openWB/system/backup_cloud/config"])==null?void 0:m.type,"onUpdate:modelValue":e[5]||(e[5]=g=>a.updateSelectedBackupCloud(g))},null,8,["options","model-value"]),(v=n.$store.state.mqtt["openWB/system/backup_cloud/config"])!=null&&v.type?(u(),f("div",Le,[t(p,{title:"Sicherung vor System-Update",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/system/backup_cloud/backup_before_update"],"onUpdate:modelValue":e[6]||(e[6]=g=>n.updateState("openWB/system/backup_cloud/backup_before_update",g))},{help:i(()=>e[34]||(e[34]=[o(" Ist diese Option aktiviert, dann wird vor jedem System-Update automatisch eine Sicherung erstellt und diese in die Backup-Cloud hochgeladen. ",-1)])),_:1},8,["model-value"]),t(R,{title:"Manuelle Cloud-Sicherung","button-text":"Sicherung erstellen und hochladen",subtype:"success",onButtonClicked:e[7]||(e[7]=g=>a.sendSystemCommand("createCloudBackup",{}))}),t(x,{"backup-cloud":n.$store.state.mqtt["openWB/system/backup_cloud/config"],"onUpdate:configuration":e[8]||(e[8]=g=>a.updateConfiguration("openWB/system/backup_cloud/config",g)),onSendCommand:e[9]||(e[9]=g=>a.sendSystemCommand(g.command,g.args))},null,8,["backup-cloud"])])):w("",!0),t(L,{"form-name":"cloudBackupForm","hide-reset":!0,"hide-defaults":!0,onSave:e[10]||(e[10]=g=>n.$emit("save")),onReset:e[11]||(e[11]=g=>n.$emit("reset")),onDefaults:e[12]||(e[12]=g=>n.$emit("defaults"))})])):w("",!0)]}),_:1},8,["collapsed"]),!r.installAssistantActive&&!n.$store.state.mqtt["openWB/general/extern"]?(u(),y(S,{key:0,title:"Datenübernahme",subtype:"success",collapsible:!0,collapsed:!0},{default:i(()=>[s("form",Te,[t(c,{subtype:"info"},{default:i(()=>e[36]||(e[36]=[o(" Hier kann die Sicherung aus den älteren Software Versionen 1.9.303 oder 1.9.304 hochgeladen werden, um vorhandene historische Daten (Diagramme und Ladeprotokolle) sowie Cloud-Daten und Seriennummer in diese Installation zu importieren.",-1),s("br",null,null,-1),o(" Ein Import aus Versionen kleiner als 1.9.303 ist nicht möglich. Falls eine Datenübernahme aus 1.9er Versionen gewünscht ist, muss erst ein Upgrade auf 1.9.303 oder 1.9.304 durchgeführt werden! Die Zuordnung zwischen den alten und neuen Komponenten muss manuell durchgeführt werden. ",-1)])),_:1,__:[36]}),t(c,{subtype:"danger"},{default:i(()=>e[37]||(e[37]=[o(" Die Portierung kann bei vielen historischen Daten von mehreren Jahren durchaus bis zu 30 Minuten dauern. Die openWB in dieser Zeit bitte nicht herunterfahren! Du erhältst eine Meldung, wenn die Datenübernahme abgeschlossen ist.",-1),s("br",null,null,-1),o(" Vor der Datenübernahme unbedingt eine Sicherung erstellen.",-1),s("br",null,null,-1),o(" Die Datenübernahme kann nur durch Einspielen einer Sicherung rückgängig gemacht werden! ",-1)])),_:1,__:[37]}),s("div",Ve,[s("div",Ee,[s("div",je,[t(h,{icon:["fas","file-archive"]})])]),s("div",ze,[s("input",{id:"data-migration-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[13]||(e[13]=m=>a.updateSelectedDataMigrationFile(m))},null,32),s("label",Pe,b(l.selectedDataMigrationFile?l.selectedDataMigrationFile.name:"Bitte eine Datei auswählen"),1)]),s("div",Re,[s("button",{class:M(["btn",l.selectedDataMigrationFile?"btn-success clickable":"btn-outline-success"]),disabled:!l.selectedDataMigrationFile,type:"button",onClick:e[14]||(e[14]=m=>a.uploadDataMigrationFile())},[e[38]||(e[38]=o(" Hochladen ",-1)),t(h,{icon:["fas","upload"]})],10,xe)])]),t(k,null,{default:i(()=>e[39]||(e[39]=[o(" Zuordnung der Komponenten ",-1)])),_:1,__:[39]}),(u(!0),f(W,null,T(l.dataMigrationConfig,m=>(u(),f("div",{key:m.sectionName},[t(k,null,{default:i(()=>[o(b(m.sectionName),1)]),_:2},1024),(u(!0),f(W,null,T(m.sectionComponents,v=>(u(),y(O,{key:v.key,modelValue:l.dataMigrationMapping[v.key],"onUpdate:modelValue":g=>l.dataMigrationMapping[v.key]=g,title:v.label,options:a.getMigrationOptions(v.validTypes)},J({_:2},[v.help?{name:"help",fn:i(()=>[o(b(v.help),1)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","title","options"]))),128))]))),128)),s("div",qe,[s("div",Ue,[t(D,{class:M(l.dataMigrationUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!l.dataMigrationUploadDone,onButtonClicked:e[15]||(e[15]=m=>a.dataMigration())},{default:i(()=>[e[40]||(e[40]=o(" Datenübernahme starten ",-1)),t(h,{icon:["fas","box-open"]})]),_:1,__:[40]},8,["class","disabled"])])])])]),_:1})):w("",!0),r.installAssistantActive?w("",!0):(u(),f("form",He,[t(S,{title:"Zurücksetzen",subtype:"danger",collapsible:!0,collapsed:!0},{footer:i(()=>[s("div",Ne,[s("div",$e,[t(D,{class:"btn-danger clickable",onButtonClicked:e[16]||(e[16]=m=>a.factoryReset())},{default:i(()=>[t(h,{icon:["fas","skull-crossbones"]}),e[42]||(e[42]=o(" Zurücksetzen ",-1)),t(h,{icon:["fas","skull-crossbones"]})]),_:1,__:[42]})])])]),default:i(()=>[t(c,{subtype:"danger"},{default:i(()=>e[41]||(e[41]=[o(" Alle Einstellungen, angelegte Geräte/Komponenten, Ladepunkte und Fahrzeuge, etc., Tages-, Monats- und Jahresauswertungen sowie das Ladeprotokoll werden unwiederbringlich gelöscht. Auch die Vorkonfiguration im Auslieferungszustand wird gelöscht. Die openWB muss danach komplett neu eingerichtet werden. Die openWB wird hierfür automatisch neu gestartet. Bitte erstelle vor dem Zurücksetzen eine Sicherung! ",-1)])),_:1,__:[41]})]),_:1})])),r.installAssistantActive?w("",!0):(u(),f("form",Ie,[t(S,{title:"Monitoring",subtype:"success",collapsible:!0,collapsed:!0},{footer:i(()=>[t(L,{"form-name":n.monitoringConfigured,"hide-defaults":!0,onSave:e[19]||(e[19]=m=>n.$emit("save")),onReset:e[20]||(e[20]=m=>n.$emit("reset"))},null,8,["form-name"])]),default:i(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(u(),f("div",Ge,[t(c,{subtype:"info"},{default:i(()=>e[43]||(e[43]=[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[43]})])):(u(),f("div",Je,[t(c,{subtype:"info"},{default:i(()=>e[44]||(e[44]=[o(" Das Monitoring informiert Dich sofort per E-Mail, wenn eine Deiner Komponenten oder Ladepunkte ein Problem hat oder die openWB nicht mehr erreichbar ist. ",-1)])),_:1,__:[44]}),t(O,{class:"mb-2",title:"Anbieter",options:a.monitoringList,"model-value":n.$store.state.mqtt["openWB/optional/monitoring/config"]?n.$store.state.mqtt["openWB/optional/monitoring/config"].type:"","onUpdate:modelValue":e[17]||(e[17]=m=>a.updateSelectedMonitoring(m))},null,8,["options","model-value"]),n.$store.state.mqtt["openWB/optional/monitoring/config"]&&n.$store.state.mqtt["openWB/optional/monitoring/config"].type?(u(),f("div",Ke,[t(q,{monitoring:n.$store.state.mqtt["openWB/optional/monitoring/config"],"onUpdate:configuration":e[18]||(e[18]=m=>a.updateConfiguration("openWB/optional/monitoring/config",m))},null,8,["monitoring"])])):w("",!0)]))]),_:1})]))])):w("",!0)])}const Qe=C(fe,[["render",Ze],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/DataManagement.vue"]]),tn=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"}));export{Z as B,Qe as D,ae as M,tn as a}; +import{l as F,a6 as V,a7 as E,F as A,aq as U,ar as H,as as N,at as $,au as I}from"./vendor-fortawesome-d6ee0a65.js";import{_ as B,C as G}from"./index-eccf5556.js";import{_ as j}from"./dynamic-import-helper-be004503.js";import{_ as C,u as d,l as u,m as f,x as y,E as i,B as o,F as b,G as t,A as s,a2 as z,a3 as P,N as W,z as w,q as M,M as T,D as J}from"./vendor-57e3a63c.js";const K={props:{backupCloud:{type:Object,required:!0}},emits:["update:configuration","sendCommand"],methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})},sendSystemCommand(n,e={}){this.$emit("sendCommand",{command:n,data:e})}}},Z=C(K,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/BackupCloudConfigMixin.vue"]]),Q={name:"BackupCloudConfigFallback",mixins:[Z]},X={class:"backup-cloud-fallback"},Y={key:1};function ee(n,e,r,_,l,a){const p=d("openwb-base-alert"),c=d("openwb-base-textarea");return u(),f("div",X,[Object.keys(n.backupCloud.configuration).length==0?(u(),y(p,{key:0,subtype:"info"},{default:i(()=>[o(' Die Backup-Cloud "'+b(n.backupCloud.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(u(),f("div",Y,[t(p,{subtype:"warning"},{default:i(()=>[o(' Es wurde keine Konfigurationsseite für die Backup-Cloud "'+b(n.backupCloud.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),t(c,{title:"Konfiguration",subtype:"json","model-value":n.backupCloud.configuration,"onUpdate:modelValue":e[0]||(e[0]=k=>n.updateConfiguration(k,"configuration"))},{help:i(()=>e[1]||(e[1]=[o(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),t(p,{subtype:"info"},{default:i(()=>[s("pre",null,b(JSON.stringify(n.backupCloud.configuration,void 0,2)),1)]),_:1})]))])}const ne=C(Q,[["render",ee],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudConfigFallback.vue"]]);F.add(V,E);const te={name:"OpenwbBackupCloudProxy",components:{FontAwesomeIcon:A},props:{backupCloud:{type:Object,required:!0}},emits:["update:configuration","sendCommand"],methods:{getBackupCloudComponent(){return console.debug(`loading backup cloud: ${this.backupCloud.type}`),z({loader:()=>j(Object.assign({"./nextcloud/backup_cloud.vue":()=>B(()=>import("./backup_cloud-86207a2a.js"),["assets/backup_cloud-86207a2a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./nfs/backup_cloud.vue":()=>B(()=>import("./backup_cloud-5bddc3c8.js"),["assets/backup_cloud-5bddc3c8.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./onedrive/backup_cloud.vue":()=>B(()=>import("./backup_cloud-f0c12d69.js"),["assets/backup_cloud-f0c12d69.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./samba/backup_cloud.vue":()=>B(()=>import("./backup_cloud-0ad9d8c7.js"),["assets/backup_cloud-0ad9d8c7.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.backupCloud.type}/backup_cloud.vue`),errorComponent:ne})},updateConfiguration(n){this.$emit("update:configuration",n)},sendCommand(n){this.$emit("sendCommand",n)}}};function oe(n,e,r,_,l,a){const p=d("font-awesome-icon"),c=d("openwb-base-alert"),k=d("openwb-base-heading");return u(),f(W,null,[r.backupCloud.official?(u(),y(c,{key:0,subtype:"success"},{default:i(()=>[t(p,{icon:["fas","certificate"]}),o(' Das ausgewählte Backup-Cloud Modul "'+b(r.backupCloud.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(u(),y(c,{key:1,subtype:"info"},{default:i(()=>[t(p,{icon:["fas","people-group"]}),o(' Das ausgewählte Backup-Cloud Modul "'+b(r.backupCloud.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),t(k,null,{default:i(()=>[o(' Einstellungen für Backup-Cloud Modul "'+b(r.backupCloud.name)+'" ',1)]),_:1}),(u(),y(P(a.getBackupCloudComponent()),{"backup-cloud":r.backupCloud,"onUpdate:configuration":e[0]||(e[0]=h=>a.updateConfiguration(h)),onSendCommand:e[1]||(e[1]=h=>a.sendCommand(h))},null,40,["backup-cloud"]))],64)}const ie=C(te,[["render",oe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudProxy.vue"]]),se={props:{monitoring:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},ae=C(se,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/monitoring/MonitoringConfigMixin.vue"]]),re={name:"MonitoringConfigFallback",mixins:[ae]},le={class:"monitoring-fallback"},ue={key:1};function de(n,e,r,_,l,a){const p=d("openwb-base-alert"),c=d("openwb-base-textarea");return u(),f("div",le,[Object.keys(n.monitoring.configuration).length==0?(u(),y(p,{key:0,subtype:"info"},{default:i(()=>[o(' Der Anbieter "'+b(n.monitoring.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(u(),f("div",ue,[t(p,{subtype:"warning"},{default:i(()=>[o(' Es wurde keine Konfigurationsseite für den Anbieter "'+b(n.monitoring.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),t(c,{title:"Konfiguration",subtype:"json","model-value":n.monitoring.configuration,"onUpdate:modelValue":e[0]||(e[0]=k=>n.updateConfiguration(k,"configuration"))},{help:i(()=>e[1]||(e[1]=[o(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),t(p,{subtype:"info"},{default:i(()=>[s("pre",null,b(JSON.stringify(n.monitoring.configuration,void 0,2)),1)]),_:1})]))])}const pe=C(re,[["render",de],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/monitoring/OpenwbMonitoringConfigFallback.vue"]]);F.add(V,E);const ce={name:"OpenwbMonitoringProxy",components:{FontAwesomeIcon:A},props:{monitoring:{type:Object,required:!0}},emits:["update:configuration"],methods:{getMonitoringComponent(){return console.debug(`loading monitoring: ${this.monitoring.type}`),z({loader:()=>j(Object.assign({"./zabbix/monitoring.vue":()=>B(()=>import("./monitoring-cec4113b.js"),["assets/monitoring-cec4113b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.monitoring.type}/monitoring.vue`),errorComponent:pe})},updateConfiguration(n){this.$emit("update:configuration",n)}}};function me(n,e,r,_,l,a){const p=d("font-awesome-icon"),c=d("openwb-base-alert"),k=d("openwb-base-heading");return u(),f(W,null,[r.monitoring.official?(u(),y(c,{key:0,subtype:"success"},{default:i(()=>[t(p,{icon:["fas","certificate"]}),o(' Das ausgewählte Monitoring Modul "'+b(r.monitoring.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(u(),y(c,{key:1,subtype:"info"},{default:i(()=>[t(p,{icon:["fas","people-group"]}),o(' Das ausgewählte Monitoring Modul "'+b(r.monitoring.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),t(k,null,{default:i(()=>[o(' Einstellungen für Modul "'+b(r.monitoring.name)+'" ',1)]),_:1}),(u(),y(P(a.getMonitoringComponent()),{monitoring:r.monitoring,"onUpdate:configuration":e[0]||(e[0]=h=>a.updateConfiguration(h))},null,40,["monitoring"]))],64)}const ge=C(ce,[["render",me],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/monitoring/OpenwbMonitoringProxy.vue"]]);F.add(U,H,N,$,I);const fe={name:"OpenwbDataManagementView",components:{FontAwesomeIcon:A,OpenwbBackupCloudProxy:ie,OpenwbMonitoringProxy:ge},mixins:[G],props:{installAssistantActive:{type:Boolean,required:!1,default:!1},showBackupCloudSection:{type:Boolean,required:!1,default:!0}},emits:["sendCommand","save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/configurable/backup_clouds","openWB/system/configurable/monitoring","openWB/system/backup_cloud/config","openWB/system/backup_cloud/backup_before_update","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/optional/monitoring/config","openWB/vehicle/+/name","openWB/LegacySmartHome/config/get/Devices/+/device_configured","openWB/LegacySmartHome/config/get/Devices/+/device_name"],warningAcknowledged:!1,showRestoreSection:!this.installAssistantActive,selectedRestoreFile:void 0,restoreUploadDone:!1,selectedDataMigrationFile:void 0,dataMigrationUploadDone:!1,dataMigrationConfig:[{sectionName:"Ladepunkte",sectionComponents:[{key:"cp1",label:"Ladepunkt 1",validTypes:["chargePoint"]},{key:"cp2",label:"Ladepunkt 2",validTypes:["chargePoint"]},{key:"cp3",label:"Ladepunkt 3",validTypes:["chargePoint"]},{key:"cp4",label:"Ladepunkt 4",validTypes:["chargePoint"]},{key:"cp5",label:"Ladepunkt 5",validTypes:["chargePoint"]},{key:"cp6",label:"Ladepunkt 6",validTypes:["chargePoint"]},{key:"cp7",label:"Ladepunkt 7",validTypes:["chargePoint"]},{key:"cp8",label:"Ladepunkt 8",validTypes:["chargePoint"]}]},{sectionName:"Zähler",sectionComponents:[{key:"evu",label:"EVU",validTypes:["counter"]},{key:"consumer1",label:"Verbraucher 1",validTypes:["counter"]},{key:"consumer2",label:"Verbraucher 2",validTypes:["counter"]},{key:"consumer3",label:"Verbraucher 3",validTypes:["counter"]}]},{sectionName:"Wechselrichter",sectionComponents:[{key:"pvAll",label:"Wechselrichter (Summe)",validTypes:["inverter"],help:"Die 1.9er Version von openWB speichert lediglich die Summen-Leistung aller Wechselrichter."}]},{sectionName:"Batteriespeicher",sectionComponents:[{key:"bat",label:"Speicher 1",validTypes:["battery"]}]},{sectionName:"Fahrzeuge",sectionComponents:[{key:"ev1",label:"Fahrzeug von Ladepunkt 1",validTypes:["vehicle"]},{key:"ev2",label:"Fahrzeug von Ladepunkt 2",validTypes:["vehicle"]}]},{sectionName:"SmartHome 2.0",sectionComponents:[{key:"sh1",label:"Gerät 1",validTypes:["smartHome"]},{key:"sh2",label:"Gerät 2",validTypes:["smartHome"]},{key:"sh3",label:"Gerät 3",validTypes:["smartHome"]},{key:"sh4",label:"Gerät 4",validTypes:["smartHome"]},{key:"sh5",label:"Gerät 5",validTypes:["smartHome"]},{key:"sh6",label:"Gerät 6",validTypes:["smartHome"]},{key:"sh7",label:"Gerät 7",validTypes:["smartHome"]},{key:"sh8",label:"Gerät 8",validTypes:["smartHome"]},{key:"sh9",label:"Gerät 9",validTypes:["smartHome"]}]}],dataMigrationMapping:{cp1:void 0,cp2:void 0,cp3:void 0,cp4:void 0,cp5:void 0,cp6:void 0,cp7:void 0,cp8:void 0,evu:void 0,pvAll:void 0,bat:void 0,consumer1:void 0,consumer2:void 0,consumer3:void 0,sh1:void 0,sh2:void 0,sh3:void 0,sh4:void 0,sh5:void 0,sh6:void 0,sh7:void 0,sh8:void 0,sh9:void 0,ev1:void 0,ev2:void 0}}},computed:{backupCloudList(){return this.$store.state.mqtt["openWB/system/configurable/backup_clouds"]},componentConfigurations(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")},chargePointOptions(){let n=this.getWildcardTopics("openWB/chargepoint/+/config");var e=[];for(const r of Object.values(n))e.push({value:r.id,text:r.name});return e},counterOptions(){var n=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"counter")&&n.push({value:e.id,text:e.name});return n},inverterOptions(){var n=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"inverter")&&n.push({value:e.id,text:e.name});return n},monitoringList(){return this.$store.state.mqtt["openWB/system/configurable/monitoring"]},batteryOptions(){var n=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"bat")&&n.push({value:e.id,text:e.name});return n},vehicleOptions(){let n=this.getWildcardTopics("openWB/vehicle/+/name");var e=[];for(const[r,_]of Object.entries(n)){let l=parseInt(r.match(/\/(\d\d?)\//)[1]);e.push({value:l,text:_})}return e},smartHomeOptions(){let n=this.getWildcardTopics("openWB/LegacySmartHome/config/get/Devices/+/device_configured");var e=[];for(const[r,_]of Object.entries(n))if(_==1){let l=parseInt(r.match(/\/(\d\d?)\//)[1]);e.push({value:l,text:this.$store.state.mqtt[`openWB/LegacySmartHome/config/get/Devices/${l}/device_name`]})}return e}},methods:{isComponentType(n,e){return n.split("_").includes(e)},getBackupCloudDefaultConfiguration(n){const e=this.backupCloudList.find(r=>r.value==n);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...JSON.parse(JSON.stringify(e.defaults))}:(console.warn("no default configuration found for backup cloud type!",n),{})},sendSystemCommand(n,e={}){this.$emit("sendCommand",{command:n,data:e})},getMigrationOptions(n){var e=[{value:void 0,text:"-- nicht übernehmen --"}];return n.includes("chargePoint")&&e.push(...this.chargePointOptions),n.includes("counter")&&e.push(...this.counterOptions),n.includes("inverter")&&e.push(...this.inverterOptions),n.includes("battery")&&e.push(...this.batteryOptions),n.includes("vehicle")&&e.push(...this.vehicleOptions),n.includes("smartHome")&&e.push(...this.smartHomeOptions),e},updateConfiguration(n,e){console.debug("updateConfiguration",n,e),this.updateState(n,e.value,e.object)},updateSelectedBackupCloud(n){this.updateState("openWB/system/backup_cloud/config",n,"type"),this.updateState("openWB/system/backup_cloud/config",this.getBackupCloudDefaultConfiguration(n))},updateSelectedRestoreFile(n){this.selectedRestoreFile=n.target.files[0]},updateSelectedDataMigrationFile(n){this.selectedDataMigrationFile=n.target.files[0]},uploadFile(n,e,r){return new Promise(_=>{if(e!==void 0){this.$root.postClientMessage("Hochladen der Datei gestartet.","info");let l=new FormData;l.append("file",e),l.append("target",n),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/uploadFile.php",l,{headers:{"Content-Type":"multipart/form-data"}}).then(()=>{this.$root.postClientMessage(r,"success"),_(!0)}).catch(a=>{if(a.response){console.error(a.response.status,a.response.data);var p="Hochladen der Datei fehlgeschlagen!
"+a.response.status+": "+a.response.data}else a.request?(console.error(a.request),p+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",a.message),p+="Es ist ein unbekannter Fehler aufgetreten.");this.$root.postClientMessage(p,"danger"),_(!1)})}else console.error("no file selected for upload"),_(!1)})},getMonitoringDefaultConfiguration(n){const e=this.monitoringList.find(r=>r.value==n);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...e.defaults}:(console.warn("no default configuration found for monitoring type!",n),{})},updateSelectedMonitoring(n){this.updateState("openWB/optional/monitoring/config",n,"type"),this.updateState("openWB/optional/monitoring/config",this.getMonitoringDefaultConfiguration(n))},async uploadRestoreFile(){const n="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können die Wiederherstellung jetzt starten.";this.restoreUploadDone=await this.uploadFile("restore",this.selectedRestoreFile,n)},async uploadDataMigrationFile(){const n="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können den Import jetzt starten.";this.dataMigrationUploadDone=await this.uploadFile("migrate",this.selectedDataMigrationFile,n)},restoreBackup(){this.sendSystemCommand("restoreBackup"),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})},dataMigration(){this.sendSystemCommand("dataMigration",this.dataMigrationMapping)},factoryReset(){this.sendSystemCommand("factoryReset",{}),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})}}},be={class:"system"},he={key:1},ke={name:"backupForm"},_e={class:"row justify-content-center"},ye={class:"col-md-4 d-flex py-1 justify-content-center"},ve={key:0,name:"restoreForm"},we={class:"input-group"},Ce={class:"input-group-prepend"},Be={class:"input-group-text"},De={class:"custom-file"},Se={id:"input-file-label",class:"custom-file-label",for:"input-file","data-browse":"Suchen"},Me={class:"input-group-append"},We=["disabled"],Oe={class:"row justify-content-center"},Fe={class:"col-md-4 d-flex py-1 justify-content-center"},Ae={key:1,name:"cloudBackupForm"},Le={key:0},Te={name:"dataMigrationForm"},Ve={class:"input-group"},Ee={class:"input-group-prepend"},je={class:"input-group-text"},ze={class:"custom-file"},Pe={id:"data-migration-file-label",class:"custom-file-label",for:"data-migration-file","data-browse":"Suchen"},Re={class:"input-group-append"},xe=["disabled"],qe={class:"row justify-content-center"},Ue={class:"col-md-4 d-flex py-1 justify-content-center"},He={key:1,name:"resetForm"},Ne={class:"row justify-content-center"},$e={class:"col-md-4 d-flex py-1 justify-content-center"},Ie={key:2,name:"monitoringConfigured"},Ge={key:0},Je={key:1},Ke={key:0};function Ze(n,e,r,_,l,a){const p=d("openwb-base-button-group-input"),c=d("openwb-base-alert"),k=d("openwb-base-heading"),h=d("font-awesome-icon"),D=d("openwb-base-click-button"),O=d("openwb-base-select-input"),R=d("openwb-base-button-input"),x=d("openwb-backup-cloud-proxy"),L=d("openwb-base-submit-buttons"),S=d("openwb-base-card"),q=d("openwb-monitoring-proxy");return u(),f("div",be,[r.installAssistantActive?w("",!0):(u(),y(c,{key:0,subtype:"danger"},{default:i(()=>[e[21]||(e[21]=s("h2",null,"Achtung!",-1)),e[22]||(e[22]=s("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1)),t(p,{modelValue:l.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=m=>l.warningAcknowledged=m),title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"])]),_:1,__:[21,22]})),l.warningAcknowledged||r.installAssistantActive?(u(),f("div",he,[t(S,{title:"Sicherung / Wiederherstellung",subtype:"success",collapsible:!0,collapsed:!r.installAssistantActive},{default:i(()=>{var m,v;return[s("form",ke,[t(k,null,{default:i(()=>e[23]||(e[23]=[o("Sicherung",-1)])),_:1,__:[23]}),t(c,{subtype:"danger"},{default:i(()=>e[24]||(e[24]=[o(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ',-1)])),_:1,__:[24]}),t(c,{subtype:"info"},{default:i(()=>e[25]||(e[25]=[o(" Nachdem die Sicherung abgeschlossen ist, kann die erstellte Datei über den Link in der Benachrichtigung oder ",-1),s("a",{href:"/openWB/data/backup/",target:"_blank"},"hier",-1),o(" heruntergeladen werden. Beim Herunterladen bitte darauf achten, dass die Datei mit der Endung .tar.gz gespeichert wird. Ggf. das automatische Entpacken des Browsers deaktivieren. ",-1)])),_:1,__:[25]}),s("div",_e,[s("div",ye,[t(D,{class:"btn-success clickable",onButtonClicked:e[1]||(e[1]=g=>a.sendSystemCommand("createBackup",{use_extended_filename:!0}))},{default:i(()=>[e[26]||(e[26]=o(" Sicherung erstellen ",-1)),t(h,{icon:["fas","archive"]})]),_:1,__:[26]})])])]),l.showRestoreSection?(u(),f("form",ve,[e[31]||(e[31]=s("hr",null,null,-1)),t(k,null,{default:i(()=>e[27]||(e[27]=[o("Wiederherstellung",-1)])),_:1,__:[27]}),t(c,{subtype:"danger"},{default:i(()=>e[28]||(e[28]=[o(" Für die Wiederherstellung wird eine aktive Internetverbindung benötigt.",-1),s("br",null,null,-1),o(' Es können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ',-1)])),_:1,__:[28]}),s("div",we,[s("div",Ce,[s("div",Be,[t(h,{icon:["fas","file-archive"]})])]),s("div",De,[s("input",{id:"input-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[2]||(e[2]=g=>a.updateSelectedRestoreFile(g))},null,32),s("label",Se,b(l.selectedRestoreFile?l.selectedRestoreFile.name:"Bitte eine Datei auswählen"),1)]),s("div",Me,[s("button",{class:M(["btn",l.selectedRestoreFile?"btn-success clickable":"btn-outline-success"]),disabled:!l.selectedRestoreFile,type:"button",onClick:e[3]||(e[3]=g=>a.uploadRestoreFile())},[e[29]||(e[29]=o(" Hochladen ",-1)),t(h,{icon:["fas","upload"]})],10,We)])]),s("div",Oe,[s("div",Fe,[t(D,{class:M(l.restoreUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!l.restoreUploadDone,onButtonClicked:e[4]||(e[4]=g=>a.restoreBackup())},{default:i(()=>[e[30]||(e[30]=o(" Wiederherstellung starten ",-1)),t(h,{icon:["fas","box-open"]})]),_:1,__:[30]},8,["class","disabled"])])])])):w("",!0),r.showBackupCloudSection?(u(),f("form",Ae,[e[35]||(e[35]=s("hr",null,null,-1)),t(k,null,{default:i(()=>e[32]||(e[32]=[o(" Automatische Sicherung in einen Cloud-Dienst ",-1)])),_:1,__:[32]}),t(c,{subtype:"info"},{default:i(()=>e[33]||(e[33]=[o(" Ist die openWB als primary konfiguriert, wird zwischen Mitternacht und 5:00 Uhr automatisch eine Sicherung erstellt und in den angegebenen Cloud-Dienst (nicht openWB Cloud!) hochgeladen. Ist kein Cloud-Dienst konfiguriert, wird keine automatische Sicherung erstellt. Die automatische Sicherung kann unabhängig von der openWB Cloud genutzt werden.",-1),s("br",null,null,-1),o(" Die manuelle Cloud-Sicherung und -falls aktiviert- die Sicherung vor einem Update werden sowohl von einer primary als auch von einer secondary durchgeführt.",-1),s("br",null,null,-1),o(" Die Anleitung zur Konfiguration des Cloud-Dienstes findest Du ",-1),s("a",{href:"https://github.com/openWB/core/wiki/Cloud-Sicherung",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),o(" . ",-1)])),_:1,__:[33]}),t(O,{class:"mb-2",title:"Backup-Cloud",options:a.backupCloudList,"model-value":(m=n.$store.state.mqtt["openWB/system/backup_cloud/config"])==null?void 0:m.type,"onUpdate:modelValue":e[5]||(e[5]=g=>a.updateSelectedBackupCloud(g))},null,8,["options","model-value"]),(v=n.$store.state.mqtt["openWB/system/backup_cloud/config"])!=null&&v.type?(u(),f("div",Le,[t(p,{title:"Sicherung vor System-Update",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/system/backup_cloud/backup_before_update"],"onUpdate:modelValue":e[6]||(e[6]=g=>n.updateState("openWB/system/backup_cloud/backup_before_update",g))},{help:i(()=>e[34]||(e[34]=[o(" Ist diese Option aktiviert, dann wird vor jedem System-Update automatisch eine Sicherung erstellt und diese in die Backup-Cloud hochgeladen. ",-1)])),_:1},8,["model-value"]),t(R,{title:"Manuelle Cloud-Sicherung","button-text":"Sicherung erstellen und hochladen",subtype:"success",onButtonClicked:e[7]||(e[7]=g=>a.sendSystemCommand("createCloudBackup",{}))}),t(x,{"backup-cloud":n.$store.state.mqtt["openWB/system/backup_cloud/config"],"onUpdate:configuration":e[8]||(e[8]=g=>a.updateConfiguration("openWB/system/backup_cloud/config",g)),onSendCommand:e[9]||(e[9]=g=>a.sendSystemCommand(g.command,g.args))},null,8,["backup-cloud"])])):w("",!0),t(L,{"form-name":"cloudBackupForm","hide-reset":!0,"hide-defaults":!0,onSave:e[10]||(e[10]=g=>n.$emit("save")),onReset:e[11]||(e[11]=g=>n.$emit("reset")),onDefaults:e[12]||(e[12]=g=>n.$emit("defaults"))})])):w("",!0)]}),_:1},8,["collapsed"]),!r.installAssistantActive&&!n.$store.state.mqtt["openWB/general/extern"]?(u(),y(S,{key:0,title:"Datenübernahme",subtype:"success",collapsible:!0,collapsed:!0},{default:i(()=>[s("form",Te,[t(c,{subtype:"info"},{default:i(()=>e[36]||(e[36]=[o(" Hier kann die Sicherung aus den älteren Software Versionen 1.9.303 oder 1.9.304 hochgeladen werden, um vorhandene historische Daten (Diagramme und Ladeprotokolle) sowie Cloud-Daten und Seriennummer in diese Installation zu importieren.",-1),s("br",null,null,-1),o(" Ein Import aus Versionen kleiner als 1.9.303 ist nicht möglich. Falls eine Datenübernahme aus 1.9er Versionen gewünscht ist, muss erst ein Upgrade auf 1.9.303 oder 1.9.304 durchgeführt werden! Die Zuordnung zwischen den alten und neuen Komponenten muss manuell durchgeführt werden. ",-1)])),_:1,__:[36]}),t(c,{subtype:"danger"},{default:i(()=>e[37]||(e[37]=[o(" Die Portierung kann bei vielen historischen Daten von mehreren Jahren durchaus bis zu 30 Minuten dauern. Die openWB in dieser Zeit bitte nicht herunterfahren! Du erhältst eine Meldung, wenn die Datenübernahme abgeschlossen ist.",-1),s("br",null,null,-1),o(" Vor der Datenübernahme unbedingt eine Sicherung erstellen.",-1),s("br",null,null,-1),o(" Die Datenübernahme kann nur durch Einspielen einer Sicherung rückgängig gemacht werden! ",-1)])),_:1,__:[37]}),s("div",Ve,[s("div",Ee,[s("div",je,[t(h,{icon:["fas","file-archive"]})])]),s("div",ze,[s("input",{id:"data-migration-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[13]||(e[13]=m=>a.updateSelectedDataMigrationFile(m))},null,32),s("label",Pe,b(l.selectedDataMigrationFile?l.selectedDataMigrationFile.name:"Bitte eine Datei auswählen"),1)]),s("div",Re,[s("button",{class:M(["btn",l.selectedDataMigrationFile?"btn-success clickable":"btn-outline-success"]),disabled:!l.selectedDataMigrationFile,type:"button",onClick:e[14]||(e[14]=m=>a.uploadDataMigrationFile())},[e[38]||(e[38]=o(" Hochladen ",-1)),t(h,{icon:["fas","upload"]})],10,xe)])]),t(k,null,{default:i(()=>e[39]||(e[39]=[o(" Zuordnung der Komponenten ",-1)])),_:1,__:[39]}),(u(!0),f(W,null,T(l.dataMigrationConfig,m=>(u(),f("div",{key:m.sectionName},[t(k,null,{default:i(()=>[o(b(m.sectionName),1)]),_:2},1024),(u(!0),f(W,null,T(m.sectionComponents,v=>(u(),y(O,{key:v.key,modelValue:l.dataMigrationMapping[v.key],"onUpdate:modelValue":g=>l.dataMigrationMapping[v.key]=g,title:v.label,options:a.getMigrationOptions(v.validTypes)},J({_:2},[v.help?{name:"help",fn:i(()=>[o(b(v.help),1)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","title","options"]))),128))]))),128)),s("div",qe,[s("div",Ue,[t(D,{class:M(l.dataMigrationUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!l.dataMigrationUploadDone,onButtonClicked:e[15]||(e[15]=m=>a.dataMigration())},{default:i(()=>[e[40]||(e[40]=o(" Datenübernahme starten ",-1)),t(h,{icon:["fas","box-open"]})]),_:1,__:[40]},8,["class","disabled"])])])])]),_:1})):w("",!0),r.installAssistantActive?w("",!0):(u(),f("form",He,[t(S,{title:"Zurücksetzen",subtype:"danger",collapsible:!0,collapsed:!0},{footer:i(()=>[s("div",Ne,[s("div",$e,[t(D,{class:"btn-danger clickable",onButtonClicked:e[16]||(e[16]=m=>a.factoryReset())},{default:i(()=>[t(h,{icon:["fas","skull-crossbones"]}),e[42]||(e[42]=o(" Zurücksetzen ",-1)),t(h,{icon:["fas","skull-crossbones"]})]),_:1,__:[42]})])])]),default:i(()=>[t(c,{subtype:"danger"},{default:i(()=>e[41]||(e[41]=[o(" Alle Einstellungen, angelegte Geräte/Komponenten, Ladepunkte und Fahrzeuge, etc., Tages-, Monats- und Jahresauswertungen sowie das Ladeprotokoll werden unwiederbringlich gelöscht. Auch die Vorkonfiguration im Auslieferungszustand wird gelöscht. Die openWB muss danach komplett neu eingerichtet werden. Die openWB wird hierfür automatisch neu gestartet. Bitte erstelle vor dem Zurücksetzen eine Sicherung! ",-1)])),_:1,__:[41]})]),_:1})])),r.installAssistantActive?w("",!0):(u(),f("form",Ie,[t(S,{title:"Monitoring",subtype:"success",collapsible:!0,collapsed:!0},{footer:i(()=>[t(L,{"form-name":n.monitoringConfigured,"hide-defaults":!0,onSave:e[19]||(e[19]=m=>n.$emit("save")),onReset:e[20]||(e[20]=m=>n.$emit("reset"))},null,8,["form-name"])]),default:i(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(u(),f("div",Ge,[t(c,{subtype:"info"},{default:i(()=>e[43]||(e[43]=[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[43]})])):(u(),f("div",Je,[t(c,{subtype:"info"},{default:i(()=>e[44]||(e[44]=[o(" Das Monitoring informiert Dich sofort per E-Mail, wenn eine Deiner Komponenten oder Ladepunkte ein Problem hat oder die openWB nicht mehr erreichbar ist. ",-1)])),_:1,__:[44]}),t(O,{class:"mb-2",title:"Anbieter",options:a.monitoringList,"model-value":n.$store.state.mqtt["openWB/optional/monitoring/config"]?n.$store.state.mqtt["openWB/optional/monitoring/config"].type:"","onUpdate:modelValue":e[17]||(e[17]=m=>a.updateSelectedMonitoring(m))},null,8,["options","model-value"]),n.$store.state.mqtt["openWB/optional/monitoring/config"]&&n.$store.state.mqtt["openWB/optional/monitoring/config"].type?(u(),f("div",Ke,[t(q,{monitoring:n.$store.state.mqtt["openWB/optional/monitoring/config"],"onUpdate:configuration":e[18]||(e[18]=m=>a.updateConfiguration("openWB/optional/monitoring/config",m))},null,8,["monitoring"])])):w("",!0)]))]),_:1})]))])):w("",!0)])}const Qe=C(fe,[["render",Ze],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/DataManagement.vue"]]),tn=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"}));export{Z as B,Qe as D,ae as M,tn as a}; diff --git a/web/settings/assets/DebugConfig-2807847f.js b/web/settings/assets/DebugConfig-3be918cd.js similarity index 95% rename from web/settings/assets/DebugConfig-2807847f.js rename to web/settings/assets/DebugConfig-3be918cd.js index 168a9a00fe..f5e102ad36 100644 --- a/web/settings/assets/DebugConfig-2807847f.js +++ b/web/settings/assets/DebugConfig-3be918cd.js @@ -1,2 +1,2 @@ -import{C as x}from"./index-93388667.js";import{l as B,ac as V,ad as z,k as W,ae as P,g as M,F as T}from"./vendor-fortawesome-66071a0e.js";import{a as y}from"./vendor-axios-ac33d60c.js";import{_ as F,a4 as N,u as l,l as u,x as g,E as r,q as f,y as L,G as p,z as m,B as h,F as v,A as b,m as C,N as S,M as q}from"./vendor-25d394b4.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-sortablejs-0eb84ec8.js";B.add(V,z,W,P,M);const E={name:"OpenwbLogCard",components:{FontAwesomeIcon:T},props:{title:{type:String,required:!0},logFile:{type:String,required:!0}},data(){return{logData:"-- noch nicht geladen --",loading:!1,foundFiles:[],selectedVariant:"",copyMessage:!1,pastebinLink:""}},methods:{async getFilePromise(o,e=!1,n=!0,a=!1){return y[a?"head":"get"](location.protocol+"//"+location.host+o).then(s=>{if(a)return!0;{const d=s.data;return d||"log file is empty"}}).catch(s=>{if(!n)throw s;return s.response?s.response.status==404&&e?a?!1:"":`A 404 is expected if running node.js dev server! +import{C as x}from"./index-eccf5556.js";import{l as B,ac as V,ad as z,k as W,ae as P,g as M,F as T}from"./vendor-fortawesome-d6ee0a65.js";import{a as y}from"./vendor-axios-89a9dc60.js";import{_ as F,a4 as N,u as l,l as u,x as g,E as r,q as f,y as L,G as p,z as m,B as h,F as v,A as b,m as C,N as S,M as q}from"./vendor-57e3a63c.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-sortablejs-63b3e6e3.js";B.add(V,z,W,P,M);const E={name:"OpenwbLogCard",components:{FontAwesomeIcon:T},props:{title:{type:String,required:!0},logFile:{type:String,required:!0}},data(){return{logData:"-- noch nicht geladen --",loading:!1,foundFiles:[],selectedVariant:"",copyMessage:!1,pastebinLink:""}},methods:{async getFilePromise(o,e=!1,n=!0,a=!1){return y[a?"head":"get"](location.protocol+"//"+location.host+o).then(s=>{if(a)return!0;{const d=s.data;return d||"log file is empty"}}).catch(s=>{if(!n)throw s;return s.response?s.response.status==404&&e?a?!1:"":`A 404 is expected if running node.js dev server! `+s.response.status+" "+s.response.statusText+": "+s.response.request.responseURL:s.request?s.request:s.message})},async loadLog(o,e=""){this.logData="wird aktualisiert...",this.loading=!0,this.pastebinLink="";var n="";e&&(o=o.replace(".log",`.${e}.log`));for(let t=4;t>=1;t--){const s=await this.getFilePromise(o+"."+t,!0);n+=s}const a=await this.getFilePromise(o);n+=a,this.logData=n,this.loading=!1},async checkLatestLog(o){const e=[{suffix:"latest",title:"Letzten 3 Durchläufe",description:"Logs der Letzten 3 Durchläufe laden"},{suffix:"current",title:"Letzter Durchlauf",description:"Logs des letzten Durchlaufs laden"},{suffix:"latest-warning",title:"Letzter Durchlauf mit Warnung oder Fehler",description:"Fehlerprotokoll laden"}];this.foundFiles=[];for(const n of e){const a=o.replace(".log",`.${n.suffix}.log`);try{await this.getFilePromise(a,!1,!1,!0),this.foundFiles.push(n),n.suffix==="latest"&&(this.selectedVariant="latest",console.log("Found latest log file: ",a))}catch(t){console.log(t)}}this.foundFiles.length>0&&this.foundFiles.push({suffix:"",title:"Vollständiges Log",description:"Vollständiges Log laden"})},async onCardExpand(){await this.checkLatestLog(this.logFile),this.loadLog(this.logFile,this.selectedVariant)},copyToClipboard(o=this.logData,e=!0){if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(o).then(()=>{e&&this.showCopyMessage()}).catch(n=>{console.error("Fehler beim Kopieren in die Zwischenablage: ",n)});else{const n=document.createElement("textarea");n.value=o,document.body.appendChild(n),n.select();try{document.execCommand("copy"),e&&this.showCopyMessage()}catch(a){console.error("Fehler beim Kopieren in die Zwischenablage: ",a)}document.body.removeChild(n)}},showCopyMessage(){this.copyMessage=!0,this.$root.postClientMessage("Log in die Zwischenablage kopiert.","info"),setTimeout(()=>{this.copyMessage=!1},3e3)},async postToPastebin(){try{const o=N.gzip(this.logData),e=await y.post("https://bytebin.openwb.de/post",o,{headers:{"Content-Type":"text/log","Content-Encoding":"gzip"}});if(!e.data.key)throw new Error("Key is missing in the response");const n=e.data.key;this.pastebinLink=`https://paste.openwb.de/${n}`,console.log("Pastebin link:",this.pastebinLink),this.copyToClipboard(this.pastebinLink,!1),this.$root.postClientMessage(`Log an Pastebin gesendet.
Key: ${n}
Der Link wurde in die Zwischenablage kopiert.`,"info")}catch(o){console.error("Fehler beim Posten auf paste.openwb.de: ",o)}}}},I={class:"log-data mb-0"};function A(o,e,n,a,t,s){const d=l("font-awesome-icon"),c=l("openwb-base-avatar"),_=l("openwb-base-select-input"),w=l("openwb-base-alert"),k=l("openwb-base-card");return u(),g(k,{title:n.title,class:"log-card",collapsible:!0,collapsed:!0,onExpanded:s.onCardExpand},{actions:r(({collapsed:i})=>[i?m("",!0):(u(),g(c,{key:0,class:f(["clickable mr-1",t.pastebinLink?"bg-success":"bg-info"]),onClick:L(s.postToPastebin,["stop"])},{default:r(()=>[p(d,{icon:t.pastebinLink?["fas","check"]:["fas","share-nodes"],title:t.pastebinLink?"Link in die Zwischenablage kopiert":"Log auf paste.openwb.de teilen"},null,8,["icon","title"])]),_:1},8,["class","onClick"])),i?m("",!0):(u(),g(c,{key:1,class:f(["clickable mr-1",t.copyMessage?"bg-success":"bg-info"]),onClick:e[0]||(e[0]=L(D=>s.copyToClipboard(t.logData),["stop"]))},{default:r(()=>[p(d,{icon:t.copyMessage?["fas","check"]:["fas","clipboard"],title:t.copyMessage?"Log in die Zwischenablage kopiert":"Log kopieren"},null,8,["icon","title"])]),_:1},8,["class"])),i?m("",!0):(u(),g(c,{key:2,class:f(["clickable",t.loading?"bg-success":"bg-info"]),onClick:e[1]||(e[1]=L(D=>s.loadLog(n.logFile,t.selectedVariant),["stop"]))},{default:r(()=>[p(d,{class:f(t.loading?"fa-spin-pulse":""),icon:t.loading?["fas","spinner"]:["fas","file-download"],title:"Log laden/aktualisieren"},null,8,["class","icon"])]),_:1},8,["class"]))]),default:r(()=>[t.foundFiles.length>0?(u(),g(w,{key:0,subtype:"info"},{default:r(()=>[h(" Im "+v(n.title)+" stehen unterschiedliche Logauszüge zur Verfügung. Standardmässig werden Logs der letzten 3 Durchläufe geladen, für viele Fälle sollte dies ausreichen. Optional kann auch das gesamte Log geladen werden.",1),e[4]||(e[4]=b("br",null,null,-1)),e[5]||(e[5]=h(" Wurde eine Warnung oder ein Fehler protokolliert steht zusätzlich der letzte Durchlauf mit Warnungen und Fehlern zur Verfügung.",-1)),e[6]||(e[6]=b("br",null,null,-1)),p(_,{modelValue:t.selectedVariant,"onUpdate:modelValue":e[2]||(e[2]=i=>t.selectedVariant=i),title:"Logfile",required:"",options:t.foundFiles.map(i=>({value:i.suffix,text:i.title})),onChange:e[3]||(e[3]=i=>s.loadLog(n.logFile,t.selectedVariant))},null,8,["modelValue","options"])]),_:1,__:[4,5,6]})):m("",!0),b("pre",I,v(t.logData),1)]),_:1},8,["title","onExpanded"])}const K=F(E,[["render",A],["__scopeId","data-v-a320c3d6"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/debug_config/LogCard.vue"]]),Z={name:"OpenwbDebuggingView",components:{OpenwbLogCard:K},mixins:[x],emits:["save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/debug_level"],logFiles:[{title:"Main-Log",fileName:"/openWB/ramdisk/main.log"},{title:"Log des internen Ladepunktes",fileName:"/openWB/ramdisk/internal_chargepoint.log"},{title:"MQTT-Log",fileName:"/openWB/ramdisk/mqtt.log"},{title:"SoC-Log",fileName:"/openWB/ramdisk/soc.log"},{title:"Protokoll des letzten Updates",fileName:"/openWB/data/log/update.log"},{title:"Protokoll des Remote-Dienstes",fileName:"/openWB/ramdisk/remote_support.log"},{title:"Protokoll des SmartHome Dienstes",fileName:"/openWB/ramdisk/smarthome.log"},{title:"Protokoll der Datenmigration",fileName:"/openWB/data/log/data_migration.log"},{title:"Protokoll über die Schaltvorgänge von steuerbaren Verbrauchseinrichtungen",fileName:"/openWB/data/log/steuve_control_command.log"},{title:"Thread-Erros",fileName:"/openWB/ramdisk/thread_errors.log"}]}}},O={class:"debugging"},R={name:"debugConfigForm"};function U(o,e,n,a,t,s){const d=l("openwb-base-button-group-input"),c=l("openwb-base-alert"),_=l("openwb-base-card"),w=l("openwb-base-submit-buttons"),k=l("openwb-log-card");return u(),C("div",O,[b("form",R,[p(_,{title:"Protokollierung"},{default:r(()=>[p(d,{title:"Debug Level",buttons:[{buttonValue:30,text:"Warnungen und Fehler"},{buttonValue:20,text:"Info"},{buttonValue:10,text:"Details"}],"model-value":o.$store.state.mqtt["openWB/system/debug_level"],"onUpdate:modelValue":e[0]||(e[0]=i=>o.updateState("openWB/system/debug_level",i))},{help:r(()=>e[4]||(e[4]=[h(' Wenn der Debug Level auf "Info" oder "Details" gesetzt wird, werden mehr Informationen in die Logdateien geschrieben. Im normalen Betrieb sollte immer "Warnungen und Fehler" gewählt werden, um die Schreibvorgänge auf der SD-Karte zu reduzieren. ',-1)])),_:1},8,["model-value"]),p(c,{subtype:"warning"},{default:r(()=>e[5]||(e[5]=[h(' Achtung! In den Einstellungen "Info" und "Details" können in den Logdateien sensible Daten wie Benutzernamen und Passwörter enthalten sein. Diese sollten vor dem Veröffentlichen z.B. im Forum unkenntlich gemacht werden. Private IP-Adressen (z.B. 192.168.x.x) müssen nicht maskiert werden, da diese nicht über das Internet erreichbar sind. ',-1)])),_:1,__:[5]})]),_:1}),p(w,{"form-name":"debugConfigForm",onSave:e[1]||(e[1]=i=>o.$emit("save")),onReset:e[2]||(e[2]=i=>o.$emit("reset")),onDefaults:e[3]||(e[3]=i=>o.$emit("defaults"))})]),(u(!0),C(S,null,q(t.logFiles,i=>(u(),g(k,{key:i.fileName,title:i.title,"log-file":i.fileName},null,8,["title","log-file"]))),128))])}const H=F(Z,[["render",U],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/DebugConfig.vue"]]);export{H as default}; diff --git a/web/settings/assets/GeneralChargeConfig-866a1615.js b/web/settings/assets/GeneralChargeConfig-28e21ec2.js similarity index 83% rename from web/settings/assets/GeneralChargeConfig-866a1615.js rename to web/settings/assets/GeneralChargeConfig-28e21ec2.js index 626e539339..b0be7131b4 100644 --- a/web/settings/assets/GeneralChargeConfig-866a1615.js +++ b/web/settings/assets/GeneralChargeConfig-28e21ec2.js @@ -1 +1 @@ -import{_ as f,C as L}from"./index-93388667.js";import{_ as O}from"./dynamic-import-helper-be004503.js";import{l as q,a6 as D,a7 as F,F as A}from"./vendor-fortawesome-66071a0e.js";import{_ as B,u,l as a,m as s,x as b,E as r,B as i,F as _,G as n,A as d,a2 as U,a3 as N,N as I,z as y}from"./vendor-25d394b4.js";const M={props:{electricityTariff:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},R=B(M,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/ElectricityTariffConfigMixin.vue"]]),Z={name:"ElectricityTariffConfigFallback",mixins:[R]},H={class:"backup-cloud-fallback"},j={key:1};function G(t,e,g,W,z,m){const l=u("openwb-base-alert"),p=u("openwb-base-textarea");return a(),s("div",H,[Object.keys(t.electricityTariff.configuration).length==0?(a(),b(l,{key:0,subtype:"info"},{default:r(()=>[i(' Der Anbieter "'+_(t.electricityTariff.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(a(),s("div",j,[n(l,{subtype:"warning"},{default:r(()=>[i(' Es wurde keine Konfigurationsseite für den Anbieter "'+_(t.electricityTariff.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(p,{title:"Konfiguration",subtype:"json","model-value":t.electricityTariff.configuration,"onUpdate:modelValue":e[0]||(e[0]=h=>t.updateConfiguration(h,"configuration"))},{help:r(()=>e[1]||(e[1]=[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),n(l,{subtype:"info"},{default:r(()=>[d("pre",null,_(JSON.stringify(t.electricityTariff.configuration,void 0,2)),1)]),_:1})]))])}const J=B(Z,[["render",G],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/OpenwbElectricityTariffConfigFallback.vue"]]);q.add(D,F);const K={name:"OpenwbElectricityTariffProxy",components:{FontAwesomeIcon:A},props:{electricityTariff:{type:Object,required:!0}},emits:["update:configuration"],methods:{getTariffComponent(){return console.debug(`loading electricity tariff: ${this.electricityTariff.type}`),U({loader:()=>O(Object.assign({"./awattar/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-858ebc25.js"),["assets/electricity_tariff-858ebc25.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/index-93388667.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./energycharts/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-e3583a43.js"),["assets/electricity_tariff-e3583a43.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/index-93388667.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fixed_hours/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-09587c2e.js"),["assets/electricity_tariff-09587c2e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/electricity_tariff-48648707.css"]),"./octopusenergy/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-48b3c8b7.js"),["assets/electricity_tariff-48b3c8b7.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/index-93388667.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./ostrom/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-c8b9c23c.js"),["assets/electricity_tariff-c8b9c23c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/index-93388667.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./rabot/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-9da2adde.js"),["assets/electricity_tariff-9da2adde.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/index-93388667.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./tibber/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-02377493.js"),["assets/electricity_tariff-02377493.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/index-93388667.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./voltego/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-9eb316f1.js"),["assets/electricity_tariff-9eb316f1.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/index-93388667.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.electricityTariff.type}/electricity_tariff.vue`),errorComponent:J})},updateConfiguration(t){this.$emit("update:configuration",t)}}};function x(t,e,g,W,z,m){const l=u("font-awesome-icon"),p=u("openwb-base-alert"),h=u("openwb-base-heading");return a(),s(I,null,[g.electricityTariff.official?(a(),b(p,{key:0,subtype:"success"},{default:r(()=>[n(l,{icon:["fas","certificate"]}),i(' Das ausgewählte Modul "'+_(g.electricityTariff.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(a(),b(p,{key:1,subtype:"info"},{default:r(()=>[n(l,{icon:["fas","people-group"]}),i(' Das ausgewählte Modul "'+_(g.electricityTariff.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),n(h,null,{default:r(()=>[i(' Einstellungen für Modul "'+_(g.electricityTariff.name)+'" ',1)]),_:1}),(a(),b(N(m.getTariffComponent()),{"electricity-tariff":g.electricityTariff,"onUpdate:configuration":e[0]||(e[0]=c=>m.updateConfiguration(c))},null,40,["electricity-tariff"]))],64)}const Q=B(K,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/OpenwbElectricityTariffProxy.vue"]]),X={name:"OpenwbGeneralChargeConfigView",components:{OpenwbElectricityTariffProxy:Q},mixins:[L],emits:["save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/bat/config/power_limit_mode","openWB/bat/config/bat_control_permitted","openWB/bat/get/power_limit_controllable","openWB/general/extern","openWB/general/chargemode_config/phase_switch_delay","openWB/general/chargemode_config/retry_failed_phase_switches","openWB/general/chargemode_config/unbalanced_load","openWB/general/chargemode_config/unbalanced_load_limit","openWB/general/prices/bat","openWB/general/prices/grid","openWB/general/prices/pv","openWB/optional/et/provider","openWB/optional/ocpp/config","openWB/system/configurable/electricity_tariffs"]}},computed:{electricityTariffList(){return this.$store.state.mqtt["openWB/system/configurable/electricity_tariffs"]}},methods:{getElectricityTariffDefaultConfiguration(t){const e=this.electricityTariffList.find(g=>g.value==t);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...e.defaults}:(console.warn("no default configuration found for electricity tariff type!",t),{})},updateSelectedElectricityTariff(t){this.updateState("openWB/optional/et/provider",t,"type"),this.updateState("openWB/optional/et/provider",this.getElectricityTariffDefaultConfiguration(t))},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)}}},Y={class:"generalChargeConfig"},ee={name:"generalChargeConfigForm"},te={key:0},ne={key:1},ie={key:0},re={key:1},oe={key:1},ae={key:0},se={key:1},le={key:0},ue={key:0},de={key:1},pe={key:0},ge={key:1},fe={key:0};function me(t,e,g,W,z,m){const l=u("openwb-base-alert"),p=u("openwb-base-button-group-input"),h=u("openwb-base-range-input"),c=u("openwb-base-number-input"),w=u("openwb-base-card"),k=u("openwb-base-heading"),S=u("openwb-base-select-input"),C=u("openwb-electricity-tariff-proxy"),$=u("openwb-base-text-input"),T=u("openwb-base-submit-buttons");return a(),s("div",Y,[d("form",ee,[n(w,{title:"Allgemein"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),s("div",te,[n(l,{subtype:"info"},{default:r(()=>e[17]||(e[17]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[17]})])):(a(),s("div",ne,[n(p,{title:"Begrenzung der Schieflast",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"],"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateState("openWB/general/chargemode_config/unbalanced_load",o))},{help:r(()=>e[18]||(e[18]=[i(" Wenn diese Option aktiviert ist, werden nicht-dreiphasige Ladevorgänge so geregelt, dass am Netzanschlusspunkt (EVU-Zähler) die eingestellte Grenze für die Schieflast nicht überschritten wird. Hierfür muss der EVU-Zähler einzelne Phasenströme bereitstellen!",-1),d("br",null,null,-1),i(' Weiterhin müssen bei den Ladepunkten sowie Fahrzeugen sämtliche Angaben zur Anzahl angeschlossener/unterstützter Phasen und der Phasenrotation hinterlegt werden, damit der Regelung bekannt ist, welcher Ladevorgang welche Phase am Netzanschluss beeinflusst. siehe "Konfiguration - Ladepunkte -> elektrischer Anschluss - Phase 1" und "Konfiguration - Fahrzeuge -> Fahrzeug-Profile" ',-1)])),_:1},8,["model-value"]),t.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"]?(a(),b(h,{key:0,title:"Erlaubte Schieflast",min:10,max:32,step:1,unit:"A","model-value":t.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load_limit"],"onUpdate:modelValue":e[1]||(e[1]=o=>t.updateState("openWB/general/chargemode_config/unbalanced_load_limit",o))},{help:r(()=>e[19]||(e[19]=[i(" Hiermit wird festgelegt, welche Schieflast am Netzanschlusspunkt erlaubt ist. Bei Überschreitung werden gezielt einzelne Ladevorgänge in der Leistung begrenzt. ",-1)])),_:1},8,["model-value"])):y("",!0),n(p,{title:"Phasenumschaltung wiederholt anstoßen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/retry_failed_phase_switches"],"onUpdate:modelValue":e[2]||(e[2]=o=>t.updateState("openWB/general/chargemode_config/retry_failed_phase_switches",o))},{help:r(()=>e[20]||(e[20]=[i(" Wenn diese Option aktiviert ist, werden bis zu zwei Umschaltversuche vorgenommen, wenn die vorgegebene und genutzte Phasenzahl nicht übereinstimmen. Wird die Option deaktiviert, wird nur eine Umschaltung durchgeführt.",-1),d("br",null,null,-1),i(" Die gezählten Fehlversuche werden mit dem Abstecken zurückgesetzt. ",-1)])),_:1},8,["model-value"]),n(c,{title:"Pufferzeit zwischen automat. Phasenumschaltungen",unit:"Min.",min:5,max:20,step:1,"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/phase_switch_delay"],"onUpdate:modelValue":e[3]||(e[3]=o=>t.updateState("openWB/general/chargemode_config/phase_switch_delay",o))},{help:r(()=>e[21]||(e[21]=[i(" Um zu viele Umschaltungen zu vermeiden, wird mindestens die hier eingestellte Zeit zwischen zwei Umschaltungen abgewartet. Das Umschalten auf mehrphasiges Laden erfolgt nur, wenn mit der maximalen Stromstärke geladen wird und genug Leistung für mehrphasiges Laden zur Verfügung steht. Auf einphasiges Laden wird zurückgeschaltet, wenn auf die minimale Stromstärke heruntergeregelt wurde. Die Verzögerung wird nur bei der automatischen Phasenumschaltung bei Überschuss-Laden abgewartet.",-1),d("br",null,null,-1),i(" Ist ausreichend Überschuss vorhanden, wird beim Ladestart die Umschaltverzögerung nicht abgewartet, sondern direkt mit mehrphasiger Ladung begonnen. ",-1)])),_:1},8,["model-value"])]))]),_:1}),n(w,{title:"Ladekosten"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),s("div",ie,[n(l,{subtype:"info"},{default:r(()=>e[22]||(e[22]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[22]})])):(a(),s("div",re,[n(k,{class:"mt-0"},{help:r(()=>e[23]||(e[23]=[i(" Zur Berechnung der Ladekosten im Lade-Protokoll werden stundenweise die Anteile der Stromquellen (Speicher, Netz, PV) berechnet und mit den hier angegebenen Preisen multipliziert.",-1),d("br",null,null,-1),i(" Ist die Abrechnung über das Ladeprotokoll, z.B. mit dem Arbeitgeber, vereinbart, ist bei allen drei Feldern der vereinbarte Preis einzutragen. ",-1)])),default:r(()=>[e[24]||(e[24]=i(" Berechnung der Ladekosten ",-1))]),_:1,__:[24]}),t.$store.state.mqtt["openWB/optional/et/provider"]&&t.$store.state.mqtt["openWB/optional/et/provider"].type?(a(),b(l,{key:0,subtype:"info"},{default:r(()=>e[25]||(e[25]=[i(" Für den Netzbezug wird der dynamische Strompreis des Anbieters für variable Stromtarife verwendet. Wenn keine dynamischen Strompreise abgefragt werden können, wird der eingetragene Preis für den Netzbezug verwendet. ",-1)])),_:1,__:[25]})):y("",!0),n(c,{title:"Preis für Netzbezug",step:.001,precision:3,unit:"ct/kWh",required:"","model-value":t.$store.state.mqtt["openWB/general/prices/grid"]*1e5,"onUpdate:modelValue":e[4]||(e[4]=o=>t.updateState("openWB/general/prices/grid",parseFloat((o/1e5).toFixed(7))))},null,8,["model-value"]),n(c,{title:"Preis für Speicherentladung",step:.001,precision:3,unit:"ct/kWh",required:"","model-value":t.$store.state.mqtt["openWB/general/prices/bat"]*1e5,"onUpdate:modelValue":e[5]||(e[5]=o=>t.updateState("openWB/general/prices/bat",parseFloat((o/1e5).toFixed(7))))},null,8,["model-value"]),n(c,{title:"Preis für PV-Strom",step:.001,precision:3,unit:"ct/kWh",required:"","model-value":t.$store.state.mqtt["openWB/general/prices/pv"]*1e5,"onUpdate:modelValue":e[6]||(e[6]=o=>t.updateState("openWB/general/prices/pv",parseFloat((o/1e5).toFixed(7))))},null,8,["model-value"]),e[28]||(e[28]=d("hr",null,null,-1)),n(k,null,{default:r(()=>e[26]||(e[26]=[i(" Variable Stromtarife ",-1)])),_:1,__:[26]}),n(l,{subtype:"info"},{default:r(()=>e[27]||(e[27]=[i(" Bei Sofort- und Zeitladen wird nur geladen, wenn der Strompreis unter dem angegebenen maximalen Strompreis liegt. Für Zielladen wird die Ladedauer ermittelt und dann zu den günstigsten Stunden geladen.",-1),d("br",null,null,-1),i(" Wenn keine Preise abgefragt werden können, wird bei Sofort- und Zeitladen immer geladen und bei Zielladen zunächst mit PV-Überschuss und zum Erreichen des Zieltermins mit Netzstrom. ",-1)])),_:1,__:[27]}),n(S,{class:"mb-2",title:"Anbieter",options:m.electricityTariffList,"model-value":t.$store.state.mqtt["openWB/optional/et/provider"]?t.$store.state.mqtt["openWB/optional/et/provider"].type:"","onUpdate:modelValue":e[7]||(e[7]=o=>m.updateSelectedElectricityTariff(o))},null,8,["options","model-value"]),t.$store.state.mqtt["openWB/optional/et/provider"]&&t.$store.state.mqtt["openWB/optional/et/provider"].type?(a(),s("div",oe,[n(C,{"electricity-tariff":t.$store.state.mqtt["openWB/optional/et/provider"],"onUpdate:configuration":e[8]||(e[8]=o=>m.updateConfiguration("openWB/optional/et/provider",o))},null,8,["electricity-tariff"])])):y("",!0)]))]),_:1}),n(w,{title:"Optional"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),s("div",ae,[n(l,{subtype:"info"},{default:r(()=>e[29]||(e[29]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[29]})])):(a(),s("div",se,[n(l,{subtype:"info",class:"mb-3"},{default:r(()=>[e[30]||(e[30]=d("p",null,[i(" Die aktive Speichersteuerung durch openWB basiert auf öffentlich zugänglichen Informationen zu den verschiedenen Speichersystemen. Diese können auch nicht herstellerseitig freigegebene Informationen beinhalten."),d("br"),i(' Fragen bezüglich der Gewährleistung und Hardwarekompatibilität sind vor der Nutzung mit dem Hersteller zu klären. openWB übernimmt keine Haftung für Schäden, welche aus der Nutzung der "aktiven Speichersteuerung" entstehen. ')],-1)),n(p,{title:"Hinweise zur aktiven Speichersteuerung gelesen und akzeptiert",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/bat/config/bat_control_permitted"],"onUpdate:modelValue":e[9]||(e[9]=o=>t.updateState("openWB/bat/config/bat_control_permitted",o))},null,8,["model-value"])]),_:1,__:[30]}),t.$store.state.mqtt["openWB/bat/config/bat_control_permitted"]===!0?(a(),s("div",le,[n(k,{class:"mt-0"},{default:r(()=>e[31]||(e[31]=[i(" Speicher-Entladung ins Fahrzeug steuern ",-1)])),_:1,__:[31]}),t.$store.state.mqtt["openWB/bat/get/power_limit_controllable"]===!0?(a(),s("div",ue,[n(p,{title:"Speicher-Entladung",buttons:[{buttonValue:"no_limit",text:"immer"},{buttonValue:"limit_stop",text:"gesperrt, wenn Fahrzeug lädt"},{buttonValue:"limit_to_home_consumption",text:"für Hausverbrauch"}],"model-value":t.$store.state.mqtt["openWB/bat/config/power_limit_mode"],"onUpdate:modelValue":e[10]||(e[10]=o=>t.updateState("openWB/bat/config/power_limit_mode",o))},{help:r(()=>e[32]||(e[32]=[i(" Wenn das Entladen des Speichers immer erlaubt ist, wird das Fahrzeug aus dem Speicher geladen anstatt Strom aus dem Netz zu beziehen. ",-1),d("br",null,null,-1),i(' Im Modus "gesperrt, wenn Fahrzeug lädt", wird die Entladung nur zugelassen, wenn alle Fahrzeuge im Modus PV-Laden ohne Mindeststrom oder Zielladen mit PV-Überschuss laden.',-1),d("br",null,null,-1),i(' Wenn das Entladen des Speichers auf den Hausverbrauch begrenzt ist und mindestens Fahrzeuge nicht im Modus PV-Laden ohne Mindeststrom oder Zielladen lädt, wird die Entladung des Speichers in Höhe des Hausverbrauchs zugelassen. Kann die Entladung am Speicher nur komplett gesperrt werden, verhält sich diese Einstellung wie "gesperrt, wenn Fahrzeug lädt".',-1),d("br",null,null,-1),i(" Diese Einstellung übersteuert ggf die Einstellungen zur Speicher-Beachtung im Modus PV-Laden. ",-1)])),_:1},8,["model-value"])])):(a(),s("div",de,[n(l,{subtype:"info"},{default:r(()=>e[33]||(e[33]=[i(" Die Speicher-Entladung ins Fahrzeug kann nicht gesteuert werden, da die Entladeleistung nicht an den/die konfigurierten Speicher übergeben werden kann. ",-1)])),_:1,__:[33]})]))])):y("",!0)]))]),_:1}),n(w,{title:"OCPP Anbindung"},{default:r(()=>{var o,E,P,V;return[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),s("div",pe,[n(l,{subtype:"info"},{default:r(()=>e[34]||(e[34]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[34]})])):(a(),s("div",ge,[n(p,{title:"OCPP aktivieren",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(o=t.$store.state.mqtt["openWB/optional/ocpp/config"])==null?void 0:o.active,"onUpdate:modelValue":e[11]||(e[11]=v=>t.updateState("openWB/optional/ocpp/config",v,"active"))},null,8,["model-value"]),((E=t.$store.state.mqtt["openWB/optional/ocpp/config"])==null?void 0:E.active)===!0?(a(),s("div",fe,[n(l,{subtype:"info"},{default:r(()=>e[35]||(e[35]=[i(" Die Ladepunkte übermitteln den ID-Tag, Heartbeat und den Zählerstand zum Zeitpunkt des Ansteckens, Absteckens und alle 5 Minuten. Eine Steuerung per OCPP ist nicht möglich.",-1),d("br",null,null,-1),i(" Alle Ladepunkte, die ihre Daten an das OCPP-Backend übermitteln sollen, müssen zunächst im OCPP-Backend angelegt werden. Die dort eingetragene Chargebox ID muss in der openWB in den Einstellungen des Ladepunkts eingetragen werden. ",-1)])),_:1,__:[35]}),n($,{title:"URL des OCPP-Backends",subtype:"url","model-value":(P=t.$store.state.mqtt["openWB/optional/ocpp/config"])==null?void 0:P.url,"onUpdate:modelValue":e[12]||(e[12]=v=>t.updateState("openWB/optional/ocpp/config",v,"url"))},null,8,["model-value"]),n(S,{title:"Version","not-selected":"Bitte auswählen",options:[{value:"ocpp1.6",text:"OCPP 1.6"},{value:"ocpp2.0.1",text:"OCPP 2.0.1"}],"model-value":(V=t.$store.state.mqtt["openWB/optional/ocpp/config"])==null?void 0:V.version,"onUpdate:modelValue":e[13]||(e[13]=v=>t.updateState("openWB/optional/ocpp/config",v,"version"))},null,8,["model-value"])])):y("",!0)]))]}),_:1}),n(T,{"form-name":"generalChargeConfigForm",onSave:e[14]||(e[14]=o=>t.$emit("save")),onReset:e[15]||(e[15]=o=>t.$emit("reset")),onDefaults:e[16]||(e[16]=o=>t.$emit("defaults"))})])])}const ce=B(X,[["render",me],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralChargeConfig.vue"]]),ye=Object.freeze(Object.defineProperty({__proto__:null,default:ce},Symbol.toStringTag,{value:"Module"}));export{R as E,ye as G}; +import{_ as f,C as L}from"./index-eccf5556.js";import{_ as O}from"./dynamic-import-helper-be004503.js";import{l as q,a6 as D,a7 as F,F as A}from"./vendor-fortawesome-d6ee0a65.js";import{_ as B,u,l as a,m as s,x as b,E as r,B as i,F as _,G as n,A as d,a2 as U,a3 as N,N as I,z as y}from"./vendor-57e3a63c.js";const M={props:{electricityTariff:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},R=B(M,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/ElectricityTariffConfigMixin.vue"]]),Z={name:"ElectricityTariffConfigFallback",mixins:[R]},H={class:"backup-cloud-fallback"},j={key:1};function G(t,e,g,W,z,m){const l=u("openwb-base-alert"),p=u("openwb-base-textarea");return a(),s("div",H,[Object.keys(t.electricityTariff.configuration).length==0?(a(),b(l,{key:0,subtype:"info"},{default:r(()=>[i(' Der Anbieter "'+_(t.electricityTariff.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(a(),s("div",j,[n(l,{subtype:"warning"},{default:r(()=>[i(' Es wurde keine Konfigurationsseite für den Anbieter "'+_(t.electricityTariff.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(p,{title:"Konfiguration",subtype:"json","model-value":t.electricityTariff.configuration,"onUpdate:modelValue":e[0]||(e[0]=h=>t.updateConfiguration(h,"configuration"))},{help:r(()=>e[1]||(e[1]=[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),n(l,{subtype:"info"},{default:r(()=>[d("pre",null,_(JSON.stringify(t.electricityTariff.configuration,void 0,2)),1)]),_:1})]))])}const J=B(Z,[["render",G],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/OpenwbElectricityTariffConfigFallback.vue"]]);q.add(D,F);const K={name:"OpenwbElectricityTariffProxy",components:{FontAwesomeIcon:A},props:{electricityTariff:{type:Object,required:!0}},emits:["update:configuration"],methods:{getTariffComponent(){return console.debug(`loading electricity tariff: ${this.electricityTariff.type}`),U({loader:()=>O(Object.assign({"./awattar/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-192d8c6f.js"),["assets/electricity_tariff-192d8c6f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/index-eccf5556.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./energycharts/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-56f9a905.js"),["assets/electricity_tariff-56f9a905.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/index-eccf5556.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fixed_hours/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-54f66a4e.js"),["assets/electricity_tariff-54f66a4e.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/electricity_tariff-48648707.css"]),"./octopusenergy/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-7adf718b.js"),["assets/electricity_tariff-7adf718b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/index-eccf5556.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./ostrom/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-e06fa542.js"),["assets/electricity_tariff-e06fa542.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/index-eccf5556.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./rabot/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-f82826f0.js"),["assets/electricity_tariff-f82826f0.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/index-eccf5556.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./tibber/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-30cdacc8.js"),["assets/electricity_tariff-30cdacc8.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/index-eccf5556.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./voltego/electricity_tariff.vue":()=>f(()=>import("./electricity_tariff-46183402.js"),["assets/electricity_tariff-46183402.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/index-eccf5556.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.electricityTariff.type}/electricity_tariff.vue`),errorComponent:J})},updateConfiguration(t){this.$emit("update:configuration",t)}}};function x(t,e,g,W,z,m){const l=u("font-awesome-icon"),p=u("openwb-base-alert"),h=u("openwb-base-heading");return a(),s(I,null,[g.electricityTariff.official?(a(),b(p,{key:0,subtype:"success"},{default:r(()=>[n(l,{icon:["fas","certificate"]}),i(' Das ausgewählte Modul "'+_(g.electricityTariff.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(a(),b(p,{key:1,subtype:"info"},{default:r(()=>[n(l,{icon:["fas","people-group"]}),i(' Das ausgewählte Modul "'+_(g.electricityTariff.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),n(h,null,{default:r(()=>[i(' Einstellungen für Modul "'+_(g.electricityTariff.name)+'" ',1)]),_:1}),(a(),b(N(m.getTariffComponent()),{"electricity-tariff":g.electricityTariff,"onUpdate:configuration":e[0]||(e[0]=c=>m.updateConfiguration(c))},null,40,["electricity-tariff"]))],64)}const Q=B(K,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/OpenwbElectricityTariffProxy.vue"]]),X={name:"OpenwbGeneralChargeConfigView",components:{OpenwbElectricityTariffProxy:Q},mixins:[L],emits:["save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/bat/config/power_limit_mode","openWB/bat/config/bat_control_permitted","openWB/bat/get/power_limit_controllable","openWB/general/extern","openWB/general/chargemode_config/phase_switch_delay","openWB/general/chargemode_config/retry_failed_phase_switches","openWB/general/chargemode_config/unbalanced_load","openWB/general/chargemode_config/unbalanced_load_limit","openWB/general/prices/bat","openWB/general/prices/grid","openWB/general/prices/pv","openWB/optional/et/provider","openWB/optional/ocpp/config","openWB/system/configurable/electricity_tariffs"]}},computed:{electricityTariffList(){return this.$store.state.mqtt["openWB/system/configurable/electricity_tariffs"]}},methods:{getElectricityTariffDefaultConfiguration(t){const e=this.electricityTariffList.find(g=>g.value==t);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...e.defaults}:(console.warn("no default configuration found for electricity tariff type!",t),{})},updateSelectedElectricityTariff(t){this.updateState("openWB/optional/et/provider",t,"type"),this.updateState("openWB/optional/et/provider",this.getElectricityTariffDefaultConfiguration(t))},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)}}},Y={class:"generalChargeConfig"},ee={name:"generalChargeConfigForm"},te={key:0},ne={key:1},ie={key:0},re={key:1},oe={key:1},ae={key:0},se={key:1},le={key:0},ue={key:0},de={key:1},pe={key:0},ge={key:1},fe={key:0};function me(t,e,g,W,z,m){const l=u("openwb-base-alert"),p=u("openwb-base-button-group-input"),h=u("openwb-base-range-input"),c=u("openwb-base-number-input"),w=u("openwb-base-card"),k=u("openwb-base-heading"),S=u("openwb-base-select-input"),C=u("openwb-electricity-tariff-proxy"),$=u("openwb-base-text-input"),T=u("openwb-base-submit-buttons");return a(),s("div",Y,[d("form",ee,[n(w,{title:"Allgemein"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),s("div",te,[n(l,{subtype:"info"},{default:r(()=>e[17]||(e[17]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[17]})])):(a(),s("div",ne,[n(p,{title:"Begrenzung der Schieflast",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"],"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateState("openWB/general/chargemode_config/unbalanced_load",o))},{help:r(()=>e[18]||(e[18]=[i(" Wenn diese Option aktiviert ist, werden nicht-dreiphasige Ladevorgänge so geregelt, dass am Netzanschlusspunkt (EVU-Zähler) die eingestellte Grenze für die Schieflast nicht überschritten wird. Hierfür muss der EVU-Zähler einzelne Phasenströme bereitstellen!",-1),d("br",null,null,-1),i(' Weiterhin müssen bei den Ladepunkten sowie Fahrzeugen sämtliche Angaben zur Anzahl angeschlossener/unterstützter Phasen und der Phasenrotation hinterlegt werden, damit der Regelung bekannt ist, welcher Ladevorgang welche Phase am Netzanschluss beeinflusst. siehe "Konfiguration - Ladepunkte -> elektrischer Anschluss - Phase 1" und "Konfiguration - Fahrzeuge -> Fahrzeug-Profile" ',-1)])),_:1},8,["model-value"]),t.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"]?(a(),b(h,{key:0,title:"Erlaubte Schieflast",min:10,max:32,step:1,unit:"A","model-value":t.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load_limit"],"onUpdate:modelValue":e[1]||(e[1]=o=>t.updateState("openWB/general/chargemode_config/unbalanced_load_limit",o))},{help:r(()=>e[19]||(e[19]=[i(" Hiermit wird festgelegt, welche Schieflast am Netzanschlusspunkt erlaubt ist. Bei Überschreitung werden gezielt einzelne Ladevorgänge in der Leistung begrenzt. ",-1)])),_:1},8,["model-value"])):y("",!0),n(p,{title:"Phasenumschaltung wiederholt anstoßen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/retry_failed_phase_switches"],"onUpdate:modelValue":e[2]||(e[2]=o=>t.updateState("openWB/general/chargemode_config/retry_failed_phase_switches",o))},{help:r(()=>e[20]||(e[20]=[i(" Wenn diese Option aktiviert ist, werden bis zu zwei Umschaltversuche vorgenommen, wenn die vorgegebene und genutzte Phasenzahl nicht übereinstimmen. Wird die Option deaktiviert, wird nur eine Umschaltung durchgeführt.",-1),d("br",null,null,-1),i(" Die gezählten Fehlversuche werden mit dem Abstecken zurückgesetzt. ",-1)])),_:1},8,["model-value"]),n(c,{title:"Pufferzeit zwischen automat. Phasenumschaltungen",unit:"Min.",min:5,max:20,step:1,"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/phase_switch_delay"],"onUpdate:modelValue":e[3]||(e[3]=o=>t.updateState("openWB/general/chargemode_config/phase_switch_delay",o))},{help:r(()=>e[21]||(e[21]=[i(" Um zu viele Umschaltungen zu vermeiden, wird mindestens die hier eingestellte Zeit zwischen zwei Umschaltungen abgewartet. Das Umschalten auf mehrphasiges Laden erfolgt nur, wenn mit der maximalen Stromstärke geladen wird und genug Leistung für mehrphasiges Laden zur Verfügung steht. Auf einphasiges Laden wird zurückgeschaltet, wenn auf die minimale Stromstärke heruntergeregelt wurde. Die Verzögerung wird nur bei der automatischen Phasenumschaltung bei Überschuss-Laden abgewartet.",-1),d("br",null,null,-1),i(" Ist ausreichend Überschuss vorhanden, wird beim Ladestart die Umschaltverzögerung nicht abgewartet, sondern direkt mit mehrphasiger Ladung begonnen. ",-1)])),_:1},8,["model-value"])]))]),_:1}),n(w,{title:"Ladekosten"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),s("div",ie,[n(l,{subtype:"info"},{default:r(()=>e[22]||(e[22]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[22]})])):(a(),s("div",re,[n(k,{class:"mt-0"},{help:r(()=>e[23]||(e[23]=[i(" Zur Berechnung der Ladekosten im Lade-Protokoll werden stundenweise die Anteile der Stromquellen (Speicher, Netz, PV) berechnet und mit den hier angegebenen Preisen multipliziert.",-1),d("br",null,null,-1),i(" Ist die Abrechnung über das Ladeprotokoll, z.B. mit dem Arbeitgeber, vereinbart, ist bei allen drei Feldern der vereinbarte Preis einzutragen. ",-1)])),default:r(()=>[e[24]||(e[24]=i(" Berechnung der Ladekosten ",-1))]),_:1,__:[24]}),t.$store.state.mqtt["openWB/optional/et/provider"]&&t.$store.state.mqtt["openWB/optional/et/provider"].type?(a(),b(l,{key:0,subtype:"info"},{default:r(()=>e[25]||(e[25]=[i(" Für den Netzbezug wird der dynamische Strompreis des Anbieters für variable Stromtarife verwendet. Wenn keine dynamischen Strompreise abgefragt werden können, wird der eingetragene Preis für den Netzbezug verwendet. ",-1)])),_:1,__:[25]})):y("",!0),n(c,{title:"Preis für Netzbezug",step:.001,precision:3,unit:"ct/kWh",required:"","model-value":t.$store.state.mqtt["openWB/general/prices/grid"]*1e5,"onUpdate:modelValue":e[4]||(e[4]=o=>t.updateState("openWB/general/prices/grid",parseFloat((o/1e5).toFixed(7))))},null,8,["model-value"]),n(c,{title:"Preis für Speicherentladung",step:.001,precision:3,unit:"ct/kWh",required:"","model-value":t.$store.state.mqtt["openWB/general/prices/bat"]*1e5,"onUpdate:modelValue":e[5]||(e[5]=o=>t.updateState("openWB/general/prices/bat",parseFloat((o/1e5).toFixed(7))))},null,8,["model-value"]),n(c,{title:"Preis für PV-Strom",step:.001,precision:3,unit:"ct/kWh",required:"","model-value":t.$store.state.mqtt["openWB/general/prices/pv"]*1e5,"onUpdate:modelValue":e[6]||(e[6]=o=>t.updateState("openWB/general/prices/pv",parseFloat((o/1e5).toFixed(7))))},null,8,["model-value"]),e[28]||(e[28]=d("hr",null,null,-1)),n(k,null,{default:r(()=>e[26]||(e[26]=[i(" Variable Stromtarife ",-1)])),_:1,__:[26]}),n(l,{subtype:"info"},{default:r(()=>e[27]||(e[27]=[i(" Bei Sofort- und Zeitladen wird nur geladen, wenn der Strompreis unter dem angegebenen maximalen Strompreis liegt. Für Zielladen wird die Ladedauer ermittelt und dann zu den günstigsten Stunden geladen.",-1),d("br",null,null,-1),i(" Wenn keine Preise abgefragt werden können, wird bei Sofort- und Zeitladen immer geladen und bei Zielladen zunächst mit PV-Überschuss und zum Erreichen des Zieltermins mit Netzstrom. ",-1)])),_:1,__:[27]}),n(S,{class:"mb-2",title:"Anbieter",options:m.electricityTariffList,"model-value":t.$store.state.mqtt["openWB/optional/et/provider"]?t.$store.state.mqtt["openWB/optional/et/provider"].type:"","onUpdate:modelValue":e[7]||(e[7]=o=>m.updateSelectedElectricityTariff(o))},null,8,["options","model-value"]),t.$store.state.mqtt["openWB/optional/et/provider"]&&t.$store.state.mqtt["openWB/optional/et/provider"].type?(a(),s("div",oe,[n(C,{"electricity-tariff":t.$store.state.mqtt["openWB/optional/et/provider"],"onUpdate:configuration":e[8]||(e[8]=o=>m.updateConfiguration("openWB/optional/et/provider",o))},null,8,["electricity-tariff"])])):y("",!0)]))]),_:1}),n(w,{title:"Optional"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),s("div",ae,[n(l,{subtype:"info"},{default:r(()=>e[29]||(e[29]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[29]})])):(a(),s("div",se,[n(l,{subtype:"info",class:"mb-3"},{default:r(()=>[e[30]||(e[30]=d("p",null,[i(" Die aktive Speichersteuerung durch openWB basiert auf öffentlich zugänglichen Informationen zu den verschiedenen Speichersystemen. Diese können auch nicht herstellerseitig freigegebene Informationen beinhalten."),d("br"),i(' Fragen bezüglich der Gewährleistung und Hardwarekompatibilität sind vor der Nutzung mit dem Hersteller zu klären. openWB übernimmt keine Haftung für Schäden, welche aus der Nutzung der "aktiven Speichersteuerung" entstehen. ')],-1)),n(p,{title:"Hinweise zur aktiven Speichersteuerung gelesen und akzeptiert",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/bat/config/bat_control_permitted"],"onUpdate:modelValue":e[9]||(e[9]=o=>t.updateState("openWB/bat/config/bat_control_permitted",o))},null,8,["model-value"])]),_:1,__:[30]}),t.$store.state.mqtt["openWB/bat/config/bat_control_permitted"]===!0?(a(),s("div",le,[n(k,{class:"mt-0"},{default:r(()=>e[31]||(e[31]=[i(" Speicher-Entladung ins Fahrzeug steuern ",-1)])),_:1,__:[31]}),t.$store.state.mqtt["openWB/bat/get/power_limit_controllable"]===!0?(a(),s("div",ue,[n(p,{title:"Speicher-Entladung",buttons:[{buttonValue:"no_limit",text:"immer"},{buttonValue:"limit_stop",text:"gesperrt, wenn Fahrzeug lädt"},{buttonValue:"limit_to_home_consumption",text:"für Hausverbrauch"}],"model-value":t.$store.state.mqtt["openWB/bat/config/power_limit_mode"],"onUpdate:modelValue":e[10]||(e[10]=o=>t.updateState("openWB/bat/config/power_limit_mode",o))},{help:r(()=>e[32]||(e[32]=[i(" Wenn das Entladen des Speichers immer erlaubt ist, wird das Fahrzeug aus dem Speicher geladen anstatt Strom aus dem Netz zu beziehen. ",-1),d("br",null,null,-1),i(' Im Modus "gesperrt, wenn Fahrzeug lädt", wird die Entladung nur zugelassen, wenn alle Fahrzeuge im Modus PV-Laden ohne Mindeststrom oder Zielladen mit PV-Überschuss laden.',-1),d("br",null,null,-1),i(' Wenn das Entladen des Speichers auf den Hausverbrauch begrenzt ist und mindestens Fahrzeuge nicht im Modus PV-Laden ohne Mindeststrom oder Zielladen lädt, wird die Entladung des Speichers in Höhe des Hausverbrauchs zugelassen. Kann die Entladung am Speicher nur komplett gesperrt werden, verhält sich diese Einstellung wie "gesperrt, wenn Fahrzeug lädt".',-1),d("br",null,null,-1),i(" Diese Einstellung übersteuert ggf die Einstellungen zur Speicher-Beachtung im Modus PV-Laden. ",-1)])),_:1},8,["model-value"])])):(a(),s("div",de,[n(l,{subtype:"info"},{default:r(()=>e[33]||(e[33]=[i(" Die Speicher-Entladung ins Fahrzeug kann nicht gesteuert werden, da die Entladeleistung nicht an den/die konfigurierten Speicher übergeben werden kann. ",-1)])),_:1,__:[33]})]))])):y("",!0)]))]),_:1}),n(w,{title:"OCPP Anbindung"},{default:r(()=>{var o,E,P,V;return[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),s("div",pe,[n(l,{subtype:"info"},{default:r(()=>e[34]||(e[34]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[34]})])):(a(),s("div",ge,[n(p,{title:"OCPP aktivieren",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(o=t.$store.state.mqtt["openWB/optional/ocpp/config"])==null?void 0:o.active,"onUpdate:modelValue":e[11]||(e[11]=v=>t.updateState("openWB/optional/ocpp/config",v,"active"))},null,8,["model-value"]),((E=t.$store.state.mqtt["openWB/optional/ocpp/config"])==null?void 0:E.active)===!0?(a(),s("div",fe,[n(l,{subtype:"info"},{default:r(()=>e[35]||(e[35]=[i(" Die Ladepunkte übermitteln den ID-Tag, Heartbeat und den Zählerstand zum Zeitpunkt des Ansteckens, Absteckens und alle 5 Minuten. Eine Steuerung per OCPP ist nicht möglich.",-1),d("br",null,null,-1),i(" Alle Ladepunkte, die ihre Daten an das OCPP-Backend übermitteln sollen, müssen zunächst im OCPP-Backend angelegt werden. Die dort eingetragene Chargebox ID muss in der openWB in den Einstellungen des Ladepunkts eingetragen werden. ",-1)])),_:1,__:[35]}),n($,{title:"URL des OCPP-Backends",subtype:"url","model-value":(P=t.$store.state.mqtt["openWB/optional/ocpp/config"])==null?void 0:P.url,"onUpdate:modelValue":e[12]||(e[12]=v=>t.updateState("openWB/optional/ocpp/config",v,"url"))},null,8,["model-value"]),n(S,{title:"Version","not-selected":"Bitte auswählen",options:[{value:"ocpp1.6",text:"OCPP 1.6"},{value:"ocpp2.0.1",text:"OCPP 2.0.1"}],"model-value":(V=t.$store.state.mqtt["openWB/optional/ocpp/config"])==null?void 0:V.version,"onUpdate:modelValue":e[13]||(e[13]=v=>t.updateState("openWB/optional/ocpp/config",v,"version"))},null,8,["model-value"])])):y("",!0)]))]}),_:1}),n(T,{"form-name":"generalChargeConfigForm",onSave:e[14]||(e[14]=o=>t.$emit("save")),onReset:e[15]||(e[15]=o=>t.$emit("reset")),onDefaults:e[16]||(e[16]=o=>t.$emit("defaults"))})])])}const ce=B(X,[["render",me],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralChargeConfig.vue"]]),ye=Object.freeze(Object.defineProperty({__proto__:null,default:ce},Symbol.toStringTag,{value:"Module"}));export{R as E,ye as G}; diff --git a/web/settings/assets/GeneralConfig-a1e6f160.js b/web/settings/assets/GeneralConfig-3d94b7eb.js similarity index 95% rename from web/settings/assets/GeneralConfig-a1e6f160.js rename to web/settings/assets/GeneralConfig-3d94b7eb.js index 19730ab297..a372a8ede6 100644 --- a/web/settings/assets/GeneralConfig-a1e6f160.js +++ b/web/settings/assets/GeneralConfig-3d94b7eb.js @@ -1 +1 @@ -import{l as J,a6 as I,a7 as x,F,a0 as j,Q as H,E as K,ag as Z,ah as Q,ai as X}from"./vendor-fortawesome-66071a0e.js";import{_ as O,C as Y}from"./index-93388667.js";import{_ as ee}from"./dynamic-import-helper-be004503.js";import{_ as W,u as m,l as r,m as g,x as c,E as o,B as a,F as w,G as n,A as p,a2 as te,a3 as ne,N as oe,z as f}from"./vendor-25d394b4.js";const ae={props:{webTheme:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},se=W(ae,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/WebThemeConfigMixin.vue"]]),le={name:"WebThemeFallback",mixins:[se]},re={class:"web-theme-fallback"},ie={key:1};function ue(t,e,u,B,V,h){const b=m("openwb-base-alert"),l=m("openwb-base-textarea");return r(),g("div",re,[Object.keys(t.webTheme.configuration).length==0?(r(),c(b,{key:0,subtype:"info"},{default:o(()=>[a(' Das Web Theme "'+w(t.webTheme.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(r(),g("div",ie,[n(b,{subtype:"warning"},{default:o(()=>[a(' Es wurde keine Konfigurationsseite für das Web Theme "'+w(t.webTheme.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(l,{title:"Theme Konfiguration",subtype:"json","model-value":t.webTheme.configuration,"onUpdate:modelValue":e[0]||(e[0]=_=>t.updateConfiguration(_,"configuration"))},{help:o(()=>e[1]||(e[1]=[a(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),n(b,{subtype:"info"},{default:o(()=>[p("pre",null,w(JSON.stringify(t.webTheme.configuration,void 0,2)),1)]),_:1})]))])}const de=W(le,[["render",ue],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/OpenwbWebThemeFallback.vue"]]);J.add(I,x);const ge={name:"OpenwbWebThemeProxy",components:{FontAwesomeIcon:F},props:{webTheme:{type:Object,required:!0}},emits:["update:configuration"],methods:{getThemeComponent(){return console.debug(`loading web theme: ${this.webTheme.type}`),te({loader:()=>ee(Object.assign({"./koala/webTheme.vue":()=>O(()=>import("./webTheme-27077fcd.js"),["assets/webTheme-27077fcd.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./standard_legacy/webTheme.vue":()=>O(()=>import("./webTheme-c3f02b77.js"),["assets/webTheme-c3f02b77.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.webTheme.type}/webTheme.vue`),errorComponent:de})},updateConfiguration(t){this.$emit("update:configuration",t)}}};function pe(t,e,u,B,V,h){const b=m("font-awesome-icon"),l=m("openwb-base-alert"),_=m("openwb-base-heading");return r(),g(oe,null,[u.webTheme.official?(r(),c(l,{key:0,subtype:"success"},{default:o(()=>[n(b,{icon:["fas","certificate"]}),a(' Das ausgewählte Web Theme "'+w(u.webTheme.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(r(),c(l,{key:1,subtype:"info"},{default:o(()=>[n(b,{icon:["fas","people-group"]}),e[1]||(e[1]=a(" Das ausgewählte Theme wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ",-1))]),_:1,__:[1]})),n(_,null,{default:o(()=>[a(' Einstellungen für Web Theme "'+w(u.webTheme.name)+'" ',1)]),_:1}),(r(),c(ne(h.getThemeComponent()),{"web-theme":u.webTheme,"onUpdate:configuration":e[0]||(e[0]=v=>h.updateConfiguration(v))},null,40,["web-theme"]))],64)}const me=W(ge,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/OpenwbWebThemeProxy.vue"]]);J.add(j,H,K,Z,Q,X);const be={name:"OpenwbGeneralConfigView",components:{OpenwbWebThemeProxy:me,FontAwesomeIcon:F},mixins:[Y],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/charge_log_data_config","openWB/general/control_interval","openWB/general/extern","openWB/general/external_buttons_hw","openWB/general/grid_protection_configured","openWB/general/http_api","openWB/general/modbus_control","openWB/general/notifications/configuration","openWB/general/notifications/plug","openWB/general/notifications/selected","openWB/general/notifications/smart_home","openWB/general/notifications/start_charging","openWB/general/notifications/stop_charging","openWB/general/price_kwh","openWB/general/range_unit","openWB/general/web_theme","openWB/system/configurable/web_themes","openWB/system/ip_address"]}},computed:{webThemeList:{get(){return this.$store.state.mqtt["openWB/system/configurable/web_themes"]}},webThemeGroupList:{get(){var e;let t=[{label:"openWB",options:[]},{label:"Community",options:[]}];return(e=this.webThemeList)==null||e.forEach(u=>{u.official===!0?t[0].options.push(u):t[1].options.push(u)}),t}}},methods:{getIpAddress(){return this.$store.state.mqtt["openWB/system/ip_address"]},getWebThemeDefaults(t){const e=this.webThemeList.find(u=>u.value==t);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...JSON.parse(JSON.stringify(e.defaults))}:(console.warn("no default configuration found for web theme type!",t),{})},updateSelectedWebTheme(t){this.updateState("openWB/general/web_theme",this.getWebThemeDefaults(t))},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)}}},fe={class:"generalConfig"},_e={name:"generalConfigForm"},ce={key:0},he={key:1},we={key:1},ve={key:0},We={key:0},Be={key:1},Ve={key:0},ye={key:1},Se={key:0},ke={key:0},Te={key:1};function $e(t,e,u,B,V,h){const b=m("openwb-base-alert"),l=m("openwb-base-button-group-input"),_=m("openwb-base-card"),v=m("openwb-base-heading"),R=m("openwb-base-select-input"),M=m("openwb-web-theme-proxy"),d=m("font-awesome-icon"),G=m("openwb-base-submit-buttons");return r(),g("div",fe,[p("form",_e,[n(_,{title:"Steuerungsmodus"},{default:o(()=>[n(b,{subtype:"info"},{default:o(()=>e[27]||(e[27]=[p("p",null,' Wird für den Steuerungsmodus "primary" gewählt, übernimmt diese openWB die alleinige Regelung und steuert ggf. vorhandene weitere openWB (z.B. secondary openWB, openWB Pro, Satellit u.a.) fern. Sie werden in den Ladepunkt-Einstellungen der primary-openWB hinzugefügt. ',-1),p("p",null,[a(' Wird für den Steuerungsmodus "secondary" gewählt, übernimmt diese openWB keine Regelung und muss von einer anderen primary openWB ferngesteuert werden. Wichtig ist, dass in der secondary-openWB eine "interne openWB" mit der korrekten Bauart (= openWB-Hardwarevariante z.B. "Custom, Standard, Standard+, Duo, Buchse") konfiguriert ist. Bei einer Duo sind zwei "interne openWB" zu konfigurieren. Im "secondary"-Modus bleiben alle ausgeblendeten Einstellungen unbeachtet.'),p("br"),a(" Eine bebilderte Anleitung zur Konfiguration der Ladepunkte findest Du auf der "),p("a",{href:"https://openwb.de/main/?page_id=1025",target:"_blank",rel:"noopener noreferrer"}," Homepage "),a(". ")],-1)])),_:1,__:[27]}),n(l,{title:"Steuerungsmodus",buttons:[{buttonValue:!1,text:"primary",class:"btn-outline-danger"},{buttonValue:!0,text:"secondary",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/general/extern"],"onUpdate:modelValue":e[0]||(e[0]=i=>t.updateState("openWB/general/extern",i))},null,8,["model-value"]),u.installAssistantActive?f("",!0):(r(),g("div",ce,[t.$store.state.mqtt["openWB/general/extern"]===!0?(r(),c(l,{key:0,title:"Steuerung über Modbus als secondary",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/general/modbus_control"],"onUpdate:modelValue":e[1]||(e[1]=i=>t.updateState("openWB/general/modbus_control",i))},{help:o(()=>e[28]||(e[28]=[a(" Im secondary-Modus kann die openWB über die Modbus-Schnittstelle gesteuert werden. Die Register sind ",-1),p("a",{href:"https://openwb.de/main/wp-content/uploads/2023/10/ModbusTCP-openWB-series2-Pro-1.pdf",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),a(" dokumentiert. Bei aktivierter Modbus-Schnittstelle darf die openWB nicht von einer primary-openWB gesteuert werden. ",-1)])),_:1},8,["model-value"])):f("",!0),t.$store.state.mqtt["openWB/general/extern"]===!0&&t.$store.state.mqtt["openWB/general/modbus_control"]!==!0?(r(),g("div",he,[n(b,{subtype:"info",class:"mb-2"},{default:o(()=>e[29]||(e[29]=[a(' Wenn die Steuerung über Modbus auf "Aus" geändert wird, muss danach ein Neustart durchgeführt werden! ',-1)])),_:1,__:[29]})])):f("",!0)])),u.installAssistantActive?f("",!0):(r(),g("div",we,[n(l,{title:"HTTP-API",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/general/http_api"],"onUpdate:modelValue":e[2]||(e[2]=i=>t.updateState("openWB/general/http_api",i))},{help:o(()=>e[30]||(e[30]=[p("p",null,[a(" Mit der HTTP-API kann man den Wert eines MQTT-Topics per HTTPs abfragen oder neu setzen. Die Schnittstelle ist "),p("a",{href:"https://openwb.de/main/wp-content/uploads/2025/02/HTTP-API-fuer-openWB-series1-und-series2.pdf",target:"_blank",rel:"noopener noreferrer"}," hier "),a(" dokumentiert. ")],-1)])),_:1},8,["model-value"])]))]),_:1}),u.installAssistantActive?f("",!0):(r(),g("div",ve,[n(_,{title:"Hardware"},{default:o(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(r(),g("div",We,[n(b,{subtype:"info"},{default:o(()=>e[31]||(e[31]=[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[31]})])):f("",!0),t.$store.state.mqtt["openWB/general/extern"]===!1?(r(),g("div",Be,[n(l,{title:"Geschwindigkeit Regelintervall",buttons:[{buttonValue:10,text:"Normal",class:"btn-outline-success"},{buttonValue:20,text:"Langsam",class:"btn-outline-warning"},{buttonValue:60,text:"Sehr Langsam",class:"btn-outline-danger"}],"model-value":t.$store.state.mqtt["openWB/general/control_interval"],"onUpdate:modelValue":e[3]||(e[3]=i=>t.updateState("openWB/general/control_interval",i))},{help:o(()=>e[32]||(e[32]=[a(' Sollten Probleme oder Fehlermeldungen auftauchen, stelle bitte zunächst das Regelintervall auf "Normal". Werden Module genutzt, welche z.B. eine Online-API zur Abfrage nutzen (höhere Latenzzeiten) oder möchte man weniger Regeleingriffe, so kann man das Regelintervall auf "Langsam" (20 Sekunden) herabsetzen. Die Einstellung „Sehr Langsam“ führt zu einer Regelzeit von 60 Sekunden.',-1),p("br",null,null,-1),p("span",{class:"text-danger"},' Nicht nur die Regelung der PV geführten Ladung, sondern auch die Ladestromänderung, beispielsweise “Stop“ etc., werden dann nur noch in diesem Intervall ausgeführt. Die Regelung wird insgesamt träger. Solange es keinen triftigen Grund gibt, sollte "Normal" gewählt werden. ',-1)])),_:1},8,["model-value"]),n(l,{title:"Netzschutz",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/general/grid_protection_configured"],"onUpdate:modelValue":e[4]||(e[4]=i=>t.updateState("openWB/general/grid_protection_configured",i))},{help:o(()=>e[33]||(e[33]=[a(' Diese Option ist standardmäßig aktiviert und sollte so belassen werden. Bei Unterschreitung einer kritischen Frequenz des Stromnetzes wird die Ladung nach einer zufälligen Zeit zwischen 1 und 90 Sekunden pausiert. Der Lademodus wechselt auf "Stop". Sobald die Frequenz wieder in einem normalen Bereich ist wird automatisch der zuletzt gewählte Lademodus wieder aktiviert. Ebenso wird die Ladung bei Überschreiten von 51,8 Hz unterbrochen. Dies ist dann der Fall, wenn der Energieversorger Wartungsarbeiten am (Teil-)Netz durchführt und auf einen vorübergehenden Generator-Betrieb umschaltet. Die Erhöhung der Frequenz wird durchgeführt, um die PV Anlagen abzuschalten.',-1),p("br",null,null,-1),p("span",{class:"text-danger"}," Die Option ist nur aktiv, wenn der EVU-Zähler die Frequenz übermittelt. ",-1)])),_:1},8,["model-value"])])):f("",!0)]),_:1})])),u.installAssistantActive?f("",!0):(r(),c(_,{key:1,title:"Darstellung"},{default:o(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(r(),g("div",Ve,[n(b,{subtype:"info"},{default:o(()=>e[34]||(e[34]=[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[34]})])):(r(),g("div",ye,[n(v,{class:"mt-0"},{default:o(()=>e[35]||(e[35]=[a(" Hauptseite ",-1)])),_:1,__:[35]}),t.$store.state.mqtt["openWB/general/web_theme"]!==void 0?(r(),g("div",Se,[n(R,{class:"mb-2",title:"Theme",groups:h.webThemeGroupList,"model-value":t.$store.state.mqtt["openWB/general/web_theme"].type,"onUpdate:modelValue":e[5]||(e[5]=i=>h.updateSelectedWebTheme(i))},null,8,["groups","model-value"]),t.$store.state.mqtt["openWB/general/web_theme"].type?(r(),c(M,{key:0,"web-theme":t.$store.state.mqtt["openWB/general/web_theme"],"onUpdate:configuration":e[6]||(e[6]=i=>h.updateConfiguration("openWB/general/web_theme",i))},null,8,["web-theme"])):f("",!0)])):f("",!0)]))]),_:1})),u.installAssistantActive?f("",!0):(r(),c(_,{key:2,title:"Lade-Protokoll"},{default:o(()=>{var i,y,S,k,T,$,q,C,N,z,A,D,E,U,P,L;return[t.$store.state.mqtt["openWB/general/extern"]===!0?(r(),g("div",ke,[n(b,{subtype:"info"},{default:o(()=>e[36]||(e[36]=[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[36]})])):(r(),g("div",Te,[n(l,{title:"Einheit für Entfernungen","model-value":t.$store.state.mqtt["openWB/general/range_unit"],buttons:[{buttonValue:"km",text:"Kilometer"},{buttonValue:"mi",text:"Meilen"}],"onUpdate:modelValue":e[7]||(e[7]=s=>t.updateState("openWB/general/range_unit",s))},null,8,["model-value"]),n(v,null,{default:o(()=>e[37]||(e[37]=[a(" Auswahl der Datenfelder ",-1)])),_:1,__:[37]}),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(i=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:i.time_begin,"onUpdate:modelValue":e[8]||(e[8]=s=>t.updateState("openWB/general/charge_log_data_config",s,"time_begin"))},{title:o(()=>[n(d,{icon:["fas","calendar"]}),e[38]||(e[38]=a(" Beginn ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(y=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:y.time_end,"onUpdate:modelValue":e[9]||(e[9]=s=>t.updateState("openWB/general/charge_log_data_config",s,"time_end"))},{title:o(()=>[n(d,{icon:["fas","calendar"]}),e[39]||(e[39]=a(" Ende ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(S=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:S.time_time_charged,"onUpdate:modelValue":e[10]||(e[10]=s=>t.updateState("openWB/general/charge_log_data_config",s,"time_time_charged"))},{title:o(()=>[n(d,{icon:["fas","clock"]}),e[40]||(e[40]=a(" Dauer ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(k=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:k.data_costs,"onUpdate:modelValue":e[11]||(e[11]=s=>t.updateState("openWB/general/charge_log_data_config",s,"data_costs"))},{title:o(()=>[n(d,{icon:["fas","coins"]}),e[41]||(e[41]=a(" Kosten ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(T=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:T.data_power_source,"onUpdate:modelValue":e[12]||(e[12]=s=>t.updateState("openWB/general/charge_log_data_config",s,"data_power_source"))},{title:o(()=>[n(d,{icon:["fas","pie-chart"]}),e[42]||(e[42]=a(" Energieaufteilung ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":($=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:$.vehicle_name,"onUpdate:modelValue":e[13]||(e[13]=s=>t.updateState("openWB/general/charge_log_data_config",s,"vehicle_name"))},{title:o(()=>[n(d,{icon:["fas","car"]}),e[43]||(e[43]=a(" Name ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(q=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:q.vehicle_chargemode,"onUpdate:modelValue":e[14]||(e[14]=s=>t.updateState("openWB/general/charge_log_data_config",s,"vehicle_chargemode"))},{title:o(()=>[n(d,{icon:["fas","car"]}),e[44]||(e[44]=a(" Lademodus ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(C=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:C.vehicle_prio,"onUpdate:modelValue":e[15]||(e[15]=s=>t.updateState("openWB/general/charge_log_data_config",s,"vehicle_prio"))},{title:o(()=>[n(d,{icon:["fas","car"]}),e[45]||(e[45]=a(" Priorität ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(N=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:N.vehicle_rfid,"onUpdate:modelValue":e[16]||(e[16]=s=>t.updateState("openWB/general/charge_log_data_config",s,"vehicle_rfid"))},{title:o(()=>[n(d,{icon:["fas","car"]}),e[46]||(e[46]=a(" ID-Tag ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(z=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:z.vehicle_soc_at_start,"onUpdate:modelValue":e[17]||(e[17]=s=>t.updateState("openWB/general/charge_log_data_config",s,"vehicle_soc_at_start"))},{title:o(()=>[n(d,{icon:["fas","car"]}),e[47]||(e[47]=a(" SoC bei Ladebeginn ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(A=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:A.vehicle_soc_at_end,"onUpdate:modelValue":e[18]||(e[18]=s=>t.updateState("openWB/general/charge_log_data_config",s,"vehicle_soc_at_end"))},{title:o(()=>[n(d,{icon:["fas","car"]}),e[48]||(e[48]=a(" SoC bei Ladende ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(D=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:D.chargepoint_name,"onUpdate:modelValue":e[19]||(e[19]=s=>t.updateState("openWB/general/charge_log_data_config",s,"chargepoint_name"))},{title:o(()=>[n(d,{icon:["fas","charging-station"]}),e[49]||(e[49]=a(" Name ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(E=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:E.chargepoint_serial_number,"onUpdate:modelValue":e[20]||(e[20]=s=>t.updateState("openWB/general/charge_log_data_config",s,"chargepoint_serial_number"))},{title:o(()=>[n(d,{icon:["fas","charging-station"]}),e[50]||(e[50]=a(" Seriennummer ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(U=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:U.data_imported_since_mode_switch,"onUpdate:modelValue":e[21]||(e[21]=s=>t.updateState("openWB/general/charge_log_data_config",s,"data_imported_since_mode_switch"))},{title:o(()=>[n(d,{icon:["fas","charging-station"]}),e[51]||(e[51]=a(" Geladene Energie ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(P=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:P.chargepoint_imported_at_start,"onUpdate:modelValue":e[22]||(e[22]=s=>t.updateState("openWB/general/charge_log_data_config",s,"chargepoint_imported_at_start"))},{title:o(()=>[n(d,{icon:["fas","charging-station"]}),e[52]||(e[52]=a(" Zählerstand bei Ladebeginn ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(L=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:L.chargepoint_imported_at_end,"onUpdate:modelValue":e[23]||(e[23]=s=>t.updateState("openWB/general/charge_log_data_config",s,"chargepoint_imported_at_end"))},{title:o(()=>[n(d,{icon:["fas","charging-station"]}),e[53]||(e[53]=a(" Zählerstand bei Ladeende ",-1))]),_:1},8,["model-value"])]))]}),_:1})),n(G,{"form-name":"generalConfigForm",onSave:e[24]||(e[24]=i=>t.$emit("save")),onReset:e[25]||(e[25]=i=>t.$emit("reset")),onDefaults:e[26]||(e[26]=i=>t.$emit("defaults"))})])])}const qe=W(be,[["render",$e],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralConfig.vue"]]),De=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"}));export{qe as G,se as W,De as a}; +import{l as J,a6 as I,a7 as x,F,a0 as j,Q as H,E as K,ag as Z,ah as Q,ai as X}from"./vendor-fortawesome-d6ee0a65.js";import{_ as O,C as Y}from"./index-eccf5556.js";import{_ as ee}from"./dynamic-import-helper-be004503.js";import{_ as W,u as m,l as r,m as g,x as c,E as o,B as a,F as w,G as n,A as p,a2 as te,a3 as ne,N as oe,z as f}from"./vendor-57e3a63c.js";const ae={props:{webTheme:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},se=W(ae,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/WebThemeConfigMixin.vue"]]),le={name:"WebThemeFallback",mixins:[se]},re={class:"web-theme-fallback"},ie={key:1};function ue(t,e,u,B,V,h){const b=m("openwb-base-alert"),l=m("openwb-base-textarea");return r(),g("div",re,[Object.keys(t.webTheme.configuration).length==0?(r(),c(b,{key:0,subtype:"info"},{default:o(()=>[a(' Das Web Theme "'+w(t.webTheme.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(r(),g("div",ie,[n(b,{subtype:"warning"},{default:o(()=>[a(' Es wurde keine Konfigurationsseite für das Web Theme "'+w(t.webTheme.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(l,{title:"Theme Konfiguration",subtype:"json","model-value":t.webTheme.configuration,"onUpdate:modelValue":e[0]||(e[0]=_=>t.updateConfiguration(_,"configuration"))},{help:o(()=>e[1]||(e[1]=[a(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),n(b,{subtype:"info"},{default:o(()=>[p("pre",null,w(JSON.stringify(t.webTheme.configuration,void 0,2)),1)]),_:1})]))])}const de=W(le,[["render",ue],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/OpenwbWebThemeFallback.vue"]]);J.add(I,x);const ge={name:"OpenwbWebThemeProxy",components:{FontAwesomeIcon:F},props:{webTheme:{type:Object,required:!0}},emits:["update:configuration"],methods:{getThemeComponent(){return console.debug(`loading web theme: ${this.webTheme.type}`),te({loader:()=>ee(Object.assign({"./koala/webTheme.vue":()=>O(()=>import("./webTheme-eb62fae2.js"),["assets/webTheme-eb62fae2.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./standard_legacy/webTheme.vue":()=>O(()=>import("./webTheme-45ca7ce6.js"),["assets/webTheme-45ca7ce6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.webTheme.type}/webTheme.vue`),errorComponent:de})},updateConfiguration(t){this.$emit("update:configuration",t)}}};function pe(t,e,u,B,V,h){const b=m("font-awesome-icon"),l=m("openwb-base-alert"),_=m("openwb-base-heading");return r(),g(oe,null,[u.webTheme.official?(r(),c(l,{key:0,subtype:"success"},{default:o(()=>[n(b,{icon:["fas","certificate"]}),a(' Das ausgewählte Web Theme "'+w(u.webTheme.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(r(),c(l,{key:1,subtype:"info"},{default:o(()=>[n(b,{icon:["fas","people-group"]}),e[1]||(e[1]=a(" Das ausgewählte Theme wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ",-1))]),_:1,__:[1]})),n(_,null,{default:o(()=>[a(' Einstellungen für Web Theme "'+w(u.webTheme.name)+'" ',1)]),_:1}),(r(),c(ne(h.getThemeComponent()),{"web-theme":u.webTheme,"onUpdate:configuration":e[0]||(e[0]=v=>h.updateConfiguration(v))},null,40,["web-theme"]))],64)}const me=W(ge,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/OpenwbWebThemeProxy.vue"]]);J.add(j,H,K,Z,Q,X);const be={name:"OpenwbGeneralConfigView",components:{OpenwbWebThemeProxy:me,FontAwesomeIcon:F},mixins:[Y],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/charge_log_data_config","openWB/general/control_interval","openWB/general/extern","openWB/general/external_buttons_hw","openWB/general/grid_protection_configured","openWB/general/http_api","openWB/general/modbus_control","openWB/general/notifications/configuration","openWB/general/notifications/plug","openWB/general/notifications/selected","openWB/general/notifications/smart_home","openWB/general/notifications/start_charging","openWB/general/notifications/stop_charging","openWB/general/price_kwh","openWB/general/range_unit","openWB/general/web_theme","openWB/system/configurable/web_themes","openWB/system/ip_address"]}},computed:{webThemeList:{get(){return this.$store.state.mqtt["openWB/system/configurable/web_themes"]}},webThemeGroupList:{get(){var e;let t=[{label:"openWB",options:[]},{label:"Community",options:[]}];return(e=this.webThemeList)==null||e.forEach(u=>{u.official===!0?t[0].options.push(u):t[1].options.push(u)}),t}}},methods:{getIpAddress(){return this.$store.state.mqtt["openWB/system/ip_address"]},getWebThemeDefaults(t){const e=this.webThemeList.find(u=>u.value==t);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...JSON.parse(JSON.stringify(e.defaults))}:(console.warn("no default configuration found for web theme type!",t),{})},updateSelectedWebTheme(t){this.updateState("openWB/general/web_theme",this.getWebThemeDefaults(t))},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)}}},fe={class:"generalConfig"},_e={name:"generalConfigForm"},ce={key:0},he={key:1},we={key:1},ve={key:0},We={key:0},Be={key:1},Ve={key:0},ye={key:1},Se={key:0},ke={key:0},Te={key:1};function $e(t,e,u,B,V,h){const b=m("openwb-base-alert"),l=m("openwb-base-button-group-input"),_=m("openwb-base-card"),v=m("openwb-base-heading"),R=m("openwb-base-select-input"),M=m("openwb-web-theme-proxy"),d=m("font-awesome-icon"),G=m("openwb-base-submit-buttons");return r(),g("div",fe,[p("form",_e,[n(_,{title:"Steuerungsmodus"},{default:o(()=>[n(b,{subtype:"info"},{default:o(()=>e[27]||(e[27]=[p("p",null,' Wird für den Steuerungsmodus "primary" gewählt, übernimmt diese openWB die alleinige Regelung und steuert ggf. vorhandene weitere openWB (z.B. secondary openWB, openWB Pro, Satellit u.a.) fern. Sie werden in den Ladepunkt-Einstellungen der primary-openWB hinzugefügt. ',-1),p("p",null,[a(' Wird für den Steuerungsmodus "secondary" gewählt, übernimmt diese openWB keine Regelung und muss von einer anderen primary openWB ferngesteuert werden. Wichtig ist, dass in der secondary-openWB eine "interne openWB" mit der korrekten Bauart (= openWB-Hardwarevariante z.B. "Custom, Standard, Standard+, Duo, Buchse") konfiguriert ist. Bei einer Duo sind zwei "interne openWB" zu konfigurieren. Im "secondary"-Modus bleiben alle ausgeblendeten Einstellungen unbeachtet.'),p("br"),a(" Eine bebilderte Anleitung zur Konfiguration der Ladepunkte findest Du auf der "),p("a",{href:"https://openwb.de/main/?page_id=1025",target:"_blank",rel:"noopener noreferrer"}," Homepage "),a(". ")],-1)])),_:1,__:[27]}),n(l,{title:"Steuerungsmodus",buttons:[{buttonValue:!1,text:"primary",class:"btn-outline-danger"},{buttonValue:!0,text:"secondary",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/general/extern"],"onUpdate:modelValue":e[0]||(e[0]=i=>t.updateState("openWB/general/extern",i))},null,8,["model-value"]),u.installAssistantActive?f("",!0):(r(),g("div",ce,[t.$store.state.mqtt["openWB/general/extern"]===!0?(r(),c(l,{key:0,title:"Steuerung über Modbus als secondary",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/general/modbus_control"],"onUpdate:modelValue":e[1]||(e[1]=i=>t.updateState("openWB/general/modbus_control",i))},{help:o(()=>e[28]||(e[28]=[a(" Im secondary-Modus kann die openWB über die Modbus-Schnittstelle gesteuert werden. Die Register sind ",-1),p("a",{href:"https://openwb.de/main/wp-content/uploads/2023/10/ModbusTCP-openWB-series2-Pro-1.pdf",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),a(" dokumentiert. Bei aktivierter Modbus-Schnittstelle darf die openWB nicht von einer primary-openWB gesteuert werden. ",-1)])),_:1},8,["model-value"])):f("",!0),t.$store.state.mqtt["openWB/general/extern"]===!0&&t.$store.state.mqtt["openWB/general/modbus_control"]!==!0?(r(),g("div",he,[n(b,{subtype:"info",class:"mb-2"},{default:o(()=>e[29]||(e[29]=[a(' Wenn die Steuerung über Modbus auf "Aus" geändert wird, muss danach ein Neustart durchgeführt werden! ',-1)])),_:1,__:[29]})])):f("",!0)])),u.installAssistantActive?f("",!0):(r(),g("div",we,[n(l,{title:"HTTP-API",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/general/http_api"],"onUpdate:modelValue":e[2]||(e[2]=i=>t.updateState("openWB/general/http_api",i))},{help:o(()=>e[30]||(e[30]=[p("p",null,[a(" Mit der HTTP-API kann man den Wert eines MQTT-Topics per HTTPs abfragen oder neu setzen. Die Schnittstelle ist "),p("a",{href:"https://openwb.de/main/wp-content/uploads/2025/02/HTTP-API-fuer-openWB-series1-und-series2.pdf",target:"_blank",rel:"noopener noreferrer"}," hier "),a(" dokumentiert. ")],-1)])),_:1},8,["model-value"])]))]),_:1}),u.installAssistantActive?f("",!0):(r(),g("div",ve,[n(_,{title:"Hardware"},{default:o(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(r(),g("div",We,[n(b,{subtype:"info"},{default:o(()=>e[31]||(e[31]=[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[31]})])):f("",!0),t.$store.state.mqtt["openWB/general/extern"]===!1?(r(),g("div",Be,[n(l,{title:"Geschwindigkeit Regelintervall",buttons:[{buttonValue:10,text:"Normal",class:"btn-outline-success"},{buttonValue:20,text:"Langsam",class:"btn-outline-warning"},{buttonValue:60,text:"Sehr Langsam",class:"btn-outline-danger"}],"model-value":t.$store.state.mqtt["openWB/general/control_interval"],"onUpdate:modelValue":e[3]||(e[3]=i=>t.updateState("openWB/general/control_interval",i))},{help:o(()=>e[32]||(e[32]=[a(' Sollten Probleme oder Fehlermeldungen auftauchen, stelle bitte zunächst das Regelintervall auf "Normal". Werden Module genutzt, welche z.B. eine Online-API zur Abfrage nutzen (höhere Latenzzeiten) oder möchte man weniger Regeleingriffe, so kann man das Regelintervall auf "Langsam" (20 Sekunden) herabsetzen. Die Einstellung „Sehr Langsam“ führt zu einer Regelzeit von 60 Sekunden.',-1),p("br",null,null,-1),p("span",{class:"text-danger"},' Nicht nur die Regelung der PV geführten Ladung, sondern auch die Ladestromänderung, beispielsweise “Stop“ etc., werden dann nur noch in diesem Intervall ausgeführt. Die Regelung wird insgesamt träger. Solange es keinen triftigen Grund gibt, sollte "Normal" gewählt werden. ',-1)])),_:1},8,["model-value"]),n(l,{title:"Netzschutz",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/general/grid_protection_configured"],"onUpdate:modelValue":e[4]||(e[4]=i=>t.updateState("openWB/general/grid_protection_configured",i))},{help:o(()=>e[33]||(e[33]=[a(' Diese Option ist standardmäßig aktiviert und sollte so belassen werden. Bei Unterschreitung einer kritischen Frequenz des Stromnetzes wird die Ladung nach einer zufälligen Zeit zwischen 1 und 90 Sekunden pausiert. Der Lademodus wechselt auf "Stop". Sobald die Frequenz wieder in einem normalen Bereich ist wird automatisch der zuletzt gewählte Lademodus wieder aktiviert. Ebenso wird die Ladung bei Überschreiten von 51,8 Hz unterbrochen. Dies ist dann der Fall, wenn der Energieversorger Wartungsarbeiten am (Teil-)Netz durchführt und auf einen vorübergehenden Generator-Betrieb umschaltet. Die Erhöhung der Frequenz wird durchgeführt, um die PV Anlagen abzuschalten.',-1),p("br",null,null,-1),p("span",{class:"text-danger"}," Die Option ist nur aktiv, wenn der EVU-Zähler die Frequenz übermittelt. ",-1)])),_:1},8,["model-value"])])):f("",!0)]),_:1})])),u.installAssistantActive?f("",!0):(r(),c(_,{key:1,title:"Darstellung"},{default:o(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(r(),g("div",Ve,[n(b,{subtype:"info"},{default:o(()=>e[34]||(e[34]=[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[34]})])):(r(),g("div",ye,[n(v,{class:"mt-0"},{default:o(()=>e[35]||(e[35]=[a(" Hauptseite ",-1)])),_:1,__:[35]}),t.$store.state.mqtt["openWB/general/web_theme"]!==void 0?(r(),g("div",Se,[n(R,{class:"mb-2",title:"Theme",groups:h.webThemeGroupList,"model-value":t.$store.state.mqtt["openWB/general/web_theme"].type,"onUpdate:modelValue":e[5]||(e[5]=i=>h.updateSelectedWebTheme(i))},null,8,["groups","model-value"]),t.$store.state.mqtt["openWB/general/web_theme"].type?(r(),c(M,{key:0,"web-theme":t.$store.state.mqtt["openWB/general/web_theme"],"onUpdate:configuration":e[6]||(e[6]=i=>h.updateConfiguration("openWB/general/web_theme",i))},null,8,["web-theme"])):f("",!0)])):f("",!0)]))]),_:1})),u.installAssistantActive?f("",!0):(r(),c(_,{key:2,title:"Lade-Protokoll"},{default:o(()=>{var i,y,S,k,T,$,q,C,N,z,A,D,E,U,P,L;return[t.$store.state.mqtt["openWB/general/extern"]===!0?(r(),g("div",ke,[n(b,{subtype:"info"},{default:o(()=>e[36]||(e[36]=[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[36]})])):(r(),g("div",Te,[n(l,{title:"Einheit für Entfernungen","model-value":t.$store.state.mqtt["openWB/general/range_unit"],buttons:[{buttonValue:"km",text:"Kilometer"},{buttonValue:"mi",text:"Meilen"}],"onUpdate:modelValue":e[7]||(e[7]=s=>t.updateState("openWB/general/range_unit",s))},null,8,["model-value"]),n(v,null,{default:o(()=>e[37]||(e[37]=[a(" Auswahl der Datenfelder ",-1)])),_:1,__:[37]}),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(i=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:i.time_begin,"onUpdate:modelValue":e[8]||(e[8]=s=>t.updateState("openWB/general/charge_log_data_config",s,"time_begin"))},{title:o(()=>[n(d,{icon:["fas","calendar"]}),e[38]||(e[38]=a(" Beginn ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(y=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:y.time_end,"onUpdate:modelValue":e[9]||(e[9]=s=>t.updateState("openWB/general/charge_log_data_config",s,"time_end"))},{title:o(()=>[n(d,{icon:["fas","calendar"]}),e[39]||(e[39]=a(" Ende ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(S=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:S.time_time_charged,"onUpdate:modelValue":e[10]||(e[10]=s=>t.updateState("openWB/general/charge_log_data_config",s,"time_time_charged"))},{title:o(()=>[n(d,{icon:["fas","clock"]}),e[40]||(e[40]=a(" Dauer ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(k=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:k.data_costs,"onUpdate:modelValue":e[11]||(e[11]=s=>t.updateState("openWB/general/charge_log_data_config",s,"data_costs"))},{title:o(()=>[n(d,{icon:["fas","coins"]}),e[41]||(e[41]=a(" Kosten ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(T=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:T.data_power_source,"onUpdate:modelValue":e[12]||(e[12]=s=>t.updateState("openWB/general/charge_log_data_config",s,"data_power_source"))},{title:o(()=>[n(d,{icon:["fas","pie-chart"]}),e[42]||(e[42]=a(" Energieaufteilung ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":($=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:$.vehicle_name,"onUpdate:modelValue":e[13]||(e[13]=s=>t.updateState("openWB/general/charge_log_data_config",s,"vehicle_name"))},{title:o(()=>[n(d,{icon:["fas","car"]}),e[43]||(e[43]=a(" Name ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(q=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:q.vehicle_chargemode,"onUpdate:modelValue":e[14]||(e[14]=s=>t.updateState("openWB/general/charge_log_data_config",s,"vehicle_chargemode"))},{title:o(()=>[n(d,{icon:["fas","car"]}),e[44]||(e[44]=a(" Lademodus ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(C=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:C.vehicle_prio,"onUpdate:modelValue":e[15]||(e[15]=s=>t.updateState("openWB/general/charge_log_data_config",s,"vehicle_prio"))},{title:o(()=>[n(d,{icon:["fas","car"]}),e[45]||(e[45]=a(" Priorität ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(N=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:N.vehicle_rfid,"onUpdate:modelValue":e[16]||(e[16]=s=>t.updateState("openWB/general/charge_log_data_config",s,"vehicle_rfid"))},{title:o(()=>[n(d,{icon:["fas","car"]}),e[46]||(e[46]=a(" ID-Tag ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(z=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:z.vehicle_soc_at_start,"onUpdate:modelValue":e[17]||(e[17]=s=>t.updateState("openWB/general/charge_log_data_config",s,"vehicle_soc_at_start"))},{title:o(()=>[n(d,{icon:["fas","car"]}),e[47]||(e[47]=a(" SoC bei Ladebeginn ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(A=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:A.vehicle_soc_at_end,"onUpdate:modelValue":e[18]||(e[18]=s=>t.updateState("openWB/general/charge_log_data_config",s,"vehicle_soc_at_end"))},{title:o(()=>[n(d,{icon:["fas","car"]}),e[48]||(e[48]=a(" SoC bei Ladende ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(D=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:D.chargepoint_name,"onUpdate:modelValue":e[19]||(e[19]=s=>t.updateState("openWB/general/charge_log_data_config",s,"chargepoint_name"))},{title:o(()=>[n(d,{icon:["fas","charging-station"]}),e[49]||(e[49]=a(" Name ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(E=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:E.chargepoint_serial_number,"onUpdate:modelValue":e[20]||(e[20]=s=>t.updateState("openWB/general/charge_log_data_config",s,"chargepoint_serial_number"))},{title:o(()=>[n(d,{icon:["fas","charging-station"]}),e[50]||(e[50]=a(" Seriennummer ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(U=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:U.data_imported_since_mode_switch,"onUpdate:modelValue":e[21]||(e[21]=s=>t.updateState("openWB/general/charge_log_data_config",s,"data_imported_since_mode_switch"))},{title:o(()=>[n(d,{icon:["fas","charging-station"]}),e[51]||(e[51]=a(" Geladene Energie ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(P=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:P.chargepoint_imported_at_start,"onUpdate:modelValue":e[22]||(e[22]=s=>t.updateState("openWB/general/charge_log_data_config",s,"chargepoint_imported_at_start"))},{title:o(()=>[n(d,{icon:["fas","charging-station"]}),e[52]||(e[52]=a(" Zählerstand bei Ladebeginn ",-1))]),_:1},8,["model-value"]),n(l,{buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":(L=t.$store.state.mqtt["openWB/general/charge_log_data_config"])==null?void 0:L.chargepoint_imported_at_end,"onUpdate:modelValue":e[23]||(e[23]=s=>t.updateState("openWB/general/charge_log_data_config",s,"chargepoint_imported_at_end"))},{title:o(()=>[n(d,{icon:["fas","charging-station"]}),e[53]||(e[53]=a(" Zählerstand bei Ladeende ",-1))]),_:1},8,["model-value"])]))]}),_:1})),n(G,{"form-name":"generalConfigForm",onSave:e[24]||(e[24]=i=>t.$emit("save")),onReset:e[25]||(e[25]=i=>t.$emit("reset")),onDefaults:e[26]||(e[26]=i=>t.$emit("defaults"))})])])}const qe=W(be,[["render",$e],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralConfig.vue"]]),De=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"}));export{qe as G,se as W,De as a}; diff --git a/web/settings/assets/HardwareInstallation-0c77715a.js b/web/settings/assets/HardwareInstallation-0c77715a.js new file mode 100644 index 0000000000..1bc8ba0c07 --- /dev/null +++ b/web/settings/assets/HardwareInstallation-0c77715a.js @@ -0,0 +1 @@ +import{l as S,d as U,y as q,aj as G,aa as N,_ as K,Z as F,Y as H,F as $}from"./vendor-fortawesome-d6ee0a65.js";import{_ as e,C as J}from"./index-eccf5556.js";import{_ as x}from"./dynamic-import-helper-be004503.js";import{_ as I,u as p,l as v,m as g,x as E,E as r,B as d,F as V,G as u,A as c,a2 as z,a3 as Z,z as R,N as L,M as k,q as Y}from"./vendor-57e3a63c.js";const Q={props:{device:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(t,o=void 0){this.$emit("update:configuration",{value:t,object:o})}}},B=I(Q,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/DeviceConfigMixin.vue"]]),X={name:"DeviceFallback",mixins:[B]},ee={class:"device-fallback"},oe={key:1};function te(t,o,i,m,s,n){const l=p("openwb-base-alert"),b=p("openwb-base-textarea");return v(),g("div",ee,[Object.keys(t.device.configuration).length==0?(v(),E(l,{key:0,subtype:"info"},{default:r(()=>[d(' Der Gerät-Typ "'+V(t.device.type)+'" bietet keine Einstellungen. ',1)]),_:1})):(v(),g("div",oe,[u(l,{subtype:"warning"},{default:r(()=>[d(' Es wurde keine Konfigurationsseite für den Geräte-Typ "'+V(t.device.type)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),u(b,{title:"Konfiguration",subtype:"json","model-value":t.device.configuration,"onUpdate:modelValue":o[0]||(o[0]=T=>t.updateConfiguration(T,"configuration"))},{help:r(()=>o[1]||(o[1]=[d(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),u(l,{subtype:"info"},{default:r(()=>[c("pre",null,V(JSON.stringify(t.device.configuration,void 0,2)),1)]),_:1})]))])}const _e=I(X,[["render",te],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbDeviceConfigFallback.vue"]]),ie={mixins:[B],props:{component:{type:Object,required:!0}}},re=I(ie,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/ComponentConfigMixin.vue"]]),ne={name:"ComponentFallback",mixins:[re]},ue={class:"component-fallback"},de={key:1};function ve(t,o,i,m,s,n){const l=p("openwb-base-alert"),b=p("openwb-base-textarea");return v(),g("div",ue,[Object.keys(t.component.configuration).length==0?(v(),E(l,{key:0,subtype:"info"},{default:r(()=>[d(' Der Komponenten-Typ "'+V(t.component.type)+'" bietet keine Einstellungen. ',1)]),_:1})):(v(),g("div",de,[u(l,{subtype:"warning"},{default:r(()=>[d(' Es wurde keine Konfigurationsseite für den Komponenten-Typ "'+V(t.component.type)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),u(b,{title:"Konfiguration",subtype:"json","model-value":t.component.configuration,"onUpdate:modelValue":o[0]||(o[0]=T=>t.updateConfiguration(T,"configuration"))},{help:r(()=>o[1]||(o[1]=[d(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),u(l,{subtype:"info"},{default:r(()=>[c("pre",null,V(JSON.stringify(t.component.configuration,void 0,2)),1)]),_:1})]))])}const se=I(ne,[["render",ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbComponentConfigFallback.vue"]]),ae={name:"OpenwbConfigProxy",props:{device:{type:Object,required:!0},component:{type:Object,required:!1,default:void 0}},emits:["update:configuration"],methods:{getComponent(){var t;return console.debug(`loading component: ${this.device.type} / ${(t=this.component)==null?void 0:t.type}`),this.component!==void 0?z({loader:()=>x(Object.assign({"./algodue/algodue/device.vue":()=>e(()=>import("./device-3af8cb6b.js"),["assets/device-3af8cb6b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./alpha_ess/alpha_ess/device.vue":()=>e(()=>import("./device-547c5594.js"),["assets/device-547c5594.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./ampere/ampere/device.vue":()=>e(()=>import("./device-7bafcf0f.js"),["assets/device-7bafcf0f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./avm/avm/counter.vue":()=>e(()=>import("./counter-e054b606.js"),["assets/counter-e054b606.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./avm/avm/device.vue":()=>e(()=>import("./device-90b99ba4.js"),["assets/device-90b99ba4.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./azzurro_zcs/azzurro_zcs/device.vue":()=>e(()=>import("./device-0bbde04c.js"),["assets/device-0bbde04c.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./batterx/batterx/device.vue":()=>e(()=>import("./device-76063706.js"),["assets/device-76063706.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./benning/benning/device.vue":()=>e(()=>import("./device-9e5971cf.js"),["assets/device-9e5971cf.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./benning/benning/inverter.vue":()=>e(()=>import("./inverter-0e60b688.js"),["assets/inverter-0e60b688.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./byd/byd/device.vue":()=>e(()=>import("./device-44a9fe5b.js"),["assets/device-44a9fe5b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./carlo_gavazzi/carlo_gavazzi/counter.vue":()=>e(()=>import("./counter-359a5c4f.js"),["assets/counter-359a5c4f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./carlo_gavazzi/carlo_gavazzi/device.vue":()=>e(()=>import("./device-3bfb9718.js"),["assets/device-3bfb9718.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./deye/deye/bat.vue":()=>e(()=>import("./bat-64f6b92b.js"),["assets/bat-64f6b92b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./deye/deye/counter.vue":()=>e(()=>import("./counter-f13a85ea.js"),["assets/counter-f13a85ea.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./deye/deye/device.vue":()=>e(()=>import("./device-3c6a1975.js"),["assets/device-3c6a1975.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./deye/deye/inverter.vue":()=>e(()=>import("./inverter-4f480ee7.js"),["assets/inverter-4f480ee7.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./discovergy/discovergy/counter.vue":()=>e(()=>import("./counter-3ba24356.js"),["assets/counter-3ba24356.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./discovergy/discovergy/device.vue":()=>e(()=>import("./device-f3ea5347.js"),["assets/device-f3ea5347.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./discovergy/discovergy/inverter.vue":()=>e(()=>import("./inverter-9f809b2f.js"),["assets/inverter-9f809b2f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./e3dc/e3dc/device.vue":()=>e(()=>import("./device-18f04763.js"),["assets/device-18f04763.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./enphase/enphase/counter.vue":()=>e(()=>import("./counter-e9030149.js"),["assets/counter-e9030149.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./enphase/enphase/device.vue":()=>e(()=>import("./device-0a610e9f.js"),["assets/device-0a610e9f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./enphase/enphase/inverter.vue":()=>e(()=>import("./inverter-aaf5cc74.js"),["assets/inverter-aaf5cc74.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fems/fems/bat.vue":()=>e(()=>import("./bat-a3d4e3ba.js"),["assets/bat-a3d4e3ba.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fems/fems/device.vue":()=>e(()=>import("./device-2060009a.js"),["assets/device-2060009a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fox_ess/fox_ess/bat.vue":()=>e(()=>import("./bat-48f193a8.js"),["assets/bat-48f193a8.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fox_ess/fox_ess/counter.vue":()=>e(()=>import("./counter-b94bfe2c.js"),["assets/counter-b94bfe2c.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fox_ess/fox_ess/device.vue":()=>e(()=>import("./device-434acb81.js"),["assets/device-434acb81.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fox_ess/fox_ess/inverter.vue":()=>e(()=>import("./inverter-3f8066c8.js"),["assets/inverter-3f8066c8.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fronius/fronius/bat.vue":()=>e(()=>import("./bat-77274805.js"),["assets/bat-77274805.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fronius/fronius/counter_sm.vue":()=>e(()=>import("./counter_sm-09ba7690.js"),["assets/counter_sm-09ba7690.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fronius/fronius/device.vue":()=>e(()=>import("./device-a362181c.js"),["assets/device-a362181c.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fronius/fronius/inverter_secondary.vue":()=>e(()=>import("./inverter_secondary-9852ff67.js"),["assets/inverter_secondary-9852ff67.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/http/bat.vue":()=>e(()=>import("./bat-075b7870.js"),["assets/bat-075b7870.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/http/counter.vue":()=>e(()=>import("./counter-58f8613e.js"),["assets/counter-58f8613e.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/http/device.vue":()=>e(()=>import("./device-b89dcacb.js"),["assets/device-b89dcacb.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/http/inverter.vue":()=>e(()=>import("./inverter-4a6155cb.js"),["assets/inverter-4a6155cb.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/json/bat.vue":()=>e(()=>import("./bat-fb56e76d.js"),["assets/bat-fb56e76d.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/json/counter.vue":()=>e(()=>import("./counter-f910d11a.js"),["assets/counter-f910d11a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/json/device.vue":()=>e(()=>import("./device-0812a0b7.js"),["assets/device-0812a0b7.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/json/inverter.vue":()=>e(()=>import("./inverter-23a0795f.js"),["assets/inverter-23a0795f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/mqtt/bat.vue":()=>e(()=>import("./bat-d7cfe363.js"),["assets/bat-d7cfe363.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/mqtt/counter.vue":()=>e(()=>import("./counter-696bc2b5.js"),["assets/counter-696bc2b5.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/mqtt/device.vue":()=>e(()=>import("./device-e061c3ce.js"),["assets/device-e061c3ce.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/mqtt/inverter.vue":()=>e(()=>import("./inverter-82a5e024.js"),["assets/inverter-82a5e024.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/virtual/counter.vue":()=>e(()=>import("./counter-9413118e.js"),["assets/counter-9413118e.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./good_we/good_we/bat.vue":()=>e(()=>import("./bat-c7c848f1.js"),["assets/bat-c7c848f1.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./good_we/good_we/device.vue":()=>e(()=>import("./device-e2b6e352.js"),["assets/device-e2b6e352.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./growatt/growatt/device.vue":()=>e(()=>import("./device-ae133671.js"),["assets/device-ae133671.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei/device.vue":()=>e(()=>import("./device-3da862be.js"),["assets/device-3da862be.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei_smartlogger/bat.vue":()=>e(()=>import("./bat-ecf94da0.js"),["assets/bat-ecf94da0.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei_smartlogger/counter.vue":()=>e(()=>import("./counter-84b3047d.js"),["assets/counter-84b3047d.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei_smartlogger/device.vue":()=>e(()=>import("./device-70078db6.js"),["assets/device-70078db6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei_smartlogger/inverter.vue":()=>e(()=>import("./inverter-a72dbeb0.js"),["assets/inverter-a72dbeb0.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./janitza/janitza/counter.vue":()=>e(()=>import("./counter-6c205795.js"),["assets/counter-6c205795.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./janitza/janitza/device.vue":()=>e(()=>import("./device-c9b784c2.js"),["assets/device-c9b784c2.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kaco/kaco_tx/device.vue":()=>e(()=>import("./device-cea58e31.js"),["assets/device-cea58e31.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kaco/kaco_tx/inverter.vue":()=>e(()=>import("./inverter-59d7cfeb.js"),["assets/inverter-59d7cfeb.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_piko/counter.vue":()=>e(()=>import("./counter-4e6d9499.js"),["assets/counter-4e6d9499.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_piko/device.vue":()=>e(()=>import("./device-317fa85d.js"),["assets/device-317fa85d.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_piko/inverter.vue":()=>e(()=>import("./inverter-b18457fa.js"),["assets/inverter-b18457fa.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_piko_old/device.vue":()=>e(()=>import("./device-dd17995b.js"),["assets/device-dd17995b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_plenticore/counter.vue":()=>e(()=>import("./counter-94cb1f63.js"),["assets/counter-94cb1f63.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_plenticore/device.vue":()=>e(()=>import("./device-ed18848c.js"),["assets/device-ed18848c.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_sem/counter.vue":()=>e(()=>import("./counter-9cc7434e.js"),["assets/counter-9cc7434e.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_sem/device.vue":()=>e(()=>import("./device-345bd775.js"),["assets/device-345bd775.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_steca/device.vue":()=>e(()=>import("./device-47e158c3.js"),["assets/device-47e158c3.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_steca/inverter.vue":()=>e(()=>import("./inverter-21f4f499.js"),["assets/inverter-21f4f499.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./lg/lg/device.vue":()=>e(()=>import("./device-b0fef6f7.js"),["assets/device-b0fef6f7.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mtec/mtec/bat.vue":()=>e(()=>import("./bat-ba82b782.js"),["assets/bat-ba82b782.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mtec/mtec/counter.vue":()=>e(()=>import("./counter-ad9cf578.js"),["assets/counter-ad9cf578.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mtec/mtec/device.vue":()=>e(()=>import("./device-083b322d.js"),["assets/device-083b322d.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mtec/mtec/inverter.vue":()=>e(()=>import("./inverter-273c4d09.js"),["assets/inverter-273c4d09.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mystrom/mystrom/device.vue":()=>e(()=>import("./device-2e6ed3d2.js"),["assets/device-2e6ed3d2.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./nibe/nibe/counter.vue":()=>e(()=>import("./counter-0d81c4e8.js"),["assets/counter-0d81c4e8.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./nibe/nibe/device.vue":()=>e(()=>import("./device-d28a42a6.js"),["assets/device-d28a42a6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./opendtu/opendtu/device.vue":()=>e(()=>import("./device-39b20fb3.js"),["assets/device-39b20fb3.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./opendtu/opendtu/inverter.vue":()=>e(()=>import("./inverter-77029227.js"),["assets/inverter-77029227.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_bat_kit/bat.vue":()=>e(()=>import("./bat-b8c5cdb6.js"),["assets/bat-b8c5cdb6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_evu_kit/bat.vue":()=>e(()=>import("./bat-211344ee.js"),["assets/bat-211344ee.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_evu_kit/counter.vue":()=>e(()=>import("./counter-39d4af34.js"),["assets/counter-39d4af34.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_evu_kit/inverter.vue":()=>e(()=>import("./inverter-dda60d18.js"),["assets/inverter-dda60d18.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_flex/bat.vue":()=>e(()=>import("./bat-8d51e9b6.js"),["assets/bat-8d51e9b6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_flex/consumption_counter.vue":()=>e(()=>import("./consumption_counter-3aa8670b.js"),["assets/consumption_counter-3aa8670b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_flex/counter.vue":()=>e(()=>import("./counter-2a9f653b.js"),["assets/counter-2a9f653b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_flex/device.vue":()=>e(()=>import("./device-4a7dd16d.js"),["assets/device-4a7dd16d.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_flex/inverter.vue":()=>e(()=>import("./inverter-f1e6b12e.js"),["assets/inverter-f1e6b12e.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_pv_kit/inverter.vue":()=>e(()=>import("./inverter-14d8ff03.js"),["assets/inverter-14d8ff03.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./orno/orno/counter.vue":()=>e(()=>import("./counter-f9f8b4aa.js"),["assets/counter-f9f8b4aa.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./orno/orno/device.vue":()=>e(()=>import("./device-71bc1bb6.js"),["assets/device-71bc1bb6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerdog/powerdog/counter.vue":()=>e(()=>import("./counter-e68e3c33.js"),["assets/counter-e68e3c33.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerdog/powerdog/device.vue":()=>e(()=>import("./device-e3414ea3.js"),["assets/device-e3414ea3.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerfox/powerfox/counter.vue":()=>e(()=>import("./counter-5661736f.js"),["assets/counter-5661736f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerfox/powerfox/device.vue":()=>e(()=>import("./device-209d430b.js"),["assets/device-209d430b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerfox/powerfox/inverter.vue":()=>e(()=>import("./inverter-f704eca9.js"),["assets/inverter-f704eca9.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./qcells/qcells/device.vue":()=>e(()=>import("./device-6fbd7b85.js"),["assets/device-6fbd7b85.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./rct/rct/device.vue":()=>e(()=>import("./device-a8208384.js"),["assets/device-a8208384.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./saxpower/saxpower/device.vue":()=>e(()=>import("./device-eb24efb6.js"),["assets/device-eb24efb6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./shelly/shelly/counter.vue":()=>e(()=>import("./counter-14bdbbf1.js"),["assets/counter-14bdbbf1.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./shelly/shelly/device.vue":()=>e(()=>import("./device-d801ab50.js"),["assets/device-d801ab50.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./siemens/siemens/device.vue":()=>e(()=>import("./device-019ef76a.js"),["assets/device-019ef76a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./siemens/siemens_sentron/device.vue":()=>e(()=>import("./device-0b615e92.js"),["assets/device-0b615e92.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sigenergy/sigenergy/bat.vue":()=>e(()=>import("./bat-18b93404.js"),["assets/bat-18b93404.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sigenergy/sigenergy/counter.vue":()=>e(()=>import("./counter-aa714b1f.js"),["assets/counter-aa714b1f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sigenergy/sigenergy/device.vue":()=>e(()=>import("./device-c9250c5b.js"),["assets/device-c9250c5b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sigenergy/sigenergy/inverter.vue":()=>e(()=>import("./inverter-39424733.js"),["assets/inverter-39424733.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_shm/counter.vue":()=>e(()=>import("./counter-f990ab02.js"),["assets/counter-f990ab02.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_shm/inverter.vue":()=>e(()=>import("./inverter-c4d4cb47.js"),["assets/inverter-c4d4cb47.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_boy/bat.vue":()=>e(()=>import("./bat-f53788cb.js"),["assets/bat-f53788cb.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_boy/bat_smart_energy.vue":()=>e(()=>import("./bat_smart_energy-e0c5fbbd.js"),["assets/bat_smart_energy-e0c5fbbd.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_boy/counter.vue":()=>e(()=>import("./counter-8a64260e.js"),["assets/counter-8a64260e.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_boy/device.vue":()=>e(()=>import("./device-652a9744.js"),["assets/device-652a9744.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_boy/inverter.vue":()=>e(()=>import("./inverter-9cc82d3a.js"),["assets/inverter-9cc82d3a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_island/bat.vue":()=>e(()=>import("./bat-45b65bea.js"),["assets/bat-45b65bea.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_island/device.vue":()=>e(()=>import("./device-bba50fe5.js"),["assets/device-bba50fe5.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_webbox/device.vue":()=>e(()=>import("./device-dd5cb4eb.js"),["assets/device-dd5cb4eb.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smart_me/smart_me/counter.vue":()=>e(()=>import("./counter-328892f7.js"),["assets/counter-328892f7.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smart_me/smart_me/device.vue":()=>e(()=>import("./device-e1e97349.js"),["assets/device-e1e97349.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smart_me/smart_me/inverter.vue":()=>e(()=>import("./inverter-aadeffcc.js"),["assets/inverter-aadeffcc.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smartfox/smartfox/device.vue":()=>e(()=>import("./device-dbd0d29c.js"),["assets/device-dbd0d29c.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sofar/sofar/device.vue":()=>e(()=>import("./device-81740119.js"),["assets/device-81740119.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_log/solar_log/counter.vue":()=>e(()=>import("./counter-8f9e07d5.js"),["assets/counter-8f9e07d5.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_log/solar_log/device.vue":()=>e(()=>import("./device-4687580a.js"),["assets/device-4687580a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_view/solar_view/device.vue":()=>e(()=>import("./device-ee7b1351.js"),["assets/device-ee7b1351.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_view/solar_view/inverter.vue":()=>e(()=>import("./inverter-f6b68618.js"),["assets/inverter-f6b68618.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_watt/solar_watt/device.vue":()=>e(()=>import("./device-2c5bfecf.js"),["assets/device-2c5bfecf.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_world/solar_world/device.vue":()=>e(()=>import("./device-4bc72e48.js"),["assets/device-4bc72e48.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solaredge/solaredge/bat.vue":()=>e(()=>import("./bat-c7ee6179.js"),["assets/bat-c7ee6179.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solaredge/solaredge/counter.vue":()=>e(()=>import("./counter-059aac54.js"),["assets/counter-059aac54.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solaredge/solaredge/device.vue":()=>e(()=>import("./device-de940d29.js"),["assets/device-de940d29.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solaredge/solaredge/external_inverter.vue":()=>e(()=>import("./external_inverter-ac3fe3d1.js"),["assets/external_inverter-ac3fe3d1.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solaredge/solaredge/inverter.vue":()=>e(()=>import("./inverter-5cf4002d.js"),["assets/inverter-5cf4002d.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solarmax/solarmax/bat.vue":()=>e(()=>import("./bat-babd59c5.js"),["assets/bat-babd59c5.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solarmax/solarmax/device.vue":()=>e(()=>import("./device-dc230eb0.js"),["assets/device-dc230eb0.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solarmax/solarmax/inverter.vue":()=>e(()=>import("./inverter-43948e1d.js"),["assets/inverter-43948e1d.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solax/solax/device.vue":()=>e(()=>import("./device-57fdb288.js"),["assets/device-57fdb288.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solis/solis/bat.vue":()=>e(()=>import("./bat-1b4b9f24.js"),["assets/bat-1b4b9f24.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solis/solis/counter.vue":()=>e(()=>import("./counter-4644e6cb.js"),["assets/counter-4644e6cb.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solis/solis/device.vue":()=>e(()=>import("./device-7d5ffda7.js"),["assets/device-7d5ffda7.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solis/solis/inverter.vue":()=>e(()=>import("./inverter-df87aae6.js"),["assets/inverter-df87aae6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sonnen/sonnenbatterie/bat.vue":()=>e(()=>import("./bat-9dc30682.js"),["assets/bat-9dc30682.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sonnen/sonnenbatterie/counter.vue":()=>e(()=>import("./counter-6f4588d4.js"),["assets/counter-6f4588d4.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sonnen/sonnenbatterie/counter_consumption.vue":()=>e(()=>import("./counter_consumption-14cd8b87.js"),["assets/counter_consumption-14cd8b87.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sonnen/sonnenbatterie/device.vue":()=>e(()=>import("./device-97db254f.js"),["assets/device-97db254f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./studer/studer/bat.vue":()=>e(()=>import("./bat-b745477e.js"),["assets/bat-b745477e.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./studer/studer/device.vue":()=>e(()=>import("./device-aa0fb6fb.js"),["assets/device-aa0fb6fb.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./studer/studer/inverter.vue":()=>e(()=>import("./inverter-426faebc.js"),["assets/inverter-426faebc.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sungrow/sungrow/device.vue":()=>e(()=>import("./device-1734f335.js"),["assets/device-1734f335.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sunways/sunways/device.vue":()=>e(()=>import("./device-012d3b5a.js"),["assets/device-012d3b5a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./tasmota/tasmota/device.vue":()=>e(()=>import("./device-545b2256.js"),["assets/device-545b2256.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./tesla/tesla/counter.vue":()=>e(()=>import("./counter-ccc4227f.js"),["assets/counter-ccc4227f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./tesla/tesla/device.vue":()=>e(()=>import("./device-075d9674.js"),["assets/device-075d9674.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./thermia/thermia/counter.vue":()=>e(()=>import("./counter-566a9e91.js"),["assets/counter-566a9e91.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./thermia/thermia/device.vue":()=>e(()=>import("./device-774e33ff.js"),["assets/device-774e33ff.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./upower/upower/device.vue":()=>e(()=>import("./device-6c191cc5.js"),["assets/device-6c191cc5.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./varta/varta/device.vue":()=>e(()=>import("./device-9732226b.js"),["assets/device-9732226b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./varta/varta/inverter.vue":()=>e(()=>import("./inverter-7a8ba133.js"),["assets/inverter-7a8ba133.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./victron/victron/bat.vue":()=>e(()=>import("./bat-08ccd434.js"),["assets/bat-08ccd434.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./victron/victron/counter.vue":()=>e(()=>import("./counter-5fe4c9c7.js"),["assets/counter-5fe4c9c7.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./victron/victron/device.vue":()=>e(()=>import("./device-5d61b244.js"),["assets/device-5d61b244.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./victron/victron/inverter.vue":()=>e(()=>import("./inverter-4b8c7e35.js"),["assets/inverter-4b8c7e35.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./vzlogger/vzlogger/counter.vue":()=>e(()=>import("./counter-efe3ec69.js"),["assets/counter-efe3ec69.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./vzlogger/vzlogger/device.vue":()=>e(()=>import("./device-8a76503c.js"),["assets/device-8a76503c.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./vzlogger/vzlogger/inverter.vue":()=>e(()=>import("./inverter-3ff240fb.js"),["assets/inverter-3ff240fb.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./youless/youless/device.vue":()=>e(()=>import("./device-3cefb251.js"),["assets/device-3cefb251.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./youless/youless/inverter.vue":()=>e(()=>import("./inverter-3ba58e65.js"),["assets/inverter-3ba58e65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.device.vendor}/${this.device.type}/${this.component.type}.vue`),errorComponent:se}):z({loader:()=>x(Object.assign({"./algodue/algodue/device.vue":()=>e(()=>import("./device-3af8cb6b.js"),["assets/device-3af8cb6b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./alpha_ess/alpha_ess/device.vue":()=>e(()=>import("./device-547c5594.js"),["assets/device-547c5594.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./ampere/ampere/device.vue":()=>e(()=>import("./device-7bafcf0f.js"),["assets/device-7bafcf0f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./avm/avm/device.vue":()=>e(()=>import("./device-90b99ba4.js"),["assets/device-90b99ba4.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./azzurro_zcs/azzurro_zcs/device.vue":()=>e(()=>import("./device-0bbde04c.js"),["assets/device-0bbde04c.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./batterx/batterx/device.vue":()=>e(()=>import("./device-76063706.js"),["assets/device-76063706.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./benning/benning/device.vue":()=>e(()=>import("./device-9e5971cf.js"),["assets/device-9e5971cf.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./byd/byd/device.vue":()=>e(()=>import("./device-44a9fe5b.js"),["assets/device-44a9fe5b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./carlo_gavazzi/carlo_gavazzi/device.vue":()=>e(()=>import("./device-3bfb9718.js"),["assets/device-3bfb9718.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./deye/deye/device.vue":()=>e(()=>import("./device-3c6a1975.js"),["assets/device-3c6a1975.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./discovergy/discovergy/device.vue":()=>e(()=>import("./device-f3ea5347.js"),["assets/device-f3ea5347.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./e3dc/e3dc/device.vue":()=>e(()=>import("./device-18f04763.js"),["assets/device-18f04763.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./enphase/enphase/device.vue":()=>e(()=>import("./device-0a610e9f.js"),["assets/device-0a610e9f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fems/fems/device.vue":()=>e(()=>import("./device-2060009a.js"),["assets/device-2060009a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fox_ess/fox_ess/device.vue":()=>e(()=>import("./device-434acb81.js"),["assets/device-434acb81.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fronius/fronius/device.vue":()=>e(()=>import("./device-a362181c.js"),["assets/device-a362181c.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/http/device.vue":()=>e(()=>import("./device-b89dcacb.js"),["assets/device-b89dcacb.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/json/device.vue":()=>e(()=>import("./device-0812a0b7.js"),["assets/device-0812a0b7.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/mqtt/device.vue":()=>e(()=>import("./device-e061c3ce.js"),["assets/device-e061c3ce.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./good_we/good_we/device.vue":()=>e(()=>import("./device-e2b6e352.js"),["assets/device-e2b6e352.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./growatt/growatt/device.vue":()=>e(()=>import("./device-ae133671.js"),["assets/device-ae133671.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei/device.vue":()=>e(()=>import("./device-3da862be.js"),["assets/device-3da862be.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei_smartlogger/device.vue":()=>e(()=>import("./device-70078db6.js"),["assets/device-70078db6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./janitza/janitza/device.vue":()=>e(()=>import("./device-c9b784c2.js"),["assets/device-c9b784c2.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kaco/kaco_tx/device.vue":()=>e(()=>import("./device-cea58e31.js"),["assets/device-cea58e31.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_piko/device.vue":()=>e(()=>import("./device-317fa85d.js"),["assets/device-317fa85d.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_piko_old/device.vue":()=>e(()=>import("./device-dd17995b.js"),["assets/device-dd17995b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_plenticore/device.vue":()=>e(()=>import("./device-ed18848c.js"),["assets/device-ed18848c.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_sem/device.vue":()=>e(()=>import("./device-345bd775.js"),["assets/device-345bd775.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_steca/device.vue":()=>e(()=>import("./device-47e158c3.js"),["assets/device-47e158c3.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./lg/lg/device.vue":()=>e(()=>import("./device-b0fef6f7.js"),["assets/device-b0fef6f7.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mtec/mtec/device.vue":()=>e(()=>import("./device-083b322d.js"),["assets/device-083b322d.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mystrom/mystrom/device.vue":()=>e(()=>import("./device-2e6ed3d2.js"),["assets/device-2e6ed3d2.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./nibe/nibe/device.vue":()=>e(()=>import("./device-d28a42a6.js"),["assets/device-d28a42a6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./opendtu/opendtu/device.vue":()=>e(()=>import("./device-39b20fb3.js"),["assets/device-39b20fb3.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_flex/device.vue":()=>e(()=>import("./device-4a7dd16d.js"),["assets/device-4a7dd16d.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./orno/orno/device.vue":()=>e(()=>import("./device-71bc1bb6.js"),["assets/device-71bc1bb6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerdog/powerdog/device.vue":()=>e(()=>import("./device-e3414ea3.js"),["assets/device-e3414ea3.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerfox/powerfox/device.vue":()=>e(()=>import("./device-209d430b.js"),["assets/device-209d430b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./qcells/qcells/device.vue":()=>e(()=>import("./device-6fbd7b85.js"),["assets/device-6fbd7b85.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./rct/rct/device.vue":()=>e(()=>import("./device-a8208384.js"),["assets/device-a8208384.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./saxpower/saxpower/device.vue":()=>e(()=>import("./device-eb24efb6.js"),["assets/device-eb24efb6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./shelly/shelly/device.vue":()=>e(()=>import("./device-d801ab50.js"),["assets/device-d801ab50.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./siemens/siemens/device.vue":()=>e(()=>import("./device-019ef76a.js"),["assets/device-019ef76a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./siemens/siemens_sentron/device.vue":()=>e(()=>import("./device-0b615e92.js"),["assets/device-0b615e92.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sigenergy/sigenergy/device.vue":()=>e(()=>import("./device-c9250c5b.js"),["assets/device-c9250c5b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_boy/device.vue":()=>e(()=>import("./device-652a9744.js"),["assets/device-652a9744.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_island/device.vue":()=>e(()=>import("./device-bba50fe5.js"),["assets/device-bba50fe5.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_webbox/device.vue":()=>e(()=>import("./device-dd5cb4eb.js"),["assets/device-dd5cb4eb.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smart_me/smart_me/device.vue":()=>e(()=>import("./device-e1e97349.js"),["assets/device-e1e97349.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smartfox/smartfox/device.vue":()=>e(()=>import("./device-dbd0d29c.js"),["assets/device-dbd0d29c.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sofar/sofar/device.vue":()=>e(()=>import("./device-81740119.js"),["assets/device-81740119.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_log/solar_log/device.vue":()=>e(()=>import("./device-4687580a.js"),["assets/device-4687580a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_view/solar_view/device.vue":()=>e(()=>import("./device-ee7b1351.js"),["assets/device-ee7b1351.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_watt/solar_watt/device.vue":()=>e(()=>import("./device-2c5bfecf.js"),["assets/device-2c5bfecf.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_world/solar_world/device.vue":()=>e(()=>import("./device-4bc72e48.js"),["assets/device-4bc72e48.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solaredge/solaredge/device.vue":()=>e(()=>import("./device-de940d29.js"),["assets/device-de940d29.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solarmax/solarmax/device.vue":()=>e(()=>import("./device-dc230eb0.js"),["assets/device-dc230eb0.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solax/solax/device.vue":()=>e(()=>import("./device-57fdb288.js"),["assets/device-57fdb288.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solis/solis/device.vue":()=>e(()=>import("./device-7d5ffda7.js"),["assets/device-7d5ffda7.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sonnen/sonnenbatterie/device.vue":()=>e(()=>import("./device-97db254f.js"),["assets/device-97db254f.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./studer/studer/device.vue":()=>e(()=>import("./device-aa0fb6fb.js"),["assets/device-aa0fb6fb.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sungrow/sungrow/device.vue":()=>e(()=>import("./device-1734f335.js"),["assets/device-1734f335.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sunways/sunways/device.vue":()=>e(()=>import("./device-012d3b5a.js"),["assets/device-012d3b5a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./tasmota/tasmota/device.vue":()=>e(()=>import("./device-545b2256.js"),["assets/device-545b2256.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./tesla/tesla/device.vue":()=>e(()=>import("./device-075d9674.js"),["assets/device-075d9674.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./thermia/thermia/device.vue":()=>e(()=>import("./device-774e33ff.js"),["assets/device-774e33ff.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./upower/upower/device.vue":()=>e(()=>import("./device-6c191cc5.js"),["assets/device-6c191cc5.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./varta/varta/device.vue":()=>e(()=>import("./device-9732226b.js"),["assets/device-9732226b.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./victron/victron/device.vue":()=>e(()=>import("./device-5d61b244.js"),["assets/device-5d61b244.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./vzlogger/vzlogger/device.vue":()=>e(()=>import("./device-8a76503c.js"),["assets/device-8a76503c.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./youless/youless/device.vue":()=>e(()=>import("./device-3cefb251.js"),["assets/device-3cefb251.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.device.vendor}/${this.device.type}/device.vue`),errorComponent:_e})},updateConfiguration(t){this.$emit("update:configuration",t)}}};function me(t,o,i,m,s,n){return v(),E(Z(n.getComponent()),{device:i.device,component:i.component,configuration:i.component?i.component.configuration:i.device.configuration,"device-id":i.device.id,"device-type":i.device.type,"component-id":i.component?i.component.id:void 0,"component-type":i.component?i.component.type:void 0,"onUpdate:configuration":o[0]||(o[0]=l=>n.updateConfiguration(l))},null,40,["device","component","configuration","device-id","device-type","component-id","component-type"])}const pe=I(ae,[["render",me],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbConfigProxy.vue"]]);S.add(U,q,G,N,K,F,H);const le={name:"OpenwbHardwareInstallationView",components:{FontAwesomeIcon:$,OpenwbConfigProxy:pe},mixins:[J],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["sendCommand","save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/get/hierarchy","openWB/system/device/+/config","openWB/system/device/+/component/+/config","openWB/system/configurable/devices_components"],selectedVendor:void 0,deviceToAdd:void 0,showDeviceRemoveModal:!1,modalDevice:void 0,modalDeviceName:"",componentToAdd:[],showComponentRemoveModal:!1,modalComponent:void 0,modalComponentName:""}},computed:{installedDevices:{get(){return this.getWildcardTopics("openWB/system/device/+/config")}},installedComponents:{get(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")}},vendorList:{get(){return this.$store.state.mqtt["openWB/system/configurable/devices_components"]===void 0?[]:Object.entries(this.$store.state.mqtt["openWB/system/configurable/devices_components"]).map(([t,o])=>({label:o.group_name,options:Object.entries(o.vendors).map(([i,m])=>({value:[t,i],text:m.vendor_name})).sort((i,m)=>i.text.localeCompare(m.text))})).sort((t,o)=>-t.label.localeCompare(o.label))}},deviceList:{get(){if(this.selectedVendor===void 0)return[];let[t,o]=this.selectedVendor;return Object.entries(this.$store.state.mqtt["openWB/system/configurable/devices_components"][t].vendors[o].devices).map(([i,m])=>({value:[o,i],text:m.device_name})).sort((i,m)=>i.text.localeCompare(m.text))}}},methods:{getComponentTypeClass(t){return t.match(/^(.+_)?counter(_.+)?$/)?"danger":t.match(/^(.+_)?inverter(_.+)?$/)?"success":t.match(/^(.+_)?bat(_.+)?$/)?"warning":"dark"},getComponentTypeIcon(t){return t.match(/^(.+_)?counter(_.+)?$/)?["fas","fa-gauge-high"]:t.match(/^(.+_)?inverter(_.+)?$/)?["fas","fa-solar-panel"]:t.match(/^(.+_)?bat(_.+)?$/)?["fas","fa-car-battery"]:["fas","fa-microchip"]},getMyInstalledComponents(t){return this.getWildcardTopics("openWB/system/device/"+t+"/component/+/config")},deviceHasConfiguredComponents(t){return Object.keys(this.getMyInstalledComponents(t)).length>0},addDevice(){this.$emit("sendCommand",{command:"addDevice",data:{vendor:this.deviceToAdd[0],type:this.deviceToAdd[1]}})},removeDeviceModal(t,o,i){i.stopPropagation(),this.modalDevice=t,this.modalDeviceName=o,this.showDeviceRemoveModal=!0},removeDevice(t){this.showDeviceRemoveModal=!1,t=="confirm"&&this.$emit("sendCommand",{command:"removeDevice",data:{id:this.modalDevice}})},addComponent(t,o,i,m){this.$emit("sendCommand",{command:"addComponent",data:{deviceId:t,deviceType:i,deviceVendor:o,type:m}})},removeComponentModal(t,o,i,m,s){s.stopPropagation(),this.modalComponent={deviceId:t,id:o,type:i},this.modalComponentName=m,this.showComponentRemoveModal=!0},removeComponent(t){this.showComponentRemoveModal=!1,t=="confirm"&&this.$emit("sendCommand",{command:"removeComponent",data:this.modalComponent})},getComponentList(t,o){if(t===void 0||o===void 0)return[];let i=[];return Object.values(this.$store.state.mqtt["openWB/system/configurable/devices_components"]).every(m=>m.vendors[t]!==void 0?(m.vendors[t].devices[o]!==void 0&&(i=Object.entries(m.vendors[t].devices[o].components).map(([n,l])=>({value:n,text:l.component_name}))),!1):!0),i},updateConfiguration(t,o){console.debug("updateConfiguration",t,o),this.updateState(t,o.value,o.object)}}},ce={class:"hardwareInstallation"},Ee={name:"hardwareInstallationForm"},ge={key:0},fe={key:1},Ve={key:1},Oe={key:0};function Te(t,o,i,m,s,n){const l=p("openwb-base-modal-dialog"),b=p("router-link"),T=p("openwb-base-alert"),A=p("font-awesome-icon"),D=p("openwb-base-avatar"),P=p("openwb-base-text-input"),C=p("openwb-config-proxy"),M=p("openwb-base-heading"),w=p("openwb-base-card"),y=p("openwb-base-select-input"),j=p("openwb-base-submit-buttons");return v(),g(L,null,[u(l,{show:s.showDeviceRemoveModal,title:"Gerät löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:n.removeDevice},{default:r(()=>[d(' Wollen Sie das Gerät "'+V(s.modalDeviceName)+'" inklusive aller Komponenten wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),u(l,{show:s.showComponentRemoveModal,title:"Komponente löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:n.removeComponent},{default:r(()=>[d(' Wollen Sie die Komponente "'+V(s.modalComponentName)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),c("div",ce,[c("form",Ee,[i.installAssistantActive?R("",!0):(v(),E(T,{key:0,subtype:"info"},{default:r(()=>[o[7]||(o[7]=d(" Wenn neue Komponenten - insbesondere Zähler - konfiguriert wurden, ist auch das ",-1)),u(b,{to:"/LoadManagementConfiguration"},{default:r(()=>o[6]||(o[6]=[d(" Lastmanagement ",-1)])),_:1,__:[6]}),o[8]||(o[8]=d(" zu prüfen!",-1)),o[9]||(o[9]=c("br",null,null,-1)),o[10]||(o[10]=d(" Je nach Hersteller muss eventuell die Kommunikation im Wechselrichter freigegeben werden (z.B. Aktivierung Modbus TCP, Portfreigaben o.Ä.) ",-1))]),_:1,__:[7,8,9,10]})),u(w,{title:"Geräte und Komponenten"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(v(),g("div",ge,[u(T,{subtype:"info"},{default:r(()=>o[11]||(o[11]=[d(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[11]})])):(v(),g("div",fe,[(v(!0),g(L,null,k(n.installedDevices,(_,h)=>(v(),E(w,{key:h,collapsible:!0,collapsed:!0,subtype:"dark"},{header:r(()=>[u(A,{icon:["fas","network-wired"]}),d(" "+V(_==null?void 0:_.name),1)]),actions:r(a=>[a.collapsed?(v(),g("div",Ve,[(v(!0),g(L,null,k(n.getMyInstalledComponents(_==null?void 0:_.id),f=>(v(),E(D,{key:f.id,class:Y("ml-1 bg-"+n.getComponentTypeClass(f.type))},{default:r(()=>[u(A,{icon:n.getComponentTypeIcon(f.type)},null,8,["icon"])]),_:2},1032,["class"]))),128))])):(v(),E(D,{key:0,class:"bg-danger clickable",onClick:f=>n.removeDeviceModal(_==null?void 0:_.id,_==null?void 0:_.name,f)},{default:r(()=>[u(A,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:r(()=>[u(P,{title:"Bezeichnung",subtype:"text","model-value":_==null?void 0:_.name,"onUpdate:modelValue":a=>t.updateState(h,a,"name")},null,8,["model-value","onUpdate:modelValue"]),o[19]||(o[19]=c("hr",null,null,-1)),u(C,{device:_,"onUpdate:configuration":a=>n.updateConfiguration(h,a)},null,8,["device","onUpdate:configuration"]),o[20]||(o[20]=c("hr",null,null,-1)),u(M,null,{default:r(()=>[...o[12]||(o[12]=[d("Komponenten",-1)])]),_:1,__:[12]}),n.deviceHasConfiguredComponents(_==null?void 0:_.id)?R("",!0):(v(),E(T,{key:0,subtype:"warning"},{default:r(()=>[...o[13]||(o[13]=[d(" Es wurden noch keine Komponenten zu diesem Gerät angelegt. ",-1)])]),_:1,__:[13]})),(v(!0),g(L,null,k(n.getMyInstalledComponents(_.id),(a,f)=>(v(),E(w,{key:a.id,collapsible:!0,collapsed:!0,subtype:n.getComponentTypeClass(a.type)},{header:r(()=>[u(A,{icon:n.getComponentTypeIcon(a.type)},null,8,["icon"]),d(" "+V(a.name),1)]),actions:r(O=>[O.collapsed?R("",!0):(v(),E(D,{key:0,class:"bg-danger clickable",onClick:W=>n.removeComponentModal(_.id,a.id,a.type,a.name,W)},{default:r(()=>[u(A,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:r(()=>[u(P,{title:"Bezeichnung",subtype:"text","model-value":a.name,"onUpdate:modelValue":O=>t.updateState(f,O,"name")},null,8,["model-value","onUpdate:modelValue"]),u(P,{title:"Hersteller",subtype:"text","model-value":a.info.manufacturer,"onUpdate:modelValue":O=>t.updateState(f,O,"info.manufacturer")},{help:r(()=>[...o[14]||(o[14]=[d(" Optional: zusätzliche Information für den Systembericht. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),u(P,{title:"Modell",subtype:"text","model-value":a.info.model,"onUpdate:modelValue":O=>t.updateState(f,O,"info.model")},{help:r(()=>[...o[15]||(o[15]=[d(" Optional: zusätzliche Information für den Systembericht. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o[16]||(o[16]=c("hr",null,null,-1)),u(C,{device:_,component:a,"onUpdate:configuration":O=>n.updateConfiguration(f,O)},null,8,["device","component","onUpdate:configuration"])]),_:2,__:[16]},1032,["subtype"]))),128)),o[21]||(o[21]=c("hr",null,null,-1)),n.getComponentList(_.vendor,_.type).length?(v(),E(y,{key:1,title:"Verfügbare Komponenten","not-selected":"Bitte auswählen",options:n.getComponentList(_.vendor,_.type),"model-value":s.componentToAdd[_.id],"add-button":!0,"onUpdate:modelValue":a=>s.componentToAdd[_.id]=a,"onInput:add":a=>n.addComponent(_.id,_.vendor,_.type,s.componentToAdd[_.id])},{help:r(()=>[...o[17]||(o[17]=[d(" Bitte eine Komponente auswählen, die hinzugefügt werden soll. Für jeden Datensatz, z.B. Wechselrichter- und Batteriedaten, muss eine Wechselrichter- und eine Batteriekomponente hinzugefügt werden. ",-1)])]),_:2},1032,["options","model-value","onUpdate:modelValue","onInput:add"])):(v(),E(T,{key:2,subtype:"info"},{default:r(()=>[...o[18]||(o[18]=[d(" Dieses System bietet keine Komponenten zur Installation an. ",-1)])]),_:1,__:[18]}))]),_:2,__:[19,20,21]},1024))),128)),Object.keys(n.installedDevices).length>0?(v(),g("hr",Oe)):R("",!0),u(y,{modelValue:s.selectedVendor,"onUpdate:modelValue":o[0]||(o[0]=_=>s.selectedVendor=_),title:"Hersteller","not-selected":"Bitte auswählen",groups:n.vendorList},null,8,["modelValue","groups"]),u(y,{modelValue:s.deviceToAdd,"onUpdate:modelValue":[o[1]||(o[1]=_=>s.deviceToAdd=_),o[2]||(o[2]=_=>s.deviceToAdd=_)],title:"Verfügbare Geräte","not-selected":"Bitte auswählen",disabled:s.selectedVendor===void 0,options:n.deviceList,"model-value":s.deviceToAdd,"add-button":!0,"onInput:add":n.addDevice},{help:r(()=>o[22]||(o[22]=[c("p",null,[d(' Die openWB-Regelung ist auf Werte von Messpunkten (Zähler, Energy Meter usw.) angewiesen. Hierfür werden "Geräte" und "Komponenten" verwendet.'),c("br"),d(' Ein "Gerät" wird hierbei durch seine Verbindungseinstellungen (z.B. IP-Adresse) spezifiziert (häufig durch manuelle Eingabe oder manchmal automatisch ermittelt) und kann über mehrere untergeordnete "Komponenten" verfügen, z.B. einen Messpunkt für PV-Erzeugung, einen Messpunkt für Netzeinspeisung/-bezug am EVU-Punkt usw.. Ein "Gerät" bedingt somit immer mindestens eine zugehörige "Komponente". ')],-1),c("p",null,[d(' Bsp: Werden die Werte von verschiedenen Messpunkten (z.B. PV und EVU) über die gleiche IP-Adresse abgefragt, wird dafür ein "Gerät" mit zwei "Komponenten" für PV- und EVU- Messpunkt angelegt.'),c("br"),d(' Verfügt dagegen jeder Messpunkt über eine eigene IP-Adresse, wird jeder Messpunkt als eigenes "Gerät" mit nur einer "Komponente" angelegt. ')],-1),c("p",null,' Das "Gerät" wird in der Dropdown-Liste ausgewählt und mit "+" der Regelung hinzugefügt. Im Anschluss erfolgt die Konfiguration des "Gerätes" innerhalb des schwarzen "Geräte"-Reiters. ',-1)])),_:1},8,["modelValue","disabled","options","model-value","onInput:add"])]))]),_:1}),u(j,{"form-name":"hardwareInstallationForm",onSave:o[3]||(o[3]=_=>t.$emit("save")),onReset:o[4]||(o[4]=_=>t.$emit("reset")),onDefaults:o[5]||(o[5]=_=>t.$emit("defaults"))})])])],64)}const Ie=I(le,[["render",Te],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/HardwareInstallation.vue"]]),Le=Object.freeze(Object.defineProperty({__proto__:null,default:Ie},Symbol.toStringTag,{value:"Module"}));export{re as C,B as D,Ie as H,Le as a}; diff --git a/web/settings/assets/HardwareInstallation-b7e2b58c.js b/web/settings/assets/HardwareInstallation-b7e2b58c.js deleted file mode 100644 index c52ade6f3c..0000000000 --- a/web/settings/assets/HardwareInstallation-b7e2b58c.js +++ /dev/null @@ -1 +0,0 @@ -import{l as S,d as U,y as q,aj as G,aa as N,_ as K,Z as F,Y as H,F as $}from"./vendor-fortawesome-66071a0e.js";import{_ as e,C as J}from"./index-93388667.js";import{_ as x}from"./dynamic-import-helper-be004503.js";import{_ as I,u as p,l as v,m as g,x as E,E as r,B as d,F as V,G as u,A as c,a2 as z,a3 as Z,z as R,N as L,M as k,q as Y}from"./vendor-25d394b4.js";const Q={props:{device:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(t,o=void 0){this.$emit("update:configuration",{value:t,object:o})}}},B=I(Q,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/DeviceConfigMixin.vue"]]),X={name:"DeviceFallback",mixins:[B]},ee={class:"device-fallback"},oe={key:1};function te(t,o,i,m,s,n){const l=p("openwb-base-alert"),b=p("openwb-base-textarea");return v(),g("div",ee,[Object.keys(t.device.configuration).length==0?(v(),E(l,{key:0,subtype:"info"},{default:r(()=>[d(' Der Gerät-Typ "'+V(t.device.type)+'" bietet keine Einstellungen. ',1)]),_:1})):(v(),g("div",oe,[u(l,{subtype:"warning"},{default:r(()=>[d(' Es wurde keine Konfigurationsseite für den Geräte-Typ "'+V(t.device.type)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),u(b,{title:"Konfiguration",subtype:"json","model-value":t.device.configuration,"onUpdate:modelValue":o[0]||(o[0]=T=>t.updateConfiguration(T,"configuration"))},{help:r(()=>o[1]||(o[1]=[d(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),u(l,{subtype:"info"},{default:r(()=>[c("pre",null,V(JSON.stringify(t.device.configuration,void 0,2)),1)]),_:1})]))])}const _e=I(X,[["render",te],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbDeviceConfigFallback.vue"]]),ie={mixins:[B],props:{component:{type:Object,required:!0}}},re=I(ie,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/ComponentConfigMixin.vue"]]),ne={name:"ComponentFallback",mixins:[re]},ue={class:"component-fallback"},de={key:1};function ve(t,o,i,m,s,n){const l=p("openwb-base-alert"),b=p("openwb-base-textarea");return v(),g("div",ue,[Object.keys(t.component.configuration).length==0?(v(),E(l,{key:0,subtype:"info"},{default:r(()=>[d(' Der Komponenten-Typ "'+V(t.component.type)+'" bietet keine Einstellungen. ',1)]),_:1})):(v(),g("div",de,[u(l,{subtype:"warning"},{default:r(()=>[d(' Es wurde keine Konfigurationsseite für den Komponenten-Typ "'+V(t.component.type)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),u(b,{title:"Konfiguration",subtype:"json","model-value":t.component.configuration,"onUpdate:modelValue":o[0]||(o[0]=T=>t.updateConfiguration(T,"configuration"))},{help:r(()=>o[1]||(o[1]=[d(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),u(l,{subtype:"info"},{default:r(()=>[c("pre",null,V(JSON.stringify(t.component.configuration,void 0,2)),1)]),_:1})]))])}const se=I(ne,[["render",ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbComponentConfigFallback.vue"]]),ae={name:"OpenwbConfigProxy",props:{device:{type:Object,required:!0},component:{type:Object,required:!1,default:void 0}},emits:["update:configuration"],methods:{getComponent(){var t;return console.debug(`loading component: ${this.device.type} / ${(t=this.component)==null?void 0:t.type}`),this.component!==void 0?z({loader:()=>x(Object.assign({"./algodue/algodue/device.vue":()=>e(()=>import("./device-87950857.js"),["assets/device-87950857.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./alpha_ess/alpha_ess/device.vue":()=>e(()=>import("./device-8c48e19c.js"),["assets/device-8c48e19c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./ampere/ampere/device.vue":()=>e(()=>import("./device-69d484dc.js"),["assets/device-69d484dc.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./avm/avm/counter.vue":()=>e(()=>import("./counter-69ac9fe8.js"),["assets/counter-69ac9fe8.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./avm/avm/device.vue":()=>e(()=>import("./device-f3564d79.js"),["assets/device-f3564d79.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./azzurro_zcs/azzurro_zcs/device.vue":()=>e(()=>import("./device-8e1ca3b6.js"),["assets/device-8e1ca3b6.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./batterx/batterx/device.vue":()=>e(()=>import("./device-04c35d6b.js"),["assets/device-04c35d6b.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./benning/benning/device.vue":()=>e(()=>import("./device-5cd242bf.js"),["assets/device-5cd242bf.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./benning/benning/inverter.vue":()=>e(()=>import("./inverter-2464c133.js"),["assets/inverter-2464c133.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./byd/byd/device.vue":()=>e(()=>import("./device-afea5820.js"),["assets/device-afea5820.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./carlo_gavazzi/carlo_gavazzi/counter.vue":()=>e(()=>import("./counter-db80b3b7.js"),["assets/counter-db80b3b7.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./carlo_gavazzi/carlo_gavazzi/device.vue":()=>e(()=>import("./device-53ae7640.js"),["assets/device-53ae7640.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./deye/deye/bat.vue":()=>e(()=>import("./bat-94a28e10.js"),["assets/bat-94a28e10.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./deye/deye/counter.vue":()=>e(()=>import("./counter-40c49fbb.js"),["assets/counter-40c49fbb.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./deye/deye/device.vue":()=>e(()=>import("./device-72eb4453.js"),["assets/device-72eb4453.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./deye/deye/inverter.vue":()=>e(()=>import("./inverter-242f8f6b.js"),["assets/inverter-242f8f6b.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./discovergy/discovergy/counter.vue":()=>e(()=>import("./counter-511bff85.js"),["assets/counter-511bff85.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./discovergy/discovergy/device.vue":()=>e(()=>import("./device-16e005d5.js"),["assets/device-16e005d5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./discovergy/discovergy/inverter.vue":()=>e(()=>import("./inverter-538f8b90.js"),["assets/inverter-538f8b90.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./e3dc/e3dc/device.vue":()=>e(()=>import("./device-aa40f40e.js"),["assets/device-aa40f40e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./enphase/enphase/counter.vue":()=>e(()=>import("./counter-cae900f7.js"),["assets/counter-cae900f7.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./enphase/enphase/device.vue":()=>e(()=>import("./device-29966a32.js"),["assets/device-29966a32.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./enphase/enphase/inverter.vue":()=>e(()=>import("./inverter-cd891c2c.js"),["assets/inverter-cd891c2c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fems/fems/bat.vue":()=>e(()=>import("./bat-2665a943.js"),["assets/bat-2665a943.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fems/fems/device.vue":()=>e(()=>import("./device-5f077938.js"),["assets/device-5f077938.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fox_ess/fox_ess/bat.vue":()=>e(()=>import("./bat-efbd5e7a.js"),["assets/bat-efbd5e7a.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fox_ess/fox_ess/counter.vue":()=>e(()=>import("./counter-1951067e.js"),["assets/counter-1951067e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fox_ess/fox_ess/device.vue":()=>e(()=>import("./device-079f5cdc.js"),["assets/device-079f5cdc.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fox_ess/fox_ess/inverter.vue":()=>e(()=>import("./inverter-3a09fafa.js"),["assets/inverter-3a09fafa.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fronius/fronius/bat.vue":()=>e(()=>import("./bat-5cd17a97.js"),["assets/bat-5cd17a97.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fronius/fronius/counter_sm.vue":()=>e(()=>import("./counter_sm-d1b8f654.js"),["assets/counter_sm-d1b8f654.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fronius/fronius/device.vue":()=>e(()=>import("./device-32b32d79.js"),["assets/device-32b32d79.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fronius/fronius/inverter_secondary.vue":()=>e(()=>import("./inverter_secondary-a6696fc6.js"),["assets/inverter_secondary-a6696fc6.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/http/bat.vue":()=>e(()=>import("./bat-930b195f.js"),["assets/bat-930b195f.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/http/counter.vue":()=>e(()=>import("./counter-91b63bf3.js"),["assets/counter-91b63bf3.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/http/device.vue":()=>e(()=>import("./device-53266948.js"),["assets/device-53266948.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/http/inverter.vue":()=>e(()=>import("./inverter-517a33e3.js"),["assets/inverter-517a33e3.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/json/bat.vue":()=>e(()=>import("./bat-525c8cbc.js"),["assets/bat-525c8cbc.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/json/counter.vue":()=>e(()=>import("./counter-4321da14.js"),["assets/counter-4321da14.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/json/device.vue":()=>e(()=>import("./device-18442843.js"),["assets/device-18442843.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/json/inverter.vue":()=>e(()=>import("./inverter-7c045e1d.js"),["assets/inverter-7c045e1d.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/mqtt/bat.vue":()=>e(()=>import("./bat-7e834da4.js"),["assets/bat-7e834da4.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/mqtt/counter.vue":()=>e(()=>import("./counter-4bd255f1.js"),["assets/counter-4bd255f1.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/mqtt/device.vue":()=>e(()=>import("./device-60803ee4.js"),["assets/device-60803ee4.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/mqtt/inverter.vue":()=>e(()=>import("./inverter-3abb1a19.js"),["assets/inverter-3abb1a19.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/virtual/counter.vue":()=>e(()=>import("./counter-858527e9.js"),["assets/counter-858527e9.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./good_we/good_we/bat.vue":()=>e(()=>import("./bat-fd0a6337.js"),["assets/bat-fd0a6337.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./good_we/good_we/device.vue":()=>e(()=>import("./device-32daf8c4.js"),["assets/device-32daf8c4.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./growatt/growatt/device.vue":()=>e(()=>import("./device-9b32a0e5.js"),["assets/device-9b32a0e5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei/device.vue":()=>e(()=>import("./device-68afe813.js"),["assets/device-68afe813.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei_smartlogger/bat.vue":()=>e(()=>import("./bat-f3043e62.js"),["assets/bat-f3043e62.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei_smartlogger/counter.vue":()=>e(()=>import("./counter-af1ad647.js"),["assets/counter-af1ad647.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei_smartlogger/device.vue":()=>e(()=>import("./device-65767a9c.js"),["assets/device-65767a9c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei_smartlogger/inverter.vue":()=>e(()=>import("./inverter-d9c54d22.js"),["assets/inverter-d9c54d22.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./janitza/janitza/counter.vue":()=>e(()=>import("./counter-9cae3702.js"),["assets/counter-9cae3702.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./janitza/janitza/device.vue":()=>e(()=>import("./device-ef0c1ebd.js"),["assets/device-ef0c1ebd.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kaco/kaco_tx/device.vue":()=>e(()=>import("./device-e3d4ebdd.js"),["assets/device-e3d4ebdd.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kaco/kaco_tx/inverter.vue":()=>e(()=>import("./inverter-7fe24049.js"),["assets/inverter-7fe24049.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_piko/counter.vue":()=>e(()=>import("./counter-c1e3dac6.js"),["assets/counter-c1e3dac6.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_piko/device.vue":()=>e(()=>import("./device-0e3564cf.js"),["assets/device-0e3564cf.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_piko/inverter.vue":()=>e(()=>import("./inverter-6170a78d.js"),["assets/inverter-6170a78d.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_piko_old/device.vue":()=>e(()=>import("./device-94881378.js"),["assets/device-94881378.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_plenticore/counter.vue":()=>e(()=>import("./counter-c9fa17a6.js"),["assets/counter-c9fa17a6.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_plenticore/device.vue":()=>e(()=>import("./device-79c9c89c.js"),["assets/device-79c9c89c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_sem/counter.vue":()=>e(()=>import("./counter-71c817be.js"),["assets/counter-71c817be.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_sem/device.vue":()=>e(()=>import("./device-1041d4f9.js"),["assets/device-1041d4f9.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_steca/device.vue":()=>e(()=>import("./device-23d9f519.js"),["assets/device-23d9f519.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_steca/inverter.vue":()=>e(()=>import("./inverter-da89e3ac.js"),["assets/inverter-da89e3ac.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./lg/lg/device.vue":()=>e(()=>import("./device-8a02bf9e.js"),["assets/device-8a02bf9e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mtec/mtec/bat.vue":()=>e(()=>import("./bat-b9b77e59.js"),["assets/bat-b9b77e59.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mtec/mtec/counter.vue":()=>e(()=>import("./counter-510c4bff.js"),["assets/counter-510c4bff.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mtec/mtec/device.vue":()=>e(()=>import("./device-f42f3b17.js"),["assets/device-f42f3b17.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mtec/mtec/inverter.vue":()=>e(()=>import("./inverter-8261fbcd.js"),["assets/inverter-8261fbcd.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mystrom/mystrom/device.vue":()=>e(()=>import("./device-8677c7f9.js"),["assets/device-8677c7f9.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./nibe/nibe/counter.vue":()=>e(()=>import("./counter-a748557e.js"),["assets/counter-a748557e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./nibe/nibe/device.vue":()=>e(()=>import("./device-429bda33.js"),["assets/device-429bda33.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./opendtu/opendtu/device.vue":()=>e(()=>import("./device-64d52b78.js"),["assets/device-64d52b78.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./opendtu/opendtu/inverter.vue":()=>e(()=>import("./inverter-55951246.js"),["assets/inverter-55951246.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_bat_kit/bat.vue":()=>e(()=>import("./bat-63af7049.js"),["assets/bat-63af7049.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_evu_kit/bat.vue":()=>e(()=>import("./bat-493fcb15.js"),["assets/bat-493fcb15.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_evu_kit/counter.vue":()=>e(()=>import("./counter-ba55eb76.js"),["assets/counter-ba55eb76.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_evu_kit/inverter.vue":()=>e(()=>import("./inverter-b2aa2f88.js"),["assets/inverter-b2aa2f88.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_flex/bat.vue":()=>e(()=>import("./bat-21979bf2.js"),["assets/bat-21979bf2.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_flex/consumption_counter.vue":()=>e(()=>import("./consumption_counter-2e31a35f.js"),["assets/consumption_counter-2e31a35f.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_flex/counter.vue":()=>e(()=>import("./counter-a241b59e.js"),["assets/counter-a241b59e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_flex/device.vue":()=>e(()=>import("./device-214978b0.js"),["assets/device-214978b0.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_flex/inverter.vue":()=>e(()=>import("./inverter-c7f31b65.js"),["assets/inverter-c7f31b65.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_pv_kit/inverter.vue":()=>e(()=>import("./inverter-da7b4d6d.js"),["assets/inverter-da7b4d6d.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./orno/orno/counter.vue":()=>e(()=>import("./counter-351902ed.js"),["assets/counter-351902ed.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./orno/orno/device.vue":()=>e(()=>import("./device-3dfd4984.js"),["assets/device-3dfd4984.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerdog/powerdog/counter.vue":()=>e(()=>import("./counter-5505722d.js"),["assets/counter-5505722d.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerdog/powerdog/device.vue":()=>e(()=>import("./device-bb4ff5b1.js"),["assets/device-bb4ff5b1.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerfox/powerfox/counter.vue":()=>e(()=>import("./counter-f2f0c6a5.js"),["assets/counter-f2f0c6a5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerfox/powerfox/device.vue":()=>e(()=>import("./device-df9a450a.js"),["assets/device-df9a450a.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerfox/powerfox/inverter.vue":()=>e(()=>import("./inverter-3f6e0a86.js"),["assets/inverter-3f6e0a86.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./qcells/qcells/device.vue":()=>e(()=>import("./device-a07b3e3d.js"),["assets/device-a07b3e3d.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./rct/rct/device.vue":()=>e(()=>import("./device-43ea3db6.js"),["assets/device-43ea3db6.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./saxpower/saxpower/device.vue":()=>e(()=>import("./device-ec276f96.js"),["assets/device-ec276f96.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./shelly/shelly/counter.vue":()=>e(()=>import("./counter-80fa230d.js"),["assets/counter-80fa230d.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./shelly/shelly/device.vue":()=>e(()=>import("./device-dd870d85.js"),["assets/device-dd870d85.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./siemens/siemens/device.vue":()=>e(()=>import("./device-12a7dbac.js"),["assets/device-12a7dbac.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./siemens/siemens_sentron/device.vue":()=>e(()=>import("./device-e96fb3a1.js"),["assets/device-e96fb3a1.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sigenergy/sigenergy/bat.vue":()=>e(()=>import("./bat-e91cb1d1.js"),["assets/bat-e91cb1d1.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sigenergy/sigenergy/counter.vue":()=>e(()=>import("./counter-f53a55cd.js"),["assets/counter-f53a55cd.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sigenergy/sigenergy/device.vue":()=>e(()=>import("./device-6d6283ca.js"),["assets/device-6d6283ca.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sigenergy/sigenergy/inverter.vue":()=>e(()=>import("./inverter-0eab0f03.js"),["assets/inverter-0eab0f03.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_shm/counter.vue":()=>e(()=>import("./counter-686e6911.js"),["assets/counter-686e6911.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_shm/inverter.vue":()=>e(()=>import("./inverter-269cffec.js"),["assets/inverter-269cffec.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_boy/bat.vue":()=>e(()=>import("./bat-6cf37408.js"),["assets/bat-6cf37408.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_boy/bat_smart_energy.vue":()=>e(()=>import("./bat_smart_energy-ffd4b2a9.js"),["assets/bat_smart_energy-ffd4b2a9.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_boy/counter.vue":()=>e(()=>import("./counter-484db2f2.js"),["assets/counter-484db2f2.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_boy/device.vue":()=>e(()=>import("./device-01cc831a.js"),["assets/device-01cc831a.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_boy/inverter.vue":()=>e(()=>import("./inverter-8c76c5fa.js"),["assets/inverter-8c76c5fa.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_island/bat.vue":()=>e(()=>import("./bat-db1242e4.js"),["assets/bat-db1242e4.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_island/device.vue":()=>e(()=>import("./device-c5d84904.js"),["assets/device-c5d84904.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_webbox/device.vue":()=>e(()=>import("./device-4216efb1.js"),["assets/device-4216efb1.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smart_me/smart_me/counter.vue":()=>e(()=>import("./counter-530a38a8.js"),["assets/counter-530a38a8.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smart_me/smart_me/device.vue":()=>e(()=>import("./device-3ffc8ac2.js"),["assets/device-3ffc8ac2.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smart_me/smart_me/inverter.vue":()=>e(()=>import("./inverter-7354c663.js"),["assets/inverter-7354c663.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smartfox/smartfox/device.vue":()=>e(()=>import("./device-779403a1.js"),["assets/device-779403a1.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sofar/sofar/device.vue":()=>e(()=>import("./device-b9725af4.js"),["assets/device-b9725af4.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_log/solar_log/counter.vue":()=>e(()=>import("./counter-b7508d1c.js"),["assets/counter-b7508d1c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_log/solar_log/device.vue":()=>e(()=>import("./device-5d2a3e3a.js"),["assets/device-5d2a3e3a.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_view/solar_view/device.vue":()=>e(()=>import("./device-e210f928.js"),["assets/device-e210f928.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_view/solar_view/inverter.vue":()=>e(()=>import("./inverter-f0642b5c.js"),["assets/inverter-f0642b5c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_watt/solar_watt/device.vue":()=>e(()=>import("./device-4bc532b0.js"),["assets/device-4bc532b0.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_world/solar_world/device.vue":()=>e(()=>import("./device-b860ea67.js"),["assets/device-b860ea67.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solaredge/solaredge/bat.vue":()=>e(()=>import("./bat-e10ba718.js"),["assets/bat-e10ba718.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solaredge/solaredge/counter.vue":()=>e(()=>import("./counter-4492ff33.js"),["assets/counter-4492ff33.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solaredge/solaredge/device.vue":()=>e(()=>import("./device-de7086f5.js"),["assets/device-de7086f5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solaredge/solaredge/external_inverter.vue":()=>e(()=>import("./external_inverter-f3d046db.js"),["assets/external_inverter-f3d046db.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solaredge/solaredge/inverter.vue":()=>e(()=>import("./inverter-d02dc296.js"),["assets/inverter-d02dc296.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solarmax/solarmax/bat.vue":()=>e(()=>import("./bat-bb99028b.js"),["assets/bat-bb99028b.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solarmax/solarmax/device.vue":()=>e(()=>import("./device-42a91b6b.js"),["assets/device-42a91b6b.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solarmax/solarmax/inverter.vue":()=>e(()=>import("./inverter-fcb44e16.js"),["assets/inverter-fcb44e16.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solax/solax/device.vue":()=>e(()=>import("./device-c4b87c43.js"),["assets/device-c4b87c43.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solis/solis/bat.vue":()=>e(()=>import("./bat-49fe7df0.js"),["assets/bat-49fe7df0.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solis/solis/counter.vue":()=>e(()=>import("./counter-38b5b751.js"),["assets/counter-38b5b751.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solis/solis/device.vue":()=>e(()=>import("./device-41905c43.js"),["assets/device-41905c43.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solis/solis/inverter.vue":()=>e(()=>import("./inverter-db8b8e38.js"),["assets/inverter-db8b8e38.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sonnen/sonnenbatterie/bat.vue":()=>e(()=>import("./bat-1e0787a5.js"),["assets/bat-1e0787a5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sonnen/sonnenbatterie/counter.vue":()=>e(()=>import("./counter-7c0a1b4c.js"),["assets/counter-7c0a1b4c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sonnen/sonnenbatterie/counter_consumption.vue":()=>e(()=>import("./counter_consumption-cf52aa82.js"),["assets/counter_consumption-cf52aa82.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sonnen/sonnenbatterie/device.vue":()=>e(()=>import("./device-5aa89219.js"),["assets/device-5aa89219.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./studer/studer/bat.vue":()=>e(()=>import("./bat-4367cd57.js"),["assets/bat-4367cd57.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./studer/studer/device.vue":()=>e(()=>import("./device-4cc9719a.js"),["assets/device-4cc9719a.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./studer/studer/inverter.vue":()=>e(()=>import("./inverter-1475e049.js"),["assets/inverter-1475e049.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sungrow/sungrow/device.vue":()=>e(()=>import("./device-722e0495.js"),["assets/device-722e0495.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sunways/sunways/device.vue":()=>e(()=>import("./device-465f5d76.js"),["assets/device-465f5d76.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./tasmota/tasmota/device.vue":()=>e(()=>import("./device-e2624d17.js"),["assets/device-e2624d17.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./tesla/tesla/counter.vue":()=>e(()=>import("./counter-d7979450.js"),["assets/counter-d7979450.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./tesla/tesla/device.vue":()=>e(()=>import("./device-126f751b.js"),["assets/device-126f751b.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./thermia/thermia/counter.vue":()=>e(()=>import("./counter-3e31d9a4.js"),["assets/counter-3e31d9a4.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./thermia/thermia/device.vue":()=>e(()=>import("./device-a75bb0fd.js"),["assets/device-a75bb0fd.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./upower/upower/device.vue":()=>e(()=>import("./device-383e08a5.js"),["assets/device-383e08a5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./varta/varta/device.vue":()=>e(()=>import("./device-b119076e.js"),["assets/device-b119076e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./varta/varta/inverter.vue":()=>e(()=>import("./inverter-4272ff71.js"),["assets/inverter-4272ff71.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./victron/victron/bat.vue":()=>e(()=>import("./bat-dbd31d7f.js"),["assets/bat-dbd31d7f.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./victron/victron/counter.vue":()=>e(()=>import("./counter-9aae6b3e.js"),["assets/counter-9aae6b3e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./victron/victron/device.vue":()=>e(()=>import("./device-70c29a17.js"),["assets/device-70c29a17.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./victron/victron/inverter.vue":()=>e(()=>import("./inverter-09d7efba.js"),["assets/inverter-09d7efba.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./vzlogger/vzlogger/counter.vue":()=>e(()=>import("./counter-0b772c20.js"),["assets/counter-0b772c20.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./vzlogger/vzlogger/device.vue":()=>e(()=>import("./device-225f64e5.js"),["assets/device-225f64e5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./vzlogger/vzlogger/inverter.vue":()=>e(()=>import("./inverter-280fc766.js"),["assets/inverter-280fc766.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./youless/youless/device.vue":()=>e(()=>import("./device-54bd57ba.js"),["assets/device-54bd57ba.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./youless/youless/inverter.vue":()=>e(()=>import("./inverter-3c1b86b2.js"),["assets/inverter-3c1b86b2.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.device.vendor}/${this.device.type}/${this.component.type}.vue`),errorComponent:se}):z({loader:()=>x(Object.assign({"./algodue/algodue/device.vue":()=>e(()=>import("./device-87950857.js"),["assets/device-87950857.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./alpha_ess/alpha_ess/device.vue":()=>e(()=>import("./device-8c48e19c.js"),["assets/device-8c48e19c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./ampere/ampere/device.vue":()=>e(()=>import("./device-69d484dc.js"),["assets/device-69d484dc.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./avm/avm/device.vue":()=>e(()=>import("./device-f3564d79.js"),["assets/device-f3564d79.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./azzurro_zcs/azzurro_zcs/device.vue":()=>e(()=>import("./device-8e1ca3b6.js"),["assets/device-8e1ca3b6.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./batterx/batterx/device.vue":()=>e(()=>import("./device-04c35d6b.js"),["assets/device-04c35d6b.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./benning/benning/device.vue":()=>e(()=>import("./device-5cd242bf.js"),["assets/device-5cd242bf.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./byd/byd/device.vue":()=>e(()=>import("./device-afea5820.js"),["assets/device-afea5820.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./carlo_gavazzi/carlo_gavazzi/device.vue":()=>e(()=>import("./device-53ae7640.js"),["assets/device-53ae7640.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./deye/deye/device.vue":()=>e(()=>import("./device-72eb4453.js"),["assets/device-72eb4453.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./discovergy/discovergy/device.vue":()=>e(()=>import("./device-16e005d5.js"),["assets/device-16e005d5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./e3dc/e3dc/device.vue":()=>e(()=>import("./device-aa40f40e.js"),["assets/device-aa40f40e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./enphase/enphase/device.vue":()=>e(()=>import("./device-29966a32.js"),["assets/device-29966a32.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fems/fems/device.vue":()=>e(()=>import("./device-5f077938.js"),["assets/device-5f077938.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fox_ess/fox_ess/device.vue":()=>e(()=>import("./device-079f5cdc.js"),["assets/device-079f5cdc.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./fronius/fronius/device.vue":()=>e(()=>import("./device-32b32d79.js"),["assets/device-32b32d79.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/http/device.vue":()=>e(()=>import("./device-53266948.js"),["assets/device-53266948.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/json/device.vue":()=>e(()=>import("./device-18442843.js"),["assets/device-18442843.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generic/mqtt/device.vue":()=>e(()=>import("./device-60803ee4.js"),["assets/device-60803ee4.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./good_we/good_we/device.vue":()=>e(()=>import("./device-32daf8c4.js"),["assets/device-32daf8c4.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./growatt/growatt/device.vue":()=>e(()=>import("./device-9b32a0e5.js"),["assets/device-9b32a0e5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei/device.vue":()=>e(()=>import("./device-68afe813.js"),["assets/device-68afe813.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./huawei/huawei_smartlogger/device.vue":()=>e(()=>import("./device-65767a9c.js"),["assets/device-65767a9c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./janitza/janitza/device.vue":()=>e(()=>import("./device-ef0c1ebd.js"),["assets/device-ef0c1ebd.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kaco/kaco_tx/device.vue":()=>e(()=>import("./device-e3d4ebdd.js"),["assets/device-e3d4ebdd.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_piko/device.vue":()=>e(()=>import("./device-0e3564cf.js"),["assets/device-0e3564cf.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_piko_old/device.vue":()=>e(()=>import("./device-94881378.js"),["assets/device-94881378.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_plenticore/device.vue":()=>e(()=>import("./device-79c9c89c.js"),["assets/device-79c9c89c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_sem/device.vue":()=>e(()=>import("./device-1041d4f9.js"),["assets/device-1041d4f9.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./kostal/kostal_steca/device.vue":()=>e(()=>import("./device-23d9f519.js"),["assets/device-23d9f519.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./lg/lg/device.vue":()=>e(()=>import("./device-8a02bf9e.js"),["assets/device-8a02bf9e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mtec/mtec/device.vue":()=>e(()=>import("./device-f42f3b17.js"),["assets/device-f42f3b17.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./mystrom/mystrom/device.vue":()=>e(()=>import("./device-8677c7f9.js"),["assets/device-8677c7f9.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./nibe/nibe/device.vue":()=>e(()=>import("./device-429bda33.js"),["assets/device-429bda33.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./opendtu/opendtu/device.vue":()=>e(()=>import("./device-64d52b78.js"),["assets/device-64d52b78.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./openwb/openwb_flex/device.vue":()=>e(()=>import("./device-214978b0.js"),["assets/device-214978b0.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./orno/orno/device.vue":()=>e(()=>import("./device-3dfd4984.js"),["assets/device-3dfd4984.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerdog/powerdog/device.vue":()=>e(()=>import("./device-bb4ff5b1.js"),["assets/device-bb4ff5b1.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./powerfox/powerfox/device.vue":()=>e(()=>import("./device-df9a450a.js"),["assets/device-df9a450a.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./qcells/qcells/device.vue":()=>e(()=>import("./device-a07b3e3d.js"),["assets/device-a07b3e3d.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./rct/rct/device.vue":()=>e(()=>import("./device-43ea3db6.js"),["assets/device-43ea3db6.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./saxpower/saxpower/device.vue":()=>e(()=>import("./device-ec276f96.js"),["assets/device-ec276f96.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./shelly/shelly/device.vue":()=>e(()=>import("./device-dd870d85.js"),["assets/device-dd870d85.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./siemens/siemens/device.vue":()=>e(()=>import("./device-12a7dbac.js"),["assets/device-12a7dbac.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./siemens/siemens_sentron/device.vue":()=>e(()=>import("./device-e96fb3a1.js"),["assets/device-e96fb3a1.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sigenergy/sigenergy/device.vue":()=>e(()=>import("./device-6d6283ca.js"),["assets/device-6d6283ca.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_boy/device.vue":()=>e(()=>import("./device-01cc831a.js"),["assets/device-01cc831a.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_sunny_island/device.vue":()=>e(()=>import("./device-c5d84904.js"),["assets/device-c5d84904.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sma/sma_webbox/device.vue":()=>e(()=>import("./device-4216efb1.js"),["assets/device-4216efb1.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smart_me/smart_me/device.vue":()=>e(()=>import("./device-3ffc8ac2.js"),["assets/device-3ffc8ac2.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./smartfox/smartfox/device.vue":()=>e(()=>import("./device-779403a1.js"),["assets/device-779403a1.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sofar/sofar/device.vue":()=>e(()=>import("./device-b9725af4.js"),["assets/device-b9725af4.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_log/solar_log/device.vue":()=>e(()=>import("./device-5d2a3e3a.js"),["assets/device-5d2a3e3a.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_view/solar_view/device.vue":()=>e(()=>import("./device-e210f928.js"),["assets/device-e210f928.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_watt/solar_watt/device.vue":()=>e(()=>import("./device-4bc532b0.js"),["assets/device-4bc532b0.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solar_world/solar_world/device.vue":()=>e(()=>import("./device-b860ea67.js"),["assets/device-b860ea67.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solaredge/solaredge/device.vue":()=>e(()=>import("./device-de7086f5.js"),["assets/device-de7086f5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solarmax/solarmax/device.vue":()=>e(()=>import("./device-42a91b6b.js"),["assets/device-42a91b6b.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solax/solax/device.vue":()=>e(()=>import("./device-c4b87c43.js"),["assets/device-c4b87c43.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./solis/solis/device.vue":()=>e(()=>import("./device-41905c43.js"),["assets/device-41905c43.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sonnen/sonnenbatterie/device.vue":()=>e(()=>import("./device-5aa89219.js"),["assets/device-5aa89219.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./studer/studer/device.vue":()=>e(()=>import("./device-4cc9719a.js"),["assets/device-4cc9719a.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sungrow/sungrow/device.vue":()=>e(()=>import("./device-722e0495.js"),["assets/device-722e0495.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./sunways/sunways/device.vue":()=>e(()=>import("./device-465f5d76.js"),["assets/device-465f5d76.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./tasmota/tasmota/device.vue":()=>e(()=>import("./device-e2624d17.js"),["assets/device-e2624d17.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./tesla/tesla/device.vue":()=>e(()=>import("./device-126f751b.js"),["assets/device-126f751b.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./thermia/thermia/device.vue":()=>e(()=>import("./device-a75bb0fd.js"),["assets/device-a75bb0fd.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./upower/upower/device.vue":()=>e(()=>import("./device-383e08a5.js"),["assets/device-383e08a5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./varta/varta/device.vue":()=>e(()=>import("./device-b119076e.js"),["assets/device-b119076e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./victron/victron/device.vue":()=>e(()=>import("./device-70c29a17.js"),["assets/device-70c29a17.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./vzlogger/vzlogger/device.vue":()=>e(()=>import("./device-225f64e5.js"),["assets/device-225f64e5.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./youless/youless/device.vue":()=>e(()=>import("./device-54bd57ba.js"),["assets/device-54bd57ba.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.device.vendor}/${this.device.type}/device.vue`),errorComponent:_e})},updateConfiguration(t){this.$emit("update:configuration",t)}}};function me(t,o,i,m,s,n){return v(),E(Z(n.getComponent()),{device:i.device,component:i.component,configuration:i.component?i.component.configuration:i.device.configuration,"device-id":i.device.id,"device-type":i.device.type,"component-id":i.component?i.component.id:void 0,"component-type":i.component?i.component.type:void 0,"onUpdate:configuration":o[0]||(o[0]=l=>n.updateConfiguration(l))},null,40,["device","component","configuration","device-id","device-type","component-id","component-type"])}const pe=I(ae,[["render",me],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbConfigProxy.vue"]]);S.add(U,q,G,N,K,F,H);const le={name:"OpenwbHardwareInstallationView",components:{FontAwesomeIcon:$,OpenwbConfigProxy:pe},mixins:[J],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["sendCommand","save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/get/hierarchy","openWB/system/device/+/config","openWB/system/device/+/component/+/config","openWB/system/configurable/devices_components"],selectedVendor:void 0,deviceToAdd:void 0,showDeviceRemoveModal:!1,modalDevice:void 0,modalDeviceName:"",componentToAdd:[],showComponentRemoveModal:!1,modalComponent:void 0,modalComponentName:""}},computed:{installedDevices:{get(){return this.getWildcardTopics("openWB/system/device/+/config")}},installedComponents:{get(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")}},vendorList:{get(){return this.$store.state.mqtt["openWB/system/configurable/devices_components"]===void 0?[]:Object.entries(this.$store.state.mqtt["openWB/system/configurable/devices_components"]).map(([t,o])=>({label:o.group_name,options:Object.entries(o.vendors).map(([i,m])=>({value:[t,i],text:m.vendor_name})).sort((i,m)=>i.text.localeCompare(m.text))})).sort((t,o)=>-t.label.localeCompare(o.label))}},deviceList:{get(){if(this.selectedVendor===void 0)return[];let[t,o]=this.selectedVendor;return Object.entries(this.$store.state.mqtt["openWB/system/configurable/devices_components"][t].vendors[o].devices).map(([i,m])=>({value:[o,i],text:m.device_name})).sort((i,m)=>i.text.localeCompare(m.text))}}},methods:{getComponentTypeClass(t){return t.match(/^(.+_)?counter(_.+)?$/)?"danger":t.match(/^(.+_)?inverter(_.+)?$/)?"success":t.match(/^(.+_)?bat(_.+)?$/)?"warning":"dark"},getComponentTypeIcon(t){return t.match(/^(.+_)?counter(_.+)?$/)?["fas","fa-gauge-high"]:t.match(/^(.+_)?inverter(_.+)?$/)?["fas","fa-solar-panel"]:t.match(/^(.+_)?bat(_.+)?$/)?["fas","fa-car-battery"]:["fas","fa-microchip"]},getMyInstalledComponents(t){return this.getWildcardTopics("openWB/system/device/"+t+"/component/+/config")},deviceHasConfiguredComponents(t){return Object.keys(this.getMyInstalledComponents(t)).length>0},addDevice(){this.$emit("sendCommand",{command:"addDevice",data:{vendor:this.deviceToAdd[0],type:this.deviceToAdd[1]}})},removeDeviceModal(t,o,i){i.stopPropagation(),this.modalDevice=t,this.modalDeviceName=o,this.showDeviceRemoveModal=!0},removeDevice(t){this.showDeviceRemoveModal=!1,t=="confirm"&&this.$emit("sendCommand",{command:"removeDevice",data:{id:this.modalDevice}})},addComponent(t,o,i,m){this.$emit("sendCommand",{command:"addComponent",data:{deviceId:t,deviceType:i,deviceVendor:o,type:m}})},removeComponentModal(t,o,i,m,s){s.stopPropagation(),this.modalComponent={deviceId:t,id:o,type:i},this.modalComponentName=m,this.showComponentRemoveModal=!0},removeComponent(t){this.showComponentRemoveModal=!1,t=="confirm"&&this.$emit("sendCommand",{command:"removeComponent",data:this.modalComponent})},getComponentList(t,o){if(t===void 0||o===void 0)return[];let i=[];return Object.values(this.$store.state.mqtt["openWB/system/configurable/devices_components"]).every(m=>m.vendors[t]!==void 0?(m.vendors[t].devices[o]!==void 0&&(i=Object.entries(m.vendors[t].devices[o].components).map(([n,l])=>({value:n,text:l.component_name}))),!1):!0),i},updateConfiguration(t,o){console.debug("updateConfiguration",t,o),this.updateState(t,o.value,o.object)}}},ce={class:"hardwareInstallation"},Ee={name:"hardwareInstallationForm"},ge={key:0},fe={key:1},Ve={key:1},Oe={key:0};function Te(t,o,i,m,s,n){const l=p("openwb-base-modal-dialog"),b=p("router-link"),T=p("openwb-base-alert"),A=p("font-awesome-icon"),D=p("openwb-base-avatar"),P=p("openwb-base-text-input"),C=p("openwb-config-proxy"),M=p("openwb-base-heading"),w=p("openwb-base-card"),y=p("openwb-base-select-input"),j=p("openwb-base-submit-buttons");return v(),g(L,null,[u(l,{show:s.showDeviceRemoveModal,title:"Gerät löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:n.removeDevice},{default:r(()=>[d(' Wollen Sie das Gerät "'+V(s.modalDeviceName)+'" inklusive aller Komponenten wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),u(l,{show:s.showComponentRemoveModal,title:"Komponente löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:n.removeComponent},{default:r(()=>[d(' Wollen Sie die Komponente "'+V(s.modalComponentName)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),c("div",ce,[c("form",Ee,[i.installAssistantActive?R("",!0):(v(),E(T,{key:0,subtype:"info"},{default:r(()=>[o[7]||(o[7]=d(" Wenn neue Komponenten - insbesondere Zähler - konfiguriert wurden, ist auch das ",-1)),u(b,{to:"/LoadManagementConfiguration"},{default:r(()=>o[6]||(o[6]=[d(" Lastmanagement ",-1)])),_:1,__:[6]}),o[8]||(o[8]=d(" zu prüfen!",-1)),o[9]||(o[9]=c("br",null,null,-1)),o[10]||(o[10]=d(" Je nach Hersteller muss eventuell die Kommunikation im Wechselrichter freigegeben werden (z.B. Aktivierung Modbus TCP, Portfreigaben o.Ä.) ",-1))]),_:1,__:[7,8,9,10]})),u(w,{title:"Geräte und Komponenten"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(v(),g("div",ge,[u(T,{subtype:"info"},{default:r(()=>o[11]||(o[11]=[d(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[11]})])):(v(),g("div",fe,[(v(!0),g(L,null,k(n.installedDevices,(_,h)=>(v(),E(w,{key:h,collapsible:!0,collapsed:!0,subtype:"dark"},{header:r(()=>[u(A,{icon:["fas","network-wired"]}),d(" "+V(_==null?void 0:_.name),1)]),actions:r(a=>[a.collapsed?(v(),g("div",Ve,[(v(!0),g(L,null,k(n.getMyInstalledComponents(_==null?void 0:_.id),f=>(v(),E(D,{key:f.id,class:Y("ml-1 bg-"+n.getComponentTypeClass(f.type))},{default:r(()=>[u(A,{icon:n.getComponentTypeIcon(f.type)},null,8,["icon"])]),_:2},1032,["class"]))),128))])):(v(),E(D,{key:0,class:"bg-danger clickable",onClick:f=>n.removeDeviceModal(_==null?void 0:_.id,_==null?void 0:_.name,f)},{default:r(()=>[u(A,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:r(()=>[u(P,{title:"Bezeichnung",subtype:"text","model-value":_==null?void 0:_.name,"onUpdate:modelValue":a=>t.updateState(h,a,"name")},null,8,["model-value","onUpdate:modelValue"]),o[19]||(o[19]=c("hr",null,null,-1)),u(C,{device:_,"onUpdate:configuration":a=>n.updateConfiguration(h,a)},null,8,["device","onUpdate:configuration"]),o[20]||(o[20]=c("hr",null,null,-1)),u(M,null,{default:r(()=>[...o[12]||(o[12]=[d("Komponenten",-1)])]),_:1,__:[12]}),n.deviceHasConfiguredComponents(_==null?void 0:_.id)?R("",!0):(v(),E(T,{key:0,subtype:"warning"},{default:r(()=>[...o[13]||(o[13]=[d(" Es wurden noch keine Komponenten zu diesem Gerät angelegt. ",-1)])]),_:1,__:[13]})),(v(!0),g(L,null,k(n.getMyInstalledComponents(_.id),(a,f)=>(v(),E(w,{key:a.id,collapsible:!0,collapsed:!0,subtype:n.getComponentTypeClass(a.type)},{header:r(()=>[u(A,{icon:n.getComponentTypeIcon(a.type)},null,8,["icon"]),d(" "+V(a.name),1)]),actions:r(O=>[O.collapsed?R("",!0):(v(),E(D,{key:0,class:"bg-danger clickable",onClick:W=>n.removeComponentModal(_.id,a.id,a.type,a.name,W)},{default:r(()=>[u(A,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:r(()=>[u(P,{title:"Bezeichnung",subtype:"text","model-value":a.name,"onUpdate:modelValue":O=>t.updateState(f,O,"name")},null,8,["model-value","onUpdate:modelValue"]),u(P,{title:"Hersteller",subtype:"text","model-value":a.info.manufacturer,"onUpdate:modelValue":O=>t.updateState(f,O,"info.manufacturer")},{help:r(()=>[...o[14]||(o[14]=[d(" Optional: zusätzliche Information für den Systembericht. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),u(P,{title:"Modell",subtype:"text","model-value":a.info.model,"onUpdate:modelValue":O=>t.updateState(f,O,"info.model")},{help:r(()=>[...o[15]||(o[15]=[d(" Optional: zusätzliche Information für den Systembericht. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o[16]||(o[16]=c("hr",null,null,-1)),u(C,{device:_,component:a,"onUpdate:configuration":O=>n.updateConfiguration(f,O)},null,8,["device","component","onUpdate:configuration"])]),_:2,__:[16]},1032,["subtype"]))),128)),o[21]||(o[21]=c("hr",null,null,-1)),n.getComponentList(_.vendor,_.type).length?(v(),E(y,{key:1,title:"Verfügbare Komponenten","not-selected":"Bitte auswählen",options:n.getComponentList(_.vendor,_.type),"model-value":s.componentToAdd[_.id],"add-button":!0,"onUpdate:modelValue":a=>s.componentToAdd[_.id]=a,"onInput:add":a=>n.addComponent(_.id,_.vendor,_.type,s.componentToAdd[_.id])},{help:r(()=>[...o[17]||(o[17]=[d(" Bitte eine Komponente auswählen, die hinzugefügt werden soll. Für jeden Datensatz, z.B. Wechselrichter- und Batteriedaten, muss eine Wechselrichter- und eine Batteriekomponente hinzugefügt werden. ",-1)])]),_:2},1032,["options","model-value","onUpdate:modelValue","onInput:add"])):(v(),E(T,{key:2,subtype:"info"},{default:r(()=>[...o[18]||(o[18]=[d(" Dieses System bietet keine Komponenten zur Installation an. ",-1)])]),_:1,__:[18]}))]),_:2,__:[19,20,21]},1024))),128)),Object.keys(n.installedDevices).length>0?(v(),g("hr",Oe)):R("",!0),u(y,{modelValue:s.selectedVendor,"onUpdate:modelValue":o[0]||(o[0]=_=>s.selectedVendor=_),title:"Hersteller","not-selected":"Bitte auswählen",groups:n.vendorList},null,8,["modelValue","groups"]),u(y,{modelValue:s.deviceToAdd,"onUpdate:modelValue":[o[1]||(o[1]=_=>s.deviceToAdd=_),o[2]||(o[2]=_=>s.deviceToAdd=_)],title:"Verfügbare Geräte","not-selected":"Bitte auswählen",disabled:s.selectedVendor===void 0,options:n.deviceList,"model-value":s.deviceToAdd,"add-button":!0,"onInput:add":n.addDevice},{help:r(()=>o[22]||(o[22]=[c("p",null,[d(' Die openWB-Regelung ist auf Werte von Messpunkten (Zähler, Energy Meter usw.) angewiesen. Hierfür werden "Geräte" und "Komponenten" verwendet.'),c("br"),d(' Ein "Gerät" wird hierbei durch seine Verbindungseinstellungen (z.B. IP-Adresse) spezifiziert (häufig durch manuelle Eingabe oder manchmal automatisch ermittelt) und kann über mehrere untergeordnete "Komponenten" verfügen, z.B. einen Messpunkt für PV-Erzeugung, einen Messpunkt für Netzeinspeisung/-bezug am EVU-Punkt usw.. Ein "Gerät" bedingt somit immer mindestens eine zugehörige "Komponente". ')],-1),c("p",null,[d(' Bsp: Werden die Werte von verschiedenen Messpunkten (z.B. PV und EVU) über die gleiche IP-Adresse abgefragt, wird dafür ein "Gerät" mit zwei "Komponenten" für PV- und EVU- Messpunkt angelegt.'),c("br"),d(' Verfügt dagegen jeder Messpunkt über eine eigene IP-Adresse, wird jeder Messpunkt als eigenes "Gerät" mit nur einer "Komponente" angelegt. ')],-1),c("p",null,' Das "Gerät" wird in der Dropdown-Liste ausgewählt und mit "+" der Regelung hinzugefügt. Im Anschluss erfolgt die Konfiguration des "Gerätes" innerhalb des schwarzen "Geräte"-Reiters. ',-1)])),_:1},8,["modelValue","disabled","options","model-value","onInput:add"])]))]),_:1}),u(j,{"form-name":"hardwareInstallationForm",onSave:o[3]||(o[3]=_=>t.$emit("save")),onReset:o[4]||(o[4]=_=>t.$emit("reset")),onDefaults:o[5]||(o[5]=_=>t.$emit("defaults"))})])])],64)}const Ie=I(le,[["render",Te],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/HardwareInstallation.vue"]]),Le=Object.freeze(Object.defineProperty({__proto__:null,default:Ie},Symbol.toStringTag,{value:"Module"}));export{re as C,B as D,Ie as H,Le as a}; diff --git a/web/settings/assets/InstallAssistant-928c3063.js b/web/settings/assets/InstallAssistant-928c3063.js new file mode 100644 index 0000000000..944d36cf99 --- /dev/null +++ b/web/settings/assets/InstallAssistant-928c3063.js @@ -0,0 +1 @@ +import{C as r,_ as t}from"./index-eccf5556.js";import{_}from"./dynamic-import-helper-be004503.js";import{_ as m,a2 as p,u as d,l as i,m as u,G as A,E as v,x as E,a3 as I,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";const P={name:"InstallAssistantView",mixins:[r],emits:["sendCommand","save","reset","defaults"],data(){return{currentPage:0,lastPage:10,showEndAssistantModal:!1}},methods:{getInstallAssistantStepComponent(){return console.debug(`loading assistant page: ${this.currentPage}`),p({loader:()=>_(Object.assign({"../components/install_assistant/InstallAssistantStep0.vue":()=>t(()=>import("./InstallAssistantStep0-05f2a947.js"),["assets/InstallAssistantStep0-05f2a947.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-71d42fdc.js","assets/InstallAssistantStepTemplate-930e3c07.css"]),"../components/install_assistant/InstallAssistantStep1.vue":()=>t(()=>import("./InstallAssistantStep1-eae371cf.js"),["assets/InstallAssistantStep1-eae371cf.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-71d42fdc.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/DataManagement-3531e291.js","assets/dynamic-import-helper-be004503.js"]),"../components/install_assistant/InstallAssistantStep10.vue":()=>t(()=>import("./InstallAssistantStep10-f190b3e4.js"),["assets/InstallAssistantStep10-f190b3e4.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-71d42fdc.js","assets/InstallAssistantStepTemplate-930e3c07.css"]),"../components/install_assistant/InstallAssistantStep2.vue":()=>t(()=>import("./InstallAssistantStep2-007a2666.js"),["assets/InstallAssistantStep2-007a2666.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-71d42fdc.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/System-186920b0.js","assets/System-f301c290.css"]),"../components/install_assistant/InstallAssistantStep3.vue":()=>t(()=>import("./InstallAssistantStep3-62488b7c.js"),["assets/InstallAssistantStep3-62488b7c.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-71d42fdc.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/GeneralConfig-3d94b7eb.js","assets/dynamic-import-helper-be004503.js"]),"../components/install_assistant/InstallAssistantStep4.vue":()=>t(()=>import("./InstallAssistantStep4-06ee63b5.js"),["assets/InstallAssistantStep4-06ee63b5.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-71d42fdc.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/ChargePointInstallation-9345f83e.js","assets/dynamic-import-helper-be004503.js","assets/ChargePointInstallation-7b9399a8.css"]),"../components/install_assistant/InstallAssistantStep5.vue":()=>t(()=>import("./InstallAssistantStep5-e6bd1410.js"),["assets/InstallAssistantStep5-e6bd1410.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-71d42fdc.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/HardwareInstallation-0c77715a.js","assets/dynamic-import-helper-be004503.js"]),"../components/install_assistant/InstallAssistantStep6.vue":()=>t(()=>import("./InstallAssistantStep6-8a3f6b5b.js"),["assets/InstallAssistantStep6-8a3f6b5b.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-71d42fdc.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/ChargePointInstallation-9345f83e.js","assets/dynamic-import-helper-be004503.js","assets/ChargePointInstallation-7b9399a8.css"]),"../components/install_assistant/InstallAssistantStep7.vue":()=>t(()=>import("./InstallAssistantStep7-42b4a6af.js"),["assets/InstallAssistantStep7-42b4a6af.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-71d42fdc.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/LoadManagementConfig-adf5f944.js","assets/OpenwbSortableList-e9396362.js","assets/OpenwbSortableList-7ba533e4.css"]),"../components/install_assistant/InstallAssistantStep8.vue":()=>t(()=>import("./InstallAssistantStep8-b00d87de.js"),["assets/InstallAssistantStep8-b00d87de.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-71d42fdc.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/VehicleConfig-44d8bbb2.js","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"../components/install_assistant/InstallAssistantStep9.vue":()=>t(()=>import("./InstallAssistantStep9-e3c563a2.js"),["assets/InstallAssistantStep9-e3c563a2.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-71d42fdc.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/DataManagement-3531e291.js","assets/dynamic-import-helper-be004503.js"]),"../components/install_assistant/InstallAssistantStepTemplate.vue":()=>t(()=>import("./InstallAssistantStepTemplate-71d42fdc.js"),["assets/InstallAssistantStepTemplate-71d42fdc.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-930e3c07.css"])}),`../components/install_assistant/InstallAssistantStep${this.currentPage}.vue`)})},switchPage(s){s>=0&&s<=this.lastPage?this.currentPage=s:console.error(`invalid assistant page number: ${s}`)},endAssistantModal(){this.currentPage!=this.lastPage?this.showEndAssistantModal=!0:this.endAssistant("confirm")},endAssistant(s){this.showEndAssistantModal=!1,s=="confirm"&&(this.updateState("openWB/system/installAssistantDone",!0),this.$root.doPublish("openWB/set/system/installAssistantDone",!0),this.$router.push("/Status"))}}};function S(s,e,f,g,o,n){const l=d("openwb-base-modal-dialog");return i(),u("div",null,[A(l,{show:o.showEndAssistantModal,title:"Assistent beenden",subtype:"danger",buttons:[{text:"Beenden",event:"confirm",subtype:"danger"}],onModalResult:n.endAssistant},{default:v(()=>e[4]||(e[4]=[c(" Wollen Sie den Assistenten wirklich vorzeitig beenden? ",-1)])),_:1,__:[4]},8,["show","onModalResult"]),(i(),E(I(n.getInstallAssistantStepComponent()),{onSendCommand:e[0]||(e[0]=a=>s.$emit("sendCommand",a)),onSave:e[1]||(e[1]=a=>s.$emit("save")),onReset:e[2]||(e[2]=a=>s.$emit("reset")),onDefaults:e[3]||(e[3]=a=>s.$emit("defaults")),onSwitchPage:n.switchPage,onEndAssistant:n.endAssistantModal},null,40,["onSwitchPage","onEndAssistant"]))])}const L=m(P,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/InstallAssistant.vue"]]);export{L as default}; diff --git a/web/settings/assets/InstallAssistant-ed1cd3a8.js b/web/settings/assets/InstallAssistant-ed1cd3a8.js deleted file mode 100644 index c9607a119d..0000000000 --- a/web/settings/assets/InstallAssistant-ed1cd3a8.js +++ /dev/null @@ -1 +0,0 @@ -import{C as r,_ as t}from"./index-93388667.js";import{_}from"./dynamic-import-helper-be004503.js";import{_ as m,a2 as p,u as d,l as i,m as u,G as A,E as v,x as E,a3 as I,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";const P={name:"InstallAssistantView",mixins:[r],emits:["sendCommand","save","reset","defaults"],data(){return{currentPage:0,lastPage:10,showEndAssistantModal:!1}},methods:{getInstallAssistantStepComponent(){return console.debug(`loading assistant page: ${this.currentPage}`),p({loader:()=>_(Object.assign({"../components/install_assistant/InstallAssistantStep0.vue":()=>t(()=>import("./InstallAssistantStep0-6b395106.js"),["assets/InstallAssistantStep0-6b395106.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-2f5f6eeb.js","assets/InstallAssistantStepTemplate-930e3c07.css"]),"../components/install_assistant/InstallAssistantStep1.vue":()=>t(()=>import("./InstallAssistantStep1-a75ec826.js"),["assets/InstallAssistantStep1-a75ec826.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-2f5f6eeb.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/DataManagement-93d69162.js","assets/dynamic-import-helper-be004503.js"]),"../components/install_assistant/InstallAssistantStep10.vue":()=>t(()=>import("./InstallAssistantStep10-69c050c9.js"),["assets/InstallAssistantStep10-69c050c9.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-2f5f6eeb.js","assets/InstallAssistantStepTemplate-930e3c07.css"]),"../components/install_assistant/InstallAssistantStep2.vue":()=>t(()=>import("./InstallAssistantStep2-e75f7c72.js"),["assets/InstallAssistantStep2-e75f7c72.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-2f5f6eeb.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/System-47d1c8ae.js","assets/System-f301c290.css"]),"../components/install_assistant/InstallAssistantStep3.vue":()=>t(()=>import("./InstallAssistantStep3-2e61dfb6.js"),["assets/InstallAssistantStep3-2e61dfb6.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-2f5f6eeb.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/GeneralConfig-a1e6f160.js","assets/dynamic-import-helper-be004503.js"]),"../components/install_assistant/InstallAssistantStep4.vue":()=>t(()=>import("./InstallAssistantStep4-63a97cf8.js"),["assets/InstallAssistantStep4-63a97cf8.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-2f5f6eeb.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/ChargePointInstallation-34ff8e1d.js","assets/dynamic-import-helper-be004503.js","assets/ChargePointInstallation-7b9399a8.css"]),"../components/install_assistant/InstallAssistantStep5.vue":()=>t(()=>import("./InstallAssistantStep5-139d3e6e.js"),["assets/InstallAssistantStep5-139d3e6e.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-2f5f6eeb.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/HardwareInstallation-b7e2b58c.js","assets/dynamic-import-helper-be004503.js"]),"../components/install_assistant/InstallAssistantStep6.vue":()=>t(()=>import("./InstallAssistantStep6-05201b09.js"),["assets/InstallAssistantStep6-05201b09.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-2f5f6eeb.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/ChargePointInstallation-34ff8e1d.js","assets/dynamic-import-helper-be004503.js","assets/ChargePointInstallation-7b9399a8.css"]),"../components/install_assistant/InstallAssistantStep7.vue":()=>t(()=>import("./InstallAssistantStep7-9bbf3e73.js"),["assets/InstallAssistantStep7-9bbf3e73.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-2f5f6eeb.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/LoadManagementConfig-913bc596.js","assets/OpenwbSortableList-2a6a01cb.js","assets/OpenwbSortableList-7ba533e4.css"]),"../components/install_assistant/InstallAssistantStep8.vue":()=>t(()=>import("./InstallAssistantStep8-c4eebc60.js"),["assets/InstallAssistantStep8-c4eebc60.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-2f5f6eeb.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/VehicleConfig-28b52371.js","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"../components/install_assistant/InstallAssistantStep9.vue":()=>t(()=>import("./InstallAssistantStep9-63e25bb0.js"),["assets/InstallAssistantStep9-63e25bb0.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-2f5f6eeb.js","assets/InstallAssistantStepTemplate-930e3c07.css","assets/DataManagement-93d69162.js","assets/dynamic-import-helper-be004503.js"]),"../components/install_assistant/InstallAssistantStepTemplate.vue":()=>t(()=>import("./InstallAssistantStepTemplate-2f5f6eeb.js"),["assets/InstallAssistantStepTemplate-2f5f6eeb.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/InstallAssistantStepTemplate-930e3c07.css"])}),`../components/install_assistant/InstallAssistantStep${this.currentPage}.vue`)})},switchPage(s){s>=0&&s<=this.lastPage?this.currentPage=s:console.error(`invalid assistant page number: ${s}`)},endAssistantModal(){this.currentPage!=this.lastPage?this.showEndAssistantModal=!0:this.endAssistant("confirm")},endAssistant(s){this.showEndAssistantModal=!1,s=="confirm"&&(this.updateState("openWB/system/installAssistantDone",!0),this.$root.doPublish("openWB/set/system/installAssistantDone",!0),this.$router.push("/Status"))}}};function S(s,e,f,g,o,n){const l=d("openwb-base-modal-dialog");return i(),u("div",null,[A(l,{show:o.showEndAssistantModal,title:"Assistent beenden",subtype:"danger",buttons:[{text:"Beenden",event:"confirm",subtype:"danger"}],onModalResult:n.endAssistant},{default:v(()=>e[4]||(e[4]=[c(" Wollen Sie den Assistenten wirklich vorzeitig beenden? ",-1)])),_:1,__:[4]},8,["show","onModalResult"]),(i(),E(I(n.getInstallAssistantStepComponent()),{onSendCommand:e[0]||(e[0]=a=>s.$emit("sendCommand",a)),onSave:e[1]||(e[1]=a=>s.$emit("save")),onReset:e[2]||(e[2]=a=>s.$emit("reset")),onDefaults:e[3]||(e[3]=a=>s.$emit("defaults")),onSwitchPage:n.switchPage,onEndAssistant:n.endAssistantModal},null,40,["onSwitchPage","onEndAssistant"]))])}const L=m(P,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/InstallAssistant.vue"]]);export{L as default}; diff --git a/web/settings/assets/InstallAssistantStep0-6b395106.js b/web/settings/assets/InstallAssistantStep0-05f2a947.js similarity index 85% rename from web/settings/assets/InstallAssistantStep0-6b395106.js rename to web/settings/assets/InstallAssistantStep0-05f2a947.js index 8592e0a42a..50a308525b 100644 --- a/web/settings/assets/InstallAssistantStep0-6b395106.js +++ b/web/settings/assets/InstallAssistantStep0-05f2a947.js @@ -1 +1 @@ -import{C as u}from"./index-93388667.js";import d from"./InstallAssistantStepTemplate-2f5f6eeb.js";import{_ as p,u as i,l as m,x as g,E as a,G as h,B as f,A as t}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";const c={name:"InstallAssistantStep0",components:{InstallAssistantStepTemplate:d},mixins:[u],emits:["switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[],showModalWarning:!1}),methods:{requestNextPage(){this.showModalWarning=!0},nextPage(s){this.showModalWarning=!1,s==="confirm"&&this.$emit("switchPage",1)},previousPage(){},endAssistant(){this.$emit("endAssistant")}}};function b(s,e,A,w,P,n){const o=i("openwb-base-modal-dialog"),r=i("InstallAssistantStepTemplate");return m(),g(r,{title:"Start","hide-previous":!0,onNextPage:n.requestNextPage,onPreviousPage:n.previousPage,onEndAssistant:n.endAssistant},{content:a(()=>[h(o,{show:s.showModalWarning,title:"Achtung!",subtype:"danger",buttons:[{text:"Ok",event:"confirm",subtype:"success"}],onModalResult:e[0]||(e[0]=l=>n.nextPage(l))},{default:a(()=>e[1]||(e[1]=[f(" Bevor der Assistent gestartet wird, ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1)])),_:1,__:[1]},8,["show"]),e[2]||(e[2]=t("h2",null,"Vielen Dank, dass Du Dich für openWB entschieden hast.",-1)),e[3]||(e[3]=t("p",null,"Dieser Assistent führt Dich durch die Konfiguration der einzelnen Module:",-1)),e[4]||(e[4]=t("ol",null,[t("li",null,"Datensicherung der bestehenden Konfiguration"),t("li",null,"Aktualisierung des openWB-Systems"),t("li",null,"Allgemeine Einstellungen: Auswahl des Betriebsmodus primary (steuernd) bzw. secondary (gesteuerte WB)")],-1)),e[5]||(e[5]=t("p",null," Wird diese openWB als secondary betrieben, so werden nur die lokalen Ladepunkte eingerichtet. Im Betriebsmodus primary werden die folgenden zusätzlichen Schritte durchlaufen: ",-1)),e[6]||(e[6]=t("ol",{start:"4"},[t("li",null,"Energiesystem - Geräte und Komponenten einrichten"),t("li",null,"Einrichten der Ladepunkte (openWB als primary)"),t("li",null,"Konfiguration des Lastmanagements"),t("li",null,"Einrichten der Fahrzeuge"),t("li",null,"Datensicherung der neuen Konfiguration")],-1)),e[7]||(e[7]=t("p",null,"Danach ist die Grundkonfiguration abgeschlossen.",-1))]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const D=p(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep0.vue"]]);export{D as default}; +import{C as u}from"./index-eccf5556.js";import d from"./InstallAssistantStepTemplate-71d42fdc.js";import{_ as p,u as i,l as m,x as g,E as a,G as h,B as f,A as t}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";const c={name:"InstallAssistantStep0",components:{InstallAssistantStepTemplate:d},mixins:[u],emits:["switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[],showModalWarning:!1}),methods:{requestNextPage(){this.showModalWarning=!0},nextPage(s){this.showModalWarning=!1,s==="confirm"&&this.$emit("switchPage",1)},previousPage(){},endAssistant(){this.$emit("endAssistant")}}};function b(s,e,A,w,P,n){const o=i("openwb-base-modal-dialog"),r=i("InstallAssistantStepTemplate");return m(),g(r,{title:"Start","hide-previous":!0,onNextPage:n.requestNextPage,onPreviousPage:n.previousPage,onEndAssistant:n.endAssistant},{content:a(()=>[h(o,{show:s.showModalWarning,title:"Achtung!",subtype:"danger",buttons:[{text:"Ok",event:"confirm",subtype:"success"}],onModalResult:e[0]||(e[0]=l=>n.nextPage(l))},{default:a(()=>e[1]||(e[1]=[f(" Bevor der Assistent gestartet wird, ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1)])),_:1,__:[1]},8,["show"]),e[2]||(e[2]=t("h2",null,"Vielen Dank, dass Du Dich für openWB entschieden hast.",-1)),e[3]||(e[3]=t("p",null,"Dieser Assistent führt Dich durch die Konfiguration der einzelnen Module:",-1)),e[4]||(e[4]=t("ol",null,[t("li",null,"Datensicherung der bestehenden Konfiguration"),t("li",null,"Aktualisierung des openWB-Systems"),t("li",null,"Allgemeine Einstellungen: Auswahl des Betriebsmodus primary (steuernd) bzw. secondary (gesteuerte WB)")],-1)),e[5]||(e[5]=t("p",null," Wird diese openWB als secondary betrieben, so werden nur die lokalen Ladepunkte eingerichtet. Im Betriebsmodus primary werden die folgenden zusätzlichen Schritte durchlaufen: ",-1)),e[6]||(e[6]=t("ol",{start:"4"},[t("li",null,"Energiesystem - Geräte und Komponenten einrichten"),t("li",null,"Einrichten der Ladepunkte (openWB als primary)"),t("li",null,"Konfiguration des Lastmanagements"),t("li",null,"Einrichten der Fahrzeuge"),t("li",null,"Datensicherung der neuen Konfiguration")],-1)),e[7]||(e[7]=t("p",null,"Danach ist die Grundkonfiguration abgeschlossen.",-1))]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const D=p(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep0.vue"]]);export{D as default}; diff --git a/web/settings/assets/InstallAssistantStep1-a75ec826.js b/web/settings/assets/InstallAssistantStep1-eae371cf.js similarity index 75% rename from web/settings/assets/InstallAssistantStep1-a75ec826.js rename to web/settings/assets/InstallAssistantStep1-eae371cf.js index 6f36437083..c7ff8f90f6 100644 --- a/web/settings/assets/InstallAssistantStep1-a75ec826.js +++ b/web/settings/assets/InstallAssistantStep1-eae371cf.js @@ -1 +1 @@ -import{C as m}from"./index-93388667.js";import p from"./InstallAssistantStepTemplate-2f5f6eeb.js";import{D as l}from"./DataManagement-93d69162.js";import{_ as d,u as a,l as u,x as g,E as o,A as f,G as v}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const A={name:"InstallAssistantStep1",components:{InstallAssistantStepTemplate:p,DataManagement:l},mixins:[m],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",2)},previousPage(){this.$emit("switchPage",0)},endAssistant(){this.$emit("endAssistant")}}};function P(t,e,c,S,w,n){const i=a("DataManagement"),r=a("InstallAssistantStepTemplate");return u(),g(r,{title:"1. Datensicherung der bestehenden Konfiguration",onNextPage:n.nextPage,onPreviousPage:n.previousPage,onEndAssistant:n.endAssistant},{help:o(()=>e[4]||(e[4]=[f("p",null," Wir empfehlen an dieser Stelle eine Sicherung der openWB zu erstellen, auf welche später zurückgegriffen werden kann, insbesondere, wenn die openWB schon konfiguriert war und der Assistent nun erneut ausgeführt wird. ",-1)])),content:o(()=>[v(i,{"install-assistant-active":!0,"show-backup-cloud-section":!1,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const N=d(A,[["render",P],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep1.vue"]]);export{N as default}; +import{C as m}from"./index-eccf5556.js";import p from"./InstallAssistantStepTemplate-71d42fdc.js";import{D as l}from"./DataManagement-3531e291.js";import{_ as d,u as a,l as u,x as g,E as o,A as f,G as v}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const A={name:"InstallAssistantStep1",components:{InstallAssistantStepTemplate:p,DataManagement:l},mixins:[m],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",2)},previousPage(){this.$emit("switchPage",0)},endAssistant(){this.$emit("endAssistant")}}};function P(t,e,c,S,w,n){const i=a("DataManagement"),r=a("InstallAssistantStepTemplate");return u(),g(r,{title:"1. Datensicherung der bestehenden Konfiguration",onNextPage:n.nextPage,onPreviousPage:n.previousPage,onEndAssistant:n.endAssistant},{help:o(()=>e[4]||(e[4]=[f("p",null," Wir empfehlen an dieser Stelle eine Sicherung der openWB zu erstellen, auf welche später zurückgegriffen werden kann, insbesondere, wenn die openWB schon konfiguriert war und der Assistent nun erneut ausgeführt wird. ",-1)])),content:o(()=>[v(i,{"install-assistant-active":!0,"show-backup-cloud-section":!1,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const N=d(A,[["render",P],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep1.vue"]]);export{N as default}; diff --git a/web/settings/assets/InstallAssistantStep10-69c050c9.js b/web/settings/assets/InstallAssistantStep10-f190b3e4.js similarity index 75% rename from web/settings/assets/InstallAssistantStep10-69c050c9.js rename to web/settings/assets/InstallAssistantStep10-f190b3e4.js index 83ac509b18..af8cb45151 100644 --- a/web/settings/assets/InstallAssistantStep10-69c050c9.js +++ b/web/settings/assets/InstallAssistantStep10-f190b3e4.js @@ -1 +1 @@ -import{C as a}from"./index-93388667.js";import o from"./InstallAssistantStepTemplate-2f5f6eeb.js";import{_ as r,u as l,l as m,x as p,E as d,A as n}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";const u={name:"InstallAssistantStep10",components:{InstallAssistantStepTemplate:o},mixins:[a],emits:["switchPage","endAssistant","sendCommand"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){},previousPage(){this.$emit("switchPage",9)},sendCommand(t){this.$emit("sendCommand",t)},endAssistant(){this.$emit("endAssistant")}}};function g(t,s,c,f,A,e){const i=l("InstallAssistantStepTemplate");return m(),p(i,{title:"Abgeschlossen","hide-next":!0,onNextPage:e.nextPage,onPreviousPage:e.previousPage,onEndAssistant:e.endAssistant},{content:d(()=>s[0]||(s[0]=[n("h2",null,"Die Grundkonfiguration ist abgeschlossen.",-1),n("p",null," Die grundlegende Konfiguration der openWB ist abgeschlossen. Du wirst mit Beendigung dieses Assistenten auf die Statusseite weitergeleitet. Bitte überprüfe die dargestellten Informationen und passe bei Unstimmigkeiten die Einstellungen in den jeweiligen Konfigurationsseiten an (openWB -> Einstellungen -> Konfiguration). ",-1)])),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const w=r(u,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep10.vue"]]);export{w as default}; +import{C as a}from"./index-eccf5556.js";import o from"./InstallAssistantStepTemplate-71d42fdc.js";import{_ as r,u as l,l as m,x as p,E as d,A as n}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";const u={name:"InstallAssistantStep10",components:{InstallAssistantStepTemplate:o},mixins:[a],emits:["switchPage","endAssistant","sendCommand"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){},previousPage(){this.$emit("switchPage",9)},sendCommand(t){this.$emit("sendCommand",t)},endAssistant(){this.$emit("endAssistant")}}};function g(t,s,c,f,A,e){const i=l("InstallAssistantStepTemplate");return m(),p(i,{title:"Abgeschlossen","hide-next":!0,onNextPage:e.nextPage,onPreviousPage:e.previousPage,onEndAssistant:e.endAssistant},{content:d(()=>s[0]||(s[0]=[n("h2",null,"Die Grundkonfiguration ist abgeschlossen.",-1),n("p",null," Die grundlegende Konfiguration der openWB ist abgeschlossen. Du wirst mit Beendigung dieses Assistenten auf die Statusseite weitergeleitet. Bitte überprüfe die dargestellten Informationen und passe bei Unstimmigkeiten die Einstellungen in den jeweiligen Konfigurationsseiten an (openWB -> Einstellungen -> Konfiguration). ",-1)])),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const w=r(u,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep10.vue"]]);export{w as default}; diff --git a/web/settings/assets/InstallAssistantStep2-e75f7c72.js b/web/settings/assets/InstallAssistantStep2-007a2666.js similarity index 82% rename from web/settings/assets/InstallAssistantStep2-e75f7c72.js rename to web/settings/assets/InstallAssistantStep2-007a2666.js index e9d72ec349..f2b50934ba 100644 --- a/web/settings/assets/InstallAssistantStep2-e75f7c72.js +++ b/web/settings/assets/InstallAssistantStep2-007a2666.js @@ -1 +1 @@ -import{C as l}from"./index-93388667.js";import u from"./InstallAssistantStepTemplate-2f5f6eeb.js";import d from"./System-47d1c8ae.js";import{_ as p,u as a,l as f,x as g,E as o,A as s,G as A}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";const S={name:"InstallAssistantStep2",components:{InstallAssistantStepTemplate:u,SystemView:d},mixins:[l],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",3)},previousPage(){this.$emit("switchPage",1)},endAssistant(){this.$emit("endAssistant")}}};function c(t,e,w,v,k,i){const r=a("SystemView"),m=a("InstallAssistantStepTemplate");return f(),g(m,{title:"2. Aktualisierung des openWB-Systems",onNextPage:i.nextPage,onPreviousPage:i.previousPage,onEndAssistant:i.endAssistant},{help:o(()=>e[4]||(e[4]=[s("p",null," Bitte ein System-Update durchführen, um die Software auf den neuesten Stand der Features und Funktionen zu bringen. ",-1),s("p",null," Hierzu Versions-Informationen / Aktualisierung auswählen, Informationen aktualisieren klicken und falls ein Update verfügbar ist, wird der Update-Button grün (zum Update bereit). ",-1),s("p",null," Bei openWB-Systemen mit integriertem Display muss nach Zurücksetzen auf Werkseinstellungen oder nach Ausführen eines Updates das Display wieder eingeschaltet werden. ",-1),s("p",null,' Ein Klick auf "Änderungen" zeigt die Modifikationen. Ein Klick auf "Update" startet die Aktualisierung, welche auch einen automatischen Reboot initiiert (bitte ca. 5 Minuten warten). Danach muss der Assistent neu gestartet werden. ',-1)])),content:o(()=>[A(r,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=n=>t.$emit("sendCommand",n)),onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const U=p(S,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep2.vue"]]);export{U as default}; +import{C as l}from"./index-eccf5556.js";import u from"./InstallAssistantStepTemplate-71d42fdc.js";import d from"./System-186920b0.js";import{_ as p,u as a,l as f,x as g,E as o,A as s,G as A}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";const S={name:"InstallAssistantStep2",components:{InstallAssistantStepTemplate:u,SystemView:d},mixins:[l],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",3)},previousPage(){this.$emit("switchPage",1)},endAssistant(){this.$emit("endAssistant")}}};function c(t,e,w,v,k,i){const r=a("SystemView"),m=a("InstallAssistantStepTemplate");return f(),g(m,{title:"2. Aktualisierung des openWB-Systems",onNextPage:i.nextPage,onPreviousPage:i.previousPage,onEndAssistant:i.endAssistant},{help:o(()=>e[4]||(e[4]=[s("p",null," Bitte ein System-Update durchführen, um die Software auf den neuesten Stand der Features und Funktionen zu bringen. ",-1),s("p",null," Hierzu Versions-Informationen / Aktualisierung auswählen, Informationen aktualisieren klicken und falls ein Update verfügbar ist, wird der Update-Button grün (zum Update bereit). ",-1),s("p",null," Bei openWB-Systemen mit integriertem Display muss nach Zurücksetzen auf Werkseinstellungen oder nach Ausführen eines Updates das Display wieder eingeschaltet werden. ",-1),s("p",null,' Ein Klick auf "Änderungen" zeigt die Modifikationen. Ein Klick auf "Update" startet die Aktualisierung, welche auch einen automatischen Reboot initiiert (bitte ca. 5 Minuten warten). Danach muss der Assistent neu gestartet werden. ',-1)])),content:o(()=>[A(r,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=n=>t.$emit("sendCommand",n)),onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const U=p(S,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep2.vue"]]);export{U as default}; diff --git a/web/settings/assets/InstallAssistantStep3-2e61dfb6.js b/web/settings/assets/InstallAssistantStep3-62488b7c.js similarity index 84% rename from web/settings/assets/InstallAssistantStep3-2e61dfb6.js rename to web/settings/assets/InstallAssistantStep3-62488b7c.js index 019cc29cc7..82b42ebb36 100644 --- a/web/settings/assets/InstallAssistantStep3-2e61dfb6.js +++ b/web/settings/assets/InstallAssistantStep3-62488b7c.js @@ -1 +1 @@ -import{C as u}from"./index-93388667.js";import d from"./InstallAssistantStepTemplate-2f5f6eeb.js";import{G as m}from"./GeneralConfig-a1e6f160.js";import{_ as p,u as a,l as g,x as f,E as i,A as n,G as w}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const b={name:"InstallAssistantStep3",components:{InstallAssistantStepTemplate:d,GeneralConfigView:m},mixins:[u],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:["openWB/general/extern"]}),methods:{nextPage(){this.$emit("switchPage",this.$store.state.mqtt["openWB/general/extern"]?4:5)},previousPage(){this.$emit("switchPage",2)},endAssistant(){this.$emit("endAssistant")}}};function B(t,e,S,c,h,r){const o=a("GeneralConfigView"),l=a("InstallAssistantStepTemplate");return g(),f(l,{title:"3. Allgemeine Einstellungen: Auswahl des Betriebsmodus primary (steuernd) bzw. secondary (gesteuerte WB)",onNextPage:r.nextPage,onPreviousPage:r.previousPage,onEndAssistant:r.endAssistant},{help:i(()=>e[4]||(e[4]=[n("p",null," Hier wird abgefragt, ob Dein System mit mehreren openWBs oder nur mit einer openWB betrieben wird. Eine openWB kann andere openWBs steuern. ",-1),n("p",null,' Zuerst ist im Feld "Steuerungsmodus" festzulegen, ob die openWB als "steuernd" (primary) oder als ferngesteuert (secondary) arbeiten soll. Die Einstellung gilt für genau die WB, auf der aktuell konfiguriert wird (korrekte IP-Adresse beachten). ',-1),n("p",null," Eine openWB standalone hat keinen Ladepunkt und arbeitet nur als Steuerteil (primary). Eine openWB Standard(+), custom, Duo und Buchse können sowohl als steuernder primary oder als ferngesteuerte secondary betrieben werden (Duo mit 2 Ladepunkten). Eine openWB Pro und Satellit können nur als s.g. Ladepunkt genutzt werden und benötigen zwingend einen separaten primary als Steuerteil. ",-1),n("p",null,' Sofern openWB als Energiemanagementsystem für steuerbare Verbrauchseinrichtungen (SteuVE) gemäß §14a EnWG verwendet werden soll, so ist für die VNB-Signaleingänge die entsprechende Hardware auszuwählen. -> s. Beschreibung zu "Steuerbare Verbrauchseinrichtung". ',-1),n("p",{class:"font-weight-bold"},"Änderungen werden nur durch Klicken auf Speichern wirksam!",-1)])),content:i(()=>[w(o,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const x=p(b,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep3.vue"]]);export{x as default}; +import{C as u}from"./index-eccf5556.js";import d from"./InstallAssistantStepTemplate-71d42fdc.js";import{G as m}from"./GeneralConfig-3d94b7eb.js";import{_ as p,u as a,l as g,x as f,E as i,A as n,G as w}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const b={name:"InstallAssistantStep3",components:{InstallAssistantStepTemplate:d,GeneralConfigView:m},mixins:[u],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:["openWB/general/extern"]}),methods:{nextPage(){this.$emit("switchPage",this.$store.state.mqtt["openWB/general/extern"]?4:5)},previousPage(){this.$emit("switchPage",2)},endAssistant(){this.$emit("endAssistant")}}};function B(t,e,S,c,h,r){const o=a("GeneralConfigView"),l=a("InstallAssistantStepTemplate");return g(),f(l,{title:"3. Allgemeine Einstellungen: Auswahl des Betriebsmodus primary (steuernd) bzw. secondary (gesteuerte WB)",onNextPage:r.nextPage,onPreviousPage:r.previousPage,onEndAssistant:r.endAssistant},{help:i(()=>e[4]||(e[4]=[n("p",null," Hier wird abgefragt, ob Dein System mit mehreren openWBs oder nur mit einer openWB betrieben wird. Eine openWB kann andere openWBs steuern. ",-1),n("p",null,' Zuerst ist im Feld "Steuerungsmodus" festzulegen, ob die openWB als "steuernd" (primary) oder als ferngesteuert (secondary) arbeiten soll. Die Einstellung gilt für genau die WB, auf der aktuell konfiguriert wird (korrekte IP-Adresse beachten). ',-1),n("p",null," Eine openWB standalone hat keinen Ladepunkt und arbeitet nur als Steuerteil (primary). Eine openWB Standard(+), custom, Duo und Buchse können sowohl als steuernder primary oder als ferngesteuerte secondary betrieben werden (Duo mit 2 Ladepunkten). Eine openWB Pro und Satellit können nur als s.g. Ladepunkt genutzt werden und benötigen zwingend einen separaten primary als Steuerteil. ",-1),n("p",null,' Sofern openWB als Energiemanagementsystem für steuerbare Verbrauchseinrichtungen (SteuVE) gemäß §14a EnWG verwendet werden soll, so ist für die VNB-Signaleingänge die entsprechende Hardware auszuwählen. -> s. Beschreibung zu "Steuerbare Verbrauchseinrichtung". ',-1),n("p",{class:"font-weight-bold"},"Änderungen werden nur durch Klicken auf Speichern wirksam!",-1)])),content:i(()=>[w(o,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const x=p(b,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep3.vue"]]);export{x as default}; diff --git a/web/settings/assets/InstallAssistantStep4-63a97cf8.js b/web/settings/assets/InstallAssistantStep4-06ee63b5.js similarity index 83% rename from web/settings/assets/InstallAssistantStep4-63a97cf8.js rename to web/settings/assets/InstallAssistantStep4-06ee63b5.js index bc17e9701f..d91fae8dc8 100644 --- a/web/settings/assets/InstallAssistantStep4-63a97cf8.js +++ b/web/settings/assets/InstallAssistantStep4-06ee63b5.js @@ -1 +1 @@ -import{C as l}from"./index-93388667.js";import p from"./InstallAssistantStepTemplate-2f5f6eeb.js";import{b as u}from"./ChargePointInstallation-34ff8e1d.js";import{_ as m,u as a,l as g,x as f,E as o,A as n,G as w}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"InstallAssistantStep4",components:{InstallAssistantStepTemplate:p,ChargePointInstallationView:u},mixins:[l],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",9)},previousPage(){this.$emit("switchPage",3)},endAssistant(){this.$emit("endAssistant")}}};function h(t,e,k,B,v,i){const r=a("ChargePointInstallationView"),d=a("InstallAssistantStepTemplate");return g(),f(d,{title:"4. Einrichten der Ladepunkte (openWB als secondary)",onNextPage:i.nextPage,onPreviousPage:i.previousPage,onEndAssistant:i.endAssistant},{help:o(()=>e[4]||(e[4]=[n("p",null,' Diese hier vorzukonfigurierende openWB wurde als "secondary" eingestellt und wird von einer anderen openWB oder standalone ferngesteuert. ',-1),n("p",null," Bei vorkonfigurierten openWBs ist ab Werk bereits ein (zwei bei einer DUO) interner Ladepunkt eingetragen, es müssen keine weiteren Ladepunkte hinzugefügt werden. ",-1),n("p",null,' Tragen Sie unter Ladepunkte bei verfügbare Ladepunkte "Interne openWB" ein und wählen Sie die Bauart der openWB (z.B. openWB series 1/2 custom, Standard (+) oder Buchse) aus. ',-1),n("p",null," Wenn eine openWB Duo gewählt wird, so sind zwei Ladepunkte mit Ladepunkt-Nummer 1 und 2 zu konfigurieren. Bei der openWB Pro und Satellit sind keine Einstellungen notwendig. ",-1),n("p",null,"Weitere Einstellungen sind bei der Vorkonfiguration einer secondary nicht notwendig.",-1),n("p",null," Bitte lesen Sie auch die Hinweistexte, welche durch Klicken auf das Fragezeichensymbol erscheinen. Hier sind weiterführende Informationen zu den Eingabefeldern zu finden. ",-1),n("p",{class:"font-weight-bold"},"Änderungen werden nur durch Klicken auf Speichern wirksam!",-1)])),content:o(()=>[w(r,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const E=m(c,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep4.vue"]]);export{E as default}; +import{C as l}from"./index-eccf5556.js";import p from"./InstallAssistantStepTemplate-71d42fdc.js";import{b as u}from"./ChargePointInstallation-9345f83e.js";import{_ as m,u as a,l as g,x as f,E as o,A as n,G as w}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"InstallAssistantStep4",components:{InstallAssistantStepTemplate:p,ChargePointInstallationView:u},mixins:[l],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",9)},previousPage(){this.$emit("switchPage",3)},endAssistant(){this.$emit("endAssistant")}}};function h(t,e,k,B,v,i){const r=a("ChargePointInstallationView"),d=a("InstallAssistantStepTemplate");return g(),f(d,{title:"4. Einrichten der Ladepunkte (openWB als secondary)",onNextPage:i.nextPage,onPreviousPage:i.previousPage,onEndAssistant:i.endAssistant},{help:o(()=>e[4]||(e[4]=[n("p",null,' Diese hier vorzukonfigurierende openWB wurde als "secondary" eingestellt und wird von einer anderen openWB oder standalone ferngesteuert. ',-1),n("p",null," Bei vorkonfigurierten openWBs ist ab Werk bereits ein (zwei bei einer DUO) interner Ladepunkt eingetragen, es müssen keine weiteren Ladepunkte hinzugefügt werden. ",-1),n("p",null,' Tragen Sie unter Ladepunkte bei verfügbare Ladepunkte "Interne openWB" ein und wählen Sie die Bauart der openWB (z.B. openWB series 1/2 custom, Standard (+) oder Buchse) aus. ',-1),n("p",null," Wenn eine openWB Duo gewählt wird, so sind zwei Ladepunkte mit Ladepunkt-Nummer 1 und 2 zu konfigurieren. Bei der openWB Pro und Satellit sind keine Einstellungen notwendig. ",-1),n("p",null,"Weitere Einstellungen sind bei der Vorkonfiguration einer secondary nicht notwendig.",-1),n("p",null," Bitte lesen Sie auch die Hinweistexte, welche durch Klicken auf das Fragezeichensymbol erscheinen. Hier sind weiterführende Informationen zu den Eingabefeldern zu finden. ",-1),n("p",{class:"font-weight-bold"},"Änderungen werden nur durch Klicken auf Speichern wirksam!",-1)])),content:o(()=>[w(r,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const E=m(c,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep4.vue"]]);export{E as default}; diff --git a/web/settings/assets/InstallAssistantStep5-139d3e6e.js b/web/settings/assets/InstallAssistantStep5-e6bd1410.js similarity index 84% rename from web/settings/assets/InstallAssistantStep5-139d3e6e.js rename to web/settings/assets/InstallAssistantStep5-e6bd1410.js index 1ac51df06f..b7a17b6e2e 100644 --- a/web/settings/assets/InstallAssistantStep5-139d3e6e.js +++ b/web/settings/assets/InstallAssistantStep5-e6bd1410.js @@ -1 +1 @@ -import{C as l}from"./index-93388667.js";import m from"./InstallAssistantStepTemplate-2f5f6eeb.js";import{H as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as r,l as g,x as f,E as a,A as n,G as w}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const h={name:"InstallAssistantStep5",components:{InstallAssistantStepTemplate:m,HardwareInstallationView:u},mixins:[l],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",6)},previousPage(){this.$emit("switchPage",3)},endAssistant(){this.$emit("endAssistant")}}};function c(t,e,v,S,A,i){const o=r("HardwareInstallationView"),d=r("InstallAssistantStepTemplate");return g(),f(d,{title:"4. Energiesystem - Geräte und Komponenten einrichten",onNextPage:i.nextPage,onPreviousPage:i.previousPage,onEndAssistant:i.endAssistant},{help:a(()=>e[4]||(e[4]=[n("p",null,' Diese openWB wurde als "primary" konfiguriert und übernimmt die Steuerung anderer openWBs, falls vorhanden, sowie die alleinige Regelung des Systems. Dazu müssen im Folgenden die Geräte und Komponenten eingerichtet werden. ',-1),n("p",null," Sofern das System nicht zurückgesetzt wurde, ist im Auslieferungszustand für erste Ladetests nach der WB-Montage ein virtueller Zähler vorkonfiguriert. Dieser muss zuerst gelöscht werden, wenn das im Gebäude installierte Energiesystem bestehend aus EVU-Zähler, PV-Anlage und ggf. Speicher in openWB konfiguriert wird. ",-1),n("p",null," Jedes verfügbare Gerät wird durch eine eigene IP-Adresse definiert. Dieses Gerät ist über den Herstellernamen des Energiesystems im Auswahlmenü der verfügbaren Geräte auszuwählen. Unterhalb des Gerätes werden die zugehörigen Komponenten EVU-Zähler, WR und Speicher konfiguriert. Es können je nach Bedarf beliebig viele Geräte und Komponenten miteinander kombiniert werden. ",-1),n("p",null," Bitte lesen Sie auch die Hinweistexte, welche durch Klicken auf das Fragezeichensymbol erscheinen. Hier sind weiterführende Informationen zu den Eingabefeldern zu finden. ",-1),n("p",{class:"font-weight-bold"},"Änderungen werden nur durch Klicken auf Speichern wirksam!",-1)])),content:a(()=>[w(o,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const x=p(h,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep5.vue"]]);export{x as default}; +import{C as l}from"./index-eccf5556.js";import m from"./InstallAssistantStepTemplate-71d42fdc.js";import{H as u}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as r,l as g,x as f,E as a,A as n,G as w}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const h={name:"InstallAssistantStep5",components:{InstallAssistantStepTemplate:m,HardwareInstallationView:u},mixins:[l],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",6)},previousPage(){this.$emit("switchPage",3)},endAssistant(){this.$emit("endAssistant")}}};function c(t,e,v,S,A,i){const o=r("HardwareInstallationView"),d=r("InstallAssistantStepTemplate");return g(),f(d,{title:"4. Energiesystem - Geräte und Komponenten einrichten",onNextPage:i.nextPage,onPreviousPage:i.previousPage,onEndAssistant:i.endAssistant},{help:a(()=>e[4]||(e[4]=[n("p",null,' Diese openWB wurde als "primary" konfiguriert und übernimmt die Steuerung anderer openWBs, falls vorhanden, sowie die alleinige Regelung des Systems. Dazu müssen im Folgenden die Geräte und Komponenten eingerichtet werden. ',-1),n("p",null," Sofern das System nicht zurückgesetzt wurde, ist im Auslieferungszustand für erste Ladetests nach der WB-Montage ein virtueller Zähler vorkonfiguriert. Dieser muss zuerst gelöscht werden, wenn das im Gebäude installierte Energiesystem bestehend aus EVU-Zähler, PV-Anlage und ggf. Speicher in openWB konfiguriert wird. ",-1),n("p",null," Jedes verfügbare Gerät wird durch eine eigene IP-Adresse definiert. Dieses Gerät ist über den Herstellernamen des Energiesystems im Auswahlmenü der verfügbaren Geräte auszuwählen. Unterhalb des Gerätes werden die zugehörigen Komponenten EVU-Zähler, WR und Speicher konfiguriert. Es können je nach Bedarf beliebig viele Geräte und Komponenten miteinander kombiniert werden. ",-1),n("p",null," Bitte lesen Sie auch die Hinweistexte, welche durch Klicken auf das Fragezeichensymbol erscheinen. Hier sind weiterführende Informationen zu den Eingabefeldern zu finden. ",-1),n("p",{class:"font-weight-bold"},"Änderungen werden nur durch Klicken auf Speichern wirksam!",-1)])),content:a(()=>[w(o,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const x=p(h,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep5.vue"]]);export{x as default}; diff --git a/web/settings/assets/InstallAssistantStep6-05201b09.js b/web/settings/assets/InstallAssistantStep6-8a3f6b5b.js similarity index 86% rename from web/settings/assets/InstallAssistantStep6-05201b09.js rename to web/settings/assets/InstallAssistantStep6-8a3f6b5b.js index c4898484e9..6b1a93c969 100644 --- a/web/settings/assets/InstallAssistantStep6-05201b09.js +++ b/web/settings/assets/InstallAssistantStep6-8a3f6b5b.js @@ -1 +1 @@ -import{C as d}from"./index-93388667.js";import u from"./InstallAssistantStepTemplate-2f5f6eeb.js";import{b as p}from"./ChargePointInstallation-34ff8e1d.js";import{_ as m,u as a,l as g,x as h,E as r,A as n,G as w}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const P={name:"InstallAssistantStep6",components:{InstallAssistantStepTemplate:u,ChargePointInstallationView:p},mixins:[d],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",7)},previousPage(){this.$emit("switchPage",5)},endAssistant(){this.$emit("endAssistant")}}};function f(t,e,c,b,k,i){const o=a("ChargePointInstallationView"),l=a("InstallAssistantStepTemplate");return g(),h(l,{title:"5. Einrichten der Ladepunkte (openWB als primary)",onNextPage:i.nextPage,onPreviousPage:i.previousPage,onEndAssistant:i.endAssistant},{help:r(()=>e[4]||(e[4]=[n("p",null,' Enthält die steuernde openWB (primary) Ladetechnik, wird bei "Verfügbare Ladepunkte" Interne openWB ausgewählt. Weitere LP werden im primary als secondary konfigurierte openWB oder andere WB-Typen wie Pro, Satellit eingebunden. ',-1),n("p",null,"Bei openWBs ab Werk kann hier bereits ein Ladepunkt eingetragen sein.",-1),n("p",null," Nachfolgend werden die Eigenschaften des Ladepunktes wie IP-Adresse und elektrischer Anschluss definiert. Die meisten openWB werden 3-phasig angeschlossen! Bei mehreren Ladepunkten ist auf phasenrotierten Anschluss der openWB-Zuleitung zu achten! Abschließend wird die korrekte Zuordnung der Phase 1 des Ladekabels zur zugehörigen EVU-Zählerphase konfiguriert. Dies ist sehr wichtig, um optimales Lastmanagement sicherzustellen! ",-1),n("p",null," Tipp zur Zuordnung: Verwende ein nur 1-phasig ladendes Auto (z.B. Hybrid) oder stelle bei openWB mit 1p3p-Phasenumschaltung temporär unter Sofortladen (s. Einstellungen -> Ladeeinstellungen) auf einphasig, um eine 1-phasige Ladung zu erzwingen. Gehe unter Status und vergleiche die Leistungen bzw. Ströme der 3 Phasen am EVU-Zähler (rot) beim und nach dem Autoladen (Sofortladen mit 16A/ Stop). Diejenige EVU-Phase, die deutlich erhöhte Werte anzeigt, ist die auszuwählende EVU-Phase. ",-1),n("p",null," Im grauen Menü Ladepunkt-Profile können neben dem Standard-Ladepunkt-Profil auch weitere Ladepunkt-Profile, die andere WB-Typen abbilden, erstellt werden. Dort sind Eintragungen bzgl. des Ladepunkt-Maximalstroms bei einer Phase bzw. mehreren Phasen vorzunehmen. Die Profile werden abschließend im jeweiligen blauen Ladepunkt mittels Auswahlmenü zugeordnet. ",-1),n("p",{class:"font-weight-bold"},"Änderungen werden nur durch Klicken auf Speichern wirksam!",-1)])),content:r(()=>[w(o,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const $=m(P,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep6.vue"]]);export{$ as default}; +import{C as d}from"./index-eccf5556.js";import u from"./InstallAssistantStepTemplate-71d42fdc.js";import{b as p}from"./ChargePointInstallation-9345f83e.js";import{_ as m,u as a,l as g,x as h,E as r,A as n,G as w}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const P={name:"InstallAssistantStep6",components:{InstallAssistantStepTemplate:u,ChargePointInstallationView:p},mixins:[d],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",7)},previousPage(){this.$emit("switchPage",5)},endAssistant(){this.$emit("endAssistant")}}};function f(t,e,c,b,k,i){const o=a("ChargePointInstallationView"),l=a("InstallAssistantStepTemplate");return g(),h(l,{title:"5. Einrichten der Ladepunkte (openWB als primary)",onNextPage:i.nextPage,onPreviousPage:i.previousPage,onEndAssistant:i.endAssistant},{help:r(()=>e[4]||(e[4]=[n("p",null,' Enthält die steuernde openWB (primary) Ladetechnik, wird bei "Verfügbare Ladepunkte" Interne openWB ausgewählt. Weitere LP werden im primary als secondary konfigurierte openWB oder andere WB-Typen wie Pro, Satellit eingebunden. ',-1),n("p",null,"Bei openWBs ab Werk kann hier bereits ein Ladepunkt eingetragen sein.",-1),n("p",null," Nachfolgend werden die Eigenschaften des Ladepunktes wie IP-Adresse und elektrischer Anschluss definiert. Die meisten openWB werden 3-phasig angeschlossen! Bei mehreren Ladepunkten ist auf phasenrotierten Anschluss der openWB-Zuleitung zu achten! Abschließend wird die korrekte Zuordnung der Phase 1 des Ladekabels zur zugehörigen EVU-Zählerphase konfiguriert. Dies ist sehr wichtig, um optimales Lastmanagement sicherzustellen! ",-1),n("p",null," Tipp zur Zuordnung: Verwende ein nur 1-phasig ladendes Auto (z.B. Hybrid) oder stelle bei openWB mit 1p3p-Phasenumschaltung temporär unter Sofortladen (s. Einstellungen -> Ladeeinstellungen) auf einphasig, um eine 1-phasige Ladung zu erzwingen. Gehe unter Status und vergleiche die Leistungen bzw. Ströme der 3 Phasen am EVU-Zähler (rot) beim und nach dem Autoladen (Sofortladen mit 16A/ Stop). Diejenige EVU-Phase, die deutlich erhöhte Werte anzeigt, ist die auszuwählende EVU-Phase. ",-1),n("p",null," Im grauen Menü Ladepunkt-Profile können neben dem Standard-Ladepunkt-Profil auch weitere Ladepunkt-Profile, die andere WB-Typen abbilden, erstellt werden. Dort sind Eintragungen bzgl. des Ladepunkt-Maximalstroms bei einer Phase bzw. mehreren Phasen vorzunehmen. Die Profile werden abschließend im jeweiligen blauen Ladepunkt mittels Auswahlmenü zugeordnet. ",-1),n("p",{class:"font-weight-bold"},"Änderungen werden nur durch Klicken auf Speichern wirksam!",-1)])),content:r(()=>[w(o,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const $=m(P,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep6.vue"]]);export{$ as default}; diff --git a/web/settings/assets/InstallAssistantStep7-9bbf3e73.js b/web/settings/assets/InstallAssistantStep7-42b4a6af.js similarity index 83% rename from web/settings/assets/InstallAssistantStep7-9bbf3e73.js rename to web/settings/assets/InstallAssistantStep7-42b4a6af.js index 030b8579e2..a370a5c584 100644 --- a/web/settings/assets/InstallAssistantStep7-9bbf3e73.js +++ b/web/settings/assets/InstallAssistantStep7-42b4a6af.js @@ -1 +1 @@ -import{C as l}from"./index-93388667.js";import m from"./InstallAssistantStepTemplate-2f5f6eeb.js";import p from"./LoadManagementConfig-913bc596.js";import{_ as u,u as r,l as g,x as h,E as a,A as n,G as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./OpenwbSortableList-2a6a01cb.js";const f={name:"InstallAssistantStep7",components:{InstallAssistantStepTemplate:m,LoadManagementConfigView:p},mixins:[l],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",8)},previousPage(){this.$emit("switchPage",6)},endAssistant(){this.$emit("endAssistant")}}};function b(t,e,S,w,A,i){const o=r("LoadManagementConfigView"),d=r("InstallAssistantStepTemplate");return g(),h(d,{title:"6. Konfiguration des Lastmanagements",onNextPage:i.nextPage,onPreviousPage:i.previousPage,onEndAssistant:i.endAssistant},{help:a(()=>e[4]||(e[4]=[n("p",null," Im Lastmanagement werden die maximale Leistung sowie die maximalen Ströme für jede Phase des Zählermoduls sowie bei Hybrid-Systemen (per DC-angebundener Speicher) die maximale Ausgangsleistung des Wechselrichters der PV-Anlage eingetragen, falls eine solche vorhanden ist. ",-1),n("p",null,' Der erste Zähler ist in der Regel der Zähler am EVU-Punkt (Position des PV/Speicher-Smartmeters direkt hinter dem VNB-Zähler). In openWB ist hierzu auf die unterhalb der "Vorhandene Zählermodule" liegende (rote) EVU-Zähler-Komponente zu klicken, in welche die maximale EVU-Leistung sowie die Phasenströme eingetragen werden, für die der Hausanschluss abgesichert ist (Elektriker fragen, typisch f. EFH: 24kW/3x35A, 43kW/3x63A). ',-1),n("p",null," Ist ein Wechselrichter mit DC-angebundenem Speicher unter Geräte hinzugefügt worden, dann ist unter der (grünen) WR-Komponente noch die maximale Ausgangsleistung des WR einzutragen. ",-1),n("p",null," Der EVU-Zähler (rot) schließt alle weiteren Komponenten wie WR und Speicher unter sich ein. Bei AC-eingebundenen Speichern befinden sich WR und Speicher in derselben Ebene, bei DC-eingebundenen Speichern (Hybrid) der Speicher unterhalb des WR. Die Ladepunkte (z.B. secondary openWB) befinden sich auf derselben Ebene wie der WR und unterhalb des EVU-Zählers. Anpassungen der Anordnungen sind über die Pfeil-Bereiche der Komponenten durch einfaches Verschieben mit der Maus oder am Smartphone möglich. ",-1),n("p",null,null,-1),n("p",{class:"font-weight-bold"},"Änderungen werden nur durch Klicken auf Speichern wirksam!",-1)])),content:a(()=>[c(o,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const I=u(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep7.vue"]]);export{I as default}; +import{C as l}from"./index-eccf5556.js";import m from"./InstallAssistantStepTemplate-71d42fdc.js";import p from"./LoadManagementConfig-adf5f944.js";import{_ as u,u as r,l as g,x as h,E as a,A as n,G as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./OpenwbSortableList-e9396362.js";const f={name:"InstallAssistantStep7",components:{InstallAssistantStepTemplate:m,LoadManagementConfigView:p},mixins:[l],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",8)},previousPage(){this.$emit("switchPage",6)},endAssistant(){this.$emit("endAssistant")}}};function b(t,e,S,w,A,i){const o=r("LoadManagementConfigView"),d=r("InstallAssistantStepTemplate");return g(),h(d,{title:"6. Konfiguration des Lastmanagements",onNextPage:i.nextPage,onPreviousPage:i.previousPage,onEndAssistant:i.endAssistant},{help:a(()=>e[4]||(e[4]=[n("p",null," Im Lastmanagement werden die maximale Leistung sowie die maximalen Ströme für jede Phase des Zählermoduls sowie bei Hybrid-Systemen (per DC-angebundener Speicher) die maximale Ausgangsleistung des Wechselrichters der PV-Anlage eingetragen, falls eine solche vorhanden ist. ",-1),n("p",null,' Der erste Zähler ist in der Regel der Zähler am EVU-Punkt (Position des PV/Speicher-Smartmeters direkt hinter dem VNB-Zähler). In openWB ist hierzu auf die unterhalb der "Vorhandene Zählermodule" liegende (rote) EVU-Zähler-Komponente zu klicken, in welche die maximale EVU-Leistung sowie die Phasenströme eingetragen werden, für die der Hausanschluss abgesichert ist (Elektriker fragen, typisch f. EFH: 24kW/3x35A, 43kW/3x63A). ',-1),n("p",null," Ist ein Wechselrichter mit DC-angebundenem Speicher unter Geräte hinzugefügt worden, dann ist unter der (grünen) WR-Komponente noch die maximale Ausgangsleistung des WR einzutragen. ",-1),n("p",null," Der EVU-Zähler (rot) schließt alle weiteren Komponenten wie WR und Speicher unter sich ein. Bei AC-eingebundenen Speichern befinden sich WR und Speicher in derselben Ebene, bei DC-eingebundenen Speichern (Hybrid) der Speicher unterhalb des WR. Die Ladepunkte (z.B. secondary openWB) befinden sich auf derselben Ebene wie der WR und unterhalb des EVU-Zählers. Anpassungen der Anordnungen sind über die Pfeil-Bereiche der Komponenten durch einfaches Verschieben mit der Maus oder am Smartphone möglich. ",-1),n("p",null,null,-1),n("p",{class:"font-weight-bold"},"Änderungen werden nur durch Klicken auf Speichern wirksam!",-1)])),content:a(()=>[c(o,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const I=u(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep7.vue"]]);export{I as default}; diff --git a/web/settings/assets/InstallAssistantStep8-c4eebc60.js b/web/settings/assets/InstallAssistantStep8-b00d87de.js similarity index 82% rename from web/settings/assets/InstallAssistantStep8-c4eebc60.js rename to web/settings/assets/InstallAssistantStep8-b00d87de.js index daab5de363..bc45e485e4 100644 --- a/web/settings/assets/InstallAssistantStep8-c4eebc60.js +++ b/web/settings/assets/InstallAssistantStep8-b00d87de.js @@ -1 +1 @@ -import{C as g}from"./index-93388667.js";import p from"./InstallAssistantStepTemplate-2f5f6eeb.js";import{a as h}from"./VehicleConfig-28b52371.js";import{F as f}from"./vendor-fortawesome-66071a0e.js";import{_ as z,u as r,l as w,x as P,E as a,A as n,B as o,G as d}from"./vendor-25d394b4.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const A={name:"InstallAssistantStep8",components:{InstallAssistantStepTemplate:p,VehicleConfigView:h,FontAwesomeIcon:f},mixins:[g],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",9)},previousPage(){this.$emit("switchPage",7)},endAssistant(){this.$emit("endAssistant")}}},F={class:"font-weight-bold"};function v(t,e,c,S,V,i){const l=r("FontAwesomeIcon"),u=r("VehicleConfigView"),m=r("InstallAssistantStepTemplate");return w(),P(m,{title:"7. Einrichten der Fahrzeuge",onNextPage:i.nextPage,onPreviousPage:i.previousPage,onEndAssistant:i.endAssistant},{help:a(()=>[e[6]||(e[6]=n("p",null,"Vor dem eigentlichen Fahrzeug werden zuerst die Fahrzeug- und Lade-Profile konfiguriert.",-1)),e[7]||(e[7]=n("p",null," Bei nur einem Fahrzeug reicht das Standard-Fahrzeug-Profil aus. Bei mehreren Fahrzeugtypen werden weitere Fahrzeug-Profile hinzugefügt. Im Anschluss werden die Fahrzeug-Profile mit den passenden Einstellungen des Fahrzeugtyps versehen (Mindeststromstärke, Maximalstromstärke bei einer/mehreren Phase/n sowie Angaben zur Batterie und Handhabung der Phasen entsprechend den Daten des Automobilherstellers. Im Zweifelsfall den Hersteller des Autos oder im openWB-Forum nachfragen). ",-1)),n("p",F,[e[4]||(e[4]=o(' Wichtig: Die "Angaben zur Handhabung von Phasen" des Fahrzeugs sind richtig einzutragen! Beachte die Hilfstexte, die Du durch Klick auf ',-1)),d(l,{icon:["far","question-circle"]}),e[5]||(e[5]=o(" anzeigen kannst. ",-1))]),e[8]||(e[8]=n("p",null," Bei nur einem Fahrzeug reicht das Standard-Lade-Profil aus. Bei mehreren Fahrzeugen können weitere Lade-Profile hinzugefügt werden. Dies erlaubt die Nutzung unterschiedlicher Lademodi je Fahrzeug (z.B. EV1 = Sofortladen, EV2 = PV-Laden). Im Anschluss werden die Voreinstellungen zu den verschiedenen Lademodi konfiguriert. ",-1)),e[9]||(e[9]=n("p",null," Nun wird das eigentliche Fahrzeug angelegt und mit dem gewünschten Fahrzeug-Profil / Lade-Profil versehen. Ist nur ein Fahrzeug vorhanden, reicht das Standard-Fahrzeug aus. ",-1)),e[10]||(e[10]=n("p",{class:"font-weight-bold"},"Änderungen werden nur durch Klicken auf Speichern wirksam!",-1))]),content:a(()=>[d(u,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const D=z(A,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep8.vue"]]);export{D as default}; +import{C as g}from"./index-eccf5556.js";import p from"./InstallAssistantStepTemplate-71d42fdc.js";import{a as h}from"./VehicleConfig-44d8bbb2.js";import{F as f}from"./vendor-fortawesome-d6ee0a65.js";import{_ as z,u as r,l as w,x as P,E as a,A as n,B as o,G as d}from"./vendor-57e3a63c.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const A={name:"InstallAssistantStep8",components:{InstallAssistantStepTemplate:p,VehicleConfigView:h,FontAwesomeIcon:f},mixins:[g],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:[]}),methods:{nextPage(){this.$emit("switchPage",9)},previousPage(){this.$emit("switchPage",7)},endAssistant(){this.$emit("endAssistant")}}},F={class:"font-weight-bold"};function v(t,e,c,S,V,i){const l=r("FontAwesomeIcon"),u=r("VehicleConfigView"),m=r("InstallAssistantStepTemplate");return w(),P(m,{title:"7. Einrichten der Fahrzeuge",onNextPage:i.nextPage,onPreviousPage:i.previousPage,onEndAssistant:i.endAssistant},{help:a(()=>[e[6]||(e[6]=n("p",null,"Vor dem eigentlichen Fahrzeug werden zuerst die Fahrzeug- und Lade-Profile konfiguriert.",-1)),e[7]||(e[7]=n("p",null," Bei nur einem Fahrzeug reicht das Standard-Fahrzeug-Profil aus. Bei mehreren Fahrzeugtypen werden weitere Fahrzeug-Profile hinzugefügt. Im Anschluss werden die Fahrzeug-Profile mit den passenden Einstellungen des Fahrzeugtyps versehen (Mindeststromstärke, Maximalstromstärke bei einer/mehreren Phase/n sowie Angaben zur Batterie und Handhabung der Phasen entsprechend den Daten des Automobilherstellers. Im Zweifelsfall den Hersteller des Autos oder im openWB-Forum nachfragen). ",-1)),n("p",F,[e[4]||(e[4]=o(' Wichtig: Die "Angaben zur Handhabung von Phasen" des Fahrzeugs sind richtig einzutragen! Beachte die Hilfstexte, die Du durch Klick auf ',-1)),d(l,{icon:["far","question-circle"]}),e[5]||(e[5]=o(" anzeigen kannst. ",-1))]),e[8]||(e[8]=n("p",null," Bei nur einem Fahrzeug reicht das Standard-Lade-Profil aus. Bei mehreren Fahrzeugen können weitere Lade-Profile hinzugefügt werden. Dies erlaubt die Nutzung unterschiedlicher Lademodi je Fahrzeug (z.B. EV1 = Sofortladen, EV2 = PV-Laden). Im Anschluss werden die Voreinstellungen zu den verschiedenen Lademodi konfiguriert. ",-1)),e[9]||(e[9]=n("p",null," Nun wird das eigentliche Fahrzeug angelegt und mit dem gewünschten Fahrzeug-Profil / Lade-Profil versehen. Ist nur ein Fahrzeug vorhanden, reicht das Standard-Fahrzeug aus. ",-1)),e[10]||(e[10]=n("p",{class:"font-weight-bold"},"Änderungen werden nur durch Klicken auf Speichern wirksam!",-1))]),content:a(()=>[d(u,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["onNextPage","onPreviousPage","onEndAssistant"])}const D=z(A,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep8.vue"]]);export{D as default}; diff --git a/web/settings/assets/InstallAssistantStep9-63e25bb0.js b/web/settings/assets/InstallAssistantStep9-e3c563a2.js similarity index 80% rename from web/settings/assets/InstallAssistantStep9-63e25bb0.js rename to web/settings/assets/InstallAssistantStep9-e3c563a2.js index 273edd1a2c..72a5b7a074 100644 --- a/web/settings/assets/InstallAssistantStep9-63e25bb0.js +++ b/web/settings/assets/InstallAssistantStep9-e3c563a2.js @@ -1 +1 @@ -import{C as m}from"./index-93388667.js";import p from"./InstallAssistantStepTemplate-2f5f6eeb.js";import{D as u}from"./DataManagement-93d69162.js";import{_ as d,u as i,l as g,x as f,E as o,A as a,G as v}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"InstallAssistantStep9",components:{InstallAssistantStepTemplate:p,DataManagement:u},mixins:[m],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:["openWB/general/extern"]}),computed:{stepNumber(){return this.$store.state.mqtt["openWB/general/extern"]?5:8}},methods:{nextPage(){this.$emit("switchPage",10)},previousPage(){this.$emit("switchPage",this.$store.state.mqtt["openWB/general/extern"]?4:8)},endAssistant(){this.$emit("endAssistant")}}};function h(t,e,A,P,S,n){const r=i("DataManagement"),l=i("InstallAssistantStepTemplate");return g(),f(l,{title:`${n.stepNumber}. Datensicherung der neuen Konfiguration`,onNextPage:n.nextPage,onPreviousPage:n.previousPage,onEndAssistant:n.endAssistant},{help:o(()=>e[4]||(e[4]=[a("p",null," Wir empfehlen an dieser Stelle eine manuell initiierte Sicherung der neu konfigurierten openWB zu erstellen. ",-1),a("p",null," Dieser Vorgang sollte im Betrieb regelmäßig wiederholt werden (mindestens vor Updates), um sowohl die individuellen Log-Daten als auch auf ältere Konfigurationen zurückgreifen zu können (Backups). ",-1),a("p",null,' Die Sicherung kann auch automatisiert auf einem Cloud-Dienst durchgeführt werden. Hierzu bitte im unteren Bereich "Backup-Cloud" die entsprechenden Einstellungen vornehmen. ',-1)])),content:o(()=>[v(r,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["title","onNextPage","onPreviousPage","onEndAssistant"])}const W=d(c,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep9.vue"]]);export{W as default}; +import{C as m}from"./index-eccf5556.js";import p from"./InstallAssistantStepTemplate-71d42fdc.js";import{D as u}from"./DataManagement-3531e291.js";import{_ as d,u as i,l as g,x as f,E as o,A as a,G as v}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"InstallAssistantStep9",components:{InstallAssistantStepTemplate:p,DataManagement:u},mixins:[m],emits:["save","reset","defaults","sendCommand","switchPage","endAssistant"],data:()=>({mqttTopicsToSubscribe:["openWB/general/extern"]}),computed:{stepNumber(){return this.$store.state.mqtt["openWB/general/extern"]?5:8}},methods:{nextPage(){this.$emit("switchPage",10)},previousPage(){this.$emit("switchPage",this.$store.state.mqtt["openWB/general/extern"]?4:8)},endAssistant(){this.$emit("endAssistant")}}};function h(t,e,A,P,S,n){const r=i("DataManagement"),l=i("InstallAssistantStepTemplate");return g(),f(l,{title:`${n.stepNumber}. Datensicherung der neuen Konfiguration`,onNextPage:n.nextPage,onPreviousPage:n.previousPage,onEndAssistant:n.endAssistant},{help:o(()=>e[4]||(e[4]=[a("p",null," Wir empfehlen an dieser Stelle eine manuell initiierte Sicherung der neu konfigurierten openWB zu erstellen. ",-1),a("p",null," Dieser Vorgang sollte im Betrieb regelmäßig wiederholt werden (mindestens vor Updates), um sowohl die individuellen Log-Daten als auch auf ältere Konfigurationen zurückgreifen zu können (Backups). ",-1),a("p",null,' Die Sicherung kann auch automatisiert auf einem Cloud-Dienst durchgeführt werden. Hierzu bitte im unteren Bereich "Backup-Cloud" die entsprechenden Einstellungen vornehmen. ',-1)])),content:o(()=>[v(r,{"install-assistant-active":!0,onSendCommand:e[0]||(e[0]=s=>t.$emit("sendCommand",s)),onSave:e[1]||(e[1]=s=>t.$emit("save")),onReset:e[2]||(e[2]=s=>t.$emit("reset")),onDefaults:e[3]||(e[3]=s=>t.$emit("defaults"))})]),_:1},8,["title","onNextPage","onPreviousPage","onEndAssistant"])}const W=d(c,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStep9.vue"]]);export{W as default}; diff --git a/web/settings/assets/InstallAssistantStepTemplate-2f5f6eeb.js b/web/settings/assets/InstallAssistantStepTemplate-71d42fdc.js similarity index 87% rename from web/settings/assets/InstallAssistantStepTemplate-2f5f6eeb.js rename to web/settings/assets/InstallAssistantStepTemplate-71d42fdc.js index 96f2832df0..c5c3dfdfa1 100644 --- a/web/settings/assets/InstallAssistantStepTemplate-2f5f6eeb.js +++ b/web/settings/assets/InstallAssistantStepTemplate-71d42fdc.js @@ -1 +1 @@ -import{C as g}from"./index-93388667.js";import{l as v,av as y,aw as w,F as x}from"./vendor-fortawesome-66071a0e.js";import{_ as k,u as r,l as a,m as i,G as t,E as s,A as n,B as c,z as p,p as f}from"./vendor-25d394b4.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";const B="/openWB/web/settings/img/openWB_logo_light.png";v.add(y,w);const h={name:"InstallAssistantStepTemplate",components:{FontAwesomeIcon:x},mixins:[g],props:{title:{type:String,required:!0},hidePrevious:{type:Boolean,required:!1,default:!1},hideNext:{type:Boolean,required:!1,default:!1},hideEnd:{type:Boolean,required:!1,default:!1}},emits:["previousPage","nextPage","endAssistant"],methods:{nextPage(){window.scrollTo(0,0),this.$emit("nextPage")},previousPage(){window.scrollTo(0,0),this.$emit("previousPage")},endAssistant(){this.$emit("endAssistant")}}},A={class:"row justify-content-center mb-1"},C={key:0,class:"col-md-4 d-flex py-1 justify-content-center"},P={key:1,class:"col-md-4 d-flex py-1 justify-content-center"},S={key:2,class:"col-md-4 d-flex py-1 justify-content-center"},T={class:"row justify-content-center"},I={class:"page-help-text col-md-3 py-2"},N={class:"col py-2"};function $(_,e,o,j,W,l){const u=r("font-awesome-icon"),d=r("openwb-base-click-button"),b=r("openwb-base-card");return a(),i("div",null,[t(b,{title:o.title,"body-bg":"white",class:"p-0 mx-3"},{footer:s(()=>[n("div",A,[o.hidePrevious?p("",!0):(a(),i("div",C,[t(d,{class:"btn-block btn-warning",onButtonClicked:e[0]||(e[0]=m=>l.previousPage())},{default:s(()=>[t(u,{icon:["fas","caret-left"]}),e[3]||(e[3]=c(" Zurück ",-1))]),_:1,__:[3]})])),o.hideNext?p("",!0):(a(),i("div",P,[t(d,{class:"btn-block btn-success",onButtonClicked:e[1]||(e[1]=m=>l.nextPage())},{default:s(()=>[e[4]||(e[4]=c(" Weiter ",-1)),t(u,{icon:["fas","caret-right"]})]),_:1,__:[4]})])),o.hideEnd?p("",!0):(a(),i("div",S,[t(d,{class:"btn-block btn-danger",onButtonClicked:e[2]||(e[2]=m=>l.endAssistant())},{default:s(()=>e[5]||(e[5]=[c(" Assistent beenden ",-1)])),_:1,__:[5]})]))])]),default:s(()=>[n("div",T,[n("div",I,[f(_.$slots,"help",{},()=>[e[6]||(e[6]=n("img",{src:B,alt:"openWB Logo",class:"w-100"},null,-1))],!0)]),n("div",N,[f(_.$slots,"content",{},void 0,!0)])])]),_:3},8,["title"])])}const R=k(h,[["render",$],["__scopeId","data-v-db9e78cb"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStepTemplate.vue"]]);export{R as default}; +import{C as g}from"./index-eccf5556.js";import{l as v,av as y,aw as w,F as x}from"./vendor-fortawesome-d6ee0a65.js";import{_ as k,u as r,l as a,m as i,G as t,E as s,A as n,B as c,z as p,p as f}from"./vendor-57e3a63c.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";const B="/openWB/web/settings/img/openWB_logo_light.png";v.add(y,w);const h={name:"InstallAssistantStepTemplate",components:{FontAwesomeIcon:x},mixins:[g],props:{title:{type:String,required:!0},hidePrevious:{type:Boolean,required:!1,default:!1},hideNext:{type:Boolean,required:!1,default:!1},hideEnd:{type:Boolean,required:!1,default:!1}},emits:["previousPage","nextPage","endAssistant"],methods:{nextPage(){window.scrollTo(0,0),this.$emit("nextPage")},previousPage(){window.scrollTo(0,0),this.$emit("previousPage")},endAssistant(){this.$emit("endAssistant")}}},A={class:"row justify-content-center mb-1"},C={key:0,class:"col-md-4 d-flex py-1 justify-content-center"},P={key:1,class:"col-md-4 d-flex py-1 justify-content-center"},S={key:2,class:"col-md-4 d-flex py-1 justify-content-center"},T={class:"row justify-content-center"},I={class:"page-help-text col-md-3 py-2"},N={class:"col py-2"};function $(_,e,o,j,W,l){const u=r("font-awesome-icon"),d=r("openwb-base-click-button"),b=r("openwb-base-card");return a(),i("div",null,[t(b,{title:o.title,"body-bg":"white",class:"p-0 mx-3"},{footer:s(()=>[n("div",A,[o.hidePrevious?p("",!0):(a(),i("div",C,[t(d,{class:"btn-block btn-warning",onButtonClicked:e[0]||(e[0]=m=>l.previousPage())},{default:s(()=>[t(u,{icon:["fas","caret-left"]}),e[3]||(e[3]=c(" Zurück ",-1))]),_:1,__:[3]})])),o.hideNext?p("",!0):(a(),i("div",P,[t(d,{class:"btn-block btn-success",onButtonClicked:e[1]||(e[1]=m=>l.nextPage())},{default:s(()=>[e[4]||(e[4]=c(" Weiter ",-1)),t(u,{icon:["fas","caret-right"]})]),_:1,__:[4]})])),o.hideEnd?p("",!0):(a(),i("div",S,[t(d,{class:"btn-block btn-danger",onButtonClicked:e[2]||(e[2]=m=>l.endAssistant())},{default:s(()=>e[5]||(e[5]=[c(" Assistent beenden ",-1)])),_:1,__:[5]})]))])]),default:s(()=>[n("div",T,[n("div",I,[f(_.$slots,"help",{},()=>[e[6]||(e[6]=n("img",{src:B,alt:"openWB Logo",class:"w-100"},null,-1))],!0)]),n("div",N,[f(_.$slots,"content",{},void 0,!0)])])]),_:3},8,["title"])])}const R=k(h,[["render",$],["__scopeId","data-v-db9e78cb"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/install_assistant/InstallAssistantStepTemplate.vue"]]);export{R as default}; diff --git a/web/settings/assets/IoConfig-3eeecf97.js b/web/settings/assets/IoConfig-1ffa1790.js similarity index 84% rename from web/settings/assets/IoConfig-3eeecf97.js rename to web/settings/assets/IoConfig-1ffa1790.js index 9b66b05e44..31e818b8e1 100644 --- a/web/settings/assets/IoConfig-3eeecf97.js +++ b/web/settings/assets/IoConfig-1ffa1790.js @@ -1 +1 @@ -import{l as q,aa as $,F as L}from"./vendor-fortawesome-66071a0e.js";import{_ as A,C as E}from"./index-93388667.js";import{_ as W}from"./dynamic-import-helper-be004503.js";import{_ as k,u as l,l as a,m as g,x as _,E as i,B as d,F as b,G as r,A as w,a2 as M,N as I,M as x,z as C,a3 as T}from"./vendor-25d394b4.js";const U={props:{ioDevice:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},F=k(U,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_devices/OpenwbIoDeviceConfigMixin.vue"]]),N={name:"OpenwbIoDeviceConfigFallback",mixins:[F]},z={class:"io-device-config-fallback"},G={key:1};function R(t,e,s,v,c,n){const m=l("openwb-base-alert"),h=l("openwb-base-textarea");return a(),g("div",z,[Object.keys(t.ioDevice.configuration).length==0?(a(),_(m,{key:0,subtype:"info"},{default:i(()=>[d(' Das I/O-Modul "'+b(t.ioDevice.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(a(),g("div",G,[r(m,{subtype:"warning"},{default:i(()=>[d(' Es wurde keine Konfigurationsseite für das I/O-Modul "'+b(t.ioDevice.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),r(h,{title:"Konfiguration",subtype:"json","model-value":t.ioDevice.configuration,"onUpdate:modelValue":e[0]||(e[0]=f=>t.updateConfiguration(f,"configuration"))},{help:i(()=>e[1]||(e[1]=[d(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),r(m,{subtype:"info"},{default:i(()=>[w("pre",null,b(JSON.stringify(t.ioDevice.configuration,void 0,2)),1)]),_:1})]))])}const J=k(N,[["render",R],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_devices/OpenwbIoDeviceConfigFallback.vue"]]),H={name:"OpenwbIoDeviceProxy",props:{ioDevice:{type:Object,required:!0}},emits:["update:configuration","sendCommand"],computed:{myComponent(){return console.debug(`loading io device: ${this.ioDevice.type}`),M({loader:()=>W(Object.assign({"./add_on/io_device.vue":()=>A(()=>import("./io_device-1b22f974.js"),["assets/io_device-1b22f974.js","assets/index-93388667.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./dimm_kit/io_device.vue":()=>A(()=>import("./io_device-850aa661.js"),["assets/io_device-850aa661.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.ioDevice.type}/io_device.vue`),errorComponent:J})},outputs(){const t=[];if(this.ioDevice.output){if(this.ioDevice.output.analog)for(const e in this.ioDevice.output.analog)t.push(`openWB/set/system/io/${this.ioDevice.id}/set/manual/analog_output/${e}`);if(this.ioDevice.output.digital)for(const e in this.ioDevice.output.digital)t.push(`openWB/set/system/io/${this.ioDevice.id}/set/manual/digital_output/${e}`)}return t}},methods:{updateConfiguration(t){this.$emit("update:configuration",t)},sendCommand(t){this.$emit("sendCommand",t)}}};function Q(t,e,s,v,c,n){const m=l("openwb-base-heading"),h=l("openwb-base-copy-to-clipboard"),f=l("openwb-base-alert");return a(),g("div",null,[r(m,null,{default:i(()=>[d(' Einstellungen für I/O-Modul "'+b(s.ioDevice.name)+'" ',1)]),_:1}),n.outputs.length?(a(),_(f,{key:0,subtype:"info"},{default:i(()=>[e[6]||(e[6]=d(" Die Ausgänge können über die folgenden Topics manuell per MQTT geschaltet werden. Falls Ausgänge in Aktionen konfiguriert werden, überschreibt das manuelle Setzen den Status. ",-1)),w("ul",null,[(a(!0),g(I,null,x(n.outputs,p=>(a(),g("li",{key:p},[r(h,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[d(b(p),1)]),_:2},1024)]))),128)),e[2]||(e[2]=d(" Als Wert wird ein boolean als json oder 0/1 akzeptiert.",-1)),e[3]||(e[3]=w("br",null,null,-1)),e[4]||(e[4]=d(" Beispiel: ",-1)),e[5]||(e[5]=w("span",{class:"text-info"},"false",-1))])]),_:1,__:[6]})):C("",!0),(a(),_(T(n.myComponent),{"io-device":s.ioDevice,"onUpdate:configuration":e[0]||(e[0]=p=>n.updateConfiguration(p)),onSendCommand:e[1]||(e[1]=p=>n.sendCommand(p))},null,40,["io-device"]))])}const X=k(H,[["render",Q],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_devices/OpenwbIoDeviceProxy.vue"]]),Y={mixins:[E],props:{ioAction:{type:Object,required:!0},ioDevice:{type:Object,required:!0},availableChargePoints:{type:Array,required:!1,default:()=>[]},availableComponents:{type:Array,required:!1,default:()=>[]},availableIoDevices:{type:Array,required:!1,default:()=>[]}},emits:["update:configuration","sendCommand"],methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},Z=k(Y,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/OpenwbIoActionConfigMixin.vue"]]),K={name:"OpenwbIoActionConfigFallback",mixins:[Z]},ee={class:"io-action-config-fallback"},te={key:1};function oe(t,e,s,v,c,n){var f,p;const m=l("openwb-base-alert"),h=l("openwb-base-textarea");return a(),g("div",ee,[Object.keys((f=t.ioAction)==null?void 0:f.configuration).length==0?(a(),_(m,{key:0,subtype:"info"},{default:i(()=>{var u;return[d(' Die I/O-Aktion "'+b((u=t.ioAction)==null?void 0:u.name)+'" bietet keine Einstellungen. ',1)]}),_:1})):(a(),g("div",te,[r(m,{subtype:"warning"},{default:i(()=>{var u;return[d(' Es wurde keine Konfigurationsseite für die I/O-Aktion "'+b((u=t.ioAction)==null?void 0:u.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]}),_:1}),r(h,{title:"Konfiguration",subtype:"json","model-value":(p=t.ioAction)==null?void 0:p.configuration,"onUpdate:modelValue":e[0]||(e[0]=u=>t.updateConfiguration(u,"configuration"))},{help:i(()=>e[1]||(e[1]=[d(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),r(m,{subtype:"info"},{default:i(()=>{var u;return[w("pre",null,b(JSON.stringify((u=t.ioAction)==null?void 0:u.configuration,void 0,2)),1)]}),_:1})]))])}const ne=k(K,[["render",oe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/OpenwbIoActionConfigFallback.vue"]]),ie={name:"OpenwbIoActionProxy",props:{ioAction:{type:Object,required:!0},ioDevices:{type:Object,required:!0},installedChargePoints:{type:Object,required:!0},installedComponents:{type:Object,required:!0}},emits:["update:configuration","sendCommand"],computed:{myComponent(){var t,e;return console.debug(`loading io action: ${(t=this.ioAction)==null?void 0:t.group} / ${(e=this.ioAction)==null?void 0:e.type}`),M({loader:()=>{var s,v;return W(Object.assign({"./controllable_consumers/dimming/io_action.vue":()=>A(()=>import("./io_action-7060fe71.js"),["assets/io_action-7060fe71.js","assets/OpenwbIoSinglePattern-14df64f6.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./controllable_consumers/dimming_direct_control/io_action.vue":()=>A(()=>import("./io_action-3df13474.js"),["assets/io_action-3df13474.js","assets/OpenwbIoSinglePattern-14df64f6.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./controllable_consumers/ripple_control_receiver/io_action.vue":()=>A(()=>import("./io_action-d714df0c.js"),["assets/io_action-d714df0c.js","assets/OpenwbIoPattern-86c2d923.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/OpenwbIoPattern-746401f7.css","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generator_systems/stepwise_control/io_action.vue":()=>A(()=>import("./io_action-511c0cd7.js"),["assets/io_action-511c0cd7.js","assets/OpenwbIoPattern-86c2d923.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/OpenwbIoPattern-746401f7.css","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${(s=this.ioAction)==null?void 0:s.group}/${(v=this.ioAction)==null?void 0:v.type}/io_action.vue`)},errorComponent:ne})},ioDeviceList(){return Object.keys(this.ioDevices).map(t=>{var e,s;return{value:(e=this.ioDevices[t])==null?void 0:e.id,text:(s=this.ioDevices[t])==null?void 0:s.name}})},availableIoDevices(){return Object.values(this.ioDevices)},availableChargePoints(){return Object.values(this.installedChargePoints).map(t=>({value:t==null?void 0:t.id,text:t==null?void 0:t.name}))},availableComponents(){return Object.values(this.installedComponents).map(t=>({value:t==null?void 0:t.id,text:t==null?void 0:t.name,type:t==null?void 0:t.type}))}},methods:{updateConfiguration(t,e=void 0){e?this.$emit("update:configuration",{value:t,object:e}):this.$emit("update:configuration",t)},updateIoDevice(t){var e;if(this.updateConfiguration(t,"configuration.io_device"),Array.isArray((e=this.ioAction.configuration)==null?void 0:e.input_pattern)){let s=this.ioAction.configuration.input_pattern.map(v=>({value:v.value,matrix:{}}));this.updateConfiguration(s,"configuration.input_pattern")}Object.prototype.hasOwnProperty.call(this.ioAction.configuration,"digital_input")&&this.updateConfiguration(null,"configuration.digital_input")}}},ae={key:0};function se(t,e,s,v,c,n){var f,p;const m=l("openwb-base-heading"),h=l("openwb-base-select-input");return a(),g(I,null,[r(m,null,{default:i(()=>{var u;return[d(' Einstellungen für I/O-Aktion "'+b((u=s.ioAction)==null?void 0:u.name)+'" ',1)]}),_:1}),r(h,{title:"Eingangs-Gerät","not-selected":"Bitte auswählen","empty-value":null,required:"",options:n.ioDeviceList,"model-value":(f=s.ioAction)==null?void 0:f.configuration.io_device,"onUpdate:modelValue":e[0]||(e[0]=u=>n.updateIoDevice(u))},{help:i(()=>e[2]||(e[2]=[d(" Bitte das Gerät auswählen, über das der Schaltbefehl empfangen werden soll. Für jede Aktion kann nur ein Gerät ausgewählt werden. ",-1)])),_:1},8,["options","model-value"]),((p=s.ioAction)==null?void 0:p.configuration.io_device)!==null?(a(),g("div",ae,[e[3]||(e[3]=w("hr",null,null,-1)),(a(),_(T(n.myComponent),{"io-action":s.ioAction,"io-device":s.ioDevices[`openWB/system/io/${s.ioAction.configuration.io_device}/config`],"available-charge-points":n.availableChargePoints,"available-components":n.availableComponents,"available-io-devices":n.availableIoDevices,"onUpdate:configuration":e[1]||(e[1]=u=>n.updateConfiguration(u))},null,40,["io-action","io-device","available-charge-points","available-components","available-io-devices"]))])):C("",!0)],64)}const re=k(ie,[["render",se],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/OpenwbIoActionProxy.vue"]]);q.add($);const ue={name:"OpenwbIoConfigView",components:{FontAwesomeIcon:L,OpenwbIoDeviceProxy:X,OpenwbIoActionProxy:re},mixins:[E],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["save","reset","defaults","send-command"],data(){return{mqttTopicsToSubscribe:["openWB/system/configurable/io_devices","openWB/system/io/+/config","openWB/system/configurable/io_actions","openWB/io/action/+/config","openWB/chargepoint/+/config","openWB/system/device/+/component/+/config"],showIoDeviceDeleteModal:!1,modalIoDeviceIndex:void 0,ioDeviceToAdd:void 0,showIoActionDeleteModal:!1,modalIoActionIndex:void 0,ioActionToAdd:void 0}},computed:{ioDeviceList:{get(){return this.$store.state.mqtt["openWB/system/configurable/io_devices"]}},installedIoDevices:{get(){return this.getWildcardTopics("openWB/system/io/+/config")}},ioActionList:{get(){return this.$store.state.mqtt["openWB/system/configurable/io_actions"]===void 0?[]:Object.entries(this.$store.state.mqtt["openWB/system/configurable/io_actions"]).map(([t,e])=>({label:e.group_name,options:e.actions.map(s=>({value:[t,s.value],text:s.text})).sort((s,v)=>s.text.localeCompare(v.text))})).sort((t,e)=>t.label.localeCompare(e.label))}},installedIoActions:{get(){return this.getWildcardTopics("openWB/io/action/+/config")}},installedChargePoints:{get(){return this.getWildcardTopics("openWB/chargepoint/+/config")}},installedComponents:{get(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")}}},methods:{getIoDeviceName(t){return this.$store.state.mqtt["openWB/system/io/"+t+"/config"]?this.$store.state.mqtt["openWB/system/io/"+t+"/config"].name:"I/O-Gerät "+t},addIoDevice(){this.$emit("send-command",{command:"addIoDevice",data:{type:this.ioDeviceToAdd}})},removeIoDeviceModal(t,e){e.stopPropagation(),this.modalIoDeviceIndex=parseInt(t.match(/(?:\/)(\d+)(?=\/)/)[1]),this.showIoDeviceDeleteModal=!0},removeIoDevice(t,e){this.showIoDeviceDeleteModal=!1,e=="confirm"&&this.$emit("send-command",{command:"removeIoDevice",data:{id:t}})},addIoAction(){this.$emit("send-command",{command:"addIoAction",data:{type:this.ioActionToAdd}})},removeIoActionModal(t,e){e.stopPropagation(),this.modalIoActionIndex=parseInt(t.match(/(?:\/)(\d+)(?=\/)/)[1]),this.showIoActionDeleteModal=!0},removeIoAction(t,e){this.showIoActionDeleteModal=!1,e=="confirm"&&this.$emit("send-command",{command:"removeIoAction",data:{id:t}})},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)}}},le={class:"ioConfig"},de={name:"ioConfigForm"},pe={key:0},ce={key:0};function me(t,e,s,v,c,n){const m=l("openwb-base-modal-dialog"),h=l("font-awesome-icon"),f=l("openwb-base-avatar"),p=l("openwb-base-text-input"),u=l("openwb-io-device-proxy"),O=l("openwb-base-card"),j=l("openwb-base-select-input"),P=l("openwb-io-action-proxy"),V=l("openwb-base-alert"),S=l("openwb-base-submit-buttons");return a(),g(I,null,[r(m,{show:c.showIoDeviceDeleteModal,title:"Modul löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=o=>n.removeIoDevice(c.modalIoDeviceIndex,o))},{default:i(()=>[d(' Wollen Sie das Ein-/Ausgangs-Gerät "'+b(n.getIoDeviceName(c.modalIoDeviceIndex))+'" (ID: '+b(c.modalIoDeviceIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),r(m,{show:c.showIoActionDeleteModal,title:"Aktion löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[1]||(e[1]=o=>n.removeIoAction(c.modalIoActionIndex,o))},{default:i(()=>[d(' Wollen Sie die Aktion "'+b(n.getIoDeviceName(c.modalIoActionIndex))+'" (ID: '+b(c.modalIoActionIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),w("div",le,[w("form",de,[r(O,{title:"Ein-/Ausgangs-Geräte"},{default:i(()=>[(a(!0),g(I,null,x(n.installedIoDevices,(o,D)=>(a(),_(O,{key:D,title:(o==null?void 0:o.name)+" (ID: "+(o==null?void 0:o.id)+")",collapsible:!0,collapsed:!0,subtype:"primary"},{actions:i(y=>[y.collapsed?C("",!0):(a(),_(f,{key:0,class:"bg-danger clickable",onClick:B=>n.removeIoDeviceModal(D,B)},{default:i(()=>[r(h,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:i(()=>[r(p,{title:"Bezeichnung",subtype:"text","model-value":o.name,"onUpdate:modelValue":y=>t.updateState(D,y,"name")},null,8,["model-value","onUpdate:modelValue"]),r(p,{title:"Modul",subtype:"text",disabled:"",readonly:"","model-value":t.$store.state.mqtt[D].type},null,8,["model-value"]),e[7]||(e[7]=w("hr",null,null,-1)),r(u,{"io-device":o,"onUpdate:configuration":y=>n.updateConfiguration(D,y)},null,8,["io-device","onUpdate:configuration"])]),_:2,__:[7]},1032,["title"]))),128)),Object.keys(n.installedIoDevices).length>0?(a(),g("hr",pe)):C("",!0),r(j,{title:"Verfügbare Geräte","not-selected":"Bitte auswählen",options:n.ioDeviceList,"model-value":c.ioDeviceToAdd,"add-button":!0,"onUpdate:modelValue":e[2]||(e[2]=o=>c.ioDeviceToAdd=o),"onInput:add":n.addIoDevice},{help:i(()=>e[8]||(e[8]=[d(" Bitte ein Ein-/Ausgangs-Modul auswählen, das hinzugefügt werden soll. ",-1)])),_:1},8,["options","model-value","onInput:add"])]),_:1}),r(O,{title:"Ein-/Ausgangs-Aktionen"},{default:i(()=>[(a(!0),g(I,null,x(n.installedIoActions,(o,D)=>(a(),_(O,{key:D,title:(o==null?void 0:o.name)+" (ID: "+(o==null?void 0:o.id)+")",collapsible:!0,collapsed:!0,subtype:"primary"},{actions:i(y=>[y.collapsed?C("",!0):(a(),_(f,{key:0,class:"bg-danger clickable",onClick:B=>n.removeIoActionModal(D,B)},{default:i(()=>[r(h,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:i(()=>[r(p,{title:"Bezeichnung",subtype:"text","model-value":o==null?void 0:o.name,"onUpdate:modelValue":y=>t.updateState(D,y,"name")},null,8,["model-value","onUpdate:modelValue"]),r(p,{title:"Modul",subtype:"text",disabled:"",readonly:"","model-value":[o==null?void 0:o.group,o==null?void 0:o.type].join(" / ")},null,8,["model-value"]),e[9]||(e[9]=w("hr",null,null,-1)),o!==void 0?(a(),_(P,{key:0,"io-action":o,"io-devices":n.installedIoDevices,"installed-charge-points":n.installedChargePoints,"installed-components":n.installedComponents,"onUpdate:configuration":y=>n.updateConfiguration(D,y)},null,8,["io-action","io-devices","installed-charge-points","installed-components","onUpdate:configuration"])):C("",!0)]),_:2,__:[9]},1032,["title"]))),128)),Object.keys(n.installedIoActions).length>0?(a(),g("hr",ce)):C("",!0),Object.keys(n.installedIoDevices).length>0?(a(),_(j,{key:1,title:"Verfügbare Aktionen","not-selected":"Bitte auswählen",groups:n.ioActionList,"model-value":c.ioActionToAdd,"add-button":!0,"onUpdate:modelValue":e[3]||(e[3]=o=>c.ioActionToAdd=o),"onInput:add":n.addIoAction},{help:i(()=>e[10]||(e[10]=[d(" Bitte eine Ein-/Ausgangs-Aktion auswählen, die hinzugefügt werden soll. ",-1)])),_:1},8,["groups","model-value","onInput:add"])):(a(),_(V,{key:2,subtype:"warning"},{default:i(()=>e[11]||(e[11]=[d(" Keine Ein-/Ausgangs-Geräte vorhanden!",-1),w("br",null,null,-1),d(" Bitte fügen Sie zuerst ein Ein-/Ausgangs-Gerät hinzu, bevor Sie Aktionen konfigurieren. ",-1)])),_:1,__:[11]}))]),_:1}),r(S,{"form-name":"ioConfigForm",onSave:e[4]||(e[4]=o=>t.$emit("save")),onReset:e[5]||(e[5]=o=>t.$emit("reset")),onDefaults:e[6]||(e[6]=o=>t.$emit("defaults"))})])])],64)}const ge=k(ue,[["render",me],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/IoConfig.vue"]]),ye=Object.freeze(Object.defineProperty({__proto__:null,default:ge},Symbol.toStringTag,{value:"Module"}));export{ye as I,F as O,Z as a}; +import{l as q,aa as $,F as L}from"./vendor-fortawesome-d6ee0a65.js";import{_ as A,C as E}from"./index-eccf5556.js";import{_ as W}from"./dynamic-import-helper-be004503.js";import{_ as k,u as l,l as a,m as g,x as _,E as i,B as d,F as b,G as r,A as w,a2 as M,N as I,M as x,z as C,a3 as T}from"./vendor-57e3a63c.js";const U={props:{ioDevice:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},F=k(U,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_devices/OpenwbIoDeviceConfigMixin.vue"]]),N={name:"OpenwbIoDeviceConfigFallback",mixins:[F]},z={class:"io-device-config-fallback"},G={key:1};function R(t,e,s,v,c,n){const m=l("openwb-base-alert"),h=l("openwb-base-textarea");return a(),g("div",z,[Object.keys(t.ioDevice.configuration).length==0?(a(),_(m,{key:0,subtype:"info"},{default:i(()=>[d(' Das I/O-Modul "'+b(t.ioDevice.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(a(),g("div",G,[r(m,{subtype:"warning"},{default:i(()=>[d(' Es wurde keine Konfigurationsseite für das I/O-Modul "'+b(t.ioDevice.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),r(h,{title:"Konfiguration",subtype:"json","model-value":t.ioDevice.configuration,"onUpdate:modelValue":e[0]||(e[0]=f=>t.updateConfiguration(f,"configuration"))},{help:i(()=>e[1]||(e[1]=[d(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),r(m,{subtype:"info"},{default:i(()=>[w("pre",null,b(JSON.stringify(t.ioDevice.configuration,void 0,2)),1)]),_:1})]))])}const J=k(N,[["render",R],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_devices/OpenwbIoDeviceConfigFallback.vue"]]),H={name:"OpenwbIoDeviceProxy",props:{ioDevice:{type:Object,required:!0}},emits:["update:configuration","sendCommand"],computed:{myComponent(){return console.debug(`loading io device: ${this.ioDevice.type}`),M({loader:()=>W(Object.assign({"./add_on/io_device.vue":()=>A(()=>import("./io_device-6526992b.js"),["assets/io_device-6526992b.js","assets/index-eccf5556.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./dimm_kit/io_device.vue":()=>A(()=>import("./io_device-f28df559.js"),["assets/io_device-f28df559.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${this.ioDevice.type}/io_device.vue`),errorComponent:J})},outputs(){const t=[];if(this.ioDevice.output){if(this.ioDevice.output.analog)for(const e in this.ioDevice.output.analog)t.push(`openWB/set/system/io/${this.ioDevice.id}/set/manual/analog_output/${e}`);if(this.ioDevice.output.digital)for(const e in this.ioDevice.output.digital)t.push(`openWB/set/system/io/${this.ioDevice.id}/set/manual/digital_output/${e}`)}return t}},methods:{updateConfiguration(t){this.$emit("update:configuration",t)},sendCommand(t){this.$emit("sendCommand",t)}}};function Q(t,e,s,v,c,n){const m=l("openwb-base-heading"),h=l("openwb-base-copy-to-clipboard"),f=l("openwb-base-alert");return a(),g("div",null,[r(m,null,{default:i(()=>[d(' Einstellungen für I/O-Modul "'+b(s.ioDevice.name)+'" ',1)]),_:1}),n.outputs.length?(a(),_(f,{key:0,subtype:"info"},{default:i(()=>[e[6]||(e[6]=d(" Die Ausgänge können über die folgenden Topics manuell per MQTT geschaltet werden. Falls Ausgänge in Aktionen konfiguriert werden, überschreibt das manuelle Setzen den Status. ",-1)),w("ul",null,[(a(!0),g(I,null,x(n.outputs,p=>(a(),g("li",{key:p},[r(h,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[d(b(p),1)]),_:2},1024)]))),128)),e[2]||(e[2]=d(" Als Wert wird ein boolean als json oder 0/1 akzeptiert.",-1)),e[3]||(e[3]=w("br",null,null,-1)),e[4]||(e[4]=d(" Beispiel: ",-1)),e[5]||(e[5]=w("span",{class:"text-info"},"false",-1))])]),_:1,__:[6]})):C("",!0),(a(),_(T(n.myComponent),{"io-device":s.ioDevice,"onUpdate:configuration":e[0]||(e[0]=p=>n.updateConfiguration(p)),onSendCommand:e[1]||(e[1]=p=>n.sendCommand(p))},null,40,["io-device"]))])}const X=k(H,[["render",Q],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_devices/OpenwbIoDeviceProxy.vue"]]),Y={mixins:[E],props:{ioAction:{type:Object,required:!0},ioDevice:{type:Object,required:!0},availableChargePoints:{type:Array,required:!1,default:()=>[]},availableComponents:{type:Array,required:!1,default:()=>[]},availableIoDevices:{type:Array,required:!1,default:()=>[]}},emits:["update:configuration","sendCommand"],methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},Z=k(Y,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/OpenwbIoActionConfigMixin.vue"]]),K={name:"OpenwbIoActionConfigFallback",mixins:[Z]},ee={class:"io-action-config-fallback"},te={key:1};function oe(t,e,s,v,c,n){var f,p;const m=l("openwb-base-alert"),h=l("openwb-base-textarea");return a(),g("div",ee,[Object.keys((f=t.ioAction)==null?void 0:f.configuration).length==0?(a(),_(m,{key:0,subtype:"info"},{default:i(()=>{var u;return[d(' Die I/O-Aktion "'+b((u=t.ioAction)==null?void 0:u.name)+'" bietet keine Einstellungen. ',1)]}),_:1})):(a(),g("div",te,[r(m,{subtype:"warning"},{default:i(()=>{var u;return[d(' Es wurde keine Konfigurationsseite für die I/O-Aktion "'+b((u=t.ioAction)==null?void 0:u.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]}),_:1}),r(h,{title:"Konfiguration",subtype:"json","model-value":(p=t.ioAction)==null?void 0:p.configuration,"onUpdate:modelValue":e[0]||(e[0]=u=>t.updateConfiguration(u,"configuration"))},{help:i(()=>e[1]||(e[1]=[d(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),r(m,{subtype:"info"},{default:i(()=>{var u;return[w("pre",null,b(JSON.stringify((u=t.ioAction)==null?void 0:u.configuration,void 0,2)),1)]}),_:1})]))])}const ne=k(K,[["render",oe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/OpenwbIoActionConfigFallback.vue"]]),ie={name:"OpenwbIoActionProxy",props:{ioAction:{type:Object,required:!0},ioDevices:{type:Object,required:!0},installedChargePoints:{type:Object,required:!0},installedComponents:{type:Object,required:!0}},emits:["update:configuration","sendCommand"],computed:{myComponent(){var t,e;return console.debug(`loading io action: ${(t=this.ioAction)==null?void 0:t.group} / ${(e=this.ioAction)==null?void 0:e.type}`),M({loader:()=>{var s,v;return W(Object.assign({"./controllable_consumers/dimming/io_action.vue":()=>A(()=>import("./io_action-4c5b44eb.js"),["assets/io_action-4c5b44eb.js","assets/OpenwbIoSinglePattern-2e542bd1.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./controllable_consumers/dimming_direct_control/io_action.vue":()=>A(()=>import("./io_action-8d0f9f11.js"),["assets/io_action-8d0f9f11.js","assets/OpenwbIoSinglePattern-2e542bd1.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./controllable_consumers/ripple_control_receiver/io_action.vue":()=>A(()=>import("./io_action-33369fcf.js"),["assets/io_action-33369fcf.js","assets/OpenwbIoPattern-43abb292.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/OpenwbIoPattern-746401f7.css","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"]),"./generator_systems/stepwise_control/io_action.vue":()=>A(()=>import("./io_action-25f5451d.js"),["assets/io_action-25f5451d.js","assets/OpenwbIoPattern-43abb292.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/OpenwbIoPattern-746401f7.css","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js"])}),`./${(s=this.ioAction)==null?void 0:s.group}/${(v=this.ioAction)==null?void 0:v.type}/io_action.vue`)},errorComponent:ne})},ioDeviceList(){return Object.keys(this.ioDevices).map(t=>{var e,s;return{value:(e=this.ioDevices[t])==null?void 0:e.id,text:(s=this.ioDevices[t])==null?void 0:s.name}})},availableIoDevices(){return Object.values(this.ioDevices)},availableChargePoints(){return Object.values(this.installedChargePoints).map(t=>({value:t==null?void 0:t.id,text:t==null?void 0:t.name}))},availableComponents(){return Object.values(this.installedComponents).map(t=>({value:t==null?void 0:t.id,text:t==null?void 0:t.name,type:t==null?void 0:t.type}))}},methods:{updateConfiguration(t,e=void 0){e?this.$emit("update:configuration",{value:t,object:e}):this.$emit("update:configuration",t)},updateIoDevice(t){var e;if(this.updateConfiguration(t,"configuration.io_device"),Array.isArray((e=this.ioAction.configuration)==null?void 0:e.input_pattern)){let s=this.ioAction.configuration.input_pattern.map(v=>({value:v.value,matrix:{}}));this.updateConfiguration(s,"configuration.input_pattern")}Object.prototype.hasOwnProperty.call(this.ioAction.configuration,"digital_input")&&this.updateConfiguration(null,"configuration.digital_input")}}},ae={key:0};function se(t,e,s,v,c,n){var f,p;const m=l("openwb-base-heading"),h=l("openwb-base-select-input");return a(),g(I,null,[r(m,null,{default:i(()=>{var u;return[d(' Einstellungen für I/O-Aktion "'+b((u=s.ioAction)==null?void 0:u.name)+'" ',1)]}),_:1}),r(h,{title:"Eingangs-Gerät","not-selected":"Bitte auswählen","empty-value":null,required:"",options:n.ioDeviceList,"model-value":(f=s.ioAction)==null?void 0:f.configuration.io_device,"onUpdate:modelValue":e[0]||(e[0]=u=>n.updateIoDevice(u))},{help:i(()=>e[2]||(e[2]=[d(" Bitte das Gerät auswählen, über das der Schaltbefehl empfangen werden soll. Für jede Aktion kann nur ein Gerät ausgewählt werden. ",-1)])),_:1},8,["options","model-value"]),((p=s.ioAction)==null?void 0:p.configuration.io_device)!==null?(a(),g("div",ae,[e[3]||(e[3]=w("hr",null,null,-1)),(a(),_(T(n.myComponent),{"io-action":s.ioAction,"io-device":s.ioDevices[`openWB/system/io/${s.ioAction.configuration.io_device}/config`],"available-charge-points":n.availableChargePoints,"available-components":n.availableComponents,"available-io-devices":n.availableIoDevices,"onUpdate:configuration":e[1]||(e[1]=u=>n.updateConfiguration(u))},null,40,["io-action","io-device","available-charge-points","available-components","available-io-devices"]))])):C("",!0)],64)}const re=k(ie,[["render",se],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/OpenwbIoActionProxy.vue"]]);q.add($);const ue={name:"OpenwbIoConfigView",components:{FontAwesomeIcon:L,OpenwbIoDeviceProxy:X,OpenwbIoActionProxy:re},mixins:[E],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["save","reset","defaults","send-command"],data(){return{mqttTopicsToSubscribe:["openWB/system/configurable/io_devices","openWB/system/io/+/config","openWB/system/configurable/io_actions","openWB/io/action/+/config","openWB/chargepoint/+/config","openWB/system/device/+/component/+/config"],showIoDeviceDeleteModal:!1,modalIoDeviceIndex:void 0,ioDeviceToAdd:void 0,showIoActionDeleteModal:!1,modalIoActionIndex:void 0,ioActionToAdd:void 0}},computed:{ioDeviceList:{get(){return this.$store.state.mqtt["openWB/system/configurable/io_devices"]}},installedIoDevices:{get(){return this.getWildcardTopics("openWB/system/io/+/config")}},ioActionList:{get(){return this.$store.state.mqtt["openWB/system/configurable/io_actions"]===void 0?[]:Object.entries(this.$store.state.mqtt["openWB/system/configurable/io_actions"]).map(([t,e])=>({label:e.group_name,options:e.actions.map(s=>({value:[t,s.value],text:s.text})).sort((s,v)=>s.text.localeCompare(v.text))})).sort((t,e)=>t.label.localeCompare(e.label))}},installedIoActions:{get(){return this.getWildcardTopics("openWB/io/action/+/config")}},installedChargePoints:{get(){return this.getWildcardTopics("openWB/chargepoint/+/config")}},installedComponents:{get(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")}}},methods:{getIoDeviceName(t){return this.$store.state.mqtt["openWB/system/io/"+t+"/config"]?this.$store.state.mqtt["openWB/system/io/"+t+"/config"].name:"I/O-Gerät "+t},addIoDevice(){this.$emit("send-command",{command:"addIoDevice",data:{type:this.ioDeviceToAdd}})},removeIoDeviceModal(t,e){e.stopPropagation(),this.modalIoDeviceIndex=parseInt(t.match(/(?:\/)(\d+)(?=\/)/)[1]),this.showIoDeviceDeleteModal=!0},removeIoDevice(t,e){this.showIoDeviceDeleteModal=!1,e=="confirm"&&this.$emit("send-command",{command:"removeIoDevice",data:{id:t}})},addIoAction(){this.$emit("send-command",{command:"addIoAction",data:{type:this.ioActionToAdd}})},removeIoActionModal(t,e){e.stopPropagation(),this.modalIoActionIndex=parseInt(t.match(/(?:\/)(\d+)(?=\/)/)[1]),this.showIoActionDeleteModal=!0},removeIoAction(t,e){this.showIoActionDeleteModal=!1,e=="confirm"&&this.$emit("send-command",{command:"removeIoAction",data:{id:t}})},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)}}},le={class:"ioConfig"},de={name:"ioConfigForm"},pe={key:0},ce={key:0};function me(t,e,s,v,c,n){const m=l("openwb-base-modal-dialog"),h=l("font-awesome-icon"),f=l("openwb-base-avatar"),p=l("openwb-base-text-input"),u=l("openwb-io-device-proxy"),O=l("openwb-base-card"),j=l("openwb-base-select-input"),P=l("openwb-io-action-proxy"),V=l("openwb-base-alert"),S=l("openwb-base-submit-buttons");return a(),g(I,null,[r(m,{show:c.showIoDeviceDeleteModal,title:"Modul löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=o=>n.removeIoDevice(c.modalIoDeviceIndex,o))},{default:i(()=>[d(' Wollen Sie das Ein-/Ausgangs-Gerät "'+b(n.getIoDeviceName(c.modalIoDeviceIndex))+'" (ID: '+b(c.modalIoDeviceIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),r(m,{show:c.showIoActionDeleteModal,title:"Aktion löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[1]||(e[1]=o=>n.removeIoAction(c.modalIoActionIndex,o))},{default:i(()=>[d(' Wollen Sie die Aktion "'+b(n.getIoDeviceName(c.modalIoActionIndex))+'" (ID: '+b(c.modalIoActionIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),w("div",le,[w("form",de,[r(O,{title:"Ein-/Ausgangs-Geräte"},{default:i(()=>[(a(!0),g(I,null,x(n.installedIoDevices,(o,D)=>(a(),_(O,{key:D,title:(o==null?void 0:o.name)+" (ID: "+(o==null?void 0:o.id)+")",collapsible:!0,collapsed:!0,subtype:"primary"},{actions:i(y=>[y.collapsed?C("",!0):(a(),_(f,{key:0,class:"bg-danger clickable",onClick:B=>n.removeIoDeviceModal(D,B)},{default:i(()=>[r(h,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:i(()=>[r(p,{title:"Bezeichnung",subtype:"text","model-value":o.name,"onUpdate:modelValue":y=>t.updateState(D,y,"name")},null,8,["model-value","onUpdate:modelValue"]),r(p,{title:"Modul",subtype:"text",disabled:"",readonly:"","model-value":t.$store.state.mqtt[D].type},null,8,["model-value"]),e[7]||(e[7]=w("hr",null,null,-1)),r(u,{"io-device":o,"onUpdate:configuration":y=>n.updateConfiguration(D,y)},null,8,["io-device","onUpdate:configuration"])]),_:2,__:[7]},1032,["title"]))),128)),Object.keys(n.installedIoDevices).length>0?(a(),g("hr",pe)):C("",!0),r(j,{title:"Verfügbare Geräte","not-selected":"Bitte auswählen",options:n.ioDeviceList,"model-value":c.ioDeviceToAdd,"add-button":!0,"onUpdate:modelValue":e[2]||(e[2]=o=>c.ioDeviceToAdd=o),"onInput:add":n.addIoDevice},{help:i(()=>e[8]||(e[8]=[d(" Bitte ein Ein-/Ausgangs-Modul auswählen, das hinzugefügt werden soll. ",-1)])),_:1},8,["options","model-value","onInput:add"])]),_:1}),r(O,{title:"Ein-/Ausgangs-Aktionen"},{default:i(()=>[(a(!0),g(I,null,x(n.installedIoActions,(o,D)=>(a(),_(O,{key:D,title:(o==null?void 0:o.name)+" (ID: "+(o==null?void 0:o.id)+")",collapsible:!0,collapsed:!0,subtype:"primary"},{actions:i(y=>[y.collapsed?C("",!0):(a(),_(f,{key:0,class:"bg-danger clickable",onClick:B=>n.removeIoActionModal(D,B)},{default:i(()=>[r(h,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:i(()=>[r(p,{title:"Bezeichnung",subtype:"text","model-value":o==null?void 0:o.name,"onUpdate:modelValue":y=>t.updateState(D,y,"name")},null,8,["model-value","onUpdate:modelValue"]),r(p,{title:"Modul",subtype:"text",disabled:"",readonly:"","model-value":[o==null?void 0:o.group,o==null?void 0:o.type].join(" / ")},null,8,["model-value"]),e[9]||(e[9]=w("hr",null,null,-1)),o!==void 0?(a(),_(P,{key:0,"io-action":o,"io-devices":n.installedIoDevices,"installed-charge-points":n.installedChargePoints,"installed-components":n.installedComponents,"onUpdate:configuration":y=>n.updateConfiguration(D,y)},null,8,["io-action","io-devices","installed-charge-points","installed-components","onUpdate:configuration"])):C("",!0)]),_:2,__:[9]},1032,["title"]))),128)),Object.keys(n.installedIoActions).length>0?(a(),g("hr",ce)):C("",!0),Object.keys(n.installedIoDevices).length>0?(a(),_(j,{key:1,title:"Verfügbare Aktionen","not-selected":"Bitte auswählen",groups:n.ioActionList,"model-value":c.ioActionToAdd,"add-button":!0,"onUpdate:modelValue":e[3]||(e[3]=o=>c.ioActionToAdd=o),"onInput:add":n.addIoAction},{help:i(()=>e[10]||(e[10]=[d(" Bitte eine Ein-/Ausgangs-Aktion auswählen, die hinzugefügt werden soll. ",-1)])),_:1},8,["groups","model-value","onInput:add"])):(a(),_(V,{key:2,subtype:"warning"},{default:i(()=>e[11]||(e[11]=[d(" Keine Ein-/Ausgangs-Geräte vorhanden!",-1),w("br",null,null,-1),d(" Bitte fügen Sie zuerst ein Ein-/Ausgangs-Gerät hinzu, bevor Sie Aktionen konfigurieren. ",-1)])),_:1,__:[11]}))]),_:1}),r(S,{"form-name":"ioConfigForm",onSave:e[4]||(e[4]=o=>t.$emit("save")),onReset:e[5]||(e[5]=o=>t.$emit("reset")),onDefaults:e[6]||(e[6]=o=>t.$emit("defaults"))})])])],64)}const ge=k(ue,[["render",me],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/IoConfig.vue"]]),ye=Object.freeze(Object.defineProperty({__proto__:null,default:ge},Symbol.toStringTag,{value:"Module"}));export{ye as I,F as O,Z as a}; diff --git a/web/settings/assets/LegalSettings-bad44d1c.js b/web/settings/assets/LegalSettings-fa1fe7ea.js similarity index 89% rename from web/settings/assets/LegalSettings-bad44d1c.js rename to web/settings/assets/LegalSettings-fa1fe7ea.js index 1cde2f0065..b6dcefa6c4 100644 --- a/web/settings/assets/LegalSettings-bad44d1c.js +++ b/web/settings/assets/LegalSettings-fa1fe7ea.js @@ -1 +1 @@ -import{l as f,af as k,F as v}from"./vendor-fortawesome-66071a0e.js";import{C as y}from"./index-93388667.js";import{_ as B,u as n,l as i,m as z,A as a,G as o,E as r,x as m,B as u,z as p}from"./vendor-25d394b4.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";f.add(k);const S={name:"OpenwbDataProtectionView",components:{FontAwesomeIcon:v},mixins:[y],emits:["sendCommand","save"],data(){return{mqttTopicsToSubscribe:["openWB/system/dataprotection_acknowledged"]}},methods:{sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})}}},$={class:"dataProtection"},h={name:"dataProtectionForm"},C={class:"row justify-content-center"},V={class:"col-md-4 d-flex justify-content-center"};function W(t,e,N,A,x,b){const d=n("openwb-base-button-group-input"),c=n("font-awesome-icon"),g=n("openwb-base-click-button"),l=n("openwb-base-alert"),_=n("openwb-base-submit-buttons"),w=n("openwb-base-card");return i(),z("div",$,[a("form",h,[o(w,{title:"Nutzungsbedingungen & Datenschutzerklärung"},{footer:r(()=>[o(_,{"form-name":"dataProtectionForm","hide-reset":!0,"hide-defaults":!0,onSave:e[3]||(e[3]=s=>t.$emit("save"))})]),default:r(()=>[e[7]||(e[7]=a("iframe",{src:"dataProtection-usageTerms.html",width:"100%",height:"400px",class:"bg-light"},null,-1)),e[8]||(e[8]=a("hr",null,null,-1)),o(d,{title:"Nutzungsbedingungen",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/usage_terms_acknowledged"],"onUpdate:modelValue":e[0]||(e[0]=s=>t.updateState("openWB/system/usage_terms_acknowledged",s))},null,8,["model-value"]),t.$store.state.mqtt["openWB/system/usage_terms_acknowledged"]?p("",!0):(i(),m(l,{key:0,subtype:"danger",class:"mb-1"},{default:r(()=>[e[5]||(e[5]=u(" Sie müssen die Nutzungsbedingungen akzeptieren, bevor openWB eingesetzt werden kann. ",-1)),a("div",C,[a("div",V,[o(g,{class:"btn-danger",onButtonClicked:e[1]||(e[1]=s=>b.sendSystemCommand("systemShutdown"))},{default:r(()=>[e[4]||(e[4]=u(" Nicht akzeptieren und ausschalten ",-1)),o(c,{icon:["fas","power-off"]})]),_:1,__:[4]})])])]),_:1,__:[5]})),o(d,{title:"Datenschutzerklärung",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/dataprotection_acknowledged"],"onUpdate:modelValue":e[2]||(e[2]=s=>t.updateState("openWB/system/dataprotection_acknowledged",s))},null,8,["model-value"]),t.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]?p("",!0):(i(),m(l,{key:1,subtype:"warning"},{default:r(()=>e[6]||(e[6]=[u(" Wenn Du nicht einwilligst, wird eine ggf. konfigurierte Cloud-Anbindung gelöscht. Die openWB arbeitet autark wie gewohnt weiter. Fernzugriff und Remote-Support sind dann nicht mehr möglich! ",-1)])),_:1,__:[6]}))]),_:1,__:[7,8]})])])}const L=B(S,[["render",W],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LegalSettings.vue"]]);export{L as default}; +import{l as f,af as k,F as v}from"./vendor-fortawesome-d6ee0a65.js";import{C as y}from"./index-eccf5556.js";import{_ as B,u as n,l as i,m as z,A as a,G as o,E as r,x as m,B as u,z as p}from"./vendor-57e3a63c.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";f.add(k);const S={name:"OpenwbDataProtectionView",components:{FontAwesomeIcon:v},mixins:[y],emits:["sendCommand","save"],data(){return{mqttTopicsToSubscribe:["openWB/system/dataprotection_acknowledged"]}},methods:{sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})}}},$={class:"dataProtection"},h={name:"dataProtectionForm"},C={class:"row justify-content-center"},V={class:"col-md-4 d-flex justify-content-center"};function W(t,e,N,A,x,b){const d=n("openwb-base-button-group-input"),c=n("font-awesome-icon"),g=n("openwb-base-click-button"),l=n("openwb-base-alert"),_=n("openwb-base-submit-buttons"),w=n("openwb-base-card");return i(),z("div",$,[a("form",h,[o(w,{title:"Nutzungsbedingungen & Datenschutzerklärung"},{footer:r(()=>[o(_,{"form-name":"dataProtectionForm","hide-reset":!0,"hide-defaults":!0,onSave:e[3]||(e[3]=s=>t.$emit("save"))})]),default:r(()=>[e[7]||(e[7]=a("iframe",{src:"dataProtection-usageTerms.html",width:"100%",height:"400px",class:"bg-light"},null,-1)),e[8]||(e[8]=a("hr",null,null,-1)),o(d,{title:"Nutzungsbedingungen",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/usage_terms_acknowledged"],"onUpdate:modelValue":e[0]||(e[0]=s=>t.updateState("openWB/system/usage_terms_acknowledged",s))},null,8,["model-value"]),t.$store.state.mqtt["openWB/system/usage_terms_acknowledged"]?p("",!0):(i(),m(l,{key:0,subtype:"danger",class:"mb-1"},{default:r(()=>[e[5]||(e[5]=u(" Sie müssen die Nutzungsbedingungen akzeptieren, bevor openWB eingesetzt werden kann. ",-1)),a("div",C,[a("div",V,[o(g,{class:"btn-danger",onButtonClicked:e[1]||(e[1]=s=>b.sendSystemCommand("systemShutdown"))},{default:r(()=>[e[4]||(e[4]=u(" Nicht akzeptieren und ausschalten ",-1)),o(c,{icon:["fas","power-off"]})]),_:1,__:[4]})])])]),_:1,__:[5]})),o(d,{title:"Datenschutzerklärung",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/dataprotection_acknowledged"],"onUpdate:modelValue":e[2]||(e[2]=s=>t.updateState("openWB/system/dataprotection_acknowledged",s))},null,8,["model-value"]),t.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]?p("",!0):(i(),m(l,{key:1,subtype:"warning"},{default:r(()=>e[6]||(e[6]=[u(" Wenn Du nicht einwilligst, wird eine ggf. konfigurierte Cloud-Anbindung gelöscht. Die openWB arbeitet autark wie gewohnt weiter. Fernzugriff und Remote-Support sind dann nicht mehr möglich! ",-1)])),_:1,__:[6]}))]),_:1,__:[7,8]})])])}const L=B(S,[["render",W],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LegalSettings.vue"]]);export{L as default}; diff --git a/web/settings/assets/LoadManagementConfig-913bc596.js b/web/settings/assets/LoadManagementConfig-adf5f944.js similarity index 96% rename from web/settings/assets/LoadManagementConfig-913bc596.js rename to web/settings/assets/LoadManagementConfig-adf5f944.js index 00274dee09..b7d01120c2 100644 --- a/web/settings/assets/LoadManagementConfig-913bc596.js +++ b/web/settings/assets/LoadManagementConfig-adf5f944.js @@ -1 +1 @@ -import{l as C,Z as L,Y as x,F as V}from"./vendor-fortawesome-66071a0e.js";import{C as Z}from"./index-93388667.js";import{S as $}from"./OpenwbSortableList-2a6a01cb.js";import{_ as q,u as l,l as u,m,A as d,G as s,E as o,B as i,N as _,M as w,x as v,F as W}from"./vendor-25d394b4.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";C.add(L,x);const A={name:"OpenwbLoadManagementConfigView",components:{SortableList:$,FontAwesomeIcon:V},mixins:[Z],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["sendCommand","save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/config/home_consumption_source_id","openWB/counter/config/consider_less_charging","openWB/counter/get/hierarchy","openWB/system/device/+/component/+/config","openWB/counter/+/config/max_power_errorcase","openWB/counter/+/config/max_currents","openWB/counter/+/config/max_total_power","openWB/pv/+/config/max_ac_out","openWB/chargepoint/+/config"]}},computed:{componentConfigurations(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")},counterConfigs:{get(){let n=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(n).filter(e=>{var t;return(t=n[e])==null?void 0:t.type.includes("counter")}).reduce((e,t)=>({...e,[t]:n[t]}),{})}},counterOptions(){var n=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e==null?void 0:e.type,"counter")&&n.push({value:e.id,text:e.name});return n.sort((e,t)=>e.text==t.text?0:e.text>t.text?1:-1)},inverterConfigs:{get(){let n=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(n).filter(e=>{var t;return(t=n[e])==null?void 0:t.type.includes("inverter")}).reduce((e,t)=>({...e,[t]:n[t]}),{})}},hierarchyLabels:{get(){let n={};for(const e of Object.values(this.$store.state.mqtt["openWB/counter/get/hierarchy"]))n={...n,...this.getElementTreeNames(e)};return n}},getHcSourceIdOptions(){let n=[{value:null,text:"von openWB berechnen (in 99% der Fälle die richtige Einstellung)"}],e=[{label:"Eingerichtete Zähler-Komponenten",options:[...this.counterOptions]}];return{options:n,groups:e}}},methods:{getElementTreeNames(n){let e={};if(n.type=="cp"){let t=this.getChargePoint(n.id);t&&(e[n.id]=t.name)}else{let t=this.getComponent(n.id);t&&(e[n.id]=t.name)}return n.children.forEach(t=>{e={...e,...this.getElementTreeNames(t)}}),e},getComponent(n){let e;return Object.keys(this.$store.state.mqtt).forEach(t=>{t.match("^openWB/system/device/[0-9]+/component/"+n+"/config$")&&(e=this.$store.state.mqtt[t])}),e},getChargePoint(n){let e;return Object.keys(this.$store.state.mqtt).forEach(t=>{t.match("^openWB/chargepoint/"+n+"/config$")&&(e=this.$store.state.mqtt[t])}),e},isComponentType(n,e){return n==null?void 0:n.split("_").includes(e)}}},E={class:"loadManagementConfig"},M={name:"loadManagementConfigForm"},U={key:0},F={key:1},D={key:0},O={key:1};function P(n,e,t,H,N,g){const c=l("openwb-base-alert"),k=l("router-link"),B=l("openwb-base-button-group-input"),S=l("openwb-base-select-input"),f=l("openwb-base-heading"),b=l("font-awesome-icon"),p=l("openwb-base-number-input"),h=l("openwb-base-card"),z=l("sortable-list"),y=l("openwb-base-submit-buttons");return u(),m("div",E,[d("form",M,[s(h,{title:"Einstellungen",collapsible:!0,collapsed:!1},{default:o(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(u(),m("div",U,[s(c,{subtype:"info"},{default:o(()=>e[6]||(e[6]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[6]})])):(u(),m("div",F,[s(c,{subtype:"info"},{default:o(()=>[e[8]||(e[8]=i(" Die Konfiguration für die externe Steuerung durch den Netzbetreiber (RSE, EMS, §14a) erfolgt in den ",-1)),s(k,{to:"/IoConfiguration"},{default:o(()=>e[7]||(e[7]=[i("Einstellungen der Ein-/Ausgänge",-1)])),_:1,__:[7]}),e[9]||(e[9]=i(" im Bereich der Aktionen. ",-1))]),_:1,__:[8,9]}),s(B,{title:"Fahrzeuge, die nicht mit Sollstrom laden",buttons:[{buttonValue:!1,text:"nicht berücksichtigen",class:"btn-outline-danger"},{buttonValue:!0,text:"berücksichtigen",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/counter/config/consider_less_charging"],"onUpdate:modelValue":e[0]||(e[0]=r=>n.updateState("openWB/counter/config/consider_less_charging",r))},{help:o(()=>e[10]||(e[10]=[d("p",null," Wenn angesteckte Fahrzeuge, die nicht oder nicht mit der Sollstromstärke laden, im Lastmanagement berücksichtigt werden, wird für diese der Sollstrom reserviert. Dadurch können bei Eingreifen des Lastmanagements andere Fahrzeuge möglicherweise nur mit reduzierter Stromstärke laden und der reservierte Strom wird nicht genutzt. Wenn die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, nutzen sie den für sie reservierten Strom. ",-1),d("p",null," Wenn angesteckte Fahrzeuge, die nicht oder nicht mit der Sollstromstärke laden, nicht im Lastmanagement berücksichtigt werden, wird für diese auch kein Strom bei vorliegender Ladefreigabe reserviert bzw. es wird nur der tatsächlich genutzte Strom im Lastmanagement berücksichtigt. Andere Fahrzeuge können dadurch mit höherer Stromstärke laden. Wenn die maximalen Lastmanagement-Grenzen fast erreicht sind und die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, kann es zu einer kurzzeitigen Überschreitung der Lastmanagement-Grenzen kommen, bis im nächsten Zyklus die Stromstärken aller Ladepunkte an die neue Situation angepasst wurden. Das kurzzeitige Überschreiten der Maximal-Werte stellt für die Sicherungen in der Regel kein Problem dar. ",-1)])),_:1},8,["model-value"]),s(S,{title:"Hausverbrauch",options:g.getHcSourceIdOptions.options,groups:g.getHcSourceIdOptions.groups,"model-value":n.$store.state.mqtt["openWB/counter/config/home_consumption_source_id"],"onUpdate:modelValue":e[1]||(e[1]=r=>n.updateState("openWB/counter/config/home_consumption_source_id",r))},{help:o(()=>e[11]||(e[11]=[i(" Meist ist der Zähler am EVU-Punkt installiert, dann muss hier 'von openWB berechnen' ausgewählt werden. Wenn der Zähler im Hausverbrauchszweig installiert ist, die Struktur wie im ",-1),d("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Zähler",target:"_blank",rel:"noopener noreferrer"}," Wiki ",-1),i(" beschrieben anordnen und hier den Hausverbrauchszähler auswählen. Dann wird dieser Wert abzüglich der Ladeleistung als Hausverbrauch erfasst. ",-1)])),_:1},8,["options","groups","model-value"]),s(f,null,{default:o(()=>e[12]||(e[12]=[i(" Vorhandene Zählermodule ",-1)])),_:1,__:[12]}),s(c,{subtype:"info"},{default:o(()=>e[13]||(e[13]=[i(" Die maximale Leistung wird nur für den EVU-Zähler berücksichtigt. Bei Zwischenzählern begrenzt das Lastmanagement rein anhand der maximalen Phasenströme.",-1),d("br",null,null,-1),i(" Wenn ein Zähler nicht auslesbar ist, wird weiterhin versucht, diesen auszulesen und nach 60s die angenommene Leistung im Fehlerfall verwendet, die unten für jeden Zähler eingestellt wird, um eine Überlast zu vermeiden. Die angenommene Leistung wird gleichmäßig auf die Phasen verteilt.",-1),d("br",null,null,-1),i(" Überlicherweise sind Hausanschlüsse mit 24kW und 3*35A bzw. 43kW und 3*63A abgesichert. ",-1)])),_:1,__:[13]}),(u(!0),m(_,null,w(g.counterConfigs,r=>(u(),v(h,{key:r.id,collapsible:!0,collapsed:!0,subtype:"danger"},{header:o(()=>[s(b,{icon:["fas","gauge-high"]}),i(" "+W(r.name),1)]),default:o(()=>[s(p,{title:"Maximale Leistung",min:1,step:.1,required:"",unit:"kW","model-value":n.$store.state.mqtt["openWB/counter/"+r.id+"/config/max_total_power"]/1e3,"onUpdate:modelValue":a=>n.updateState("openWB/counter/"+r.id+"/config/max_total_power",a*1e3)},{help:o(()=>[...e[14]||(e[14]=[i(" Maximal zulässige Leistung für diesen (Zwischen-)Zähler. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),s(p,{title:"Maximaler Strom L1",min:6,step:1,unit:"A",required:"","model-value":n.$store.state.mqtt["openWB/counter/"+r.id+"/config/max_currents"][0],"onUpdate:modelValue":a=>n.updateState("openWB/counter/"+r.id+"/config/max_currents",a,"0")},{help:o(()=>[...e[15]||(e[15]=[i(" Maximal zulässiger Strom für die Phase 1 dieses (Zwischen-)Zählers. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),s(p,{title:"Maximaler Strom L2",min:6,step:1,unit:"A",required:"","model-value":n.$store.state.mqtt["openWB/counter/"+r.id+"/config/max_currents"][1],"onUpdate:modelValue":a=>n.updateState("openWB/counter/"+r.id+"/config/max_currents",a,"1")},{help:o(()=>[...e[16]||(e[16]=[i(" Maximal zulässiger Strom für die Phase 2 dieses (Zwischen-)Zählers. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),s(p,{title:"Maximaler Strom L3",min:6,step:1,unit:"A",required:"","model-value":n.$store.state.mqtt["openWB/counter/"+r.id+"/config/max_currents"][2],"onUpdate:modelValue":a=>n.updateState("openWB/counter/"+r.id+"/config/max_currents",a,"2")},{help:o(()=>[...e[17]||(e[17]=[i(" Maximal zulässiger Strom für die Phase 3 dieses (Zwischen-)Zählers. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),s(p,{title:"Maximale Leistung im Fehlerfall",min:0,step:.1,unit:"kW","model-value":n.$store.state.mqtt["openWB/counter/"+r.id+"/config/max_power_errorcase"]/1e3,"onUpdate:modelValue":a=>n.updateState("openWB/counter/"+r.id+"/config/max_power_errorcase",a*1e3)},{help:o(()=>[...e[18]||(e[18]=[i(" Angenommen Leistung für diesen (Zwischen-)Zähler, falls vom Zähler keine Werte abgefragt werden können. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128)),s(f,null,{default:o(()=>e[19]||(e[19]=[i(" Vorhandene Wechselrichtermodule ",-1)])),_:1,__:[19]}),(u(!0),m(_,null,w(g.inverterConfigs,r=>(u(),v(h,{key:r.id,collapsible:!0,collapsed:!0,subtype:"success"},{header:o(()=>[s(b,{icon:["fas","solar-panel"]}),i(" "+W(r.name),1)]),default:o(()=>[s(p,{title:"Maximale Ausgangsleistung des Wechselrichters",min:0,step:.1,unit:"kW",required:"","model-value":n.$store.state.mqtt["openWB/pv/"+r.id+"/config/max_ac_out"]/1e3,"onUpdate:modelValue":a=>n.updateState("openWB/pv/"+r.id+"/config/max_ac_out",a*1e3)},{help:o(()=>[...e[20]||(e[20]=[i(" Bei 0 kW erfolgt keine Berücksichtigung der maximalen Ausgangsleistung. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128))]))]),_:1}),s(h,{title:"Struktur",collapsible:!0,collapsed:!0},{default:o(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(u(),m("div",D,[s(c,{subtype:"info"},{default:o(()=>e[21]||(e[21]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[21]})])):(u(),m("div",O,[s(z,{title:"Anordnung der Komponenten","model-value":n.$store.state.mqtt["openWB/counter/get/hierarchy"],labels:g.hierarchyLabels,"onUpdate:modelValue":e[2]||(e[2]=r=>n.updateState("openWB/counter/get/hierarchy",r))},{help:o(()=>e[22]||(e[22]=[i(" Durch die Anordnung der Komponenten werden Abhängigkeiten abgebildet.",-1),d("br",null,null,-1),i(" An erster Stelle muss eine Zählerkomponente stehen, die den Netzanschlusspunkt erfasst. Dafür kann auch ein virtueller Zähler genutzt werden.",-1),d("br",null,null,-1),i(" Die weiteren Komponenten müssen hierarchisch so angeordnet werden, wie sie auch physisch im Stromnetz angeschlossen werden.",-1),d("br",null,null,-1),i(" Bei DC-gekoppelten Speichern sind diese hinter dem zugehörigen Wechselrichter zu platzieren, damit die Abhängigkeit in der Regelung berücksichtigt werden kann. ",-1)])),_:1},8,["model-value","labels"])]))]),_:1}),s(y,{"form-name":"loadManagementConfigForm",onSave:e[3]||(e[3]=r=>n.$emit("save")),onReset:e[4]||(e[4]=r=>n.$emit("reset")),onDefaults:e[5]||(e[5]=r=>n.$emit("defaults"))})])])}const Q=q(A,[["render",P],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LoadManagementConfig.vue"]]);export{Q as default}; +import{l as C,Z as L,Y as x,F as V}from"./vendor-fortawesome-d6ee0a65.js";import{C as Z}from"./index-eccf5556.js";import{S as $}from"./OpenwbSortableList-e9396362.js";import{_ as q,u as l,l as u,m,A as d,G as s,E as o,B as i,N as _,M as w,x as v,F as W}from"./vendor-57e3a63c.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";C.add(L,x);const A={name:"OpenwbLoadManagementConfigView",components:{SortableList:$,FontAwesomeIcon:V},mixins:[Z],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["sendCommand","save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/config/home_consumption_source_id","openWB/counter/config/consider_less_charging","openWB/counter/get/hierarchy","openWB/system/device/+/component/+/config","openWB/counter/+/config/max_power_errorcase","openWB/counter/+/config/max_currents","openWB/counter/+/config/max_total_power","openWB/pv/+/config/max_ac_out","openWB/chargepoint/+/config"]}},computed:{componentConfigurations(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")},counterConfigs:{get(){let n=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(n).filter(e=>{var t;return(t=n[e])==null?void 0:t.type.includes("counter")}).reduce((e,t)=>({...e,[t]:n[t]}),{})}},counterOptions(){var n=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e==null?void 0:e.type,"counter")&&n.push({value:e.id,text:e.name});return n.sort((e,t)=>e.text==t.text?0:e.text>t.text?1:-1)},inverterConfigs:{get(){let n=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(n).filter(e=>{var t;return(t=n[e])==null?void 0:t.type.includes("inverter")}).reduce((e,t)=>({...e,[t]:n[t]}),{})}},hierarchyLabels:{get(){let n={};for(const e of Object.values(this.$store.state.mqtt["openWB/counter/get/hierarchy"]))n={...n,...this.getElementTreeNames(e)};return n}},getHcSourceIdOptions(){let n=[{value:null,text:"von openWB berechnen (in 99% der Fälle die richtige Einstellung)"}],e=[{label:"Eingerichtete Zähler-Komponenten",options:[...this.counterOptions]}];return{options:n,groups:e}}},methods:{getElementTreeNames(n){let e={};if(n.type=="cp"){let t=this.getChargePoint(n.id);t&&(e[n.id]=t.name)}else{let t=this.getComponent(n.id);t&&(e[n.id]=t.name)}return n.children.forEach(t=>{e={...e,...this.getElementTreeNames(t)}}),e},getComponent(n){let e;return Object.keys(this.$store.state.mqtt).forEach(t=>{t.match("^openWB/system/device/[0-9]+/component/"+n+"/config$")&&(e=this.$store.state.mqtt[t])}),e},getChargePoint(n){let e;return Object.keys(this.$store.state.mqtt).forEach(t=>{t.match("^openWB/chargepoint/"+n+"/config$")&&(e=this.$store.state.mqtt[t])}),e},isComponentType(n,e){return n==null?void 0:n.split("_").includes(e)}}},E={class:"loadManagementConfig"},M={name:"loadManagementConfigForm"},U={key:0},F={key:1},D={key:0},O={key:1};function P(n,e,t,H,N,g){const c=l("openwb-base-alert"),k=l("router-link"),B=l("openwb-base-button-group-input"),S=l("openwb-base-select-input"),f=l("openwb-base-heading"),b=l("font-awesome-icon"),p=l("openwb-base-number-input"),h=l("openwb-base-card"),z=l("sortable-list"),y=l("openwb-base-submit-buttons");return u(),m("div",E,[d("form",M,[s(h,{title:"Einstellungen",collapsible:!0,collapsed:!1},{default:o(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(u(),m("div",U,[s(c,{subtype:"info"},{default:o(()=>e[6]||(e[6]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[6]})])):(u(),m("div",F,[s(c,{subtype:"info"},{default:o(()=>[e[8]||(e[8]=i(" Die Konfiguration für die externe Steuerung durch den Netzbetreiber (RSE, EMS, §14a) erfolgt in den ",-1)),s(k,{to:"/IoConfiguration"},{default:o(()=>e[7]||(e[7]=[i("Einstellungen der Ein-/Ausgänge",-1)])),_:1,__:[7]}),e[9]||(e[9]=i(" im Bereich der Aktionen. ",-1))]),_:1,__:[8,9]}),s(B,{title:"Fahrzeuge, die nicht mit Sollstrom laden",buttons:[{buttonValue:!1,text:"nicht berücksichtigen",class:"btn-outline-danger"},{buttonValue:!0,text:"berücksichtigen",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/counter/config/consider_less_charging"],"onUpdate:modelValue":e[0]||(e[0]=r=>n.updateState("openWB/counter/config/consider_less_charging",r))},{help:o(()=>e[10]||(e[10]=[d("p",null," Wenn angesteckte Fahrzeuge, die nicht oder nicht mit der Sollstromstärke laden, im Lastmanagement berücksichtigt werden, wird für diese der Sollstrom reserviert. Dadurch können bei Eingreifen des Lastmanagements andere Fahrzeuge möglicherweise nur mit reduzierter Stromstärke laden und der reservierte Strom wird nicht genutzt. Wenn die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, nutzen sie den für sie reservierten Strom. ",-1),d("p",null," Wenn angesteckte Fahrzeuge, die nicht oder nicht mit der Sollstromstärke laden, nicht im Lastmanagement berücksichtigt werden, wird für diese auch kein Strom bei vorliegender Ladefreigabe reserviert bzw. es wird nur der tatsächlich genutzte Strom im Lastmanagement berücksichtigt. Andere Fahrzeuge können dadurch mit höherer Stromstärke laden. Wenn die maximalen Lastmanagement-Grenzen fast erreicht sind und die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, kann es zu einer kurzzeitigen Überschreitung der Lastmanagement-Grenzen kommen, bis im nächsten Zyklus die Stromstärken aller Ladepunkte an die neue Situation angepasst wurden. Das kurzzeitige Überschreiten der Maximal-Werte stellt für die Sicherungen in der Regel kein Problem dar. ",-1)])),_:1},8,["model-value"]),s(S,{title:"Hausverbrauch",options:g.getHcSourceIdOptions.options,groups:g.getHcSourceIdOptions.groups,"model-value":n.$store.state.mqtt["openWB/counter/config/home_consumption_source_id"],"onUpdate:modelValue":e[1]||(e[1]=r=>n.updateState("openWB/counter/config/home_consumption_source_id",r))},{help:o(()=>e[11]||(e[11]=[i(" Meist ist der Zähler am EVU-Punkt installiert, dann muss hier 'von openWB berechnen' ausgewählt werden. Wenn der Zähler im Hausverbrauchszweig installiert ist, die Struktur wie im ",-1),d("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Zähler",target:"_blank",rel:"noopener noreferrer"}," Wiki ",-1),i(" beschrieben anordnen und hier den Hausverbrauchszähler auswählen. Dann wird dieser Wert abzüglich der Ladeleistung als Hausverbrauch erfasst. ",-1)])),_:1},8,["options","groups","model-value"]),s(f,null,{default:o(()=>e[12]||(e[12]=[i(" Vorhandene Zählermodule ",-1)])),_:1,__:[12]}),s(c,{subtype:"info"},{default:o(()=>e[13]||(e[13]=[i(" Die maximale Leistung wird nur für den EVU-Zähler berücksichtigt. Bei Zwischenzählern begrenzt das Lastmanagement rein anhand der maximalen Phasenströme.",-1),d("br",null,null,-1),i(" Wenn ein Zähler nicht auslesbar ist, wird weiterhin versucht, diesen auszulesen und nach 60s die angenommene Leistung im Fehlerfall verwendet, die unten für jeden Zähler eingestellt wird, um eine Überlast zu vermeiden. Die angenommene Leistung wird gleichmäßig auf die Phasen verteilt.",-1),d("br",null,null,-1),i(" Überlicherweise sind Hausanschlüsse mit 24kW und 3*35A bzw. 43kW und 3*63A abgesichert. ",-1)])),_:1,__:[13]}),(u(!0),m(_,null,w(g.counterConfigs,r=>(u(),v(h,{key:r.id,collapsible:!0,collapsed:!0,subtype:"danger"},{header:o(()=>[s(b,{icon:["fas","gauge-high"]}),i(" "+W(r.name),1)]),default:o(()=>[s(p,{title:"Maximale Leistung",min:1,step:.1,required:"",unit:"kW","model-value":n.$store.state.mqtt["openWB/counter/"+r.id+"/config/max_total_power"]/1e3,"onUpdate:modelValue":a=>n.updateState("openWB/counter/"+r.id+"/config/max_total_power",a*1e3)},{help:o(()=>[...e[14]||(e[14]=[i(" Maximal zulässige Leistung für diesen (Zwischen-)Zähler. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),s(p,{title:"Maximaler Strom L1",min:6,step:1,unit:"A",required:"","model-value":n.$store.state.mqtt["openWB/counter/"+r.id+"/config/max_currents"][0],"onUpdate:modelValue":a=>n.updateState("openWB/counter/"+r.id+"/config/max_currents",a,"0")},{help:o(()=>[...e[15]||(e[15]=[i(" Maximal zulässiger Strom für die Phase 1 dieses (Zwischen-)Zählers. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),s(p,{title:"Maximaler Strom L2",min:6,step:1,unit:"A",required:"","model-value":n.$store.state.mqtt["openWB/counter/"+r.id+"/config/max_currents"][1],"onUpdate:modelValue":a=>n.updateState("openWB/counter/"+r.id+"/config/max_currents",a,"1")},{help:o(()=>[...e[16]||(e[16]=[i(" Maximal zulässiger Strom für die Phase 2 dieses (Zwischen-)Zählers. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),s(p,{title:"Maximaler Strom L3",min:6,step:1,unit:"A",required:"","model-value":n.$store.state.mqtt["openWB/counter/"+r.id+"/config/max_currents"][2],"onUpdate:modelValue":a=>n.updateState("openWB/counter/"+r.id+"/config/max_currents",a,"2")},{help:o(()=>[...e[17]||(e[17]=[i(" Maximal zulässiger Strom für die Phase 3 dieses (Zwischen-)Zählers. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),s(p,{title:"Maximale Leistung im Fehlerfall",min:0,step:.1,unit:"kW","model-value":n.$store.state.mqtt["openWB/counter/"+r.id+"/config/max_power_errorcase"]/1e3,"onUpdate:modelValue":a=>n.updateState("openWB/counter/"+r.id+"/config/max_power_errorcase",a*1e3)},{help:o(()=>[...e[18]||(e[18]=[i(" Angenommen Leistung für diesen (Zwischen-)Zähler, falls vom Zähler keine Werte abgefragt werden können. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128)),s(f,null,{default:o(()=>e[19]||(e[19]=[i(" Vorhandene Wechselrichtermodule ",-1)])),_:1,__:[19]}),(u(!0),m(_,null,w(g.inverterConfigs,r=>(u(),v(h,{key:r.id,collapsible:!0,collapsed:!0,subtype:"success"},{header:o(()=>[s(b,{icon:["fas","solar-panel"]}),i(" "+W(r.name),1)]),default:o(()=>[s(p,{title:"Maximale Ausgangsleistung des Wechselrichters",min:0,step:.1,unit:"kW",required:"","model-value":n.$store.state.mqtt["openWB/pv/"+r.id+"/config/max_ac_out"]/1e3,"onUpdate:modelValue":a=>n.updateState("openWB/pv/"+r.id+"/config/max_ac_out",a*1e3)},{help:o(()=>[...e[20]||(e[20]=[i(" Bei 0 kW erfolgt keine Berücksichtigung der maximalen Ausgangsleistung. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128))]))]),_:1}),s(h,{title:"Struktur",collapsible:!0,collapsed:!0},{default:o(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(u(),m("div",D,[s(c,{subtype:"info"},{default:o(()=>e[21]||(e[21]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[21]})])):(u(),m("div",O,[s(z,{title:"Anordnung der Komponenten","model-value":n.$store.state.mqtt["openWB/counter/get/hierarchy"],labels:g.hierarchyLabels,"onUpdate:modelValue":e[2]||(e[2]=r=>n.updateState("openWB/counter/get/hierarchy",r))},{help:o(()=>e[22]||(e[22]=[i(" Durch die Anordnung der Komponenten werden Abhängigkeiten abgebildet.",-1),d("br",null,null,-1),i(" An erster Stelle muss eine Zählerkomponente stehen, die den Netzanschlusspunkt erfasst. Dafür kann auch ein virtueller Zähler genutzt werden.",-1),d("br",null,null,-1),i(" Die weiteren Komponenten müssen hierarchisch so angeordnet werden, wie sie auch physisch im Stromnetz angeschlossen werden.",-1),d("br",null,null,-1),i(" Bei DC-gekoppelten Speichern sind diese hinter dem zugehörigen Wechselrichter zu platzieren, damit die Abhängigkeit in der Regelung berücksichtigt werden kann. ",-1)])),_:1},8,["model-value","labels"])]))]),_:1}),s(y,{"form-name":"loadManagementConfigForm",onSave:e[3]||(e[3]=r=>n.$emit("save")),onReset:e[4]||(e[4]=r=>n.$emit("reset")),onDefaults:e[5]||(e[5]=r=>n.$emit("defaults"))})])])}const Q=q(A,[["render",P],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LoadManagementConfig.vue"]]);export{Q as default}; diff --git a/web/settings/assets/MqttBridgeConfig-d0b5bf80.js b/web/settings/assets/MqttBridgeConfig-dcc167ed.js similarity index 96% rename from web/settings/assets/MqttBridgeConfig-d0b5bf80.js rename to web/settings/assets/MqttBridgeConfig-dcc167ed.js index 08d729f45d..c23d6ffa53 100644 --- a/web/settings/assets/MqttBridgeConfig-d0b5bf80.js +++ b/web/settings/assets/MqttBridgeConfig-dcc167ed.js @@ -1 +1 @@ -import{l as x,d as C,aa as A,F as q}from"./vendor-fortawesome-66071a0e.js";import{C as z}from"./index-93388667.js";import{_ as D,u,l as m,m as b,G as o,E as a,A as f,N as M,B as s,F as E,x as k,z as T,M as W}from"./vendor-25d394b4.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";x.add(C,A);const I={name:"OpenwbMqttBridgeConfigurationView",components:{FontAwesomeIcon:q},mixins:[z],emits:["sendCommand","save","reset"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/mqtt/bridge/+"],showMqttBridgeModal:!1,modalMqttBridgeIndex:void 0}},computed:{configuredMqttBridges:{get(){let t=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[e,v]of Object.entries(t))v.remote.is_openwb_cloud&&delete t[e];return t}}},methods:{addMqttBridge(t){t.stopPropagation(),this.$emit("sendCommand",{command:"addMqttBridge",data:{}})},getMqttBridgeIndex(t){return parseInt(t.match(/(?:\/)(\d+)$/)[1])},removeMqttBridgeModal(t,e){e.stopPropagation(),this.modalMqttBridgeIndex=this.getMqttBridgeIndex(t),this.showMqttBridgeModal=!0},removeMqttBridge(t,e){this.showMqttBridgeModal=!1,e=="confirm"&&this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:t}})},getMqttBridgeName(t){return this.$store.state.mqtt["openWB/system/mqtt/bridge/"+t]?this.$store.state.mqtt["openWB/system/mqtt/bridge/"+t].name:t}}},P={class:"mqttBridgeConfiguration"},Q={key:0},Z={key:1},y=["name"];function N(t,e,v,F,g,i){const U=u("openwb-base-modal-dialog"),c=u("openwb-base-alert"),h=u("font-awesome-icon"),_=u("openwb-base-avatar"),p=u("openwb-base-text-input"),d=u("openwb-base-button-group-input"),V=u("openwb-base-heading"),B=u("openwb-base-number-input"),S=u("openwb-base-submit-buttons"),w=u("openwb-base-card");return m(),b(M,null,[o(U,{show:g.showMqttBridgeModal,title:"MQTT-Brücke löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=r=>i.removeMqttBridge(g.modalMqttBridgeIndex,r))},{default:a(()=>[s(' Wollen Sie die MQTT-Brücke "'+E(i.getMqttBridgeName(g.modalMqttBridgeIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),f("div",P,[o(c,{subtype:"danger"},{default:a(()=>e[1]||(e[1]=[s(" ACHTUNG: Die Konfiguration einer MQTT-Brücke erlaubt allen Nutzern mit Zugang zum entfernten MQTT-Server alle weitergeleiteten Daten dieser openWB einzusehen!",-1),f("br",null,null,-1),s(' Es wird dringend empfohlen, dies nur für nicht-öffentliche MQTT-Server unter Verwendung starker Transport-Verschlüsselung (TLS) mit persönlichem Login und strenger Zugriffskontrolle (zumindest für die MQTT-Themen unterhalb von "Entfernter Präfix") zu aktivieren! ',-1)])),_:1,__:[1]}),o(w,{title:"Konfigurierte MQTT-Brücken"},{actions:a(()=>[t.$store.state.mqtt["openWB/general/extern"]===!1?(m(),k(_,{key:0,class:"bg-success clickable",onClick:i.addMqttBridge},{default:a(()=>[o(h,{icon:["fas","plus"]})]),_:1},8,["onClick"])):T("",!0)]),default:a(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(m(),b("div",Q,[o(c,{subtype:"info"},{default:a(()=>e[2]||(e[2]=[s(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[2]})])):(m(),b("div",Z,[Object.keys(i.configuredMqttBridges).length===0?(m(),k(c,{key:0,subtype:"info"},{default:a(()=>e[3]||(e[3]=[s(" Es wurde noch keine MQTT-Brücke konfiguriert. ",-1)])),_:1,__:[3]})):T("",!0),(m(!0),b(M,null,W(i.configuredMqttBridges,(r,l)=>(m(),b("form",{key:l,name:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(l)},[o(w,{title:r.name,collapsible:!0,collapsed:!0,subtype:"primary"},{actions:a(()=>[o(_,{class:"bg-danger clickable",onClick:n=>i.removeMqttBridgeModal(l,n)},{default:a(()=>[o(h,{icon:["fas","trash"]})]),_:2},1032,["onClick"])]),footer:a(()=>[o(S,{"form-name":"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(l),"hide-defaults":!0,onSave:n=>t.$emit("save",[l]),onReset:n=>t.$emit("reset",[l])},null,8,["form-name","onSave","onReset"])]),default:a(()=>[o(p,{title:"Bezeichnung",subtype:"text",required:"",pattern:"[A-Za-z0-9]+","model-value":r.name,"onUpdate:modelValue":n=>t.updateState(l,n,"name")},{help:a(()=>[...e[4]||(e[4]=[s(" Die Bezeichnung darf nur aus Buchstaben ohne Umlaute und Zahlen bestehen. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o(d,{title:"Brücke aktivieren",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.active,"onUpdate:modelValue":n=>t.updateState(l,n,"active")},null,8,["model-value","onUpdate:modelValue"]),e[14]||(e[14]=f("hr",null,null,-1)),o(V,null,{default:a(()=>[...e[5]||(e[5]=[s(" Einstellungen zur Verbindung ",-1)])]),_:1,__:[5]}),o(p,{title:"Entfernter Server",subtype:"host",required:"","model-value":r.remote.host,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.host")},null,8,["model-value","onUpdate:modelValue"]),o(B,{title:"Entfernter Port",required:"",min:1,max:65535,"model-value":r.remote.port,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.port")},null,8,["model-value","onUpdate:modelValue"]),o(p,{title:"Benutzername",subtype:"user",required:"",pattern:"[a-zA-Z0-9_\\-+.]+","model-value":r.remote.username,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.username")},null,8,["model-value","onUpdate:modelValue"]),o(p,{title:"Passwort",subtype:"password",required:"","model-value":r.remote.password,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.password")},null,8,["model-value","onUpdate:modelValue"]),o(p,{title:"Präfix",subtype:"text",pattern:"[A-Za-z0-9_\\-]+(\\/[A-Za-z0-9_\\-]+)?\\/","model-value":r.remote.prefix,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.prefix")},{help:a(()=>[...e[6]||(e[6]=[s(' Das Präfix darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. Optional kann mit einem Schrägstrich "/" eine Topic-Struktur abgebildet werden. Am Ende des Präfixes muss ein Schrägstrich "/" stehen. ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o(p,{title:"Client ID",subtype:"text",required:"",pattern:"[A-Za-z0-9_\\-]+","model-value":r.remote.client_id,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.client_id")},{help:a(()=>[...e[7]||(e[7]=[s(" Die Client ID darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o(d,{title:"MQTT Protokoll",required:"required",buttons:[{buttonValue:"mqttv31",text:"v3.1"},{buttonValue:"mqttv311",text:"v3.1.1"}],"model-value":r.remote.protocol,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.protocol")},null,8,["model-value","onUpdate:modelValue"]),o(d,{title:"TLS Version",buttons:[{buttonValue:"auto",text:"Automatisch",class:"btn-outline-success"},{buttonValue:"tlsv1.0",text:"v1.0",class:"btn-outline-warning"},{buttonValue:"tlsv1.1",text:"v1.1",class:"btn-outline-warning"},{buttonValue:"tlsv1.2",text:"v1.2"}],"model-value":r.remote.tls_version,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.tls_version")},{help:a(()=>[...e[8]||(e[8]=[s(' In der Einstellung "Automatisch" wird die Version zwischen Client und Server ausgehandelt. Wenn erforderlich, kann eine spezielle Version erzwungen werden. Versionen kleiner 1.2 gelten als veraltet und sollten nicht mehr verwendet werden. ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o(d,{title:"Brücke signalisieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.remote.try_private,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.try_private")},{help:a(()=>[...e[9]||(e[9]=[s(" Aktiviert eine proprietäre Protokoll-Erweiterung des Mosquitto Brokers, welche dem entfernten Broker signalisiert, dass es sich um eine MQTT Brücke handelt. Ergibt bessere Leistung mit Mosquitto-Brokern, ist jedoch inkompatibel mit vielen anderen MQTT-Brokern. Daher bitte nur aktivieren, wenn der Ziel-Broker sicher ein Mosquitto-Broker ist. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),e[15]||(e[15]=f("hr",null,null,-1)),o(V,null,{default:a(()=>[...e[10]||(e[10]=[s(" Datenübertragung ",-1)])]),_:1,__:[10]}),o(d,{title:"Alle Statusdaten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.data_transfer.status,"onUpdate:modelValue":n=>t.updateState(l,n,"data_transfer.status")},{help:a(()=>[...e[11]||(e[11]=[s(" ToDo... ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o(d,{title:"Datenserien für Diagramme",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.data_transfer.graph,"onUpdate:modelValue":n=>t.updateState(l,n,"data_transfer.graph")},{help:a(()=>[...e[12]||(e[12]=[s(" ToDo... ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o(d,{title:"Fernkonfiguration ermöglichen",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.data_transfer.configuration,"onUpdate:modelValue":n=>t.updateState(l,n,"data_transfer.configuration")},{help:a(()=>[...e[13]||(e[13]=[s(" ToDo... ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2,__:[14,15]},1032,["title"])],8,y))),128))]))]),_:1})])],64)}const J=D(I,[["render",N],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/MqttBridgeConfig.vue"]]);export{J as default}; +import{l as x,d as C,aa as A,F as q}from"./vendor-fortawesome-d6ee0a65.js";import{C as z}from"./index-eccf5556.js";import{_ as D,u,l as m,m as b,G as o,E as a,A as f,N as M,B as s,F as E,x as k,z as T,M as W}from"./vendor-57e3a63c.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";x.add(C,A);const I={name:"OpenwbMqttBridgeConfigurationView",components:{FontAwesomeIcon:q},mixins:[z],emits:["sendCommand","save","reset"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/mqtt/bridge/+"],showMqttBridgeModal:!1,modalMqttBridgeIndex:void 0}},computed:{configuredMqttBridges:{get(){let t=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[e,v]of Object.entries(t))v.remote.is_openwb_cloud&&delete t[e];return t}}},methods:{addMqttBridge(t){t.stopPropagation(),this.$emit("sendCommand",{command:"addMqttBridge",data:{}})},getMqttBridgeIndex(t){return parseInt(t.match(/(?:\/)(\d+)$/)[1])},removeMqttBridgeModal(t,e){e.stopPropagation(),this.modalMqttBridgeIndex=this.getMqttBridgeIndex(t),this.showMqttBridgeModal=!0},removeMqttBridge(t,e){this.showMqttBridgeModal=!1,e=="confirm"&&this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:t}})},getMqttBridgeName(t){return this.$store.state.mqtt["openWB/system/mqtt/bridge/"+t]?this.$store.state.mqtt["openWB/system/mqtt/bridge/"+t].name:t}}},P={class:"mqttBridgeConfiguration"},Q={key:0},Z={key:1},y=["name"];function N(t,e,v,F,g,i){const U=u("openwb-base-modal-dialog"),c=u("openwb-base-alert"),h=u("font-awesome-icon"),_=u("openwb-base-avatar"),p=u("openwb-base-text-input"),d=u("openwb-base-button-group-input"),V=u("openwb-base-heading"),B=u("openwb-base-number-input"),S=u("openwb-base-submit-buttons"),w=u("openwb-base-card");return m(),b(M,null,[o(U,{show:g.showMqttBridgeModal,title:"MQTT-Brücke löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=r=>i.removeMqttBridge(g.modalMqttBridgeIndex,r))},{default:a(()=>[s(' Wollen Sie die MQTT-Brücke "'+E(i.getMqttBridgeName(g.modalMqttBridgeIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),f("div",P,[o(c,{subtype:"danger"},{default:a(()=>e[1]||(e[1]=[s(" ACHTUNG: Die Konfiguration einer MQTT-Brücke erlaubt allen Nutzern mit Zugang zum entfernten MQTT-Server alle weitergeleiteten Daten dieser openWB einzusehen!",-1),f("br",null,null,-1),s(' Es wird dringend empfohlen, dies nur für nicht-öffentliche MQTT-Server unter Verwendung starker Transport-Verschlüsselung (TLS) mit persönlichem Login und strenger Zugriffskontrolle (zumindest für die MQTT-Themen unterhalb von "Entfernter Präfix") zu aktivieren! ',-1)])),_:1,__:[1]}),o(w,{title:"Konfigurierte MQTT-Brücken"},{actions:a(()=>[t.$store.state.mqtt["openWB/general/extern"]===!1?(m(),k(_,{key:0,class:"bg-success clickable",onClick:i.addMqttBridge},{default:a(()=>[o(h,{icon:["fas","plus"]})]),_:1},8,["onClick"])):T("",!0)]),default:a(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(m(),b("div",Q,[o(c,{subtype:"info"},{default:a(()=>e[2]||(e[2]=[s(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[2]})])):(m(),b("div",Z,[Object.keys(i.configuredMqttBridges).length===0?(m(),k(c,{key:0,subtype:"info"},{default:a(()=>e[3]||(e[3]=[s(" Es wurde noch keine MQTT-Brücke konfiguriert. ",-1)])),_:1,__:[3]})):T("",!0),(m(!0),b(M,null,W(i.configuredMqttBridges,(r,l)=>(m(),b("form",{key:l,name:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(l)},[o(w,{title:r.name,collapsible:!0,collapsed:!0,subtype:"primary"},{actions:a(()=>[o(_,{class:"bg-danger clickable",onClick:n=>i.removeMqttBridgeModal(l,n)},{default:a(()=>[o(h,{icon:["fas","trash"]})]),_:2},1032,["onClick"])]),footer:a(()=>[o(S,{"form-name":"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(l),"hide-defaults":!0,onSave:n=>t.$emit("save",[l]),onReset:n=>t.$emit("reset",[l])},null,8,["form-name","onSave","onReset"])]),default:a(()=>[o(p,{title:"Bezeichnung",subtype:"text",required:"",pattern:"[A-Za-z0-9]+","model-value":r.name,"onUpdate:modelValue":n=>t.updateState(l,n,"name")},{help:a(()=>[...e[4]||(e[4]=[s(" Die Bezeichnung darf nur aus Buchstaben ohne Umlaute und Zahlen bestehen. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o(d,{title:"Brücke aktivieren",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.active,"onUpdate:modelValue":n=>t.updateState(l,n,"active")},null,8,["model-value","onUpdate:modelValue"]),e[14]||(e[14]=f("hr",null,null,-1)),o(V,null,{default:a(()=>[...e[5]||(e[5]=[s(" Einstellungen zur Verbindung ",-1)])]),_:1,__:[5]}),o(p,{title:"Entfernter Server",subtype:"host",required:"","model-value":r.remote.host,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.host")},null,8,["model-value","onUpdate:modelValue"]),o(B,{title:"Entfernter Port",required:"",min:1,max:65535,"model-value":r.remote.port,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.port")},null,8,["model-value","onUpdate:modelValue"]),o(p,{title:"Benutzername",subtype:"user",required:"",pattern:"[a-zA-Z0-9_\\-+.]+","model-value":r.remote.username,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.username")},null,8,["model-value","onUpdate:modelValue"]),o(p,{title:"Passwort",subtype:"password",required:"","model-value":r.remote.password,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.password")},null,8,["model-value","onUpdate:modelValue"]),o(p,{title:"Präfix",subtype:"text",pattern:"[A-Za-z0-9_\\-]+(\\/[A-Za-z0-9_\\-]+)?\\/","model-value":r.remote.prefix,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.prefix")},{help:a(()=>[...e[6]||(e[6]=[s(' Das Präfix darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. Optional kann mit einem Schrägstrich "/" eine Topic-Struktur abgebildet werden. Am Ende des Präfixes muss ein Schrägstrich "/" stehen. ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o(p,{title:"Client ID",subtype:"text",required:"",pattern:"[A-Za-z0-9_\\-]+","model-value":r.remote.client_id,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.client_id")},{help:a(()=>[...e[7]||(e[7]=[s(" Die Client ID darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o(d,{title:"MQTT Protokoll",required:"required",buttons:[{buttonValue:"mqttv31",text:"v3.1"},{buttonValue:"mqttv311",text:"v3.1.1"}],"model-value":r.remote.protocol,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.protocol")},null,8,["model-value","onUpdate:modelValue"]),o(d,{title:"TLS Version",buttons:[{buttonValue:"auto",text:"Automatisch",class:"btn-outline-success"},{buttonValue:"tlsv1.0",text:"v1.0",class:"btn-outline-warning"},{buttonValue:"tlsv1.1",text:"v1.1",class:"btn-outline-warning"},{buttonValue:"tlsv1.2",text:"v1.2"}],"model-value":r.remote.tls_version,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.tls_version")},{help:a(()=>[...e[8]||(e[8]=[s(' In der Einstellung "Automatisch" wird die Version zwischen Client und Server ausgehandelt. Wenn erforderlich, kann eine spezielle Version erzwungen werden. Versionen kleiner 1.2 gelten als veraltet und sollten nicht mehr verwendet werden. ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o(d,{title:"Brücke signalisieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.remote.try_private,"onUpdate:modelValue":n=>t.updateState(l,n,"remote.try_private")},{help:a(()=>[...e[9]||(e[9]=[s(" Aktiviert eine proprietäre Protokoll-Erweiterung des Mosquitto Brokers, welche dem entfernten Broker signalisiert, dass es sich um eine MQTT Brücke handelt. Ergibt bessere Leistung mit Mosquitto-Brokern, ist jedoch inkompatibel mit vielen anderen MQTT-Brokern. Daher bitte nur aktivieren, wenn der Ziel-Broker sicher ein Mosquitto-Broker ist. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),e[15]||(e[15]=f("hr",null,null,-1)),o(V,null,{default:a(()=>[...e[10]||(e[10]=[s(" Datenübertragung ",-1)])]),_:1,__:[10]}),o(d,{title:"Alle Statusdaten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.data_transfer.status,"onUpdate:modelValue":n=>t.updateState(l,n,"data_transfer.status")},{help:a(()=>[...e[11]||(e[11]=[s(" ToDo... ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o(d,{title:"Datenserien für Diagramme",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.data_transfer.graph,"onUpdate:modelValue":n=>t.updateState(l,n,"data_transfer.graph")},{help:a(()=>[...e[12]||(e[12]=[s(" ToDo... ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),o(d,{title:"Fernkonfiguration ermöglichen",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.data_transfer.configuration,"onUpdate:modelValue":n=>t.updateState(l,n,"data_transfer.configuration")},{help:a(()=>[...e[13]||(e[13]=[s(" ToDo... ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2,__:[14,15]},1032,["title"])],8,y))),128))]))]),_:1})])],64)}const J=D(I,[["render",N],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/MqttBridgeConfig.vue"]]);export{J as default}; diff --git a/web/settings/assets/OpenwbIoPattern-86c2d923.js b/web/settings/assets/OpenwbIoPattern-43abb292.js similarity index 98% rename from web/settings/assets/OpenwbIoPattern-86c2d923.js rename to web/settings/assets/OpenwbIoPattern-43abb292.js index 3fb03c6b5a..9c8231eb32 100644 --- a/web/settings/assets/OpenwbIoPattern-86c2d923.js +++ b/web/settings/assets/OpenwbIoPattern-43abb292.js @@ -1 +1 @@ -import{l as T,n as M,o as q,p as D,q as y,aa as C,d as O,O as A,f as I,a as z,F as E}from"./vendor-fortawesome-66071a0e.js";import{_ as B,u as _,l as a,m as l,A as i,F as P,z as d,N as f,M as g,G as c,E as k,q as x,y as h,K as N,p as S,B as V,x as j}from"./vendor-25d394b4.js";T.add(M,q,D,y,C,O,A,I,z);const p={undefined:{value:void 0,icon:["fas","question"],iconClass:"text-secondary",title:"Nicht relevant",nextValue:!0},true:{value:!0,icon:["fas","square"],iconClass:"",title:"Geschlossen",nextValue:!1},false:{value:!1,icon:["far","square"],iconClass:"",title:"Offen",nextValue:void 0}},H={name:"IoActionContactPattern",components:{FontAwesomeIcon:E},inheritAttrs:!1,props:{contacts:{type:Object,required:!0},modelValue:{type:Array,required:!0},title:{type:String,required:!1,default:"Eingangsmuster"},actionTitle:{type:String,required:!1,default:"Verhalten"},enableAddDelete:{type:Boolean,default:!0},minPatterns:{type:Number,default:1},maxPatterns:{type:Number,default:10},showCheckPattern:{type:Boolean,required:!1,default:!0}},emits:["update:modelValue"],data(){return{showTestPattern:!1,testPattern:{...this.contacts}}},computed:{value:{get(){return this.modelValue},set(s){this.$emit("update:modelValue",s)}},numContacts(){return Object.keys(this.contacts).length},addPatternDisabled(){return this.value.length>=this.maxPatterns},addPatternTooltip(){return this.addPatternDisabled?this.maxPatterns===1?"Es kann maximal ein Muster definiert werden":`Es können maximal ${this.maxPatterns} Muster definiert werden`:"Muster hinzufügen"},deletePatternDisabled(){return this.value.length<=this.minPatterns},deletePatternTooltip(){return this.deletePatternDisabled?this.minPatterns===1?"Es muss mindestens ein Muster definiert sein":`Es müssen mindestens ${this.minPatterns} Muster definiert sein`:"Muster löschen"}},watch:{contacts(){this.testPattern={...this.contacts}}},mounted(){for(;this.value.lengththis.testPattern[e]===void 0?!0:this.value[s].matrix[e]===this.testPattern[e])},deletePattern(s){delete this.value.splice(s,1)},addPattern(){this.value.push({matrix:{},value:null})}}},F={class:"w-100 mb-2"},Q=["span"],G=["colspan"],L={key:0,rowspan:"2",class:"contact-header"},U=["colspan"],W={key:0},J={key:0,class:"text-center"},R={key:1},X={key:0},Y=["colspan"],Z={key:1,class:"bg-info"},K=["colspan"];function $(s,e,r,ee,u,n){const m=_("font-awesome-icon"),w=_("openwb-base-click-button"),v=_("openwb-base-button-group-input");return a(),l(f,null,[i("table",F,[i("colgroup",null,[i("col",{span:n.numContacts,class:"bg-white",style:{border:"1px solid #dee2e6"}},null,8,Q)]),i("thead",null,[i("tr",null,[i("th",{colspan:n.numContacts},P(r.title),9,G),u.showTestPattern?(a(),l("th",L,e[6]||(e[6]=[i("div",null,"Prüfergebnis",-1)]))):d("",!0),i("th",{colspan:r.enableAddDelete?2:1},null,8,U)]),i("tr",null,[(a(!0),l(f,null,g(Object.keys(r.contacts),t=>(a(),l("th",{key:t,class:"contact-header"},[i("div",null,P(t),1)]))),128)),i("th",null,P(r.actionTitle),1),r.enableAddDelete?(a(),l("th",W,[c(w,{class:"bg-success text-white",tooltip:n.addPatternTooltip,disabled:n.addPatternDisabled,onClick:e[0]||(e[0]=t=>n.addPattern())},{default:k(()=>[c(m,{icon:["fas","plus"]})]),_:1},8,["tooltip","disabled"])])):d("",!0)])]),i("tbody",null,[(a(!0),l(f,null,g(n.value,(t,b)=>(a(),l("tr",{key:b},[(a(!0),l(f,null,g(Object.keys(r.contacts),o=>(a(),l("td",{key:o,class:"text-center"},[c(m,{title:n.getTitle(t.matrix[o]),icon:n.getIcon(t.matrix[o]),class:x([n.getIconClass(t.matrix[o]),"fa-fw clickable"]),size:"2x",transform:t.matrix[o]==null?"shrink-6":null,mask:t.matrix[o]==null?["fas","square"]:null,onClick:h(te=>n.toggleContact(b,o),["stop","prevent"]),onMousedown:e[1]||(e[1]=h(()=>{},["stop","prevent"])),onMouseup:e[2]||(e[2]=h(()=>{},["stop","prevent"]))},null,8,["title","icon","class","transform","mask","onClick"])]))),128)),u.showTestPattern?(a(),l("td",J,[c(m,{title:"Muster passt",icon:["fas","check-circle"],class:x(["text-success fa-fw",{hidden:!n.patternMatch(b)}])},null,8,["class"])])):d("",!0),i("td",N({ref_for:!0},s.$attrs),[S(s.$slots,"default",{pattern:t},()=>[V(P(t.value),1)],!0)],16),r.enableAddDelete?(a(),l("td",R,[c(w,{class:"bg-danger text-white",tooltip:n.deletePatternTooltip,disabled:n.deletePatternDisabled,onClick:o=>n.deletePattern(b)},{default:k(()=>[c(m,{icon:["fas","trash"]})]),_:2},1032,["tooltip","disabled","onClick"])])):d("",!0)]))),128)),u.showTestPattern?(a(),l("tr",X,[(a(!0),l(f,null,g(Object.keys(r.contacts),t=>(a(),l("td",{key:t,class:"pt-4"},"   "))),128)),i("td",{colspan:r.enableAddDelete?3:2},null,8,Y)])):d("",!0),u.showTestPattern?(a(),l("tr",Z,[(a(!0),l(f,null,g(Object.keys(r.contacts),t=>(a(),l("td",{key:t,class:"text-center text-body"},[c(m,{title:n.getTitle(u.testPattern[t]),icon:n.getIcon(u.testPattern[t]),class:x([n.getIconClass(u.testPattern[t]),"fa-fw clickable"]),size:"2x",transform:u.testPattern[t]==null?"shrink-6":null,mask:u.testPattern[t]==null?["fas","square"]:null,onClick:h(b=>n.toggleTestPattern(t),["stop","prevent"]),onMousedown:e[3]||(e[3]=h(()=>{},["stop","prevent"])),onMouseup:e[4]||(e[4]=h(()=>{},["stop","prevent"]))},null,8,["title","icon","class","transform","mask","onClick"])]))),128)),i("td",{class:"pl-2",colspan:r.enableAddDelete?3:2}," Prüfmuster ",8,K)])):d("",!0)])]),r.showCheckPattern?(a(),j(v,{key:0,modelValue:u.showTestPattern,"onUpdate:modelValue":e[5]||(e[5]=t=>u.showTestPattern=t),title:"Prüfmuster",buttons:[{buttonValue:!1,text:"Verbergen"},{buttonValue:!0,text:"Anzeigen"}]},{help:k(()=>e[7]||(e[7]=[V(' Das Prüfmuster ist eine Hilfe um zu testen, ob die Eingangsmuster zum gewünschten Verhalten passen. Ein grüner Haken in der Spalte "Prüfergebnis" zeigt an, dass das Eingangsmuster zu dem Prüfmuster passt. Eingangsmuster mit unterschiedlichem Verhalten dürfen nicht gleichzeitig passen, da sonst das Verhalten nicht eindeutig ist. ',-1)])),_:1},8,["modelValue"])):d("",!0)],64)}const ae=B(H,[["render",$],["__scopeId","data-v-3624c649"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/OpenwbIoPattern.vue"]]);export{ae as O}; +import{l as T,n as M,o as q,p as D,q as y,aa as C,d as O,O as A,f as I,a as z,F as E}from"./vendor-fortawesome-d6ee0a65.js";import{_ as B,u as _,l as a,m as l,A as i,F as P,z as d,N as f,M as g,G as c,E as k,q as x,y as h,K as N,p as S,B as V,x as j}from"./vendor-57e3a63c.js";T.add(M,q,D,y,C,O,A,I,z);const p={undefined:{value:void 0,icon:["fas","question"],iconClass:"text-secondary",title:"Nicht relevant",nextValue:!0},true:{value:!0,icon:["fas","square"],iconClass:"",title:"Geschlossen",nextValue:!1},false:{value:!1,icon:["far","square"],iconClass:"",title:"Offen",nextValue:void 0}},H={name:"IoActionContactPattern",components:{FontAwesomeIcon:E},inheritAttrs:!1,props:{contacts:{type:Object,required:!0},modelValue:{type:Array,required:!0},title:{type:String,required:!1,default:"Eingangsmuster"},actionTitle:{type:String,required:!1,default:"Verhalten"},enableAddDelete:{type:Boolean,default:!0},minPatterns:{type:Number,default:1},maxPatterns:{type:Number,default:10},showCheckPattern:{type:Boolean,required:!1,default:!0}},emits:["update:modelValue"],data(){return{showTestPattern:!1,testPattern:{...this.contacts}}},computed:{value:{get(){return this.modelValue},set(s){this.$emit("update:modelValue",s)}},numContacts(){return Object.keys(this.contacts).length},addPatternDisabled(){return this.value.length>=this.maxPatterns},addPatternTooltip(){return this.addPatternDisabled?this.maxPatterns===1?"Es kann maximal ein Muster definiert werden":`Es können maximal ${this.maxPatterns} Muster definiert werden`:"Muster hinzufügen"},deletePatternDisabled(){return this.value.length<=this.minPatterns},deletePatternTooltip(){return this.deletePatternDisabled?this.minPatterns===1?"Es muss mindestens ein Muster definiert sein":`Es müssen mindestens ${this.minPatterns} Muster definiert sein`:"Muster löschen"}},watch:{contacts(){this.testPattern={...this.contacts}}},mounted(){for(;this.value.lengththis.testPattern[e]===void 0?!0:this.value[s].matrix[e]===this.testPattern[e])},deletePattern(s){delete this.value.splice(s,1)},addPattern(){this.value.push({matrix:{},value:null})}}},F={class:"w-100 mb-2"},Q=["span"],G=["colspan"],L={key:0,rowspan:"2",class:"contact-header"},U=["colspan"],W={key:0},J={key:0,class:"text-center"},R={key:1},X={key:0},Y=["colspan"],Z={key:1,class:"bg-info"},K=["colspan"];function $(s,e,r,ee,u,n){const m=_("font-awesome-icon"),w=_("openwb-base-click-button"),v=_("openwb-base-button-group-input");return a(),l(f,null,[i("table",F,[i("colgroup",null,[i("col",{span:n.numContacts,class:"bg-white",style:{border:"1px solid #dee2e6"}},null,8,Q)]),i("thead",null,[i("tr",null,[i("th",{colspan:n.numContacts},P(r.title),9,G),u.showTestPattern?(a(),l("th",L,e[6]||(e[6]=[i("div",null,"Prüfergebnis",-1)]))):d("",!0),i("th",{colspan:r.enableAddDelete?2:1},null,8,U)]),i("tr",null,[(a(!0),l(f,null,g(Object.keys(r.contacts),t=>(a(),l("th",{key:t,class:"contact-header"},[i("div",null,P(t),1)]))),128)),i("th",null,P(r.actionTitle),1),r.enableAddDelete?(a(),l("th",W,[c(w,{class:"bg-success text-white",tooltip:n.addPatternTooltip,disabled:n.addPatternDisabled,onClick:e[0]||(e[0]=t=>n.addPattern())},{default:k(()=>[c(m,{icon:["fas","plus"]})]),_:1},8,["tooltip","disabled"])])):d("",!0)])]),i("tbody",null,[(a(!0),l(f,null,g(n.value,(t,b)=>(a(),l("tr",{key:b},[(a(!0),l(f,null,g(Object.keys(r.contacts),o=>(a(),l("td",{key:o,class:"text-center"},[c(m,{title:n.getTitle(t.matrix[o]),icon:n.getIcon(t.matrix[o]),class:x([n.getIconClass(t.matrix[o]),"fa-fw clickable"]),size:"2x",transform:t.matrix[o]==null?"shrink-6":null,mask:t.matrix[o]==null?["fas","square"]:null,onClick:h(te=>n.toggleContact(b,o),["stop","prevent"]),onMousedown:e[1]||(e[1]=h(()=>{},["stop","prevent"])),onMouseup:e[2]||(e[2]=h(()=>{},["stop","prevent"]))},null,8,["title","icon","class","transform","mask","onClick"])]))),128)),u.showTestPattern?(a(),l("td",J,[c(m,{title:"Muster passt",icon:["fas","check-circle"],class:x(["text-success fa-fw",{hidden:!n.patternMatch(b)}])},null,8,["class"])])):d("",!0),i("td",N({ref_for:!0},s.$attrs),[S(s.$slots,"default",{pattern:t},()=>[V(P(t.value),1)],!0)],16),r.enableAddDelete?(a(),l("td",R,[c(w,{class:"bg-danger text-white",tooltip:n.deletePatternTooltip,disabled:n.deletePatternDisabled,onClick:o=>n.deletePattern(b)},{default:k(()=>[c(m,{icon:["fas","trash"]})]),_:2},1032,["tooltip","disabled","onClick"])])):d("",!0)]))),128)),u.showTestPattern?(a(),l("tr",X,[(a(!0),l(f,null,g(Object.keys(r.contacts),t=>(a(),l("td",{key:t,class:"pt-4"},"   "))),128)),i("td",{colspan:r.enableAddDelete?3:2},null,8,Y)])):d("",!0),u.showTestPattern?(a(),l("tr",Z,[(a(!0),l(f,null,g(Object.keys(r.contacts),t=>(a(),l("td",{key:t,class:"text-center text-body"},[c(m,{title:n.getTitle(u.testPattern[t]),icon:n.getIcon(u.testPattern[t]),class:x([n.getIconClass(u.testPattern[t]),"fa-fw clickable"]),size:"2x",transform:u.testPattern[t]==null?"shrink-6":null,mask:u.testPattern[t]==null?["fas","square"]:null,onClick:h(b=>n.toggleTestPattern(t),["stop","prevent"]),onMousedown:e[3]||(e[3]=h(()=>{},["stop","prevent"])),onMouseup:e[4]||(e[4]=h(()=>{},["stop","prevent"]))},null,8,["title","icon","class","transform","mask","onClick"])]))),128)),i("td",{class:"pl-2",colspan:r.enableAddDelete?3:2}," Prüfmuster ",8,K)])):d("",!0)])]),r.showCheckPattern?(a(),j(v,{key:0,modelValue:u.showTestPattern,"onUpdate:modelValue":e[5]||(e[5]=t=>u.showTestPattern=t),title:"Prüfmuster",buttons:[{buttonValue:!1,text:"Verbergen"},{buttonValue:!0,text:"Anzeigen"}]},{help:k(()=>e[7]||(e[7]=[V(' Das Prüfmuster ist eine Hilfe um zu testen, ob die Eingangsmuster zum gewünschten Verhalten passen. Ein grüner Haken in der Spalte "Prüfergebnis" zeigt an, dass das Eingangsmuster zu dem Prüfmuster passt. Eingangsmuster mit unterschiedlichem Verhalten dürfen nicht gleichzeitig passen, da sonst das Verhalten nicht eindeutig ist. ',-1)])),_:1},8,["modelValue"])):d("",!0)],64)}const ae=B(H,[["render",$],["__scopeId","data-v-3624c649"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/OpenwbIoPattern.vue"]]);export{ae as O}; diff --git a/web/settings/assets/OpenwbIoSinglePattern-14df64f6.js b/web/settings/assets/OpenwbIoSinglePattern-2e542bd1.js similarity index 97% rename from web/settings/assets/OpenwbIoSinglePattern-14df64f6.js rename to web/settings/assets/OpenwbIoSinglePattern-2e542bd1.js index b3cc054a78..4ef0b55624 100644 --- a/web/settings/assets/OpenwbIoSinglePattern-14df64f6.js +++ b/web/settings/assets/OpenwbIoSinglePattern-2e542bd1.js @@ -1 +1 @@ -import{_ as m,u as i,l,m as p,G as f,E as r,B as s,F as u,x as g,z as h,N as b}from"./vendor-25d394b4.js";const v={name:"IoActionSinglePattern",inheritAttrs:!1,props:{modelValue:{type:Array,required:!0},contacts:{type:Object,required:!0},contactType:{type:String,required:!1,default:"input",validator:e=>["input","output"].includes(e)},title:{type:String,required:!1,default:void 0}},emits:["update:modelValue"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},contactTitle(){return this.title!==void 0?this.title:this.contactType==="input"?"Eingang":"Ausgang"},contactHelpText(){return this.contactType==="input"?"Bitte den Eingang auswählen, auf welchen reagiert werden soll. Es kann nur ein Eingang ausgewählt werden.":"Bitte den Ausgang auswählen, welcher geschaltet werden soll. Es kann nur ein Ausgang ausgewählt werden."},normalModeHelpText(){return this.contactType==="input"?"Bitte Einstellen, ob der Eingang für den normalen Betrieb (nicht aktiv, nicht gedimmt etc.) geschlossen (NC) oder geöffnet (NO) ist.":"Bitte Einstellen, ob der Ausgang für den normalen Betrieb (nicht aktiv, nicht gedimmt etc.) geschlossen (NC) oder geöffnet (NO) ist."},definedContact:{get(){return this.value!==void 0&&Object.keys(this.value[0].matrix).length!==0?Object.keys(this.value[0].matrix)[0]:null},set(e){if(Object.keys(this.value[0].matrix).length===0){this.value=[{value:!0,matrix:{[e]:!0}},{value:!1,matrix:{[e]:!1}}];return}this.value=[{value:!0,matrix:{[e]:this.definedNormalMode}},{value:!1,matrix:{[e]:!this.definedNormalMode}}]}},definedNormalMode:{get(){return Object.values(this.value[0].matrix)[0]},set(e){this.value=[{value:!0,matrix:{[this.definedContact]:e}},{value:!1,matrix:{[this.definedContact]:!e}}]}},contactOptions(){return Object.keys(this.contacts).map(e=>({value:e,text:e}))}}};function x(e,n,o,_,y,t){const d=i("openwb-base-select-input"),c=i("openwb-base-button-group-input");return l(),p(b,null,[f(d,{modelValue:t.definedContact,"onUpdate:modelValue":n[0]||(n[0]=a=>t.definedContact=a),title:t.contactTitle,required:"","not-selected":"Bitte auswählen","empty-value":null,options:t.contactOptions},{help:r(()=>[s(u(t.contactHelpText),1)]),_:1},8,["modelValue","title","options"]),o.contactType==="input"?(l(),g(c,{key:0,modelValue:t.definedNormalMode,"onUpdate:modelValue":n[1]||(n[1]=a=>t.definedNormalMode=a),title:"Normaler Zustand",buttons:[{buttonValue:!1,text:"geschlossen (NC)"},{buttonValue:!0,text:"geöffnet (NO)"}],disabled:!t.definedContact,required:""},{help:r(()=>[s(u(t.normalModeHelpText),1)]),_:1},8,["modelValue","disabled"])):h("",!0)],64)}const w=m(v,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/OpenwbIoSinglePattern.vue"]]);export{w as O}; +import{_ as m,u as i,l,m as p,G as f,E as r,B as s,F as u,x as g,z as h,N as b}from"./vendor-57e3a63c.js";const v={name:"IoActionSinglePattern",inheritAttrs:!1,props:{modelValue:{type:Array,required:!0},contacts:{type:Object,required:!0},contactType:{type:String,required:!1,default:"input",validator:e=>["input","output"].includes(e)},title:{type:String,required:!1,default:void 0}},emits:["update:modelValue"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},contactTitle(){return this.title!==void 0?this.title:this.contactType==="input"?"Eingang":"Ausgang"},contactHelpText(){return this.contactType==="input"?"Bitte den Eingang auswählen, auf welchen reagiert werden soll. Es kann nur ein Eingang ausgewählt werden.":"Bitte den Ausgang auswählen, welcher geschaltet werden soll. Es kann nur ein Ausgang ausgewählt werden."},normalModeHelpText(){return this.contactType==="input"?"Bitte Einstellen, ob der Eingang für den normalen Betrieb (nicht aktiv, nicht gedimmt etc.) geschlossen (NC) oder geöffnet (NO) ist.":"Bitte Einstellen, ob der Ausgang für den normalen Betrieb (nicht aktiv, nicht gedimmt etc.) geschlossen (NC) oder geöffnet (NO) ist."},definedContact:{get(){return this.value!==void 0&&Object.keys(this.value[0].matrix).length!==0?Object.keys(this.value[0].matrix)[0]:null},set(e){if(Object.keys(this.value[0].matrix).length===0){this.value=[{value:!0,matrix:{[e]:!0}},{value:!1,matrix:{[e]:!1}}];return}this.value=[{value:!0,matrix:{[e]:this.definedNormalMode}},{value:!1,matrix:{[e]:!this.definedNormalMode}}]}},definedNormalMode:{get(){return Object.values(this.value[0].matrix)[0]},set(e){this.value=[{value:!0,matrix:{[this.definedContact]:e}},{value:!1,matrix:{[this.definedContact]:!e}}]}},contactOptions(){return Object.keys(this.contacts).map(e=>({value:e,text:e}))}}};function x(e,n,o,_,y,t){const d=i("openwb-base-select-input"),c=i("openwb-base-button-group-input");return l(),p(b,null,[f(d,{modelValue:t.definedContact,"onUpdate:modelValue":n[0]||(n[0]=a=>t.definedContact=a),title:t.contactTitle,required:"","not-selected":"Bitte auswählen","empty-value":null,options:t.contactOptions},{help:r(()=>[s(u(t.contactHelpText),1)]),_:1},8,["modelValue","title","options"]),o.contactType==="input"?(l(),g(c,{key:0,modelValue:t.definedNormalMode,"onUpdate:modelValue":n[1]||(n[1]=a=>t.definedNormalMode=a),title:"Normaler Zustand",buttons:[{buttonValue:!1,text:"geschlossen (NC)"},{buttonValue:!0,text:"geöffnet (NO)"}],disabled:!t.definedContact,required:""},{help:r(()=>[s(u(t.normalModeHelpText),1)]),_:1},8,["modelValue","disabled"])):h("",!0)],64)}const w=m(v,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/OpenwbIoSinglePattern.vue"]]);export{w as O}; diff --git a/web/settings/assets/OpenwbSortableList-2a6a01cb.js b/web/settings/assets/OpenwbSortableList-e9396362.js similarity index 92% rename from web/settings/assets/OpenwbSortableList-2a6a01cb.js rename to web/settings/assets/OpenwbSortableList-e9396362.js index 5d9ff11d81..d889af1e25 100644 --- a/web/settings/assets/OpenwbSortableList-2a6a01cb.js +++ b/web/settings/assets/OpenwbSortableList-e9396362.js @@ -1 +1 @@ -import{O as v}from"./index-93388667.js";import{_,a5 as V,u as l,l as o,x as i,E as d,A as p,q as k,G as m,z as S,B as b,F as g,D as O,p as f,m as B}from"./vendor-25d394b4.js";import{l as L,ak as E,Q as N,_ as C,Z as q,Y as A,F as x}from"./vendor-fortawesome-66071a0e.js";L.add(E,N,C,q,A);const $={name:"OpenwbNestedList",components:{draggable:V,FontAwesomeIcon:x},props:{list:{type:Object,required:!1,default:void 0},labels:{type:Object,required:!1,default:void 0}},methods:{classes(e){var t="";switch(e.type){case"bat":t+="battery";break;case"cp":t+="charge-point";break;default:t+=e.type;break}return t},getElementLabel(e){return this.labels&&e in this.labels?this.labels[e]:e},getElementIcon(e){switch(e.type){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"inverter":return["fas","solar-panel"];default:return}}}};function j(e,t,n,h,w,a){const r=l("font-awesome-icon"),c=l("openwb-nested-list",!0),u=l("draggable");return o(),i(u,{class:"dragArea w-100 mb-0",tag:"ul",list:n.list,group:{name:"g1"},"item-key":"id",handle:".handle"},{item:d(({element:s})=>[p("li",null,[p("div",{class:k(["element-titel",a.classes(s)])},[p("span",null,[m(r,{class:"handle",icon:["fas","arrows-alt"]}),a.getElementIcon(s)?(o(),i(r,{key:0,icon:a.getElementIcon(s)},null,8,["icon"])):S("",!0),b(" "+g(a.getElementLabel(s.id)),1)])],2),m(c,{modelValue:s.children,"onUpdate:modelValue":y=>s.children=y,labels:n.labels},null,8,["modelValue","onUpdate:modelValue","labels"])])]),_:1},8,["list"])}const D=_($,[["render",j],["__scopeId","data-v-82c9421a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbNestedList.vue"]]),F={name:"OpenwbSortableList",components:{OpenwbBaseSettingElement:v,OpenwbNestedList:D},props:{id:{type:String,required:!1,default:void 0},title:{type:String,required:!1,default:""},modelValue:{type:Array,required:!1,default:void 0},labels:{type:Object,default:void 0}},emits:["update:modelValue"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}},I={key:1};function U(e,t,n,h,w,a){const r=l("openwb-nested-list"),c=l("openwb-base-setting-element");return o(),i(c,null,O({title:d(()=>[f(e.$slots,"title",{},()=>[b(g(n.title),1)])]),default:d(()=>[a.value!==void 0?(o(),i(r,{key:0,modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=u=>a.value=u),labels:n.labels},null,8,["modelValue","labels"])):(o(),B("div",I,"Warte auf Daten..."))]),_:2},[e.$slots.help?{name:"help",fn:d(()=>[f(e.$slots,"help")]),key:"0"}:void 0]),1024)}const H=_(F,[["render",U],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbSortableList.vue"]]);export{H as S}; +import{O as v}from"./index-eccf5556.js";import{_,a5 as V,u as l,l as o,x as i,E as d,A as p,q as k,G as m,z as S,B as b,F as g,D as O,p as f,m as B}from"./vendor-57e3a63c.js";import{l as L,ak as E,Q as N,_ as C,Z as q,Y as A,F as x}from"./vendor-fortawesome-d6ee0a65.js";L.add(E,N,C,q,A);const $={name:"OpenwbNestedList",components:{draggable:V,FontAwesomeIcon:x},props:{list:{type:Object,required:!1,default:void 0},labels:{type:Object,required:!1,default:void 0}},methods:{classes(e){var t="";switch(e.type){case"bat":t+="battery";break;case"cp":t+="charge-point";break;default:t+=e.type;break}return t},getElementLabel(e){return this.labels&&e in this.labels?this.labels[e]:e},getElementIcon(e){switch(e.type){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"inverter":return["fas","solar-panel"];default:return}}}};function j(e,t,n,h,w,a){const r=l("font-awesome-icon"),c=l("openwb-nested-list",!0),u=l("draggable");return o(),i(u,{class:"dragArea w-100 mb-0",tag:"ul",list:n.list,group:{name:"g1"},"item-key":"id",handle:".handle"},{item:d(({element:s})=>[p("li",null,[p("div",{class:k(["element-titel",a.classes(s)])},[p("span",null,[m(r,{class:"handle",icon:["fas","arrows-alt"]}),a.getElementIcon(s)?(o(),i(r,{key:0,icon:a.getElementIcon(s)},null,8,["icon"])):S("",!0),b(" "+g(a.getElementLabel(s.id)),1)])],2),m(c,{modelValue:s.children,"onUpdate:modelValue":y=>s.children=y,labels:n.labels},null,8,["modelValue","onUpdate:modelValue","labels"])])]),_:1},8,["list"])}const D=_($,[["render",j],["__scopeId","data-v-82c9421a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbNestedList.vue"]]),F={name:"OpenwbSortableList",components:{OpenwbBaseSettingElement:v,OpenwbNestedList:D},props:{id:{type:String,required:!1,default:void 0},title:{type:String,required:!1,default:""},modelValue:{type:Array,required:!1,default:void 0},labels:{type:Object,default:void 0}},emits:["update:modelValue"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}},I={key:1};function U(e,t,n,h,w,a){const r=l("openwb-nested-list"),c=l("openwb-base-setting-element");return o(),i(c,null,O({title:d(()=>[f(e.$slots,"title",{},()=>[b(g(n.title),1)])]),default:d(()=>[a.value!==void 0?(o(),i(r,{key:0,modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=u=>a.value=u),labels:n.labels},null,8,["modelValue","labels"])):(o(),B("div",I,"Warte auf Daten..."))]),_:2},[e.$slots.help?{name:"help",fn:d(()=>[f(e.$slots,"help")]),key:"0"}:void 0]),1024)}const H=_(F,[["render",U],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbSortableList.vue"]]);export{H as S}; diff --git a/web/settings/assets/OptionalComponents-7d7b65c9.js b/web/settings/assets/OptionalComponents-1d822d98.js similarity index 91% rename from web/settings/assets/OptionalComponents-7d7b65c9.js rename to web/settings/assets/OptionalComponents-1d822d98.js index 600b2c2663..7643e0a961 100644 --- a/web/settings/assets/OptionalComponents-7d7b65c9.js +++ b/web/settings/assets/OptionalComponents-1d822d98.js @@ -1,2 +1,2 @@ -import{_ as B,C as O}from"./index-93388667.js";import{_ as S}from"./dynamic-import-helper-be004503.js";import{l as V,a6 as z,a7 as E,F as I}from"./vendor-fortawesome-66071a0e.js";import{_ as h,u as l,l as s,m as u,x as y,E as o,B as i,F as g,G as n,A as r,a2 as L,a3 as F,N as q,z as _}from"./vendor-25d394b4.js";import{V as N}from"./VehicleIdWikiHint-c0918982.js";const j={props:{displayTheme:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},P=h(j,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/DisplayThemeConfigMixin.vue"]]),A={name:"DisplayThemeFallback",mixins:[P]},M={class:"display-theme-fallback"},U={key:1};function R(t,e,p,v,w,m){const d=l("openwb-base-alert"),b=l("openwb-base-textarea");return s(),u("div",M,[Object.keys(t.displayTheme.configuration).length==0?(s(),y(d,{key:0,subtype:"info"},{default:o(()=>[i(' Das Display-Theme "'+g(t.displayTheme.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(s(),u("div",U,[n(d,{subtype:"warning"},{default:o(()=>[i(' Es wurde keine Konfigurationsseite für das Display-Theme "'+g(t.displayTheme.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(b,{title:"Konfiguration",subtype:"json","model-value":t.displayTheme.configuration,"onUpdate:modelValue":e[0]||(e[0]=f=>t.updateConfiguration(f,"configuration"))},{help:o(()=>e[1]||(e[1]=[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),n(d,{subtype:"info"},{default:o(()=>[r("pre",null,g(JSON.stringify(t.displayTheme.configuration,void 0,2)),1)]),_:1})]))])}const x=h(A,[["render",R],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeFallback.vue"]]);V.add(z,E);const H={name:"OpenwbDisplayThemeProxy",components:{FontAwesomeIcon:I},props:{displayTheme:{type:Object,required:!0}},emits:["update:configuration"],methods:{getDisplayThemeComponent(){return console.debug(`loading display theme: ${this.displayTheme.type}`),L({loader:()=>S(Object.assign({"./cards/displayTheme.vue":()=>B(()=>import("./displayTheme-14df5dae.js"),["assets/displayTheme-14df5dae.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/index-93388667.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./colors/displayTheme.vue":()=>B(()=>import("./displayTheme-2283c696.js"),["assets/displayTheme-2283c696.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/index-93388667.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"])}),`./${this.displayTheme.type}/displayTheme.vue`),errorComponent:x})},updateConfiguration(t){this.$emit("update:configuration",t)}}};function J(t,e,p,v,w,m){const d=l("font-awesome-icon"),b=l("openwb-base-alert"),f=l("openwb-base-heading");return s(),u(q,null,[p.displayTheme.official?(s(),y(b,{key:0,subtype:"success"},{default:o(()=>[n(d,{icon:["fas","certificate"]}),i(' Das ausgewählte Display Theme "'+g(p.displayTheme.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(s(),y(b,{key:1,subtype:"info"},{default:o(()=>[n(d,{icon:["fas","people-group"]}),i(' Das ausgewählte Display Theme "'+g(p.displayTheme.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),n(f,null,{default:o(()=>[i(' Einstellungen für Display Theme "'+g(p.displayTheme.name)+'" ',1)]),_:1}),(s(),y(F(m.getDisplayThemeComponent()),{"display-theme":p.displayTheme,"onUpdate:configuration":e[0]||(e[0]=c=>m.updateConfiguration(c))},null,40,["display-theme"]))],64)}const G=h(H,[["render",J],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeProxy.vue"]]),K={name:"OpenwbOptionalComponentsView",components:{OpenwbDisplayThemeProxy:G,VehicleIdWikiHint:N},mixins:[O],emits:["save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/+/config","openWB/chargepoint/+/get/rfid","openWB/chargepoint/+/get/rfid_timestamp","openWB/chargepoint/+/set/rfid","openWB/optional/rfid/active","openWB/optional/led/active","ToDo/optional/led/instant_blocked","ToDo/optional/led/pv_blocked","ToDo/optional/led/scheduled_blocked","ToDo/optional/led/standby_blocked","ToDo/optional/led/stop_blocked","ToDo/optional/led/instant","ToDo/optional/led/pv","ToDo/optional/led/scheduled","ToDo/optional/led/standby","ToDo/optional/led/stop","openWB/optional/int_display/active","openWB/optional/int_display/standby","openWB/optional/int_display/rotation","openWB/optional/int_display/on_if_plugged_in","openWB/optional/int_display/pin_active","openWB/optional/int_display/pin_code","openWB/optional/int_display/theme","openWB/optional/int_display/only_local_charge_points","openWB/system/configurable/display_themes","openWB/optional/et/active","openWB/optional/et/config/provider","openWB/optional/et/config/max_price"],tempIdTagList:{}}},computed:{idTagList(){return Object.values(this.updateIdTagList())},displayThemeList(){return this.$store.state.mqtt["openWB/system/configurable/display_themes"]},displayThemeGroupList(){var e;let t=[{label:"openWB",options:[]},{label:"Community",options:[]}];return(e=this.displayThemeList)==null||e.forEach(p=>{p.official===!0?t[0].options.push(p):t[1].options.push(p)}),t}},methods:{getIdFromTopic(t){return t.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,"")},updateIdTagList(){return Object.entries(this.getWildcardTopics("^openWB/chargepoint/[^+/]+/[gs]et/rfid$",!0)).forEach(t=>{t[1]!==null&&(this.tempIdTagList[t[1]]=`${t[1]} (${t[0].includes("/set/")?"zugewiesen":"erfasst"} an ${this.getChargePointName(this.getIdFromTopic(t[0]))})`)}),this.tempIdTagList},getChargePointName(t){return this.$store.state.mqtt["openWB/chargepoint/"+t+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+t+"/config"].name:"Ladepunkt "+t},getDisplayThemeDefaults(t){const e=this.displayThemeList.find(p=>p.value==t);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...JSON.parse(JSON.stringify(e.defaults))}:(console.warn("no default configuration found for display theme type!",t),{})},updateSelectedDisplayTheme(t){this.updateState("openWB/optional/int_display/theme",this.getDisplayThemeDefaults(t))},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)}}},Z={class:"optionalComponents"},Q={name:"optionalComponentsForm"},X={key:0},Y={key:1},ee={key:0},te={key:0},ne={key:1},oe={key:2},ie={key:0};function ae(t,e,p,v,w,m){const d=l("openwb-base-button-group-input"),b=l("openwb-base-alert"),f=l("vehicle-id-wiki-hint"),c=l("openwb-base-textarea"),T=l("openwb-base-card"),D=l("openwb-base-heading"),W=l("openwb-base-range-input"),k=l("openwb-base-select-input"),$=l("openwb-display-theme-proxy"),C=l("openwb-base-submit-buttons");return s(),u("div",Z,[r("form",Q,[n(T,{title:"Identifikation"},{default:o(()=>[n(d,{title:"Identifikation aktivieren","model-value":t.$store.state.mqtt["openWB/optional/rfid/active"],buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[0]||(e[0]=a=>t.updateState("openWB/optional/rfid/active",a))},{help:o(()=>e[10]||(e[10]=[i(" Die Identifikation kann zum Entsperren von Ladepunkten und/oder zur Zuordnung von Fahrzeugen genutzt werden und kann auf mehreren Wegen erfolgen: ",-1),r("ul",null,[r("li",null,"Über einen in der openWB verbauten RFID-Reader (optional, z.B. anhand des Lieferscheins prüfen)."),r("li",null," Durch die automatische Erkennung an einer openWB Pro (muss in den Einstellungen aktiviert werden). "),r("li",null,"Durch manuelle Eingabe einer ID am Display einer openWB.")],-1)])),_:1},8,["model-value"]),t.$store.state.mqtt["openWB/general/extern"]===!0?(s(),u("div",X,[n(b,{subtype:"info"},{default:o(()=>e[11]||(e[11]=[i(' Weitere Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[11]})])):(s(),u("div",Y,[t.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(s(),u("div",ee,[n(b,{subtype:"info",class:"mb-1"},{default:o(()=>[e[12]||(e[12]=i(" Die ID-Tags müssen in den Einstellungen der Fahrzeuge diesen zugeordnet werden.",-1)),e[13]||(e[13]=r("br",null,null,-1)),e[14]||(e[14]=i(" Es kann zuerst das Fahrzeug angesteckt und dann der ID-Tag erfasst werden oder andersherum. Im letzten Fall muss innerhalb von 5 Minuten ein Fahrzeug angesteckt werden, sonst wird der ID-Tag verworfen.",-1)),e[15]||(e[15]=r("br",null,null,-1)),n(f)]),_:1,__:[12,13,14,15]}),n(c,{title:"Erkannte ID-Tags",readonly:"",disabled:"","model-value":m.idTagList.join(` +import{_ as B,C as O}from"./index-eccf5556.js";import{_ as S}from"./dynamic-import-helper-be004503.js";import{l as V,a6 as z,a7 as E,F as I}from"./vendor-fortawesome-d6ee0a65.js";import{_ as h,u as l,l as s,m as u,x as y,E as o,B as i,F as g,G as n,A as r,a2 as L,a3 as F,N as q,z as _}from"./vendor-57e3a63c.js";import{V as N}from"./VehicleIdWikiHint-714fb4c5.js";const j={props:{displayTheme:{type:Object,required:!0}},emits:["update:configuration"],methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},P=h(j,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/DisplayThemeConfigMixin.vue"]]),A={name:"DisplayThemeFallback",mixins:[P]},M={class:"display-theme-fallback"},U={key:1};function R(t,e,p,v,w,m){const d=l("openwb-base-alert"),b=l("openwb-base-textarea");return s(),u("div",M,[Object.keys(t.displayTheme.configuration).length==0?(s(),y(d,{key:0,subtype:"info"},{default:o(()=>[i(' Das Display-Theme "'+g(t.displayTheme.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(s(),u("div",U,[n(d,{subtype:"warning"},{default:o(()=>[i(' Es wurde keine Konfigurationsseite für das Display-Theme "'+g(t.displayTheme.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(b,{title:"Konfiguration",subtype:"json","model-value":t.displayTheme.configuration,"onUpdate:modelValue":e[0]||(e[0]=f=>t.updateConfiguration(f,"configuration"))},{help:o(()=>e[1]||(e[1]=[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),n(d,{subtype:"info"},{default:o(()=>[r("pre",null,g(JSON.stringify(t.displayTheme.configuration,void 0,2)),1)]),_:1})]))])}const x=h(A,[["render",R],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeFallback.vue"]]);V.add(z,E);const H={name:"OpenwbDisplayThemeProxy",components:{FontAwesomeIcon:I},props:{displayTheme:{type:Object,required:!0}},emits:["update:configuration"],methods:{getDisplayThemeComponent(){return console.debug(`loading display theme: ${this.displayTheme.type}`),L({loader:()=>S(Object.assign({"./cards/displayTheme.vue":()=>B(()=>import("./displayTheme-c1cc8f13.js"),["assets/displayTheme-c1cc8f13.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/index-eccf5556.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./colors/displayTheme.vue":()=>B(()=>import("./displayTheme-9b47aca9.js"),["assets/displayTheme-9b47aca9.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/index-eccf5556.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"])}),`./${this.displayTheme.type}/displayTheme.vue`),errorComponent:x})},updateConfiguration(t){this.$emit("update:configuration",t)}}};function J(t,e,p,v,w,m){const d=l("font-awesome-icon"),b=l("openwb-base-alert"),f=l("openwb-base-heading");return s(),u(q,null,[p.displayTheme.official?(s(),y(b,{key:0,subtype:"success"},{default:o(()=>[n(d,{icon:["fas","certificate"]}),i(' Das ausgewählte Display Theme "'+g(p.displayTheme.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(s(),y(b,{key:1,subtype:"info"},{default:o(()=>[n(d,{icon:["fas","people-group"]}),i(' Das ausgewählte Display Theme "'+g(p.displayTheme.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),n(f,null,{default:o(()=>[i(' Einstellungen für Display Theme "'+g(p.displayTheme.name)+'" ',1)]),_:1}),(s(),y(F(m.getDisplayThemeComponent()),{"display-theme":p.displayTheme,"onUpdate:configuration":e[0]||(e[0]=c=>m.updateConfiguration(c))},null,40,["display-theme"]))],64)}const G=h(H,[["render",J],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeProxy.vue"]]),K={name:"OpenwbOptionalComponentsView",components:{OpenwbDisplayThemeProxy:G,VehicleIdWikiHint:N},mixins:[O],emits:["save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/+/config","openWB/chargepoint/+/get/rfid","openWB/chargepoint/+/get/rfid_timestamp","openWB/chargepoint/+/set/rfid","openWB/optional/rfid/active","openWB/optional/led/active","ToDo/optional/led/instant_blocked","ToDo/optional/led/pv_blocked","ToDo/optional/led/scheduled_blocked","ToDo/optional/led/standby_blocked","ToDo/optional/led/stop_blocked","ToDo/optional/led/instant","ToDo/optional/led/pv","ToDo/optional/led/scheduled","ToDo/optional/led/standby","ToDo/optional/led/stop","openWB/optional/int_display/active","openWB/optional/int_display/standby","openWB/optional/int_display/rotation","openWB/optional/int_display/on_if_plugged_in","openWB/optional/int_display/pin_active","openWB/optional/int_display/pin_code","openWB/optional/int_display/theme","openWB/optional/int_display/only_local_charge_points","openWB/system/configurable/display_themes","openWB/optional/et/active","openWB/optional/et/config/provider","openWB/optional/et/config/max_price"],tempIdTagList:{}}},computed:{idTagList(){return Object.values(this.updateIdTagList())},displayThemeList(){return this.$store.state.mqtt["openWB/system/configurable/display_themes"]},displayThemeGroupList(){var e;let t=[{label:"openWB",options:[]},{label:"Community",options:[]}];return(e=this.displayThemeList)==null||e.forEach(p=>{p.official===!0?t[0].options.push(p):t[1].options.push(p)}),t}},methods:{getIdFromTopic(t){return t.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,"")},updateIdTagList(){return Object.entries(this.getWildcardTopics("^openWB/chargepoint/[^+/]+/[gs]et/rfid$",!0)).forEach(t=>{t[1]!==null&&(this.tempIdTagList[t[1]]=`${t[1]} (${t[0].includes("/set/")?"zugewiesen":"erfasst"} an ${this.getChargePointName(this.getIdFromTopic(t[0]))})`)}),this.tempIdTagList},getChargePointName(t){return this.$store.state.mqtt["openWB/chargepoint/"+t+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+t+"/config"].name:"Ladepunkt "+t},getDisplayThemeDefaults(t){const e=this.displayThemeList.find(p=>p.value==t);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...JSON.parse(JSON.stringify(e.defaults))}:(console.warn("no default configuration found for display theme type!",t),{})},updateSelectedDisplayTheme(t){this.updateState("openWB/optional/int_display/theme",this.getDisplayThemeDefaults(t))},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)}}},Z={class:"optionalComponents"},Q={name:"optionalComponentsForm"},X={key:0},Y={key:1},ee={key:0},te={key:0},ne={key:1},oe={key:2},ie={key:0};function ae(t,e,p,v,w,m){const d=l("openwb-base-button-group-input"),b=l("openwb-base-alert"),f=l("vehicle-id-wiki-hint"),c=l("openwb-base-textarea"),T=l("openwb-base-card"),D=l("openwb-base-heading"),W=l("openwb-base-range-input"),k=l("openwb-base-select-input"),$=l("openwb-display-theme-proxy"),C=l("openwb-base-submit-buttons");return s(),u("div",Z,[r("form",Q,[n(T,{title:"Identifikation"},{default:o(()=>[n(d,{title:"Identifikation aktivieren","model-value":t.$store.state.mqtt["openWB/optional/rfid/active"],buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[0]||(e[0]=a=>t.updateState("openWB/optional/rfid/active",a))},{help:o(()=>e[10]||(e[10]=[i(" Die Identifikation kann zum Entsperren von Ladepunkten und/oder zur Zuordnung von Fahrzeugen genutzt werden und kann auf mehreren Wegen erfolgen: ",-1),r("ul",null,[r("li",null,"Über einen in der openWB verbauten RFID-Reader (optional, z.B. anhand des Lieferscheins prüfen)."),r("li",null," Durch die automatische Erkennung an einer openWB Pro (muss in den Einstellungen aktiviert werden). "),r("li",null,"Durch manuelle Eingabe einer ID am Display einer openWB.")],-1)])),_:1},8,["model-value"]),t.$store.state.mqtt["openWB/general/extern"]===!0?(s(),u("div",X,[n(b,{subtype:"info"},{default:o(()=>e[11]||(e[11]=[i(' Weitere Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[11]})])):(s(),u("div",Y,[t.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(s(),u("div",ee,[n(b,{subtype:"info",class:"mb-1"},{default:o(()=>[e[12]||(e[12]=i(" Die ID-Tags müssen in den Einstellungen der Fahrzeuge diesen zugeordnet werden.",-1)),e[13]||(e[13]=r("br",null,null,-1)),e[14]||(e[14]=i(" Es kann zuerst das Fahrzeug angesteckt und dann der ID-Tag erfasst werden oder andersherum. Im letzten Fall muss innerhalb von 5 Minuten ein Fahrzeug angesteckt werden, sonst wird der ID-Tag verworfen.",-1)),e[15]||(e[15]=r("br",null,null,-1)),n(f)]),_:1,__:[12,13,14,15]}),n(c,{title:"Erkannte ID-Tags",readonly:"",disabled:"","model-value":m.idTagList.join(` `)},{help:o(()=>e[16]||(e[16]=[i(" Solange diese Seite geöffnet ist, werden alle erfassten ID-Tags in dieser Liste aufgeführt. Bei der openWB Pro/Pro+ nur bei angestecktem Fahrzeug. ",-1)])),_:1},8,["model-value"])])):_("",!0)]))]),_:1}),n(T,{title:"Display (intern oder extern)"},{default:o(()=>[n(d,{title:"Integriertes Display","model-value":t.$store.state.mqtt["openWB/optional/int_display/active"],buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"onUpdate:modelValue":e[1]||(e[1]=a=>t.updateState("openWB/optional/int_display/active",a))},{help:o(()=>e[17]||(e[17]=[i(' Je nach Bestellung kann die openWB mit oder ohne Display geliefert worden sein. Auch die Variante "Standalone" bietet beide Optionen. Bitte prüfe zuerst die Hardwareausstattung deiner openWB (z.B. Lieferschein). ',-1)])),_:1},8,["model-value"]),t.$store.state.mqtt["openWB/optional/int_display/active"]==!0?(s(),u("div",te,[n(d,{title:"Orientierung","model-value":t.$store.state.mqtt["openWB/optional/int_display/rotation"],buttons:[{buttonValue:0,text:"0°"},{buttonValue:90,text:"90°"},{buttonValue:180,text:"180°"},{buttonValue:270,text:"270°"}],"onUpdate:modelValue":e[2]||(e[2]=a=>t.updateState("openWB/optional/int_display/rotation",a))},{help:o(()=>e[18]||(e[18]=[i(" Mit dieser Einstellung kann das Display im Uhrzeigersinn gedreht werden, falls erforderlich. Nach einer Änderung ist ein Neustart erforderlich!",-1),r("br",null,null,-1),i(" Diese Einstellung erfordert ein Raspberry Pi Display. Für eine openWB series2 mit integriertem Display muss 0° ausgewählt werden, für eine Standalone mit Display 180°. Anzeigen, welche über HDMI angeschlossen sind, werden nicht unterstützt. ",-1)])),_:1},8,["model-value"]),e[21]||(e[21]=r("hr",null,null,-1)),n(D,null,{default:o(()=>e[19]||(e[19]=[i(" Display Standby ",-1)])),_:1,__:[19]}),n(W,{title:"Ausschaltzeit",min:0,max:12,step:1,"model-value":t.$store.state.mqtt["openWB/optional/int_display/standby"],unit:"Sek",labels:[{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:30,value:30},{label:45,value:45},{label:"1 Min",value:60},{label:"1,5 Min",value:90},{label:"2 Min",value:120},{label:"3 Min",value:180},{label:"4 Min",value:240},{label:"5 Min",value:300},{label:"10 Min",value:600},{label:"Immer an",value:0}],"onUpdate:modelValue":e[3]||(e[3]=a=>t.updateState("openWB/optional/int_display/standby",a))},{help:o(()=>e[20]||(e[20]=[i(" Hier kann eine Zeitspanne angegeben werden, nach der das Display ausgeschaltet wird. ",-1)])),_:1},8,["model-value"])])):_("",!0),t.$store.state.mqtt["openWB/general/extern"]===!0?(s(),u("div",ne,[e[23]||(e[23]=r("hr",null,null,-1)),n(b,{subtype:"info"},{default:o(()=>e[22]||(e[22]=[i(' Weitere Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[22]})])):(s(),u("div",oe,[e[26]||(e[26]=r("hr",null,null,-1)),n(d,{title:"Ladepunkte auf secondary openWB","model-value":t.$store.state.mqtt["openWB/optional/int_display/only_local_charge_points"],buttons:[{buttonValue:!1,text:"Alle",class:"btn-outline-danger"},{buttonValue:!0,text:"Nur Lokale",class:"btn-outline-success"}],"onUpdate:modelValue":e[4]||(e[4]=a=>t.updateState("openWB/optional/int_display/only_local_charge_points",a))},{help:o(()=>e[24]||(e[24]=[i(" Hiermit kann festgelegt werden, ob an angebundenen secondary openWB alle oder nur die jeweils lokalen Ladepunkte angezeigt werden sollen. ",-1)])),_:1},8,["model-value"]),e[27]||(e[27]=r("hr",null,null,-1)),t.$store.state.mqtt["openWB/optional/int_display/theme"]!==void 0?(s(),u("div",ie,[n(k,{class:"mb-2",title:"Theme des Displays",groups:m.displayThemeGroupList,"model-value":t.$store.state.mqtt["openWB/optional/int_display/theme"].type,"onUpdate:modelValue":e[5]||(e[5]=a=>m.updateSelectedDisplayTheme(a))},{help:o(()=>e[25]||(e[25]=[i(" Hier können unterschiedliche Display-Anzeigen, s.g. Themes, ausgewählt werden. Die Anzahl der Themes wird sich mit zukünftigen Releases erhöhen. ",-1)])),_:1},8,["groups","model-value"]),t.$store.state.mqtt["openWB/optional/int_display/theme"].type?(s(),y($,{key:0,"display-theme":t.$store.state.mqtt["openWB/optional/int_display/theme"],"onUpdate:configuration":e[6]||(e[6]=a=>m.updateConfiguration("openWB/optional/int_display/theme",a))},null,8,["display-theme"])):_("",!0)])):_("",!0)]))]),_:1}),n(C,{"form-name":"optionalComponentsForm",onSave:e[7]||(e[7]=a=>t.$emit("save")),onReset:e[8]||(e[8]=a=>t.$emit("reset")),onDefaults:e[9]||(e[9]=a=>t.$emit("defaults"))})])])}const se=h(K,[["render",ae],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/OptionalComponents.vue"]]),me=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"}));export{P as D,me as O}; diff --git a/web/settings/assets/PVChargeConfig-aa930462.js b/web/settings/assets/PVChargeConfig-9086cd97.js similarity index 98% rename from web/settings/assets/PVChargeConfig-aa930462.js rename to web/settings/assets/PVChargeConfig-9086cd97.js index c49dc3b860..d7027708d0 100644 --- a/web/settings/assets/PVChargeConfig-aa930462.js +++ b/web/settings/assets/PVChargeConfig-9086cd97.js @@ -1 +1 @@ -import{C as S}from"./index-93388667.js";import{l as B,_ as z,a8 as V,a9 as k,F as y}from"./vendor-fortawesome-66071a0e.js";import{_ as E,u as d,l as g,m as p,A as o,G as i,E as a,B as t,F as C,x as v,z as b}from"./vendor-25d394b4.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";B.add(z,V,k);const q={name:"OpenwbPVChargeConfigView",components:{FontAwesomeIcon:y},mixins:[S],emits:["save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/pv_charging/control_range","openWB/general/chargemode_config/pv_charging/feed_in_yield","openWB/general/chargemode_config/pv_charging/switch_on_threshold","openWB/general/chargemode_config/pv_charging/switch_on_delay","openWB/general/chargemode_config/pv_charging/switch_off_threshold","openWB/general/chargemode_config/pv_charging/switch_off_delay","openWB/general/chargemode_config/pv_charging/phases_to_use","openWB/general/chargemode_config/pv_charging/bat_mode","openWB/general/chargemode_config/pv_charging/bat_power_reserve","openWB/general/chargemode_config/pv_charging/bat_power_reserve_active","openWB/general/chargemode_config/pv_charging/bat_power_discharge","openWB/general/chargemode_config/pv_charging/bat_power_discharge_active","openWB/general/chargemode_config/pv_charging/min_bat_soc"],calculatedControlMode:void 0}},computed:{controlMode:{get(){if(this.calculatedControlMode!==void 0)return this.calculatedControlMode;const n="openWB/general/chargemode_config/pv_charging/control_range";let e=this.$store.state.mqtt[n];var u="individual";return typeof e<"u"&&(e[0]===-230&&e[1]===0?u="export":e[0]===0&&e[1]===230?u="import":e[0]===-115&&e[1]===115?u="balanced":u="individual"),u},set(n){const e="openWB/general/chargemode_config/pv_charging/control_range";switch(this.calculatedControlMode=n,n){case"export":this.updateState(e,[-230,0]);break;case"import":this.updateState(e,[0,230]);break;case"balanced":this.updateState(e,[-115,115]);break}}},chargingSwitchRange:{get(){return this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_threshold"]+this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_threshold"]}},batMode:{get(){return this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_mode"]},set(n){this.updateState("openWB/general/chargemode_config/pv_charging/bat_mode",n)}}},watch:{controlMode(n){this.calculatedControlMode=n}}},M={class:"pvChargeConfig"},L={name:"pvChargeConfigForm"},P={key:0},U={key:1},R={key:0},$={key:1},A={key:0};function F(n,e,u,D,N,s){const m=d("openwb-base-alert"),c=d("openwb-base-button-group-input"),l=d("openwb-base-number-input"),f=d("openwb-base-card"),h=d("font-awesome-icon"),w=d("openwb-base-range-input"),_=d("openwb-base-heading"),W=d("openwb-base-submit-buttons");return g(),p("div",M,[o("form",L,[i(f,{title:"Regelparameter"},{default:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(g(),p("div",P,[i(m,{subtype:"info"},{default:a(()=>e[17]||(e[17]=[t(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[17]})])):(g(),p("div",U,[i(c,{modelValue:s.controlMode,"onUpdate:modelValue":e[0]||(e[0]=r=>s.controlMode=r),title:"Regelmodus",buttons:[{buttonValue:"export",text:"Einspeisung"},{buttonValue:"import",text:"Bezug"},{buttonValue:"balanced",text:"Ausgewogen"},{buttonValue:"individual",text:"Individuell"}]},{help:a(()=>e[18]||(e[18]=[t(" Die Ladeleistung kann nicht mit absoluter Genauigkeit eingestellt werden, sodass am EVU-Punkt nicht auf exakt 0W geregelt werden kann. Der Regelmodus legt fest, ob diese Differenz am EVU-Punkt (ca. 200-300W) zu geringem Netzbezug oder geringer Netzeinspeisung führen soll. Liegt die Leistung am EVU-Punkt innerhalb des Regelbereichs, wird nicht nachgeregelt.",-1),o("br",null,null,-1),t(" Bei Speichervorrang erzeugt die Regelung bei Bedarf unabhängig vom eingestellten Regelmodus Einspeisung, damit der Speicher seine Ladeleistung erhöht.",-1),o("br",null,null,-1),t(" Achtung: bei unlogischen Einstellungen kann die Regelung gestört werden! Im Zweifel bitte unsere vordefinierten Modi verwenden. ",-1)])),_:1},8,["modelValue"]),i(l,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Minimum",step:.005,unit:"kW",required:"","model-value":Array.isArray(n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][0]/1e3:void 0,"onUpdate:modelValue":e[1]||(e[1]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/control_range",r*1e3,"0"))},{help:a(()=>e[19]||(e[19]=[t(" Untere Grenze des Regelbereichs. ",-1)])),_:1},8,["disabled","readonly","model-value"]),i(l,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Maximum",step:.005,unit:"kW",required:"","model-value":Array.isArray(n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][1]/1e3:void 0,"onUpdate:modelValue":e[2]||(e[2]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/control_range",r*1e3,"1"))},{help:a(()=>e[20]||(e[20]=[t(" Obere Grenze des Regelbereichs. ",-1)])),_:1},8,["disabled","readonly","model-value"]),e[27]||(e[27]=o("hr",null,null,-1)),i(m,{subtype:s.chargingSwitchRange<1400?"danger":"info"},{default:a(()=>[t(" Die Differenzleistung zw. Ein- und Abschaltschwelle sollte mind. 1,4 kW (230V x 6A) betragen. (Konfiguriert: "+C((s.chargingSwitchRange/1e3).toLocaleString(void 0))+" kW) ",1)]),_:1},8,["subtype"]),i(l,{title:"Einschaltschwelle",min:0,step:.05,unit:"kW",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_threshold"]/1e3,"onUpdate:modelValue":e[3]||(e[3]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/switch_on_threshold",r*1e3))},{help:a(()=>e[21]||(e[21]=[t(" Wird der Regelbereich in Richtung Einspeisung um diese Leistung überschritten, so wird der Ladevorgang gestartet.",-1),o("br",null,null,-1),t(" Dieser Wert wird pro Phase genutzt und ist daher immer für eine Phase anzugeben. ",-1)])),_:1},8,["model-value"]),i(l,{title:"Wartezeit Ladestart & Phasenzuschaltung",min:0,step:1,unit:"s",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_delay"],"onUpdate:modelValue":e[4]||(e[4]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/switch_on_delay",r))},{help:a(()=>e[22]||(e[22]=[t(" Die Einschaltschwelle muss für die hier angegebene Zeit dauerhaft überschritten werden, bevor ein Ladevorgang gestartet wird.",-1),o("br",null,null,-1),t(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird weiter geladen, wenn die Abschaltschwelle nicht unterschritten wird.",-1),o("br",null,null,-1),t(" Wenn die Pufferzeit zwischen zwei automatischen Phasenumschaltungen abgelaufen ist, wird die hier eingestellte Wartezeit abgewartet. Wenn die Pufferzeit zwischen zwei Umschaltungen noch nicht erreicht ist, wird die längere der beiden Zeiten abgewartet: entweder die verbleibende Pufferzeit oder die Wartezeit. ",-1)])),_:1},8,["model-value"]),e[28]||(e[28]=o("hr",null,null,-1)),i(m,{subtype:n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_threshold"]/1e3>0?"danger":"info"},{default:a(()=>e[23]||(e[23]=[t(" Ist ein Speicher im System vorhanden, kann eine Abschaltschwelle größer Null zur Speicherentladung führen. (Siehe Fragezeichentext) ",-1)])),_:1,__:[23]},8,["subtype"]),i(l,{title:"Abschaltschwelle",step:.05,unit:"kW",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_threshold"]/1e3,"onUpdate:modelValue":e[5]||(e[5]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/switch_off_threshold",r*1e3))},{help:a(()=>e[24]||(e[24]=[t(" Übersteigt der Netzbezug die Abschaltschwelle, wird die Ladung beendet. Eine Abschaltschwelle, die Netzbezug erlaubt, führt in einem System ohne steuerbaren Speicher zur Entladung des Speichers. Der Speicher wird dann auch über den eingestellten Mindest-SoC hinaus entladen (siehe Speicherbeachtung unten). ",-1)])),_:1},8,["model-value"]),i(l,{title:"Wartezeit Ladeende & Phasenreduktion",min:0,step:1,unit:"s",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_delay"],"onUpdate:modelValue":e[6]||(e[6]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/switch_off_delay",r))},{help:a(()=>e[25]||(e[25]=[t(" Die Abschaltschwelle muss für die hier angegebene Zeit dauerhaft unterschritten werden, bevor ein Ladevorgang beendet wird.",-1),o("br",null,null,-1),t(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird die Ladung sofort beendet, wenn die Abschaltschwelle unterschritten wird.",-1),o("br",null,null,-1),t(" Wenn die Pufferzeit zwischen zwei automatischen Phasenumschaltungen abgelaufen ist, wird die hier eingestellte Wartezeit abgewartet. Wenn die Pufferzeit zwischen zwei Umschaltungen noch nicht erreicht ist, wird die längere der beiden Zeiten abgewartet: entweder die verbleibende Pufferzeit oder die Wartezeit. ",-1)])),_:1},8,["model-value"]),e[29]||(e[29]=o("hr",null,null,-1)),i(l,{title:"Regelpunkt Einspeisegrenze",min:0,step:.05,unit:"kW",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/feed_in_yield"]/1e3,"onUpdate:modelValue":e[7]||(e[7]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/feed_in_yield",r*1e3))},{help:a(()=>e[26]||(e[26]=[t(" Ein Wert größer 0kW bewirkt, dass weniger PV-Leistung zum Laden benutzt wird.",-1),o("br",null,null,-1),t(" Die Nutzung dieser Option ergibt nur Sinn, wenn ein Wechselrichter mit separatem Smart-Meter am EVU-Punkt verbaut ist (nicht der originale Zähler des Versorgers!), welches eine dynamische Begrenzung der Einspeiseleistung am EVU-Punkt durch den PV-Wechselrichter bietet (bitte bei ev. Problemen immer vorab prüfen lassen).",-1),o("br",null,null,-1),t(' Ist eine Einspeiseleistungsreduzierung verbaut (in vielen älteren, privaten Einspeiseverträgen z.B. als 70% Regelung bekannt), wird mit Eingabe des Wertes "Regelpunkt Einspeisegrenze" ein eigenverbrauchsoptimiertes Fahrzeugladen mit PV-Überschussenergie möglich, die sonst abgeregelt werden würde (Nutzung der PV-Peaks).',-1),o("br",null,null,-1),t(' Wird in einem "Ladeprofil" die Option "Einspeisegrenze beachten" eingeschaltet, so wird der Regelpunkt auf diesen Wert verschoben und die Ladung startet erst, wenn der hinterlegte Wert "Regelpunkt Einspeisegrenze" überschritten wird.',-1),o("br",null,null,-1),t(" Zur optimalen Eigenverbrauchssteuerung sollte der Wert einige hundert Watt UNTER der im Wechselrichter hinterlegten EVU-Einspeiseleistungsgrenze liegen, damit openWB die Ladung freigibt, BEVOR der Wechselrichter begrenzt wird. ",-1)])),_:1},8,["model-value"])]))]),_:1}),i(f,{title:"Speicher-Beachtung"},{default:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(g(),p("div",R,[i(m,{subtype:"info"},{default:a(()=>e[30]||(e[30]=[t(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[30]})])):(g(),p("div",$,[i(c,{modelValue:s.batMode,"onUpdate:modelValue":e[8]||(e[8]=r=>s.batMode=r),title:"Laden mit Überschuss",buttons:[{buttonValue:"ev_mode"},{buttonValue:"bat_mode"},{buttonValue:"min_soc_bat_mode"}]},{"label-ev_mode":a(()=>[i(h,{icon:["fas","car-side"]}),e[31]||(e[31]=t(" Fahrzeuge ",-1))]),"label-bat_mode":a(()=>[i(h,{icon:["fas","fa-car-battery"]}),e[32]||(e[32]=t(" Speicher ",-1))]),"label-min_soc_bat_mode":a(()=>[i(h,{icon:["fas","fa-battery-half"]}),e[33]||(e[33]=t(" Mindest-SoC des Speichers ",-1))]),help:a(()=>[e[40]||(e[40]=o("p",null,' Sofern ein Hausstromspeicher (im Folgenden "Speicher" genannt) im Energiesystem verbaut ist, kann dieser beim Fahrzeugladen mit berücksichtigt werden. Dies erfolgt passiv über die Berücksichtigung der Speicherleistungswerte und des Speicher-SoC. Eine aktive Speichersteuerung durch openWB ist aktuell mangels Speicherschnittstelle nicht möglich. ',-1)),o("p",null,[e[34]||(e[34]=t(' Bei Auswahl " ',-1)),i(h,{icon:["fas","car-side"]}),e[35]||(e[35]=t(' Fahrzeuge" wird der gesamte Überschuss in das EV geladen. Ist die maximale Ladeleistung der Fahrzeuge erreicht und es wird eingespeist, wird dieser Überschuss in den Speicher geladen. ',-1))]),o("p",null,[e[36]||(e[36]=t(' Bei Auswahl " ',-1)),i(h,{icon:["fas","fa-car-battery"]}),e[37]||(e[37]=t(' Speicher" wird der gesamte Überschuss in den Speicher geladen. Ist die maximale Ladeleistung des Speichers erreicht und es wird eingespeist, wird dieser Überschuss unter Beachtung der Einschaltschwelle in die Fahrzeuge geladen. ',-1))]),o("p",null,[e[38]||(e[38]=t(' Bei Auswahl " ',-1)),i(h,{icon:["fas","fa-battery-half"]}),e[39]||(e[39]=t(' Mindest-SoC des Speichers" wird der Überschuss bis zum Mindest-SoC in den Speicher geladen. Ist die maximale Ladeleistung des Speichers erreicht und es wird eingespeist, wird dieser Überschuss in die Fahrzeuge geladen. Wird der Mindest-SoC überschritten, wird der Überschuss ins Fahrzeug geladen. ',-1))])]),_:1},8,["modelValue"]),s.batMode==="min_soc_bat_mode"?(g(),p("div",A,[i(w,{title:"Mindest-SoC des Speichers",min:0,max:100,step:1,unit:"%",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/min_bat_soc"],"onUpdate:modelValue":e[9]||(e[9]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/min_bat_soc",r))},null,8,["model-value"]),i(_,null,{default:a(()=>e[41]||(e[41]=[t(" Speicher-SoC unterhalb Mindest-SoC ",-1)])),_:1,__:[41]}),i(c,{title:"Ladeleistung für Speicher reservieren",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_power_reserve_active"],"onUpdate:modelValue":e[10]||(e[10]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/bat_power_reserve_active",r))},{help:a(()=>e[42]||(e[42]=[t(" ACHTUNG: Der hier eingestellte Wert darf die maximale Ladeleistung des Speichers nicht überschreiten.",-1),o("br",null,null,-1),t(" Wird der Mindest-SoC des Speichers nicht erreicht, wird der Speicher mit der hier eingestellten Leistung geladen. Mit dem verbleibenden Überschuss werden die Fahrzeuge geladen. ",-1)])),_:1},8,["model-value"]),n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_power_reserve_active"]?(g(),v(l,{key:0,title:"Reserve Ladeleistung",min:.1,step:.1,unit:"kW",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_power_reserve"]/1e3,"onUpdate:modelValue":e[11]||(e[11]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/bat_power_reserve",r*1e3))},null,8,["model-value"])):b("",!0),i(_,null,{default:a(()=>e[43]||(e[43]=[t(" Speicher-SoC oberhalb Mindest-SoC ",-1)])),_:1,__:[43]}),i(c,{title:"Entladung des Speichers erlauben",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_power_discharge_active"],"onUpdate:modelValue":e[12]||(e[12]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/bat_power_discharge_active",r))},{help:a(()=>e[44]||(e[44]=[t(" Wird der Mindest-SoC überschritten, wird der Überschuss ins Fahrzeug geladen und der Speicher mit der hier eingestellten Leistung in die Fahrzeuge entladen. Die Entladeleistung des Speichers wird dem Überschuss zum Erreichen der Einschaltschwelle hinzugerechnet. ",-1)])),_:1},8,["model-value"]),n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_power_discharge_active"]?(g(),v(l,{key:1,title:"Erlaubte Entladeleistung",min:.1,step:.1,unit:"kW",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_power_discharge"]/1e3,"onUpdate:modelValue":e[13]||(e[13]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/bat_power_discharge",r*1e3))},null,8,["model-value"])):b("",!0)])):b("",!0)]))]),_:1}),i(W,{"form-name":"pvChargeConfigForm",onSave:e[14]||(e[14]=r=>n.$emit("save")),onReset:e[15]||(e[15]=r=>n.$emit("reset")),onDefaults:e[16]||(e[16]=r=>n.$emit("defaults"))})])])}const K=E(q,[["render",F],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/PVChargeConfig.vue"]]);export{K as default}; +import{C as S}from"./index-eccf5556.js";import{l as B,_ as z,a8 as V,a9 as k,F as y}from"./vendor-fortawesome-d6ee0a65.js";import{_ as E,u as d,l as g,m as p,A as o,G as i,E as a,B as t,F as C,x as v,z as b}from"./vendor-57e3a63c.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";B.add(z,V,k);const q={name:"OpenwbPVChargeConfigView",components:{FontAwesomeIcon:y},mixins:[S],emits:["save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/pv_charging/control_range","openWB/general/chargemode_config/pv_charging/feed_in_yield","openWB/general/chargemode_config/pv_charging/switch_on_threshold","openWB/general/chargemode_config/pv_charging/switch_on_delay","openWB/general/chargemode_config/pv_charging/switch_off_threshold","openWB/general/chargemode_config/pv_charging/switch_off_delay","openWB/general/chargemode_config/pv_charging/phases_to_use","openWB/general/chargemode_config/pv_charging/bat_mode","openWB/general/chargemode_config/pv_charging/bat_power_reserve","openWB/general/chargemode_config/pv_charging/bat_power_reserve_active","openWB/general/chargemode_config/pv_charging/bat_power_discharge","openWB/general/chargemode_config/pv_charging/bat_power_discharge_active","openWB/general/chargemode_config/pv_charging/min_bat_soc"],calculatedControlMode:void 0}},computed:{controlMode:{get(){if(this.calculatedControlMode!==void 0)return this.calculatedControlMode;const n="openWB/general/chargemode_config/pv_charging/control_range";let e=this.$store.state.mqtt[n];var u="individual";return typeof e<"u"&&(e[0]===-230&&e[1]===0?u="export":e[0]===0&&e[1]===230?u="import":e[0]===-115&&e[1]===115?u="balanced":u="individual"),u},set(n){const e="openWB/general/chargemode_config/pv_charging/control_range";switch(this.calculatedControlMode=n,n){case"export":this.updateState(e,[-230,0]);break;case"import":this.updateState(e,[0,230]);break;case"balanced":this.updateState(e,[-115,115]);break}}},chargingSwitchRange:{get(){return this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_threshold"]+this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_threshold"]}},batMode:{get(){return this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_mode"]},set(n){this.updateState("openWB/general/chargemode_config/pv_charging/bat_mode",n)}}},watch:{controlMode(n){this.calculatedControlMode=n}}},M={class:"pvChargeConfig"},L={name:"pvChargeConfigForm"},P={key:0},U={key:1},R={key:0},$={key:1},A={key:0};function F(n,e,u,D,N,s){const m=d("openwb-base-alert"),c=d("openwb-base-button-group-input"),l=d("openwb-base-number-input"),f=d("openwb-base-card"),h=d("font-awesome-icon"),w=d("openwb-base-range-input"),_=d("openwb-base-heading"),W=d("openwb-base-submit-buttons");return g(),p("div",M,[o("form",L,[i(f,{title:"Regelparameter"},{default:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(g(),p("div",P,[i(m,{subtype:"info"},{default:a(()=>e[17]||(e[17]=[t(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[17]})])):(g(),p("div",U,[i(c,{modelValue:s.controlMode,"onUpdate:modelValue":e[0]||(e[0]=r=>s.controlMode=r),title:"Regelmodus",buttons:[{buttonValue:"export",text:"Einspeisung"},{buttonValue:"import",text:"Bezug"},{buttonValue:"balanced",text:"Ausgewogen"},{buttonValue:"individual",text:"Individuell"}]},{help:a(()=>e[18]||(e[18]=[t(" Die Ladeleistung kann nicht mit absoluter Genauigkeit eingestellt werden, sodass am EVU-Punkt nicht auf exakt 0W geregelt werden kann. Der Regelmodus legt fest, ob diese Differenz am EVU-Punkt (ca. 200-300W) zu geringem Netzbezug oder geringer Netzeinspeisung führen soll. Liegt die Leistung am EVU-Punkt innerhalb des Regelbereichs, wird nicht nachgeregelt.",-1),o("br",null,null,-1),t(" Bei Speichervorrang erzeugt die Regelung bei Bedarf unabhängig vom eingestellten Regelmodus Einspeisung, damit der Speicher seine Ladeleistung erhöht.",-1),o("br",null,null,-1),t(" Achtung: bei unlogischen Einstellungen kann die Regelung gestört werden! Im Zweifel bitte unsere vordefinierten Modi verwenden. ",-1)])),_:1},8,["modelValue"]),i(l,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Minimum",step:.005,unit:"kW",required:"","model-value":Array.isArray(n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][0]/1e3:void 0,"onUpdate:modelValue":e[1]||(e[1]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/control_range",r*1e3,"0"))},{help:a(()=>e[19]||(e[19]=[t(" Untere Grenze des Regelbereichs. ",-1)])),_:1},8,["disabled","readonly","model-value"]),i(l,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Maximum",step:.005,unit:"kW",required:"","model-value":Array.isArray(n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][1]/1e3:void 0,"onUpdate:modelValue":e[2]||(e[2]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/control_range",r*1e3,"1"))},{help:a(()=>e[20]||(e[20]=[t(" Obere Grenze des Regelbereichs. ",-1)])),_:1},8,["disabled","readonly","model-value"]),e[27]||(e[27]=o("hr",null,null,-1)),i(m,{subtype:s.chargingSwitchRange<1400?"danger":"info"},{default:a(()=>[t(" Die Differenzleistung zw. Ein- und Abschaltschwelle sollte mind. 1,4 kW (230V x 6A) betragen. (Konfiguriert: "+C((s.chargingSwitchRange/1e3).toLocaleString(void 0))+" kW) ",1)]),_:1},8,["subtype"]),i(l,{title:"Einschaltschwelle",min:0,step:.05,unit:"kW",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_threshold"]/1e3,"onUpdate:modelValue":e[3]||(e[3]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/switch_on_threshold",r*1e3))},{help:a(()=>e[21]||(e[21]=[t(" Wird der Regelbereich in Richtung Einspeisung um diese Leistung überschritten, so wird der Ladevorgang gestartet.",-1),o("br",null,null,-1),t(" Dieser Wert wird pro Phase genutzt und ist daher immer für eine Phase anzugeben. ",-1)])),_:1},8,["model-value"]),i(l,{title:"Wartezeit Ladestart & Phasenzuschaltung",min:0,step:1,unit:"s",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_delay"],"onUpdate:modelValue":e[4]||(e[4]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/switch_on_delay",r))},{help:a(()=>e[22]||(e[22]=[t(" Die Einschaltschwelle muss für die hier angegebene Zeit dauerhaft überschritten werden, bevor ein Ladevorgang gestartet wird.",-1),o("br",null,null,-1),t(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird weiter geladen, wenn die Abschaltschwelle nicht unterschritten wird.",-1),o("br",null,null,-1),t(" Wenn die Pufferzeit zwischen zwei automatischen Phasenumschaltungen abgelaufen ist, wird die hier eingestellte Wartezeit abgewartet. Wenn die Pufferzeit zwischen zwei Umschaltungen noch nicht erreicht ist, wird die längere der beiden Zeiten abgewartet: entweder die verbleibende Pufferzeit oder die Wartezeit. ",-1)])),_:1},8,["model-value"]),e[28]||(e[28]=o("hr",null,null,-1)),i(m,{subtype:n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_threshold"]/1e3>0?"danger":"info"},{default:a(()=>e[23]||(e[23]=[t(" Ist ein Speicher im System vorhanden, kann eine Abschaltschwelle größer Null zur Speicherentladung führen. (Siehe Fragezeichentext) ",-1)])),_:1,__:[23]},8,["subtype"]),i(l,{title:"Abschaltschwelle",step:.05,unit:"kW",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_threshold"]/1e3,"onUpdate:modelValue":e[5]||(e[5]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/switch_off_threshold",r*1e3))},{help:a(()=>e[24]||(e[24]=[t(" Übersteigt der Netzbezug die Abschaltschwelle, wird die Ladung beendet. Eine Abschaltschwelle, die Netzbezug erlaubt, führt in einem System ohne steuerbaren Speicher zur Entladung des Speichers. Der Speicher wird dann auch über den eingestellten Mindest-SoC hinaus entladen (siehe Speicherbeachtung unten). ",-1)])),_:1},8,["model-value"]),i(l,{title:"Wartezeit Ladeende & Phasenreduktion",min:0,step:1,unit:"s",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_delay"],"onUpdate:modelValue":e[6]||(e[6]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/switch_off_delay",r))},{help:a(()=>e[25]||(e[25]=[t(" Die Abschaltschwelle muss für die hier angegebene Zeit dauerhaft unterschritten werden, bevor ein Ladevorgang beendet wird.",-1),o("br",null,null,-1),t(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird die Ladung sofort beendet, wenn die Abschaltschwelle unterschritten wird.",-1),o("br",null,null,-1),t(" Wenn die Pufferzeit zwischen zwei automatischen Phasenumschaltungen abgelaufen ist, wird die hier eingestellte Wartezeit abgewartet. Wenn die Pufferzeit zwischen zwei Umschaltungen noch nicht erreicht ist, wird die längere der beiden Zeiten abgewartet: entweder die verbleibende Pufferzeit oder die Wartezeit. ",-1)])),_:1},8,["model-value"]),e[29]||(e[29]=o("hr",null,null,-1)),i(l,{title:"Regelpunkt Einspeisegrenze",min:0,step:.05,unit:"kW",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/feed_in_yield"]/1e3,"onUpdate:modelValue":e[7]||(e[7]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/feed_in_yield",r*1e3))},{help:a(()=>e[26]||(e[26]=[t(" Ein Wert größer 0kW bewirkt, dass weniger PV-Leistung zum Laden benutzt wird.",-1),o("br",null,null,-1),t(" Die Nutzung dieser Option ergibt nur Sinn, wenn ein Wechselrichter mit separatem Smart-Meter am EVU-Punkt verbaut ist (nicht der originale Zähler des Versorgers!), welches eine dynamische Begrenzung der Einspeiseleistung am EVU-Punkt durch den PV-Wechselrichter bietet (bitte bei ev. Problemen immer vorab prüfen lassen).",-1),o("br",null,null,-1),t(' Ist eine Einspeiseleistungsreduzierung verbaut (in vielen älteren, privaten Einspeiseverträgen z.B. als 70% Regelung bekannt), wird mit Eingabe des Wertes "Regelpunkt Einspeisegrenze" ein eigenverbrauchsoptimiertes Fahrzeugladen mit PV-Überschussenergie möglich, die sonst abgeregelt werden würde (Nutzung der PV-Peaks).',-1),o("br",null,null,-1),t(' Wird in einem "Ladeprofil" die Option "Einspeisegrenze beachten" eingeschaltet, so wird der Regelpunkt auf diesen Wert verschoben und die Ladung startet erst, wenn der hinterlegte Wert "Regelpunkt Einspeisegrenze" überschritten wird.',-1),o("br",null,null,-1),t(" Zur optimalen Eigenverbrauchssteuerung sollte der Wert einige hundert Watt UNTER der im Wechselrichter hinterlegten EVU-Einspeiseleistungsgrenze liegen, damit openWB die Ladung freigibt, BEVOR der Wechselrichter begrenzt wird. ",-1)])),_:1},8,["model-value"])]))]),_:1}),i(f,{title:"Speicher-Beachtung"},{default:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(g(),p("div",R,[i(m,{subtype:"info"},{default:a(()=>e[30]||(e[30]=[t(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[30]})])):(g(),p("div",$,[i(c,{modelValue:s.batMode,"onUpdate:modelValue":e[8]||(e[8]=r=>s.batMode=r),title:"Laden mit Überschuss",buttons:[{buttonValue:"ev_mode"},{buttonValue:"bat_mode"},{buttonValue:"min_soc_bat_mode"}]},{"label-ev_mode":a(()=>[i(h,{icon:["fas","car-side"]}),e[31]||(e[31]=t(" Fahrzeuge ",-1))]),"label-bat_mode":a(()=>[i(h,{icon:["fas","fa-car-battery"]}),e[32]||(e[32]=t(" Speicher ",-1))]),"label-min_soc_bat_mode":a(()=>[i(h,{icon:["fas","fa-battery-half"]}),e[33]||(e[33]=t(" Mindest-SoC des Speichers ",-1))]),help:a(()=>[e[40]||(e[40]=o("p",null,' Sofern ein Hausstromspeicher (im Folgenden "Speicher" genannt) im Energiesystem verbaut ist, kann dieser beim Fahrzeugladen mit berücksichtigt werden. Dies erfolgt passiv über die Berücksichtigung der Speicherleistungswerte und des Speicher-SoC. Eine aktive Speichersteuerung durch openWB ist aktuell mangels Speicherschnittstelle nicht möglich. ',-1)),o("p",null,[e[34]||(e[34]=t(' Bei Auswahl " ',-1)),i(h,{icon:["fas","car-side"]}),e[35]||(e[35]=t(' Fahrzeuge" wird der gesamte Überschuss in das EV geladen. Ist die maximale Ladeleistung der Fahrzeuge erreicht und es wird eingespeist, wird dieser Überschuss in den Speicher geladen. ',-1))]),o("p",null,[e[36]||(e[36]=t(' Bei Auswahl " ',-1)),i(h,{icon:["fas","fa-car-battery"]}),e[37]||(e[37]=t(' Speicher" wird der gesamte Überschuss in den Speicher geladen. Ist die maximale Ladeleistung des Speichers erreicht und es wird eingespeist, wird dieser Überschuss unter Beachtung der Einschaltschwelle in die Fahrzeuge geladen. ',-1))]),o("p",null,[e[38]||(e[38]=t(' Bei Auswahl " ',-1)),i(h,{icon:["fas","fa-battery-half"]}),e[39]||(e[39]=t(' Mindest-SoC des Speichers" wird der Überschuss bis zum Mindest-SoC in den Speicher geladen. Ist die maximale Ladeleistung des Speichers erreicht und es wird eingespeist, wird dieser Überschuss in die Fahrzeuge geladen. Wird der Mindest-SoC überschritten, wird der Überschuss ins Fahrzeug geladen. ',-1))])]),_:1},8,["modelValue"]),s.batMode==="min_soc_bat_mode"?(g(),p("div",A,[i(w,{title:"Mindest-SoC des Speichers",min:0,max:100,step:1,unit:"%",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/min_bat_soc"],"onUpdate:modelValue":e[9]||(e[9]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/min_bat_soc",r))},null,8,["model-value"]),i(_,null,{default:a(()=>e[41]||(e[41]=[t(" Speicher-SoC unterhalb Mindest-SoC ",-1)])),_:1,__:[41]}),i(c,{title:"Ladeleistung für Speicher reservieren",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_power_reserve_active"],"onUpdate:modelValue":e[10]||(e[10]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/bat_power_reserve_active",r))},{help:a(()=>e[42]||(e[42]=[t(" ACHTUNG: Der hier eingestellte Wert darf die maximale Ladeleistung des Speichers nicht überschreiten.",-1),o("br",null,null,-1),t(" Wird der Mindest-SoC des Speichers nicht erreicht, wird der Speicher mit der hier eingestellten Leistung geladen. Mit dem verbleibenden Überschuss werden die Fahrzeuge geladen. ",-1)])),_:1},8,["model-value"]),n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_power_reserve_active"]?(g(),v(l,{key:0,title:"Reserve Ladeleistung",min:.1,step:.1,unit:"kW",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_power_reserve"]/1e3,"onUpdate:modelValue":e[11]||(e[11]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/bat_power_reserve",r*1e3))},null,8,["model-value"])):b("",!0),i(_,null,{default:a(()=>e[43]||(e[43]=[t(" Speicher-SoC oberhalb Mindest-SoC ",-1)])),_:1,__:[43]}),i(c,{title:"Entladung des Speichers erlauben",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_power_discharge_active"],"onUpdate:modelValue":e[12]||(e[12]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/bat_power_discharge_active",r))},{help:a(()=>e[44]||(e[44]=[t(" Wird der Mindest-SoC überschritten, wird der Überschuss ins Fahrzeug geladen und der Speicher mit der hier eingestellten Leistung in die Fahrzeuge entladen. Die Entladeleistung des Speichers wird dem Überschuss zum Erreichen der Einschaltschwelle hinzugerechnet. ",-1)])),_:1},8,["model-value"]),n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_power_discharge_active"]?(g(),v(l,{key:1,title:"Erlaubte Entladeleistung",min:.1,step:.1,unit:"kW",required:"","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_power_discharge"]/1e3,"onUpdate:modelValue":e[13]||(e[13]=r=>n.updateState("openWB/general/chargemode_config/pv_charging/bat_power_discharge",r*1e3))},null,8,["model-value"])):b("",!0)])):b("",!0)]))]),_:1}),i(W,{"form-name":"pvChargeConfigForm",onSave:e[14]||(e[14]=r=>n.$emit("save")),onReset:e[15]||(e[15]=r=>n.$emit("reset")),onDefaults:e[16]||(e[16]=r=>n.$emit("defaults"))})])])}const K=E(q,[["render",F],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/PVChargeConfig.vue"]]);export{K as default}; diff --git a/web/settings/assets/Status-9fd32ca3.js b/web/settings/assets/Status-0bb03b2e.js similarity index 99% rename from web/settings/assets/Status-9fd32ca3.js rename to web/settings/assets/Status-0bb03b2e.js index c5b257c62d..190077b8c1 100644 --- a/web/settings/assets/Status-9fd32ca3.js +++ b/web/settings/assets/Status-0bb03b2e.js @@ -1 +1 @@ -import{C as k}from"./index-93388667.js";import{l as C,O as z,P as V,c as M,f as G,F as B,Q as A,R as Z,S as H,T as R,U as F,V as K,W as Q,X as U,Y as J,Z as P,_ as I,$ as X,n as Y,o as tt,p as et,q as st,a0 as ot,a1 as at}from"./vendor-fortawesome-66071a0e.js";import{_ as w,u as n,l as i,x as m,D as O,E as r,A as t,m as h,G as c,B as g,F as a,z as T,p as S,q as rt,M as x,N as W}from"./vendor-25d394b4.js";import{C as it,p as nt,a as ct,L as lt,b as dt,P as pt,c as ut,T as mt,i as gt,d as ht,e as _t}from"./vendor-chartjs-94a826eb.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./vendor-luxon-cc86f6dc.js";C.add(z,V,M,G);const bt={name:"StatusCard",components:{FontAwesomeIcon:B},props:{subtype:{type:String,required:!0},state:{type:Number,required:!1,default:0},stateMessage:{type:String,required:!1,default:void 0},componentId:{type:Number,required:!1,default:void 0}},computed:{stateClass(){switch(this.state){case 0:return"success";case 1:return"warning";case 2:return"danger";default:return"dark"}},stateIcon(){switch(this.state){case 0:return["fas","check-circle"];case 1:return["fas","exclamation-triangle"];case 2:return["fas","times-circle"];default:return["fas","question-circle"]}},stateLabel(){switch(this.state){case 0:return"OK";case 1:return"Warnung";case 2:return"Fehler";default:return"Unbekannt"}}}},ft={class:"container"},vt={class:"row justify-content-end"},yt={key:0,class:"col px-0"},Tt={style:{"white-space":"pre-wrap"}},wt={key:1,class:"col col-auto pr-0"},xt={class:"text-right"};function Wt(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-avatar"),p=n("openwb-base-alert"),q=n("openwb-base-card");return i(),m(q,{subtype:l.subtype,collapsible:!0,collapsed:!0,class:"pb-0"},O({header:r(()=>[S(s.$slots,"header-left")]),actions:r(()=>[S(s.$slots,"header-right"),c(d,{class:rt(["ml-2",`bg-${e.stateClass}`]),title:e.stateLabel},{default:r(()=>[c(u,{icon:e.stateIcon},null,8,["icon"])]),_:1},8,["class","title"])]),default:r(()=>[S(s.$slots,"default")]),_:2},[l.componentId!==void 0||l.stateMessage?{name:"footer",fn:r(()=>[t("div",ft,[t("div",vt,[l.stateMessage?(i(),h("div",yt,[c(p,{subtype:e.stateClass},{default:r(()=>[c(u,{icon:e.stateIcon},null,8,["icon"]),o[0]||(o[0]=g(" Modulmeldung: ",-1)),t("span",Tt,a(l.stateMessage),1)]),_:1,__:[0]},8,["subtype"])])):T("",!0),l.componentId!==void 0?(i(),h("div",wt,[t("div",xt,"ID: "+a(l.componentId),1)])):T("",!0)])])]),key:"0"}:void 0]),1032,["subtype"])}const N=w(bt,[["render",Wt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/StatusCard.vue"]]);C.add(A);const kt={name:"ChargePointSumCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],data(){return{mqttTopicsToSubscribe:["openWB/chargepoint/get/power","openWB/chargepoint/get/imported","openWB/chargepoint/get/exported","openWB/chargepoint/get/daily_imported","openWB/chargepoint/get/daily_exported"]}},computed:{baseTopic:{get(){return"openWB/chargepoint"}}}},Ct={class:"text-right"},Bt={class:"row"},Nt={class:"col text-right text-monospace"},qt={class:"row"},$t={class:"col-4 text-right text-monospace"},St={class:"col-4 text-right text-monospace"},At={class:"row"},Pt={class:"col-4 text-right text-monospace"},It={class:"col-4 text-right text-monospace"};function Ot(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"primary"},{"header-left":r(()=>[c(u,{icon:["fas","charging-station"]}),o[0]||(o[0]=g(" Alle Ladepunkte ",-1))]),"header-right":r(()=>[t("span",Ct,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW ",1)]),default:r(()=>[c(d,{subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[1]||(o[1]=t("div",{class:"row py-2"},[t("div",{class:"col font-weight-bold"},"Ladevorgang"),t("div",{class:"col text-right"},"Leistung")],-1)),t("div",Bt,[t("div",Nt,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001)),1)])]),_:1,__:[1]}),c(d,{subtype:"white","body-bg":"white",class:"py-1 mb-2",title:"Zählerstände"},{default:r(()=>[o[4]||(o[4]=t("div",{class:"row justify-content-end"},[t("div",{class:"col-4 text-right"},"Geladen"),t("div",{class:"col-4 text-right"},"Entladen")],-1)),t("div",qt,[o[2]||(o[2]=t("div",{class:"col text-right"},"Heute",-1)),t("div",$t,a(s.formatNumberTopic(e.baseTopic+"/get/daily_imported",3,3,.001)+" kWh"),1),t("div",St,a(s.formatNumberTopic(e.baseTopic+"/get/daily_exported",3,3,.001)+" kWh"),1)]),t("div",At,[o[3]||(o[3]=t("div",{class:"col text-right"},"Gesamt",-1)),t("div",Pt,a(s.formatNumberTopic(e.baseTopic+"/get/imported",3,3,.001)+" kWh"),1),t("div",It,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001)+" kWh"),1)])]),_:1,__:[4]})]),_:1})}const Lt=w(kt,[["render",Ot],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ChargePointSumCard.vue"]]);C.add(A,Z,H,R,F,K,Q,U);const jt={name:"ChargePointCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],props:{installedChargePointKey:{type:String,required:!0},installedChargePoint:{type:Object,required:!0}},data(){return{mqttTopicsToSubscribe:[`openWB/chargepoint/${this.installedChargePoint.id}/get/+`,`openWB/chargepoint/${this.installedChargePoint.id}/get/connected_vehicle/info`,`openWB/chargepoint/${this.installedChargePoint.id}/set/+`,`openWB/internal_chargepoint/${this.installedChargePoint.id}/data/phases_to_use`]}},computed:{chargePointIndex:{get(){return this.installedChargePoint.id}},baseTopic:{get(){return"openWB/chargepoint/"+this.chargePointIndex}},chargingStatus:{get(){let s=this.$store.state.mqtt[this.baseTopic+"/get/plug_state"],o=this.$store.state.mqtt[this.baseTopic+"/get/charge_state"];return s==1&&o==1?{icon:["fas","plug-circle-bolt"],text:"Fahrzeug angesteckt, Ladevorgang aktiv"}:s==1?{icon:["fas","plug-circle-check"],text:"Fahrzeug angesteckt, kein Ladevorgang aktiv"}:{icon:["fas","plug-circle-minus"],text:"Kein Fahrzeug angesteckt"}}}}},Dt={class:"row py-2"},Et={class:"col text-right"},zt={style:{"white-space":"pre-wrap"}},Vt={class:"row"},Mt={class:"col text-right text-monospace"},Gt={class:"col text-right text-monospace"},Zt={class:"row"},Ht={key:0,class:"col text-right text-monospace"},Rt={key:1,class:"col text-right text-monospace"},Ft={class:"col text-right text-monospace"},Kt={class:"row"},Qt={class:"col-4 text-right text-monospace"},Ut={class:"col-4 text-right text-monospace"},Jt={class:"row"},Xt={class:"col-4 text-right text-monospace"},Yt={class:"col-4 text-right text-monospace"},te={class:"row"},ee={class:"col text-right text-monospace"},se={class:"col text-right text-monospace"},oe={class:"col text-right text-monospace"},ae={class:"row"},re={class:"col text-right text-monospace"},ie={class:"col text-right text-monospace"},ne={class:"col text-right text-monospace"},ce={class:"row"},le={class:"col text-right text-monospace"},de={class:"col text-right text-monospace"},pe={class:"col text-right text-monospace"},ue={class:"row"},me={class:"col text-right text-monospace"},ge={class:"col text-right text-monospace"},he={class:"col text-right text-monospace"},_e={class:"row"},be={class:"col text-center text-monospace"};function fe(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-card"),q=n("status-card");return i(),m(q,{subtype:"primary","component-id":e.chargePointIndex,state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","charging-station"]}),g(" "+a(l.installedChargePoint.name),1)]),"header-right":r(()=>[g(a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW",1)]),default:r(()=>[c(p,{subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",Dt,[o[0]||(o[0]=t("div",{class:"col col-auto font-weight-bold"},"Status",-1)),t("div",Et,[c(u,{icon:e.chargingStatus.icon,title:e.chargingStatus.text},null,8,["icon","title"]),g(" "+a(e.chargingStatus.text),1)])]),c(d,{subtype:"info"},{default:r(()=>[o[1]||(o[1]=g(" Statusmeldung: ",-1)),t("span",zt,a(s.$store.state.mqtt[e.baseTopic+"/get/state_str"]),1)]),_:1,__:[1]}),t("div",null," max. Ladeleistung: "+a((s.max_power=s.formatNumberTopic(e.baseTopic+"/get/max_evse_current",0))=="-"?s.max_power:Math.floor(s.max_power*3*230/1e3))+" kW ",1)]),_:1}),c(p,{subtype:"white","body-bg":"white",class:"py-1 mb-2",title:"Ladevorgang"},{default:r(()=>[o[2]||(o[2]=t("div",{class:"row"},[t("div",{class:"col text-right"},"Ladestrom Vorgabe"),t("div",{class:"col text-right"},"Leistung")],-1)),t("div",Vt,[t("div",Mt,a(s.formatNumberTopic(e.baseTopic+"/set/current",2))+" A",1),t("div",Gt,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW ",1)]),o[3]||(o[3]=t("div",{class:"row"},[t("div",{class:"col text-right"},"Phasen Vorgabe"),t("div",{class:"col text-right"},"Phasen Aktuell")],-1)),t("div",Zt,[s.$store.state.mqtt["openWB/general/extern"]===!0?(i(),h("div",Ht,a(s.formatNumberTopic("openWB/internal_chargepoint/"+e.chargePointIndex+"/data/phases_to_use")),1)):(i(),h("div",Rt,a(s.formatNumberTopic(e.baseTopic+"/set/phases_to_use")),1)),t("div",Ft,a(s.formatNumberTopic(e.baseTopic+"/get/phases_in_use")),1)])]),_:1,__:[2,3]}),c(p,{subtype:"white","body-bg":"white",class:"py-1 mb-2",title:"Zählerstände"},{default:r(()=>[o[6]||(o[6]=t("div",{class:"row justify-content-end"},[t("div",{class:"col-4 text-right"},"Geladen"),t("div",{class:"col-4 text-right"},"Entladen")],-1)),t("div",Kt,[o[4]||(o[4]=t("div",{class:"col text-right"},"Heute",-1)),t("div",Qt,a(s.formatNumberTopic(e.baseTopic+"/get/daily_imported",3,3,.001))+" kWh ",1),t("div",Ut,a(s.formatNumberTopic(e.baseTopic+"/get/daily_exported",3,3,.001))+" kWh ",1)]),t("div",Jt,[o[5]||(o[5]=t("div",{class:"col text-right"},"Gesamt",-1)),t("div",Xt,a(s.formatNumberTopic(e.baseTopic+"/get/imported",3,3,.001))+" kWh ",1),t("div",Yt,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001))+" kWh ",1)])]),_:1,__:[6]}),c(p,{subtype:"white","body-bg":"white",class:"py-1 mb-2",title:"Werte pro Phase"},{default:r(()=>[t("div",te,[o[7]||(o[7]=t("div",{class:"col-md-4 pr-1 text-center text-md-right"},"Spannung [V]",-1)),t("div",ee,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/voltages",1)[0]),1),t("div",se,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/voltages",1)[1]),1),t("div",oe,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/voltages",1)[2]),1)]),t("div",ae,[o[8]||(o[8]=t("div",{class:"col-md-4 pr-1 text-center text-md-right"},"Strom [A]",-1)),t("div",re,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[0]),1),t("div",ie,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[1]),1),t("div",ne,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[2]),1)]),t("div",ce,[o[9]||(o[9]=t("div",{class:"col-md-4 pr-1 text-center text-md-right"},"Wirkleistung [kW]",-1)),t("div",le,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/powers",3,3,.001)[0]),1),t("div",de,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/powers",3,3,.001)[1]),1),t("div",pe,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/powers",3,3,.001)[2]),1)]),t("div",ue,[o[10]||(o[10]=t("div",{class:"col-md-4 pr-1 text-center text-md-right"},"Leistungsfaktor",-1)),t("div",me,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/power_factors",2)[0]),1),t("div",ge,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/power_factors",2)[1]),1),t("div",he,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/power_factors",2)[2]),1)]),t("div",_e,[o[11]||(o[11]=t("div",{class:"col-md-4 pr-1 text-center text-md-right"},"Netzfrequenz",-1)),t("div",be,a(s.formatNumberTopic(e.baseTopic+"/get/frequency",3))+" Hz ",1)])]),_:1})]),_:1},8,["component-id","state","state-message"])}const ve=w(jt,[["render",fe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ChargePointCard.vue"]]);C.add(J);const ye={name:"CounterCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],props:{counter:{type:Object,required:!0}},data(){return{mqttTopicsToSubscribe:[`openWB/counter/${this.counter.id}/get/+`]}},computed:{baseTopic:{get(){return"openWB/counter/"+this.counter.id}}}},Te={class:"row"},we={class:"col text-right text-monospace pl-0"},xe={class:"col text-right text-monospace pl-0"},We={class:"row"},ke={class:"col text-right text-monospace pl-0"},Ce={class:"col text-right text-monospace pl-0"},Be={class:"row"},Ne={class:"col"},qe={class:"row"},$e={class:"col text-right text-monospace pl-0"},Se={class:"col text-right text-monospace pl-0"},Ae={class:"col text-right text-monospace pl-0"},Pe={class:"row"},Ie={class:"col"},Oe={class:"row"},Le={class:"col text-right text-monospace pl-0"},je={class:"col text-right text-monospace pl-0"},De={class:"col text-right text-monospace pl-0"},Ee={class:"row"},ze={class:"col"},Ve={class:"row"},Me={class:"col text-right text-monospace pl-0"},Ge={class:"col text-right text-monospace pl-0"},Ze={class:"col text-right text-monospace pl-0"},He={class:"row"},Re={class:"col"},Fe={class:"row"},Ke={class:"col text-right text-monospace pl-0"},Qe={class:"col text-right text-monospace pl-0"},Ue={class:"col text-right text-monospace pl-0"};function Je(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"danger","component-id":l.counter.id,state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","gauge-high"]}),g(" "+a(l.counter.name),1)]),"header-right":r(()=>[g(a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW",1)]),default:r(()=>[c(d,{title:"Aktuelle Werte",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[0]||(o[0]=t("div",{class:"row"},[t("div",{class:"col-6 text-right"},"Leistung"),t("div",{class:"col-6 text-right"},"Netzfrequenz")],-1)),t("div",Te,[t("div",we,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001)+" kW"),1),t("div",xe,a(s.formatNumberTopic(e.baseTopic+"/get/frequency",3)+" Hz"),1)])]),_:1,__:[0]}),c(d,{title:"Zählerstände",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[1]||(o[1]=t("div",{class:"row"},[t("div",{class:"col-6 text-right"},"Export"),t("div",{class:"col-6 text-right"},"Import")],-1)),t("div",We,[t("div",ke,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001)+" kWh"),1),t("div",Ce,a(s.formatNumberTopic(e.baseTopic+"/get/imported",3,3,.001)+" kWh"),1)])]),_:1,__:[1]}),c(d,{title:"Werte pro Phase",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",Be,[o[2]||(o[2]=t("div",{class:"col-md-4 pr-0 text-center text-md-right"},"Spannung [V]",-1)),t("div",Ne,[t("div",qe,[t("div",$e,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/voltages",1)[0]),1),t("div",Se,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/voltages",1)[1]),1),t("div",Ae,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/voltages",1)[2]),1)])])]),t("div",Pe,[o[3]||(o[3]=t("div",{class:"col-md-4 pr-0 text-center text-md-right"},"Strom [A]",-1)),t("div",Ie,[t("div",Oe,[t("div",Le,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[0]),1),t("div",je,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[1]),1),t("div",De,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[2]),1)])])]),t("div",Ee,[o[4]||(o[4]=t("div",{class:"col-md-4 pr-0 text-center text-md-right"},"Wirkleistung [kW]",-1)),t("div",ze,[t("div",Ve,[t("div",Me,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/powers",3,3,.001)[0]),1),t("div",Ge,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/powers",3,3,.001)[1]),1),t("div",Ze,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/powers",3,3,.001)[2]),1)])])]),t("div",He,[o[5]||(o[5]=t("div",{class:"col-md-4 pr-0 text-center text-md-right"},"Leistungsfaktor",-1)),t("div",Re,[t("div",Fe,[t("div",Ke,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/power_factors",2)[0]),1),t("div",Qe,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/power_factors",2)[1]),1),t("div",Ue,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/power_factors",2)[2]),1)])])])]),_:1})]),_:1},8,["component-id","state","state-message"])}const Xe=w(ye,[["render",Je],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/CounterCard.vue"]]);C.add(P);const Ye={name:"InverterSumCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],data(){return{mqttTopicsToSubscribe:["openWB/pv/get/+"]}},computed:{baseTopic:{get(){return"openWB/pv"}}}},ts={class:"row"},es={class:"col text-right text-monospace"},ss={class:"col text-right text-monospace"},os={class:"row"},as={class:"col text-right text-monospace"},rs={class:"col text-right text-monospace"},is={class:"col text-right text-monospace"};function ns(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"success",state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","solar-panel"]}),o[0]||(o[0]=g(" Alle Wechselrichter ",-1))]),"header-right":r(()=>[g(a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW",1)]),default:r(()=>[c(d,{title:"Aktuelle Werte",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[1]||(o[1]=t("div",{class:"row"},[t("div",{class:"col text-right"},"Leistung"),t("div",{class:"col text-right"},"Zählerstand")],-1)),t("div",ts,[t("div",es,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW ",1),t("div",ss,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001))+" kWh ",1)])]),_:1,__:[1]}),c(d,{title:"Erträge",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[2]||(o[2]=t("div",{class:"row"},[t("div",{class:"col text-right"},"Heute"),t("div",{class:"col text-right"},"Monat"),t("div",{class:"col text-right"},"Jahr")],-1)),t("div",os,[t("div",as,a(s.formatNumberTopic(e.baseTopic+"/get/daily_exported",3,3,.001))+" kWh ",1),t("div",rs,a(s.formatNumberTopic(e.baseTopic+"/get/monthly_exported",1,1,.001))+" kWh ",1),t("div",is,a(s.formatNumberTopic(e.baseTopic+"/get/yearly_exported",0,0,.001))+" kWh ",1)])]),_:1,__:[2]})]),_:1},8,["state","state-message"])}const cs=w(Ye,[["render",ns],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/InverterSumCard.vue"]]);C.add(P);const ls={name:"InverterCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],props:{inverter:{type:Object,required:!0}},data(){return{mqttTopicsToSubscribe:[`openWB/pv/${this.inverter.id}/get/+`]}},computed:{baseTopic:{get(){return"openWB/pv/"+this.inverter.id}}}},ds={class:"row"},ps={class:"col text-right text-monospace"},us={class:"col text-right text-monospace"},ms={class:"row"},gs={class:"col text-right text-monospace"},hs={class:"col text-right text-monospace"},_s={class:"col text-right text-monospace"},bs={class:"row"},fs={class:"col"},vs={class:"row"},ys={class:"col text-right text-monospace pl-0"},Ts={class:"col text-right text-monospace pl-0"},ws={class:"col text-right text-monospace pl-0"};function xs(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"success","component-id":l.inverter.id,state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","solar-panel"]}),g(" "+a(l.inverter.name),1)]),"header-right":r(()=>[g(a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW",1)]),default:r(()=>[c(d,{title:"Aktuelle Werte",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[0]||(o[0]=t("div",{class:"row"},[t("div",{class:"col text-right"},"Leistung"),t("div",{class:"col text-right"},"Zählerstand")],-1)),t("div",ds,[t("div",ps,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW ",1),t("div",us,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001))+" kWh ",1)])]),_:1,__:[0]}),c(d,{title:"Erträge",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[1]||(o[1]=t("div",{class:"row"},[t("div",{class:"col text-right"},"Heute"),t("div",{class:"col text-right"},"Monat"),t("div",{class:"col text-right"},"Jahr")],-1)),t("div",ms,[t("div",gs,a(s.formatNumberTopic(e.baseTopic+"/get/daily_exported",3,3,.001))+" kWh ",1),t("div",hs,a(s.formatNumberTopic(e.baseTopic+"/get/monthly_exported",1,1,.001))+" kWh ",1),t("div",_s,a(s.formatNumberTopic(e.baseTopic+"/get/yearly_exported",0,0,.001))+" kWh ",1)])]),_:1,__:[1]}),c(d,{title:"Werte pro Phase",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",bs,[o[2]||(o[2]=t("div",{class:"col-md-4 pr-0 text-center text-md-right"},"Strom [A]",-1)),t("div",fs,[t("div",vs,[t("div",ys,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[0]),1),t("div",Ts,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[1]),1),t("div",ws,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[2]),1)])])])]),_:1})]),_:1},8,["component-id","state","state-message"])}const Ws=w(ls,[["render",xs],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/InverterCard.vue"]]);C.add(I);const ks={name:"BatterySumCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],data(){return{mqttTopicsToSubscribe:["openWB/bat/get/+"]}},computed:{baseTopic:{get(){return"openWB/bat"}}}},Cs={class:"row"},Bs={class:"col text-right text-monospace pl-0"},Ns={class:"col text-right text-monospace pl-0"},qs={class:"row"},$s={class:"col text-right text-monospace"},Ss={class:"col text-right text-monospace"},As={class:"row"},Ps={class:"col text-right text-monospace"},Is={class:"col text-right text-monospace"};function Os(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"warning",state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","car-battery"]}),o[0]||(o[0]=g(" Alle Speicher ",-1))]),"header-right":r(()=>[g(a(s.formatNumberTopic(e.baseTopic+"/get/power",1,1,.001))+" kW / "+a(s.$store.state.mqtt[e.baseTopic+"/get/soc"])+" % ",1)]),default:r(()=>[c(d,{title:"Aktuelle Werte",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[1]||(o[1]=t("div",{class:"row"},[t("div",{class:"col-6 text-right"},"Leistung"),t("div",{class:"col-6 text-right"},"Ladestand")],-1)),t("div",Cs,[t("div",Bs,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW ",1),t("div",Ns,a(s.$store.state.mqtt[e.baseTopic+"/get/soc"])+" %",1)])]),_:1,__:[1]}),c(d,{title:"Zählerstände",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[4]||(o[4]=t("div",{class:"row"},[t("div",{class:"col"}),t("div",{class:"col text-right"},"Geladen"),t("div",{class:"col text-right"},"Entladen")],-1)),t("div",qs,[o[2]||(o[2]=t("div",{class:"col text-right"},"Heute",-1)),t("div",$s,a(s.formatNumberTopic(e.baseTopic+"/get/daily_imported",3,3,.001))+" kWh ",1),t("div",Ss,a(s.formatNumberTopic(e.baseTopic+"/get/daily_exported",3,3,.001))+" kWh ",1)]),t("div",As,[o[3]||(o[3]=t("div",{class:"col text-right"},"Gesamt",-1)),t("div",Ps,a(s.formatNumberTopic(e.baseTopic+"/get/imported",3,3,.001))+" kWh ",1),t("div",Is,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001))+" kWh ",1)])]),_:1,__:[4]})]),_:1},8,["state","state-message"])}const Ls=w(ks,[["render",Os],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/BatterySumCard.vue"]]);C.add(I);const js={name:"BatteryCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],props:{battery:{type:Object,required:!0}},data(){return{mqttTopicsToSubscribe:[`openWB/bat/${this.battery.id}/get/+`]}},computed:{baseTopic:{get(){return"openWB/bat/"+this.battery.id}}}},Ds={class:"row"},Es={class:"col text-right text-monospace pl-0"},zs={class:"col text-right text-monospace pl-0"},Vs={class:"row"},Ms={class:"col text-right text-monospace"},Gs={class:"col text-right text-monospace"},Zs={class:"row"},Hs={class:"col text-right text-monospace"},Rs={class:"col text-right text-monospace"},Fs={class:"row"},Ks={class:"col"},Qs={class:"row"},Us={class:"col text-right text-monospace pl-0"},Js={class:"col text-right text-monospace pl-0"},Xs={class:"col text-right text-monospace pl-0"};function Ys(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"warning","component-id":l.battery.id,state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","car-battery"]}),g(" "+a(l.battery.name),1)]),"header-right":r(()=>[g(a(s.formatNumberTopic(e.baseTopic+"/get/power",1,1,.001))+" kW / "+a(s.$store.state.mqtt[e.baseTopic+"/get/soc"])+" % ",1)]),default:r(()=>[c(d,{title:"Aktuelle Werte",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[0]||(o[0]=t("div",{class:"row"},[t("div",{class:"col-6 text-right"},"Leistung"),t("div",{class:"col-6 text-right"},"Ladestand")],-1)),t("div",Ds,[t("div",Es,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW ",1),t("div",zs,a(s.$store.state.mqtt[e.baseTopic+"/get/soc"])+" %",1)])]),_:1,__:[0]}),c(d,{title:"Zählerstände",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[3]||(o[3]=t("div",{class:"row"},[t("div",{class:"col"}),t("div",{class:"col text-right"},"Geladen"),t("div",{class:"col text-right"},"Entladen")],-1)),t("div",Vs,[o[1]||(o[1]=t("div",{class:"col text-right"},"Heute",-1)),t("div",Ms,a(s.formatNumberTopic(e.baseTopic+"/get/daily_imported",3,3,.001))+" kWh ",1),t("div",Gs,a(s.formatNumberTopic(e.baseTopic+"/get/daily_exported",3,3,.001))+" kWh ",1)]),t("div",Zs,[o[2]||(o[2]=t("div",{class:"col text-right"},"Gesamt",-1)),t("div",Hs,a(s.formatNumberTopic(e.baseTopic+"/get/imported",3,3,.001))+" kWh ",1),t("div",Rs,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001))+" kWh ",1)])]),_:1,__:[3]}),c(d,{title:"Werte pro Phase",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",Fs,[o[4]||(o[4]=t("div",{class:"col-md-4 pr-0 text-center text-md-right"},"Strom [A]",-1)),t("div",Ks,[t("div",Qs,[t("div",Us,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[0]),1),t("div",Js,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[1]),1),t("div",Xs,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[2]),1)])])])]),_:1})]),_:1},8,["component-id","state","state-message"])}const to=w(js,[["render",Ys],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/BatteryCard.vue"]]);C.add(X,Y,tt,et,st);const eo={name:"IoDeviceCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],props:{ioDevice:{type:Object,required:!0}},data(){return{mqttTopicsToSubscribe:[`openWB/io/states/${this.ioDevice.id}/get/+`,"openWB/io/action/+/config","openWB/io/action/+/timestamp"],state:{true:{icon:["fas","square"],title:"Geschlossen",actionTitle:"Aktiv"},false:{icon:["far","square"],title:"Offen",actionTitle:"Inaktiv"}}}},computed:{baseTopic(){return`openWB/io/states/${this.ioDevice.id}`},hasDigitalInputs(){return Object.keys(this.$store.state.mqtt[`${this.baseTopic}/get/digital_input`]||{}).length>0},hasDigitalOutputs(){return Object.keys(this.$store.state.mqtt[`${this.baseTopic}/get/digital_output`]||{}).length>0},hasAnalogInputs(){return Object.keys(this.$store.state.mqtt[`${this.baseTopic}/get/analog_input`]||{}).length>0},hasAnalogOutputs(){return Object.keys(this.$store.state.mqtt[`${this.baseTopic}/get/analog_output`]||{}).length>0},digitalInputStates(){return this.$store.state.mqtt[`${this.baseTopic}/get/digital_input`]},digitalOutputStates(){return this.$store.state.mqtt[`${this.baseTopic}/get/digital_output`]},analogInputStates(){return this.$store.state.mqtt[`${this.baseTopic}/get/analog_input`]},analogOutputStates(){return this.$store.state.mqtt[`${this.baseTopic}/get/analog_output`]},ioActionConfigs(){return Object.fromEntries(Object.entries(this.getWildcardTopics("openWB/io/action/+/config")).filter(([,s])=>s.configuration.io_device===this.ioDevice.id))},ioActionState(){return s=>{const o=this.$store.state.mqtt[`openWB/io/action/${s}/timestamp`];return o&&new Date(o*1e3).toLocaleString()}}},methods:{getIcon(s){return this.state[s].icon},getTitle(s){return this.state[s].title},getActionTitle(s){return this.state[s].actionTitle}}},so={class:"col-auto"},oo={class:"col text-right"},ao={class:"row"},ro={class:"row"},io={class:"row"},no={class:"row"};function co(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-card"),q=n("status-card");return i(),m(q,{subtype:"secondary",state:s.$store.state.mqtt[`${e.baseTopic}/get/fault_state`],"state-message":s.$store.state.mqtt[`${e.baseTopic}/get/fault_str`],"component-id":l.ioDevice.id},{"header-left":r(()=>[c(u,{icon:["fas","tower-broadcast"]}),g(" "+a(l.ioDevice.name),1)]),default:r(()=>[c(p,{title:"Zugehörige Aktionen",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[Object.keys(e.ioActionConfigs).length===0?(i(),m(d,{key:0,subtype:"info",class:"mb-2"},{default:r(()=>o[0]||(o[0]=[g(" Es wurden noch keine Aktionen erstellt, welche dieses IO-Gerät als Signalquelle verwenden. ",-1)])),_:1,__:[0]})):(i(!0),h(W,{key:1},x(e.ioActionConfigs,(b,f)=>(i(),h("div",{key:f,class:"row"},[t("div",so,[c(u,{title:e.getActionTitle(![void 0,null].includes(e.ioActionState(b.id))),icon:e.getIcon(![void 0,null].includes(e.ioActionState(b.id))),class:"fa-fw"},null,8,["title","icon"]),g(" "+a(b.name),1)]),t("div",oo,a(e.ioActionState(b.id)),1)]))),128))]),_:1}),e.hasDigitalInputs?(i(),m(p,{key:0,title:"Digitale Eingänge",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",ao,[(i(!0),h(W,null,x(e.digitalInputStates,(b,f)=>(i(),h("div",{key:f,class:"col io-state"},[g(a(f)+": ",1),c(u,{title:e.getTitle(b),icon:e.getIcon(b),class:"fa-fw"},null,8,["title","icon"])]))),128))])]),_:1})):T("",!0),e.hasDigitalOutputs?(i(),m(p,{key:1,title:"Digitale Ausgänge",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",ro,[(i(!0),h(W,null,x(e.digitalOutputStates,(b,f)=>(i(),h("div",{key:f,class:"col io-state"},[g(a(f)+": ",1),c(u,{title:e.getActionTitle(b),icon:e.getIcon(b),class:"fa-fw"},null,8,["title","icon"])]))),128))])]),_:1})):T("",!0),e.hasAnalogInputs?(i(),m(p,{key:2,title:"Analoge Eingänge",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",io,[(i(!0),h(W,null,x(e.analogInputStates,(b,f)=>(i(),h("div",{key:f,class:"col io-state"},a(f)+": "+a(b),1))),128))])]),_:1})):T("",!0),e.hasAnalogOutputs?(i(),m(p,{key:3,title:"Analoge Ausgänge",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",no,[(i(!0),h(W,null,x(e.analogOutputStates,(b,f)=>(i(),h("div",{key:f,class:"col io-state"},a(f)+": "+a(b),1))),128))])]),_:1})):T("",!0)]),_:1},8,["state","state-message","component-id"])}const lo=w(eo,[["render",co],["__scopeId","data-v-356761d0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/IoDeviceCard.vue"]]);C.add(ot);const po={name:"VehicleCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],props:{vehicleKey:{type:String,required:!0},vehicleName:{type:String,default:""}},data(){return{mqttTopicsToSubscribe:["openWB/vehicle/+/get/+"]}},computed:{vehicleIndex:{get(){return parseInt(this.vehicleKey.match(/(?:\/)(\d+)(?=\/)/)[1])}},soc:{get(){return this.formatNumberTopic(this.baseTopic+"/get/soc")}},socTimestamp:{get(){return this.$store.state.mqtt[this.baseTopic+"/get/soc_timestamp"]!==void 0?new Date(this.$store.state.mqtt[this.baseTopic+"/get/soc_timestamp"]*1e3).toLocaleString():"-"}},socRange:{get(){return this.$store.state.mqtt[this.baseTopic+"/get/range"]!==void 0?Math.round(this.$store.state.mqtt[this.baseTopic+"/get/range"]):0}},baseTopic:{get(){return"openWB/vehicle/"+this.vehicleIndex}}}},uo={class:"row"},mo={class:"col text-right text-monospace"},go={class:"col text-right text-monospace"},ho={class:"col text-right text-monospace"};function _o(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"info","component-id":e.vehicleIndex,state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},O({"header-left":r(()=>[c(u,{icon:["fas","car"]}),g(" "+a(l.vehicleName),1)]),default:r(()=>[c(d,{title:"Fahrzeugdaten",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[0]||(o[0]=t("div",{class:"row"},[t("div",{class:"col pr-0 text-right"},"Ladestand"),t("div",{class:"col pr-0 text-right"},"Reichweite"),t("div",{class:"col pr-0 text-right"},"Letzter Zeitstempel")],-1)),t("div",uo,[t("div",mo,a(e.soc)+" %",1),t("div",go,a(e.socRange)+" km",1),t("div",ho,a(e.socTimestamp),1)])]),_:1,__:[0]})]),_:2},[e.soc!="-"?{name:"header-right",fn:r(()=>[g(a(e.soc)+" % ",1)]),key:"0"}:void 0]),1032,["component-id","state","state-message"])}const bo=w(po,[["render",_o],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/VehicleCard.vue"]]);C.add(at);it.register(nt,ct,lt,dt,pt,ut,mt,gt,ht);const fo={name:"ElectricityTariffCard",components:{StatusCard:N,FontAwesomeIcon:B,ChartjsLine:_t},mixins:[k],data(){return{mqttTopicsToSubscribe:["openWB/optional/et/provider","openWB/optional/et/get/fault_state","openWB/optional/et/get/fault_str","openWB/optional/et/get/prices"],chartDatasets:{datasets:[{label:"Stromtarif",unit:"ct/kWh",type:"line",stepped:!0,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:void 0,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:"price"}}]},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0},legend:{display:!1}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"hour",text:"Zeit",maxTicksLimit:24},display:!0,title:{display:!0,text:"Uhrzeit"},ticks:{font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",title:{font:{size:12},display:!0,text:"Preis [ct/kWh]"},grid:{},ticks:{font:{size:12},stepSize:.01,maxTicksLimit:11}}}}}},computed:{electricityTariffConfigured(){const s=this.$store.state.mqtt["openWB/optional/et/provider"];return s!==void 0?s.type!==null:!1},chartDataRead(){return this.chartDataObject.datasets[0].data!=null},chartDataObject(){if(this.$store.state.mqtt["openWB/optional/et/get/prices"]){var s=this.$store.state.mqtt["openWB/optional/et/get/prices"],o=[];for(const[y,e]of Object.entries(s))o.push({timestamp:y*1e3,price:e*1e5});const _=o.slice(-1)[0];o.push({timestamp:_.timestamp+(60*60-1)*1e3,price:_.price})}const l=this.chartDatasets;return l.datasets[0].data=o,l},currentPrice(){return this.chartDataObject.datasets[0].data===void 0||this.chartDataObject.datasets[0].data.length===0?this.formatNumber(0,2):this.formatNumber(this.chartDataObject.datasets[0].data[0].price||0,2)},baseTopic:{get(){return"openWB/optional/et"}}}},vo={class:"openwb-chart"};function yo(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("chartjs-line"),p=n("openwb-base-card"),q=n("status-card");return e.electricityTariffConfigured?(i(),m(q,{key:0,subtype:"secondary",state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","ranking-star"]}),o[0]||(o[0]=g(" Variabler Stromtarif ",-1))]),"header-right":r(()=>[g(a(e.currentPrice)+" ct/kWh",1)]),default:r(()=>[c(p,{title:"Anbieter: "+s.$store.state.mqtt[e.baseTopic+"/provider"].name,subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",vo,[e.chartDataRead?(i(),m(d,{key:0,ref:"myChart",data:e.chartDataObject,options:y.chartOptions},null,8,["data","options"])):T("",!0)])]),_:1},8,["title"])]),_:1},8,["state","state-message"])):T("",!0)}const To=w(fo,[["render",yo],["__scopeId","data-v-f4769d2f"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ElectricityTariffCard.vue"]]);const wo={name:"OpenwbStatusView",components:{ChargePointSumCard:Lt,ChargePointCard:ve,CounterCard:Xe,InverterSumCard:cs,InverterCard:Ws,BatterySumCard:Ls,BatteryCard:to,IoDeviceCard:lo,VehicleCard:bo,ElectricityTariffCard:To},mixins:[k],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/device/+/component/+/config","openWB/system/io/+/config","openWB/vehicle/+/name","openWB/chargepoint/+/config"]}},computed:{installedChargePoints:{get(){let s=this.getWildcardTopics("openWB/chargepoint/+/config"),o={};for(const[l,_]of Object.entries(s))(_.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(o[l]=_);return o}},numChargePointsInstalled:{get(){return Object.keys(this.installedChargePoints).length}},counterConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"counter")}},ioDeviceConfigs:{get(){return this.getWildcardTopics("openWB/system/io/+/config")}},numInvertersInstalled:{get(){return Object.keys(this.inverterConfigs).length}},inverterConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"inverter")}},numBatteriesInstalled:{get(){return Object.keys(this.batteryConfigs).length}},batteryConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"bat")}},vehicleNames:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.getWildcardTopics("openWB/vehicle/+/name")}}},methods:{filterComponentsByType(s,o){return Object.keys(s).filter(l=>s[l].type.includes(o)).reduce((l,_)=>({...l,[_]:s[_]}),{})}}},xo={class:"status"};function Wo(s,o,l,_,y,e){const u=n("charge-point-sum-card"),d=n("charge-point-card"),p=n("counter-card"),q=n("inverter-sum-card"),b=n("inverter-card"),f=n("battery-sum-card"),L=n("battery-card"),j=n("vehicle-card"),D=n("io-device-card"),E=n("electricity-tariff-card");return i(),h("div",xo,[e.numChargePointsInstalled>1&&s.$store.state.mqtt["openWB/general/extern"]===!1?(i(),m(u,{key:0})):T("",!0),(i(!0),h(W,null,x(e.installedChargePoints,(v,$)=>(i(),m(d,{key:$,"installed-charge-point":v,"installed-charge-point-key":$},null,8,["installed-charge-point","installed-charge-point-key"]))),128)),(i(!0),h(W,null,x(e.counterConfigs,v=>(i(),m(p,{key:v.id,counter:v},null,8,["counter"]))),128)),e.numInvertersInstalled>1&&s.$store.state.mqtt["openWB/general/extern"]===!1?(i(),m(q,{key:1})):T("",!0),(i(!0),h(W,null,x(e.inverterConfigs,v=>(i(),m(b,{key:v.id,inverter:v},null,8,["inverter"]))),128)),e.numBatteriesInstalled>1&&s.$store.state.mqtt["openWB/general/extern"]===!1?(i(),m(f,{key:2})):T("",!0),(i(!0),h(W,null,x(e.batteryConfigs,v=>(i(),m(L,{key:v.id,battery:v},null,8,["battery"]))),128)),(i(!0),h(W,null,x(e.vehicleNames,(v,$)=>(i(),m(j,{key:$,"vehicle-key":$,"vehicle-name":v},null,8,["vehicle-key","vehicle-name"]))),128)),(i(!0),h(W,null,x(e.ioDeviceConfigs,v=>(i(),m(D,{key:v.id,"io-device":v},null,8,["io-device"]))),128)),s.$store.state.mqtt["openWB/general/extern"]===!1?(i(),m(E,{key:3})):T("",!0)])}const Io=w(wo,[["render",Wo],["__scopeId","data-v-051028a3"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Status.vue"]]);export{Io as default}; +import{C as k}from"./index-eccf5556.js";import{l as C,O as z,P as V,c as M,f as G,F as B,Q as A,R as Z,S as H,T as R,U as F,V as K,W as Q,X as U,Y as J,Z as P,_ as I,$ as X,n as Y,o as tt,p as et,q as st,a0 as ot,a1 as at}from"./vendor-fortawesome-d6ee0a65.js";import{_ as w,u as n,l as i,x as m,D as O,E as r,A as t,m as h,G as c,B as g,F as a,z as T,p as S,q as rt,M as x,N as W}from"./vendor-57e3a63c.js";import{C as it,p as nt,a as ct,L as lt,b as dt,P as pt,c as ut,T as mt,i as gt,d as ht,e as _t}from"./vendor-chartjs-b3bc0878.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./vendor-luxon-cc86f6dc.js";C.add(z,V,M,G);const bt={name:"StatusCard",components:{FontAwesomeIcon:B},props:{subtype:{type:String,required:!0},state:{type:Number,required:!1,default:0},stateMessage:{type:String,required:!1,default:void 0},componentId:{type:Number,required:!1,default:void 0}},computed:{stateClass(){switch(this.state){case 0:return"success";case 1:return"warning";case 2:return"danger";default:return"dark"}},stateIcon(){switch(this.state){case 0:return["fas","check-circle"];case 1:return["fas","exclamation-triangle"];case 2:return["fas","times-circle"];default:return["fas","question-circle"]}},stateLabel(){switch(this.state){case 0:return"OK";case 1:return"Warnung";case 2:return"Fehler";default:return"Unbekannt"}}}},ft={class:"container"},vt={class:"row justify-content-end"},yt={key:0,class:"col px-0"},Tt={style:{"white-space":"pre-wrap"}},wt={key:1,class:"col col-auto pr-0"},xt={class:"text-right"};function Wt(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-avatar"),p=n("openwb-base-alert"),q=n("openwb-base-card");return i(),m(q,{subtype:l.subtype,collapsible:!0,collapsed:!0,class:"pb-0"},O({header:r(()=>[S(s.$slots,"header-left")]),actions:r(()=>[S(s.$slots,"header-right"),c(d,{class:rt(["ml-2",`bg-${e.stateClass}`]),title:e.stateLabel},{default:r(()=>[c(u,{icon:e.stateIcon},null,8,["icon"])]),_:1},8,["class","title"])]),default:r(()=>[S(s.$slots,"default")]),_:2},[l.componentId!==void 0||l.stateMessage?{name:"footer",fn:r(()=>[t("div",ft,[t("div",vt,[l.stateMessage?(i(),h("div",yt,[c(p,{subtype:e.stateClass},{default:r(()=>[c(u,{icon:e.stateIcon},null,8,["icon"]),o[0]||(o[0]=g(" Modulmeldung: ",-1)),t("span",Tt,a(l.stateMessage),1)]),_:1,__:[0]},8,["subtype"])])):T("",!0),l.componentId!==void 0?(i(),h("div",wt,[t("div",xt,"ID: "+a(l.componentId),1)])):T("",!0)])])]),key:"0"}:void 0]),1032,["subtype"])}const N=w(bt,[["render",Wt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/StatusCard.vue"]]);C.add(A);const kt={name:"ChargePointSumCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],data(){return{mqttTopicsToSubscribe:["openWB/chargepoint/get/power","openWB/chargepoint/get/imported","openWB/chargepoint/get/exported","openWB/chargepoint/get/daily_imported","openWB/chargepoint/get/daily_exported"]}},computed:{baseTopic:{get(){return"openWB/chargepoint"}}}},Ct={class:"text-right"},Bt={class:"row"},Nt={class:"col text-right text-monospace"},qt={class:"row"},$t={class:"col-4 text-right text-monospace"},St={class:"col-4 text-right text-monospace"},At={class:"row"},Pt={class:"col-4 text-right text-monospace"},It={class:"col-4 text-right text-monospace"};function Ot(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"primary"},{"header-left":r(()=>[c(u,{icon:["fas","charging-station"]}),o[0]||(o[0]=g(" Alle Ladepunkte ",-1))]),"header-right":r(()=>[t("span",Ct,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW ",1)]),default:r(()=>[c(d,{subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[1]||(o[1]=t("div",{class:"row py-2"},[t("div",{class:"col font-weight-bold"},"Ladevorgang"),t("div",{class:"col text-right"},"Leistung")],-1)),t("div",Bt,[t("div",Nt,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001)),1)])]),_:1,__:[1]}),c(d,{subtype:"white","body-bg":"white",class:"py-1 mb-2",title:"Zählerstände"},{default:r(()=>[o[4]||(o[4]=t("div",{class:"row justify-content-end"},[t("div",{class:"col-4 text-right"},"Geladen"),t("div",{class:"col-4 text-right"},"Entladen")],-1)),t("div",qt,[o[2]||(o[2]=t("div",{class:"col text-right"},"Heute",-1)),t("div",$t,a(s.formatNumberTopic(e.baseTopic+"/get/daily_imported",3,3,.001)+" kWh"),1),t("div",St,a(s.formatNumberTopic(e.baseTopic+"/get/daily_exported",3,3,.001)+" kWh"),1)]),t("div",At,[o[3]||(o[3]=t("div",{class:"col text-right"},"Gesamt",-1)),t("div",Pt,a(s.formatNumberTopic(e.baseTopic+"/get/imported",3,3,.001)+" kWh"),1),t("div",It,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001)+" kWh"),1)])]),_:1,__:[4]})]),_:1})}const Lt=w(kt,[["render",Ot],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ChargePointSumCard.vue"]]);C.add(A,Z,H,R,F,K,Q,U);const jt={name:"ChargePointCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],props:{installedChargePointKey:{type:String,required:!0},installedChargePoint:{type:Object,required:!0}},data(){return{mqttTopicsToSubscribe:[`openWB/chargepoint/${this.installedChargePoint.id}/get/+`,`openWB/chargepoint/${this.installedChargePoint.id}/get/connected_vehicle/info`,`openWB/chargepoint/${this.installedChargePoint.id}/set/+`,`openWB/internal_chargepoint/${this.installedChargePoint.id}/data/phases_to_use`]}},computed:{chargePointIndex:{get(){return this.installedChargePoint.id}},baseTopic:{get(){return"openWB/chargepoint/"+this.chargePointIndex}},chargingStatus:{get(){let s=this.$store.state.mqtt[this.baseTopic+"/get/plug_state"],o=this.$store.state.mqtt[this.baseTopic+"/get/charge_state"];return s==1&&o==1?{icon:["fas","plug-circle-bolt"],text:"Fahrzeug angesteckt, Ladevorgang aktiv"}:s==1?{icon:["fas","plug-circle-check"],text:"Fahrzeug angesteckt, kein Ladevorgang aktiv"}:{icon:["fas","plug-circle-minus"],text:"Kein Fahrzeug angesteckt"}}}}},Dt={class:"row py-2"},Et={class:"col text-right"},zt={style:{"white-space":"pre-wrap"}},Vt={class:"row"},Mt={class:"col text-right text-monospace"},Gt={class:"col text-right text-monospace"},Zt={class:"row"},Ht={key:0,class:"col text-right text-monospace"},Rt={key:1,class:"col text-right text-monospace"},Ft={class:"col text-right text-monospace"},Kt={class:"row"},Qt={class:"col-4 text-right text-monospace"},Ut={class:"col-4 text-right text-monospace"},Jt={class:"row"},Xt={class:"col-4 text-right text-monospace"},Yt={class:"col-4 text-right text-monospace"},te={class:"row"},ee={class:"col text-right text-monospace"},se={class:"col text-right text-monospace"},oe={class:"col text-right text-monospace"},ae={class:"row"},re={class:"col text-right text-monospace"},ie={class:"col text-right text-monospace"},ne={class:"col text-right text-monospace"},ce={class:"row"},le={class:"col text-right text-monospace"},de={class:"col text-right text-monospace"},pe={class:"col text-right text-monospace"},ue={class:"row"},me={class:"col text-right text-monospace"},ge={class:"col text-right text-monospace"},he={class:"col text-right text-monospace"},_e={class:"row"},be={class:"col text-center text-monospace"};function fe(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-card"),q=n("status-card");return i(),m(q,{subtype:"primary","component-id":e.chargePointIndex,state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","charging-station"]}),g(" "+a(l.installedChargePoint.name),1)]),"header-right":r(()=>[g(a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW",1)]),default:r(()=>[c(p,{subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",Dt,[o[0]||(o[0]=t("div",{class:"col col-auto font-weight-bold"},"Status",-1)),t("div",Et,[c(u,{icon:e.chargingStatus.icon,title:e.chargingStatus.text},null,8,["icon","title"]),g(" "+a(e.chargingStatus.text),1)])]),c(d,{subtype:"info"},{default:r(()=>[o[1]||(o[1]=g(" Statusmeldung: ",-1)),t("span",zt,a(s.$store.state.mqtt[e.baseTopic+"/get/state_str"]),1)]),_:1,__:[1]}),t("div",null," max. Ladeleistung: "+a((s.max_power=s.formatNumberTopic(e.baseTopic+"/get/max_evse_current",0))=="-"?s.max_power:Math.floor(s.max_power*3*230/1e3))+" kW ",1)]),_:1}),c(p,{subtype:"white","body-bg":"white",class:"py-1 mb-2",title:"Ladevorgang"},{default:r(()=>[o[2]||(o[2]=t("div",{class:"row"},[t("div",{class:"col text-right"},"Ladestrom Vorgabe"),t("div",{class:"col text-right"},"Leistung")],-1)),t("div",Vt,[t("div",Mt,a(s.formatNumberTopic(e.baseTopic+"/set/current",2))+" A",1),t("div",Gt,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW ",1)]),o[3]||(o[3]=t("div",{class:"row"},[t("div",{class:"col text-right"},"Phasen Vorgabe"),t("div",{class:"col text-right"},"Phasen Aktuell")],-1)),t("div",Zt,[s.$store.state.mqtt["openWB/general/extern"]===!0?(i(),h("div",Ht,a(s.formatNumberTopic("openWB/internal_chargepoint/"+e.chargePointIndex+"/data/phases_to_use")),1)):(i(),h("div",Rt,a(s.formatNumberTopic(e.baseTopic+"/set/phases_to_use")),1)),t("div",Ft,a(s.formatNumberTopic(e.baseTopic+"/get/phases_in_use")),1)])]),_:1,__:[2,3]}),c(p,{subtype:"white","body-bg":"white",class:"py-1 mb-2",title:"Zählerstände"},{default:r(()=>[o[6]||(o[6]=t("div",{class:"row justify-content-end"},[t("div",{class:"col-4 text-right"},"Geladen"),t("div",{class:"col-4 text-right"},"Entladen")],-1)),t("div",Kt,[o[4]||(o[4]=t("div",{class:"col text-right"},"Heute",-1)),t("div",Qt,a(s.formatNumberTopic(e.baseTopic+"/get/daily_imported",3,3,.001))+" kWh ",1),t("div",Ut,a(s.formatNumberTopic(e.baseTopic+"/get/daily_exported",3,3,.001))+" kWh ",1)]),t("div",Jt,[o[5]||(o[5]=t("div",{class:"col text-right"},"Gesamt",-1)),t("div",Xt,a(s.formatNumberTopic(e.baseTopic+"/get/imported",3,3,.001))+" kWh ",1),t("div",Yt,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001))+" kWh ",1)])]),_:1,__:[6]}),c(p,{subtype:"white","body-bg":"white",class:"py-1 mb-2",title:"Werte pro Phase"},{default:r(()=>[t("div",te,[o[7]||(o[7]=t("div",{class:"col-md-4 pr-1 text-center text-md-right"},"Spannung [V]",-1)),t("div",ee,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/voltages",1)[0]),1),t("div",se,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/voltages",1)[1]),1),t("div",oe,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/voltages",1)[2]),1)]),t("div",ae,[o[8]||(o[8]=t("div",{class:"col-md-4 pr-1 text-center text-md-right"},"Strom [A]",-1)),t("div",re,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[0]),1),t("div",ie,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[1]),1),t("div",ne,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[2]),1)]),t("div",ce,[o[9]||(o[9]=t("div",{class:"col-md-4 pr-1 text-center text-md-right"},"Wirkleistung [kW]",-1)),t("div",le,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/powers",3,3,.001)[0]),1),t("div",de,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/powers",3,3,.001)[1]),1),t("div",pe,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/powers",3,3,.001)[2]),1)]),t("div",ue,[o[10]||(o[10]=t("div",{class:"col-md-4 pr-1 text-center text-md-right"},"Leistungsfaktor",-1)),t("div",me,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/power_factors",2)[0]),1),t("div",ge,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/power_factors",2)[1]),1),t("div",he,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/power_factors",2)[2]),1)]),t("div",_e,[o[11]||(o[11]=t("div",{class:"col-md-4 pr-1 text-center text-md-right"},"Netzfrequenz",-1)),t("div",be,a(s.formatNumberTopic(e.baseTopic+"/get/frequency",3))+" Hz ",1)])]),_:1})]),_:1},8,["component-id","state","state-message"])}const ve=w(jt,[["render",fe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ChargePointCard.vue"]]);C.add(J);const ye={name:"CounterCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],props:{counter:{type:Object,required:!0}},data(){return{mqttTopicsToSubscribe:[`openWB/counter/${this.counter.id}/get/+`]}},computed:{baseTopic:{get(){return"openWB/counter/"+this.counter.id}}}},Te={class:"row"},we={class:"col text-right text-monospace pl-0"},xe={class:"col text-right text-monospace pl-0"},We={class:"row"},ke={class:"col text-right text-monospace pl-0"},Ce={class:"col text-right text-monospace pl-0"},Be={class:"row"},Ne={class:"col"},qe={class:"row"},$e={class:"col text-right text-monospace pl-0"},Se={class:"col text-right text-monospace pl-0"},Ae={class:"col text-right text-monospace pl-0"},Pe={class:"row"},Ie={class:"col"},Oe={class:"row"},Le={class:"col text-right text-monospace pl-0"},je={class:"col text-right text-monospace pl-0"},De={class:"col text-right text-monospace pl-0"},Ee={class:"row"},ze={class:"col"},Ve={class:"row"},Me={class:"col text-right text-monospace pl-0"},Ge={class:"col text-right text-monospace pl-0"},Ze={class:"col text-right text-monospace pl-0"},He={class:"row"},Re={class:"col"},Fe={class:"row"},Ke={class:"col text-right text-monospace pl-0"},Qe={class:"col text-right text-monospace pl-0"},Ue={class:"col text-right text-monospace pl-0"};function Je(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"danger","component-id":l.counter.id,state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","gauge-high"]}),g(" "+a(l.counter.name),1)]),"header-right":r(()=>[g(a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW",1)]),default:r(()=>[c(d,{title:"Aktuelle Werte",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[0]||(o[0]=t("div",{class:"row"},[t("div",{class:"col-6 text-right"},"Leistung"),t("div",{class:"col-6 text-right"},"Netzfrequenz")],-1)),t("div",Te,[t("div",we,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001)+" kW"),1),t("div",xe,a(s.formatNumberTopic(e.baseTopic+"/get/frequency",3)+" Hz"),1)])]),_:1,__:[0]}),c(d,{title:"Zählerstände",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[1]||(o[1]=t("div",{class:"row"},[t("div",{class:"col-6 text-right"},"Export"),t("div",{class:"col-6 text-right"},"Import")],-1)),t("div",We,[t("div",ke,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001)+" kWh"),1),t("div",Ce,a(s.formatNumberTopic(e.baseTopic+"/get/imported",3,3,.001)+" kWh"),1)])]),_:1,__:[1]}),c(d,{title:"Werte pro Phase",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",Be,[o[2]||(o[2]=t("div",{class:"col-md-4 pr-0 text-center text-md-right"},"Spannung [V]",-1)),t("div",Ne,[t("div",qe,[t("div",$e,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/voltages",1)[0]),1),t("div",Se,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/voltages",1)[1]),1),t("div",Ae,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/voltages",1)[2]),1)])])]),t("div",Pe,[o[3]||(o[3]=t("div",{class:"col-md-4 pr-0 text-center text-md-right"},"Strom [A]",-1)),t("div",Ie,[t("div",Oe,[t("div",Le,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[0]),1),t("div",je,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[1]),1),t("div",De,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[2]),1)])])]),t("div",Ee,[o[4]||(o[4]=t("div",{class:"col-md-4 pr-0 text-center text-md-right"},"Wirkleistung [kW]",-1)),t("div",ze,[t("div",Ve,[t("div",Me,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/powers",3,3,.001)[0]),1),t("div",Ge,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/powers",3,3,.001)[1]),1),t("div",Ze,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/powers",3,3,.001)[2]),1)])])]),t("div",He,[o[5]||(o[5]=t("div",{class:"col-md-4 pr-0 text-center text-md-right"},"Leistungsfaktor",-1)),t("div",Re,[t("div",Fe,[t("div",Ke,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/power_factors",2)[0]),1),t("div",Qe,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/power_factors",2)[1]),1),t("div",Ue,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/power_factors",2)[2]),1)])])])]),_:1})]),_:1},8,["component-id","state","state-message"])}const Xe=w(ye,[["render",Je],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/CounterCard.vue"]]);C.add(P);const Ye={name:"InverterSumCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],data(){return{mqttTopicsToSubscribe:["openWB/pv/get/+"]}},computed:{baseTopic:{get(){return"openWB/pv"}}}},ts={class:"row"},es={class:"col text-right text-monospace"},ss={class:"col text-right text-monospace"},os={class:"row"},as={class:"col text-right text-monospace"},rs={class:"col text-right text-monospace"},is={class:"col text-right text-monospace"};function ns(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"success",state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","solar-panel"]}),o[0]||(o[0]=g(" Alle Wechselrichter ",-1))]),"header-right":r(()=>[g(a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW",1)]),default:r(()=>[c(d,{title:"Aktuelle Werte",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[1]||(o[1]=t("div",{class:"row"},[t("div",{class:"col text-right"},"Leistung"),t("div",{class:"col text-right"},"Zählerstand")],-1)),t("div",ts,[t("div",es,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW ",1),t("div",ss,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001))+" kWh ",1)])]),_:1,__:[1]}),c(d,{title:"Erträge",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[2]||(o[2]=t("div",{class:"row"},[t("div",{class:"col text-right"},"Heute"),t("div",{class:"col text-right"},"Monat"),t("div",{class:"col text-right"},"Jahr")],-1)),t("div",os,[t("div",as,a(s.formatNumberTopic(e.baseTopic+"/get/daily_exported",3,3,.001))+" kWh ",1),t("div",rs,a(s.formatNumberTopic(e.baseTopic+"/get/monthly_exported",1,1,.001))+" kWh ",1),t("div",is,a(s.formatNumberTopic(e.baseTopic+"/get/yearly_exported",0,0,.001))+" kWh ",1)])]),_:1,__:[2]})]),_:1},8,["state","state-message"])}const cs=w(Ye,[["render",ns],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/InverterSumCard.vue"]]);C.add(P);const ls={name:"InverterCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],props:{inverter:{type:Object,required:!0}},data(){return{mqttTopicsToSubscribe:[`openWB/pv/${this.inverter.id}/get/+`]}},computed:{baseTopic:{get(){return"openWB/pv/"+this.inverter.id}}}},ds={class:"row"},ps={class:"col text-right text-monospace"},us={class:"col text-right text-monospace"},ms={class:"row"},gs={class:"col text-right text-monospace"},hs={class:"col text-right text-monospace"},_s={class:"col text-right text-monospace"},bs={class:"row"},fs={class:"col"},vs={class:"row"},ys={class:"col text-right text-monospace pl-0"},Ts={class:"col text-right text-monospace pl-0"},ws={class:"col text-right text-monospace pl-0"};function xs(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"success","component-id":l.inverter.id,state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","solar-panel"]}),g(" "+a(l.inverter.name),1)]),"header-right":r(()=>[g(a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW",1)]),default:r(()=>[c(d,{title:"Aktuelle Werte",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[0]||(o[0]=t("div",{class:"row"},[t("div",{class:"col text-right"},"Leistung"),t("div",{class:"col text-right"},"Zählerstand")],-1)),t("div",ds,[t("div",ps,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW ",1),t("div",us,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001))+" kWh ",1)])]),_:1,__:[0]}),c(d,{title:"Erträge",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[1]||(o[1]=t("div",{class:"row"},[t("div",{class:"col text-right"},"Heute"),t("div",{class:"col text-right"},"Monat"),t("div",{class:"col text-right"},"Jahr")],-1)),t("div",ms,[t("div",gs,a(s.formatNumberTopic(e.baseTopic+"/get/daily_exported",3,3,.001))+" kWh ",1),t("div",hs,a(s.formatNumberTopic(e.baseTopic+"/get/monthly_exported",1,1,.001))+" kWh ",1),t("div",_s,a(s.formatNumberTopic(e.baseTopic+"/get/yearly_exported",0,0,.001))+" kWh ",1)])]),_:1,__:[1]}),c(d,{title:"Werte pro Phase",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",bs,[o[2]||(o[2]=t("div",{class:"col-md-4 pr-0 text-center text-md-right"},"Strom [A]",-1)),t("div",fs,[t("div",vs,[t("div",ys,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[0]),1),t("div",Ts,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[1]),1),t("div",ws,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[2]),1)])])])]),_:1})]),_:1},8,["component-id","state","state-message"])}const Ws=w(ls,[["render",xs],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/InverterCard.vue"]]);C.add(I);const ks={name:"BatterySumCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],data(){return{mqttTopicsToSubscribe:["openWB/bat/get/+"]}},computed:{baseTopic:{get(){return"openWB/bat"}}}},Cs={class:"row"},Bs={class:"col text-right text-monospace pl-0"},Ns={class:"col text-right text-monospace pl-0"},qs={class:"row"},$s={class:"col text-right text-monospace"},Ss={class:"col text-right text-monospace"},As={class:"row"},Ps={class:"col text-right text-monospace"},Is={class:"col text-right text-monospace"};function Os(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"warning",state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","car-battery"]}),o[0]||(o[0]=g(" Alle Speicher ",-1))]),"header-right":r(()=>[g(a(s.formatNumberTopic(e.baseTopic+"/get/power",1,1,.001))+" kW / "+a(s.$store.state.mqtt[e.baseTopic+"/get/soc"])+" % ",1)]),default:r(()=>[c(d,{title:"Aktuelle Werte",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[1]||(o[1]=t("div",{class:"row"},[t("div",{class:"col-6 text-right"},"Leistung"),t("div",{class:"col-6 text-right"},"Ladestand")],-1)),t("div",Cs,[t("div",Bs,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW ",1),t("div",Ns,a(s.$store.state.mqtt[e.baseTopic+"/get/soc"])+" %",1)])]),_:1,__:[1]}),c(d,{title:"Zählerstände",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[4]||(o[4]=t("div",{class:"row"},[t("div",{class:"col"}),t("div",{class:"col text-right"},"Geladen"),t("div",{class:"col text-right"},"Entladen")],-1)),t("div",qs,[o[2]||(o[2]=t("div",{class:"col text-right"},"Heute",-1)),t("div",$s,a(s.formatNumberTopic(e.baseTopic+"/get/daily_imported",3,3,.001))+" kWh ",1),t("div",Ss,a(s.formatNumberTopic(e.baseTopic+"/get/daily_exported",3,3,.001))+" kWh ",1)]),t("div",As,[o[3]||(o[3]=t("div",{class:"col text-right"},"Gesamt",-1)),t("div",Ps,a(s.formatNumberTopic(e.baseTopic+"/get/imported",3,3,.001))+" kWh ",1),t("div",Is,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001))+" kWh ",1)])]),_:1,__:[4]})]),_:1},8,["state","state-message"])}const Ls=w(ks,[["render",Os],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/BatterySumCard.vue"]]);C.add(I);const js={name:"BatteryCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],props:{battery:{type:Object,required:!0}},data(){return{mqttTopicsToSubscribe:[`openWB/bat/${this.battery.id}/get/+`]}},computed:{baseTopic:{get(){return"openWB/bat/"+this.battery.id}}}},Ds={class:"row"},Es={class:"col text-right text-monospace pl-0"},zs={class:"col text-right text-monospace pl-0"},Vs={class:"row"},Ms={class:"col text-right text-monospace"},Gs={class:"col text-right text-monospace"},Zs={class:"row"},Hs={class:"col text-right text-monospace"},Rs={class:"col text-right text-monospace"},Fs={class:"row"},Ks={class:"col"},Qs={class:"row"},Us={class:"col text-right text-monospace pl-0"},Js={class:"col text-right text-monospace pl-0"},Xs={class:"col text-right text-monospace pl-0"};function Ys(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"warning","component-id":l.battery.id,state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","car-battery"]}),g(" "+a(l.battery.name),1)]),"header-right":r(()=>[g(a(s.formatNumberTopic(e.baseTopic+"/get/power",1,1,.001))+" kW / "+a(s.$store.state.mqtt[e.baseTopic+"/get/soc"])+" % ",1)]),default:r(()=>[c(d,{title:"Aktuelle Werte",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[0]||(o[0]=t("div",{class:"row"},[t("div",{class:"col-6 text-right"},"Leistung"),t("div",{class:"col-6 text-right"},"Ladestand")],-1)),t("div",Ds,[t("div",Es,a(s.formatNumberTopic(e.baseTopic+"/get/power",3,3,.001))+" kW ",1),t("div",zs,a(s.$store.state.mqtt[e.baseTopic+"/get/soc"])+" %",1)])]),_:1,__:[0]}),c(d,{title:"Zählerstände",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[3]||(o[3]=t("div",{class:"row"},[t("div",{class:"col"}),t("div",{class:"col text-right"},"Geladen"),t("div",{class:"col text-right"},"Entladen")],-1)),t("div",Vs,[o[1]||(o[1]=t("div",{class:"col text-right"},"Heute",-1)),t("div",Ms,a(s.formatNumberTopic(e.baseTopic+"/get/daily_imported",3,3,.001))+" kWh ",1),t("div",Gs,a(s.formatNumberTopic(e.baseTopic+"/get/daily_exported",3,3,.001))+" kWh ",1)]),t("div",Zs,[o[2]||(o[2]=t("div",{class:"col text-right"},"Gesamt",-1)),t("div",Hs,a(s.formatNumberTopic(e.baseTopic+"/get/imported",3,3,.001))+" kWh ",1),t("div",Rs,a(s.formatNumberTopic(e.baseTopic+"/get/exported",3,3,.001))+" kWh ",1)])]),_:1,__:[3]}),c(d,{title:"Werte pro Phase",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",Fs,[o[4]||(o[4]=t("div",{class:"col-md-4 pr-0 text-center text-md-right"},"Strom [A]",-1)),t("div",Ks,[t("div",Qs,[t("div",Us,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[0]),1),t("div",Js,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[1]),1),t("div",Xs,a(s.formatPhaseArrayNumberTopic(e.baseTopic+"/get/currents",2)[2]),1)])])])]),_:1})]),_:1},8,["component-id","state","state-message"])}const to=w(js,[["render",Ys],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/BatteryCard.vue"]]);C.add(X,Y,tt,et,st);const eo={name:"IoDeviceCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],props:{ioDevice:{type:Object,required:!0}},data(){return{mqttTopicsToSubscribe:[`openWB/io/states/${this.ioDevice.id}/get/+`,"openWB/io/action/+/config","openWB/io/action/+/timestamp"],state:{true:{icon:["fas","square"],title:"Geschlossen",actionTitle:"Aktiv"},false:{icon:["far","square"],title:"Offen",actionTitle:"Inaktiv"}}}},computed:{baseTopic(){return`openWB/io/states/${this.ioDevice.id}`},hasDigitalInputs(){return Object.keys(this.$store.state.mqtt[`${this.baseTopic}/get/digital_input`]||{}).length>0},hasDigitalOutputs(){return Object.keys(this.$store.state.mqtt[`${this.baseTopic}/get/digital_output`]||{}).length>0},hasAnalogInputs(){return Object.keys(this.$store.state.mqtt[`${this.baseTopic}/get/analog_input`]||{}).length>0},hasAnalogOutputs(){return Object.keys(this.$store.state.mqtt[`${this.baseTopic}/get/analog_output`]||{}).length>0},digitalInputStates(){return this.$store.state.mqtt[`${this.baseTopic}/get/digital_input`]},digitalOutputStates(){return this.$store.state.mqtt[`${this.baseTopic}/get/digital_output`]},analogInputStates(){return this.$store.state.mqtt[`${this.baseTopic}/get/analog_input`]},analogOutputStates(){return this.$store.state.mqtt[`${this.baseTopic}/get/analog_output`]},ioActionConfigs(){return Object.fromEntries(Object.entries(this.getWildcardTopics("openWB/io/action/+/config")).filter(([,s])=>s.configuration.io_device===this.ioDevice.id))},ioActionState(){return s=>{const o=this.$store.state.mqtt[`openWB/io/action/${s}/timestamp`];return o&&new Date(o*1e3).toLocaleString()}}},methods:{getIcon(s){return this.state[s].icon},getTitle(s){return this.state[s].title},getActionTitle(s){return this.state[s].actionTitle}}},so={class:"col-auto"},oo={class:"col text-right"},ao={class:"row"},ro={class:"row"},io={class:"row"},no={class:"row"};function co(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-card"),q=n("status-card");return i(),m(q,{subtype:"secondary",state:s.$store.state.mqtt[`${e.baseTopic}/get/fault_state`],"state-message":s.$store.state.mqtt[`${e.baseTopic}/get/fault_str`],"component-id":l.ioDevice.id},{"header-left":r(()=>[c(u,{icon:["fas","tower-broadcast"]}),g(" "+a(l.ioDevice.name),1)]),default:r(()=>[c(p,{title:"Zugehörige Aktionen",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[Object.keys(e.ioActionConfigs).length===0?(i(),m(d,{key:0,subtype:"info",class:"mb-2"},{default:r(()=>o[0]||(o[0]=[g(" Es wurden noch keine Aktionen erstellt, welche dieses IO-Gerät als Signalquelle verwenden. ",-1)])),_:1,__:[0]})):(i(!0),h(W,{key:1},x(e.ioActionConfigs,(b,f)=>(i(),h("div",{key:f,class:"row"},[t("div",so,[c(u,{title:e.getActionTitle(![void 0,null].includes(e.ioActionState(b.id))),icon:e.getIcon(![void 0,null].includes(e.ioActionState(b.id))),class:"fa-fw"},null,8,["title","icon"]),g(" "+a(b.name),1)]),t("div",oo,a(e.ioActionState(b.id)),1)]))),128))]),_:1}),e.hasDigitalInputs?(i(),m(p,{key:0,title:"Digitale Eingänge",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",ao,[(i(!0),h(W,null,x(e.digitalInputStates,(b,f)=>(i(),h("div",{key:f,class:"col io-state"},[g(a(f)+": ",1),c(u,{title:e.getTitle(b),icon:e.getIcon(b),class:"fa-fw"},null,8,["title","icon"])]))),128))])]),_:1})):T("",!0),e.hasDigitalOutputs?(i(),m(p,{key:1,title:"Digitale Ausgänge",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",ro,[(i(!0),h(W,null,x(e.digitalOutputStates,(b,f)=>(i(),h("div",{key:f,class:"col io-state"},[g(a(f)+": ",1),c(u,{title:e.getActionTitle(b),icon:e.getIcon(b),class:"fa-fw"},null,8,["title","icon"])]))),128))])]),_:1})):T("",!0),e.hasAnalogInputs?(i(),m(p,{key:2,title:"Analoge Eingänge",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",io,[(i(!0),h(W,null,x(e.analogInputStates,(b,f)=>(i(),h("div",{key:f,class:"col io-state"},a(f)+": "+a(b),1))),128))])]),_:1})):T("",!0),e.hasAnalogOutputs?(i(),m(p,{key:3,title:"Analoge Ausgänge",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",no,[(i(!0),h(W,null,x(e.analogOutputStates,(b,f)=>(i(),h("div",{key:f,class:"col io-state"},a(f)+": "+a(b),1))),128))])]),_:1})):T("",!0)]),_:1},8,["state","state-message","component-id"])}const lo=w(eo,[["render",co],["__scopeId","data-v-356761d0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/IoDeviceCard.vue"]]);C.add(ot);const po={name:"VehicleCard",components:{StatusCard:N,FontAwesomeIcon:B},mixins:[k],props:{vehicleKey:{type:String,required:!0},vehicleName:{type:String,default:""}},data(){return{mqttTopicsToSubscribe:["openWB/vehicle/+/get/+"]}},computed:{vehicleIndex:{get(){return parseInt(this.vehicleKey.match(/(?:\/)(\d+)(?=\/)/)[1])}},soc:{get(){return this.formatNumberTopic(this.baseTopic+"/get/soc")}},socTimestamp:{get(){return this.$store.state.mqtt[this.baseTopic+"/get/soc_timestamp"]!==void 0?new Date(this.$store.state.mqtt[this.baseTopic+"/get/soc_timestamp"]*1e3).toLocaleString():"-"}},socRange:{get(){return this.$store.state.mqtt[this.baseTopic+"/get/range"]!==void 0?Math.round(this.$store.state.mqtt[this.baseTopic+"/get/range"]):0}},baseTopic:{get(){return"openWB/vehicle/"+this.vehicleIndex}}}},uo={class:"row"},mo={class:"col text-right text-monospace"},go={class:"col text-right text-monospace"},ho={class:"col text-right text-monospace"};function _o(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("openwb-base-card"),p=n("status-card");return i(),m(p,{subtype:"info","component-id":e.vehicleIndex,state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},O({"header-left":r(()=>[c(u,{icon:["fas","car"]}),g(" "+a(l.vehicleName),1)]),default:r(()=>[c(d,{title:"Fahrzeugdaten",subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[o[0]||(o[0]=t("div",{class:"row"},[t("div",{class:"col pr-0 text-right"},"Ladestand"),t("div",{class:"col pr-0 text-right"},"Reichweite"),t("div",{class:"col pr-0 text-right"},"Letzter Zeitstempel")],-1)),t("div",uo,[t("div",mo,a(e.soc)+" %",1),t("div",go,a(e.socRange)+" km",1),t("div",ho,a(e.socTimestamp),1)])]),_:1,__:[0]})]),_:2},[e.soc!="-"?{name:"header-right",fn:r(()=>[g(a(e.soc)+" % ",1)]),key:"0"}:void 0]),1032,["component-id","state","state-message"])}const bo=w(po,[["render",_o],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/VehicleCard.vue"]]);C.add(at);it.register(nt,ct,lt,dt,pt,ut,mt,gt,ht);const fo={name:"ElectricityTariffCard",components:{StatusCard:N,FontAwesomeIcon:B,ChartjsLine:_t},mixins:[k],data(){return{mqttTopicsToSubscribe:["openWB/optional/et/provider","openWB/optional/et/get/fault_state","openWB/optional/et/get/fault_str","openWB/optional/et/get/prices"],chartDatasets:{datasets:[{label:"Stromtarif",unit:"ct/kWh",type:"line",stepped:!0,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:void 0,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:"price"}}]},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0},legend:{display:!1}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"hour",text:"Zeit",maxTicksLimit:24},display:!0,title:{display:!0,text:"Uhrzeit"},ticks:{font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",title:{font:{size:12},display:!0,text:"Preis [ct/kWh]"},grid:{},ticks:{font:{size:12},stepSize:.01,maxTicksLimit:11}}}}}},computed:{electricityTariffConfigured(){const s=this.$store.state.mqtt["openWB/optional/et/provider"];return s!==void 0?s.type!==null:!1},chartDataRead(){return this.chartDataObject.datasets[0].data!=null},chartDataObject(){if(this.$store.state.mqtt["openWB/optional/et/get/prices"]){var s=this.$store.state.mqtt["openWB/optional/et/get/prices"],o=[];for(const[y,e]of Object.entries(s))o.push({timestamp:y*1e3,price:e*1e5});const _=o.slice(-1)[0];o.push({timestamp:_.timestamp+(60*60-1)*1e3,price:_.price})}const l=this.chartDatasets;return l.datasets[0].data=o,l},currentPrice(){return this.chartDataObject.datasets[0].data===void 0||this.chartDataObject.datasets[0].data.length===0?this.formatNumber(0,2):this.formatNumber(this.chartDataObject.datasets[0].data[0].price||0,2)},baseTopic:{get(){return"openWB/optional/et"}}}},vo={class:"openwb-chart"};function yo(s,o,l,_,y,e){const u=n("font-awesome-icon"),d=n("chartjs-line"),p=n("openwb-base-card"),q=n("status-card");return e.electricityTariffConfigured?(i(),m(q,{key:0,subtype:"secondary",state:s.$store.state.mqtt[e.baseTopic+"/get/fault_state"],"state-message":s.$store.state.mqtt[e.baseTopic+"/get/fault_str"]},{"header-left":r(()=>[c(u,{icon:["fas","ranking-star"]}),o[0]||(o[0]=g(" Variabler Stromtarif ",-1))]),"header-right":r(()=>[g(a(e.currentPrice)+" ct/kWh",1)]),default:r(()=>[c(p,{title:"Anbieter: "+s.$store.state.mqtt[e.baseTopic+"/provider"].name,subtype:"white","body-bg":"white",class:"py-1 mb-2"},{default:r(()=>[t("div",vo,[e.chartDataRead?(i(),m(d,{key:0,ref:"myChart",data:e.chartDataObject,options:y.chartOptions},null,8,["data","options"])):T("",!0)])]),_:1},8,["title"])]),_:1},8,["state","state-message"])):T("",!0)}const To=w(fo,[["render",yo],["__scopeId","data-v-f4769d2f"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ElectricityTariffCard.vue"]]);const wo={name:"OpenwbStatusView",components:{ChargePointSumCard:Lt,ChargePointCard:ve,CounterCard:Xe,InverterSumCard:cs,InverterCard:Ws,BatterySumCard:Ls,BatteryCard:to,IoDeviceCard:lo,VehicleCard:bo,ElectricityTariffCard:To},mixins:[k],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/device/+/component/+/config","openWB/system/io/+/config","openWB/vehicle/+/name","openWB/chargepoint/+/config"]}},computed:{installedChargePoints:{get(){let s=this.getWildcardTopics("openWB/chargepoint/+/config"),o={};for(const[l,_]of Object.entries(s))(_.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(o[l]=_);return o}},numChargePointsInstalled:{get(){return Object.keys(this.installedChargePoints).length}},counterConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"counter")}},ioDeviceConfigs:{get(){return this.getWildcardTopics("openWB/system/io/+/config")}},numInvertersInstalled:{get(){return Object.keys(this.inverterConfigs).length}},inverterConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"inverter")}},numBatteriesInstalled:{get(){return Object.keys(this.batteryConfigs).length}},batteryConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"bat")}},vehicleNames:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.getWildcardTopics("openWB/vehicle/+/name")}}},methods:{filterComponentsByType(s,o){return Object.keys(s).filter(l=>s[l].type.includes(o)).reduce((l,_)=>({...l,[_]:s[_]}),{})}}},xo={class:"status"};function Wo(s,o,l,_,y,e){const u=n("charge-point-sum-card"),d=n("charge-point-card"),p=n("counter-card"),q=n("inverter-sum-card"),b=n("inverter-card"),f=n("battery-sum-card"),L=n("battery-card"),j=n("vehicle-card"),D=n("io-device-card"),E=n("electricity-tariff-card");return i(),h("div",xo,[e.numChargePointsInstalled>1&&s.$store.state.mqtt["openWB/general/extern"]===!1?(i(),m(u,{key:0})):T("",!0),(i(!0),h(W,null,x(e.installedChargePoints,(v,$)=>(i(),m(d,{key:$,"installed-charge-point":v,"installed-charge-point-key":$},null,8,["installed-charge-point","installed-charge-point-key"]))),128)),(i(!0),h(W,null,x(e.counterConfigs,v=>(i(),m(p,{key:v.id,counter:v},null,8,["counter"]))),128)),e.numInvertersInstalled>1&&s.$store.state.mqtt["openWB/general/extern"]===!1?(i(),m(q,{key:1})):T("",!0),(i(!0),h(W,null,x(e.inverterConfigs,v=>(i(),m(b,{key:v.id,inverter:v},null,8,["inverter"]))),128)),e.numBatteriesInstalled>1&&s.$store.state.mqtt["openWB/general/extern"]===!1?(i(),m(f,{key:2})):T("",!0),(i(!0),h(W,null,x(e.batteryConfigs,v=>(i(),m(L,{key:v.id,battery:v},null,8,["battery"]))),128)),(i(!0),h(W,null,x(e.vehicleNames,(v,$)=>(i(),m(j,{key:$,"vehicle-key":$,"vehicle-name":v},null,8,["vehicle-key","vehicle-name"]))),128)),(i(!0),h(W,null,x(e.ioDeviceConfigs,v=>(i(),m(D,{key:v.id,"io-device":v},null,8,["io-device"]))),128)),s.$store.state.mqtt["openWB/general/extern"]===!1?(i(),m(E,{key:3})):T("",!0)])}const Io=w(wo,[["render",Wo],["__scopeId","data-v-051028a3"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Status.vue"]]);export{Io as default}; diff --git a/web/settings/assets/Support-bbe6a404.js b/web/settings/assets/Support-76a3c998.js similarity index 95% rename from web/settings/assets/Support-bbe6a404.js rename to web/settings/assets/Support-76a3c998.js index dffc3a2e58..935b7d0f93 100644 --- a/web/settings/assets/Support-bbe6a404.js +++ b/web/settings/assets/Support-76a3c998.js @@ -1,3 +1,3 @@ -import{l as S,g as D,F as V}from"./vendor-fortawesome-66071a0e.js";import{C as W}from"./index-93388667.js";import{_ as A,u,l as f,m as c,A as r,x as k,E as s,G as o,D as z,z as w,B as n,q as C}from"./vendor-25d394b4.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";S.add(D);const F={name:"OpenwbSupportView",components:{FontAwesomeIcon:V},mixins:[W],emits:["sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged","openWB/system/serial_number","openWB/system/device/+/config","openWB/system/device/+/component/+/config","openWB/vehicle/+/name","openWB/vehicle/+/info"],email:void 0,components:void 0,vehicles:void 0,message:void 0,enableSendDebugButton:!0}},computed:{debugData(){return{email:this.email,serialNumber:this.$store.state.mqtt["openWB/system/serial_number"],installedComponents:this.installedComponents,vehicles:this.vehicleInfo,message:this.message}},installedComponents(){var b,p;if(this.components!==void 0)return this.components;let i="";const e=this.getWildcardTopics("openWB/system/device/+/component/+/config");for(const t of Object.values(e)){const a=t.id,d=((b=t.info)==null?void 0:b.manufacturer)||"N/A",m=((p=t.info)==null?void 0:p.model)||"N/A";i+=`(${a}) Hersteller: ${d}, Modell: ${m} +import{l as S,g as D,F as V}from"./vendor-fortawesome-d6ee0a65.js";import{C as W}from"./index-eccf5556.js";import{_ as A,u,l as f,m as c,A as r,x as k,E as s,G as o,D as z,z as w,B as n,q as C}from"./vendor-57e3a63c.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";S.add(D);const F={name:"OpenwbSupportView",components:{FontAwesomeIcon:V},mixins:[W],emits:["sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged","openWB/system/serial_number","openWB/system/device/+/config","openWB/system/device/+/component/+/config","openWB/vehicle/+/name","openWB/vehicle/+/info"],email:void 0,components:void 0,vehicles:void 0,message:void 0,enableSendDebugButton:!0}},computed:{debugData(){return{email:this.email,serialNumber:this.$store.state.mqtt["openWB/system/serial_number"],installedComponents:this.installedComponents,vehicles:this.vehicleInfo,message:this.message}},installedComponents(){var b,p;if(this.components!==void 0)return this.components;let i="";const e=this.getWildcardTopics("openWB/system/device/+/component/+/config");for(const t of Object.values(e)){const a=t.id,d=((b=t.info)==null?void 0:b.manufacturer)||"N/A",m=((p=t.info)==null?void 0:p.model)||"N/A";i+=`(${a}) Hersteller: ${d}, Modell: ${m} `}return i.trim()},vehicleInfo(){if(this.vehicles!==void 0)return this.vehicles;let i="";const e=this.getWildcardTopics("openWB/vehicle/+/info");for(const[b,p]of Object.entries(e)){const t=parseInt(b.split("/")[2]);if(t!==0){const a=p.manufacturer||"N/A",d=p.model||"N/A";i+=`(${t}) Hersteller: ${a}, Modell: ${d} `}}return i.trim()}},methods:{sendDebugMessage(){if(document.forms.supportForm.reportValidity())this.$emit("sendCommand",{command:"sendDebug",data:this.debugData}),this.enableSendDebugButton=!1;else{console.warn("form invalid");return}}}},x={class:"support"},q={name:"supportForm"},I={key:1},N={key:0},T={class:"row justify-content-center"};function M(i,e,b,p,t,a){const d=u("router-link"),m=u("openwb-base-alert"),v=u("FontAwesomeIcon"),h=u("openwb-base-text-input"),g=u("openwb-base-textarea"),y=u("openwb-base-click-button"),B=u("openwb-base-card"),_=u("font-awesome-icon");return f(),c("div",x,[r("form",q,[i.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(f(),k(m,{key:0,subtype:"danger"},{default:s(()=>[e[6]||(e[6]=n(" Du musst der ",-1)),o(d,{to:"/System/LegalSettings"},{default:s(()=>e[5]||(e[5]=[n(" Datenschutzerklärung ",-1)])),_:1,__:[5]}),e[7]||(e[7]=n(" zustimmen, um einen Systembericht senden zu können. ",-1))]),_:1,__:[6,7]})):(f(),c("div",I,[o(m,{subtype:"success"},{default:s(()=>[e[9]||(e[9]=n(" Du hast der ",-1)),o(d,{to:"/System/LegalSettings"},{default:s(()=>e[8]||(e[8]=[n(" Datenschutzerklärung ",-1)])),_:1,__:[8]}),e[10]||(e[10]=n(" zugestimmt und kannst Systemberichte senden. ",-1))]),_:1,__:[9,10]}),o(B,{title:"Systembericht"},z({default:s(()=>[i.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?(f(),c("div",N,[o(m,{subtype:"danger"},{default:s(()=>e[11]||(e[11]=[n(' Vergewissere Dich, dass mindestens die aktuelle "Release" Version installiert ist. ',-1)])),_:1,__:[11]}),o(m,{subtype:"info"},{default:s(()=>[r("ul",null,[r("li",null,[e[12]||(e[12]=n(" Lies bitte den Hilfetext, der durch Klick auf das ",-1)),o(v,{icon:["far","question-circle"]}),e[13]||(e[13]=n(" angezeigt wird. Nimm das Wiki zur Hilfe. ",-1))]),e[14]||(e[14]=r("li",null," Stelle beim Absenden des Berichtes die Fehlerkonditionen her. Lädt ein Fahrzeug nicht, sollte es angeschlossen und nicht voll geladen sein. Ist PV laden betroffen, sollte die Sonne auch scheinen. Der Systembericht muss dann versendet werden, wenn der Fehler aktuell vorliegt. ",-1)),e[15]||(e[15]=r("li",null," Stelle sicher, dass der richtige Lademodus gewählt ist und im Falle von nicht ladenden Fahrzeugen, dass der Ladepunkt auch entsperrt wurde. ",-1)),e[16]||(e[16]=r("li",null," Das Auslesen der Systemkonfiguration erfolgt direkt nach den Klick auf Absenden und kann einige Zeit in Anspruch nehmen. Du erhältst ca. 15 bis 30 Minuten nach Versand des Systemberichtes von uns automatisch eine E-Mail mit der Ticketnummer unter der die Anfrage bei uns registriert wurde. Wir melden uns bei Dir. Bitte kontrolliere daher immer auch den Spam Ordner auf eingehende Nachrichten. Erhältst Du trotzdem keine Ticketnummer, ist das Versenden des Systemberichtes vermutlich fehlgeschlagen. ",-1))])]),_:1}),o(h,{modelValue:t.email,"onUpdate:modelValue":e[0]||(e[0]=l=>t.email=l),title:"E-Mail",required:"",subtype:"email"},{help:s(()=>e[17]||(e[17]=[n(" Deine E-Mail-Adresse, an die der Support Dir antwortet. ",-1)])),_:1},8,["modelValue"]),o(h,{title:"openWB Seriennummer",required:"","model-value":i.$store.state.mqtt["openWB/system/serial_number"],"onUpdate:modelValue":e[1]||(e[1]=l=>i.updateState("openWB/system/serial_number",l))},{help:s(()=>e[18]||(e[18]=[n(" Die Seriennummer der openWB findest Du außen am, bei älteren Installationen innen im Gehäuse. Du kannst uns aber auch eine Bestellnummer oder Rechnungsnummer übermitteln. Das Gehäuse muss nicht extra geöffnet werden!",-1),r("br",null,null,-1),n(" Bei einer gekauften openWB wird die Seriennummer automatisch ermittelt. ",-1)])),_:1},8,["model-value"]),o(g,{title:"Verwendete Komponenten",required:"",minlength:"3",maxlength:"500","model-value":a.installedComponents,"onUpdate:modelValue":e[2]||(e[2]=l=>t.components=l)},{help:s(()=>[e[20]||(e[20]=n(" Gib hier möglichst detailliert an, welche Anlagenkomponenten (EVU, PV, Speicher) angebunden sind.",-1)),e[21]||(e[21]=r("br",null,null,-1)),o(d,{to:"/HardwareInstallation"},{default:s(()=>e[19]||(e[19]=[n(" Die Angaben können auch direkt in der Konfiguration der Komponenten dauerhaft gespeichert werden. ",-1)])),_:1,__:[19]})]),_:1},8,["model-value"]),o(g,{title:"Fahrzeuge",required:"",minlength:"3",maxlength:"500","model-value":a.vehicleInfo,"onUpdate:modelValue":e[3]||(e[3]=l=>t.vehicles=l)},{help:s(()=>[e[23]||(e[23]=n(" Gib hier an, welche Fahrzeuge geladen (Hersteller, Modell, Baujahr).",-1)),e[24]||(e[24]=r("br",null,null,-1)),o(d,{to:"/VehicleConfiguration"},{default:s(()=>e[22]||(e[22]=[n(" Die Angaben können auch direkt in der Konfiguration der Fahrzeuge dauerhaft gespeichert werden. ",-1)])),_:1,__:[22]})]),_:1},8,["model-value"]),o(g,{modelValue:t.message,"onUpdate:modelValue":e[4]||(e[4]=l=>t.message=l),title:"Problembeschreibung",required:"",minlength:"20",maxlength:"500"},null,8,["modelValue"])])):w("",!0)]),_:2},[i.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:s(()=>[r("div",T,[o(y,{class:C(["col-4",t.enableSendDebugButton?"btn-success":"btn-outline-success"]),disabled:!t.enableSendDebugButton,onButtonClicked:a.sendDebugMessage},{default:s(()=>e[25]||(e[25]=[n(" Absenden ",-1)])),_:1,__:[25]},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024),t.enableSendDebugButton?w("",!0):(f(),k(m,{key:0,subtype:"success"},{default:s(()=>[e[26]||(e[26]=n(" Die Daten für den Fehlerbericht werden im Hintergrund zusammengestellt. Du kannst diese Seite jetzt verlassen. ",-1)),o(_,{icon:["fas","check"]})]),_:1,__:[26]}))]))])])}const $=A(F,[["render",M],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Support.vue"]]);export{$ as default}; diff --git a/web/settings/assets/System-47d1c8ae.js b/web/settings/assets/System-186920b0.js similarity index 98% rename from web/settings/assets/System-47d1c8ae.js rename to web/settings/assets/System-186920b0.js index 19f6d7efd1..a2424d2de5 100644 --- a/web/settings/assets/System-47d1c8ae.js +++ b/web/settings/assets/System-186920b0.js @@ -1 +1 @@ -import{l as z,ap as E,u as U,af as x,a3 as L,aq as F,F as j}from"./vendor-fortawesome-66071a0e.js";import{C as D}from"./index-93388667.js";import{_ as R,u as g,l as f,m as y,x as B,E as l,z as v,G as r,A as a,q as k,N as V,M as q,F as _,B as i}from"./vendor-25d394b4.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";z.add(E,U,x,L,F);const T={name:"OpenwbSystemView",components:{FontAwesomeIcon:j},mixins:[D],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["save","reset","sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/system/optionBackup","openWB/system/secondary_auto_update","openWB/system/current_commit","openWB/system/current_branch_commit","openWB/system/current_missing_commits","openWB/system/available_branches","openWB/system/current_branch","openWB/system/version","openWB/system/serial_number","openWB/system/ip_address","openWB/system/mac_address","openWB/chargepoint/+/get/version","openWB/chargepoint/+/get/current_branch","openWB/chargepoint/+/config","openWB/general/extern"],warningAcknowledged:!1,selectedTag:"*HEAD*"}},computed:{externalChargepoints:{get(){let t=this.getWildcardTopics("openWB/chargepoint/+/config"),e={};for(const[m,c]of Object.entries(t))c.type==="external_openwb"&&(e[m]=c);return e}},updateAvailable(){return this.$store.state.mqtt["openWB/system/current_branch_commit"]&&this.$store.state.mqtt["openWB/system/current_branch_commit"]!=this.$store.state.mqtt["openWB/system/current_commit"]},releaseChangeValid(){return this.$store.state.mqtt["openWB/system/current_branch"]in this.$store.state.mqtt["openWB/system/available_branches"]&&"tags"in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]]&&this.selectedTag in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]].tags},branchGroups(){const t="Release",e="Beta",m="master",c=[t,e],b=(u,p)=>u.value==p.value?0:u.value==t?-1:p.value==t?1:u.value==e?-1:p.value==e?1:u.value==m?-1:p.value==m||u.value>p.value?1:u.value{const d=u=>{const p=u.split("-"),h=p[0].split(".");let w=[];return p.length>1?w=p[1].split("."):w=["release","0"],{semver:h,suffix:w}},o=d(c.value),n=d(b.value);if(o.semver[0]=="*HEAD*")return-1;if(n.semver[0]=="*HEAD*")return 1;if(o.semver[0]>n.semver[0])return-1;if(o.semver[0]n.semver[1])return-1;if(o.semver[1]n.semver[2])return-1;if(o.semver[2]n.suffix[1])return-1;if(o.suffix[1]n.suffix[1])return-1;if(o.suffix[1]n.suffix[1])return-1;if(o.suffix[1]n.suffix[1])return-1;if(o.suffix[1]t[m].type.includes(e)).reduce((m,c)=>({...m,[c]:t[c]}),{})}}},I={class:"system"},P={key:1},N={name:"versionInfoForm"},O={class:"missing-commits"},Z={class:"row justify-content-center"},G={class:"col-md-4 d-flex py-1 justify-content-center"},H={class:"col-md-4 d-flex py-1 justify-content-center"},J={key:2},M={key:0},K={class:"table table-striped"},Q={key:0,name:"powerForm"},X={class:"row justify-content-center"},Y={class:"col-md-4 d-flex py-1 justify-content-center"},ee={class:"col-md-4 d-flex py-1 justify-content-center"},te={key:1,name:"releaseChangeForm"},se={class:"row justify-content-center"},ne={class:"col-md-4 d-flex py-1 justify-content-center"};function re(t,e,m,c,b,d){const o=g("openwb-base-button-group-input"),n=g("openwb-base-alert"),u=g("openwb-base-text-input"),p=g("openwb-base-card"),h=g("font-awesome-icon"),w=g("openwb-base-click-button"),S=g("openwb-base-heading"),A=g("openwb-base-submit-buttons"),C=g("router-link"),W=g("openwb-base-select-input");return f(),y("div",I,[m.installAssistantActive?v("",!0):(f(),B(n,{key:0,subtype:"danger"},{default:l(()=>[e[18]||(e[18]=a("h2",null,"Achtung!",-1)),e[19]||(e[19]=a("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1)),r(o,{modelValue:b.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=s=>b.warningAcknowledged=s),title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"])]),_:1,__:[18,19]})),b.warningAcknowledged||m.installAssistantActive?(f(),y("div",P,[r(p,{title:"System Information",subtype:"info",collapsible:!0,collapsed:!0},{default:l(()=>[r(u,{modelValue:t.$store.state.mqtt["openWB/system/serial_number"],"onUpdate:modelValue":e[1]||(e[1]=s=>t.$store.state.mqtt["openWB/system/serial_number"]=s),title:"Seriennummer",readonly:""},null,8,["modelValue"]),r(u,{modelValue:t.$store.state.mqtt["openWB/system/ip_address"],"onUpdate:modelValue":e[2]||(e[2]=s=>t.$store.state.mqtt["openWB/system/ip_address"]=s),title:"IP-Adresse",readonly:""},null,8,["modelValue"]),r(u,{modelValue:t.$store.state.mqtt["openWB/system/mac_address"],"onUpdate:modelValue":e[3]||(e[3]=s=>t.$store.state.mqtt["openWB/system/mac_address"]=s),title:"MAC-Adresse",readonly:""},null,8,["modelValue"])]),_:1}),a("form",N,[r(p,{title:"Versions-Informationen / Aktualisierung",subtype:"success",collapsible:!0,collapsed:!m.installAssistantActive},{default:l(()=>[r(u,{modelValue:t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[4]||(e[4]=s=>t.$store.state.mqtt["openWB/system/current_branch"]=s),title:"Entwicklungszweig",readonly:""},null,8,["modelValue"]),r(u,{modelValue:t.$store.state.mqtt["openWB/system/version"],"onUpdate:modelValue":e[5]||(e[5]=s=>t.$store.state.mqtt["openWB/system/version"]=s),title:"Bezeichnung",readonly:""},null,8,["modelValue"]),r(u,{modelValue:t.$store.state.mqtt["openWB/system/current_commit"],"onUpdate:modelValue":e[6]||(e[6]=s=>t.$store.state.mqtt["openWB/system/current_commit"]=s),title:"installierte Version",readonly:"",class:k(d.updateAvailable?"text-danger":"text-success")},null,8,["modelValue","class"]),r(u,{modelValue:t.$store.state.mqtt["openWB/system/current_branch_commit"],"onUpdate:modelValue":e[7]||(e[7]=s=>t.$store.state.mqtt["openWB/system/current_branch_commit"]=s),title:"aktuellste Version",readonly:""},null,8,["modelValue"]),d.updateAvailable?(f(),B(p,{key:0,title:"Änderungen",subtype:"info",collapsible:!0,collapsed:!0},{default:l(()=>[a("ul",O,[(f(!0),y(V,null,q(t.$store.state.mqtt["openWB/system/current_missing_commits"],(s,$)=>(f(),y("li",{key:$},_(s),1))),128))])]),_:1})):v("",!0),r(n,{subtype:"danger"},{default:l(()=>e[20]||(e[20]=[i(" Nach einem Update wird die Ladestation direkt neu gestartet! Es werden alle eventuell vorhandenen lokalen Änderungen am Programmcode mit dem Update verworfen! ",-1)])),_:1,__:[20]}),t.$store.state.mqtt["openWB/system/current_branch"]!="Release"?(f(),B(n,{key:1,subtype:"danger"},{default:l(()=>e[21]||(e[21]=[i(' Du bist nicht auf dem für den normalen Gebrauch empfohlenen Entwicklungszweig "Release". Wir empfehlen, auf diesen Zweig zu wechseln, sobald dort eine neue Version verfügbar ist.',-1),a("br",null,null,-1),i(" Bevor ein Update angestoßen wird, sollte immer eine Sicherung erstellt werden! Es kann zwar wieder auf eine ältere Version gewechselt werden, jedoch ist nicht sichergestellt, dass es dabei keine Probleme gibt. Gerade wenn das Datenformat in der neuen Version angepasst wurde, wird eine ältere damit Fehler produzieren. ",-1)])),_:1,__:[21]})):v("",!0),a("div",Z,[a("div",G,[r(w,{class:"btn-info",onButtonClicked:e[8]||(e[8]=s=>d.sendSystemCommand("systemFetchVersions"))},{default:l(()=>[e[22]||(e[22]=i(" Informationen aktualisieren ",-1)),r(h,{icon:["fas","download"]})]),_:1,__:[22]})]),a("div",H,[r(w,{class:k(d.updateAvailable?"btn-success clickable":"btn-outline-success"),disabled:!d.updateAvailable,onButtonClicked:e[9]||(e[9]=s=>d.systemUpdate())},{default:l(()=>[e[23]||(e[23]=i(" Update ",-1)),r(h,{icon:["fas","arrow-alt-circle-up"]})]),_:1,__:[23]},8,["class","disabled"])])]),t.$store.state.mqtt["openWB/general/extern"]!=!0?(f(),y("div",J,[e[28]||(e[28]=a("hr",null,null,-1)),r(S,null,{default:l(()=>e[24]||(e[24]=[i("Automatisches Update von Secondary openWBs",-1)])),_:1,__:[24]}),r(n,{subtype:"info"},{default:l(()=>e[25]||(e[25]=[i(' Die automatische Updatefunktion für Secondary openWBs ist nur verfügbar, wenn sich die Primary openWB auf dem Entwicklungszweig "Release" befindet. Das Update wird nur auf Secondary openWBs durchgeführt, welche sich ebenfalls auf dem Entwicklungszweig "Release" befinden. Ist die dort installierte Releaseversion zu alt, muss ein einmaliges Update auf die aktuelle Version manuell auf der betroffenen openWB durchgeführt werden. ',-1)])),_:1,__:[25]}),t.$store.state.mqtt["openWB/system/current_branch"]=="Release"?(f(),y("div",M,[r(o,{title:"Secondary openWBs automatisch mit der Primary updaten",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/secondary_auto_update"],"onUpdate:modelValue":e[10]||(e[10]=s=>t.updateState("openWB/system/secondary_auto_update",s))},{help:l(()=>e[26]||(e[26]=[i(' Diese Option ist nur auf dem Entwicklungszweig "Release" verfügbar. Ist diese Option aktiviert, dann werden Secondary openWBs, welche sich ebenfalls auf dem Entwicklungszweig "Release" befinden gleichzeitig mit der Primary openWB aktualisiert. ',-1)])),_:1},8,["model-value"]),a("table",K,[e[27]||(e[27]=a("thead",null,[a("tr",null,[a("th",null,"Secondary"),a("th",null,"Software-Status"),a("th",null,"IP-Adresse")])],-1)),a("tbody",null,[(f(!0),y(V,null,q(d.externalChargepoints,s=>(f(),y("tr",{key:s.id},[a("td",null,_(s.name),1),a("td",null,_(t.$store.state.mqtt["openWB/chargepoint/"+s.id+"/get/current_branch"]===void 0?"Version zu alt oder openWB ist nicht erreichbar. Bitte manuell updaten bzw. prüfen.":t.$store.state.mqtt["openWB/chargepoint/"+s.id+"/get/current_branch"]!="Release"?"Secondary ist nicht auf dem Release-Zweig. Bitte manuell updaten.":t.$store.state.mqtt["openWB/chargepoint/"+s.id+"/get/current_branch"]+" "+t.$store.state.mqtt["openWB/chargepoint/"+s.id+"/get/version"]),1),a("td",null,_(s.configuration.ip_address),1)]))),128))])]),r(A,{"form-name":"versionInfoForm","hide-defaults":!0,onSave:e[11]||(e[11]=s=>t.$emit("save")),onReset:e[12]||(e[12]=s=>t.$emit("reset"))})])):v("",!0)])):v("",!0)]),_:1},8,["collapsed"])]),m.installAssistantActive?v("",!0):(f(),y("form",Q,[r(p,{title:"Betrieb",collapsible:!0,collapsed:!0},{footer:l(()=>[a("div",X,[a("div",Y,[r(w,{class:"btn-warning",onButtonClicked:e[13]||(e[13]=s=>d.sendSystemCommand("systemReboot"))},{default:l(()=>[e[35]||(e[35]=i(" Neustart ",-1)),r(h,{icon:["fas","undo"]})]),_:1,__:[35]})]),a("div",ee,[r(w,{class:"btn-danger",onButtonClicked:e[14]||(e[14]=s=>d.sendSystemCommand("systemShutdown"))},{default:l(()=>[e[36]||(e[36]=i(" Ausschalten ",-1)),r(h,{icon:["fas","power-off"]})]),_:1,__:[36]})])])]),default:l(()=>[r(n,{subtype:"danger"},{default:l(()=>e[29]||(e[29]=[i(" Wenn die Ladestation ausgeschaltet wird, muss sie komplett spannungsfrei geschaltet werden. Erst beim erneuten Zuschalten der Spannung fährt das System wieder hoch. ",-1)])),_:1,__:[29]}),r(n,{subtype:"info"},{default:l(()=>[e[31]||(e[31]=i(" Ein Neustart löscht wichtige Protokolle, die bei der Fehlersuche helfen können. ",-1)),e[32]||(e[32]=a("br",null,null,-1)),e[33]||(e[33]=i("Tipp: Erstelle stattdessen zuerst einen ",-1)),r(C,{to:"/Support"},{default:l(()=>e[30]||(e[30]=[i(" Systembericht ",-1)])),_:1,__:[30]}),e[34]||(e[34]=i(" – das hilft oft mehr und bewahrt alle relevanten Logs. ",-1))]),_:1,__:[31,32,33,34]})]),_:1})])),m.installAssistantActive?v("",!0):(f(),y("form",te,[r(p,{title:"Entwicklungszweig",subtype:"danger",collapsible:!0,collapsed:!0},{footer:l(()=>[a("div",se,[a("div",ne,[r(w,{class:k(d.releaseChangeValid?"btn-danger clickable":"btn-outline-danger"),disabled:!d.releaseChangeValid,onButtonClicked:e[17]||(e[17]=s=>d.switchBranch())},{default:l(()=>[r(h,{icon:["fas","skull-crossbones"]}),e[39]||(e[39]=i(" Branch und Tag wechseln ",-1)),r(h,{icon:["fas","skull-crossbones"]})]),_:1,__:[39]},8,["class","disabled"])])])]),default:l(()=>[r(n,{subtype:"danger"},{default:l(()=>e[37]||(e[37]=[i(" Nach einem Wechsel wird die Ladestation direkt neu gestartet! Es werden alle lokalen Änderungen mit dem Wechsel verworfen! ",-1)])),_:1,__:[37]}),r(n,{subtype:"warning"},{default:l(()=>e[38]||(e[38]=[i(" Bevor auf einen neuen Entwicklungszweig gewechselt wird sollte immer eine Sicherung erstellt werden! Es kann zwar wieder auf eine ältere Version gewechselt werden, jedoch ist nicht sichergestellt, dass es dabei keine Probleme gibt. Gerade wenn das Datenformat in der neuen Version angepasst wurde, wird eine ältere damit Fehler produzieren.",-1),a("br",null,null,-1),i(' Für den normalen Betrieb wird der Zweig "Release" empfohlen. Der Softwarestand wurde ausgiebig getestet, sodass ein Fehlverhalten relativ unwahrscheinlich ist.',-1),a("br",null,null,-1),i(' Der "Beta" Zweig beinhaltet Vorabversionen, bei denen die Entwicklung soweit abgeschlossen ist. Die enthaltenen Anpassungen wurden rudimentär getestet, können aber durchaus noch Fehler enthalten.',-1),a("br",null,null,-1),i(' Die aktuelle Softwareentwicklung findet im Zweig "master" statt. Die enthaltenen Anpassungen sind teilweise noch nicht getestet und enthalten potentiell Fehler.',-1),a("br",null,null,-1),i(' Einträge, die mit "feature" beginnen, sind experimentelle Entwicklungszweige, die nicht für den allgemeinen Gebrauch gedacht sind. ',-1)])),_:1,__:[38]}),r(W,{title:"Entwicklungszweig",groups:d.branchGroups,"model-value":t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[15]||(e[15]=s=>t.updateState("openWB/system/current_branch",s))},null,8,["groups","model-value"]),r(W,{modelValue:b.selectedTag,"onUpdate:modelValue":e[16]||(e[16]=s=>b.selectedTag=s),title:"Tag",options:d.branchTagOptions},null,8,["modelValue","options"])]),_:1})]))])):v("",!0)])}const pe=R(T,[["render",re],["__scopeId","data-v-059847f6"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/System.vue"]]);export{pe as default}; +import{l as z,ap as E,u as U,af as x,a3 as L,aq as F,F as j}from"./vendor-fortawesome-d6ee0a65.js";import{C as D}from"./index-eccf5556.js";import{_ as R,u as g,l as f,m as y,x as B,E as l,z as v,G as r,A as a,q as k,N as V,M as q,F as _,B as i}from"./vendor-57e3a63c.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";z.add(E,U,x,L,F);const T={name:"OpenwbSystemView",components:{FontAwesomeIcon:j},mixins:[D],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["save","reset","sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/system/optionBackup","openWB/system/secondary_auto_update","openWB/system/current_commit","openWB/system/current_branch_commit","openWB/system/current_missing_commits","openWB/system/available_branches","openWB/system/current_branch","openWB/system/version","openWB/system/serial_number","openWB/system/ip_address","openWB/system/mac_address","openWB/chargepoint/+/get/version","openWB/chargepoint/+/get/current_branch","openWB/chargepoint/+/config","openWB/general/extern"],warningAcknowledged:!1,selectedTag:"*HEAD*"}},computed:{externalChargepoints:{get(){let t=this.getWildcardTopics("openWB/chargepoint/+/config"),e={};for(const[m,c]of Object.entries(t))c.type==="external_openwb"&&(e[m]=c);return e}},updateAvailable(){return this.$store.state.mqtt["openWB/system/current_branch_commit"]&&this.$store.state.mqtt["openWB/system/current_branch_commit"]!=this.$store.state.mqtt["openWB/system/current_commit"]},releaseChangeValid(){return this.$store.state.mqtt["openWB/system/current_branch"]in this.$store.state.mqtt["openWB/system/available_branches"]&&"tags"in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]]&&this.selectedTag in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]].tags},branchGroups(){const t="Release",e="Beta",m="master",c=[t,e],b=(u,p)=>u.value==p.value?0:u.value==t?-1:p.value==t?1:u.value==e?-1:p.value==e?1:u.value==m?-1:p.value==m||u.value>p.value?1:u.value{const d=u=>{const p=u.split("-"),h=p[0].split(".");let w=[];return p.length>1?w=p[1].split("."):w=["release","0"],{semver:h,suffix:w}},o=d(c.value),n=d(b.value);if(o.semver[0]=="*HEAD*")return-1;if(n.semver[0]=="*HEAD*")return 1;if(o.semver[0]>n.semver[0])return-1;if(o.semver[0]n.semver[1])return-1;if(o.semver[1]n.semver[2])return-1;if(o.semver[2]n.suffix[1])return-1;if(o.suffix[1]n.suffix[1])return-1;if(o.suffix[1]n.suffix[1])return-1;if(o.suffix[1]n.suffix[1])return-1;if(o.suffix[1]t[m].type.includes(e)).reduce((m,c)=>({...m,[c]:t[c]}),{})}}},I={class:"system"},P={key:1},N={name:"versionInfoForm"},O={class:"missing-commits"},Z={class:"row justify-content-center"},G={class:"col-md-4 d-flex py-1 justify-content-center"},H={class:"col-md-4 d-flex py-1 justify-content-center"},J={key:2},M={key:0},K={class:"table table-striped"},Q={key:0,name:"powerForm"},X={class:"row justify-content-center"},Y={class:"col-md-4 d-flex py-1 justify-content-center"},ee={class:"col-md-4 d-flex py-1 justify-content-center"},te={key:1,name:"releaseChangeForm"},se={class:"row justify-content-center"},ne={class:"col-md-4 d-flex py-1 justify-content-center"};function re(t,e,m,c,b,d){const o=g("openwb-base-button-group-input"),n=g("openwb-base-alert"),u=g("openwb-base-text-input"),p=g("openwb-base-card"),h=g("font-awesome-icon"),w=g("openwb-base-click-button"),S=g("openwb-base-heading"),A=g("openwb-base-submit-buttons"),C=g("router-link"),W=g("openwb-base-select-input");return f(),y("div",I,[m.installAssistantActive?v("",!0):(f(),B(n,{key:0,subtype:"danger"},{default:l(()=>[e[18]||(e[18]=a("h2",null,"Achtung!",-1)),e[19]||(e[19]=a("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1)),r(o,{modelValue:b.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=s=>b.warningAcknowledged=s),title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"])]),_:1,__:[18,19]})),b.warningAcknowledged||m.installAssistantActive?(f(),y("div",P,[r(p,{title:"System Information",subtype:"info",collapsible:!0,collapsed:!0},{default:l(()=>[r(u,{modelValue:t.$store.state.mqtt["openWB/system/serial_number"],"onUpdate:modelValue":e[1]||(e[1]=s=>t.$store.state.mqtt["openWB/system/serial_number"]=s),title:"Seriennummer",readonly:""},null,8,["modelValue"]),r(u,{modelValue:t.$store.state.mqtt["openWB/system/ip_address"],"onUpdate:modelValue":e[2]||(e[2]=s=>t.$store.state.mqtt["openWB/system/ip_address"]=s),title:"IP-Adresse",readonly:""},null,8,["modelValue"]),r(u,{modelValue:t.$store.state.mqtt["openWB/system/mac_address"],"onUpdate:modelValue":e[3]||(e[3]=s=>t.$store.state.mqtt["openWB/system/mac_address"]=s),title:"MAC-Adresse",readonly:""},null,8,["modelValue"])]),_:1}),a("form",N,[r(p,{title:"Versions-Informationen / Aktualisierung",subtype:"success",collapsible:!0,collapsed:!m.installAssistantActive},{default:l(()=>[r(u,{modelValue:t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[4]||(e[4]=s=>t.$store.state.mqtt["openWB/system/current_branch"]=s),title:"Entwicklungszweig",readonly:""},null,8,["modelValue"]),r(u,{modelValue:t.$store.state.mqtt["openWB/system/version"],"onUpdate:modelValue":e[5]||(e[5]=s=>t.$store.state.mqtt["openWB/system/version"]=s),title:"Bezeichnung",readonly:""},null,8,["modelValue"]),r(u,{modelValue:t.$store.state.mqtt["openWB/system/current_commit"],"onUpdate:modelValue":e[6]||(e[6]=s=>t.$store.state.mqtt["openWB/system/current_commit"]=s),title:"installierte Version",readonly:"",class:k(d.updateAvailable?"text-danger":"text-success")},null,8,["modelValue","class"]),r(u,{modelValue:t.$store.state.mqtt["openWB/system/current_branch_commit"],"onUpdate:modelValue":e[7]||(e[7]=s=>t.$store.state.mqtt["openWB/system/current_branch_commit"]=s),title:"aktuellste Version",readonly:""},null,8,["modelValue"]),d.updateAvailable?(f(),B(p,{key:0,title:"Änderungen",subtype:"info",collapsible:!0,collapsed:!0},{default:l(()=>[a("ul",O,[(f(!0),y(V,null,q(t.$store.state.mqtt["openWB/system/current_missing_commits"],(s,$)=>(f(),y("li",{key:$},_(s),1))),128))])]),_:1})):v("",!0),r(n,{subtype:"danger"},{default:l(()=>e[20]||(e[20]=[i(" Nach einem Update wird die Ladestation direkt neu gestartet! Es werden alle eventuell vorhandenen lokalen Änderungen am Programmcode mit dem Update verworfen! ",-1)])),_:1,__:[20]}),t.$store.state.mqtt["openWB/system/current_branch"]!="Release"?(f(),B(n,{key:1,subtype:"danger"},{default:l(()=>e[21]||(e[21]=[i(' Du bist nicht auf dem für den normalen Gebrauch empfohlenen Entwicklungszweig "Release". Wir empfehlen, auf diesen Zweig zu wechseln, sobald dort eine neue Version verfügbar ist.',-1),a("br",null,null,-1),i(" Bevor ein Update angestoßen wird, sollte immer eine Sicherung erstellt werden! Es kann zwar wieder auf eine ältere Version gewechselt werden, jedoch ist nicht sichergestellt, dass es dabei keine Probleme gibt. Gerade wenn das Datenformat in der neuen Version angepasst wurde, wird eine ältere damit Fehler produzieren. ",-1)])),_:1,__:[21]})):v("",!0),a("div",Z,[a("div",G,[r(w,{class:"btn-info",onButtonClicked:e[8]||(e[8]=s=>d.sendSystemCommand("systemFetchVersions"))},{default:l(()=>[e[22]||(e[22]=i(" Informationen aktualisieren ",-1)),r(h,{icon:["fas","download"]})]),_:1,__:[22]})]),a("div",H,[r(w,{class:k(d.updateAvailable?"btn-success clickable":"btn-outline-success"),disabled:!d.updateAvailable,onButtonClicked:e[9]||(e[9]=s=>d.systemUpdate())},{default:l(()=>[e[23]||(e[23]=i(" Update ",-1)),r(h,{icon:["fas","arrow-alt-circle-up"]})]),_:1,__:[23]},8,["class","disabled"])])]),t.$store.state.mqtt["openWB/general/extern"]!=!0?(f(),y("div",J,[e[28]||(e[28]=a("hr",null,null,-1)),r(S,null,{default:l(()=>e[24]||(e[24]=[i("Automatisches Update von Secondary openWBs",-1)])),_:1,__:[24]}),r(n,{subtype:"info"},{default:l(()=>e[25]||(e[25]=[i(' Die automatische Updatefunktion für Secondary openWBs ist nur verfügbar, wenn sich die Primary openWB auf dem Entwicklungszweig "Release" befindet. Das Update wird nur auf Secondary openWBs durchgeführt, welche sich ebenfalls auf dem Entwicklungszweig "Release" befinden. Ist die dort installierte Releaseversion zu alt, muss ein einmaliges Update auf die aktuelle Version manuell auf der betroffenen openWB durchgeführt werden. ',-1)])),_:1,__:[25]}),t.$store.state.mqtt["openWB/system/current_branch"]=="Release"?(f(),y("div",M,[r(o,{title:"Secondary openWBs automatisch mit der Primary updaten",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/secondary_auto_update"],"onUpdate:modelValue":e[10]||(e[10]=s=>t.updateState("openWB/system/secondary_auto_update",s))},{help:l(()=>e[26]||(e[26]=[i(' Diese Option ist nur auf dem Entwicklungszweig "Release" verfügbar. Ist diese Option aktiviert, dann werden Secondary openWBs, welche sich ebenfalls auf dem Entwicklungszweig "Release" befinden gleichzeitig mit der Primary openWB aktualisiert. ',-1)])),_:1},8,["model-value"]),a("table",K,[e[27]||(e[27]=a("thead",null,[a("tr",null,[a("th",null,"Secondary"),a("th",null,"Software-Status"),a("th",null,"IP-Adresse")])],-1)),a("tbody",null,[(f(!0),y(V,null,q(d.externalChargepoints,s=>(f(),y("tr",{key:s.id},[a("td",null,_(s.name),1),a("td",null,_(t.$store.state.mqtt["openWB/chargepoint/"+s.id+"/get/current_branch"]===void 0?"Version zu alt oder openWB ist nicht erreichbar. Bitte manuell updaten bzw. prüfen.":t.$store.state.mqtt["openWB/chargepoint/"+s.id+"/get/current_branch"]!="Release"?"Secondary ist nicht auf dem Release-Zweig. Bitte manuell updaten.":t.$store.state.mqtt["openWB/chargepoint/"+s.id+"/get/current_branch"]+" "+t.$store.state.mqtt["openWB/chargepoint/"+s.id+"/get/version"]),1),a("td",null,_(s.configuration.ip_address),1)]))),128))])]),r(A,{"form-name":"versionInfoForm","hide-defaults":!0,onSave:e[11]||(e[11]=s=>t.$emit("save")),onReset:e[12]||(e[12]=s=>t.$emit("reset"))})])):v("",!0)])):v("",!0)]),_:1},8,["collapsed"])]),m.installAssistantActive?v("",!0):(f(),y("form",Q,[r(p,{title:"Betrieb",collapsible:!0,collapsed:!0},{footer:l(()=>[a("div",X,[a("div",Y,[r(w,{class:"btn-warning",onButtonClicked:e[13]||(e[13]=s=>d.sendSystemCommand("systemReboot"))},{default:l(()=>[e[35]||(e[35]=i(" Neustart ",-1)),r(h,{icon:["fas","undo"]})]),_:1,__:[35]})]),a("div",ee,[r(w,{class:"btn-danger",onButtonClicked:e[14]||(e[14]=s=>d.sendSystemCommand("systemShutdown"))},{default:l(()=>[e[36]||(e[36]=i(" Ausschalten ",-1)),r(h,{icon:["fas","power-off"]})]),_:1,__:[36]})])])]),default:l(()=>[r(n,{subtype:"danger"},{default:l(()=>e[29]||(e[29]=[i(" Wenn die Ladestation ausgeschaltet wird, muss sie komplett spannungsfrei geschaltet werden. Erst beim erneuten Zuschalten der Spannung fährt das System wieder hoch. ",-1)])),_:1,__:[29]}),r(n,{subtype:"info"},{default:l(()=>[e[31]||(e[31]=i(" Ein Neustart löscht wichtige Protokolle, die bei der Fehlersuche helfen können. ",-1)),e[32]||(e[32]=a("br",null,null,-1)),e[33]||(e[33]=i("Tipp: Erstelle stattdessen zuerst einen ",-1)),r(C,{to:"/Support"},{default:l(()=>e[30]||(e[30]=[i(" Systembericht ",-1)])),_:1,__:[30]}),e[34]||(e[34]=i(" – das hilft oft mehr und bewahrt alle relevanten Logs. ",-1))]),_:1,__:[31,32,33,34]})]),_:1})])),m.installAssistantActive?v("",!0):(f(),y("form",te,[r(p,{title:"Entwicklungszweig",subtype:"danger",collapsible:!0,collapsed:!0},{footer:l(()=>[a("div",se,[a("div",ne,[r(w,{class:k(d.releaseChangeValid?"btn-danger clickable":"btn-outline-danger"),disabled:!d.releaseChangeValid,onButtonClicked:e[17]||(e[17]=s=>d.switchBranch())},{default:l(()=>[r(h,{icon:["fas","skull-crossbones"]}),e[39]||(e[39]=i(" Branch und Tag wechseln ",-1)),r(h,{icon:["fas","skull-crossbones"]})]),_:1,__:[39]},8,["class","disabled"])])])]),default:l(()=>[r(n,{subtype:"danger"},{default:l(()=>e[37]||(e[37]=[i(" Nach einem Wechsel wird die Ladestation direkt neu gestartet! Es werden alle lokalen Änderungen mit dem Wechsel verworfen! ",-1)])),_:1,__:[37]}),r(n,{subtype:"warning"},{default:l(()=>e[38]||(e[38]=[i(" Bevor auf einen neuen Entwicklungszweig gewechselt wird sollte immer eine Sicherung erstellt werden! Es kann zwar wieder auf eine ältere Version gewechselt werden, jedoch ist nicht sichergestellt, dass es dabei keine Probleme gibt. Gerade wenn das Datenformat in der neuen Version angepasst wurde, wird eine ältere damit Fehler produzieren.",-1),a("br",null,null,-1),i(' Für den normalen Betrieb wird der Zweig "Release" empfohlen. Der Softwarestand wurde ausgiebig getestet, sodass ein Fehlverhalten relativ unwahrscheinlich ist.',-1),a("br",null,null,-1),i(' Der "Beta" Zweig beinhaltet Vorabversionen, bei denen die Entwicklung soweit abgeschlossen ist. Die enthaltenen Anpassungen wurden rudimentär getestet, können aber durchaus noch Fehler enthalten.',-1),a("br",null,null,-1),i(' Die aktuelle Softwareentwicklung findet im Zweig "master" statt. Die enthaltenen Anpassungen sind teilweise noch nicht getestet und enthalten potentiell Fehler.',-1),a("br",null,null,-1),i(' Einträge, die mit "feature" beginnen, sind experimentelle Entwicklungszweige, die nicht für den allgemeinen Gebrauch gedacht sind. ',-1)])),_:1,__:[38]}),r(W,{title:"Entwicklungszweig",groups:d.branchGroups,"model-value":t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[15]||(e[15]=s=>t.updateState("openWB/system/current_branch",s))},null,8,["groups","model-value"]),r(W,{modelValue:b.selectedTag,"onUpdate:modelValue":e[16]||(e[16]=s=>b.selectedTag=s),title:"Tag",options:d.branchTagOptions},null,8,["modelValue","options"])]),_:1})]))])):v("",!0)])}const pe=R(T,[["render",re],["__scopeId","data-v-059847f6"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/System.vue"]]);export{pe as default}; diff --git a/web/settings/assets/TestingStore-955b09f5.js b/web/settings/assets/TestingStore-ae29e04b.js similarity index 96% rename from web/settings/assets/TestingStore-955b09f5.js rename to web/settings/assets/TestingStore-ae29e04b.js index 0e2982e0fb..3ac59d7452 100644 --- a/web/settings/assets/TestingStore-955b09f5.js +++ b/web/settings/assets/TestingStore-ae29e04b.js @@ -1 +1 @@ -import{C as B}from"./index-93388667.js";import{S as O}from"./OpenwbSortableList-2a6a01cb.js";import{_ as T,u,l as D,m as Z,A as s,G as o,E as n,B as a,F as S}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";const N={name:"OpenwbTestingStoreView",components:{SortableList:O},mixins:[B],emits:["save","reset","defaults"],data(){return{mqttTopicsToSubscribe:[]}}},G={class:"testingStore"},L={name:"testingStoreForm"};function j(t,e,A,F,J,W){const b=u("OpenwbBaseHeading"),E=u("OpenwbBaseSettingElement"),$=u("openwb-base-button-input"),v=u("openwb-base-button-group-input"),i=u("openwb-base-card"),f=u("openwb-base-color-picker"),p=u("openwb-base-text-input"),r=u("openwb-base-number-input"),x=u("openwb-base-textarea"),g=u("openwb-base-range-input"),m=u("openwb-base-select-input"),w=u("openwb-base-heading"),V=u("openwb-base-checkbox-input"),y=u("openwb-base-array-input"),k=u("openwb-base-copy-to-clipboard"),d=u("openwb-base-alert"),U=u("sortable-list"),z=u("openwb-base-submit-buttons");return D(),Z("div",G,[s("form",L,[o(i,{title:"Elemente mit BaseSettingElement"},{default:n(()=>[o(b,null,{default:n(()=>e[31]||(e[31]=[a(" Basiselement ",-1)])),_:1,__:[31]}),o(E,null,{title:n(()=>e[32]||(e[32]=[s("span",{style:{"font-style":"italic"}},[a(" Styled "),s("span",{style:{"font-weight":"bold"}},"Title"),a(" Slot ")],-1)])),help:n(()=>e[33]||(e[33]=[a(" Basis-Element für alle weiteren Elemente. Das ist ein ",-1),s("a",{href:"test"},"Link",-1),a(". ",-1)])),_:1}),o(b,null,{default:n(()=>e[34]||(e[34]=[a(" Abgeleitete Elemente ",-1)])),_:1,__:[34]}),o($,{title:"Button Input","button-text":"Klick mich",subtype:"info"},{help:n(()=>e[35]||(e[35]=[a(" Einfacher Click-Button für Aktionen. ",-1)])),_:1}),o(v,{title:"Button Group Input",buttons:[{buttonValue:1,text:"Eins"},{buttonValue:2,text:"Zwei"}],"model-value":t.$store.state.examples.buttonGroup1,"onUpdate:modelValue":e[0]||(e[0]=l=>t.updateState("buttonGroup1",l))},{help:n(()=>e[36]||(e[36]=[a(" Button-Group Element zur Auswahl weniger Optionen. Bei vielen Optionen besser ein Dropdown verwenden. ",-1),s("a",{href:"test"},"Link",-1),a(". ",-1)])),_:1},8,["model-value"])]),_:1}),o(i,{title:"Einfache Eingabefelder"},{default:n(()=>[o(p,{title:"1. Text","model-value":t.$store.state.examples.text1,"onUpdate:modelValue":e[2]||(e[2]=l=>t.updateState("text1",l))},{help:n(()=>e[37]||(e[37]=[a(" Einfacher Text",-1),s("br",null,null,-1),a(' Diese Komponente hat einen Slot "append" für zusätzliche Elemente, die rechts vom Eingabefeld angezeigt werden sollen. Das ist hier z.B. ein Farbauswahl-Element. Die Farbe kann zurückgesetzt werden, weil eine Standardfarbe gesetzt ist. Das ist hier z.B. rot (#ff0000). ',-1)])),append:n(()=>[o(f,{class:"p-1","model-value":t.$store.state.examples.color1,"default-color":"#ff0000","onUpdate:modelValue":e[1]||(e[1]=l=>t.updateState("color1",l))},null,8,["model-value"])]),_:1},8,["model-value"]),o(p,{title:"2. Text (E-Mail)",subtype:"email","model-value":t.$store.state.examples.text2,"onUpdate:modelValue":e[3]||(e[3]=l=>t.updateState("text2",l))},{help:n(()=>e[38]||(e[38]=[a(" Eingabefeld für E-Mailadressen ",-1)])),_:1},8,["model-value"]),o(p,{title:"3. Text (Host)",subtype:"host","model-value":t.$store.state.examples.text3,"onUpdate:modelValue":e[4]||(e[4]=l=>t.updateState("text3",l))},{help:n(()=>e[39]||(e[39]=[a(" Eingabefeld für Hosts (IP oder Namen) ",-1)])),_:1},8,["model-value"]),o(p,{title:"4. Text (URL)",subtype:"url","model-value":t.$store.state.examples.text4,"onUpdate:modelValue":e[5]||(e[5]=l=>t.updateState("text4",l))},{help:n(()=>e[40]||(e[40]=[a(" Eingabefeld für URLs ",-1)])),_:1},8,["model-value"]),o(p,{title:"5. Text (User)",subtype:"user","model-value":t.$store.state.examples.text5,"onUpdate:modelValue":e[6]||(e[6]=l=>t.updateState("text5",l))},{help:n(()=>e[41]||(e[41]=[a(" Eingabefeld für Benutzernamen ",-1)])),_:1},8,["model-value"]),o(p,{title:"6. Text (Time)",subtype:"time","model-value":t.$store.state.examples.text6,"onUpdate:modelValue":e[7]||(e[7]=l=>t.updateState("text6",l))},{help:n(()=>e[42]||(e[42]=[a(" Eingabefeld für Zeiten ",-1)])),_:1},8,["model-value"]),o(p,{title:"7. Text (Date)",subtype:"date","model-value":t.$store.state.examples.text7,"onUpdate:modelValue":e[8]||(e[8]=l=>t.updateState("text7",l))},{help:n(()=>e[43]||(e[43]=[a(" Eingabefeld für ein Datum ",-1)])),_:1},8,["model-value"]),e[49]||(e[49]=s("hr",null,null,-1)),o(r,{title:"1. Zahl",min:5,max:9,step:2,unit:"kW","model-value":t.$store.state.examples.number1,"onUpdate:modelValue":e[10]||(e[10]=l=>t.updateState("number1",l))},{help:n(()=>e[44]||(e[44]=[a(" Zahl mit Einheit.",-1),s("br",null,null,-1),a(' Diese Komponente hat einen Slot "append" für zusätzliche Elemente, die rechts vom Eingabefeld angezeigt werden sollen. Das ist hier z.B. ein Farbauswahl-Element. Ohne Standardfarbe kann die Farbe nicht zurückgesetzt werden. ',-1)])),append:n(()=>[o(f,{class:"p-1","model-value":t.$store.state.examples.color2,"onUpdate:modelValue":e[9]||(e[9]=l=>t.updateState("color2",l))},null,8,["model-value"])]),_:1},8,["model-value"]),o(r,{title:"2. Zahl",min:10,max:32,step:2,"model-value":t.$store.state.examples.number2,"onUpdate:modelValue":e[11]||(e[11]=l=>t.updateState("number2",l))},{help:n(()=>e[45]||(e[45]=[a(" Eingabefeld für Zahlen ohne Einheit ",-1)])),_:1},8,["model-value"]),o(r,{title:"3. Zahl",min:-30,max:30,step:.01,precision:2,unit:"ct/kWh","model-value":t.$store.state.examples.number3*1e5,"onUpdate:modelValue":e[12]||(e[12]=l=>t.updateState("number3",parseFloat((l/1e5).toFixed(7))))},{help:n(()=>e[46]||(e[46]=[a(" Eingabefeld für Zahlen mit Einheit und Nachkommastellen",-1),s("br",null,null,-1),a(' Zusätzlich zum optionalen Parameter "step" sollte immer auch "precision" gesetzt sein, um unvermeidbare Darstellungsfehler zu vermeiden.',-1),s("br",null,null,-1),a(" Wenn der dargestellte Wert eine andere Genauigkeit/Einheit als der Wert im Backend hat (z.B. €/Wh <-> ct/kWh), dann ist bei der Umrechnung darauf zu achten, dass es nicht erneut zu Ungenauigkeiten bei Dezimalzahlen kommt. ",-1)])),_:1},8,["model-value"]),o(p,{title:"1. Passwort",subtype:"password","model-value":t.$store.state.examples.password1,"onUpdate:modelValue":e[13]||(e[13]=l=>t.updateState("password1",l))},{help:n(()=>e[47]||(e[47]=[a(" Das Passwort kann per Klick auf das Auge angezeigt werden. ",-1)])),_:1},8,["model-value"]),e[50]||(e[50]=s("hr",null,null,-1)),o(x,{title:"1. Textarea",maxlength:"50","model-value":t.$store.state.examples.textarea1,"onUpdate:modelValue":e[14]||(e[14]=l=>t.updateState("textarea1",l))},{help:n(()=>e[48]||(e[48]=[a(" Textarea mit maximaler Länge von 50 Zeichen. ",-1)])),_:1},8,["model-value"])]),_:1,__:[49,50]}),o(i,{title:"Spezielle Elemente"},{default:n(()=>[o(g,{title:"1. Range",min:6,max:32,step:1,unit:"A","model-value":t.$store.state.examples.range1,"onUpdate:modelValue":e[15]||(e[15]=l=>t.updateState("range1",l))},{help:n(()=>e[51]||(e[51]=[a(" Range ohne spezielle Labels ",-1)])),_:1},8,["model-value"]),o(g,{title:"2. Range",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":t.$store.state.examples.range2,"onUpdate:modelValue":e[16]||(e[16]=l=>t.updateState("range2",l))},{help:n(()=>e[52]||(e[52]=[a(" Range mit speziellen Labels ",-1)])),_:1},8,["model-value"]),e[58]||(e[58]=s("hr",null,null,-1)),o(m,{title:"1. Select","not-selected":"Bitte auswählen",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}],"model-value":t.$store.state.examples.select1,"onUpdate:modelValue":e[17]||(e[17]=l=>t.updateState("select1",l))},{help:n(()=>e[53]||(e[53]=[a(" Select mit einfachen Optionen ",-1)])),_:1},8,["model-value"]),o(m,{title:"2. Select",groups:[{label:"Gruppe 1 (Number)",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}]},{label:"Gruppe 2 (String)",options:[{value:"three",text:"Drei"},{value:"four",text:"Vier"}]}],"not-selected":"Bitte auswählen","add-button":!0,"model-value":t.$store.state.examples.select2,"onUpdate:modelValue":e[18]||(e[18]=l=>t.updateState("select2",l)),"onInput:add":e[19]||(e[19]=l=>t.alert("add button pressed"))},{help:n(()=>e[54]||(e[54]=[a(" Select mit Gruppen und Add-Button. ",-1)])),_:1},8,["model-value"]),e[59]||(e[59]=s("hr",null,null,-1)),o(v,{title:"1. Button-Group",buttons:[{buttonValue:1,text:"Eins"},{buttonValue:2,text:"Zwei"}],"model-value":t.$store.state.examples.buttonGroup1,"onUpdate:modelValue":e[20]||(e[20]=l=>t.updateState("buttonGroup1",l))},{help:n(()=>e[55]||(e[55]=[a(" Hilfetext ",-1)])),_:1},8,["model-value"]),o(w,null,{default:n(()=>[e[56]||(e[56]=a(" Select Element ohne Label: ",-1)),o(m,{class:"mb-1","not-selected":"Bitte auswählen",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}],"model-value":t.$store.state.examples.select1,"onUpdate:modelValue":e[21]||(e[21]=l=>t.updateState("select1",l))},null,8,["model-value"])]),_:1,__:[56]}),e[60]||(e[60]=s("hr",null,null,-1)),o(V,{title:"1. Checkbox","model-value":t.$store.state.examples.checkbox1,"onUpdate:modelValue":e[22]||(e[22]=l=>t.updateState("checkbox1",l))},{help:n(()=>e[57]||(e[57]=[a(" Hilfetext ",-1)])),_:1},8,["model-value"])]),_:1,__:[58,59,60]}),o(i,{title:"JSON Gruppe"},{default:n(()=>[o(p,{title:"JSON 1",subtype:"json","model-value":t.$store.state.examples.json1,"onUpdate:modelValue":e[23]||(e[23]=l=>t.updateState("json1",l))},{help:n(()=>e[61]||(e[61]=[a(" JSON Objekt ",-1)])),_:1},8,["model-value"]),o(p,{title:"JSON 1 Text","model-value":t.$store.state.examples.json1.text,"onUpdate:modelValue":e[24]||(e[24]=l=>t.updateState("json1",l,"text"))},{help:n(()=>e[62]||(e[62]=[a(" Text im JSON Objekt ",-1)])),_:1},8,["model-value"]),o(r,{title:"JSON 1 Zahl","model-value":t.$store.state.examples.json1.number,"onUpdate:modelValue":e[25]||(e[25]=l=>t.updateState("json1",l,"number"))},{help:n(()=>e[63]||(e[63]=[a(" Zahl im JSON Objekt ",-1)])),_:1},8,["model-value"]),o(y,{title:"Tag Array","model-value":t.$store.state.examples.tags,"onUpdate:modelValue":e[26]||(e[26]=l=>t.updateState("tags",l))},{help:n(()=>[s("pre",null,S(JSON.stringify(t.$store.state.examples.tags,void 0,2)),1)]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Meldungen"},{header:n(()=>e[64]||(e[64]=[s("span",{style:{"text-decoration":"underline","font-style":"italic"}},[a(" Styled "),s("span",{style:{"font-weight":"initial"}},"Header"),a(" Slot ")],-1)])),default:n(()=>[o(w,null,{help:n(()=>e[65]||(e[65]=[a(" Es sind auch Hilfetexte im #help Slot möglich. ",-1),s("a",{href:"test"},"Link",-1)])),default:n(()=>[e[66]||(e[66]=a(" Das ist eine Überschrift ",-1))]),_:1,__:[66]}),o(d,null,{default:n(()=>[e[68]||(e[68]=a(" Meldung ohne speziellen Subtype. ",-1)),o(k,null,{default:n(()=>e[67]||(e[67]=[a("Kopiere mich!",-1)])),_:1,__:[67]})]),_:1,__:[68]}),o(d,{subtype:"info"},{default:n(()=>e[69]||(e[69]=[a(" Infomeldung ",-1)])),_:1,__:[69]}),o(d,{subtype:"warning"},{default:n(()=>e[70]||(e[70]=[a(" Warnmeldung ",-1)])),_:1,__:[70]}),o(d,{subtype:"danger"},{default:n(()=>e[71]||(e[71]=[a(" Fehlermeldung ",-1)])),_:1,__:[71]})]),_:1}),o(i,{title:"Listen"},{default:n(()=>[o(U,{modelValue:t.$store.state.examples.hierarchy1,"onUpdate:modelValue":e[27]||(e[27]=l=>t.$store.state.examples.hierarchy1=l),title:"Liste 1",labels:t.$store.state.examples.hierarchy1Labels},{help:n(()=>[s("pre",null,S(JSON.stringify(t.$store.state.examples.hierarchy1,void 0,2)),1)]),_:1},8,["modelValue","labels"])]),_:1}),o(z,{"form-name":"testingStoreForm",onSave:e[28]||(e[28]=l=>t.$emit("save")),onReset:e[29]||(e[29]=l=>t.$emit("reset")),onDefaults:e[30]||(e[30]=l=>t.$emit("defaults"))})])])}const Q=T(N,[["render",j],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TestingStore.vue"]]);export{Q as default}; +import{C as B}from"./index-eccf5556.js";import{S as O}from"./OpenwbSortableList-e9396362.js";import{_ as T,u,l as D,m as Z,A as s,G as o,E as n,B as a,F as S}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";const N={name:"OpenwbTestingStoreView",components:{SortableList:O},mixins:[B],emits:["save","reset","defaults"],data(){return{mqttTopicsToSubscribe:[]}}},G={class:"testingStore"},L={name:"testingStoreForm"};function j(t,e,A,F,J,W){const b=u("OpenwbBaseHeading"),E=u("OpenwbBaseSettingElement"),$=u("openwb-base-button-input"),v=u("openwb-base-button-group-input"),i=u("openwb-base-card"),f=u("openwb-base-color-picker"),p=u("openwb-base-text-input"),r=u("openwb-base-number-input"),x=u("openwb-base-textarea"),g=u("openwb-base-range-input"),m=u("openwb-base-select-input"),w=u("openwb-base-heading"),V=u("openwb-base-checkbox-input"),y=u("openwb-base-array-input"),k=u("openwb-base-copy-to-clipboard"),d=u("openwb-base-alert"),U=u("sortable-list"),z=u("openwb-base-submit-buttons");return D(),Z("div",G,[s("form",L,[o(i,{title:"Elemente mit BaseSettingElement"},{default:n(()=>[o(b,null,{default:n(()=>e[31]||(e[31]=[a(" Basiselement ",-1)])),_:1,__:[31]}),o(E,null,{title:n(()=>e[32]||(e[32]=[s("span",{style:{"font-style":"italic"}},[a(" Styled "),s("span",{style:{"font-weight":"bold"}},"Title"),a(" Slot ")],-1)])),help:n(()=>e[33]||(e[33]=[a(" Basis-Element für alle weiteren Elemente. Das ist ein ",-1),s("a",{href:"test"},"Link",-1),a(". ",-1)])),_:1}),o(b,null,{default:n(()=>e[34]||(e[34]=[a(" Abgeleitete Elemente ",-1)])),_:1,__:[34]}),o($,{title:"Button Input","button-text":"Klick mich",subtype:"info"},{help:n(()=>e[35]||(e[35]=[a(" Einfacher Click-Button für Aktionen. ",-1)])),_:1}),o(v,{title:"Button Group Input",buttons:[{buttonValue:1,text:"Eins"},{buttonValue:2,text:"Zwei"}],"model-value":t.$store.state.examples.buttonGroup1,"onUpdate:modelValue":e[0]||(e[0]=l=>t.updateState("buttonGroup1",l))},{help:n(()=>e[36]||(e[36]=[a(" Button-Group Element zur Auswahl weniger Optionen. Bei vielen Optionen besser ein Dropdown verwenden. ",-1),s("a",{href:"test"},"Link",-1),a(". ",-1)])),_:1},8,["model-value"])]),_:1}),o(i,{title:"Einfache Eingabefelder"},{default:n(()=>[o(p,{title:"1. Text","model-value":t.$store.state.examples.text1,"onUpdate:modelValue":e[2]||(e[2]=l=>t.updateState("text1",l))},{help:n(()=>e[37]||(e[37]=[a(" Einfacher Text",-1),s("br",null,null,-1),a(' Diese Komponente hat einen Slot "append" für zusätzliche Elemente, die rechts vom Eingabefeld angezeigt werden sollen. Das ist hier z.B. ein Farbauswahl-Element. Die Farbe kann zurückgesetzt werden, weil eine Standardfarbe gesetzt ist. Das ist hier z.B. rot (#ff0000). ',-1)])),append:n(()=>[o(f,{class:"p-1","model-value":t.$store.state.examples.color1,"default-color":"#ff0000","onUpdate:modelValue":e[1]||(e[1]=l=>t.updateState("color1",l))},null,8,["model-value"])]),_:1},8,["model-value"]),o(p,{title:"2. Text (E-Mail)",subtype:"email","model-value":t.$store.state.examples.text2,"onUpdate:modelValue":e[3]||(e[3]=l=>t.updateState("text2",l))},{help:n(()=>e[38]||(e[38]=[a(" Eingabefeld für E-Mailadressen ",-1)])),_:1},8,["model-value"]),o(p,{title:"3. Text (Host)",subtype:"host","model-value":t.$store.state.examples.text3,"onUpdate:modelValue":e[4]||(e[4]=l=>t.updateState("text3",l))},{help:n(()=>e[39]||(e[39]=[a(" Eingabefeld für Hosts (IP oder Namen) ",-1)])),_:1},8,["model-value"]),o(p,{title:"4. Text (URL)",subtype:"url","model-value":t.$store.state.examples.text4,"onUpdate:modelValue":e[5]||(e[5]=l=>t.updateState("text4",l))},{help:n(()=>e[40]||(e[40]=[a(" Eingabefeld für URLs ",-1)])),_:1},8,["model-value"]),o(p,{title:"5. Text (User)",subtype:"user","model-value":t.$store.state.examples.text5,"onUpdate:modelValue":e[6]||(e[6]=l=>t.updateState("text5",l))},{help:n(()=>e[41]||(e[41]=[a(" Eingabefeld für Benutzernamen ",-1)])),_:1},8,["model-value"]),o(p,{title:"6. Text (Time)",subtype:"time","model-value":t.$store.state.examples.text6,"onUpdate:modelValue":e[7]||(e[7]=l=>t.updateState("text6",l))},{help:n(()=>e[42]||(e[42]=[a(" Eingabefeld für Zeiten ",-1)])),_:1},8,["model-value"]),o(p,{title:"7. Text (Date)",subtype:"date","model-value":t.$store.state.examples.text7,"onUpdate:modelValue":e[8]||(e[8]=l=>t.updateState("text7",l))},{help:n(()=>e[43]||(e[43]=[a(" Eingabefeld für ein Datum ",-1)])),_:1},8,["model-value"]),e[49]||(e[49]=s("hr",null,null,-1)),o(r,{title:"1. Zahl",min:5,max:9,step:2,unit:"kW","model-value":t.$store.state.examples.number1,"onUpdate:modelValue":e[10]||(e[10]=l=>t.updateState("number1",l))},{help:n(()=>e[44]||(e[44]=[a(" Zahl mit Einheit.",-1),s("br",null,null,-1),a(' Diese Komponente hat einen Slot "append" für zusätzliche Elemente, die rechts vom Eingabefeld angezeigt werden sollen. Das ist hier z.B. ein Farbauswahl-Element. Ohne Standardfarbe kann die Farbe nicht zurückgesetzt werden. ',-1)])),append:n(()=>[o(f,{class:"p-1","model-value":t.$store.state.examples.color2,"onUpdate:modelValue":e[9]||(e[9]=l=>t.updateState("color2",l))},null,8,["model-value"])]),_:1},8,["model-value"]),o(r,{title:"2. Zahl",min:10,max:32,step:2,"model-value":t.$store.state.examples.number2,"onUpdate:modelValue":e[11]||(e[11]=l=>t.updateState("number2",l))},{help:n(()=>e[45]||(e[45]=[a(" Eingabefeld für Zahlen ohne Einheit ",-1)])),_:1},8,["model-value"]),o(r,{title:"3. Zahl",min:-30,max:30,step:.01,precision:2,unit:"ct/kWh","model-value":t.$store.state.examples.number3*1e5,"onUpdate:modelValue":e[12]||(e[12]=l=>t.updateState("number3",parseFloat((l/1e5).toFixed(7))))},{help:n(()=>e[46]||(e[46]=[a(" Eingabefeld für Zahlen mit Einheit und Nachkommastellen",-1),s("br",null,null,-1),a(' Zusätzlich zum optionalen Parameter "step" sollte immer auch "precision" gesetzt sein, um unvermeidbare Darstellungsfehler zu vermeiden.',-1),s("br",null,null,-1),a(" Wenn der dargestellte Wert eine andere Genauigkeit/Einheit als der Wert im Backend hat (z.B. €/Wh <-> ct/kWh), dann ist bei der Umrechnung darauf zu achten, dass es nicht erneut zu Ungenauigkeiten bei Dezimalzahlen kommt. ",-1)])),_:1},8,["model-value"]),o(p,{title:"1. Passwort",subtype:"password","model-value":t.$store.state.examples.password1,"onUpdate:modelValue":e[13]||(e[13]=l=>t.updateState("password1",l))},{help:n(()=>e[47]||(e[47]=[a(" Das Passwort kann per Klick auf das Auge angezeigt werden. ",-1)])),_:1},8,["model-value"]),e[50]||(e[50]=s("hr",null,null,-1)),o(x,{title:"1. Textarea",maxlength:"50","model-value":t.$store.state.examples.textarea1,"onUpdate:modelValue":e[14]||(e[14]=l=>t.updateState("textarea1",l))},{help:n(()=>e[48]||(e[48]=[a(" Textarea mit maximaler Länge von 50 Zeichen. ",-1)])),_:1},8,["model-value"])]),_:1,__:[49,50]}),o(i,{title:"Spezielle Elemente"},{default:n(()=>[o(g,{title:"1. Range",min:6,max:32,step:1,unit:"A","model-value":t.$store.state.examples.range1,"onUpdate:modelValue":e[15]||(e[15]=l=>t.updateState("range1",l))},{help:n(()=>e[51]||(e[51]=[a(" Range ohne spezielle Labels ",-1)])),_:1},8,["model-value"]),o(g,{title:"2. Range",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":t.$store.state.examples.range2,"onUpdate:modelValue":e[16]||(e[16]=l=>t.updateState("range2",l))},{help:n(()=>e[52]||(e[52]=[a(" Range mit speziellen Labels ",-1)])),_:1},8,["model-value"]),e[58]||(e[58]=s("hr",null,null,-1)),o(m,{title:"1. Select","not-selected":"Bitte auswählen",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}],"model-value":t.$store.state.examples.select1,"onUpdate:modelValue":e[17]||(e[17]=l=>t.updateState("select1",l))},{help:n(()=>e[53]||(e[53]=[a(" Select mit einfachen Optionen ",-1)])),_:1},8,["model-value"]),o(m,{title:"2. Select",groups:[{label:"Gruppe 1 (Number)",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}]},{label:"Gruppe 2 (String)",options:[{value:"three",text:"Drei"},{value:"four",text:"Vier"}]}],"not-selected":"Bitte auswählen","add-button":!0,"model-value":t.$store.state.examples.select2,"onUpdate:modelValue":e[18]||(e[18]=l=>t.updateState("select2",l)),"onInput:add":e[19]||(e[19]=l=>t.alert("add button pressed"))},{help:n(()=>e[54]||(e[54]=[a(" Select mit Gruppen und Add-Button. ",-1)])),_:1},8,["model-value"]),e[59]||(e[59]=s("hr",null,null,-1)),o(v,{title:"1. Button-Group",buttons:[{buttonValue:1,text:"Eins"},{buttonValue:2,text:"Zwei"}],"model-value":t.$store.state.examples.buttonGroup1,"onUpdate:modelValue":e[20]||(e[20]=l=>t.updateState("buttonGroup1",l))},{help:n(()=>e[55]||(e[55]=[a(" Hilfetext ",-1)])),_:1},8,["model-value"]),o(w,null,{default:n(()=>[e[56]||(e[56]=a(" Select Element ohne Label: ",-1)),o(m,{class:"mb-1","not-selected":"Bitte auswählen",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}],"model-value":t.$store.state.examples.select1,"onUpdate:modelValue":e[21]||(e[21]=l=>t.updateState("select1",l))},null,8,["model-value"])]),_:1,__:[56]}),e[60]||(e[60]=s("hr",null,null,-1)),o(V,{title:"1. Checkbox","model-value":t.$store.state.examples.checkbox1,"onUpdate:modelValue":e[22]||(e[22]=l=>t.updateState("checkbox1",l))},{help:n(()=>e[57]||(e[57]=[a(" Hilfetext ",-1)])),_:1},8,["model-value"])]),_:1,__:[58,59,60]}),o(i,{title:"JSON Gruppe"},{default:n(()=>[o(p,{title:"JSON 1",subtype:"json","model-value":t.$store.state.examples.json1,"onUpdate:modelValue":e[23]||(e[23]=l=>t.updateState("json1",l))},{help:n(()=>e[61]||(e[61]=[a(" JSON Objekt ",-1)])),_:1},8,["model-value"]),o(p,{title:"JSON 1 Text","model-value":t.$store.state.examples.json1.text,"onUpdate:modelValue":e[24]||(e[24]=l=>t.updateState("json1",l,"text"))},{help:n(()=>e[62]||(e[62]=[a(" Text im JSON Objekt ",-1)])),_:1},8,["model-value"]),o(r,{title:"JSON 1 Zahl","model-value":t.$store.state.examples.json1.number,"onUpdate:modelValue":e[25]||(e[25]=l=>t.updateState("json1",l,"number"))},{help:n(()=>e[63]||(e[63]=[a(" Zahl im JSON Objekt ",-1)])),_:1},8,["model-value"]),o(y,{title:"Tag Array","model-value":t.$store.state.examples.tags,"onUpdate:modelValue":e[26]||(e[26]=l=>t.updateState("tags",l))},{help:n(()=>[s("pre",null,S(JSON.stringify(t.$store.state.examples.tags,void 0,2)),1)]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Meldungen"},{header:n(()=>e[64]||(e[64]=[s("span",{style:{"text-decoration":"underline","font-style":"italic"}},[a(" Styled "),s("span",{style:{"font-weight":"initial"}},"Header"),a(" Slot ")],-1)])),default:n(()=>[o(w,null,{help:n(()=>e[65]||(e[65]=[a(" Es sind auch Hilfetexte im #help Slot möglich. ",-1),s("a",{href:"test"},"Link",-1)])),default:n(()=>[e[66]||(e[66]=a(" Das ist eine Überschrift ",-1))]),_:1,__:[66]}),o(d,null,{default:n(()=>[e[68]||(e[68]=a(" Meldung ohne speziellen Subtype. ",-1)),o(k,null,{default:n(()=>e[67]||(e[67]=[a("Kopiere mich!",-1)])),_:1,__:[67]})]),_:1,__:[68]}),o(d,{subtype:"info"},{default:n(()=>e[69]||(e[69]=[a(" Infomeldung ",-1)])),_:1,__:[69]}),o(d,{subtype:"warning"},{default:n(()=>e[70]||(e[70]=[a(" Warnmeldung ",-1)])),_:1,__:[70]}),o(d,{subtype:"danger"},{default:n(()=>e[71]||(e[71]=[a(" Fehlermeldung ",-1)])),_:1,__:[71]})]),_:1}),o(i,{title:"Listen"},{default:n(()=>[o(U,{modelValue:t.$store.state.examples.hierarchy1,"onUpdate:modelValue":e[27]||(e[27]=l=>t.$store.state.examples.hierarchy1=l),title:"Liste 1",labels:t.$store.state.examples.hierarchy1Labels},{help:n(()=>[s("pre",null,S(JSON.stringify(t.$store.state.examples.hierarchy1,void 0,2)),1)]),_:1},8,["modelValue","labels"])]),_:1}),o(z,{"form-name":"testingStoreForm",onSave:e[28]||(e[28]=l=>t.$emit("save")),onReset:e[29]||(e[29]=l=>t.$emit("reset")),onDefaults:e[30]||(e[30]=l=>t.$emit("defaults"))})])])}const Q=T(N,[["render",j],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TestingStore.vue"]]);export{Q as default}; diff --git a/web/settings/assets/VehicleConfig-28b52371.js b/web/settings/assets/VehicleConfig-28b52371.js deleted file mode 100644 index 0272d39c73..0000000000 --- a/web/settings/assets/VehicleConfig-28b52371.js +++ /dev/null @@ -1 +0,0 @@ -import{l as x,a6 as ae,a7 as ie,F as O,_ as N,S as I,E as H,G as j,an as J,am as G,ah as K,al as Q,aa as X,d as re,a0 as ue,ao as oe,R as de,M as se}from"./vendor-fortawesome-66071a0e.js";import{_ as w,C as Y}from"./index-93388667.js";import{_ as me}from"./dynamic-import-helper-be004503.js";import{_ as D,u as c,l as d,m as p,x as f,E as a,B as i,F as z,G as l,A as h,a2 as ge,a3 as pe,N as W,q as ee,y as B,z as s,M as T,D as Z}from"./vendor-25d394b4.js";import{V as he}from"./VehicleIdWikiHint-c0918982.js";const ce={props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},emits:["update:configuration"],methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},be=D(ce,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/VehicleConfigMixin.vue"]]),fe={name:"VehicleConfigFallback",mixins:[be]},ve={class:"vehicle-fallback"},_e={key:1};function Ve(n,e,v,U,S,t){const y=c("openwb-base-alert"),b=c("openwb-base-textarea");return d(),p("div",ve,[Object.keys(n.vehicle.configuration).length==0?(d(),f(y,{key:0,subtype:"info"},{default:a(()=>[i(' Der Fahrzeug-Typ "'+z(n.vehicle.type)+'" bietet keine Einstellungen. ',1)]),_:1})):(d(),p("div",_e,[l(y,{subtype:"warning"},{default:a(()=>[i(' Es wurde keine Konfigurationsseite für den Fahrzeug-Typ "'+z(n.vehicle.type)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),l(b,{title:"Konfiguration",subtype:"json","model-value":n.vehicle.configuration,"onUpdate:modelValue":e[0]||(e[0]=k=>n.updateConfiguration(k,"configuration"))},{help:a(()=>e[1]||(e[1]=[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),l(y,{subtype:"info"},{default:a(()=>[h("pre",null,z(JSON.stringify(n.vehicle.configuration,void 0,2)),1)]),_:1})]))])}const we=D(fe,[["render",Ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleConfigFallback.vue"]]);x.add(ae,ie);const ke={name:"OpenwbVehicleProxy",components:{FontAwesomeIcon:O},props:{vehicleId:{type:Number,required:!0},vehicle:{type:Object,required:!0}},emits:["update:configuration"],methods:{getVehicleComponent(){return console.debug(`loading vehicle: ${this.vehicle.type}`),ge({loader:()=>me(Object.assign({"./aiways/vehicle.vue":()=>w(()=>import("./vehicle-3e73bf6e.js"),["assets/vehicle-3e73bf6e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./bmwbc/vehicle.vue":()=>w(()=>import("./vehicle-4d40b28f.js"),["assets/vehicle-4d40b28f.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./cupra/vehicle.vue":()=>w(()=>import("./vehicle-e6540d4c.js"),["assets/vehicle-e6540d4c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./evcc/vehicle.vue":()=>w(()=>import("./vehicle-85376722.js"),["assets/vehicle-85376722.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./evnotify/vehicle.vue":()=>w(()=>import("./vehicle-ba6a1f31.js"),["assets/vehicle-ba6a1f31.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./http/vehicle.vue":()=>w(()=>import("./vehicle-5e681017.js"),["assets/vehicle-5e681017.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./json/vehicle.vue":()=>w(()=>import("./vehicle-a0cbd4bf.js"),["assets/vehicle-a0cbd4bf.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./kia/vehicle.vue":()=>w(()=>import("./vehicle-d2af01a7.js"),["assets/vehicle-d2af01a7.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./leaf/vehicle.vue":()=>w(()=>import("./vehicle-f8c7286d.js"),["assets/vehicle-f8c7286d.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./manual/vehicle.vue":()=>w(()=>import("./vehicle-cee2dd5b.js"),["assets/vehicle-cee2dd5b.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./mercedeseq/vehicle.vue":()=>w(()=>import("./vehicle-075e67ef.js"),["assets/vehicle-075e67ef.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./mqtt/vehicle.vue":()=>w(()=>import("./vehicle-1ca5962d.js"),["assets/vehicle-1ca5962d.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./ovms/vehicle.vue":()=>w(()=>import("./vehicle-f0f2cea1.js"),["assets/vehicle-f0f2cea1.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./psa/vehicle.vue":()=>w(()=>import("./vehicle-168e43cd.js"),["assets/vehicle-168e43cd.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./psacc/vehicle.vue":()=>w(()=>import("./vehicle-a8c00d63.js"),["assets/vehicle-a8c00d63.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./renault/vehicle.vue":()=>w(()=>import("./vehicle-3b91fe46.js"),["assets/vehicle-3b91fe46.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./skoda/vehicle.vue":()=>w(()=>import("./vehicle-b61bf4e9.js"),["assets/vehicle-b61bf4e9.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./smarthello/vehicle.vue":()=>w(()=>import("./vehicle-ceb6622c.js"),["assets/vehicle-ceb6622c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./tesla/vehicle.vue":()=>w(()=>import("./vehicle-96da0410.js"),["assets/vehicle-96da0410.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-axios-ac33d60c.js","assets/index-93388667.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./tronity/vehicle.vue":()=>w(()=>import("./vehicle-982d80e7.js"),["assets/vehicle-982d80e7.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"]),"./vwid/vehicle.vue":()=>w(()=>import("./vehicle-d4a0797c.js"),["assets/vehicle-d4a0797c.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/index-93388667.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"])}),`./${this.vehicle.type}/vehicle.vue`),errorComponent:we})},updateConfiguration(n){this.$emit("update:configuration",n)}}};function ze(n,e,v,U,S,t){const y=c("font-awesome-icon"),b=c("openwb-base-alert"),k=c("openwb-base-heading");return d(),p(W,null,[v.vehicle.official?(d(),f(b,{key:0,subtype:"info"},{default:a(()=>[l(y,{icon:["fas","certificate"]}),i(' Das ausgewählte Fahrzeug-Modul "'+z(v.vehicle.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(d(),f(b,{key:1,subtype:"info"},{default:a(()=>[l(y,{icon:["fas","people-group"]}),i(' Das ausgewählte Fahrzeug-Modul "'+z(v.vehicle.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),l(k,null,{default:a(()=>[i(' Einstellungen für SoC-Modul "'+z(v.vehicle.name)+'" ',1)]),_:1}),(d(),f(pe(t.getVehicleComponent()),{"vehicle-id":v.vehicleId,vehicle:v.vehicle,"onUpdate:configuration":e[0]||(e[0]=V=>t.updateConfiguration(V))},null,40,["vehicle-id","vehicle"]))],64)}const Ce=D(ke,[["render",ze],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleProxy.vue"]]);x.add(N,I,H,j,J,G,K,Q,X);const Se={name:"VehicleScheduledChargingPlan",components:{FontAwesomeIcon:O},mixins:[Y],props:{modelValue:{type:Object,required:!0},templateId:{type:Number,required:!0},dcChargingEnabled:{type:Boolean,default:!1}},emits:["update:modelValue","sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/optional/et/provider"],showRemoveModal:!1}},computed:{plan(){return this.modelValue}},watch:{plan:{handler(n){this.$emit("update:modelValue",n)},deep:!0}},methods:{copyPlan(){this.$emit("sendCommand",{command:"addChargeTemplateSchedulePlan",data:{template:this.templateId,copy:this.modelValue.id}})},removePlanModal(){this.showRemoveModal=!0},removePlan(n){this.showRemoveModal=!1,n=="confirm"&&this.$emit("sendCommand",{command:"removeChargeTemplateSchedulePlan",data:{template:this.templateId,plan:this.modelValue.id}})}}},ye={key:0},Ae={key:1},Ue={key:2},Ee={key:3},Pe={key:4},We={key:5},Le={key:1},Be={key:5};function Fe(n,e,v,U,S,t){const y=c("openwb-base-modal-dialog"),b=c("font-awesome-icon"),k=c("openwb-base-avatar"),V=c("openwb-base-text-input"),C=c("openwb-base-button-group-input"),L=c("openwb-base-range-input"),F=c("openwb-base-number-input"),q=c("openwb-base-alert"),m=c("openwb-base-card");return d(),p(W,null,[l(y,{show:S.showRemoveModal,title:"Zielladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:t.removePlan},{default:a(()=>[i(' Wollen Sie den Zielladen Zeitplan "'+z(t.plan.name)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),l(m,{title:t.plan.name,collapsible:!0,collapsed:!0},{actions:a(g=>[g.collapsed==!0?(d(),p("span",{key:0,class:ee(["pill clickable",t.plan.active?"bg-success":"bg-danger"]),onClick:e[0]||(e[0]=B(_=>t.plan.active=!t.plan.active,["stop"]))},[t.plan.limit.selected=="soc"?(d(),p("span",ye,[l(b,{icon:["fas","car-battery"]}),i(" "+z(t.plan.limit.soc_scheduled)+"% ",1)])):s("",!0),t.plan.limit.selected=="amount"?(d(),p("span",Ae,[l(b,{icon:["fas","bolt"]}),i(" "+z(t.plan.limit.amount/1e3)+"kWh ",1)])):s("",!0),l(b,{icon:["fas","clock"]}),i(" "+z(t.plan.time)+" ",1),t.plan.frequency.selected=="once"?(d(),p("span",Ue,[l(b,{icon:["fas","calendar-day"]}),i(" "+z(n.formatDate(t.plan.frequency.once)),1)])):s("",!0),t.plan.frequency.selected=="daily"?(d(),p("span",Ee,[l(b,{icon:["fas","calendar-week"]})])):s("",!0),t.plan.frequency.selected=="weekly"?(d(),p("span",Pe,[l(b,{icon:["fas","calendar-alt"]})])):s("",!0),t.plan.et_active?(d(),p("span",We,[l(b,{icon:["fas","coins"]})])):s("",!0)],2)):s("",!0),g.collapsed==!1?(d(),p("span",Le,[l(k,{class:"bg-success clickable ml-1",title:"Zielladen-Plan duplizieren",onClick:e[1]||(e[1]=B(_=>t.copyPlan(),["stop"]))},{default:a(()=>[l(b,{icon:["fas","copy"]})]),_:1}),l(k,{class:"bg-danger clickable ml-1",title:"Zielladen-Plan löschen",onClick:e[2]||(e[2]=B(_=>t.removePlanModal(),["stop"]))},{default:a(()=>[l(b,{icon:["fas","trash"]})]),_:1})])):s("",!0)]),default:a(()=>[l(V,{modelValue:t.plan.name,"onUpdate:modelValue":e[3]||(e[3]=g=>t.plan.name=g),title:"Bezeichnung"},null,8,["modelValue"]),l(C,{modelValue:t.plan.active,"onUpdate:modelValue":e[4]||(e[4]=g=>t.plan.active=g),title:"Zeitpunkt aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"]),l(V,{modelValue:t.plan.time,"onUpdate:modelValue":e[5]||(e[5]=g=>t.plan.time=g),title:"Ziel-Uhrzeit",subtype:"time"},{help:a(()=>e[17]||(e[17]=[i(" Hier ist die gewünschte Uhrzeit einzustellen, zu welcher das Fahrzeug den gewünschten SoC bzw. die zu ladende Energiemenge BEREITS ERREICHT haben soll. ",-1)])),_:1},8,["modelValue"]),l(L,{modelValue:t.plan.current,"onUpdate:modelValue":e[6]||(e[6]=g=>t.plan.current=g),title:`Ladestrom${v.dcChargingEnabled?" (AC)":""}`,min:6,max:32,step:1,unit:"A"},{help:a(()=>e[18]||(e[18]=[i(" Mit dieser Stromstärke wird der Zeitpunkt berechnet, wann die Ladung mit Netzbezug gestartet werden muss. Wird der Ziel-SoC nicht zum angegebenen Termin erreicht, weil z.B. das Auto erst später angesteckt wurde, wird auch mit einer höheren Stromstärke geladen. Um etwas Puffer zu haben, empfiehlt es sich, etwas weniger als die Maximalstromstärke des Fahrzeugs zu wählen. ",-1)])),_:1},8,["modelValue","title"]),v.dcChargingEnabled===!0?(d(),f(F,{key:0,title:"Ladeleistung (DC)",unit:"kW",min:0,"model-value":n.ac_current2dc_power(t.plan.dc_current),"onUpdate:modelValue":e[7]||(e[7]=g=>t.plan.dc_current=n.dc_power2ac_current(g))},null,8,["model-value"])):s("",!0),l(C,{modelValue:t.plan.limit.selected,"onUpdate:modelValue":e[8]||(e[8]=g=>t.plan.limit.selected=g),title:"Ziel",buttons:[{buttonValue:"soc",text:"Fahrzeug-SoC"},{buttonValue:"amount",text:"Energie"}]},{help:a(()=>e[19]||(e[19]=[i(" Bestimmt die Art der Grenze für den Ladevorgang. ",-1)])),_:1},8,["modelValue"]),t.plan.limit.selected=="soc"?(d(),f(L,{key:1,modelValue:t.plan.limit.soc_scheduled,"onUpdate:modelValue":e[9]||(e[9]=g=>t.plan.limit.soc_scheduled=g),title:"Fahrzeug-SoC zum Zielzeitpunkt",min:5,max:100,step:5,unit:"%"},{help:a(()=>e[20]||(e[20]=[i(" SoC, der zum angegebenen Zeitpunkt erreicht werden soll (Ziel-SoC). ",-1)])),_:1},8,["modelValue"])):s("",!0),t.plan.limit.selected=="soc"?(d(),f(L,{key:2,modelValue:t.plan.limit.soc_limit,"onUpdate:modelValue":e[10]||(e[10]=g=>t.plan.limit.soc_limit=g),title:"Fahrzeug-SoC mit Überschuss",min:5,max:100,step:5,unit:"%"},{help:a(()=>e[21]||(e[21]=[i(" Nach Erreichen des Ziel-SoCs wird mit Überschuss weiter geladen, bis das SoC-Limit erreicht wird. Sobald das SoC-Limit erreicht wurde, findet keine Ladung mehr mit Überschuss statt! ",-1)])),_:1},8,["modelValue"])):s("",!0),t.plan.limit.selected=="amount"?(d(),f(F,{key:3,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.plan.limit.amount/1e3,"onUpdate:modelValue":e[11]||(e[11]=g=>t.plan.limit.amount=g*1e3)},{help:a(()=>e[22]||(e[22]=[i(" Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zielladen schon ausgewählt ist, neu gezählt. ",-1)])),_:1},8,["model-value"])):s("",!0),e[26]||(e[26]=h("hr",null,null,-1)),l(C,{modelValue:t.plan.frequency.selected,"onUpdate:modelValue":e[12]||(e[12]=g=>t.plan.frequency.selected=g),title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}]},null,8,["modelValue"]),t.plan.frequency.selected=="once"?(d(),f(V,{key:4,modelValue:t.plan.frequency.once,"onUpdate:modelValue":e[13]||(e[13]=g=>t.plan.frequency.once=g),title:"Datum",subtype:"date"},null,8,["modelValue"])):s("",!0),t.plan.frequency.selected=="weekly"?(d(),p("div",Be,[(d(!0),p(W,null,T(n.weekdays,(g,_)=>(d(),f(C,{key:_,modelValue:t.plan.frequency.weekly[_],"onUpdate:modelValue":R=>t.plan.frequency.weekly[_]=R,title:g,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["modelValue","onUpdate:modelValue","title"]))),128))])):s("",!0),e[27]||(e[27]=h("hr",null,null,-1)),l(C,{modelValue:t.plan.et_active,"onUpdate:modelValue":e[14]||(e[14]=g=>t.plan.et_active=g),title:"Strompreisbasiert Laden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"]),t.plan.et_active==!0&&(!n.$store.state.mqtt["openWB/optional/et/provider"]||!n.$store.state.mqtt["openWB/optional/et/provider"].type)?(d(),f(q,{key:6,subtype:"danger"},{default:a(()=>e[23]||(e[23]=[i(" Bitte in den übergreifenden Ladeeinstellungen einen Strompreis-Anbieter konfigurieren. ",-1)])),_:1,__:[23]})):s("",!0),l(C,{modelValue:t.plan.phases_to_use,"onUpdate:modelValue":e[15]||(e[15]=g=>t.plan.phases_to_use=g),title:"Anzahl Phasen Zielladen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}]},{help:a(()=>e[24]||(e[24]=[i(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zielladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um das Ziel zu erreichen. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (sog. 1p3p). ',-1)])),_:1},8,["modelValue"]),l(C,{modelValue:t.plan.phases_to_use_pv,"onUpdate:modelValue":e[16]||(e[16]=g=>t.plan.phases_to_use_pv=g),title:"Anzahl Phasen bei PV-Überschuss",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}]},{help:a(()=>e[25]||(e[25]=[i(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zielladen" bei Laden mit PV-Überschuss mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um das Ziel zu erreichen. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (sog. 1p3p). ',-1)])),_:1},8,["modelValue"])]),_:1,__:[26,27]},8,["title"])],64)}const Me=D(Se,[["render",Fe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/ChargeTemplateScheduledChargingPlan.vue"]]);x.add(N,I,H,j,J,G,Q,X);const Te={name:"ChargeTemplateTimeChargingPlan",components:{FontAwesomeIcon:O},mixins:[Y],props:{modelValue:{type:Object,required:!0},templateId:{type:Number,required:!0},dcChargingEnabled:{type:Boolean,default:!1}},emits:["update:modelValue","sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/optional/dc_charging"],showRemoveModal:!1}},computed:{plan(){return this.modelValue}},watch:{plan:{handler(n){this.$emit("update:modelValue",n)},deep:!0}},methods:{copyPlan(){this.$emit("sendCommand",{command:"addChargeTemplateTimeChargingPlan",data:{template:this.templateId,copy:this.modelValue.id}})},removePlanModal(){this.showRemoveModal=!0},removePlan(n){this.showRemoveModal=!1,n=="confirm"&&this.$emit("sendCommand",{command:"removeChargeTemplateTimeChargingPlan",data:{template:this.templateId,plan:this.modelValue.id}})}}},De={key:0},qe={key:1},Ze={key:2},xe={key:3},Oe={key:4},Re={key:1},Ne={key:3};function Ie(n,e,v,U,S,t){const y=c("openwb-base-modal-dialog"),b=c("font-awesome-icon"),k=c("openwb-base-avatar"),V=c("openwb-base-text-input"),C=c("openwb-base-button-group-input"),L=c("openwb-base-range-input"),F=c("openwb-base-number-input"),q=c("openwb-base-card");return d(),p(W,null,[l(y,{show:S.showRemoveModal,title:"Zeitladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:t.removePlan},{default:a(()=>[i(' Wollen Sie den Zeitladen Zeitplan "'+z(t.plan.name)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),l(q,{title:t.plan.name,collapsible:!0,collapsed:!0},{actions:a(m=>[m.collapsed==!0?(d(),p("span",{key:0,class:ee(["pill clickable",t.plan.active?"bg-success":"bg-danger"]),onClick:e[0]||(e[0]=B(g=>t.plan.active=!t.plan.active,["stop"]))},[t.plan.limit.selected=="soc"?(d(),p("span",De,[l(b,{icon:["fas","car-battery"]}),i(" "+z(t.plan.limit.soc)+"% ",1)])):s("",!0),t.plan.limit.selected=="amount"?(d(),p("span",qe,[l(b,{icon:["fas","bolt"]}),i(" "+z(t.plan.limit.amount/1e3)+"kWh ",1)])):s("",!0),l(b,{icon:["fas","clock"]}),i(" "+z(t.plan.time[0])+" - "+z(t.plan.time[1])+" ",1),t.plan.frequency.selected=="once"?(d(),p("span",Ze,[l(b,{icon:["fas","calendar-day"]}),i(" "+z(n.formatDate(t.plan.frequency.once[0])==n.formatDate(t.plan.frequency.once[1])?n.formatDate(t.plan.frequency.once[0]):n.formatDate(t.plan.frequency.once[0])+" - "+n.formatDate(t.plan.frequency.once[1])),1)])):s("",!0),t.plan.frequency.selected=="daily"?(d(),p("span",xe,[l(b,{icon:["fas","calendar-week"]})])):s("",!0),t.plan.frequency.selected=="weekly"?(d(),p("span",Oe,[l(b,{icon:["fas","calendar-alt"]})])):s("",!0)],2)):s("",!0),m.collapsed==!1?(d(),p("span",Re,[l(k,{class:"bg-success clickable",title:"Zeitladen-Plan duplizieren",onClick:e[1]||(e[1]=B(g=>t.copyPlan(),["stop"]))},{default:a(()=>[l(b,{icon:["fas","copy"]})]),_:1}),l(k,{class:"bg-danger clickable ml-1",title:"Zeitladen-Plan löschen",onClick:e[2]||(e[2]=B(g=>t.removePlanModal(),["stop"]))},{default:a(()=>[l(b,{icon:["fas","trash"]})]),_:1})])):s("",!0)]),default:a(()=>[l(V,{modelValue:t.plan.name,"onUpdate:modelValue":e[3]||(e[3]=m=>t.plan.name=m),title:"Bezeichnung"},null,8,["modelValue"]),l(C,{modelValue:t.plan.active,"onUpdate:modelValue":e[4]||(e[4]=m=>t.plan.active=m),title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"]),l(L,{modelValue:t.plan.current,"onUpdate:modelValue":e[5]||(e[5]=m=>t.plan.current=m),title:`Ladestrom${v.dcChargingEnabled?" (AC)":""}`,min:6,max:32,step:1,unit:"A"},null,8,["modelValue","title"]),v.dcChargingEnabled===!0?(d(),f(F,{key:0,title:"Ladeleistung (DC)",unit:"kW",min:0,"model-value":n.ac_current2dc_power(t.plan.dc_current),"onUpdate:modelValue":e[6]||(e[6]=m=>t.plan.dc_current=n.dc_power2ac_current(m))},null,8,["model-value"])):s("",!0),l(C,{modelValue:t.plan.limit.selected,"onUpdate:modelValue":e[7]||(e[7]=m=>t.plan.limit.selected=m),title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"Fahrzeug-SoC"},{buttonValue:"amount",text:"Energie"}]},{help:a(()=>e[16]||(e[16]=[i(" Bestimmt die Art der Grenze für den Ladevorgang. ",-1)])),_:1},8,["modelValue"]),l(L,{modelValue:t.plan.limit.soc,"onUpdate:modelValue":e[8]||(e[8]=m=>t.plan.limit.soc=m),title:"Ziel-SoC für das Fahrzeug",min:5,max:100,step:5,unit:"%"},{help:a(()=>e[17]||(e[17]=[i(" Ladestand des Akku (State of Charge, SoC), bis zu welchem maximal geladen werden soll. ",-1)])),_:1},8,["modelValue"]),l(F,{title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.plan.limit.amount/1e3,"onUpdate:modelValue":e[9]||(e[9]=m=>t.plan.limit.amount=m*1e3)},{help:a(()=>e[18]||(e[18]=[i(" Maximal zu ladende Energie innerhalb des Zeitfensters. Eignet sich immer dann wenn kein SoC zur Verfügung steht. Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zeitladen schon aktiv ist, neu gezählt. ",-1)])),_:1},8,["model-value"]),e[20]||(e[20]=h("hr",null,null,-1)),l(V,{modelValue:t.plan.time[0],"onUpdate:modelValue":e[10]||(e[10]=m=>t.plan.time[0]=m),title:"Zeitpunkt des Ladebeginns",subtype:"time"},null,8,["modelValue"]),l(V,{modelValue:t.plan.time[1],"onUpdate:modelValue":e[11]||(e[11]=m=>t.plan.time[1]=m),title:"Zeitpunkt des Ladeendes",subtype:"time"},null,8,["modelValue"]),l(C,{modelValue:t.plan.frequency.selected,"onUpdate:modelValue":e[12]||(e[12]=m=>t.plan.frequency.selected=m),title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}]},null,8,["modelValue"]),t.plan.frequency.selected=="once"?(d(),f(V,{key:1,modelValue:t.plan.frequency.once[0],"onUpdate:modelValue":e[13]||(e[13]=m=>t.plan.frequency.once[0]=m),title:"Gültig ab",subtype:"date"},null,8,["modelValue"])):s("",!0),t.plan.frequency.selected=="once"?(d(),f(V,{key:2,modelValue:t.plan.frequency.once[1],"onUpdate:modelValue":e[14]||(e[14]=m=>t.plan.frequency.once[1]=m),title:"Gültig bis",subtype:"date",min:t.plan.frequency.once[0]},null,8,["modelValue","min"])):s("",!0),t.plan.frequency.selected=="weekly"?(d(),p("div",Ne,[(d(!0),p(W,null,T(n.weekdays,(m,g)=>(d(),f(C,{key:g,modelValue:t.plan.frequency.weekly[g],"onUpdate:modelValue":_=>t.plan.frequency.weekly[g]=_,title:m,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["modelValue","onUpdate:modelValue","title"]))),128))])):s("",!0),e[21]||(e[21]=h("hr",null,null,-1)),l(C,{modelValue:t.plan.phases_to_use,"onUpdate:modelValue":e[15]||(e[15]=m=>t.plan.phases_to_use=m),title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}]},{help:a(()=>e[19]||(e[19]=[i(' Hier kann eingestellt werden, ob Ladevorgänge mit einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (sog. 1p3p). ',-1)])),_:1},8,["modelValue"])]),_:1,__:[20,21]},8,["title"])],64)}const He=D(Te,[["render",Ie],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/ChargeTemplateTimeChargingPlan.vue"]]);x.add(re,X,j,G,J,H,N,I,ue,oe,de,K,Q);const je={name:"OpenwbVehicleConfigView",components:{FontAwesomeIcon:O,FontAwesomeLayers:se,OpenwbVehicleProxy:Ce,ChargeTemplateScheduledChargingPlan:Me,ChargeTemplateTimeChargingPlan:He,VehicleIdWikiHint:he},mixins:[Y],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["sendCommand","save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/dc_charging","openWB/optional/et/provider","openWB/optional/rfid/active","openWB/vehicle/template/ev_template/+","openWB/vehicle/template/charge_template/+","openWB/vehicle/template/charge_template/+/chargemode/scheduled_charging/plans/+","openWB/vehicle/template/charge_template/+/time_charging/plans/+","openWB/vehicle/+/name","openWB/vehicle/+/info","openWB/vehicle/+/charge_template","openWB/vehicle/+/ev_template","openWB/vehicle/+/tag_id","openWB/system/configurable/soc_modules","openWB/vehicle/+/soc_module/general_config","openWB/vehicle/+/soc_module/config"],showVehicleModal:!1,modalVehicleIndex:void 0,showEvTemplateModal:!1,modalEvTemplateIndex:void 0,showChargeTemplateModal:!1,modalChargeTemplateIndex:void 0}},computed:{dcChargingEnabled:{get(){return this.$store.state.mqtt["openWB/optional/dc_charging"]}},vehicleIndexes:{get(){return this.getWildcardIndexList("openWB/vehicle/+/name")}},evTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/ev_template/+")}},evTemplateList:{get(){let n=[];return Object.keys(this.evTemplates).forEach(e=>{let v=parseInt(e.match(/([0-9]+)$/g)[0]),U=this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+v].name;n.push({value:v,text:U})}),n}},chargeTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/charge_template/+")}},chargeTemplateList:{get(){let n=[];return Object.keys(this.chargeTemplates).forEach(e=>{let v=parseInt(e.match(/([0-9]+)$/g)[0]),U=this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+v].name;n.push({value:v,text:U})}),n}},socModuleList:{get(){return this.$store.state.mqtt["openWB/system/configurable/soc_modules"]}}},methods:{updateConfiguration(n,e){console.debug("updateConfiguration",n,e),this.updateState(n,e.value,e.object)},addVehicle(n){n.stopPropagation(),this.$emit("sendCommand",{command:"addVehicle",data:{}})},removeVehicleModal(n,e){n.stopPropagation(),this.modalVehicleIndex=e,this.showVehicleModal=!0},removeVehicle(n,e){this.showVehicleModal=!1,n=="confirm"&&this.$emit("sendCommand",{command:"removeVehicle",data:{id:e}})},getVehicleName(n){return this.$store.state.mqtt["openWB/vehicle/"+n+"/name"]?this.$store.state.mqtt["openWB/vehicle/"+n+"/name"]:"Fahrzeug "+n},getSocDefaultConfiguration(n){const e=this.socModuleList.find(v=>v.value==n);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...JSON.parse(JSON.stringify(e.defaults))}:(console.warn("no default configuration found for soc type!",n),{})},updateSelectedSocModule(n,e){this.updateState("openWB/vehicle/"+n+"/soc_module/config",e,"type"),this.updateState("openWB/vehicle/"+n+"/soc_module/config",this.getSocDefaultConfiguration(e))},addEvTemplate(n,e){n.stopPropagation();let v={};e&&e.match(/([^/]+)$/)&&(v.copy=parseInt(e.match(/([^/]+)$/)[0])),this.$emit("sendCommand",{command:"addEvTemplate",data:v})},removeEvTemplateModal(n,e){n.stopPropagation(),this.modalEvTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.showEvTemplateModal=!0},removeEvTemplate(n,e){this.showEvTemplateModal=!1,n=="confirm"&&this.$emit("sendCommand",{command:"removeEvTemplate",data:{id:e}})},getEvTemplateName(n){return this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+n]?this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+n].name:"Fahrzeug-Profil "+n},addChargeTemplate(n,e){n.stopPropagation();let v={};e&&e.match(/([^/]+)$/)&&(v.copy=parseInt(e.match(/([^/]+)$/)[0])),this.$emit("sendCommand",{command:"addChargeTemplate",data:v})},removeChargeTemplateModal(n,e){this.modalChargeTemplateIndex=e,this.showChargeTemplateModal=!0},removeChargeTemplate(n,e){this.showChargeTemplateModal=!1,n=="confirm"&&this.$emit("sendCommand",{command:"removeChargeTemplate",data:{id:e}})},getChargeTemplateName(n){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+n]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+n].name:"Lade-Profil "+n},addChargeTemplateSchedulePlan(n){this.$emit("sendCommand",{command:"addChargeTemplateSchedulePlan",data:{template:n}})},addChargeTemplateTimeChargingPlan(n){this.$emit("sendCommand",{command:"addChargeTemplateTimeChargingPlan",data:{template:n}})},openActiveChargeModeCard(n,e){this.$nextTick(()=>{["instant_charging","pv_charging","eco_charging","scheduled_charging"].forEach(U=>{const S=`card-${n}-${U}`,t=this.$refs[S],y=Array.isArray(t)?t[0]:t;y&&(y.isCollapsed=U!==e)})})}}},Je={class:"vehicleConfig"},Ge={name:"vehicleConfigForm"},Qe={key:0},Xe={key:1},Ye={key:2},$e={key:3},Ke={key:0},en={key:1},nn={key:0},tn={key:0},ln={key:1},an={key:0},rn={key:0},un={key:3},on={key:0},dn={key:1},sn={key:0},mn={key:0},gn={key:1};function pn(n,e,v,U,S,t){const y=c("openwb-base-modal-dialog"),b=c("font-awesome-icon"),k=c("openwb-base-avatar"),V=c("openwb-base-alert"),C=c("openwb-base-text-input"),L=c("openwb-base-select-input"),F=c("openwb-base-array-input"),q=c("vehicle-id-wiki-hint"),m=c("openwb-base-button-group-input"),g=c("openwb-base-heading"),_=c("openwb-base-number-input"),R=c("openwb-vehicle-proxy"),E=c("openwb-base-card"),$=c("font-awesome-layers"),P=c("openwb-base-range-input"),ne=c("charge-template-scheduled-charging-plan"),te=c("charge-template-time-charging-plan"),le=c("openwb-base-submit-buttons");return d(),p(W,null,[l(y,{show:S.showVehicleModal,title:"Fahrzeug löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=r=>t.removeVehicle(r,S.modalVehicleIndex))},{default:a(()=>[i(' Wollen Sie das Fahrzeug "'+z(t.getVehicleName(S.modalVehicleIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),l(y,{show:S.showEvTemplateModal,title:"Fahrzeug-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[1]||(e[1]=r=>t.removeEvTemplate(r,S.modalEvTemplateIndex))},{default:a(()=>[i(' Wollen Sie das Fahrzeug-Profil "'+z(t.getEvTemplateName(S.modalEvTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),l(y,{show:S.showChargeTemplateModal,title:"Lade-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[2]||(e[2]=r=>t.removeChargeTemplate(r,S.modalChargeTemplateIndex))},{default:a(()=>[i(' Wollen Sie das Lade-Profil "'+z(t.getChargeTemplateName(S.modalChargeTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),h("div",Je,[h("form",Ge,[l(E,{subtype:"info",collapsible:!0,collapsed:n.$route.params.section!="vehicle"},{header:a(()=>[l(b,{icon:["fas","car"]}),e[8]||(e[8]=i(" Fahrzeuge ",-1))]),actions:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!1?(d(),f(k,{key:0,class:"bg-success clickable",title:"Neues Fahrzeug hinzufügen",onClick:t.addVehicle},{default:a(()=>[l(b,{icon:["fas","plus"]})]),_:1},8,["onClick"])):s("",!0)]),default:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(d(),p("div",Qe,[l(V,{subtype:"info"},{default:a(()=>e[9]||(e[9]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[9]})])):(d(),p("div",Xe,[(d(!0),p(W,null,T(t.vehicleIndexes,r=>(d(),f(E,{key:r,title:t.getVehicleName(r),collapsible:!0,collapsed:!(n.$route.params.section=="vehicle"&&parseInt(n.$route.params.section_index)==r),subtype:"info"},Z({default:a(()=>[l(C,{title:"Bezeichnung","model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/name"],disabled:r===0,"onUpdate:modelValue":o=>n.updateState("openWB/vehicle/"+r+"/name",o)},Z({_:2},[r===0?{name:"help",fn:a(()=>[e[10]||(e[10]=i(" Das Standard-Fahrzeug kann nicht umbenannt werden. ",-1))]),key:"0"}:void 0]),1032,["model-value","disabled","onUpdate:modelValue"]),r!==0?(d(),f(C,{key:0,title:"Fahrzeughersteller ","model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/info"].manufacturer,"onUpdate:modelValue":o=>n.updateState("openWB/vehicle/"+r+"/info",o,"manufacturer")},{help:a(()=>[...e[11]||(e[11]=[i(" Optional: zusätzliche Information für den Systembericht. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])):s("",!0),r!==0?(d(),f(C,{key:1,title:"Fahrzeugmodell","model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/info"].model,"onUpdate:modelValue":o=>n.updateState("openWB/vehicle/"+r+"/info",o,"model")},{help:a(()=>[...e[12]||(e[12]=[i(" Optional: zusätzliche Information für den Systembericht.",-1),h("br",null,null,-1),i(" Nach Möglichkeit auch Angabe des Baujahres, da es durchaus beim Verhalten des Fahrzeugs Unterschiede geben kann. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])):s("",!0),l(V,{subtype:"info"},{default:a(()=>[...e[13]||(e[13]=[i(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ",-1)])]),_:1,__:[13]}),l(L,{title:"Fahrzeug-Profil",options:t.evTemplateList,"model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/ev_template"],"onUpdate:modelValue":o=>n.updateState("openWB/vehicle/"+r+"/ev_template",o)},null,8,["options","model-value","onUpdate:modelValue"]),l(L,{title:"Lade-Profil",options:t.chargeTemplateList,"model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/charge_template"],"onUpdate:modelValue":o=>n.updateState("openWB/vehicle/"+r+"/charge_template",o)},null,8,["options","model-value","onUpdate:modelValue"]),e[24]||(e[24]=h("hr",null,null,-1)),n.$store.state.mqtt["openWB/optional/rfid/active"]===!0&&!v.installAssistantActive?(d(),p("div",Ye,[l(F,{title:"Zugeordnete ID-Tags","model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/tag_id"],"onUpdate:modelValue":o=>n.updateState("openWB/vehicle/"+r+"/tag_id",o)},null,8,["model-value","onUpdate:modelValue"]),l(V,{subtype:"info"},{default:a(()=>[e[14]||(e[14]=i(" Die hier eingetragenen ID-Tags dienen ausschließlich der Fahrzeugzuordnung.",-1)),e[15]||(e[15]=h("br",null,null,-1)),l(q)]),_:1,__:[14,15]}),e[16]||(e[16]=h("hr",null,null,-1))])):s("",!0),l(L,{class:"mb-2",title:"SoC-Modul des Fahrzeugs",options:t.socModuleList,"model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/config"].type,"onUpdate:modelValue":o=>t.updateSelectedSocModule(r,o)},{help:a(()=>[...e[17]||(e[17]=[i(" Mit einem SoC-Modul kann der Ladestand des Fahrzeugs ermittelt und geregelt werden. Z.B. lassen sich unabhängig vom Fahrzeug bestimmte SoC-Werte einstellen, um den Fahrzeugakku zu schonen. Aktuell werden die SoC-Werte mittels der App-Zugangsdaten aus dem Herstellerserver des Fahrzeuges ausgelesen. Zukünftig soll auch eine direkte SoC-Auslesung aus dem Fahrzeug möglich werden (openWB Pro).",-1),h("br",null,null,-1),i(" Die SoC-Abfrage erfolgt automatisch beim Anstecken des Fahrzeuges und zusätzlich über einstellbare Abfrageintervalle während des Ladens und Nichtladens. Die Abfrage kann auch manuell durch Klick auf den Reload-Pfeil auf der Hauptseite ausgelöst werden.",-1),h("br",null,null,-1),i(" Wenn eine Abfrage fehlschlägt, wird noch drei weitere Male im Abstand von 5 Minuten versucht, den SoC abzufragen. Wenn dies nicht erfolgreich ist, wird der SoC auf 0% gesetzt um zu vermeiden, dass ein Auto beim SoC-basierten Laden nicht geladen wird. Die Abfrage erfolgt dann wieder in den oben genannten Intervallen.",-1),h("br",null,null,-1),i(" Da aktuell die SoC-Abfragen über Onlineserver der Fahrzeughersteller laufen, ist infolge möglicher Umstellungen/Wartungen keine 100%-ig sichere SoC-Abfrage garantiert. Auch kann es zu SoC-Abweichungen infolge von zeitlicher Verzögerungen kommen. Hilfestellung erfolgt primär im openWB-Forum. ",-1)])]),_:2},1032,["options","model-value","onUpdate:modelValue"]),n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/config"].type?(d(),p("div",$e,[l(m,{title:"SoC direkt aus Fahrzeug auslesen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/general_config"].use_soc_from_cp,"onUpdate:modelValue":o=>n.updateState("openWB/vehicle/"+r+"/soc_module/general_config",o,"use_soc_from_cp")},{help:a(()=>[...e[18]||(e[18]=[i(" Wenn Ladepunkt und Fahrzeug das direkte Auslesen des SoCs über das Ladekabel unterstützen, wird der SoC nach dem Anstecken aus dem Fahrzeug ausgelesen und während der Ladung berechnet. Das direkte Auslesen des SoC aus dem Fahrzeug ist aktuell nur mit einer openWB Pro möglich. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(g,null,{help:a(()=>[...e[19]||(e[19]=[i(" Einige Hersteller begrenzen die möglichen Abfragen. Sobald ein gewisses Limit in einem Zeitraum überschritten wird, werden weitere Anfragen blockiert. Die Zeitintervalle sollten daher nicht zu klein gewählt werden. ",-1)])]),default:a(()=>[e[20]||(e[20]=i(" Aktualisierung der Fahrzeugdaten ",-1))]),_:1,__:[20]}),l(_,{title:"Während der Ladung",unit:"Min.",min:1,required:"","model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/general_config"].request_interval_charging/60,"onUpdate:modelValue":o=>n.updateState("openWB/vehicle/"+r+"/soc_module/general_config",o*60,"request_interval_charging")},{help:a(()=>[...e[21]||(e[21]=[i(" Der Ladestand des Fahrzeugs (SoC) wird bei einem laufenden Ladevorgang in dem hier eingestellten Intervall in Minuten abgefragt. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(_,{title:"Ohne laufende Ladung",unit:"Min.",min:1,required:"","model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/general_config"].request_interval_not_charging/60,"onUpdate:modelValue":o=>n.updateState("openWB/vehicle/"+r+"/soc_module/general_config",o*60,"request_interval_not_charging")},{help:a(()=>[...e[22]||(e[22]=[i(" Der Ladestand des Fahrzeugs (SoC) wird in dem hier eingestellten Intervall in Minuten abgefragt, falls kein Ladevorgang aktiv ist. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(m,{title:"Nur aktualisieren wenn angesteckt",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/general_config"].request_only_plugged,"onUpdate:modelValue":o=>n.updateState("openWB/vehicle/"+r+"/soc_module/general_config",o,"request_only_plugged")},{help:a(()=>[...e[23]||(e[23]=[i(' Wird hier "Ja" ausgewählt, dann wird der Ladestand des Fahrzeugs nur abgefragt, wenn das Ladekabel angesteckt ist. ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(R,{"vehicle-id":r,vehicle:n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/config"],"onUpdate:configuration":o=>t.updateConfiguration("openWB/vehicle/"+r+"/soc_module/config",o)},null,8,["vehicle-id","vehicle","onUpdate:configuration"])])):s("",!0)]),_:2},[r!==0?{name:"actions",fn:a(o=>[o.collapsed?s("",!0):(d(),f(k,{key:0,class:"bg-danger clickable",title:"Fahrzeug löschen",onClick:u=>t.removeVehicleModal(u,r)},{default:a(()=>[l(b,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}:void 0]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),e[84]||(e[84]=h("hr",{class:"border-secondary"},null,-1)),l(g,null,{default:a(()=>e[25]||(e[25]=[i("Profile",-1)])),_:1,__:[25]}),l(E,{collapsible:!0,collapsed:!0},{header:a(()=>[l($,{class:"fa-lg"},{default:a(()=>[l(b,{icon:["far","file"]}),l(b,{icon:["fas","car"],transform:"shrink-8"})]),_:1}),e[26]||(e[26]=i(" Fahrzeug-Profile ",-1))]),actions:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!1?(d(),f(k,{key:0,class:"bg-success clickable",title:"Neues Fahrzeug-Profil hinzufügen",onClick:t.addEvTemplate},{default:a(()=>[l(b,{icon:["fas","plus"]})]),_:1},8,["onClick"])):s("",!0)]),default:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(d(),p("div",Ke,[l(V,{subtype:"info"},{default:a(()=>e[27]||(e[27]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[27]})])):(d(),p("div",en,[l(V,{subtype:"info"},{default:a(()=>e[28]||(e[28]=[i(" Ein anderes Fahrzeug-Profil wird erst ",-1),h("span",{class:"text-uppercase font-weight-bold"}," nach dem Abstecken ",-1),i(" übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ",-1)])),_:1,__:[28]}),(d(!0),p(W,null,T(t.evTemplates,(r,o)=>(d(),f(E,{key:o,title:r.name?r.name:o,collapsible:!0,collapsed:!0},Z({default:a(()=>[l(C,{title:"Bezeichnung","model-value":r.name,disabled:o.endsWith("/0"),"onUpdate:modelValue":u=>n.updateState(o,u,"name")},Z({_:2},[o.endsWith("/0")?{name:"help",fn:a(()=>[e[29]||(e[29]=i(" Das Standard-Profil kann nicht umbenannt werden. ",-1))]),key:"0"}:void 0]),1032,["model-value","disabled","onUpdate:modelValue"]),l(g,null,{default:a(()=>[...e[30]||(e[30]=[i(" Angaben zur Batterie ",-1)])]),_:1,__:[30]}),l(_,{title:"Kapazität der Batterie",unit:"kWh",min:1,step:1,required:"","model-value":r.battery_capacity/1e3,"onUpdate:modelValue":u=>n.updateState(o,u*1e3,"battery_capacity")},{help:a(()=>[...e[31]||(e[31]=[i(" Angabe der Netto-Kapazität der Fahrzeugbatterie. Dient zur Berechnung des manuellen SoC und der geladenen Reichweite. Die Netto-Kapazität unterscheidet sich meist von den Angaben der Fahrzeughersteller. So besitzt ein Tesla Model S 90 z. B. nur ca. 83kWh und nicht die durch die Typenbezeichnung suggerierten 90kWh. Andere Hersteller begrenzen die nutzbare Kapazität absichtlich, um eine höhere Lebensdauer der Akkus zu erreichen. Gängig sind eine Drosselung auf 90% der angegebenen Brutto-Kapazität. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),v.installAssistantActive?s("",!0):(d(),p("div",tn,[l(_,{title:"Wirkungsgrad der Ladeelektronik",unit:"%",min:1,max:100,required:"","model-value":r.efficiency,"onUpdate:modelValue":u=>n.updateState(o,u,"efficiency")},{help:a(()=>[...e[32]||(e[32]=[i(" Durch Verluste in der Ladeelektronik (z. B. Umwandlung Wechselspannung in Gleichspannung) gelangt nicht die komplette Energie, welche durch den Zähler in der Wallbox gemessen wird, in den Akku des Fahrzeugs. Der anzugebende Wert liegt bei gängigen Fahrzeugen im Bereich 90-95%. Eine Ausnahme stellt der Zoe dar, dessen Chameleon-Lader je nach Modellversion und freigegebener Leistung der Wallbox teilweise nur auf ca. 50% kommt.",-1),h("br",null,null,-1),i(" Liegen die Angaben der Wallbox und des Fahrzeugs nach der Ladung mehrere Prozent auseinander, dann kann mit dieser Einstellung eine Feinabstimmung erfolgen: ",-1),h("br",null,null,-1),i(" SoC an der Wallbox zu hoch: Wirkungsgrad um ein paar Prozent reduzieren",-1),h("br",null,null,-1),i(" SoC an der Wallbox zu gering: Wirkungsgrad um ein paar Prozent erhöhen",-1),h("br",null,null,-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])])),l(_,{title:"Durchschnittsverbrauch",unit:"kWh / 100km",min:1,step:.1,required:"","model-value":r.average_consump/1e3,"onUpdate:modelValue":u=>n.updateState(o,u*1e3,"average_consump")},null,8,["model-value","onUpdate:modelValue"]),t.dcChargingEnabled===!0?(d(),p("div",ln,[l(g,null,{default:a(()=>[...e[33]||(e[33]=[i(" Angaben zur Ladeleistung (DC) ",-1)])]),_:1,__:[33]}),l(_,{title:"Mindestleistung",min:0,unit:"kW","model-value":n.ac_current2dc_power(r.dc_min_current),"onUpdate:modelValue":u=>n.updateState(o,n.dc_power2ac_current(u),"dc_min_current")},null,8,["model-value","onUpdate:modelValue"]),l(_,{title:"Maximalleistung",unit:"kW","model-value":n.ac_current2dc_power(r.dc_max_current),"onUpdate:modelValue":u=>n.updateState(o,n.dc_power2ac_current(u),"dc_max_current")},null,8,["model-value","onUpdate:modelValue"])])):s("",!0),l(g,null,{default:a(()=>[e[34]||(e[34]=i(" Angaben zum Ladestrom ",-1)),t.dcChargingEnabled===!0?(d(),p("span",an," (AC) ")):s("",!0)]),_:1,__:[34]}),l(P,{title:"Mindeststrom",min:6,max:16,step:1,unit:"A","model-value":r.min_current,"onUpdate:modelValue":u=>n.updateState(o,u,"min_current")},null,8,["model-value","onUpdate:modelValue"]),l(P,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":r.max_current_single_phase,"onUpdate:modelValue":u=>n.updateState(o,u,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),l(P,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":r.max_current_multi_phases,"onUpdate:modelValue":u=>n.updateState(o,u,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),l(_,{title:"Erlaubte Stromabweichung",step:.1,min:0,max:5,unit:"A","model-value":r.nominal_difference,"onUpdate:modelValue":u=>n.updateState(o,u,"nominal_difference")},{help:a(()=>[...e[35]||(e[35]=[i(" In manchen Lademodi, z.B. bei der automatischen Phasenumschaltung, wird geprüft, ob das Fahrzeug mit der vorgegebenen Stromstärke lädt. Manche Fahrzeuge laden nicht exakt mit der vorgegebenen Stromstärke. Die erlaubte Abweichung kann hier eingestellt werden. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(g,null,{default:a(()=>[e[36]||(e[36]=i(" Angaben zur Handhabung von Phasen ",-1)),t.dcChargingEnabled===!0?(d(),p("span",rn," (AC) ")):s("",!0)]),_:1,__:[36]}),l(m,{title:"Unterstützte Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":r.max_phases,"onUpdate:modelValue":u=>n.updateState(o,u,"max_phases")},{help:a(()=>[...e[37]||(e[37]=[i(" Anzahl der Phasen, die der Fahrzeuglader (s.g. OBC - OnboardCharger) verwendet. Plugin-Hybride nutzen meist nur eine Phase, reine E-Autos meist 3, manche nur 2 Phasen. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(m,{title:"CP-Unterbrechung",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.control_pilot_interruption,"onUpdate:modelValue":u=>n.updateState(o,u,"control_pilot_interruption")},{help:a(()=>[...e[38]||(e[38]=[i(' Erläuterung siehe "Konfiguration - Ladepunkte" -> Hardware-Optionen ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),r.control_pilot_interruption?(d(),f(_,{key:2,title:"Dauer der CP-Unterbrechung",min:4,step:1,unit:"s","model-value":r.control_pilot_interruption_duration,"onUpdate:modelValue":u=>n.updateState(o,u,"control_pilot_interruption_duration")},null,8,["model-value","onUpdate:modelValue"])):s("",!0),l(m,{title:"Phasenumschaltung blockieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.prevent_phase_switch,"onUpdate:modelValue":u=>n.updateState(o,u,"prevent_phase_switch")},{help:a(()=>[...e[39]||(e[39]=[i(' Erläuterung zu 1p3p siehe "Ladeeinstellungen" ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(m,{title:"Ladung aktiv halten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.prevent_charge_stop,"onUpdate:modelValue":u=>n.updateState(o,u,"prevent_charge_stop")},{help:a(()=>[...e[40]||(e[40]=[i(" Der Ladevorgang wird in den Lademodi PV- und Zielladen nach Ladebeginn nicht unterbrochen, selbst wenn nicht mehr genug Überschuss vorhanden ist. Diese Einstellung sollte bei Fahrzeugen aktiviert werden, die nach einer Ladungsunterbrechung keine Ladung mehr starten. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(_,{title:"Pause bei Phasenumschaltung",unit:"s",min:2,step:1,required:"","model-value":r.phase_switch_pause,"onUpdate:modelValue":u=>n.updateState(o,u,"phase_switch_pause")},null,8,["model-value","onUpdate:modelValue"]),v.installAssistantActive?s("",!0):(d(),p("div",un,[l(_,{title:"Mindestzeit zwischen Umschaltungen",unit:"s",min:2,step:1,required:"","model-value":r.keep_charge_active_duration,"onUpdate:modelValue":u=>n.updateState(o,u,"keep_charge_active_duration")},{help:a(()=>[...e[41]||(e[41]=[i(" Manche Fahrzeuge benötigen nach der Umschaltung einige Zeit, bis sie mit der vorgegebenen Phasenzahl laden. In dieser Zeit wird keine neue Phasenumschaltung angestoßen. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])]))]),_:2},[n.$store.state.mqtt["openWB/general/extern"]===!1?{name:"actions",fn:a(u=>[u.collapsed?s("",!0):(d(),p("span",nn,[l(k,{class:"bg-success clickable",title:"Fahrzeug-Profil duplizieren",onClick:A=>t.addEvTemplate(A,o)},{default:a(()=>[l(b,{icon:["fas","copy"]})]),_:2},1032,["onClick"]),o.endsWith("/0")?s("",!0):(d(),f(k,{key:0,class:"bg-danger clickable ml-1",title:"Fahrzeug-Profil löschen",onClick:A=>t.removeEvTemplateModal(A,o)},{default:a(()=>[l(b,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]))]),key:"0"}:void 0]),1032,["title"]))),128))]))]),_:1}),l(E,{collapsible:!0,collapsed:n.$route.params.section!="charge_template"},{header:a(()=>[l($,{class:"fa-lg"},{default:a(()=>[l(b,{icon:["far","file"]}),l(b,{icon:["fas","plug"],transform:"shrink-8"})]),_:1}),e[42]||(e[42]=i(" Lade-Profile ",-1))]),actions:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!1?(d(),f(k,{key:0,class:"bg-success clickable",title:"Neues Lade-Profil hinzufügen",onClick:t.addChargeTemplate},{default:a(()=>[l(b,{icon:["fas","plus"]})]),_:1},8,["onClick"])):s("",!0)]),default:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(d(),p("div",on,[l(V,{subtype:"info"},{default:a(()=>e[43]||(e[43]=[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[43]})])):(d(),p("div",dn,[(d(!0),p(W,null,T(t.chargeTemplates,(r,o)=>(d(),f(E,{key:o,title:r.name?r.name:o,collapsible:!0,collapsed:!(n.$route.params.section=="charge_template"&&parseInt(n.$route.params.section_index)==r.id)},{actions:a(u=>[u.collapsed?s("",!0):(d(),p("span",sn,[l(k,{class:"bg-success clickable",title:"Lade-Profil duplizieren",onClick:A=>t.addChargeTemplate(A,o)},{default:a(()=>[l(b,{icon:["fas","copy"]})]),_:2},1032,["onClick"]),o.endsWith("/0")?s("",!0):(d(),f(k,{key:0,class:"bg-danger clickable ml-1",title:"Lade-Profil löschen",onClick:B(A=>t.removeChargeTemplateModal(A,r.id),["stop"])},{default:a(()=>[l(b,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]))]),default:a(()=>[l(C,{title:"Bezeichnung","model-value":r.name,disabled:o.endsWith("/0"),"onUpdate:modelValue":u=>n.updateState(o,u,"name")},Z({_:2},[o.endsWith("/0")?{name:"help",fn:a(()=>[e[44]||(e[44]=i(" Das Standard-Profil kann nicht umbenannt werden. ",-1))]),key:"0"}:void 0]),1032,["model-value","disabled","onUpdate:modelValue"]),l(g,null,{default:a(()=>[...e[45]||(e[45]=[i(" Allgemeine Optionen ",-1)])]),_:1,__:[45]}),l(m,{title:"Aktiver Lademodus",buttons:[{buttonValue:"instant_charging",text:"Sofort",class:"btn-outline-danger"},{buttonValue:"pv_charging",text:"PV",class:"btn-outline-success"},{buttonValue:"scheduled_charging",text:"Ziel",class:"btn-outline-primary"},{buttonValue:"eco_charging",text:"Eco",class:"btn-outline-secondary"},{buttonValue:"stop",text:"Stop",class:"btn-outline-dark"}],"model-value":r.chargemode.selected,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.selected"),onButtonClick:u=>t.openActiveChargeModeCard(o,u)},{help:a(()=>[...e[46]||(e[46]=[i(" Diese Einstellung entspricht dem gewählten Lademodus auf der Hauptseite und ist aktiv, wenn ein zugehöriges Fahrzeug angesteckt ist.",-1),h("br",null,null,-1),i(" Die zur Verfügung stehende Leistung wird intern anhand folgender Prioritätenliste auf die Fahrzeuge bzw. Ladepunkte verteilt:",-1),h("br",null,null,-1),h("ol",null,[h("li",null,"Ziel (Sofortladen) mit Priorität"),h("li",null,"Ziel (Sofortladen)"),h("li",null,"Zeit mit Priorität"),h("li",null,"Zeit"),h("li",null,"Sofort mit Priorität"),h("li",null,"Sofort"),h("li",null,"Eco (Min-Anteil) mit Priorität"),h("li",null,"Eco (Min-Anteil)"),h("li",null,"PV (Min-Anteil) mit Priorität"),h("li",null,"PV (Min-Anteil)"),h("li",null,"Ziel (PV) mit Priorität"),h("li",null,"Ziel (PV)"),h("li",null,"Eco (PV-Anteil) mit Priorität"),h("li",null,"Eco (PV-Anteil)"),h("li",null,"PV (PV-Anteil) mit Priorität"),h("li",null,"PV (PV-Anteil)")],-1)])]),_:2},1032,["model-value","onUpdate:modelValue","onButtonClick"]),v.installAssistantActive?s("",!0):(d(),p("div",mn,[l(m,{title:"Priorität",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.prio,"onUpdate:modelValue":u=>n.updateState(o,u,"prio")},{help:a(()=>[...e[47]||(e[47]=[i(" Die Ladefreigabe mit dem jeweils eingestellten Mindeststrom erfolgt für alle Fahrzeuge, soweit die verfügbare Leistung ausreicht. Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar. Erst wenn alle priorisierten Fahrzeuge die maximale Ladeleistung bekommen und noch zusätzlicher Überschuss vorhanden ist, wird auch für Fahrzeuge ohne Priorität mehr Leistung freigegeben. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(m,{title:"Standard nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.load_default,"onUpdate:modelValue":u=>n.updateState(o,u,"load_default")},{help:a(()=>[...e[48]||(e[48]=[i(" Falls diese Option aktiviert ist, wird der betroffene Ladepunkt nach dem Abstecken auf das Standard Fahrzeug zurückgesetzt. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),e[50]||(e[50]=h("hr",null,null,-1)),l(g,null,{default:a(()=>[...e[49]||(e[49]=[i("Einstellungen der Lademodi",-1)])]),_:1,__:[49]})])),l(E,{ref_for:!0,ref:`card-${o}-instant_charging`,collapsible:!0,collapsed:!0,subtype:"secondary"},{header:a(()=>[...e[51]||(e[51]=[i(" Sofort ",-1)])]),default:a(()=>[l(P,{title:`Soll-Ladestrom${t.dcChargingEnabled?" (AC)":""}`,min:6,max:32,step:1,unit:"A","model-value":r.chargemode.instant_charging.current,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.instant_charging.current")},null,8,["title","model-value","onUpdate:modelValue"]),t.dcChargingEnabled===!0?(d(),f(_,{key:0,title:"Soll-Ladeleistung (DC)",unit:"kW",min:0,"model-value":n.ac_current2dc_power(r.chargemode.instant_charging.dc_current),"onUpdate:modelValue":u=>n.updateState(o,n.dc_power2ac_current(u),"chargemode.instant_charging.dc_current")},null,8,["model-value","onUpdate:modelValue"])):s("",!0),l(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":r.chargemode.instant_charging.phases_to_use,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.instant_charging.phases_to_use")},{help:a(()=>[...e[52]||(e[52]=[i(' Hier kann eingestellt werden, ob Ladevorgänge mit einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(m,{title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"Fahrzeug-SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":r.chargemode.instant_charging.limit.selected,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.instant_charging.limit.selected")},{help:a(()=>[...e[53]||(e[53]=[i(" Sofortladen kann ohne Fahrzeug-SoC-Begrenzung (Aus), mit Begrenzung des Fahrzeug-SoC (SoC) bei konfiguriertem SoC-Auslesemodul oder mittels Vorgabe eine gewünschten Energiemenge in kWh (Energie) genutzt werden. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(P,{title:"SoC-Limit für das Fahrzeug",min:5,max:100,step:5,unit:"%","model-value":r.chargemode.instant_charging.limit.soc,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.instant_charging.limit.soc")},{help:a(()=>[...e[54]||(e[54]=[i(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(_,{title:"Energie-Limit",unit:"kWh",min:1,step:1,"model-value":r.chargemode.instant_charging.limit.amount/1e3,"onUpdate:modelValue":u=>n.updateState(o,u*1e3,"chargemode.instant_charging.limit.amount")},{help:a(()=>[...e[55]||(e[55]=[i(" Die geladene Energiemenge wird nach dem Anstecken neu gezählt. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1536),l(E,{ref_for:!0,ref:`card-${o}-pv_charging`,collapsible:!0,collapsed:!0,subtype:"secondary"},{header:a(()=>[...e[56]||(e[56]=[i(" PV ",-1)])]),default:a(()=>[l(P,{title:`Minimaler Dauerstrom${t.dcChargingEnabled?" (AC)":""}`,min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":r.chargemode.pv_charging.min_current,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.pv_charging.min_current")},{help:a(()=>[...e[57]||(e[57]=[i(' Hier kann eine Stromstärke eingestellt werden, mit dem unabhängig vom vorhandenen Überschuss durchgeladen wird. Hierdurch wird z.B. an Tagen mit häufigem Sonne/Wolken-Wechsel oder mit nur wenig PV-Ertrag ein Laden ohne Unterbrechung ermöglicht. Folglich kann auch Netzbezug für das Fahrzeugladen entstehen, weshalb der niedrigste Stromwert empfohlen wird. Diese Einstellung entspricht weitestgehend dem Lademodus "Min+PV" der Version 1.x. ',-1)])]),_:2},1032,["title","model-value","onUpdate:modelValue"]),t.dcChargingEnabled===!0?(d(),f(_,{key:0,title:"Minimale Dauerleistung (DC)",unit:"kW",min:0,"model-value":n.ac_current2dc_power(r.chargemode.pv_charging.dc_min_current),"onUpdate:modelValue":u=>n.updateState(o,n.dc_power2ac_current(u),"chargemode.pv_charging.dc_min_current")},{help:a(()=>[...e[58]||(e[58]=[i(" Hier kann eine Leistung eingestellt werden, mit dem unabhängig vom vorhandenen Überschuss durchgeladen wird. Hierdurch wird z.B. an Tagen mit häufigem Sonne/Wolken-Wechsel oder mit nur wenig PV-Ertrag ein Laden ohne Unterbrechung ermöglicht. Folglich kann auch Netzbezug für das Fahrzeugladen entstehen, weshalb der niedrigste Leistungswert empfohlen wird. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])):s("",!0),l(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":r.chargemode.pv_charging.phases_to_use,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.pv_charging.phases_to_use")},{help:a(()=>[...e[59]||(e[59]=[i(' Hier kann eingestellt werden, ob Ladevorgänge mit einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um den verfügbaren Überschuss in die Fahrzeuge zu laden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen einer und mehreren Phasen (sog. 1p3p). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(m,{title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"Fahrzeug-SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":r.chargemode.pv_charging.limit.selected,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.pv_charging.limit.selected")},{help:a(()=>[...e[60]||(e[60]=[i(" PV kann ohne Fahrzeug-SoC-Begrenzung (Aus), mit Begrenzung des Fahrzeug-SoC (SoC) bei konfiguriertem SoC-Auslesemodul oder mittels Vorgabe eine gewünschten Energiemenge in kWh (Energie) genutzt werden. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(P,{title:"SoC-Limit für das Fahrzeug",min:5,max:100,step:5,unit:"%","model-value":r.chargemode.pv_charging.limit.soc,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.pv_charging.limit.soc")},{help:a(()=>[...e[61]||(e[61]=[i(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(_,{title:"Energie-Limit",unit:"kWh",min:1,step:1,"model-value":r.chargemode.pv_charging.limit.amount/1e3,"onUpdate:modelValue":u=>n.updateState(o,u*1e3,"chargemode.pv_charging.limit.amount")},{help:a(()=>[...e[62]||(e[62]=[i(" Die geladene Energiemenge wird nach dem Anstecken neu gezählt. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(P,{title:"Mindest-SoC für das Fahrzeug",min:0,max:19,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":r.chargemode.pv_charging.min_soc,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.pv_charging.min_soc")},{help:a(()=>[...e[63]||(e[63]=[i(' Liegt der Fahrzeug-Ladestand (SoC) unter dem hier eingestellten Wert, dann wird bis zum Erreichen dieses Wertes mit dem eingestellten "Mindest-SoC-Strom" geladen. Dies dient der Sicherstellung eines "Mindest-SoC" - z.B. für eine immer abzudeckende Fahrzeugreichweite - auch wenn kein oder zu wenig Überschuss verfügbar ist (=> Laden mit anteilig Netzstrom). Nach dem Erreichen des "Mindest-SoC" wird bei verfügbarem Überschuss geladen.',-1),h("br",null,null,-1),i(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(P,{title:`Mindest-SoC-Strom${t.dcChargingEnabled?" (AC)":""}`,min:6,max:32,step:1,unit:"A","model-value":r.chargemode.pv_charging.min_soc_current,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.pv_charging.min_soc_current")},{help:a(()=>[...e[64]||(e[64]=[i(' Wird der oben eingestellte "Mindest-SoC" des Fahrzeuges unterschritten, dann wird unabhängig vom Überschuss ein Ladevorgang mit dem hier festgelegten "Mindest-SoC-Strom" initiiert (ggf. mit anteilig Netzbezug). ',-1)])]),_:2},1032,["title","model-value","onUpdate:modelValue"]),t.dcChargingEnabled===!0?(d(),f(_,{key:1,title:"Mindest-SoC-Leistung (DC)",unit:"kW",min:0,"model-value":n.ac_current2dc_power(r.chargemode.pv_charging.dc_min_soc_current),"onUpdate:modelValue":u=>n.updateState(o,n.dc_power2ac_current(u),"chargemode.pv_charging.dc_min_soc_current")},{help:a(()=>[...e[65]||(e[65]=[i(' Wird der oben eingestellte "Mindest-SoC" des Fahrzeuges unterschritten, dann wird unabhängig vom Überschuss ein Ladevorgang mit der hier festgelegten "Mindest-SoC-Leistung" initiiert (ggf. mit anteilig Netzbezug). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])):s("",!0),l(m,{title:"Anzahl Phasen Mindest-SoC",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":r.chargemode.pv_charging.phases_to_use_min_soc,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.pv_charging.phases_to_use_min_soc")},{help:a(()=>[...e[66]||(e[66]=[i(' Hier kann eingestellt werden, ob Ladevorgänge mit einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen einer und mehreren Phasen (sog. 1p3p). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(m,{title:"Einspeisegrenze beachten",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.chargemode.pv_charging.feed_in_limit,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.pv_charging.feed_in_limit")},{help:a(()=>[...e[67]||(e[67]=[i(' Erläuterung siehe "Ladeeinstellungen" -> "PV-Laden" -> "Regelparameter" -> "Regelpunkt Einspeisegrenze" ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1536),l(E,{ref_for:!0,ref:`card-${o}-eco_charging`,collapsible:!0,collapsed:!0,subtype:"secondary"},{header:a(()=>[...e[68]||(e[68]=[i(" Eco ",-1)])]),default:a(()=>[l(g,null,{help:a(()=>[...e[69]||(e[69]=[i(" Im Eco-Modus wird eine Preisgrenze vorgegeben. Wenn der Strompreis unter dieser Grenze liegt, wird mit dem eingestellten Ladestrom geladen und -falls vorhanden- zusätzlich mit dem Überschuss. Wenn die Preisgrenze überschritten wird, wird nur mit Überschuss geladen, wenn dieser vorhanden ist. ",-1)])]),default:a(()=>[e[70]||(e[70]=i("Arbeitsweise von Eco ",-1))]),_:1,__:[70]}),l(P,{title:`Minimaler Dauerstrom unter der Preisgrenze${t.dcChargingEnabled?" (AC)":""}`,min:6,max:32,step:1,unit:"A","model-value":r.chargemode.eco_charging.current,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.eco_charging.current")},null,8,["title","model-value","onUpdate:modelValue"]),t.dcChargingEnabled===!0?(d(),f(_,{key:0,title:"Minimale Dauerleistung unter der Preisgrenze (DC)",unit:"kW",min:0,"model-value":n.ac_current2dc_power(r.chargemode.eco_charging.dc_current),"onUpdate:modelValue":u=>n.updateState(o,n.dc_power2ac_current(u),"chargemode.eco_charging.dc_current")},null,8,["model-value","onUpdate:modelValue"])):s("",!0),l(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":r.chargemode.eco_charging.phases_to_use,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.eco_charging.phases_to_use")},{help:a(()=>[...e[71]||(e[71]=[i(' Hier kann eingestellt werden, ob Ladevorgänge mit einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um den verfügbaren Überschuss in die Fahrzeuge zu laden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen einer und mehreren Phasen (sog. 1p3p). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(m,{title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"Fahrzeug-SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":r.chargemode.eco_charging.limit.selected,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.eco_charging.limit.selected")},{help:a(()=>[...e[72]||(e[72]=[i(" Eco kann ohne Fahrzeug-SoC-Begrenzung (Aus), mit Begrenzung des Fahrzeug-SoC (SoC) bei konfiguriertem SoC-Auslesemodul oder mittels Vorgabe eine gewünschten Energiemenge in kWh (Energie) genutzt werden. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(P,{title:"SoC-Limit für das Fahrzeug",min:5,max:100,step:5,unit:"%","model-value":r.chargemode.eco_charging.limit.soc,"onUpdate:modelValue":u=>n.updateState(o,u,"chargemode.eco_charging.limit.soc")},{help:a(()=>[...e[73]||(e[73]=[i(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(_,{title:"Energie-Limit",unit:"kWh",min:1,step:1,"model-value":r.chargemode.eco_charging.limit.amount/1e3,"onUpdate:modelValue":u=>n.updateState(o,u*1e3,"chargemode.eco_charging.limit.amount")},{help:a(()=>[...e[74]||(e[74]=[i(" Die geladene Energiemenge wird nach dem Anstecken neu gezählt. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),!n.$store.state.mqtt["openWB/optional/et/provider"]||!n.$store.state.mqtt["openWB/optional/et/provider"].type?(d(),f(V,{key:1,subtype:"warning"},{default:a(()=>[...e[75]||(e[75]=[i(" Bitte in den übergreifenden Ladeeinstellungen einen Strompreis-Anbieter konfigurieren. Ohne Strompreis-Anbieter wird im Modus Eco nur geladen, wenn Überschuss vorhanden ist. ",-1)])]),_:1,__:[75]})):s("",!0),l(_,{title:"Preisgrenze für strompreisbasiertes Laden",min:"-80",max:"80",step:"0.01",precision:2,unit:"ct/kWh","model-value":r.chargemode.eco_charging.max_price*1e5,"onUpdate:modelValue":u=>n.updateState(o,parseFloat((u/1e5).toFixed(7)),"chargemode.eco_charging.max_price")},null,8,["model-value","onUpdate:modelValue"])]),_:2},1536),l(E,{ref_for:!0,ref:`card-${o}-scheduled_charging`,collapsible:!0,collapsed:!0,subtype:"secondary"},{header:a(()=>[...e[76]||(e[76]=[i(" Ziel ",-1)])]),default:a(()=>[l(g,null,{actions:a(()=>[l(k,{class:"bg-success clickable",title:"Neuen Zielladen-Plan hinzufügen",onClick:B(u=>t.addChargeTemplateSchedulePlan(r.id),["stop"])},{default:a(()=>[l(b,{icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:a(()=>[...e[77]||(e[77]=[i(' Im Lademodus "Zielladen" wird der Ladestrom so angepasst, dass das Fahrzeug zum angegebenen Zeitpunkt den eingestellten SoC bzw. die einzuladende Energiemenge erreicht. Anhand des vorgegebenen Ladestroms wird der Zeitpunkt berechnet, an dem die Ladung spätestens starten muss.',-1),h("br",null,null,-1),i(' Ist der berechnete Zeitpunkt des Ladestarts noch nicht erreicht, wird mit Überschuss geladen. Auch nach Erreichen des Ziel-SoCs wird mit Überschuss geladen, solange bis das "SoC-Limit für das Fahrzeug" erreicht wird.',-1),h("br",null,null,-1),i(" Es wird nach den Vorgaben des Zeitplans geladen, dessen Zieltermin am nächsten liegt. Ist der Zielzeitpunkt vorbei, wird solange geladen bis, das Ziel erreicht oder das Auto abgesteckt wird. Wenn der Ziel-Termin des nächsten Plans innerhalb der nächsten 12 Stunden liegt, wird auf den nächsten Plan umgeschaltet. ",-1)])]),default:a(()=>[e[78]||(e[78]=i(" Zielladepläne ",-1))]),_:2,__:[78]},1024),r.chargemode.scheduled_charging.plans.length==0?(d(),f(V,{key:0,subtype:"info"},{default:a(()=>[...e[79]||(e[79]=[i(" Es wurden noch keine Pläne für das Zielladen angelegt. ",-1)])]),_:1,__:[79]})):s("",!0),(d(!0),p(W,null,T(r.chargemode.scheduled_charging.plans,(u,A)=>(d(),f(ne,{key:A,"model-value":u,"template-id":r.id,"dc-charging-enabled":t.dcChargingEnabled,"onUpdate:modelValue":M=>n.updateState(o,M,`chargemode.scheduled_charging.plans.${A}`),onSendCommand:e[3]||(e[3]=M=>n.$emit("sendCommand",M))},null,8,["model-value","template-id","dc-charging-enabled","onUpdate:modelValue"]))),128))]),_:2},1536),v.installAssistantActive?s("",!0):(d(),p("div",gn,[e[83]||(e[83]=h("hr",null,null,-1)),l(m,{title:"Zeitladen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.time_charging.active,"onUpdate:modelValue":u=>n.updateState(o,u,"time_charging.active")},{help:a(()=>[...e[80]||(e[80]=[h("p",null,' Der Lademodus Zeit kann parallel zu einem der anderen Lademodi aktiviert werden. Die Auswahl des Lademodus, der in der Regelung genutzt wird, erfolgt anhand der Übersicht in der Hilfe bei "Aktiver Lademodus". Wenn kein Zeitplan aktiv ist oder das Limit des Zeitplans erreicht wurde, wird der Lademodus verwendet, der bei "Aktiver Lademodus" ausgewählt ist. ',-1),h("p",null," Mit einem Zeitplan kann ein klar abgegrenzter Zeitbereich zum Fahrzeugladen definiert werden. Dies wird häufig genutzt, um einem Fahrzeug kurz vor der Abfahrt Strom anzubieten, damit dessen Vorklimatisierung nicht aus dem Fahrzeugakku, sondern aus der openWB bezogen wird (Enteisung, Vorwärmung, Abkühlung). Nicht von der Vorklimatisierung benötigter Strom erhöht dabei den Fahrzeug-SoC. Um das Stromnetz am Morgen nicht unnötig zu strapazieren, sollte eine moderate Stromvorgabe und ein beschränkter Zeitbereich vorgegeben werden (z.B. max. 10A; 30min - in Übereinstimmung mit den Fahrzeug-App-Vorklimatisierungsvorgaben). ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l(E,{ref_for:!0,ref:`card-${o}-scheduled_charging`,collapsible:!0,collapsed:!0,subtype:"secondary"},{header:a(()=>[...e[81]||(e[81]=[i(" Zeitladen-Pläne ",-1)])]),actions:a(()=>[l(k,{class:"bg-success clickable",title:"Neuen Zeitladen-Plan hinzufügen",onClick:B(u=>t.addChargeTemplateTimeChargingPlan(r.id),["stop"])},{default:a(()=>[l(b,{icon:["fas","plus"]})]),_:2},1032,["onClick"])]),default:a(()=>[(r.time_charging.plans??[]).length==0?(d(),f(V,{key:0,subtype:"info"},{default:a(()=>[...e[82]||(e[82]=[i(" Es wurden noch keine Pläne für das Zeitladen angelegt. ",-1)])]),_:1,__:[82]})):s("",!0),(d(!0),p(W,null,T(r.time_charging.plans??[],(u,A)=>(d(),f(te,{key:A,"model-value":u,"template-id":r.id,"dc-charging-enabled":t.dcChargingEnabled,"onUpdate:modelValue":M=>n.updateState(o,M,`time_charging.plans.${A}`),onSendCommand:e[4]||(e[4]=M=>n.$emit("sendCommand",M))},null,8,["model-value","template-id","dc-charging-enabled","onUpdate:modelValue"]))),128))]),_:2},1536)]))]),_:2},1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),l(le,{"form-name":"vehicleConfigForm",onSave:e[5]||(e[5]=r=>n.$emit("save")),onReset:e[6]||(e[6]=r=>n.$emit("reset")),onDefaults:e[7]||(e[7]=r=>n.$emit("defaults"))})])])],64)}const hn=D(je,[["render",pn],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/VehicleConfig.vue"]]),Vn=Object.freeze(Object.defineProperty({__proto__:null,default:hn},Symbol.toStringTag,{value:"Module"}));export{be as V,hn as a,Vn as b}; diff --git a/web/settings/assets/VehicleConfig-44d8bbb2.js b/web/settings/assets/VehicleConfig-44d8bbb2.js new file mode 100644 index 0000000000..08002d436c --- /dev/null +++ b/web/settings/assets/VehicleConfig-44d8bbb2.js @@ -0,0 +1 @@ +import{l as x,a6 as ae,a7 as ie,F as R,_ as O,S as I,E as H,G as j,an as J,am as G,ah as K,al as Q,aa as X,d as ue,a0 as re,ao as de,R as oe,M as se}from"./vendor-fortawesome-d6ee0a65.js";import{_ as k,C as Y}from"./index-eccf5556.js";import{_ as me}from"./dynamic-import-helper-be004503.js";import{_ as q,u as c,l as o,m as p,x as f,E as a,B as u,F as C,G as t,A as g,a2 as ge,a3 as he,N as y,q as ee,y as F,z as m,M,D as Z}from"./vendor-57e3a63c.js";import{V as pe}from"./VehicleIdWikiHint-714fb4c5.js";const ce={props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},emits:["update:configuration"],methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},be=q(ce,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/VehicleConfigMixin.vue"]]),fe={name:"VehicleConfigFallback",mixins:[be]},ve={class:"vehicle-fallback"},_e={key:1};function Ve(n,e,v,L,S,l){const U=c("openwb-base-alert"),b=c("openwb-base-textarea");return o(),p("div",ve,[Object.keys(n.vehicle.configuration).length==0?(o(),f(U,{key:0,subtype:"info"},{default:a(()=>[u(' Der Fahrzeug-Typ "'+C(n.vehicle.type)+'" bietet keine Einstellungen. ',1)]),_:1})):(o(),p("div",_e,[t(U,{subtype:"warning"},{default:a(()=>[u(' Es wurde keine Konfigurationsseite für den Fahrzeug-Typ "'+C(n.vehicle.type)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),t(b,{title:"Konfiguration",subtype:"json","model-value":n.vehicle.configuration,"onUpdate:modelValue":e[0]||(e[0]=z=>n.updateConfiguration(z,"configuration"))},{help:a(()=>e[1]||(e[1]=[u(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ",-1)])),_:1},8,["model-value"]),t(U,{subtype:"info"},{default:a(()=>[g("pre",null,C(JSON.stringify(n.vehicle.configuration,void 0,2)),1)]),_:1})]))])}const we=q(fe,[["render",Ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleConfigFallback.vue"]]);x.add(ae,ie);const ke={name:"OpenwbVehicleProxy",components:{FontAwesomeIcon:R},props:{vehicleId:{type:Number,required:!0},vehicle:{type:Object,required:!0}},emits:["update:configuration"],methods:{getVehicleComponent(){return console.debug(`loading vehicle: ${this.vehicle.type}`),ge({loader:()=>me(Object.assign({"./aiways/vehicle.vue":()=>k(()=>import("./vehicle-d91cf08c.js"),["assets/vehicle-d91cf08c.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./bmwbc/vehicle.vue":()=>k(()=>import("./vehicle-cb7088f9.js"),["assets/vehicle-cb7088f9.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./cupra/vehicle.vue":()=>k(()=>import("./vehicle-02aaf130.js"),["assets/vehicle-02aaf130.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./evcc/vehicle.vue":()=>k(()=>import("./vehicle-c53d1445.js"),["assets/vehicle-c53d1445.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./evnotify/vehicle.vue":()=>k(()=>import("./vehicle-cb9a9cb5.js"),["assets/vehicle-cb9a9cb5.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./http/vehicle.vue":()=>k(()=>import("./vehicle-d87c0cc9.js"),["assets/vehicle-d87c0cc9.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./json/vehicle.vue":()=>k(()=>import("./vehicle-e8e57114.js"),["assets/vehicle-e8e57114.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./kia/vehicle.vue":()=>k(()=>import("./vehicle-8e08c50a.js"),["assets/vehicle-8e08c50a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./leaf/vehicle.vue":()=>k(()=>import("./vehicle-0d5a824a.js"),["assets/vehicle-0d5a824a.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./manual/vehicle.vue":()=>k(()=>import("./vehicle-d568544e.js"),["assets/vehicle-d568544e.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./mercedeseq/vehicle.vue":()=>k(()=>import("./vehicle-f2cedad6.js"),["assets/vehicle-f2cedad6.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./mqtt/vehicle.vue":()=>k(()=>import("./vehicle-57410994.js"),["assets/vehicle-57410994.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./ovms/vehicle.vue":()=>k(()=>import("./vehicle-42b70938.js"),["assets/vehicle-42b70938.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./psa/vehicle.vue":()=>k(()=>import("./vehicle-3527acb4.js"),["assets/vehicle-3527acb4.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./psacc/vehicle.vue":()=>k(()=>import("./vehicle-355260c2.js"),["assets/vehicle-355260c2.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./renault/vehicle.vue":()=>k(()=>import("./vehicle-4c896303.js"),["assets/vehicle-4c896303.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./skoda/vehicle.vue":()=>k(()=>import("./vehicle-10e7f333.js"),["assets/vehicle-10e7f333.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./smarthello/vehicle.vue":()=>k(()=>import("./vehicle-94d80e22.js"),["assets/vehicle-94d80e22.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./tesla/vehicle.vue":()=>k(()=>import("./vehicle-07456498.js"),["assets/vehicle-07456498.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-axios-89a9dc60.js","assets/index-eccf5556.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./tronity/vehicle.vue":()=>k(()=>import("./vehicle-d6bf9d86.js"),["assets/vehicle-d6bf9d86.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"]),"./vwid/vehicle.vue":()=>k(()=>import("./vehicle-1814a218.js"),["assets/vehicle-1814a218.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/index-eccf5556.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/index-01725f3e.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"])}),`./${this.vehicle.type}/vehicle.vue`),errorComponent:we})},updateConfiguration(n){this.$emit("update:configuration",n)}}};function ze(n,e,v,L,S,l){const U=c("font-awesome-icon"),b=c("openwb-base-alert"),z=c("openwb-base-heading");return o(),p(y,null,[v.vehicle.official?(o(),f(b,{key:0,subtype:"info"},{default:a(()=>[t(U,{icon:["fas","certificate"]}),u(' Das ausgewählte Fahrzeug-Modul "'+C(v.vehicle.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(o(),f(b,{key:1,subtype:"info"},{default:a(()=>[t(U,{icon:["fas","people-group"]}),u(' Das ausgewählte Fahrzeug-Modul "'+C(v.vehicle.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),t(z,null,{default:a(()=>[u(' Einstellungen für SoC-Modul "'+C(v.vehicle.name)+'" ',1)]),_:1}),(o(),f(he(l.getVehicleComponent()),{"vehicle-id":v.vehicleId,vehicle:v.vehicle,"onUpdate:configuration":e[0]||(e[0]=V=>l.updateConfiguration(V))},null,40,["vehicle-id","vehicle"]))],64)}const Ce=q(ke,[["render",ze],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleProxy.vue"]]);x.add(O,I,H,j,J,G,K,Q,X);const Se={name:"VehicleScheduledChargingPlan",components:{FontAwesomeIcon:R},mixins:[Y],props:{modelValue:{type:Object,required:!0},templateId:{type:Number,required:!0},dcChargingEnabled:{type:Boolean,default:!1}},emits:["update:modelValue","sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/optional/et/provider"],showRemoveModal:!1}},computed:{plan(){return this.modelValue}},watch:{plan:{handler(n){this.$emit("update:modelValue",n)},deep:!0}},methods:{copyPlan(){this.$emit("sendCommand",{command:"addChargeTemplateSchedulePlan",data:{template:this.templateId,copy:this.modelValue.id}})},removePlanModal(){this.showRemoveModal=!0},removePlan(n){this.showRemoveModal=!1,n=="confirm"&&this.$emit("sendCommand",{command:"removeChargeTemplateSchedulePlan",data:{template:this.templateId,plan:this.modelValue.id}})}}},Ue={key:0},Ae={key:1},Ee={key:2},Pe={key:3},ye={key:4},Le={key:5},We={key:1},Be={key:5};function Fe(n,e,v,L,S,l){const U=c("openwb-base-modal-dialog"),b=c("font-awesome-icon"),z=c("openwb-base-avatar"),V=c("openwb-base-text-input"),w=c("openwb-base-button-group-input"),W=c("openwb-base-range-input"),T=c("openwb-base-number-input"),D=c("openwb-base-alert"),s=c("openwb-base-card");return o(),p(y,null,[t(U,{show:S.showRemoveModal,title:"Zielladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:l.removePlan},{default:a(()=>[u(' Wollen Sie den Zielladen Zeitplan "'+C(l.plan.name)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),t(s,{title:l.plan.name,collapsible:!0,collapsed:!0},{actions:a(h=>[h.collapsed==!0?(o(),p("span",{key:0,class:ee(["pill clickable",l.plan.active?"bg-success":"bg-danger"]),onClick:e[0]||(e[0]=F(_=>l.plan.active=!l.plan.active,["stop"]))},[l.plan.limit.selected=="soc"?(o(),p("span",Ue,[t(b,{icon:["fas","car-battery"]}),u(" "+C(l.plan.limit.soc_scheduled)+"% ",1)])):m("",!0),l.plan.limit.selected=="amount"?(o(),p("span",Ae,[t(b,{icon:["fas","bolt"]}),u(" "+C(l.plan.limit.amount/1e3)+"kWh ",1)])):m("",!0),t(b,{icon:["fas","clock"]}),u(" "+C(l.plan.time)+" ",1),l.plan.frequency.selected=="once"?(o(),p("span",Ee,[t(b,{icon:["fas","calendar-day"]}),u(" "+C(n.formatDate(l.plan.frequency.once)),1)])):m("",!0),l.plan.frequency.selected=="daily"?(o(),p("span",Pe,[t(b,{icon:["fas","calendar-week"]})])):m("",!0),l.plan.frequency.selected=="weekly"?(o(),p("span",ye,[t(b,{icon:["fas","calendar-alt"]})])):m("",!0),l.plan.et_active?(o(),p("span",Le,[t(b,{icon:["fas","coins"]})])):m("",!0)],2)):m("",!0),h.collapsed==!1?(o(),p("span",We,[t(z,{class:"bg-success clickable ml-1",title:"Zielladen-Plan duplizieren",onClick:e[1]||(e[1]=F(_=>l.copyPlan(),["stop"]))},{default:a(()=>[t(b,{icon:["fas","copy"]})]),_:1}),t(z,{class:"bg-danger clickable ml-1",title:"Zielladen-Plan löschen",onClick:e[2]||(e[2]=F(_=>l.removePlanModal(),["stop"]))},{default:a(()=>[t(b,{icon:["fas","trash"]})]),_:1})])):m("",!0)]),default:a(()=>[t(V,{modelValue:l.plan.name,"onUpdate:modelValue":e[3]||(e[3]=h=>l.plan.name=h),title:"Bezeichnung"},null,8,["modelValue"]),t(w,{modelValue:l.plan.active,"onUpdate:modelValue":e[4]||(e[4]=h=>l.plan.active=h),title:"Zeitpunkt aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"]),t(V,{modelValue:l.plan.time,"onUpdate:modelValue":e[5]||(e[5]=h=>l.plan.time=h),title:"Ziel-Uhrzeit",subtype:"time"},{help:a(()=>e[17]||(e[17]=[u(" Hier ist die gewünschte Uhrzeit einzustellen, zu welcher das Fahrzeug den gewünschten SoC bzw. die zu ladende Energiemenge BEREITS ERREICHT haben soll. ",-1)])),_:1},8,["modelValue"]),t(W,{modelValue:l.plan.current,"onUpdate:modelValue":e[6]||(e[6]=h=>l.plan.current=h),title:`Ladestrom${v.dcChargingEnabled?" (AC)":""}`,min:6,max:32,step:1,unit:"A"},{help:a(()=>e[18]||(e[18]=[u(" Mit dieser Stromstärke wird der Zeitpunkt berechnet, wann die Ladung mit Netzbezug gestartet werden muss. Wird der Ziel-SoC nicht zum angegebenen Termin erreicht, weil z.B. das Auto erst später angesteckt wurde, wird auch mit einer höheren Stromstärke geladen. Um etwas Puffer zu haben, empfiehlt es sich, etwas weniger als die Maximalstromstärke des Fahrzeugs zu wählen. ",-1)])),_:1},8,["modelValue","title"]),v.dcChargingEnabled===!0?(o(),f(T,{key:0,title:"Ladeleistung (DC)",unit:"kW",min:0,"model-value":n.ac_current2dc_power(l.plan.dc_current),"onUpdate:modelValue":e[7]||(e[7]=h=>l.plan.dc_current=n.dc_power2ac_current(h))},null,8,["model-value"])):m("",!0),t(w,{modelValue:l.plan.limit.selected,"onUpdate:modelValue":e[8]||(e[8]=h=>l.plan.limit.selected=h),title:"Ziel",buttons:[{buttonValue:"soc",text:"Fahrzeug-SoC"},{buttonValue:"amount",text:"Energie"}]},{help:a(()=>e[19]||(e[19]=[u(" Bestimmt die Art der Grenze für den Ladevorgang. ",-1)])),_:1},8,["modelValue"]),l.plan.limit.selected=="soc"?(o(),f(W,{key:1,modelValue:l.plan.limit.soc_scheduled,"onUpdate:modelValue":e[9]||(e[9]=h=>l.plan.limit.soc_scheduled=h),title:"Fahrzeug-SoC zum Zielzeitpunkt",min:5,max:100,step:5,unit:"%"},{help:a(()=>e[20]||(e[20]=[u(" SoC, der zum angegebenen Zeitpunkt erreicht werden soll (Ziel-SoC). ",-1)])),_:1},8,["modelValue"])):m("",!0),l.plan.limit.selected=="soc"?(o(),f(W,{key:2,modelValue:l.plan.limit.soc_limit,"onUpdate:modelValue":e[10]||(e[10]=h=>l.plan.limit.soc_limit=h),title:"Fahrzeug-SoC mit Überschuss",min:5,max:100,step:5,unit:"%"},{help:a(()=>e[21]||(e[21]=[u(" Nach Erreichen des Ziel-SoCs wird mit Überschuss weiter geladen, bis das SoC-Limit erreicht wird. Sobald das SoC-Limit erreicht wurde, findet keine Ladung mehr mit Überschuss statt! ",-1)])),_:1},8,["modelValue"])):m("",!0),l.plan.limit.selected=="amount"?(o(),f(T,{key:3,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":l.plan.limit.amount/1e3,"onUpdate:modelValue":e[11]||(e[11]=h=>l.plan.limit.amount=h*1e3)},{help:a(()=>e[22]||(e[22]=[u(" Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zielladen schon ausgewählt ist, neu gezählt. ",-1)])),_:1},8,["model-value"])):m("",!0),e[26]||(e[26]=g("hr",null,null,-1)),t(w,{modelValue:l.plan.frequency.selected,"onUpdate:modelValue":e[12]||(e[12]=h=>l.plan.frequency.selected=h),title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}]},null,8,["modelValue"]),l.plan.frequency.selected=="once"?(o(),f(V,{key:4,modelValue:l.plan.frequency.once,"onUpdate:modelValue":e[13]||(e[13]=h=>l.plan.frequency.once=h),title:"Datum",subtype:"date"},null,8,["modelValue"])):m("",!0),l.plan.frequency.selected=="weekly"?(o(),p("div",Be,[(o(!0),p(y,null,M(n.weekdays,(h,_)=>(o(),f(w,{key:_,modelValue:l.plan.frequency.weekly[_],"onUpdate:modelValue":N=>l.plan.frequency.weekly[_]=N,title:h,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["modelValue","onUpdate:modelValue","title"]))),128))])):m("",!0),e[27]||(e[27]=g("hr",null,null,-1)),t(w,{modelValue:l.plan.et_active,"onUpdate:modelValue":e[14]||(e[14]=h=>l.plan.et_active=h),title:"Strompreisbasiert Laden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"]),l.plan.et_active==!0&&(!n.$store.state.mqtt["openWB/optional/et/provider"]||!n.$store.state.mqtt["openWB/optional/et/provider"].type)?(o(),f(D,{key:6,subtype:"danger"},{default:a(()=>e[23]||(e[23]=[u(" Bitte in den übergreifenden Ladeeinstellungen einen Strompreis-Anbieter konfigurieren. ",-1)])),_:1,__:[23]})):m("",!0),t(w,{modelValue:l.plan.phases_to_use,"onUpdate:modelValue":e[15]||(e[15]=h=>l.plan.phases_to_use=h),title:"Anzahl Phasen Zielladen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}]},{help:a(()=>e[24]||(e[24]=[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zielladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um das Ziel zu erreichen. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (sog. 1p3p). ',-1)])),_:1},8,["modelValue"]),t(w,{modelValue:l.plan.phases_to_use_pv,"onUpdate:modelValue":e[16]||(e[16]=h=>l.plan.phases_to_use_pv=h),title:"Anzahl Phasen bei PV-Überschuss",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}]},{help:a(()=>e[25]||(e[25]=[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zielladen" bei Laden mit PV-Überschuss mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um das Ziel zu erreichen. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (sog. 1p3p). ',-1)])),_:1},8,["modelValue"])]),_:1,__:[26,27]},8,["title"])],64)}const Me=q(Se,[["render",Fe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/ChargeTemplateScheduledChargingPlan.vue"]]);x.add(O,I,H,j,J,G,Q,X);const Te={name:"ChargeTemplateTimeChargingPlan",components:{FontAwesomeIcon:R},mixins:[Y],props:{modelValue:{type:Object,required:!0},templateId:{type:Number,required:!0},dcChargingEnabled:{type:Boolean,default:!1}},emits:["update:modelValue","sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/optional/dc_charging"],showRemoveModal:!1}},computed:{plan(){return this.modelValue}},watch:{plan:{handler(n){this.$emit("update:modelValue",n)},deep:!0}},methods:{copyPlan(){this.$emit("sendCommand",{command:"addChargeTemplateTimeChargingPlan",data:{template:this.templateId,copy:this.modelValue.id}})},removePlanModal(){this.showRemoveModal=!0},removePlan(n){this.showRemoveModal=!1,n=="confirm"&&this.$emit("sendCommand",{command:"removeChargeTemplateTimeChargingPlan",data:{template:this.templateId,plan:this.modelValue.id}})}}},qe={key:0},De={key:1},Ze={key:2},xe={key:3},Re={key:4},Ne={key:1},Oe={key:3};function Ie(n,e,v,L,S,l){const U=c("openwb-base-modal-dialog"),b=c("font-awesome-icon"),z=c("openwb-base-avatar"),V=c("openwb-base-text-input"),w=c("openwb-base-button-group-input"),W=c("openwb-base-range-input"),T=c("openwb-base-number-input"),D=c("openwb-base-card");return o(),p(y,null,[t(U,{show:S.showRemoveModal,title:"Zeitladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:l.removePlan},{default:a(()=>[u(' Wollen Sie den Zeitladen Zeitplan "'+C(l.plan.name)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),t(D,{title:l.plan.name,collapsible:!0,collapsed:!0},{actions:a(s=>[s.collapsed==!0?(o(),p("span",{key:0,class:ee(["pill clickable",l.plan.active?"bg-success":"bg-danger"]),onClick:e[0]||(e[0]=F(h=>l.plan.active=!l.plan.active,["stop"]))},[l.plan.limit.selected=="soc"?(o(),p("span",qe,[t(b,{icon:["fas","car-battery"]}),u(" "+C(l.plan.limit.soc)+"% ",1)])):m("",!0),l.plan.limit.selected=="amount"?(o(),p("span",De,[t(b,{icon:["fas","bolt"]}),u(" "+C(l.plan.limit.amount/1e3)+"kWh ",1)])):m("",!0),t(b,{icon:["fas","clock"]}),u(" "+C(l.plan.time[0])+" - "+C(l.plan.time[1])+" ",1),l.plan.frequency.selected=="once"?(o(),p("span",Ze,[t(b,{icon:["fas","calendar-day"]}),u(" "+C(n.formatDate(l.plan.frequency.once[0])==n.formatDate(l.plan.frequency.once[1])?n.formatDate(l.plan.frequency.once[0]):n.formatDate(l.plan.frequency.once[0])+" - "+n.formatDate(l.plan.frequency.once[1])),1)])):m("",!0),l.plan.frequency.selected=="daily"?(o(),p("span",xe,[t(b,{icon:["fas","calendar-week"]})])):m("",!0),l.plan.frequency.selected=="weekly"?(o(),p("span",Re,[t(b,{icon:["fas","calendar-alt"]})])):m("",!0)],2)):m("",!0),s.collapsed==!1?(o(),p("span",Ne,[t(z,{class:"bg-success clickable",title:"Zeitladen-Plan duplizieren",onClick:e[1]||(e[1]=F(h=>l.copyPlan(),["stop"]))},{default:a(()=>[t(b,{icon:["fas","copy"]})]),_:1}),t(z,{class:"bg-danger clickable ml-1",title:"Zeitladen-Plan löschen",onClick:e[2]||(e[2]=F(h=>l.removePlanModal(),["stop"]))},{default:a(()=>[t(b,{icon:["fas","trash"]})]),_:1})])):m("",!0)]),default:a(()=>[t(V,{modelValue:l.plan.name,"onUpdate:modelValue":e[3]||(e[3]=s=>l.plan.name=s),title:"Bezeichnung"},null,8,["modelValue"]),t(w,{modelValue:l.plan.active,"onUpdate:modelValue":e[4]||(e[4]=s=>l.plan.active=s),title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},null,8,["modelValue"]),t(W,{modelValue:l.plan.current,"onUpdate:modelValue":e[5]||(e[5]=s=>l.plan.current=s),title:`Ladestrom${v.dcChargingEnabled?" (AC)":""}`,min:6,max:32,step:1,unit:"A"},null,8,["modelValue","title"]),v.dcChargingEnabled===!0?(o(),f(T,{key:0,title:"Ladeleistung (DC)",unit:"kW",min:0,"model-value":n.ac_current2dc_power(l.plan.dc_current),"onUpdate:modelValue":e[6]||(e[6]=s=>l.plan.dc_current=n.dc_power2ac_current(s))},null,8,["model-value"])):m("",!0),t(w,{modelValue:l.plan.limit.selected,"onUpdate:modelValue":e[7]||(e[7]=s=>l.plan.limit.selected=s),title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"Fahrzeug-SoC"},{buttonValue:"amount",text:"Energie"}]},{help:a(()=>e[16]||(e[16]=[u(" Bestimmt die Art der Grenze für den Ladevorgang. ",-1)])),_:1},8,["modelValue"]),t(W,{modelValue:l.plan.limit.soc,"onUpdate:modelValue":e[8]||(e[8]=s=>l.plan.limit.soc=s),title:"Ziel-SoC für das Fahrzeug",min:5,max:100,step:5,unit:"%"},{help:a(()=>e[17]||(e[17]=[u(" Ladestand des Akku (State of Charge, SoC), bis zu welchem maximal geladen werden soll. ",-1)])),_:1},8,["modelValue"]),t(T,{title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":l.plan.limit.amount/1e3,"onUpdate:modelValue":e[9]||(e[9]=s=>l.plan.limit.amount=s*1e3)},{help:a(()=>e[18]||(e[18]=[u(" Maximal zu ladende Energie innerhalb des Zeitfensters. Eignet sich immer dann wenn kein SoC zur Verfügung steht. Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zeitladen schon aktiv ist, neu gezählt. ",-1)])),_:1},8,["model-value"]),e[20]||(e[20]=g("hr",null,null,-1)),t(V,{modelValue:l.plan.time[0],"onUpdate:modelValue":e[10]||(e[10]=s=>l.plan.time[0]=s),title:"Zeitpunkt des Ladebeginns",subtype:"time"},null,8,["modelValue"]),t(V,{modelValue:l.plan.time[1],"onUpdate:modelValue":e[11]||(e[11]=s=>l.plan.time[1]=s),title:"Zeitpunkt des Ladeendes",subtype:"time"},null,8,["modelValue"]),t(w,{modelValue:l.plan.frequency.selected,"onUpdate:modelValue":e[12]||(e[12]=s=>l.plan.frequency.selected=s),title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}]},null,8,["modelValue"]),l.plan.frequency.selected=="once"?(o(),f(V,{key:1,modelValue:l.plan.frequency.once[0],"onUpdate:modelValue":e[13]||(e[13]=s=>l.plan.frequency.once[0]=s),title:"Gültig ab",subtype:"date"},null,8,["modelValue"])):m("",!0),l.plan.frequency.selected=="once"?(o(),f(V,{key:2,modelValue:l.plan.frequency.once[1],"onUpdate:modelValue":e[14]||(e[14]=s=>l.plan.frequency.once[1]=s),title:"Gültig bis",subtype:"date",min:l.plan.frequency.once[0]},null,8,["modelValue","min"])):m("",!0),l.plan.frequency.selected=="weekly"?(o(),p("div",Oe,[(o(!0),p(y,null,M(n.weekdays,(s,h)=>(o(),f(w,{key:h,modelValue:l.plan.frequency.weekly[h],"onUpdate:modelValue":_=>l.plan.frequency.weekly[h]=_,title:s,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["modelValue","onUpdate:modelValue","title"]))),128))])):m("",!0),e[21]||(e[21]=g("hr",null,null,-1)),t(w,{modelValue:l.plan.phases_to_use,"onUpdate:modelValue":e[15]||(e[15]=s=>l.plan.phases_to_use=s),title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}]},{help:a(()=>e[19]||(e[19]=[u(' Hier kann eingestellt werden, ob Ladevorgänge mit einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (sog. 1p3p). ',-1)])),_:1},8,["modelValue"])]),_:1,__:[20,21]},8,["title"])],64)}const He=q(Te,[["render",Ie],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/ChargeTemplateTimeChargingPlan.vue"]]);x.add(ue,X,j,G,J,H,O,I,re,de,oe,K,Q);const je={name:"OpenwbVehicleConfigView",components:{FontAwesomeIcon:R,FontAwesomeLayers:se,OpenwbVehicleProxy:Ce,ChargeTemplateScheduledChargingPlan:Me,ChargeTemplateTimeChargingPlan:He,VehicleIdWikiHint:pe},mixins:[Y],props:{installAssistantActive:{type:Boolean,required:!1,default:!1}},emits:["sendCommand","save","reset","defaults"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/dc_charging","openWB/optional/et/provider","openWB/optional/rfid/active","openWB/vehicle/template/ev_template/+","openWB/vehicle/template/charge_template/+","openWB/vehicle/template/charge_template/+/chargemode/scheduled_charging/plans/+","openWB/vehicle/template/charge_template/+/time_charging/plans/+","openWB/vehicle/+/name","openWB/vehicle/+/info","openWB/vehicle/+/charge_template","openWB/vehicle/+/ev_template","openWB/vehicle/+/tag_id","openWB/system/configurable/soc_modules","openWB/vehicle/+/soc_module/general_config","openWB/vehicle/+/soc_module/config"],showVehicleModal:!1,modalVehicleIndex:void 0,showEvTemplateModal:!1,modalEvTemplateIndex:void 0,showChargeTemplateModal:!1,modalChargeTemplateIndex:void 0}},computed:{dcChargingEnabled:{get(){return this.$store.state.mqtt["openWB/optional/dc_charging"]}},vehicleIndexes:{get(){return this.getWildcardIndexList("openWB/vehicle/+/name")}},evTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/ev_template/+")}},evTemplateList:{get(){let n=[];return Object.keys(this.evTemplates).forEach(e=>{let v=parseInt(e.match(/([0-9]+)$/g)[0]),L=this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+v].name;n.push({value:v,text:L})}),n}},chargeTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/charge_template/+")}},chargeTemplateList:{get(){let n=[];return Object.keys(this.chargeTemplates).forEach(e=>{let v=parseInt(e.match(/([0-9]+)$/g)[0]),L=this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+v].name;n.push({value:v,text:L})}),n}},socModuleList:{get(){return this.$store.state.mqtt["openWB/system/configurable/soc_modules"]}}},methods:{updateConfiguration(n,e){console.debug("updateConfiguration",n,e),this.updateState(n,e.value,e.object)},addVehicle(n){n.stopPropagation(),this.$emit("sendCommand",{command:"addVehicle",data:{}})},removeVehicleModal(n,e){n.stopPropagation(),this.modalVehicleIndex=e,this.showVehicleModal=!0},removeVehicle(n,e){this.showVehicleModal=!1,n=="confirm"&&this.$emit("sendCommand",{command:"removeVehicle",data:{id:e}})},getVehicleName(n){return this.$store.state.mqtt["openWB/vehicle/"+n+"/name"]?this.$store.state.mqtt["openWB/vehicle/"+n+"/name"]:"Fahrzeug "+n},getSocDefaultConfiguration(n){const e=this.socModuleList.find(v=>v.value==n);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...JSON.parse(JSON.stringify(e.defaults))}:(console.warn("no default configuration found for soc type!",n),{})},updateSelectedSocModule(n,e){this.updateState("openWB/vehicle/"+n+"/soc_module/config",e,"type"),this.updateState("openWB/vehicle/"+n+"/soc_module/config",this.getSocDefaultConfiguration(e))},addEvTemplate(n,e){n.stopPropagation();let v={};e&&e.match(/([^/]+)$/)&&(v.copy=parseInt(e.match(/([^/]+)$/)[0])),this.$emit("sendCommand",{command:"addEvTemplate",data:v})},removeEvTemplateModal(n,e){n.stopPropagation(),this.modalEvTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.showEvTemplateModal=!0},removeEvTemplate(n,e){this.showEvTemplateModal=!1,n=="confirm"&&this.$emit("sendCommand",{command:"removeEvTemplate",data:{id:e}})},getEvTemplateName(n){return this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+n]?this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+n].name:"Fahrzeug-Profil "+n},addChargeTemplate(n,e){n.stopPropagation();let v={};e&&e.match(/([^/]+)$/)&&(v.copy=parseInt(e.match(/([^/]+)$/)[0])),this.$emit("sendCommand",{command:"addChargeTemplate",data:v})},removeChargeTemplateModal(n,e){this.modalChargeTemplateIndex=e,this.showChargeTemplateModal=!0},removeChargeTemplate(n,e){this.showChargeTemplateModal=!1,n=="confirm"&&this.$emit("sendCommand",{command:"removeChargeTemplate",data:{id:e}})},getChargeTemplateName(n){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+n]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+n].name:"Lade-Profil "+n},addChargeTemplateSchedulePlan(n){this.$emit("sendCommand",{command:"addChargeTemplateSchedulePlan",data:{template:n}})},addChargeTemplateTimeChargingPlan(n){this.$emit("sendCommand",{command:"addChargeTemplateTimeChargingPlan",data:{template:n}})},openActiveChargeModeCard(n,e){this.$nextTick(()=>{["instant_charging","pv_charging","eco_charging","scheduled_charging"].forEach(L=>{const S=`card-${n}-${L}`,l=this.$refs[S],U=Array.isArray(l)?l[0]:l;U&&(U.isCollapsed=L!==e)})})}}},Je={class:"vehicleConfig"},Ge={name:"vehicleConfigForm"},Qe={key:0},Xe={key:1},Ye={key:2},$e={key:3},Ke={key:0},en={key:1},nn={key:0},tn={key:0},ln={key:1},an={key:0},un={key:0},rn={key:3},dn={key:0},on={key:1},sn={key:0},mn={key:0},gn={key:1},hn={key:1};function pn(n,e,v,L,S,l){const U=c("openwb-base-modal-dialog"),b=c("font-awesome-icon"),z=c("openwb-base-avatar"),V=c("openwb-base-alert"),w=c("openwb-base-text-input"),W=c("openwb-base-select-input"),T=c("openwb-base-array-input"),D=c("vehicle-id-wiki-hint"),s=c("openwb-base-button-group-input"),h=c("openwb-base-heading"),_=c("openwb-base-number-input"),N=c("openwb-vehicle-proxy"),P=c("openwb-base-card"),$=c("font-awesome-layers"),E=c("openwb-base-range-input"),ne=c("charge-template-scheduled-charging-plan"),te=c("charge-template-time-charging-plan"),le=c("openwb-base-submit-buttons");return o(),p(y,null,[t(U,{show:S.showVehicleModal,title:"Fahrzeug löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=r=>l.removeVehicle(r,S.modalVehicleIndex))},{default:a(()=>[u(' Wollen Sie das Fahrzeug "'+C(l.getVehicleName(S.modalVehicleIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),t(U,{show:S.showEvTemplateModal,title:"Fahrzeug-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[1]||(e[1]=r=>l.removeEvTemplate(r,S.modalEvTemplateIndex))},{default:a(()=>[u(' Wollen Sie das Fahrzeug-Profil "'+C(l.getEvTemplateName(S.modalEvTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),t(U,{show:S.showChargeTemplateModal,title:"Lade-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[2]||(e[2]=r=>l.removeChargeTemplate(r,S.modalChargeTemplateIndex))},{default:a(()=>[u(' Wollen Sie das Lade-Profil "'+C(l.getChargeTemplateName(S.modalChargeTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),g("div",Je,[g("form",Ge,[t(P,{subtype:"info",collapsible:!0,collapsed:n.$route.params.section!="vehicle"},{header:a(()=>[t(b,{icon:["fas","car"]}),e[8]||(e[8]=u(" Fahrzeuge ",-1))]),actions:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!1?(o(),f(z,{key:0,class:"bg-success clickable",title:"Neues Fahrzeug hinzufügen",onClick:l.addVehicle},{default:a(()=>[t(b,{icon:["fas","plus"]})]),_:1},8,["onClick"])):m("",!0)]),default:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(o(),p("div",Qe,[t(V,{subtype:"info"},{default:a(()=>e[9]||(e[9]=[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[9]})])):(o(),p("div",Xe,[(o(!0),p(y,null,M(l.vehicleIndexes,r=>(o(),f(P,{key:r,title:l.getVehicleName(r),collapsible:!0,collapsed:!(n.$route.params.section=="vehicle"&&parseInt(n.$route.params.section_index)==r),subtype:"info"},Z({default:a(()=>[t(w,{title:"Bezeichnung","model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/name"],disabled:r===0,"onUpdate:modelValue":d=>n.updateState("openWB/vehicle/"+r+"/name",d)},Z({_:2},[r===0?{name:"help",fn:a(()=>[e[10]||(e[10]=u(" Das Standard-Fahrzeug kann nicht umbenannt werden. ",-1))]),key:"0"}:void 0]),1032,["model-value","disabled","onUpdate:modelValue"]),r!==0?(o(),f(w,{key:0,title:"Fahrzeughersteller ","model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/info"].manufacturer,"onUpdate:modelValue":d=>n.updateState("openWB/vehicle/"+r+"/info",d,"manufacturer")},{help:a(()=>[...e[11]||(e[11]=[u(" Optional: zusätzliche Information für den Systembericht. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])):m("",!0),r!==0?(o(),f(w,{key:1,title:"Fahrzeugmodell","model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/info"].model,"onUpdate:modelValue":d=>n.updateState("openWB/vehicle/"+r+"/info",d,"model")},{help:a(()=>[...e[12]||(e[12]=[u(" Optional: zusätzliche Information für den Systembericht.",-1),g("br",null,null,-1),u(" Nach Möglichkeit auch Angabe des Baujahres, da es durchaus beim Verhalten des Fahrzeugs Unterschiede geben kann. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])):m("",!0),t(V,{subtype:"info"},{default:a(()=>[...e[13]||(e[13]=[u(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ",-1)])]),_:1,__:[13]}),t(W,{title:"Fahrzeug-Profil",options:l.evTemplateList,"model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/ev_template"],"onUpdate:modelValue":d=>n.updateState("openWB/vehicle/"+r+"/ev_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),t(W,{title:"Lade-Profil",options:l.chargeTemplateList,"model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/charge_template"],"onUpdate:modelValue":d=>n.updateState("openWB/vehicle/"+r+"/charge_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),e[24]||(e[24]=g("hr",null,null,-1)),n.$store.state.mqtt["openWB/optional/rfid/active"]===!0&&!v.installAssistantActive?(o(),p("div",Ye,[t(T,{title:"Zugeordnete ID-Tags","model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/tag_id"],"onUpdate:modelValue":d=>n.updateState("openWB/vehicle/"+r+"/tag_id",d)},null,8,["model-value","onUpdate:modelValue"]),t(V,{subtype:"info"},{default:a(()=>[e[14]||(e[14]=u(" Die hier eingetragenen ID-Tags dienen ausschließlich der Fahrzeugzuordnung.",-1)),e[15]||(e[15]=g("br",null,null,-1)),t(D)]),_:1,__:[14,15]}),e[16]||(e[16]=g("hr",null,null,-1))])):m("",!0),t(W,{class:"mb-2",title:"SoC-Modul des Fahrzeugs",options:l.socModuleList,"model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/config"].type,"onUpdate:modelValue":d=>l.updateSelectedSocModule(r,d)},{help:a(()=>[...e[17]||(e[17]=[u(" Mit einem SoC-Modul kann der Ladestand des Fahrzeugs ermittelt und geregelt werden. Z.B. lassen sich unabhängig vom Fahrzeug bestimmte SoC-Werte einstellen, um den Fahrzeugakku zu schonen. Aktuell werden die SoC-Werte mittels der App-Zugangsdaten aus dem Herstellerserver des Fahrzeuges ausgelesen. Zukünftig soll auch eine direkte SoC-Auslesung aus dem Fahrzeug möglich werden (openWB Pro).",-1),g("br",null,null,-1),u(" Die SoC-Abfrage erfolgt automatisch beim Anstecken des Fahrzeuges und zusätzlich über einstellbare Abfrageintervalle während des Ladens und Nichtladens. Die Abfrage kann auch manuell durch Klick auf den Reload-Pfeil auf der Hauptseite ausgelöst werden.",-1),g("br",null,null,-1),u(" Wenn eine Abfrage fehlschlägt, wird noch drei weitere Male im Abstand von 5 Minuten versucht, den SoC abzufragen. Wenn dies nicht erfolgreich ist, wird der SoC auf 0% gesetzt um zu vermeiden, dass ein Auto beim SoC-basierten Laden nicht geladen wird. Die Abfrage erfolgt dann wieder in den oben genannten Intervallen.",-1),g("br",null,null,-1),u(" Da aktuell die SoC-Abfragen über Onlineserver der Fahrzeughersteller laufen, ist infolge möglicher Umstellungen/Wartungen keine 100%-ig sichere SoC-Abfrage garantiert. Auch kann es zu SoC-Abweichungen infolge von zeitlicher Verzögerungen kommen. Hilfestellung erfolgt primär im openWB-Forum. ",-1)])]),_:2},1032,["options","model-value","onUpdate:modelValue"]),n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/config"].type?(o(),p("div",$e,[t(s,{title:"SoC direkt aus Fahrzeug auslesen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/general_config"].use_soc_from_cp,"onUpdate:modelValue":d=>n.updateState("openWB/vehicle/"+r+"/soc_module/general_config",d,"use_soc_from_cp")},{help:a(()=>[...e[18]||(e[18]=[u(" Wenn Ladepunkt und Fahrzeug das direkte Auslesen des SoCs über das Ladekabel unterstützen, wird der SoC nach dem Anstecken aus dem Fahrzeug ausgelesen und während der Ladung berechnet. Das direkte Auslesen des SoC aus dem Fahrzeug ist aktuell nur mit einer openWB Pro möglich. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(h,null,{help:a(()=>[...e[19]||(e[19]=[u(" Einige Hersteller begrenzen die möglichen Abfragen. Sobald ein gewisses Limit in einem Zeitraum überschritten wird, werden weitere Anfragen blockiert. Die Zeitintervalle sollten daher nicht zu klein gewählt werden. ",-1)])]),default:a(()=>[e[20]||(e[20]=u(" Aktualisierung der Fahrzeugdaten ",-1))]),_:1,__:[20]}),t(_,{title:"Während der Ladung",unit:"Min.",min:1,required:"","model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/general_config"].request_interval_charging/60,"onUpdate:modelValue":d=>n.updateState("openWB/vehicle/"+r+"/soc_module/general_config",d*60,"request_interval_charging")},{help:a(()=>[...e[21]||(e[21]=[u(" Der Ladestand des Fahrzeugs (SoC) wird bei einem laufenden Ladevorgang in dem hier eingestellten Intervall in Minuten abgefragt. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(_,{title:"Ohne laufende Ladung",unit:"Min.",min:1,required:"","model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/general_config"].request_interval_not_charging/60,"onUpdate:modelValue":d=>n.updateState("openWB/vehicle/"+r+"/soc_module/general_config",d*60,"request_interval_not_charging")},{help:a(()=>[...e[22]||(e[22]=[u(" Der Ladestand des Fahrzeugs (SoC) wird in dem hier eingestellten Intervall in Minuten abgefragt, falls kein Ladevorgang aktiv ist. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(s,{title:"Nur aktualisieren wenn angesteckt",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/general_config"].request_only_plugged,"onUpdate:modelValue":d=>n.updateState("openWB/vehicle/"+r+"/soc_module/general_config",d,"request_only_plugged")},{help:a(()=>[...e[23]||(e[23]=[u(' Wird hier "Ja" ausgewählt, dann wird der Ladestand des Fahrzeugs nur abgefragt, wenn das Ladekabel angesteckt ist. ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(N,{"vehicle-id":r,vehicle:n.$store.state.mqtt["openWB/vehicle/"+r+"/soc_module/config"],"onUpdate:configuration":d=>l.updateConfiguration("openWB/vehicle/"+r+"/soc_module/config",d)},null,8,["vehicle-id","vehicle","onUpdate:configuration"])])):m("",!0)]),_:2},[r!==0?{name:"actions",fn:a(d=>[d.collapsed?m("",!0):(o(),f(z,{key:0,class:"bg-danger clickable",title:"Fahrzeug löschen",onClick:i=>l.removeVehicleModal(i,r)},{default:a(()=>[t(b,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}:void 0]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),e[96]||(e[96]=g("hr",{class:"border-secondary"},null,-1)),t(h,null,{default:a(()=>e[25]||(e[25]=[u("Profile",-1)])),_:1,__:[25]}),t(P,{collapsible:!0,collapsed:!0},{header:a(()=>[t($,{class:"fa-lg"},{default:a(()=>[t(b,{icon:["far","file"]}),t(b,{icon:["fas","car"],transform:"shrink-8"})]),_:1}),e[26]||(e[26]=u(" Fahrzeug-Profile ",-1))]),actions:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!1?(o(),f(z,{key:0,class:"bg-success clickable",title:"Neues Fahrzeug-Profil hinzufügen",onClick:l.addEvTemplate},{default:a(()=>[t(b,{icon:["fas","plus"]})]),_:1},8,["onClick"])):m("",!0)]),default:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(o(),p("div",Ke,[t(V,{subtype:"info"},{default:a(()=>e[27]||(e[27]=[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[27]})])):(o(),p("div",en,[t(V,{subtype:"info"},{default:a(()=>e[28]||(e[28]=[u(" Ein anderes Fahrzeug-Profil wird erst ",-1),g("span",{class:"text-uppercase font-weight-bold"}," nach dem Abstecken ",-1),u(" übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ",-1)])),_:1,__:[28]}),(o(!0),p(y,null,M(l.evTemplates,(r,d)=>(o(),f(P,{key:d,title:r.name?r.name:d,collapsible:!0,collapsed:!0},Z({default:a(()=>[t(w,{title:"Bezeichnung","model-value":r.name,disabled:d.endsWith("/0"),"onUpdate:modelValue":i=>n.updateState(d,i,"name")},Z({_:2},[d.endsWith("/0")?{name:"help",fn:a(()=>[e[29]||(e[29]=u(" Das Standard-Profil kann nicht umbenannt werden. ",-1))]),key:"0"}:void 0]),1032,["model-value","disabled","onUpdate:modelValue"]),t(h,null,{default:a(()=>[...e[30]||(e[30]=[u(" Angaben zur Batterie ",-1)])]),_:1,__:[30]}),t(_,{title:"Kapazität der Batterie",unit:"kWh",min:1,step:1,required:"","model-value":r.battery_capacity/1e3,"onUpdate:modelValue":i=>n.updateState(d,i*1e3,"battery_capacity")},{help:a(()=>[...e[31]||(e[31]=[u(" Angabe der Netto-Kapazität der Fahrzeugbatterie. Dient zur Berechnung des manuellen SoC und der geladenen Reichweite. Die Netto-Kapazität unterscheidet sich meist von den Angaben der Fahrzeughersteller. So besitzt ein Tesla Model S 90 z. B. nur ca. 83kWh und nicht die durch die Typenbezeichnung suggerierten 90kWh. Andere Hersteller begrenzen die nutzbare Kapazität absichtlich, um eine höhere Lebensdauer der Akkus zu erreichen. Gängig sind eine Drosselung auf 90% der angegebenen Brutto-Kapazität. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),v.installAssistantActive?m("",!0):(o(),p("div",tn,[t(_,{title:"Wirkungsgrad der Ladeelektronik",unit:"%",min:1,max:100,required:"","model-value":r.efficiency,"onUpdate:modelValue":i=>n.updateState(d,i,"efficiency")},{help:a(()=>[...e[32]||(e[32]=[u(" Durch Verluste in der Ladeelektronik (z. B. Umwandlung Wechselspannung in Gleichspannung) gelangt nicht die komplette Energie, welche durch den Zähler in der Wallbox gemessen wird, in den Akku des Fahrzeugs. Der anzugebende Wert liegt bei gängigen Fahrzeugen im Bereich 90-95%. Eine Ausnahme stellt der Zoe dar, dessen Chameleon-Lader je nach Modellversion und freigegebener Leistung der Wallbox teilweise nur auf ca. 50% kommt.",-1),g("br",null,null,-1),u(" Liegen die Angaben der Wallbox und des Fahrzeugs nach der Ladung mehrere Prozent auseinander, dann kann mit dieser Einstellung eine Feinabstimmung erfolgen: ",-1),g("br",null,null,-1),u(" SoC an der Wallbox zu hoch: Wirkungsgrad um ein paar Prozent reduzieren",-1),g("br",null,null,-1),u(" SoC an der Wallbox zu gering: Wirkungsgrad um ein paar Prozent erhöhen",-1),g("br",null,null,-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])])),t(_,{title:"Durchschnittsverbrauch",unit:"kWh / 100km",min:1,step:.1,required:"","model-value":r.average_consump/1e3,"onUpdate:modelValue":i=>n.updateState(d,i*1e3,"average_consump")},null,8,["model-value","onUpdate:modelValue"]),t(s,{title:"Bidirektionales Laden",buttons:[{buttonValue:!1,text:"Nicht unterstützt",class:"btn-outline-danger"},{buttonValue:!0,text:"AC nach ISO15118-20",class:"btn-outline-success"}],"model-value":r.bidi,"onUpdate:modelValue":i=>n.updateState(d,i,"bidi")},{help:a(()=>[...e[33]||(e[33]=[u(' Für bidirektionales Laden wird eine openWB Pro benötigt. Die openWB Pro muss auf den Modus "Bidi" gestellt werden.',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),l.dcChargingEnabled===!0?(o(),p("div",ln,[t(h,null,{default:a(()=>[...e[34]||(e[34]=[u(" Angaben zur Ladeleistung (DC) ",-1)])]),_:1,__:[34]}),t(_,{title:"Mindestleistung",min:0,unit:"kW","model-value":n.ac_current2dc_power(r.dc_min_current),"onUpdate:modelValue":i=>n.updateState(d,n.dc_power2ac_current(i),"dc_min_current")},null,8,["model-value","onUpdate:modelValue"]),t(_,{title:"Maximalleistung",unit:"kW","model-value":n.ac_current2dc_power(r.dc_max_current),"onUpdate:modelValue":i=>n.updateState(d,n.dc_power2ac_current(i),"dc_max_current")},null,8,["model-value","onUpdate:modelValue"])])):m("",!0),t(h,null,{default:a(()=>[e[35]||(e[35]=u(" Angaben zum Ladestrom ",-1)),l.dcChargingEnabled===!0?(o(),p("span",an," (AC) ")):m("",!0)]),_:1,__:[35]}),t(E,{title:"Mindeststrom",min:6,max:16,step:1,unit:"A","model-value":r.min_current,"onUpdate:modelValue":i=>n.updateState(d,i,"min_current")},null,8,["model-value","onUpdate:modelValue"]),t(E,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":r.max_current_single_phase,"onUpdate:modelValue":i=>n.updateState(d,i,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),t(E,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":r.max_current_multi_phases,"onUpdate:modelValue":i=>n.updateState(d,i,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),t(_,{title:"Erlaubte Stromabweichung",step:.1,min:0,max:5,unit:"A","model-value":r.nominal_difference,"onUpdate:modelValue":i=>n.updateState(d,i,"nominal_difference")},{help:a(()=>[...e[36]||(e[36]=[u(" In manchen Lademodi, z.B. bei der automatischen Phasenumschaltung, wird geprüft, ob das Fahrzeug mit der vorgegebenen Stromstärke lädt. Manche Fahrzeuge laden nicht exakt mit der vorgegebenen Stromstärke. Die erlaubte Abweichung kann hier eingestellt werden. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(h,null,{default:a(()=>[e[37]||(e[37]=u(" Angaben zur Handhabung von Phasen ",-1)),l.dcChargingEnabled===!0?(o(),p("span",un," (AC) ")):m("",!0)]),_:1,__:[37]}),t(s,{title:"Unterstützte Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":r.max_phases,"onUpdate:modelValue":i=>n.updateState(d,i,"max_phases")},{help:a(()=>[...e[38]||(e[38]=[u(" Anzahl der Phasen, die der Fahrzeuglader (s.g. OBC - OnboardCharger) verwendet. Plugin-Hybride nutzen meist nur eine Phase, reine E-Autos meist 3, manche nur 2 Phasen. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(s,{title:"CP-Unterbrechung",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.control_pilot_interruption,"onUpdate:modelValue":i=>n.updateState(d,i,"control_pilot_interruption")},{help:a(()=>[...e[39]||(e[39]=[u(' Erläuterung siehe "Konfiguration - Ladepunkte" -> Hardware-Optionen ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),r.control_pilot_interruption?(o(),f(_,{key:2,title:"Dauer der CP-Unterbrechung",min:4,step:1,unit:"s","model-value":r.control_pilot_interruption_duration,"onUpdate:modelValue":i=>n.updateState(d,i,"control_pilot_interruption_duration")},null,8,["model-value","onUpdate:modelValue"])):m("",!0),t(s,{title:"Phasenumschaltung blockieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.prevent_phase_switch,"onUpdate:modelValue":i=>n.updateState(d,i,"prevent_phase_switch")},{help:a(()=>[...e[40]||(e[40]=[u(' Erläuterung zu 1p3p siehe "Ladeeinstellungen" ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(s,{title:"Ladung aktiv halten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.prevent_charge_stop,"onUpdate:modelValue":i=>n.updateState(d,i,"prevent_charge_stop")},{help:a(()=>[...e[41]||(e[41]=[u(" Der Ladevorgang wird in den Lademodi PV- und Zielladen nach Ladebeginn nicht unterbrochen, selbst wenn nicht mehr genug Überschuss vorhanden ist. Diese Einstellung sollte bei Fahrzeugen aktiviert werden, die nach einer Ladungsunterbrechung keine Ladung mehr starten. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(_,{title:"Pause bei Phasenumschaltung",unit:"s",min:2,step:1,required:"","model-value":r.phase_switch_pause,"onUpdate:modelValue":i=>n.updateState(d,i,"phase_switch_pause")},null,8,["model-value","onUpdate:modelValue"]),v.installAssistantActive?m("",!0):(o(),p("div",rn,[t(_,{title:"Mindestzeit zwischen Umschaltungen",unit:"s",min:2,step:1,required:"","model-value":r.keep_charge_active_duration,"onUpdate:modelValue":i=>n.updateState(d,i,"keep_charge_active_duration")},{help:a(()=>[...e[42]||(e[42]=[u(" Manche Fahrzeuge benötigen nach der Umschaltung einige Zeit, bis sie mit der vorgegebenen Phasenzahl laden. In dieser Zeit wird keine neue Phasenumschaltung angestoßen. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])]))]),_:2},[n.$store.state.mqtt["openWB/general/extern"]===!1?{name:"actions",fn:a(i=>[i.collapsed?m("",!0):(o(),p("span",nn,[t(z,{class:"bg-success clickable",title:"Fahrzeug-Profil duplizieren",onClick:A=>l.addEvTemplate(A,d)},{default:a(()=>[t(b,{icon:["fas","copy"]})]),_:2},1032,["onClick"]),d.endsWith("/0")?m("",!0):(o(),f(z,{key:0,class:"bg-danger clickable ml-1",title:"Fahrzeug-Profil löschen",onClick:A=>l.removeEvTemplateModal(A,d)},{default:a(()=>[t(b,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]))]),key:"0"}:void 0]),1032,["title"]))),128))]))]),_:1}),t(P,{collapsible:!0,collapsed:n.$route.params.section!="charge_template"},{header:a(()=>[t($,{class:"fa-lg"},{default:a(()=>[t(b,{icon:["far","file"]}),t(b,{icon:["fas","plug"],transform:"shrink-8"})]),_:1}),e[43]||(e[43]=u(" Lade-Profile ",-1))]),actions:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!1?(o(),f(z,{key:0,class:"bg-success clickable",title:"Neues Lade-Profil hinzufügen",onClick:l.addChargeTemplate},{default:a(()=>[t(b,{icon:["fas","plus"]})]),_:1},8,["onClick"])):m("",!0)]),default:a(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(o(),p("div",dn,[t(V,{subtype:"info"},{default:a(()=>e[44]||(e[44]=[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ',-1)])),_:1,__:[44]})])):(o(),p("div",on,[(o(!0),p(y,null,M(l.chargeTemplates,(r,d)=>(o(),f(P,{key:d,title:r.name?r.name:d,collapsible:!0,collapsed:!(n.$route.params.section=="charge_template"&&parseInt(n.$route.params.section_index)==r.id)},{actions:a(i=>[i.collapsed?m("",!0):(o(),p("span",sn,[t(z,{class:"bg-success clickable",title:"Lade-Profil duplizieren",onClick:A=>l.addChargeTemplate(A,d)},{default:a(()=>[t(b,{icon:["fas","copy"]})]),_:2},1032,["onClick"]),d.endsWith("/0")?m("",!0):(o(),f(z,{key:0,class:"bg-danger clickable ml-1",title:"Lade-Profil löschen",onClick:F(A=>l.removeChargeTemplateModal(A,r.id),["stop"])},{default:a(()=>[t(b,{icon:["fas","trash"]})]),_:2},1032,["onClick"]))]))]),default:a(()=>[t(w,{title:"Bezeichnung","model-value":r.name,disabled:d.endsWith("/0"),"onUpdate:modelValue":i=>n.updateState(d,i,"name")},Z({_:2},[d.endsWith("/0")?{name:"help",fn:a(()=>[e[45]||(e[45]=u(" Das Standard-Profil kann nicht umbenannt werden. ",-1))]),key:"0"}:void 0]),1032,["model-value","disabled","onUpdate:modelValue"]),t(h,null,{default:a(()=>[...e[46]||(e[46]=[u(" Allgemeine Optionen ",-1)])]),_:1,__:[46]}),t(s,{title:"Aktiver Lademodus",buttons:[{buttonValue:"instant_charging",text:"Sofort",class:"btn-outline-danger"},{buttonValue:"pv_charging",text:"PV",class:"btn-outline-success"},{buttonValue:"scheduled_charging",text:"Ziel",class:"btn-outline-primary"},{buttonValue:"eco_charging",text:"Eco",class:"btn-outline-secondary"},{buttonValue:"bidi_charging",text:"Bidi",class:"btn-outline-secondary"},{buttonValue:"stop",text:"Stop",class:"btn-outline-dark"}],"model-value":r.chargemode.selected,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.selected"),onButtonClick:i=>l.openActiveChargeModeCard(d,i)},{help:a(()=>[...e[47]||(e[47]=[u(" Diese Einstellung entspricht dem gewählten Lademodus auf der Hauptseite und ist aktiv, wenn ein zugehöriges Fahrzeug angesteckt ist.",-1),g("br",null,null,-1),u(" Die zur Verfügung stehende Leistung wird intern anhand folgender Prioritätenliste auf die Fahrzeuge bzw. Ladepunkte verteilt:",-1),g("br",null,null,-1),g("ol",null,[g("li",null,"Ziel (Sofortladen) mit Priorität"),g("li",null,"Ziel (Sofortladen)"),g("li",null,"Bidi (Sofortladen für Ziel) mit Priorität"),g("li",null,"Bidi (Sofortladen für Ziel)"),g("li",null,"Zeit mit Priorität"),g("li",null,"Zeit"),g("li",null,"Sofort mit Priorität"),g("li",null,"Sofort"),g("li",null,"Eco (Min-Anteil) mit Priorität"),g("li",null,"Eco (Min-Anteil)"),g("li",null,"PV (Min-Anteil) mit Priorität"),g("li",null,"PV (Min-Anteil)"),g("li",null,"Ziel (PV) mit Priorität"),g("li",null,"Ziel (PV)"),g("li",null,"Bidi (PV-Anteil) mit Priorität"),g("li",null,"Bidi (PV-Anteil)"),g("li",null,"Eco (PV-Anteil) mit Priorität"),g("li",null,"Eco (PV-Anteil)"),g("li",null,"PV (PV-Anteil) mit Priorität"),g("li",null,"PV (PV-Anteil)"),g("li",null,"Bidi-Entladen ohne Priorität"),g("li",null,"Bidi-Entladen mit Priorität")],-1)])]),_:2},1032,["model-value","onUpdate:modelValue","onButtonClick"]),v.installAssistantActive?m("",!0):(o(),p("div",mn,[t(s,{title:"Priorität",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.prio,"onUpdate:modelValue":i=>n.updateState(d,i,"prio")},{help:a(()=>[...e[48]||(e[48]=[u(" Die Ladefreigabe mit dem jeweils eingestellten Mindeststrom erfolgt für alle Fahrzeuge, soweit die verfügbare Leistung ausreicht. Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar. Erst wenn alle priorisierten Fahrzeuge die maximale Ladeleistung bekommen und noch zusätzlicher Überschuss vorhanden ist, wird auch für Fahrzeuge ohne Priorität mehr Leistung freigegeben. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(s,{title:"Standard nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.load_default,"onUpdate:modelValue":i=>n.updateState(d,i,"load_default")},{help:a(()=>[...e[49]||(e[49]=[u(" Falls diese Option aktiviert ist, wird der betroffene Ladepunkt nach dem Abstecken auf das Standard Fahrzeug zurückgesetzt. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),e[51]||(e[51]=g("hr",null,null,-1)),t(h,null,{default:a(()=>[...e[50]||(e[50]=[u("Einstellungen der Lademodi",-1)])]),_:1,__:[50]})])),t(P,{ref_for:!0,ref:`card-${d}-instant_charging`,collapsible:!0,collapsed:!0,subtype:"secondary"},{header:a(()=>[...e[52]||(e[52]=[u(" Sofort ",-1)])]),default:a(()=>[t(E,{title:`Soll-Ladestrom${l.dcChargingEnabled?" (AC)":""}`,min:6,max:32,step:1,unit:"A","model-value":r.chargemode.instant_charging.current,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.instant_charging.current")},null,8,["title","model-value","onUpdate:modelValue"]),l.dcChargingEnabled===!0?(o(),f(_,{key:0,title:"Soll-Ladeleistung (DC)",unit:"kW",min:0,"model-value":n.ac_current2dc_power(r.chargemode.instant_charging.dc_current),"onUpdate:modelValue":i=>n.updateState(d,n.dc_power2ac_current(i),"chargemode.instant_charging.dc_current")},null,8,["model-value","onUpdate:modelValue"])):m("",!0),t(s,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":r.chargemode.instant_charging.phases_to_use,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.instant_charging.phases_to_use")},{help:a(()=>[...e[53]||(e[53]=[u(' Hier kann eingestellt werden, ob Ladevorgänge mit einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(s,{title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"Fahrzeug-SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":r.chargemode.instant_charging.limit.selected,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.instant_charging.limit.selected")},{help:a(()=>[...e[54]||(e[54]=[u(" Sofortladen kann ohne Fahrzeug-SoC-Begrenzung (Aus), mit Begrenzung des Fahrzeug-SoC (SoC) bei konfiguriertem SoC-Auslesemodul oder mittels Vorgabe eine gewünschten Energiemenge in kWh (Energie) genutzt werden. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(E,{title:"SoC-Limit für das Fahrzeug",min:5,max:100,step:5,unit:"%","model-value":r.chargemode.instant_charging.limit.soc,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.instant_charging.limit.soc")},{help:a(()=>[...e[55]||(e[55]=[u(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(_,{title:"Energie-Limit",unit:"kWh",min:1,step:1,"model-value":r.chargemode.instant_charging.limit.amount/1e3,"onUpdate:modelValue":i=>n.updateState(d,i*1e3,"chargemode.instant_charging.limit.amount")},{help:a(()=>[...e[56]||(e[56]=[u(" Die geladene Energiemenge wird nach dem Anstecken neu gezählt. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1536),t(P,{ref_for:!0,ref:`card-${d}-pv_charging`,collapsible:!0,collapsed:!0,subtype:"secondary"},{header:a(()=>[...e[57]||(e[57]=[u(" PV ",-1)])]),default:a(()=>[t(E,{title:`Minimaler Dauerstrom${l.dcChargingEnabled?" (AC)":""}`,min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":r.chargemode.pv_charging.min_current,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.pv_charging.min_current")},{help:a(()=>[...e[58]||(e[58]=[u(' Hier kann eine Stromstärke eingestellt werden, mit dem unabhängig vom vorhandenen Überschuss durchgeladen wird. Hierdurch wird z.B. an Tagen mit häufigem Sonne/Wolken-Wechsel oder mit nur wenig PV-Ertrag ein Laden ohne Unterbrechung ermöglicht. Folglich kann auch Netzbezug für das Fahrzeugladen entstehen, weshalb der niedrigste Stromwert empfohlen wird. Diese Einstellung entspricht weitestgehend dem Lademodus "Min+PV" der Version 1.x. ',-1)])]),_:2},1032,["title","model-value","onUpdate:modelValue"]),l.dcChargingEnabled===!0?(o(),f(_,{key:0,title:"Minimale Dauerleistung (DC)",unit:"kW",min:0,"model-value":n.ac_current2dc_power(r.chargemode.pv_charging.dc_min_current),"onUpdate:modelValue":i=>n.updateState(d,n.dc_power2ac_current(i),"chargemode.pv_charging.dc_min_current")},{help:a(()=>[...e[59]||(e[59]=[u(" Hier kann eine Leistung eingestellt werden, mit dem unabhängig vom vorhandenen Überschuss durchgeladen wird. Hierdurch wird z.B. an Tagen mit häufigem Sonne/Wolken-Wechsel oder mit nur wenig PV-Ertrag ein Laden ohne Unterbrechung ermöglicht. Folglich kann auch Netzbezug für das Fahrzeugladen entstehen, weshalb der niedrigste Leistungswert empfohlen wird. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])):m("",!0),t(s,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":r.chargemode.pv_charging.phases_to_use,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.pv_charging.phases_to_use")},{help:a(()=>[...e[60]||(e[60]=[u(' Hier kann eingestellt werden, ob Ladevorgänge mit einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um den verfügbaren Überschuss in die Fahrzeuge zu laden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen einer und mehreren Phasen (sog. 1p3p). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(s,{title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"Fahrzeug-SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":r.chargemode.pv_charging.limit.selected,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.pv_charging.limit.selected")},{help:a(()=>[...e[61]||(e[61]=[u(" PV kann ohne Fahrzeug-SoC-Begrenzung (Aus), mit Begrenzung des Fahrzeug-SoC (SoC) bei konfiguriertem SoC-Auslesemodul oder mittels Vorgabe eine gewünschten Energiemenge in kWh (Energie) genutzt werden. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(E,{title:"SoC-Limit für das Fahrzeug",min:5,max:100,step:5,unit:"%","model-value":r.chargemode.pv_charging.limit.soc,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.pv_charging.limit.soc")},{help:a(()=>[...e[62]||(e[62]=[u(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(_,{title:"Energie-Limit",unit:"kWh",min:1,step:1,"model-value":r.chargemode.pv_charging.limit.amount/1e3,"onUpdate:modelValue":i=>n.updateState(d,i*1e3,"chargemode.pv_charging.limit.amount")},{help:a(()=>[...e[63]||(e[63]=[u(" Die geladene Energiemenge wird nach dem Anstecken neu gezählt. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(E,{title:"Mindest-SoC für das Fahrzeug",min:0,max:19,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":r.chargemode.pv_charging.min_soc,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.pv_charging.min_soc")},{help:a(()=>[...e[64]||(e[64]=[u(' Liegt der Fahrzeug-Ladestand (SoC) unter dem hier eingestellten Wert, dann wird bis zum Erreichen dieses Wertes mit dem eingestellten "Mindest-SoC-Strom" geladen. Dies dient der Sicherstellung eines "Mindest-SoC" - z.B. für eine immer abzudeckende Fahrzeugreichweite - auch wenn kein oder zu wenig Überschuss verfügbar ist (=> Laden mit anteilig Netzstrom). Nach dem Erreichen des "Mindest-SoC" wird bei verfügbarem Überschuss geladen.',-1),g("br",null,null,-1),u(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(E,{title:`Mindest-SoC-Strom${l.dcChargingEnabled?" (AC)":""}`,min:6,max:32,step:1,unit:"A","model-value":r.chargemode.pv_charging.min_soc_current,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.pv_charging.min_soc_current")},{help:a(()=>[...e[65]||(e[65]=[u(' Wird der oben eingestellte "Mindest-SoC" des Fahrzeuges unterschritten, dann wird unabhängig vom Überschuss ein Ladevorgang mit dem hier festgelegten "Mindest-SoC-Strom" initiiert (ggf. mit anteilig Netzbezug). ',-1)])]),_:2},1032,["title","model-value","onUpdate:modelValue"]),l.dcChargingEnabled===!0?(o(),f(_,{key:1,title:"Mindest-SoC-Leistung (DC)",unit:"kW",min:0,"model-value":n.ac_current2dc_power(r.chargemode.pv_charging.dc_min_soc_current),"onUpdate:modelValue":i=>n.updateState(d,n.dc_power2ac_current(i),"chargemode.pv_charging.dc_min_soc_current")},{help:a(()=>[...e[66]||(e[66]=[u(' Wird der oben eingestellte "Mindest-SoC" des Fahrzeuges unterschritten, dann wird unabhängig vom Überschuss ein Ladevorgang mit der hier festgelegten "Mindest-SoC-Leistung" initiiert (ggf. mit anteilig Netzbezug). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])):m("",!0),t(s,{title:"Anzahl Phasen Mindest-SoC",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":r.chargemode.pv_charging.phases_to_use_min_soc,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.pv_charging.phases_to_use_min_soc")},{help:a(()=>[...e[67]||(e[67]=[u(' Hier kann eingestellt werden, ob Ladevorgänge mit einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen einer und mehreren Phasen (sog. 1p3p). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(s,{title:"Einspeisegrenze beachten",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.chargemode.pv_charging.feed_in_limit,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.pv_charging.feed_in_limit")},{help:a(()=>[...e[68]||(e[68]=[u(' Erläuterung siehe "Ladeeinstellungen" -> "PV-Laden" -> "Regelparameter" -> "Regelpunkt Einspeisegrenze" ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1536),t(P,{ref_for:!0,ref:`card-${d}-eco_charging`,collapsible:!0,collapsed:!0,subtype:"secondary"},{header:a(()=>[...e[69]||(e[69]=[u(" Eco ",-1)])]),default:a(()=>[t(h,null,{help:a(()=>[...e[70]||(e[70]=[u(" Im Eco-Modus wird eine Preisgrenze vorgegeben. Wenn der Strompreis unter dieser Grenze liegt, wird mit dem eingestellten Ladestrom geladen und -falls vorhanden- zusätzlich mit dem Überschuss. Wenn die Preisgrenze überschritten wird, wird nur mit Überschuss geladen, wenn dieser vorhanden ist. ",-1)])]),default:a(()=>[e[71]||(e[71]=u("Arbeitsweise von Eco ",-1))]),_:1,__:[71]}),t(E,{title:`Minimaler Dauerstrom unter der Preisgrenze${l.dcChargingEnabled?" (AC)":""}`,min:6,max:32,step:1,unit:"A","model-value":r.chargemode.eco_charging.current,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.eco_charging.current")},null,8,["title","model-value","onUpdate:modelValue"]),l.dcChargingEnabled===!0?(o(),f(_,{key:0,title:"Minimale Dauerleistung unter der Preisgrenze (DC)",unit:"kW",min:0,"model-value":n.ac_current2dc_power(r.chargemode.eco_charging.dc_current),"onUpdate:modelValue":i=>n.updateState(d,n.dc_power2ac_current(i),"chargemode.eco_charging.dc_current")},null,8,["model-value","onUpdate:modelValue"])):m("",!0),t(s,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":r.chargemode.eco_charging.phases_to_use,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.eco_charging.phases_to_use")},{help:a(()=>[...e[72]||(e[72]=[u(' Hier kann eingestellt werden, ob Ladevorgänge mit einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um den verfügbaren Überschuss in die Fahrzeuge zu laden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen einer und mehreren Phasen (sog. 1p3p). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(s,{title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"Fahrzeug-SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":r.chargemode.eco_charging.limit.selected,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.eco_charging.limit.selected")},{help:a(()=>[...e[73]||(e[73]=[u(" Eco kann ohne Fahrzeug-SoC-Begrenzung (Aus), mit Begrenzung des Fahrzeug-SoC (SoC) bei konfiguriertem SoC-Auslesemodul oder mittels Vorgabe eine gewünschten Energiemenge in kWh (Energie) genutzt werden. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(E,{title:"SoC-Limit für das Fahrzeug",min:5,max:100,step:5,unit:"%","model-value":r.chargemode.eco_charging.limit.soc,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.eco_charging.limit.soc")},{help:a(()=>[...e[74]||(e[74]=[u(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(_,{title:"Energie-Limit",unit:"kWh",min:1,step:1,"model-value":r.chargemode.eco_charging.limit.amount/1e3,"onUpdate:modelValue":i=>n.updateState(d,i*1e3,"chargemode.eco_charging.limit.amount")},{help:a(()=>[...e[75]||(e[75]=[u(" Die geladene Energiemenge wird nach dem Anstecken neu gezählt. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),!n.$store.state.mqtt["openWB/optional/et/provider"]||!n.$store.state.mqtt["openWB/optional/et/provider"].type?(o(),f(V,{key:1,subtype:"warning"},{default:a(()=>[...e[76]||(e[76]=[u(" Bitte in den übergreifenden Ladeeinstellungen einen Strompreis-Anbieter konfigurieren. Ohne Strompreis-Anbieter wird im Modus Eco nur geladen, wenn Überschuss vorhanden ist. ",-1)])]),_:1,__:[76]})):m("",!0),t(_,{title:"Preisgrenze für strompreisbasiertes Laden",min:"-80",max:"80",step:"0.01",precision:2,unit:"ct/kWh","model-value":r.chargemode.eco_charging.max_price*1e5,"onUpdate:modelValue":i=>n.updateState(d,parseFloat((i/1e5).toFixed(7)),"chargemode.eco_charging.max_price")},null,8,["model-value","onUpdate:modelValue"])]),_:2},1536),t(P,{ref_for:!0,ref:`card-${d}-bidi_charging`,collapsible:!0,collapsed:!0,subtype:"secondary"},{header:a(()=>[...e[77]||(e[77]=[u(" Bidi ",-1)])]),default:a(()=>[t(h,null,{help:a(()=>[...e[78]||(e[78]=[u(" Wenn Ladepunkt und Fahrzeug bidirektionales Laden unterstützen, wird bis zum eingestellten SoC wie mit einem Ziellade-Plan geladen. Ist der eingestellte SoC erreicht und es ist Überschuss vorhanden, wird weiter geladen bis das SoC-Limit für das Fahrzeug erreicht ist. Wenn der eingestellte SoC erreicht wurde und es würde Bezug entstehen, wird eine Nullpunktausregelung gemacht, dh das Auto wird so entladen, dass möglichst weder Bezug noch Einspeisung entsteht. Unterstützen das Fahrzeug und/oder der Ladepunkt kein bidirektionales Laden, verhält sich dieser Lademodus wie Zielladen. ",-1)])]),default:a(()=>[e[79]||(e[79]=u("Arbeitsweise von Bidi ",-1))]),_:1,__:[79]}),t(E,{title:"Minimaler Entlade-SoC & SoC zur angegebenen Uhrzeit",min:5,max:100,step:5,unit:"%","model-value":r.chargemode.bidi_charging.plan.limit.soc_scheduled,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.bidi_charging.plan.limit.soc_scheduled")},{help:a(()=>[...e[80]||(e[80]=[u(' Es muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(E,{title:"Fahrzeug-SoC mit Überschuss",min:5,max:100,step:5,unit:"%","model-value":r.chargemode.bidi_charging.plan.limit.soc_limit,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.bidi_charging.plan.limit.soc_limit")},{help:a(()=>[...e[81]||(e[81]=[u(" Nach Erreichen des Ziel-SoCs wird mit Überschuss weiter geladen, bis das SoC-Limit erreicht wird. Sobald das SoC-Limit erreicht wurde, findet keine Ladung mehr mit Überschuss statt! ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(w,{title:"Ziel-Uhrzeit",subtype:"time","model-value":r.chargemode.bidi_charging.plan.time,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.bidi_charging.plan.time")},{help:a(()=>[...e[82]||(e[82]=[u(" Hier ist die gewünschte Uhrzeit einzustellen, zu welcher das Fahrzeug den gewünschten SoC BEREITS ERREICHT haben soll. ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(s,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":r.chargemode.bidi_charging.plan.frequency.selected,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.bidi_charging.plan.frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),r.chargemode.bidi_charging.plan.frequency.selected=="once"?(o(),f(w,{key:0,title:"Datum",subtype:"date","model-value":r.chargemode.bidi_charging.plan.frequency.once,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.bidi_charging.plan.frequency.once")},null,8,["model-value","onUpdate:modelValue"])):m("",!0),r.chargemode.bidi_charging.plan.frequency.selected=="weekly"?(o(),p("div",gn,[(o(!0),p(y,null,M(n.weekdays,(i,A)=>(o(),f(s,{key:A,title:i,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":r.chargemode.bidi_charging.plan.frequency.weekly[A],"onUpdate:modelValue":B=>n.updateState(d,B,"chargemode.bidi_charging.plan.frequency.weekly."+A)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):m("",!0),t(s,{title:"Strompreisbasiert Laden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.chargemode.bidi_charging.plan.et_active,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.bidi_charging.plan.et_active")},null,8,["model-value","onUpdate:modelValue"]),t(V,{subtype:"info"},{default:a(()=>[...e[83]||(e[83]=[u(" Die Norm IEC 61851-1 und ISO 15118 benötigen als Parameter eine Stromstärke und die Phasenzahl. Die Norm ISO 15118-20, die das bidirektionale Laden definiert, benötigt als Parameter eine Ladeleistung. Die Phasenzahl legt das Fahrzeug fest. Wenn Fahrzeug und Ladepunkt bidirektionales Laden nach ISO 15118-20 unterstützen, wird die eingestellte Ladeleistung verwendet. Wenn mindestens einer von beiden die Norm nicht unterstützt, wird der Ladestrom und die vorgegebene Phasenzahl für die Regelung verwendet. ",-1)])]),_:1,__:[83]}),t(E,{title:"Ladestrom"+(l.dcChargingEnabled?" (AC)":""),min:6,max:32,step:1,unit:"A","model-value":r.chargemode.bidi_charging.plan.current,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.bidi_charging.plan.current")},{help:a(()=>[...e[84]||(e[84]=[u(" Mit dieser Stromstärke wird der Zeitpunkt berechnet, wann die Ladung mit Netzbezug gestartet werden muss. Wird der Ziel-SoC nicht zum angegebenen Termin erreicht, weil z.B. das Auto erst später angesteckt wurde, wird auch mit einer höheren Stromstärke geladen. Um etwas Puffer zu haben, empfiehlt es sich, etwas weniger als die Maximalstromstärke des Fahrzeugs zu wählen. ",-1)])]),_:2},1032,["title","model-value","onUpdate:modelValue"]),t(s,{title:"Anzahl Phasen Zielladen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":r.chargemode.bidi_charging.plan.phases_to_use,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.bidi_charging.plan.phases_to_use")},{help:a(()=>[...e[85]||(e[85]=[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zielladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um das Ziel zu erreichen. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (sog. 1p3p). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(s,{title:"Anzahl Phasen bei PV-Überschuss",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":r.chargemode.bidi_charging.plan.phases_to_use_pv,"onUpdate:modelValue":i=>n.updateState(d,i,"chargemode.bidi_charging.plan.phases_to_use_pv")},{help:a(()=>[...e[86]||(e[86]=[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zielladen" bei Laden mit PV-Überschuss mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um das Ziel zu erreichen. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (sog. 1p3p). ',-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),e[87]||(e[87]=g("hr",null,null,-1)),t(_,{title:"Ladeleistung",min:.1,max:22,step:.1,unit:"kW","model-value":r.chargemode.bidi_charging.power/1e3,"onUpdate:modelValue":i=>n.updateState(d,i*1e3,"chargemode.bidi_charging.power")},null,8,["model-value","onUpdate:modelValue"])]),_:2,__:[87]},1536),t(P,{ref_for:!0,ref:`card-${d}-scheduled_charging`,collapsible:!0,collapsed:!0,subtype:"secondary"},{header:a(()=>[...e[88]||(e[88]=[u(" Ziel ",-1)])]),default:a(()=>[t(h,null,{actions:a(()=>[t(z,{class:"bg-success clickable",title:"Neuen Zielladen-Plan hinzufügen",onClick:F(i=>l.addChargeTemplateSchedulePlan(r.id),["stop"])},{default:a(()=>[t(b,{icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:a(()=>[...e[89]||(e[89]=[u(' Im Lademodus "Zielladen" wird der Ladestrom so angepasst, dass das Fahrzeug zum angegebenen Zeitpunkt den eingestellten SoC bzw. die einzuladende Energiemenge erreicht. Anhand des vorgegebenen Ladestroms wird der Zeitpunkt berechnet, an dem die Ladung spätestens starten muss.',-1),g("br",null,null,-1),u(' Ist der berechnete Zeitpunkt des Ladestarts noch nicht erreicht, wird mit Überschuss geladen. Auch nach Erreichen des Ziel-SoCs wird mit Überschuss geladen, solange bis das "SoC-Limit für das Fahrzeug" erreicht wird.',-1),g("br",null,null,-1),u(" Es wird nach den Vorgaben des Zeitplans geladen, dessen Zieltermin am nächsten liegt. Ist der Zielzeitpunkt vorbei, wird solange geladen bis, das Ziel erreicht oder das Auto abgesteckt wird. Wenn der Ziel-Termin des nächsten Plans innerhalb der nächsten 12 Stunden liegt, wird auf den nächsten Plan umgeschaltet. ",-1)])]),default:a(()=>[e[90]||(e[90]=u(" Zielladepläne ",-1))]),_:2,__:[90]},1024),r.chargemode.scheduled_charging.plans.length==0?(o(),f(V,{key:0,subtype:"info"},{default:a(()=>[...e[91]||(e[91]=[u(" Es wurden noch keine Pläne für das Zielladen angelegt. ",-1)])]),_:1,__:[91]})):m("",!0),(o(!0),p(y,null,M(r.chargemode.scheduled_charging.plans,(i,A)=>(o(),f(ne,{key:A,"model-value":i,"template-id":r.id,"dc-charging-enabled":l.dcChargingEnabled,"onUpdate:modelValue":B=>n.updateState(d,B,`chargemode.scheduled_charging.plans.${A}`),onSendCommand:e[3]||(e[3]=B=>n.$emit("sendCommand",B))},null,8,["model-value","template-id","dc-charging-enabled","onUpdate:modelValue"]))),128))]),_:2},1536),v.installAssistantActive?m("",!0):(o(),p("div",hn,[e[95]||(e[95]=g("hr",null,null,-1)),t(s,{title:"Zeitladen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":r.time_charging.active,"onUpdate:modelValue":i=>n.updateState(d,i,"time_charging.active")},{help:a(()=>[...e[92]||(e[92]=[g("p",null,' Der Lademodus Zeit kann parallel zu einem der anderen Lademodi aktiviert werden. Die Auswahl des Lademodus, der in der Regelung genutzt wird, erfolgt anhand der Übersicht in der Hilfe bei "Aktiver Lademodus". Wenn kein Zeitplan aktiv ist oder das Limit des Zeitplans erreicht wurde, wird der Lademodus verwendet, der bei "Aktiver Lademodus" ausgewählt ist. ',-1),g("p",null," Mit einem Zeitplan kann ein klar abgegrenzter Zeitbereich zum Fahrzeugladen definiert werden. Dies wird häufig genutzt, um einem Fahrzeug kurz vor der Abfahrt Strom anzubieten, damit dessen Vorklimatisierung nicht aus dem Fahrzeugakku, sondern aus der openWB bezogen wird (Enteisung, Vorwärmung, Abkühlung). Nicht von der Vorklimatisierung benötigter Strom erhöht dabei den Fahrzeug-SoC. Um das Stromnetz am Morgen nicht unnötig zu strapazieren, sollte eine moderate Stromvorgabe und ein beschränkter Zeitbereich vorgegeben werden (z.B. max. 10A; 30min - in Übereinstimmung mit den Fahrzeug-App-Vorklimatisierungsvorgaben). ",-1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),t(P,{ref_for:!0,ref:`card-${d}-scheduled_charging`,collapsible:!0,collapsed:!0,subtype:"secondary"},{header:a(()=>[...e[93]||(e[93]=[u(" Zeitladen-Pläne ",-1)])]),actions:a(()=>[t(z,{class:"bg-success clickable",title:"Neuen Zeitladen-Plan hinzufügen",onClick:F(i=>l.addChargeTemplateTimeChargingPlan(r.id),["stop"])},{default:a(()=>[t(b,{icon:["fas","plus"]})]),_:2},1032,["onClick"])]),default:a(()=>[(r.time_charging.plans??[]).length==0?(o(),f(V,{key:0,subtype:"info"},{default:a(()=>[...e[94]||(e[94]=[u(" Es wurden noch keine Pläne für das Zeitladen angelegt. ",-1)])]),_:1,__:[94]})):m("",!0),(o(!0),p(y,null,M(r.time_charging.plans??[],(i,A)=>(o(),f(te,{key:A,"model-value":i,"template-id":r.id,"dc-charging-enabled":l.dcChargingEnabled,"onUpdate:modelValue":B=>n.updateState(d,B,`time_charging.plans.${A}`),onSendCommand:e[4]||(e[4]=B=>n.$emit("sendCommand",B))},null,8,["model-value","template-id","dc-charging-enabled","onUpdate:modelValue"]))),128))]),_:2},1536)]))]),_:2},1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),t(le,{"form-name":"vehicleConfigForm",onSave:e[5]||(e[5]=r=>n.$emit("save")),onReset:e[6]||(e[6]=r=>n.$emit("reset")),onDefaults:e[7]||(e[7]=r=>n.$emit("defaults"))})])])],64)}const cn=q(je,[["render",pn],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/VehicleConfig.vue"]]),wn=Object.freeze(Object.defineProperty({__proto__:null,default:cn},Symbol.toStringTag,{value:"Module"}));export{be as V,cn as a,wn as b}; diff --git a/web/settings/assets/VehicleIdWikiHint-c0918982.js b/web/settings/assets/VehicleIdWikiHint-714fb4c5.js similarity index 88% rename from web/settings/assets/VehicleIdWikiHint-c0918982.js rename to web/settings/assets/VehicleIdWikiHint-714fb4c5.js index 3fa29f586e..9b00a82ebb 100644 --- a/web/settings/assets/VehicleIdWikiHint-c0918982.js +++ b/web/settings/assets/VehicleIdWikiHint-714fb4c5.js @@ -1 +1 @@ -import{_ as t,l as n,m as o,B as i,A as s}from"./vendor-25d394b4.js";const r={name:"VehicleIdWikiHint"},c={class:"vehicle-id-wiki-hint"};function a(p,e,l,d,h,_){return n(),o("div",c,e[0]||(e[0]=[i(" Bitte auch hiervon abhängige Einstellungen beachten. Eine Übersicht gibt es im ",-1),s("a",{href:"https://github.com/openWB/core/wiki/Identifikation",target:"_blank",rel:"noopener noreferrer"},"Wiki",-1),i(". ",-1)]))}const f=t(r,[["render",a],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/snippets/VehicleIdWikiHint.vue"]]);export{f as V}; +import{_ as t,l as n,m as o,B as i,A as s}from"./vendor-57e3a63c.js";const r={name:"VehicleIdWikiHint"},c={class:"vehicle-id-wiki-hint"};function a(p,e,l,d,h,_){return n(),o("div",c,e[0]||(e[0]=[i(" Bitte auch hiervon abhängige Einstellungen beachten. Eine Übersicht gibt es im ",-1),s("a",{href:"https://github.com/openWB/core/wiki/Identifikation",target:"_blank",rel:"noopener noreferrer"},"Wiki",-1),i(". ",-1)]))}const f=t(r,[["render",a],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/snippets/VehicleIdWikiHint.vue"]]);export{f as V}; diff --git a/web/settings/assets/backup_cloud-eb857b29.js b/web/settings/assets/backup_cloud-0ad9d8c7.js similarity index 81% rename from web/settings/assets/backup_cloud-eb857b29.js rename to web/settings/assets/backup_cloud-0ad9d8c7.js index e9daf90f1b..865a50e3f4 100644 --- a/web/settings/assets/backup_cloud-eb857b29.js +++ b/web/settings/assets/backup_cloud-0ad9d8c7.js @@ -1 +1 @@ -import{B as r}from"./DataManagement-93d69162.js";import{_ as i,u as s,l as p,m as d,G as t,E as m,B as a,A as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const b={name:"BackupCloudSamba",mixins:[r]},f={class:"backup-cloud-samba"};function g(o,e,v,C,c,k){const u=s("openwb-base-text-input");return p(),d("div",f,[t(u,{title:"Server",subtype:"host",required:"","model-value":o.backupCloud.configuration.smb_server,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.smb_server"))},null,8,["model-value"]),t(u,{title:"Freigabe",required:"","model-value":o.backupCloud.configuration.smb_share,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.smb_share"))},null,8,["model-value"]),t(u,{title:"Unterordner (optional)","model-value":o.backupCloud.configuration.smb_path,pattern:'(^\\/$)|(^([^\\\\:"\\|*?<>]+\\/)+$)',required:"","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.smb_path"))},{help:m(()=>e[5]||(e[5]=[a(" Jeder Unterordner muss mit / enden.",-1),l("br",null,null,-1),a(' Die Zeichen \\:"|*?<> sind verboten!',-1),l("br",null,null,-1),a(" Beispiel 1: openwb/ ",-1),l("br",null,null,-1),a(" Beispiel 2: openwb/lp2/ ",-1)])),_:1},8,["model-value"]),t(u,{title:"Benutzer",subtype:"user","model-value":o.backupCloud.configuration.smb_user,"onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.smb_user"))},null,8,["model-value"]),t(u,{title:"Kennwort",subtype:"password","model-value":o.backupCloud.configuration.smb_password,"onUpdate:modelValue":e[4]||(e[4]=n=>o.updateConfiguration(n,"configuration.smb_password"))},null,8,["model-value"])])}const E=i(b,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/samba/backup_cloud.vue"]]);export{E as default}; +import{B as r}from"./DataManagement-3531e291.js";import{_ as i,u as s,l as p,m as d,G as t,E as m,B as a,A as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const b={name:"BackupCloudSamba",mixins:[r]},f={class:"backup-cloud-samba"};function g(o,e,v,C,c,k){const u=s("openwb-base-text-input");return p(),d("div",f,[t(u,{title:"Server",subtype:"host",required:"","model-value":o.backupCloud.configuration.smb_server,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.smb_server"))},null,8,["model-value"]),t(u,{title:"Freigabe",required:"","model-value":o.backupCloud.configuration.smb_share,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.smb_share"))},null,8,["model-value"]),t(u,{title:"Unterordner (optional)","model-value":o.backupCloud.configuration.smb_path,pattern:'(^\\/$)|(^([^\\\\:"\\|*?<>]+\\/)+$)',required:"","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.smb_path"))},{help:m(()=>e[5]||(e[5]=[a(" Jeder Unterordner muss mit / enden.",-1),l("br",null,null,-1),a(' Die Zeichen \\:"|*?<> sind verboten!',-1),l("br",null,null,-1),a(" Beispiel 1: openwb/ ",-1),l("br",null,null,-1),a(" Beispiel 2: openwb/lp2/ ",-1)])),_:1},8,["model-value"]),t(u,{title:"Benutzer",subtype:"user","model-value":o.backupCloud.configuration.smb_user,"onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.smb_user"))},null,8,["model-value"]),t(u,{title:"Kennwort",subtype:"password","model-value":o.backupCloud.configuration.smb_password,"onUpdate:modelValue":e[4]||(e[4]=n=>o.updateConfiguration(n,"configuration.smb_password"))},null,8,["model-value"])])}const E=i(b,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/samba/backup_cloud.vue"]]);export{E as default}; diff --git a/web/settings/assets/backup_cloud-5a239921.js b/web/settings/assets/backup_cloud-5bddc3c8.js similarity index 69% rename from web/settings/assets/backup_cloud-5a239921.js rename to web/settings/assets/backup_cloud-5bddc3c8.js index 666bc1314d..7577604a56 100644 --- a/web/settings/assets/backup_cloud-5a239921.js +++ b/web/settings/assets/backup_cloud-5bddc3c8.js @@ -1 +1 @@ -import{B as r}from"./DataManagement-93d69162.js";import{_ as p,u,l as i,m as l,G as d,E as c,B as o,A as n}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const m={name:"BackupCloudNfs",mixins:[r]},f={class:"backup-cloud-nfs"};function _(t,e,b,k,v,B){const a=u("openwb-base-text-input");return i(),l("div",f,[d(a,{title:"Pfad zum NFS Share",pattern:"^([^/: ]+):(\\/[^/: ]+)+$",required:"","model-value":t.backupCloud.configuration.nfs_share,"onUpdate:modelValue":e[0]||(e[0]=s=>t.updateConfiguration(s,"configuration.nfs_share"))},{help:c(()=>e[1]||(e[1]=[o(" 1. IP basierter Pfad: 1.2.3.4:/pfad/zum/nfs-share",-1),n("br",null,null,-1),o(" 2. Host (FQDN) basierter Pfad: backupserver.domain.net:/pfad/zum/nfs-share",-1),n("br",null,null,-1),o(" Bitte entgegen der Syntax das Protokoll nicht davor schreiben. Falsch wäre, “nfs://” davor zu setzen. ",-1)])),_:1},8,["model-value"])])}const V=p(m,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/nfs/backup_cloud.vue"]]);export{V as default}; +import{B as r}from"./DataManagement-3531e291.js";import{_ as p,u,l as i,m as l,G as d,E as c,B as o,A as n}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const m={name:"BackupCloudNfs",mixins:[r]},f={class:"backup-cloud-nfs"};function _(t,e,b,k,v,B){const a=u("openwb-base-text-input");return i(),l("div",f,[d(a,{title:"Pfad zum NFS Share",pattern:"^([^/: ]+):(\\/[^/: ]+)+$",required:"","model-value":t.backupCloud.configuration.nfs_share,"onUpdate:modelValue":e[0]||(e[0]=s=>t.updateConfiguration(s,"configuration.nfs_share"))},{help:c(()=>e[1]||(e[1]=[o(" 1. IP basierter Pfad: 1.2.3.4:/pfad/zum/nfs-share",-1),n("br",null,null,-1),o(" 2. Host (FQDN) basierter Pfad: backupserver.domain.net:/pfad/zum/nfs-share",-1),n("br",null,null,-1),o(" Bitte entgegen der Syntax das Protokoll nicht davor schreiben. Falsch wäre, “nfs://” davor zu setzen. ",-1)])),_:1},8,["model-value"])])}const V=p(m,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/nfs/backup_cloud.vue"]]);export{V as default}; diff --git a/web/settings/assets/backup_cloud-ff9029f2.js b/web/settings/assets/backup_cloud-86207a2a.js similarity index 76% rename from web/settings/assets/backup_cloud-ff9029f2.js rename to web/settings/assets/backup_cloud-86207a2a.js index 469dbe094e..34fca26402 100644 --- a/web/settings/assets/backup_cloud-ff9029f2.js +++ b/web/settings/assets/backup_cloud-86207a2a.js @@ -1 +1 @@ -import{B as a}from"./DataManagement-93d69162.js";import{_ as s,u as r,l,m as i,G as n,E as d,B as p}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const m={name:"BackupCloudNextCloud",mixins:[a]},c={class:"backup-cloud-next-cloud"};function f(o,e,b,k,C,g){const u=r("openwb-base-text-input");return l(),i("div",c,[n(u,{title:"Cloud-URL",subtype:"url",required:"","model-value":o.backupCloud.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},{help:d(()=>e[3]||(e[3]=[p(" Die Cloud-URL wird in der Form 'https://nextcloud-url' und Benutzername im Eingabefeld oder mit Zugangstoken erwartet. Die URL kann je nach NextCloud Installation so 'https://nextcloud-url/s/user_token' oder so 'https://nextcloud-url/index.php/s/user_token' aussehen. ",-1)])),_:1},8,["model-value"]),n(u,{title:"Benutzername",subtype:"user","model-value":o.backupCloud.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(u,{title:"Passwort",subtype:"password","model-value":o.backupCloud.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const y=s(m,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/nextcloud/backup_cloud.vue"]]);export{y as default}; +import{B as a}from"./DataManagement-3531e291.js";import{_ as s,u as r,l,m as i,G as n,E as d,B as p}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const m={name:"BackupCloudNextCloud",mixins:[a]},c={class:"backup-cloud-next-cloud"};function f(o,e,b,k,C,g){const u=r("openwb-base-text-input");return l(),i("div",c,[n(u,{title:"Cloud-URL",subtype:"url",required:"","model-value":o.backupCloud.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},{help:d(()=>e[3]||(e[3]=[p(" Die Cloud-URL wird in der Form 'https://nextcloud-url' und Benutzername im Eingabefeld oder mit Zugangstoken erwartet. Die URL kann je nach NextCloud Installation so 'https://nextcloud-url/s/user_token' oder so 'https://nextcloud-url/index.php/s/user_token' aussehen. ",-1)])),_:1},8,["model-value"]),n(u,{title:"Benutzername",subtype:"user","model-value":o.backupCloud.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(u,{title:"Passwort",subtype:"password","model-value":o.backupCloud.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const y=s(m,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/nextcloud/backup_cloud.vue"]]);export{y as default}; diff --git a/web/settings/assets/backup_cloud-464f53c3.js b/web/settings/assets/backup_cloud-f0c12d69.js similarity index 89% rename from web/settings/assets/backup_cloud-464f53c3.js rename to web/settings/assets/backup_cloud-f0c12d69.js index 1d5cc62783..3fd4c04e3a 100644 --- a/web/settings/assets/backup_cloud-464f53c3.js +++ b/web/settings/assets/backup_cloud-f0c12d69.js @@ -1 +1 @@ -import{B as c}from"./DataManagement-93d69162.js";import{_ as m,u as a,l as b,m as f,G as t,E as r,B as n,A as i}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"BackupCloudOneDrive",mixins:[c]},v={class:"backup-cloud-one-drive"};function k(o,e,h,w,B,_){const d=a("openwb-base-alert"),u=a("openwb-base-text-input"),p=a("openwb-base-heading"),l=a("openwb-base-button-input");return b(),f("div",v,[t(d,{subtype:"info"},{default:r(()=>e[3]||(e[3]=[n(" Zum Abruf der Zugangsberechtigung bitte die Konfiguration speichern, dann die Schritte 1-4 durchführen und danach die Konfiguration erneut speichern. ",-1),i("br",null,null,-1),n(" Auth Code und URL werden nur einmal benötigt werden nach erfolgreicher Autorisierung wieder gelöscht. ",-1)])),_:1,__:[3]}),t(u,{title:"Backupverzeichnis in OneDrive",subtype:"text",required:"",pattern:"^/(.*/)*","model-value":o.backupCloud.configuration.backuppath,"onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.backuppath"))},{help:r(()=>e[4]||(e[4]=[n(" In diesem Verzeichnis werden die Backupdateien erstellt. Bitte den Pfad mit / beenden. ",-1),i("br",null,null,-1),n(" Beispiel: /openWB/Backup/ ",-1)])),_:1},8,["model-value"]),t(u,{title:"Anmeldedaten auf openWB gespeichert",readonly:"","model-value":o.backupCloud.configuration.persistent_tokencache?"Ja":"Nein"},null,8,["model-value"]),t(p,null,{default:r(()=>e[5]||(e[5]=[n(" Zugang zu OneDrive für diese openWB autorisieren ",-1)])),_:1,__:[5]}),t(l,{title:"1. Anmeldeanforderung erstellen","button-text":"Autorisierungs-Code anfordern",subtype:"success",onButtonClicked:e[1]||(e[1]=s=>o.sendSystemCommand("requestMSALAuthCode",{}))},{help:r(()=>e[6]||(e[6]=[n(" Es werden Zugangstokens für OneDrive angefordert. Diese werden nur lokal auf dieser openWB gespeichert. Genutzt wird Device Flow mit public application.",-1),i("br",null,null,-1),n(" Weitere Infos:",-1),i("br",null,null,-1),i("a",{href:"https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code",target:"_blank",rel:"noopener noreferrer"},"https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code",-1),i("a",{href:"https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-client-applications",target:"_blank",rel:"noopener noreferrer"},"https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-client-applications",-1)])),_:1}),t(u,{title:"2. Diesen Code kopieren",subtype:"text",readonly:"","model-value":o.backupCloud.configuration.authcode},null,8,["model-value"]),t(u,{title:"3. Anmelde-URL aufrufen",subtype:"url",readonly:"","model-value":o.backupCloud.configuration.authurl},{help:r(()=>e[7]||(e[7]=[n(" Diese URL im Browser öffnen und den Code eingeben. Dies erzeugt die notwendigen Zugangsberechtigung für diese openWB. ",-1)])),_:1},8,["model-value"]),t(l,{title:"4. Token abrufen und speichern","button-text":"Autorisierungs-Token abrufen",subtype:"success",onButtonClicked:e[2]||(e[2]=s=>o.sendSystemCommand("retrieveMSALTokens",{}))},{help:r(()=>e[8]||(e[8]=[n(" Zugangstoken wird abgerufen und gespeichert, damit das Backup durchgeführt werden kann. Zugangstoken werden nur lokal auf dieser openWB gespeichert. ",-1)])),_:1})])}const L=m(g,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/onedrive/backup_cloud.vue"]]);export{L as default}; +import{B as c}from"./DataManagement-3531e291.js";import{_ as m,u as a,l as b,m as f,G as t,E as r,B as n,A as i}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"BackupCloudOneDrive",mixins:[c]},v={class:"backup-cloud-one-drive"};function k(o,e,h,w,B,_){const d=a("openwb-base-alert"),u=a("openwb-base-text-input"),p=a("openwb-base-heading"),l=a("openwb-base-button-input");return b(),f("div",v,[t(d,{subtype:"info"},{default:r(()=>e[3]||(e[3]=[n(" Zum Abruf der Zugangsberechtigung bitte die Konfiguration speichern, dann die Schritte 1-4 durchführen und danach die Konfiguration erneut speichern. ",-1),i("br",null,null,-1),n(" Auth Code und URL werden nur einmal benötigt werden nach erfolgreicher Autorisierung wieder gelöscht. ",-1)])),_:1,__:[3]}),t(u,{title:"Backupverzeichnis in OneDrive",subtype:"text",required:"",pattern:"^/(.*/)*","model-value":o.backupCloud.configuration.backuppath,"onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.backuppath"))},{help:r(()=>e[4]||(e[4]=[n(" In diesem Verzeichnis werden die Backupdateien erstellt. Bitte den Pfad mit / beenden. ",-1),i("br",null,null,-1),n(" Beispiel: /openWB/Backup/ ",-1)])),_:1},8,["model-value"]),t(u,{title:"Anmeldedaten auf openWB gespeichert",readonly:"","model-value":o.backupCloud.configuration.persistent_tokencache?"Ja":"Nein"},null,8,["model-value"]),t(p,null,{default:r(()=>e[5]||(e[5]=[n(" Zugang zu OneDrive für diese openWB autorisieren ",-1)])),_:1,__:[5]}),t(l,{title:"1. Anmeldeanforderung erstellen","button-text":"Autorisierungs-Code anfordern",subtype:"success",onButtonClicked:e[1]||(e[1]=s=>o.sendSystemCommand("requestMSALAuthCode",{}))},{help:r(()=>e[6]||(e[6]=[n(" Es werden Zugangstokens für OneDrive angefordert. Diese werden nur lokal auf dieser openWB gespeichert. Genutzt wird Device Flow mit public application.",-1),i("br",null,null,-1),n(" Weitere Infos:",-1),i("br",null,null,-1),i("a",{href:"https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code",target:"_blank",rel:"noopener noreferrer"},"https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code",-1),i("a",{href:"https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-client-applications",target:"_blank",rel:"noopener noreferrer"},"https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-client-applications",-1)])),_:1}),t(u,{title:"2. Diesen Code kopieren",subtype:"text",readonly:"","model-value":o.backupCloud.configuration.authcode},null,8,["model-value"]),t(u,{title:"3. Anmelde-URL aufrufen",subtype:"url",readonly:"","model-value":o.backupCloud.configuration.authurl},{help:r(()=>e[7]||(e[7]=[n(" Diese URL im Browser öffnen und den Code eingeben. Dies erzeugt die notwendigen Zugangsberechtigung für diese openWB. ",-1)])),_:1},8,["model-value"]),t(l,{title:"4. Token abrufen und speichern","button-text":"Autorisierungs-Token abrufen",subtype:"success",onButtonClicked:e[2]||(e[2]=s=>o.sendSystemCommand("retrieveMSALTokens",{}))},{help:r(()=>e[8]||(e[8]=[n(" Zugangstoken wird abgerufen und gespeichert, damit das Backup durchgeführt werden kann. Zugangstoken werden nur lokal auf dieser openWB gespeichert. ",-1)])),_:1})])}const L=m(g,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/onedrive/backup_cloud.vue"]]);export{L as default}; diff --git a/web/settings/assets/bat-930b195f.js b/web/settings/assets/bat-075b7870.js similarity index 94% rename from web/settings/assets/bat-930b195f.js rename to web/settings/assets/bat-075b7870.js index 89ed87c3a0..ea9ead53f3 100644 --- a/web/settings/assets/bat-930b195f.js +++ b/web/settings/assets/bat-075b7870.js @@ -1 +1 @@ -import{C as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as d,l as p,m as g,G as l,E as i,B as n,A as a}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const h={name:"DeviceHttpBat",mixins:[u]},b={class:"device-http-bat"};function f(t,e,w,v,k,S){const s=d("openwb-base-heading"),o=d("openwb-base-text-input");return p(),g("div",b,[l(s,null,{default:i(()=>e[7]||(e[7]=[n(" Einstellungen für Http Batteriespeicher ",-1)])),_:1,__:[7]}),l(o,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":t.component.configuration.power_path,"onUpdate:modelValue":e[0]||(e[0]=r=>t.updateConfiguration(r,"configuration.power_path"))},{help:i(()=>e[8]||(e[8]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ",-1)])),_:1},8,["model-value"]),l(o,{title:"Pfad für Ladestand",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":t.component.configuration.soc_path,"onUpdate:modelValue":e[1]||(e[1]=r=>t.updateConfiguration(r,"configuration.soc_path"))},{help:i(()=>e[9]||(e[9]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen Ladestand (SoC) in Prozent darstellt. ",-1)])),_:1},8,["model-value"]),l(o,{title:"Pfad für Strom Phase 1",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.current_l1_path,"onUpdate:modelValue":e[2]||(e[2]=r=>t.updateConfiguration(r,"configuration.current_l1_path"))},{help:i(()=>e[10]||(e[10]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 1. Phase in Ampere darstellt.",-1),a("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"]),l(o,{title:"Pfad für Strom Phase 2",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.current_l2_path,"onUpdate:modelValue":e[3]||(e[3]=r=>t.updateConfiguration(r,"configuration.current_l2_path"))},{help:i(()=>e[11]||(e[11]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 2. Phase in Ampere darstellt.",-1),a("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"]),l(o,{title:"Pfad für Strom Phase 3",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.current_l3_path,"onUpdate:modelValue":e[4]||(e[4]=r=>t.updateConfiguration(r,"configuration.current_l3_path"))},{help:i(()=>e[12]||(e[12]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 3. Phase in Ampere darstellt.",-1),a("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"]),l(o,{title:"Pfad für Zählerstand laden",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.imported_path,"onUpdate:modelValue":e[5]||(e[5]=r=>t.updateConfiguration(r,"configuration.imported_path"))},{help:i(()=>e[13]||(e[13]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt. ",-1)])),_:1},8,["model-value"]),l(o,{title:"Pfad für Zählerstand entladen",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.exported_path,"onUpdate:modelValue":e[6]||(e[6]=r=>t.updateConfiguration(r,"configuration.exported_path"))},{help:i(()=>e[14]||(e[14]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt.",-1),a("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"])])}const C=m(h,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/http/bat.vue"]]);export{C as default}; +import{C as u}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as d,l as p,m as g,G as l,E as i,B as n,A as a}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const h={name:"DeviceHttpBat",mixins:[u]},b={class:"device-http-bat"};function f(t,e,w,v,k,S){const s=d("openwb-base-heading"),o=d("openwb-base-text-input");return p(),g("div",b,[l(s,null,{default:i(()=>e[7]||(e[7]=[n(" Einstellungen für Http Batteriespeicher ",-1)])),_:1,__:[7]}),l(o,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":t.component.configuration.power_path,"onUpdate:modelValue":e[0]||(e[0]=r=>t.updateConfiguration(r,"configuration.power_path"))},{help:i(()=>e[8]||(e[8]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ",-1)])),_:1},8,["model-value"]),l(o,{title:"Pfad für Ladestand",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":t.component.configuration.soc_path,"onUpdate:modelValue":e[1]||(e[1]=r=>t.updateConfiguration(r,"configuration.soc_path"))},{help:i(()=>e[9]||(e[9]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen Ladestand (SoC) in Prozent darstellt. ",-1)])),_:1},8,["model-value"]),l(o,{title:"Pfad für Strom Phase 1",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.current_l1_path,"onUpdate:modelValue":e[2]||(e[2]=r=>t.updateConfiguration(r,"configuration.current_l1_path"))},{help:i(()=>e[10]||(e[10]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 1. Phase in Ampere darstellt.",-1),a("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"]),l(o,{title:"Pfad für Strom Phase 2",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.current_l2_path,"onUpdate:modelValue":e[3]||(e[3]=r=>t.updateConfiguration(r,"configuration.current_l2_path"))},{help:i(()=>e[11]||(e[11]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 2. Phase in Ampere darstellt.",-1),a("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"]),l(o,{title:"Pfad für Strom Phase 3",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.current_l3_path,"onUpdate:modelValue":e[4]||(e[4]=r=>t.updateConfiguration(r,"configuration.current_l3_path"))},{help:i(()=>e[12]||(e[12]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 3. Phase in Ampere darstellt.",-1),a("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"]),l(o,{title:"Pfad für Zählerstand laden",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.imported_path,"onUpdate:modelValue":e[5]||(e[5]=r=>t.updateConfiguration(r,"configuration.imported_path"))},{help:i(()=>e[13]||(e[13]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt. ",-1)])),_:1},8,["model-value"]),l(o,{title:"Pfad für Zählerstand entladen",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.exported_path,"onUpdate:modelValue":e[6]||(e[6]=r=>t.updateConfiguration(r,"configuration.exported_path"))},{help:i(()=>e[14]||(e[14]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt.",-1),a("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"])])}const C=m(h,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/http/bat.vue"]]);export{C as default}; diff --git a/web/settings/assets/bat-dbd31d7f.js b/web/settings/assets/bat-08ccd434.js similarity index 63% rename from web/settings/assets/bat-dbd31d7f.js rename to web/settings/assets/bat-08ccd434.js index b47c8f27f1..d1e29b1756 100644 --- a/web/settings/assets/bat-dbd31d7f.js +++ b/web/settings/assets/bat-08ccd434.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as n,l as m,m as u,G as t,E as d,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceVictronBat",mixins:[a]},_={class:"device-victron-bat"};function b(o,e,f,v,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return m(),u("div",_,[t(i,null,{default:d(()=>e[1]||(e[1]=[c(" Einstellungen für Victron Batteriespeicher ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const M=p(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/victron/bat.vue"]]);export{M as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as n,l as m,m as u,G as t,E as d,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceVictronBat",mixins:[a]},_={class:"device-victron-bat"};function b(o,e,f,v,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return m(),u("div",_,[t(i,null,{default:d(()=>e[1]||(e[1]=[c(" Einstellungen für Victron Batteriespeicher ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const M=p(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/victron/bat.vue"]]);export{M as default}; diff --git a/web/settings/assets/bat-e91cb1d1.js b/web/settings/assets/bat-18b93404.js similarity index 66% rename from web/settings/assets/bat-e91cb1d1.js rename to web/settings/assets/bat-18b93404.js index 01d0813a25..7a0606d132 100644 --- a/web/settings/assets/bat-e91cb1d1.js +++ b/web/settings/assets/bat-18b93404.js @@ -1 +1 @@ -import{C as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as n,l as u,m as l,G as t,E as i,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceSigenergyBat",mixins:[m]},_={class:"device-sigenergy-bat"};function b(o,e,c,f,v,w){const r=n("openwb-base-heading"),a=n("openwb-base-number-input");return u(),l("div",_,[t(r,null,{default:i(()=>e[1]||(e[1]=[s(" Einstellungen für Sigenergy Batteriespeicher ",-1)])),_:1,__:[1]}),t(a,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.modbus_id"))},{help:i(()=>e[2]||(e[2]=[s(" Die Standard-Modbus-ID von Sigenergy ist 247 ",-1)])),_:1},8,["model-value"])])}const V=d(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sigenergy/sigenergy/bat.vue"]]);export{V as default}; +import{C as m}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as n,l as u,m as l,G as t,E as i,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceSigenergyBat",mixins:[m]},_={class:"device-sigenergy-bat"};function b(o,e,c,f,v,w){const r=n("openwb-base-heading"),a=n("openwb-base-number-input");return u(),l("div",_,[t(r,null,{default:i(()=>e[1]||(e[1]=[s(" Einstellungen für Sigenergy Batteriespeicher ",-1)])),_:1,__:[1]}),t(a,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.modbus_id"))},{help:i(()=>e[2]||(e[2]=[s(" Die Standard-Modbus-ID von Sigenergy ist 247 ",-1)])),_:1},8,["model-value"])])}const V=d(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sigenergy/sigenergy/bat.vue"]]);export{V as default}; diff --git a/web/settings/assets/bat-49fe7df0.js b/web/settings/assets/bat-1b4b9f24.js similarity index 63% rename from web/settings/assets/bat-49fe7df0.js rename to web/settings/assets/bat-1b4b9f24.js index f2a249ec65..c121f78cac 100644 --- a/web/settings/assets/bat-49fe7df0.js +++ b/web/settings/assets/bat-1b4b9f24.js @@ -1 +1 @@ -import{C as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as n,l as m,m as l,G as t,E as u,B as d}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSolisBat",mixins:[r]},c={class:"device-solis-bat"};function b(o,e,f,v,g,w){const i=n("openwb-base-heading"),s=n("openwb-base-number-input");return m(),l("div",c,[t(i,null,{default:u(()=>e[1]||(e[1]=[d(" Einstellungen für Solis Batteriespeicher ",-1)])),_:1,__:[1]}),t(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.modbus_id"))},null,8,["model-value"])])}const M=p(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solis/solis/bat.vue"]]);export{M as default}; +import{C as r}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as n,l as m,m as l,G as t,E as u,B as d}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSolisBat",mixins:[r]},c={class:"device-solis-bat"};function b(o,e,f,v,g,w){const i=n("openwb-base-heading"),s=n("openwb-base-number-input");return m(),l("div",c,[t(i,null,{default:u(()=>e[1]||(e[1]=[d(" Einstellungen für Solis Batteriespeicher ",-1)])),_:1,__:[1]}),t(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.modbus_id"))},null,8,["model-value"])])}const M=p(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solis/solis/bat.vue"]]);export{M as default}; diff --git a/web/settings/assets/bat-493fcb15.js b/web/settings/assets/bat-211344ee.js similarity index 67% rename from web/settings/assets/bat-493fcb15.js rename to web/settings/assets/bat-211344ee.js index 08ca078874..ae60f7800e 100644 --- a/web/settings/assets/bat-493fcb15.js +++ b/web/settings/assets/bat-211344ee.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as r,u as o,l,m as u,G as n,E as m,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceOpenwbEvukitBat",mixins:[a]},_={class:"device-openwb-evukit-bat"};function v(t,e,b,f,w,g){const i=o("openwb-base-heading"),s=o("openwb-base-select-input");return l(),u("div",_,[n(i,null,{default:m(()=>e[1]||(e[1]=[c(" Einstellungen für openWB EVU-Kit Batteriespeicher ",-1)])),_:1,__:[1]}),n(s,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":t.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=p=>t.updateConfiguration(p,"configuration.version"))},null,8,["model-value"])])}const $=r(d,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_evu_kit/bat.vue"]]);export{$ as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as r,u as o,l,m as u,G as n,E as m,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceOpenwbEvukitBat",mixins:[a]},_={class:"device-openwb-evukit-bat"};function v(t,e,b,f,w,g){const i=o("openwb-base-heading"),s=o("openwb-base-select-input");return l(),u("div",_,[n(i,null,{default:m(()=>e[1]||(e[1]=[c(" Einstellungen für openWB EVU-Kit Batteriespeicher ",-1)])),_:1,__:[1]}),n(s,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":t.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=p=>t.updateConfiguration(p,"configuration.version"))},null,8,["model-value"])])}const $=r(d,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_evu_kit/bat.vue"]]);export{$ as default}; diff --git a/web/settings/assets/bat-db1242e4.js b/web/settings/assets/bat-45b65bea.js similarity index 64% rename from web/settings/assets/bat-db1242e4.js rename to web/settings/assets/bat-45b65bea.js index 52c6a87d77..79a0b43651 100644 --- a/web/settings/assets/bat-db1242e4.js +++ b/web/settings/assets/bat-45b65bea.js @@ -1 +1 @@ -import{C as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as o,l as m,m as u,G as t,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSunnyIslandBat",mixins:[r]},c={class:"device-sunnyisland-bat"};function b(n,e,f,v,g,w){const s=o("openwb-base-heading"),i=o("openwb-base-number-input");return m(),u("div",c,[t(s,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Sunny Island Batteriespeicher ",-1)])),_:1,__:[1]}),t(i,{title:"Modbus ID",required:"","model-value":n.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>n.updateConfiguration(a,"configuration.modbus_id"))},null,8,["model-value"])])}const k=p(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_island/bat.vue"]]);export{k as default}; +import{C as r}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as o,l as m,m as u,G as t,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSunnyIslandBat",mixins:[r]},c={class:"device-sunnyisland-bat"};function b(n,e,f,v,g,w){const s=o("openwb-base-heading"),i=o("openwb-base-number-input");return m(),u("div",c,[t(s,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Sunny Island Batteriespeicher ",-1)])),_:1,__:[1]}),t(i,{title:"Modbus ID",required:"","model-value":n.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>n.updateConfiguration(a,"configuration.modbus_id"))},null,8,["model-value"])])}const k=p(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_island/bat.vue"]]);export{k as default}; diff --git a/web/settings/assets/bat-efbd5e7a.js b/web/settings/assets/bat-48f193a8.js similarity index 63% rename from web/settings/assets/bat-efbd5e7a.js rename to web/settings/assets/bat-48f193a8.js index efdcc940ee..c6347ee244 100644 --- a/web/settings/assets/bat-efbd5e7a.js +++ b/web/settings/assets/bat-48f193a8.js @@ -1 +1 @@ -import{C as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as n,l as m,m as u,G as t,E as d,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceFoxEssBat",mixins:[r]},c={class:"device-fox_ess-bat"};function b(o,e,f,x,v,g){const s=n("openwb-base-heading"),i=n("openwb-base-number-input");return m(),u("div",c,[t(s,null,{default:d(()=>e[1]||(e[1]=[_(" Einstellungen für FoxEss Batteriespeicher ",-1)])),_:1,__:[1]}),t(i,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.modbus_id"))},null,8,["model-value"])])}const F=p(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fox_ess/fox_ess/bat.vue"]]);export{F as default}; +import{C as r}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as n,l as m,m as u,G as t,E as d,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceFoxEssBat",mixins:[r]},c={class:"device-fox_ess-bat"};function b(o,e,f,x,v,g){const s=n("openwb-base-heading"),i=n("openwb-base-number-input");return m(),u("div",c,[t(s,null,{default:d(()=>e[1]||(e[1]=[_(" Einstellungen für FoxEss Batteriespeicher ",-1)])),_:1,__:[1]}),t(i,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.modbus_id"))},null,8,["model-value"])])}const F=p(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fox_ess/fox_ess/bat.vue"]]);export{F as default}; diff --git a/web/settings/assets/bat-94a28e10.js b/web/settings/assets/bat-64f6b92b.js similarity index 63% rename from web/settings/assets/bat-94a28e10.js rename to web/settings/assets/bat-64f6b92b.js index e647c7d230..8a1aafb5ae 100644 --- a/web/settings/assets/bat-94a28e10.js +++ b/web/settings/assets/bat-64f6b92b.js @@ -1 +1 @@ -import{C as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as n,l as m,m as d,G as t,E as u,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceDeyeBat",mixins:[r]},c={class:"device-deye-bat"};function b(o,e,f,v,g,w){const i=n("openwb-base-heading"),s=n("openwb-base-number-input");return m(),d("div",c,[t(i,null,{default:u(()=>e[1]||(e[1]=[l(" Einstellungen für Deye Batteriespeicher ",-1)])),_:1,__:[1]}),t(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.modbus_id"))},null,8,["model-value"])])}const k=p(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/deye/bat.vue"]]);export{k as default}; +import{C as r}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as n,l as m,m as d,G as t,E as u,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceDeyeBat",mixins:[r]},c={class:"device-deye-bat"};function b(o,e,f,v,g,w){const i=n("openwb-base-heading"),s=n("openwb-base-number-input");return m(),d("div",c,[t(i,null,{default:u(()=>e[1]||(e[1]=[l(" Einstellungen für Deye Batteriespeicher ",-1)])),_:1,__:[1]}),t(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.modbus_id"))},null,8,["model-value"])])}const k=p(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/deye/bat.vue"]]);export{k as default}; diff --git a/web/settings/assets/bat-5cd17a97.js b/web/settings/assets/bat-77274805.js similarity index 63% rename from web/settings/assets/bat-5cd17a97.js rename to web/settings/assets/bat-77274805.js index d0570e9987..278d490544 100644 --- a/web/settings/assets/bat-5cd17a97.js +++ b/web/settings/assets/bat-77274805.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as n,l as m,m as u,G as t,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceFroniusBat",mixins:[a]},c={class:"device-fronius-bat"};function f(o,e,b,v,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return m(),u("div",c,[t(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Fronius Batteriespeicher ",-1)])),_:1,__:[1]}),t(r,{title:"Meter ID",required:"",min:"0",max:"65535","model-value":o.component.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.meter_id"))},null,8,["model-value"])])}const F=p(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/fronius/bat.vue"]]);export{F as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as n,l as m,m as u,G as t,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceFroniusBat",mixins:[a]},c={class:"device-fronius-bat"};function f(o,e,b,v,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return m(),u("div",c,[t(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Fronius Batteriespeicher ",-1)])),_:1,__:[1]}),t(r,{title:"Meter ID",required:"",min:"0",max:"65535","model-value":o.component.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.meter_id"))},null,8,["model-value"])])}const F=p(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/fronius/bat.vue"]]);export{F as default}; diff --git a/web/settings/assets/bat-21979bf2.js b/web/settings/assets/bat-8d51e9b6.js similarity index 72% rename from web/settings/assets/bat-21979bf2.js rename to web/settings/assets/bat-8d51e9b6.js index 43a3d90018..b4f7fa6f5e 100644 --- a/web/settings/assets/bat-21979bf2.js +++ b/web/settings/assets/bat-8d51e9b6.js @@ -1 +1 @@ -import{C as l}from"./HardwareInstallation-b7e2b58c.js";import{_ as r,u as t,l as u,m,G as i,E as d,B as b}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceOpenwbFlexBat",mixins:[l]},_={class:"device-openwb-flex-bat"};function f(o,e,v,w,g,x){const a=t("openwb-base-heading"),p=t("openwb-base-select-input"),s=t("openwb-base-number-input");return u(),m("div",_,[i(a,null,{default:d(()=>e[2]||(e[2]=[b(" Einstellungen für openWB-Flex Batteriespeicher ",-1)])),_:1,__:[2]}),i(p,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":o.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.version"))},null,8,["model-value"]),i(s,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":o.component.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.id"))},null,8,["model-value"])])}const k=r(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_flex/bat.vue"]]);export{k as default}; +import{C as l}from"./HardwareInstallation-0c77715a.js";import{_ as r,u as t,l as u,m,G as i,E as d,B as b}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceOpenwbFlexBat",mixins:[l]},_={class:"device-openwb-flex-bat"};function f(o,e,v,w,g,x){const a=t("openwb-base-heading"),p=t("openwb-base-select-input"),s=t("openwb-base-number-input");return u(),m("div",_,[i(a,null,{default:d(()=>e[2]||(e[2]=[b(" Einstellungen für openWB-Flex Batteriespeicher ",-1)])),_:1,__:[2]}),i(p,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":o.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.version"))},null,8,["model-value"]),i(s,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":o.component.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.id"))},null,8,["model-value"])])}const k=r(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_flex/bat.vue"]]);export{k as default}; diff --git a/web/settings/assets/bat-1e0787a5.js b/web/settings/assets/bat-9dc30682.js similarity index 69% rename from web/settings/assets/bat-1e0787a5.js rename to web/settings/assets/bat-9dc30682.js index 77d5fcabc4..13a9d66f3f 100644 --- a/web/settings/assets/bat-1e0787a5.js +++ b/web/settings/assets/bat-9dc30682.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as p,l as t,m as u,x as i,E as o,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSonnenbatterieBat",mixins:[a]},m={class:"device-sonnenbatterie-bat"};function _(s,e,f,v,b,l){const n=p("openwb-base-alert");return t(),u("div",m,[s.device.configuration.variant===3?(t(),i(n,{key:0,subtype:"info"},{default:o(()=>e[0]||(e[0]=[r(" Die Batterie lässt sich aktiv durch openWB steuern, da die JSON-API v2 verwendet wird. Dazu muss zwingend ein gültiges API-Token eingetragen sein. ",-1)])),_:1,__:[0]})):(t(),i(n,{key:1,subtype:"info"},{default:o(()=>e[1]||(e[1]=[r(" Die Batterie kann nicht aktiv durch openWB gesteuert werden, da die konfigurierte Datenverbindung dies nicht unterstützt. Es wird für die aktive Steuerung zwingend die 'JSON-API v2' benötigt. ",-1)])),_:1,__:[1]}))])}const z=d(c,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnen/sonnenbatterie/bat.vue"]]);export{z as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as p,l as t,m as u,x as i,E as o,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSonnenbatterieBat",mixins:[a]},m={class:"device-sonnenbatterie-bat"};function _(s,e,f,v,b,l){const n=p("openwb-base-alert");return t(),u("div",m,[s.device.configuration.variant===3?(t(),i(n,{key:0,subtype:"info"},{default:o(()=>e[0]||(e[0]=[r(" Die Batterie lässt sich aktiv durch openWB steuern, da die JSON-API v2 verwendet wird. Dazu muss zwingend ein gültiges API-Token eingetragen sein. ",-1)])),_:1,__:[0]})):(t(),i(n,{key:1,subtype:"info"},{default:o(()=>e[1]||(e[1]=[r(" Die Batterie kann nicht aktiv durch openWB gesteuert werden, da die konfigurierte Datenverbindung dies nicht unterstützt. Es wird für die aktive Steuerung zwingend die 'JSON-API v2' benötigt. ",-1)])),_:1,__:[1]}))])}const z=d(c,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnen/sonnenbatterie/bat.vue"]]);export{z as default}; diff --git a/web/settings/assets/bat-2665a943.js b/web/settings/assets/bat-a3d4e3ba.js similarity index 64% rename from web/settings/assets/bat-2665a943.js rename to web/settings/assets/bat-a3d4e3ba.js index 15f1f2d0eb..690b5210da 100644 --- a/web/settings/assets/bat-2665a943.js +++ b/web/settings/assets/bat-a3d4e3ba.js @@ -1 +1 @@ -import{C as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as o,l as m,m as u,G as t,E as l,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceFemsBat",mixins:[r]},_={class:"device-fems-bat"};function f(n,e,b,v,g,C){const i=o("openwb-base-heading"),s=o("openwb-base-number-input");return m(),u("div",_,[t(i,null,{default:l(()=>e[1]||(e[1]=[c(" Einstellungen für openEMS, Fenecon FEMS, CENTURIO 10, Kaco Hy-Control Batteriespeicher ",-1)])),_:1,__:[1]}),t(s,{title:"Anzahl der verbauten Speicher",required:"",min:1,max:2,"model-value":n.component.configuration.num,"onUpdate:modelValue":e[0]||(e[0]=a=>n.updateConfiguration(a,"configuration.num"))},null,8,["model-value"])])}const S=p(d,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/fems/bat.vue"]]);export{S as default}; +import{C as r}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as o,l as m,m as u,G as t,E as l,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceFemsBat",mixins:[r]},_={class:"device-fems-bat"};function f(n,e,b,v,g,C){const i=o("openwb-base-heading"),s=o("openwb-base-number-input");return m(),u("div",_,[t(i,null,{default:l(()=>e[1]||(e[1]=[c(" Einstellungen für openEMS, Fenecon FEMS, CENTURIO 10, Kaco Hy-Control Batteriespeicher ",-1)])),_:1,__:[1]}),t(s,{title:"Anzahl der verbauten Speicher",required:"",min:1,max:2,"model-value":n.component.configuration.num,"onUpdate:modelValue":e[0]||(e[0]=a=>n.updateConfiguration(a,"configuration.num"))},null,8,["model-value"])])}const S=p(d,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/fems/bat.vue"]]);export{S as default}; diff --git a/web/settings/assets/bat-4367cd57.js b/web/settings/assets/bat-b745477e.js similarity index 63% rename from web/settings/assets/bat-4367cd57.js rename to web/settings/assets/bat-b745477e.js index e2dc583c1d..75d37339fa 100644 --- a/web/settings/assets/bat-4367cd57.js +++ b/web/settings/assets/bat-b745477e.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as t,l as m,m as u,G as n,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceStuderBat",mixins:[a]},c={class:"device-studer-bat"};function b(o,e,f,v,g,w){const i=t("openwb-base-heading"),s=t("openwb-base-number-input");return m(),u("div",c,[n(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Studer Batteriespeicher ",-1)])),_:1,__:[1]}),n(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const M=p(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/studer/bat.vue"]]);export{M as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as t,l as m,m as u,G as n,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceStuderBat",mixins:[a]},c={class:"device-studer-bat"};function b(o,e,f,v,g,w){const i=t("openwb-base-heading"),s=t("openwb-base-number-input");return m(),u("div",c,[n(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Studer Batteriespeicher ",-1)])),_:1,__:[1]}),n(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const M=p(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/studer/bat.vue"]]);export{M as default}; diff --git a/web/settings/assets/bat-63af7049.js b/web/settings/assets/bat-b8c5cdb6.js similarity index 67% rename from web/settings/assets/bat-63af7049.js rename to web/settings/assets/bat-b8c5cdb6.js index 8307687536..e13dff0294 100644 --- a/web/settings/assets/bat-63af7049.js +++ b/web/settings/assets/bat-b8c5cdb6.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as r,u as o,l,m,G as n,E as u,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceOpenwbBatkitBat",mixins:[p]},_={class:"device-openwb-batkit-bat"};function b(t,e,f,v,w,B){const i=o("openwb-base-heading"),s=o("openwb-base-select-input");return l(),m("div",_,[n(i,null,{default:u(()=>e[1]||(e[1]=[c(" Einstellungen für openWB EVU-Kit Batteriespeicher ",-1)])),_:1,__:[1]}),n(s,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":t.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=a=>t.updateConfiguration(a,"configuration.version"))},null,8,["model-value"])])}const $=r(d,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_bat_kit/bat.vue"]]);export{$ as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as r,u as o,l,m,G as n,E as u,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceOpenwbBatkitBat",mixins:[p]},_={class:"device-openwb-batkit-bat"};function b(t,e,f,v,w,B){const i=o("openwb-base-heading"),s=o("openwb-base-select-input");return l(),m("div",_,[n(i,null,{default:u(()=>e[1]||(e[1]=[c(" Einstellungen für openWB EVU-Kit Batteriespeicher ",-1)])),_:1,__:[1]}),n(s,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":t.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=a=>t.updateConfiguration(a,"configuration.version"))},null,8,["model-value"])])}const $=r(d,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_bat_kit/bat.vue"]]);export{$ as default}; diff --git a/web/settings/assets/bat-b9b77e59.js b/web/settings/assets/bat-ba82b782.js similarity index 73% rename from web/settings/assets/bat-b9b77e59.js rename to web/settings/assets/bat-ba82b782.js index 7504b8e6a9..65548fe9c1 100644 --- a/web/settings/assets/bat-b9b77e59.js +++ b/web/settings/assets/bat-ba82b782.js @@ -1 +1 @@ -import{C as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as l,u as t,l as d,m as c,G as i,E as a,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceMTecBat",mixins:[m]},_={class:"device-mtec-bat"};function f(o,e,v,g,w,B){const p=t("openwb-base-heading"),r=t("openwb-base-select-input"),u=t("openwb-base-number-input");return d(),c("div",_,[i(p,null,{default:a(()=>e[2]||(e[2]=[s(" Einstellungen für M-Tec Batteriespeicher ",-1)])),_:1,__:[2]}),i(r,{title:"Generation","not-selected":"Bitte auswählen",options:[{value:2,text:"Gen 2"},{value:3,text:"Gen 3"}],"model-value":o.component.configuration.generation,required:"","onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.generation"))},null,8,["model-value"]),i(u,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},{help:a(()=>e[3]||(e[3]=[s(" Die Standard-Modbus-ID von M-Tec ist 247 ",-1)])),_:1},8,["model-value"])])}const k=l(b,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mtec/mtec/bat.vue"]]);export{k as default}; +import{C as m}from"./HardwareInstallation-0c77715a.js";import{_ as l,u as t,l as d,m as c,G as i,E as a,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceMTecBat",mixins:[m]},_={class:"device-mtec-bat"};function f(o,e,v,g,w,B){const p=t("openwb-base-heading"),r=t("openwb-base-select-input"),u=t("openwb-base-number-input");return d(),c("div",_,[i(p,null,{default:a(()=>e[2]||(e[2]=[s(" Einstellungen für M-Tec Batteriespeicher ",-1)])),_:1,__:[2]}),i(r,{title:"Generation","not-selected":"Bitte auswählen",options:[{value:2,text:"Gen 2"},{value:3,text:"Gen 3"}],"model-value":o.component.configuration.generation,required:"","onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.generation"))},null,8,["model-value"]),i(u,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},{help:a(()=>e[3]||(e[3]=[s(" Die Standard-Modbus-ID von M-Tec ist 247 ",-1)])),_:1},8,["model-value"])])}const k=l(b,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mtec/mtec/bat.vue"]]);export{k as default}; diff --git a/web/settings/assets/bat-bb99028b.js b/web/settings/assets/bat-babd59c5.js similarity index 67% rename from web/settings/assets/bat-bb99028b.js rename to web/settings/assets/bat-babd59c5.js index 3b32580372..fe30806244 100644 --- a/web/settings/assets/bat-bb99028b.js +++ b/web/settings/assets/bat-babd59c5.js @@ -1 +1 @@ -import{C as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as t,l as p,m as l,G as n,E as u,B as d}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSolarmaxBat",mixins:[r]},_={class:"device-solarmax-bat"};function b(o,e,f,x,v,g){const a=t("openwb-base-alert"),s=t("openwb-base-number-input");return p(),l("div",_,[n(a,{subtype:"info"},{default:u(()=>e[1]||(e[1]=[d(" Solarmax MAX.STORAGE / MAX.STORAGE Ultimate Batteriespeicher sind Teil eines Hybridsystems. Daher muss auch eine Komponente Wechselrichter angelegt werden. ",-1)])),_:1,__:[1]}),n(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=i=>o.updateConfiguration(i,"configuration.modbus_id"))},null,8,["model-value"])])}const $=m(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/solarmax/bat.vue"]]);export{$ as default}; +import{C as r}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as t,l as p,m as l,G as n,E as u,B as d}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSolarmaxBat",mixins:[r]},_={class:"device-solarmax-bat"};function b(o,e,f,x,v,g){const a=t("openwb-base-alert"),s=t("openwb-base-number-input");return p(),l("div",_,[n(a,{subtype:"info"},{default:u(()=>e[1]||(e[1]=[d(" Solarmax MAX.STORAGE / MAX.STORAGE Ultimate Batteriespeicher sind Teil eines Hybridsystems. Daher muss auch eine Komponente Wechselrichter angelegt werden. ",-1)])),_:1,__:[1]}),n(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=i=>o.updateConfiguration(i,"configuration.modbus_id"))},null,8,["model-value"])])}const $=m(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/solarmax/bat.vue"]]);export{$ as default}; diff --git a/web/settings/assets/bat-fd0a6337.js b/web/settings/assets/bat-c7c848f1.js similarity index 68% rename from web/settings/assets/bat-fd0a6337.js rename to web/settings/assets/bat-c7c848f1.js index 3483cee7b1..1d45edea92 100644 --- a/web/settings/assets/bat-fd0a6337.js +++ b/web/settings/assets/bat-c7c848f1.js @@ -1 +1 @@ -import{C as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as n,l,m as _,G as t,E as i,B as a}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceGoodWeBat",mixins:[m]},c={class:"device-goodwe-bat"};function b(o,e,f,g,w,x){const r=n("openwb-base-heading"),s=n("openwb-base-number-input");return l(),_("div",c,[t(r,null,{default:i(()=>e[1]||(e[1]=[a(" Einstellungen für GoodWe Batteriespeicher ",-1)])),_:1,__:[1]}),t(s,{title:"GoodWe-Batterie-Index","model-value":o.component.configuration.battery_index,min:"1",max:"2","onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.battery_index"))},{help:i(()=>e[2]||(e[2]=[a(" Wenn eine zweite Batterie am Wechselrichter angeschlossen ist, hier den Index 2 eintagen. Im Normalfall immer 1 eintragen. ",-1)])),_:1},8,["model-value"])])}const N=d(u,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/good_we/bat.vue"]]);export{N as default}; +import{C as m}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as n,l,m as _,G as t,E as i,B as a}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceGoodWeBat",mixins:[m]},c={class:"device-goodwe-bat"};function b(o,e,f,g,w,x){const r=n("openwb-base-heading"),s=n("openwb-base-number-input");return l(),_("div",c,[t(r,null,{default:i(()=>e[1]||(e[1]=[a(" Einstellungen für GoodWe Batteriespeicher ",-1)])),_:1,__:[1]}),t(s,{title:"GoodWe-Batterie-Index","model-value":o.component.configuration.battery_index,min:"1",max:"2","onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.battery_index"))},{help:i(()=>e[2]||(e[2]=[a(" Wenn eine zweite Batterie am Wechselrichter angeschlossen ist, hier den Index 2 eintagen. Im Normalfall immer 1 eintragen. ",-1)])),_:1},8,["model-value"])])}const N=d(u,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/good_we/bat.vue"]]);export{N as default}; diff --git a/web/settings/assets/bat-e10ba718.js b/web/settings/assets/bat-c7ee6179.js similarity index 73% rename from web/settings/assets/bat-e10ba718.js rename to web/settings/assets/bat-c7ee6179.js index 0899570978..e9d06ccd3f 100644 --- a/web/settings/assets/bat-e10ba718.js +++ b/web/settings/assets/bat-c7ee6179.js @@ -1 +1 @@ -import{C as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as a,l as p,m as u,G as t,E as r,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceSolaredgeBat",mixins:[m]},b={class:"device-solaredge-bat"};function f(o,e,_,c,v,x){const l=a("openwb-base-heading"),i=a("openwb-base-number-input");return p(),u("div",b,[t(l,null,{default:r(()=>e[2]||(e[2]=[s(" Einstellungen für SolarEdge Batteriespeicher ",-1)])),_:1,__:[2]}),t(i,{title:"SolarEdge-Geräte-ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),t(i,{title:"SolarEdge-Batterie-Index","model-value":o.component.configuration.battery_index,min:"1",max:"2","onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.battery_index"))},{help:r(()=>e[3]||(e[3]=[s(" Wenn eine zweite Batterie am Wechselrichter angeschlossen ist, hier den Index 2 eintagen. Im Normalfall immer 1 eintragen. ",-1)])),_:1},8,["model-value"])])}const N=d(g,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/solaredge/bat.vue"]]);export{N as default}; +import{C as m}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as a,l as p,m as u,G as t,E as r,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceSolaredgeBat",mixins:[m]},b={class:"device-solaredge-bat"};function f(o,e,_,c,v,x){const l=a("openwb-base-heading"),i=a("openwb-base-number-input");return p(),u("div",b,[t(l,null,{default:r(()=>e[2]||(e[2]=[s(" Einstellungen für SolarEdge Batteriespeicher ",-1)])),_:1,__:[2]}),t(i,{title:"SolarEdge-Geräte-ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),t(i,{title:"SolarEdge-Batterie-Index","model-value":o.component.configuration.battery_index,min:"1",max:"2","onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.battery_index"))},{help:r(()=>e[3]||(e[3]=[s(" Wenn eine zweite Batterie am Wechselrichter angeschlossen ist, hier den Index 2 eintagen. Im Normalfall immer 1 eintragen. ",-1)])),_:1},8,["model-value"])])}const N=d(g,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/solaredge/bat.vue"]]);export{N as default}; diff --git a/web/settings/assets/bat-7e834da4.js b/web/settings/assets/bat-d7cfe363.js similarity index 93% rename from web/settings/assets/bat-7e834da4.js rename to web/settings/assets/bat-d7cfe363.js index bf42740644..9371f27dd2 100644 --- a/web/settings/assets/bat-7e834da4.js +++ b/web/settings/assets/bat-d7cfe363.js @@ -1 +1 @@ -import{C as b}from"./HardwareInstallation-b7e2b58c.js";import{_ as g,u,l as f,m as B,G as l,E as i,B as t,A as n,F as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const k={name:"DeviceMqttBat",mixins:[b]},w={class:"device-mqtt-bat"};function v(o,e,W,z,x,E){const p=u("openwb-base-heading"),s=u("openwb-base-copy-to-clipboard"),d=u("openwb-base-alert"),a=u("openwb-base-button-group-input");return f(),B("div",w,[l(p,null,{default:i(()=>e[1]||(e[1]=[t(" Einstellungen für MQTT Batteriespeicher ",-1)])),_:1,__:[1]}),l(d,{subtype:"info"},{default:i(()=>[e[27]||(e[27]=t(" Die folgenden Topics sind für einen reibungslosen Betrieb unbedingt erforderlich: ",-1)),n("ul",null,[n("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[t(" openWB/set/mqtt/bat/"+r(o.component.id)+"/get/power ",1)]),_:1}),e[2]||(e[2]=n("br",null,null,-1)),e[3]||(e[3]=t(" Speicherleistung in Watt, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, positiv Ladung, negativ Entladung",-1)),e[4]||(e[4]=n("br",null,null,-1)),e[5]||(e[5]=t(" Beispiel: ",-1)),e[6]||(e[6]=n("span",{class:"text-info"},"-123",-1))]),n("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[t(" openWB/set/mqtt/bat/"+r(o.component.id)+"/get/soc ",1)]),_:1}),e[7]||(e[7]=n("br",null,null,-1)),e[8]||(e[8]=t(" Ladestand des Speichers, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, gültige Werte 0 bis 100",-1)),e[9]||(e[9]=n("br",null,null,-1)),e[10]||(e[10]=t(" Beispiel: ",-1)),e[11]||(e[11]=n("span",{class:"text-info"},"95",-1))])]),e[28]||(e[28]=t(" Falls keine Werte für die Zählerstände übermittelt werden, berechnet openWB die Zählerstände anhand der Leistung. ",-1)),n("ul",null,[n("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[t(" openWB/set/mqtt/bat/"+r(o.component.id)+"/get/imported ",1)]),_:1}),e[12]||(e[12]=n("br",null,null,-1)),e[13]||(e[13]=t(" Geladene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv",-1)),e[14]||(e[14]=n("br",null,null,-1)),e[15]||(e[15]=t(" Beispiel: ",-1)),e[16]||(e[16]=n("span",{class:"text-info"},"123.45",-1))]),n("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[t(" openWB/set/mqtt/bat/"+r(o.component.id)+"/get/exported ",1)]),_:1}),e[17]||(e[17]=n("br",null,null,-1)),e[18]||(e[18]=t(" Entladene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv",-1)),e[19]||(e[19]=n("br",null,null,-1)),e[20]||(e[20]=t(" Beispiel: ",-1)),e[21]||(e[21]=n("span",{class:"text-info"},"123.45",-1))])]),e[29]||(e[29]=t(" Ströme je Phase sind optional, jedoch für phasenbasiertes Lastmanagement in Verbindung mit einem virtuellen Zähler unbedingt erforderlich. Ansonsten erfolgt das Lastmanagement ausschließlich auf Basis der Gesamtleistung an diesem Zähler: ",-1)),n("ul",null,[n("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[t(" openWB/set/mqtt/bat/"+r(o.component.id)+"/get/currents ",1)]),_:1}),e[22]||(e[22]=n("br",null,null,-1)),e[23]||(e[23]=t(" Array mit den Strömen je Phase in Ampere, mit Nachkommastellen (Float), positiv Bezug, negativ Einspeisung",-1)),e[24]||(e[24]=n("br",null,null,-1)),e[25]||(e[25]=t(" Beispiel: ",-1)),e[26]||(e[26]=n("span",{class:"text-info"},"[1.2,2.3,-2.1]",-1))])])]),_:1,__:[27,28,29]}),l(p,null,{default:i(()=>e[30]||(e[30]=[t(" Optionale Einstellungen ",-1)])),_:1,__:[30]}),l(d,{subtype:"info"},{default:i(()=>[e[36]||(e[36]=t(' Wenn der Speicher die aktive Steuerung durch openWB unterstützt, kann die Option "Speicherleistung steuerbar" auf "Ja" gesetzt werden. Der Modus, um die Speicher-Entladung ins Fahrzeug zu steuern, kann in den übergreifenden Ladeeinstellungen gesetzt werden. Über folgendes Topic wird dem Speicher die Entladeleistung mitgeteilt. ',-1)),n("ul",null,[n("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[t(" openWB/set/mqtt/bat/"+r(o.component.id)+"/set/power_limit ",1)]),_:1}),e[31]||(e[31]=n("br",null,null,-1)),e[32]||(e[32]=t(" Entladeleistung in Watt (Float), die im Speicher gesetzt werden muss.",-1)),e[33]||(e[33]=n("br",null,null,-1)),e[34]||(e[34]=t(" Beispiel: ",-1)),e[35]||(e[35]=n("span",{class:"text-info"},"123.0",-1))])])]),_:1,__:[36]}),l(a,{title:"Speicherleistung steuerbar",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":o.component.configuration.power_limit_controllable,"onUpdate:modelValue":e[0]||(e[0]=m=>o.updateConfiguration(m,"configuration.power_limit_controllable"))},null,8,["model-value"])])}const C=g(k,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/mqtt/bat.vue"]]);export{C as default}; +import{C as b}from"./HardwareInstallation-0c77715a.js";import{_ as g,u,l as f,m as B,G as l,E as i,B as t,A as n,F as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const k={name:"DeviceMqttBat",mixins:[b]},w={class:"device-mqtt-bat"};function v(o,e,W,z,x,E){const p=u("openwb-base-heading"),s=u("openwb-base-copy-to-clipboard"),d=u("openwb-base-alert"),a=u("openwb-base-button-group-input");return f(),B("div",w,[l(p,null,{default:i(()=>e[1]||(e[1]=[t(" Einstellungen für MQTT Batteriespeicher ",-1)])),_:1,__:[1]}),l(d,{subtype:"info"},{default:i(()=>[e[27]||(e[27]=t(" Die folgenden Topics sind für einen reibungslosen Betrieb unbedingt erforderlich: ",-1)),n("ul",null,[n("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[t(" openWB/set/mqtt/bat/"+r(o.component.id)+"/get/power ",1)]),_:1}),e[2]||(e[2]=n("br",null,null,-1)),e[3]||(e[3]=t(" Speicherleistung in Watt, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, positiv Ladung, negativ Entladung",-1)),e[4]||(e[4]=n("br",null,null,-1)),e[5]||(e[5]=t(" Beispiel: ",-1)),e[6]||(e[6]=n("span",{class:"text-info"},"-123",-1))]),n("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[t(" openWB/set/mqtt/bat/"+r(o.component.id)+"/get/soc ",1)]),_:1}),e[7]||(e[7]=n("br",null,null,-1)),e[8]||(e[8]=t(" Ladestand des Speichers, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, gültige Werte 0 bis 100",-1)),e[9]||(e[9]=n("br",null,null,-1)),e[10]||(e[10]=t(" Beispiel: ",-1)),e[11]||(e[11]=n("span",{class:"text-info"},"95",-1))])]),e[28]||(e[28]=t(" Falls keine Werte für die Zählerstände übermittelt werden, berechnet openWB die Zählerstände anhand der Leistung. ",-1)),n("ul",null,[n("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[t(" openWB/set/mqtt/bat/"+r(o.component.id)+"/get/imported ",1)]),_:1}),e[12]||(e[12]=n("br",null,null,-1)),e[13]||(e[13]=t(" Geladene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv",-1)),e[14]||(e[14]=n("br",null,null,-1)),e[15]||(e[15]=t(" Beispiel: ",-1)),e[16]||(e[16]=n("span",{class:"text-info"},"123.45",-1))]),n("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[t(" openWB/set/mqtt/bat/"+r(o.component.id)+"/get/exported ",1)]),_:1}),e[17]||(e[17]=n("br",null,null,-1)),e[18]||(e[18]=t(" Entladene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv",-1)),e[19]||(e[19]=n("br",null,null,-1)),e[20]||(e[20]=t(" Beispiel: ",-1)),e[21]||(e[21]=n("span",{class:"text-info"},"123.45",-1))])]),e[29]||(e[29]=t(" Ströme je Phase sind optional, jedoch für phasenbasiertes Lastmanagement in Verbindung mit einem virtuellen Zähler unbedingt erforderlich. Ansonsten erfolgt das Lastmanagement ausschließlich auf Basis der Gesamtleistung an diesem Zähler: ",-1)),n("ul",null,[n("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[t(" openWB/set/mqtt/bat/"+r(o.component.id)+"/get/currents ",1)]),_:1}),e[22]||(e[22]=n("br",null,null,-1)),e[23]||(e[23]=t(" Array mit den Strömen je Phase in Ampere, mit Nachkommastellen (Float), positiv Bezug, negativ Einspeisung",-1)),e[24]||(e[24]=n("br",null,null,-1)),e[25]||(e[25]=t(" Beispiel: ",-1)),e[26]||(e[26]=n("span",{class:"text-info"},"[1.2,2.3,-2.1]",-1))])])]),_:1,__:[27,28,29]}),l(p,null,{default:i(()=>e[30]||(e[30]=[t(" Optionale Einstellungen ",-1)])),_:1,__:[30]}),l(d,{subtype:"info"},{default:i(()=>[e[36]||(e[36]=t(' Wenn der Speicher die aktive Steuerung durch openWB unterstützt, kann die Option "Speicherleistung steuerbar" auf "Ja" gesetzt werden. Der Modus, um die Speicher-Entladung ins Fahrzeug zu steuern, kann in den übergreifenden Ladeeinstellungen gesetzt werden. Über folgendes Topic wird dem Speicher die Entladeleistung mitgeteilt. ',-1)),n("ul",null,[n("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[t(" openWB/set/mqtt/bat/"+r(o.component.id)+"/set/power_limit ",1)]),_:1}),e[31]||(e[31]=n("br",null,null,-1)),e[32]||(e[32]=t(" Entladeleistung in Watt (Float), die im Speicher gesetzt werden muss.",-1)),e[33]||(e[33]=n("br",null,null,-1)),e[34]||(e[34]=t(" Beispiel: ",-1)),e[35]||(e[35]=n("span",{class:"text-info"},"123.0",-1))])])]),_:1,__:[36]}),l(a,{title:"Speicherleistung steuerbar",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":o.component.configuration.power_limit_controllable,"onUpdate:modelValue":e[0]||(e[0]=m=>o.updateConfiguration(m,"configuration.power_limit_controllable"))},null,8,["model-value"])])}const C=g(k,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/mqtt/bat.vue"]]);export{C as default}; diff --git a/web/settings/assets/bat-f3043e62.js b/web/settings/assets/bat-ecf94da0.js similarity index 65% rename from web/settings/assets/bat-f3043e62.js rename to web/settings/assets/bat-ecf94da0.js index acaee32669..1486bdbaa0 100644 --- a/web/settings/assets/bat-f3043e62.js +++ b/web/settings/assets/bat-ecf94da0.js @@ -1 +1 @@ -import{C as s}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as t,l as p,m as u,G as n,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceHuaweiSmartLoggerBat",mixins:[s]},c={class:"device-huawei-smart-logger-bat"};function b(o,e,g,f,w,v){const i=t("openwb-base-heading"),a=t("openwb-base-number-input");return p(),u("div",c,[n(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Huawei SmartLogger Batteriespeicher ",-1)])),_:1,__:[1]}),n(a,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const H=m(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/huawei_smartlogger/bat.vue"]]);export{H as default}; +import{C as s}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as t,l as p,m as u,G as n,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceHuaweiSmartLoggerBat",mixins:[s]},c={class:"device-huawei-smart-logger-bat"};function b(o,e,g,f,w,v){const i=t("openwb-base-heading"),a=t("openwb-base-number-input");return p(),u("div",c,[n(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Huawei SmartLogger Batteriespeicher ",-1)])),_:1,__:[1]}),n(a,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const H=m(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/huawei_smartlogger/bat.vue"]]);export{H as default}; diff --git a/web/settings/assets/bat-6cf37408.js b/web/settings/assets/bat-f53788cb.js similarity index 64% rename from web/settings/assets/bat-6cf37408.js rename to web/settings/assets/bat-f53788cb.js index 4ed70f6f11..ee9db648d2 100644 --- a/web/settings/assets/bat-6cf37408.js +++ b/web/settings/assets/bat-f53788cb.js @@ -1 +1 @@ -import{C as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as n,l as m,m as u,G as t,E as d,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceSunnyBoyBat",mixins:[r]},b={class:"device-sunnyboy-bat"};function c(o,e,f,v,g,y){const i=n("openwb-base-heading"),s=n("openwb-base-number-input");return m(),u("div",b,[t(i,null,{default:d(()=>e[1]||(e[1]=[_(" Einstellungen für SMA Sunny Boy/Tripower Batteriespeicher ",-1)])),_:1,__:[1]}),t(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.modbus_id"))},null,8,["model-value"])])}const h=p(l,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_boy/bat.vue"]]);export{h as default}; +import{C as r}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as n,l as m,m as u,G as t,E as d,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceSunnyBoyBat",mixins:[r]},b={class:"device-sunnyboy-bat"};function c(o,e,f,v,g,y){const i=n("openwb-base-heading"),s=n("openwb-base-number-input");return m(),u("div",b,[t(i,null,{default:d(()=>e[1]||(e[1]=[_(" Einstellungen für SMA Sunny Boy/Tripower Batteriespeicher ",-1)])),_:1,__:[1]}),t(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.modbus_id"))},null,8,["model-value"])])}const h=p(l,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_boy/bat.vue"]]);export{h as default}; diff --git a/web/settings/assets/bat-525c8cbc.js b/web/settings/assets/bat-fb56e76d.js similarity index 87% rename from web/settings/assets/bat-525c8cbc.js rename to web/settings/assets/bat-fb56e76d.js index f1897c0d5a..75013c978b 100644 --- a/web/settings/assets/bat-525c8cbc.js +++ b/web/settings/assets/bat-fb56e76d.js @@ -1 +1 @@ -import{C as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as s,u as a,l as p,m,G as o,E as l,B as i,A as f}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceJsonBat",mixins:[d]},b={class:"device-json-bat"};function v(t,e,w,j,q,C){const u=a("openwb-base-heading"),r=a("openwb-base-text-input");return p(),m("div",b,[o(u,null,{default:l(()=>e[7]||(e[7]=[i(" Einstellungen für JSON Batteriespeicher ",-1)])),_:1,__:[7]}),o(r,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":t.component.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateConfiguration(n,"configuration.jq_power"))},{help:l(()=>e[8]||(e[8]=[i(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. ',-1),f("br",null,null,-1),i(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt (positiv Ladung, negativ Entladung) darstellt. ",-1)])),_:1},8,["model-value"]),o(r,{title:"Abfrage für Ladestand",subtype:"text",required:"","model-value":t.component.configuration.jq_soc,"onUpdate:modelValue":e[1]||(e[1]=n=>t.updateConfiguration(n,"configuration.jq_soc"))},null,8,["model-value"]),o(r,{title:"Abfrage für Strom auf Phase 1",subtype:"text","model-value":t.component.configuration.jq_current_l1,"onUpdate:modelValue":e[2]||(e[2]=n=>t.updateConfiguration(n,"configuration.jq_current_l1"))},null,8,["model-value"]),o(r,{title:"Abfrage für Strom auf Phase 2",subtype:"text","model-value":t.component.configuration.jq_current_l2,"onUpdate:modelValue":e[3]||(e[3]=n=>t.updateConfiguration(n,"configuration.jq_current_l2"))},null,8,["model-value"]),o(r,{title:"Abfrage für Strom auf Phase 3",subtype:"text","model-value":t.component.configuration.jq_current_l3,"onUpdate:modelValue":e[4]||(e[4]=n=>t.updateConfiguration(n,"configuration.jq_current_l3"))},null,8,["model-value"]),o(r,{title:"Abfrage für Zählerstand Ladung",subtype:"text","model-value":t.component.configuration.jq_imported,"onUpdate:modelValue":e[5]||(e[5]=n=>t.updateConfiguration(n,"configuration.jq_imported"))},{help:l(()=>e[9]||(e[9]=[i(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ",-1)])),_:1},8,["model-value"]),o(r,{title:"Abfrage für Zählerstand Entladung",subtype:"text","model-value":t.component.configuration.jq_exported,"onUpdate:modelValue":e[6]||(e[6]=n=>t.updateConfiguration(n,"configuration.jq_exported"))},{help:l(()=>e[10]||(e[10]=[i(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ",-1)])),_:1},8,["model-value"])])}const E=s(g,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/json/bat.vue"]]);export{E as default}; +import{C as d}from"./HardwareInstallation-0c77715a.js";import{_ as s,u as a,l as p,m,G as o,E as l,B as i,A as f}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceJsonBat",mixins:[d]},b={class:"device-json-bat"};function v(t,e,w,j,q,C){const u=a("openwb-base-heading"),r=a("openwb-base-text-input");return p(),m("div",b,[o(u,null,{default:l(()=>e[7]||(e[7]=[i(" Einstellungen für JSON Batteriespeicher ",-1)])),_:1,__:[7]}),o(r,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":t.component.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateConfiguration(n,"configuration.jq_power"))},{help:l(()=>e[8]||(e[8]=[i(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. ',-1),f("br",null,null,-1),i(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt (positiv Ladung, negativ Entladung) darstellt. ",-1)])),_:1},8,["model-value"]),o(r,{title:"Abfrage für Ladestand",subtype:"text",required:"","model-value":t.component.configuration.jq_soc,"onUpdate:modelValue":e[1]||(e[1]=n=>t.updateConfiguration(n,"configuration.jq_soc"))},null,8,["model-value"]),o(r,{title:"Abfrage für Strom auf Phase 1",subtype:"text","model-value":t.component.configuration.jq_current_l1,"onUpdate:modelValue":e[2]||(e[2]=n=>t.updateConfiguration(n,"configuration.jq_current_l1"))},null,8,["model-value"]),o(r,{title:"Abfrage für Strom auf Phase 2",subtype:"text","model-value":t.component.configuration.jq_current_l2,"onUpdate:modelValue":e[3]||(e[3]=n=>t.updateConfiguration(n,"configuration.jq_current_l2"))},null,8,["model-value"]),o(r,{title:"Abfrage für Strom auf Phase 3",subtype:"text","model-value":t.component.configuration.jq_current_l3,"onUpdate:modelValue":e[4]||(e[4]=n=>t.updateConfiguration(n,"configuration.jq_current_l3"))},null,8,["model-value"]),o(r,{title:"Abfrage für Zählerstand Ladung",subtype:"text","model-value":t.component.configuration.jq_imported,"onUpdate:modelValue":e[5]||(e[5]=n=>t.updateConfiguration(n,"configuration.jq_imported"))},{help:l(()=>e[9]||(e[9]=[i(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ",-1)])),_:1},8,["model-value"]),o(r,{title:"Abfrage für Zählerstand Entladung",subtype:"text","model-value":t.component.configuration.jq_exported,"onUpdate:modelValue":e[6]||(e[6]=n=>t.updateConfiguration(n,"configuration.jq_exported"))},{help:l(()=>e[10]||(e[10]=[i(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ",-1)])),_:1},8,["model-value"])])}const E=s(g,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/json/bat.vue"]]);export{E as default}; diff --git a/web/settings/assets/bat_smart_energy-ffd4b2a9.js b/web/settings/assets/bat_smart_energy-e0c5fbbd.js similarity index 65% rename from web/settings/assets/bat_smart_energy-ffd4b2a9.js rename to web/settings/assets/bat_smart_energy-e0c5fbbd.js index 097c543f46..87416af101 100644 --- a/web/settings/assets/bat_smart_energy-ffd4b2a9.js +++ b/web/settings/assets/bat_smart_energy-e0c5fbbd.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as o,l as p,m as u,G as t,E as _,B as d}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceSunnyBoyBatSmartEnergy",mixins:[a]},b={class:"device-sunnyboy-bat-smart-energy"};function c(n,e,f,g,y,v){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return p(),u("div",b,[t(s,null,{default:_(()=>e[1]||(e[1]=[d(" Einstellungen für SMA Sunny Boy Smart Energy Batteriespeicher ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":n.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.modbus_id"))},null,8,["model-value"])])}const h=m(l,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_boy/bat_smart_energy.vue"]]);export{h as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as o,l as p,m as u,G as t,E as _,B as d}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceSunnyBoyBatSmartEnergy",mixins:[a]},b={class:"device-sunnyboy-bat-smart-energy"};function c(n,e,f,g,y,v){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return p(),u("div",b,[t(s,null,{default:_(()=>e[1]||(e[1]=[d(" Einstellungen für SMA Sunny Boy Smart Energy Batteriespeicher ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":n.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.modbus_id"))},null,8,["model-value"])])}const h=m(l,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_boy/bat_smart_energy.vue"]]);export{h as default}; diff --git a/web/settings/assets/chargePoint-55721b75.js b/web/settings/assets/chargePoint-3b38c504.js similarity index 82% rename from web/settings/assets/chargePoint-55721b75.js rename to web/settings/assets/chargePoint-3b38c504.js index 6c2a0b2d6a..5cbbdfd1c3 100644 --- a/web/settings/assets/chargePoint-55721b75.js +++ b/web/settings/assets/chargePoint-3b38c504.js @@ -1 +1 @@ -import{C as u}from"./ChargePointInstallation-34ff8e1d.js";import{_ as p,u as t,l as i,m as d,G as m,x as l,E as c,B as g,z as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"ChargePointInternalOpenwb",mixins:[u],methods:{updateMode(e){["series","socket","pro_plus"].includes(e)&&this.updateConfiguration(0,"configuration.duo_num"),this.updateConfiguration(e,"configuration.mode")}}},b={class:"charge-point-internal-openwb"};function h(e,o,B,v,w,a){const r=t("openwb-base-select-input"),s=t("openwb-base-number-input");return i(),d("div",b,[m(r,{title:"Bauart","not-selected":"Bitte auswählen",required:"",options:[{value:"series",text:"openWB series1/2 in den Varianten custom, standard & standard+"},{value:"duo",text:"openWB series1/2 Duo"},{value:"socket",text:"openWB series1/2 Buchse"},{value:"pro_plus",text:"openWB Pro+"}],"model-value":e.chargePoint.configuration.mode,"onUpdate:modelValue":o[0]||(o[0]=n=>a.updateMode(n))},null,8,["model-value"]),e.chargePoint.configuration.mode=="duo"?(i(),l(s,{key:0,title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":e.chargePoint.configuration.duo_num+1,"onUpdate:modelValue":o[1]||(o[1]=n=>e.updateConfiguration(n-1,"configuration.duo_num"))},{help:c(()=>o[2]||(o[2]=[g(' Bei einer openWB Duo können mit "1" oder "2" die beiden enthaltenen Ladepunkte angesprochen werden. ',-1)])),_:1},8,["model-value"])):_("",!0)])}const q=p(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/internal_openwb/chargePoint.vue"]]);export{q as default}; +import{C as u}from"./ChargePointInstallation-9345f83e.js";import{_ as p,u as t,l as i,m as d,G as m,x as l,E as c,B as g,z as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"ChargePointInternalOpenwb",mixins:[u],methods:{updateMode(e){["series","socket","pro_plus"].includes(e)&&this.updateConfiguration(0,"configuration.duo_num"),this.updateConfiguration(e,"configuration.mode")}}},b={class:"charge-point-internal-openwb"};function h(e,o,B,v,w,a){const r=t("openwb-base-select-input"),s=t("openwb-base-number-input");return i(),d("div",b,[m(r,{title:"Bauart","not-selected":"Bitte auswählen",required:"",options:[{value:"series",text:"openWB series1/2 in den Varianten custom, standard & standard+"},{value:"duo",text:"openWB series1/2 Duo"},{value:"socket",text:"openWB series1/2 Buchse"},{value:"pro_plus",text:"openWB Pro+"}],"model-value":e.chargePoint.configuration.mode,"onUpdate:modelValue":o[0]||(o[0]=n=>a.updateMode(n))},null,8,["model-value"]),e.chargePoint.configuration.mode=="duo"?(i(),l(s,{key:0,title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":e.chargePoint.configuration.duo_num+1,"onUpdate:modelValue":o[1]||(o[1]=n=>e.updateConfiguration(n-1,"configuration.duo_num"))},{help:c(()=>o[2]||(o[2]=[g(' Bei einer openWB Duo können mit "1" oder "2" die beiden enthaltenen Ladepunkte angesprochen werden. ',-1)])),_:1},8,["model-value"])):_("",!0)])}const q=p(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/internal_openwb/chargePoint.vue"]]);export{q as default}; diff --git a/web/settings/assets/chargePoint-a66b50b5.js b/web/settings/assets/chargePoint-3d7477d0.js similarity index 72% rename from web/settings/assets/chargePoint-a66b50b5.js rename to web/settings/assets/chargePoint-3d7477d0.js index 12e449757c..eeb4ce3a34 100644 --- a/web/settings/assets/chargePoint-a66b50b5.js +++ b/web/settings/assets/chargePoint-3d7477d0.js @@ -1 +1 @@ -import{C as s}from"./ChargePointInstallation-34ff8e1d.js";import{_ as p,u as n,l as u,m,G as i,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"ChargePointSmartwb",mixins:[s]},b={class:"charge-point-smartwb"};function c(t,e,f,_,w,v){const r=n("openwb-base-text-input"),a=n("openwb-base-number-input");return u(),m("div",b,[i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.chargePoint.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),i(a,{title:"Wartezeit",required:"",min:2,max:10,unit:"s","model-value":t.chargePoint.configuration.timeout,"onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.timeout"))},{help:d(()=>e[2]||(e[2]=[l(" Zeitangabe in Sekunden, für die auf eine Antwort des Ladepunktes gewartet wird. Wird diese Zeit überschritten, so wird von einer Kommunikationsstörung ausgegangen. ",-1)])),_:1},8,["model-value"])])}const q=p(g,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/smartwb/chargePoint.vue"]]);export{q as default}; +import{C as s}from"./ChargePointInstallation-9345f83e.js";import{_ as p,u as n,l as u,m,G as i,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"ChargePointSmartwb",mixins:[s]},b={class:"charge-point-smartwb"};function c(t,e,f,_,w,v){const r=n("openwb-base-text-input"),a=n("openwb-base-number-input");return u(),m("div",b,[i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.chargePoint.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),i(a,{title:"Wartezeit",required:"",min:2,max:10,unit:"s","model-value":t.chargePoint.configuration.timeout,"onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.timeout"))},{help:d(()=>e[2]||(e[2]=[l(" Zeitangabe in Sekunden, für die auf eine Antwort des Ladepunktes gewartet wird. Wird diese Zeit überschritten, so wird von einer Kommunikationsstörung ausgegangen. ",-1)])),_:1},8,["model-value"])])}const q=p(g,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/smartwb/chargePoint.vue"]]);export{q as default}; diff --git a/web/settings/assets/chargePoint-805d37db.js b/web/settings/assets/chargePoint-86b1ed88.js similarity index 59% rename from web/settings/assets/chargePoint-805d37db.js rename to web/settings/assets/chargePoint-86b1ed88.js index 9c10825e10..15241adb8a 100644 --- a/web/settings/assets/chargePoint-805d37db.js +++ b/web/settings/assets/chargePoint-86b1ed88.js @@ -1 +1 @@ -import{C as r}from"./ChargePointInstallation-34ff8e1d.js";import{_ as i,u as a,l as p,m as s,G as d}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"ChargePointOpenwbDcAdapter",mixins:[r]},m={class:"charge-point-openwb-dc-adapter"};function u(e,o,_,l,f,g){const t=a("openwb-base-text-input");return p(),s("div",m,[d(t,{title:"IP oder Hostname",subtype:"host",required:"","model-value":e.chargePoint.configuration.ip_address,"onUpdate:modelValue":o[0]||(o[0]=n=>e.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"])])}const k=i(c,[["render",u],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_dc_adapter/chargePoint.vue"]]);export{k as default}; +import{C as r}from"./ChargePointInstallation-9345f83e.js";import{_ as i,u as a,l as p,m as s,G as d}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"ChargePointOpenwbDcAdapter",mixins:[r]},m={class:"charge-point-openwb-dc-adapter"};function u(e,o,_,l,f,g){const t=a("openwb-base-text-input");return p(),s("div",m,[d(t,{title:"IP oder Hostname",subtype:"host",required:"","model-value":e.chargePoint.configuration.ip_address,"onUpdate:modelValue":o[0]||(o[0]=n=>e.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"])])}const k=i(c,[["render",u],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_dc_adapter/chargePoint.vue"]]);export{k as default}; diff --git a/web/settings/assets/chargePoint-44826d13.js b/web/settings/assets/chargePoint-97a91d23.js similarity index 72% rename from web/settings/assets/chargePoint-44826d13.js rename to web/settings/assets/chargePoint-97a91d23.js index 6b41571c27..c76bfa1d50 100644 --- a/web/settings/assets/chargePoint-44826d13.js +++ b/web/settings/assets/chargePoint-97a91d23.js @@ -1 +1 @@ -import{C as p}from"./ChargePointInstallation-34ff8e1d.js";import{_ as s,u as t,l as u,m,G as i,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"ChargePointSatellite",mixins:[p]},c={class:"charge-point-openwb-satellite"};function g(n,e,f,b,h,w){const r=t("openwb-base-text-input"),a=t("openwb-base-number-input");return u(),m("div",c,[i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.chargePoint.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),i(a,{title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":n.chargePoint.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o-1,"configuration.duo_num"))},{help:d(()=>e[2]||(e[2]=[l(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ',-1)])),_:1},8,["model-value"])])}const N=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_series2_satellit/chargePoint.vue"]]);export{N as default}; +import{C as p}from"./ChargePointInstallation-9345f83e.js";import{_ as s,u as t,l as u,m,G as i,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"ChargePointSatellite",mixins:[p]},c={class:"charge-point-openwb-satellite"};function g(n,e,f,b,h,w){const r=t("openwb-base-text-input"),a=t("openwb-base-number-input");return u(),m("div",c,[i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.chargePoint.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),i(a,{title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":n.chargePoint.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o-1,"configuration.duo_num"))},{help:d(()=>e[2]||(e[2]=[l(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ',-1)])),_:1},8,["model-value"])])}const N=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_series2_satellit/chargePoint.vue"]]);export{N as default}; diff --git a/web/settings/assets/chargePoint-01a68860.js b/web/settings/assets/chargePoint-a5a3af6a.js similarity index 59% rename from web/settings/assets/chargePoint-01a68860.js rename to web/settings/assets/chargePoint-a5a3af6a.js index 5868f05eaa..ba76414eed 100644 --- a/web/settings/assets/chargePoint-01a68860.js +++ b/web/settings/assets/chargePoint-a5a3af6a.js @@ -1 +1 @@ -import{C as r}from"./ChargePointInstallation-34ff8e1d.js";import{_ as i,u as p,l as s,m as a,G as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"ChargePointOpenwbPro",mixins:[r]},d={class:"charge-point-openwb-pro"};function u(o,e,_,l,f,g){const t=p("openwb-base-text-input");return s(),a("div",d,[m(t,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.chargePoint.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"])])}const k=i(c,[["render",u],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_pro/chargePoint.vue"]]);export{k as default}; +import{C as r}from"./ChargePointInstallation-9345f83e.js";import{_ as i,u as p,l as s,m as a,G as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"ChargePointOpenwbPro",mixins:[r]},d={class:"charge-point-openwb-pro"};function u(o,e,_,l,f,g){const t=p("openwb-base-text-input");return s(),a("div",d,[m(t,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.chargePoint.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"])])}const k=i(c,[["render",u],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_pro/chargePoint.vue"]]);export{k as default}; diff --git a/web/settings/assets/chargePoint-c9890423.js b/web/settings/assets/chargePoint-d21fff2e.js similarity index 96% rename from web/settings/assets/chargePoint-c9890423.js rename to web/settings/assets/chargePoint-d21fff2e.js index 3e794353d2..ffb39ac495 100644 --- a/web/settings/assets/chargePoint-c9890423.js +++ b/web/settings/assets/chargePoint-d21fff2e.js @@ -1 +1 @@ -import{C as d}from"./ChargePointInstallation-34ff8e1d.js";import{_ as g,u as p,l as a,m,G as l,E as i,B as e,A as t,F as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const b={name:"ChargePointMqtt",mixins:[d]},f={class:"charge-point-mqtt"};function k(o,n,B,w,v,W){const u=p("openwb-base-alert"),s=p("openwb-base-copy-to-clipboard");return a(),m("div",f,[l(u,{subtype:"danger"},{default:i(()=>n[0]||(n[0]=[e(" Dieser Ladepunkt-Typ darf nur in Kombination mit dem Simulator zur Fehleranalyse genutzt werden. Eine andere Verwendung ist laut den Nutzungsbedingungen untersagt. ",-1)])),_:1,__:[0]}),l(u,{subtype:"info"},{default:i(()=>[n[72]||(n[72]=e(" Das MQTT Modul stellt keine aktive Verbindung her, sondern erwartet, dass die Daten von speziellen Topics im Broker gelesen bzw. geschrieben werden. Alle Daten werden als gültiges JSON gesendet und auch so erwartet! Zahlen mit Nachkommastellen (Float) verwenden einen Punkt als Dezimaltrenner (internationales Format).",-1)),n[73]||(n[73]=t("br",null,null,-1)),n[74]||(n[74]=e(" Ab Version 2.1.8 wurden die Topics überarbeitet. Die bisherigen Topics openWB/set/chargepoint/id/get/... und openWB/chargepoint/set/... bleiben aus Gründen der Abwärtskompatibilität weiterhin nutzbar. Wir empfehlen, auf die neuen Topics umzusteigen. Dies ermöglicht die Beseitigung von Einschränkungen, wie z. B. die fehlende Verrechnung bei Hybrid-Systemen oder die Berechnung fehlender Werte, wie der Phasen-Leistung aus Spannung und Stromstärken. ",-1)),t("ol",null,[t("li",null,[n[11]||(n[11]=e(" von openWB gesendete Topics ",-1)),t("ul",null,[t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/set/current ",1)]),_:1}),n[1]||(n[1]=t("br",null,null,-1)),n[2]||(n[2]=e(" Sollwert des Ladestroms, mit Nachkommastellen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt).",-1)),n[3]||(n[3]=t("br",null,null,-1)),n[4]||(n[4]=e(" Beispiel: ",-1)),n[5]||(n[5]=t("span",{class:"text-info"},"12.34",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/set/phases_to_use ",1)]),_:1}),n[6]||(n[6]=t("br",null,null,-1)),n[7]||(n[7]=e(" Sollwert für die Anzahl Phasen als Ganzzahl (Integer). Mögliche Werte: 1 oder 3",-1)),n[8]||(n[8]=t("br",null,null,-1)),n[9]||(n[9]=e(" Beispiel: ",-1)),n[10]||(n[10]=t("span",{class:"text-info"},"1",-1))])])]),t("li",null,[n[37]||(n[37]=e(" von openWB zwingend erwartete Topics ",-1)),t("ul",null,[t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/currents ",1)]),_:1}),n[12]||(n[12]=t("br",null,null,-1)),n[13]||(n[13]=e(" Aktuelle Phasenströme des Ladepunktes, Array mit drei Zahlen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt).",-1)),n[14]||(n[14]=t("br",null,null,-1)),n[15]||(n[15]=e(" Beispiel: ",-1)),n[16]||(n[16]=t("span",{class:"text-info"},"[6.78,6.89,6.94]",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/power ",1)]),_:1}),n[17]||(n[17]=t("br",null,null,-1)),n[18]||(n[18]=e(" Leistung in Watt, mit Nachkommastellen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt).",-1)),n[19]||(n[19]=t("br",null,null,-1)),n[20]||(n[20]=e(" Beispiel: ",-1)),n[21]||(n[21]=t("span",{class:"text-info"},"123.45",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/plug_state ",1)]),_:1}),n[22]||(n[22]=t("br",null,null,-1)),n[23]||(n[23]=e(" Zeigt an, ob aktuell ein Fahrzeug angesteckt ist, Wahrheitswert (Bool).",-1)),n[24]||(n[24]=t("br",null,null,-1)),n[25]||(n[25]=e(" Beispiel: ",-1)),n[26]||(n[26]=t("span",{class:"text-info"},"true",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/charge_state ",1)]),_:1}),n[27]||(n[27]=t("br",null,null,-1)),n[28]||(n[28]=e(" Zeigt an, ob ein Ladevorgang aktiv ist, Wahrheitswert (Bool).",-1)),n[29]||(n[29]=t("br",null,null,-1)),n[30]||(n[30]=e(" Beispiel: ",-1)),n[31]||(n[31]=t("span",{class:"text-info"},"true",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/phases_in_use ",1)]),_:1}),n[32]||(n[32]=t("br",null,null,-1)),n[33]||(n[33]=e(" Anzahl der Phasen, mit denen geladen wird, Ganzzahl (Integer). Mögliche Werte: 0 bis 3",-1)),n[34]||(n[34]=t("br",null,null,-1)),n[35]||(n[35]=e(" Beispiel: ",-1)),n[36]||(n[36]=t("span",{class:"text-info"},"3",-1))])])]),t("li",null,[n[71]||(n[71]=e(" optionale Topics ",-1)),t("ul",null,[t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/imported ",1)]),_:1}),n[38]||(n[38]=t("br",null,null,-1)),n[39]||(n[39]=e(" Geladene Energie in Wh, mit Nachkommastellen (Float), nur positiv",-1)),n[40]||(n[40]=t("br",null,null,-1)),n[41]||(n[41]=e(" Wird dieses Topic nicht vom Ladepunkt gesendet, so wird intern ein Zählerstand anhand der Leistung simuliert.",-1)),n[42]||(n[42]=t("br",null,null,-1)),n[43]||(n[43]=e(" Beispiel: ",-1)),n[44]||(n[44]=t("span",{class:"text-info"},"123.45",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/exported ",1)]),_:1}),n[45]||(n[45]=t("br",null,null,-1)),n[46]||(n[46]=e(" Entladene Energie in Wh, mit Nachkommastellen (Float), nur positiv",-1)),n[47]||(n[47]=t("br",null,null,-1)),n[48]||(n[48]=e(" Wird dieses Topic nicht vom Ladepunkt gesendet, so wird intern ein Zählerstand anhand der Leistung simuliert.",-1)),n[49]||(n[49]=t("br",null,null,-1)),n[50]||(n[50]=e(" Beispiel: ",-1)),n[51]||(n[51]=t("span",{class:"text-info"},"123.45",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/voltages ",1)]),_:1}),n[52]||(n[52]=t("br",null,null,-1)),n[53]||(n[53]=e(" Aktuelle Phasenspannungen des Ladepunktes, Array mit drei Zahlen (Float), nur positiv.",-1)),n[54]||(n[54]=t("br",null,null,-1)),n[55]||(n[55]=e(" Die Spannungen werden nicht verarbeitet, sondern lediglich im Status angezeigt.",-1)),n[56]||(n[56]=t("br",null,null,-1)),n[57]||(n[57]=e(" Beispiel: ",-1)),n[58]||(n[58]=t("span",{class:"text-info"},"[230.12,231.08,232.54]",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/power_factors ",1)]),_:1}),n[59]||(n[59]=t("br",null,null,-1)),n[60]||(n[60]=e(" Aktuelle Leistungsfaktoren des Ladepunktes, Array mit drei Zahlen (Float), Wertebereich von -1 bis 1.",-1)),n[61]||(n[61]=t("br",null,null,-1)),n[62]||(n[62]=e(" Die Leistungsfaktoren werden nicht verarbeitet, sondern lediglich im Status angezeigt.",-1)),n[63]||(n[63]=t("br",null,null,-1)),n[64]||(n[64]=e(" Beispiel: ",-1)),n[65]||(n[65]=t("span",{class:"text-info"},"[-0.87,0.96,1.0]",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/rfid_tag ",1)]),_:1}),n[66]||(n[66]=t("br",null,null,-1)),n[67]||(n[67]=e(" Eine Zeichenfolge, die einen eingelesenen Tag für openWB repräsentiert.",-1)),n[68]||(n[68]=t("br",null,null,-1)),n[69]||(n[69]=e(" Beispiel: ",-1)),n[70]||(n[70]=t("span",{class:"text-info"},'"123654"',-1))])])])])]),_:1,__:[72,73,74]})])}const S=g(b,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/mqtt/chargePoint.vue"]]);export{S as default}; +import{C as d}from"./ChargePointInstallation-9345f83e.js";import{_ as g,u as p,l as a,m,G as l,E as i,B as e,A as t,F as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const b={name:"ChargePointMqtt",mixins:[d]},f={class:"charge-point-mqtt"};function k(o,n,B,w,v,W){const u=p("openwb-base-alert"),s=p("openwb-base-copy-to-clipboard");return a(),m("div",f,[l(u,{subtype:"danger"},{default:i(()=>n[0]||(n[0]=[e(" Dieser Ladepunkt-Typ darf nur in Kombination mit dem Simulator zur Fehleranalyse genutzt werden. Eine andere Verwendung ist laut den Nutzungsbedingungen untersagt. ",-1)])),_:1,__:[0]}),l(u,{subtype:"info"},{default:i(()=>[n[72]||(n[72]=e(" Das MQTT Modul stellt keine aktive Verbindung her, sondern erwartet, dass die Daten von speziellen Topics im Broker gelesen bzw. geschrieben werden. Alle Daten werden als gültiges JSON gesendet und auch so erwartet! Zahlen mit Nachkommastellen (Float) verwenden einen Punkt als Dezimaltrenner (internationales Format).",-1)),n[73]||(n[73]=t("br",null,null,-1)),n[74]||(n[74]=e(" Ab Version 2.1.8 wurden die Topics überarbeitet. Die bisherigen Topics openWB/set/chargepoint/id/get/... und openWB/chargepoint/set/... bleiben aus Gründen der Abwärtskompatibilität weiterhin nutzbar. Wir empfehlen, auf die neuen Topics umzusteigen. Dies ermöglicht die Beseitigung von Einschränkungen, wie z. B. die fehlende Verrechnung bei Hybrid-Systemen oder die Berechnung fehlender Werte, wie der Phasen-Leistung aus Spannung und Stromstärken. ",-1)),t("ol",null,[t("li",null,[n[11]||(n[11]=e(" von openWB gesendete Topics ",-1)),t("ul",null,[t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/set/current ",1)]),_:1}),n[1]||(n[1]=t("br",null,null,-1)),n[2]||(n[2]=e(" Sollwert des Ladestroms, mit Nachkommastellen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt).",-1)),n[3]||(n[3]=t("br",null,null,-1)),n[4]||(n[4]=e(" Beispiel: ",-1)),n[5]||(n[5]=t("span",{class:"text-info"},"12.34",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/set/phases_to_use ",1)]),_:1}),n[6]||(n[6]=t("br",null,null,-1)),n[7]||(n[7]=e(" Sollwert für die Anzahl Phasen als Ganzzahl (Integer). Mögliche Werte: 1 oder 3",-1)),n[8]||(n[8]=t("br",null,null,-1)),n[9]||(n[9]=e(" Beispiel: ",-1)),n[10]||(n[10]=t("span",{class:"text-info"},"1",-1))])])]),t("li",null,[n[37]||(n[37]=e(" von openWB zwingend erwartete Topics ",-1)),t("ul",null,[t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/currents ",1)]),_:1}),n[12]||(n[12]=t("br",null,null,-1)),n[13]||(n[13]=e(" Aktuelle Phasenströme des Ladepunktes, Array mit drei Zahlen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt).",-1)),n[14]||(n[14]=t("br",null,null,-1)),n[15]||(n[15]=e(" Beispiel: ",-1)),n[16]||(n[16]=t("span",{class:"text-info"},"[6.78,6.89,6.94]",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/power ",1)]),_:1}),n[17]||(n[17]=t("br",null,null,-1)),n[18]||(n[18]=e(" Leistung in Watt, mit Nachkommastellen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt).",-1)),n[19]||(n[19]=t("br",null,null,-1)),n[20]||(n[20]=e(" Beispiel: ",-1)),n[21]||(n[21]=t("span",{class:"text-info"},"123.45",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/plug_state ",1)]),_:1}),n[22]||(n[22]=t("br",null,null,-1)),n[23]||(n[23]=e(" Zeigt an, ob aktuell ein Fahrzeug angesteckt ist, Wahrheitswert (Bool).",-1)),n[24]||(n[24]=t("br",null,null,-1)),n[25]||(n[25]=e(" Beispiel: ",-1)),n[26]||(n[26]=t("span",{class:"text-info"},"true",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/charge_state ",1)]),_:1}),n[27]||(n[27]=t("br",null,null,-1)),n[28]||(n[28]=e(" Zeigt an, ob ein Ladevorgang aktiv ist, Wahrheitswert (Bool).",-1)),n[29]||(n[29]=t("br",null,null,-1)),n[30]||(n[30]=e(" Beispiel: ",-1)),n[31]||(n[31]=t("span",{class:"text-info"},"true",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/phases_in_use ",1)]),_:1}),n[32]||(n[32]=t("br",null,null,-1)),n[33]||(n[33]=e(" Anzahl der Phasen, mit denen geladen wird, Ganzzahl (Integer). Mögliche Werte: 0 bis 3",-1)),n[34]||(n[34]=t("br",null,null,-1)),n[35]||(n[35]=e(" Beispiel: ",-1)),n[36]||(n[36]=t("span",{class:"text-info"},"3",-1))])])]),t("li",null,[n[71]||(n[71]=e(" optionale Topics ",-1)),t("ul",null,[t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/imported ",1)]),_:1}),n[38]||(n[38]=t("br",null,null,-1)),n[39]||(n[39]=e(" Geladene Energie in Wh, mit Nachkommastellen (Float), nur positiv",-1)),n[40]||(n[40]=t("br",null,null,-1)),n[41]||(n[41]=e(" Wird dieses Topic nicht vom Ladepunkt gesendet, so wird intern ein Zählerstand anhand der Leistung simuliert.",-1)),n[42]||(n[42]=t("br",null,null,-1)),n[43]||(n[43]=e(" Beispiel: ",-1)),n[44]||(n[44]=t("span",{class:"text-info"},"123.45",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/exported ",1)]),_:1}),n[45]||(n[45]=t("br",null,null,-1)),n[46]||(n[46]=e(" Entladene Energie in Wh, mit Nachkommastellen (Float), nur positiv",-1)),n[47]||(n[47]=t("br",null,null,-1)),n[48]||(n[48]=e(" Wird dieses Topic nicht vom Ladepunkt gesendet, so wird intern ein Zählerstand anhand der Leistung simuliert.",-1)),n[49]||(n[49]=t("br",null,null,-1)),n[50]||(n[50]=e(" Beispiel: ",-1)),n[51]||(n[51]=t("span",{class:"text-info"},"123.45",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/voltages ",1)]),_:1}),n[52]||(n[52]=t("br",null,null,-1)),n[53]||(n[53]=e(" Aktuelle Phasenspannungen des Ladepunktes, Array mit drei Zahlen (Float), nur positiv.",-1)),n[54]||(n[54]=t("br",null,null,-1)),n[55]||(n[55]=e(" Die Spannungen werden nicht verarbeitet, sondern lediglich im Status angezeigt.",-1)),n[56]||(n[56]=t("br",null,null,-1)),n[57]||(n[57]=e(" Beispiel: ",-1)),n[58]||(n[58]=t("span",{class:"text-info"},"[230.12,231.08,232.54]",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/power_factors ",1)]),_:1}),n[59]||(n[59]=t("br",null,null,-1)),n[60]||(n[60]=e(" Aktuelle Leistungsfaktoren des Ladepunktes, Array mit drei Zahlen (Float), Wertebereich von -1 bis 1.",-1)),n[61]||(n[61]=t("br",null,null,-1)),n[62]||(n[62]=e(" Die Leistungsfaktoren werden nicht verarbeitet, sondern lediglich im Status angezeigt.",-1)),n[63]||(n[63]=t("br",null,null,-1)),n[64]||(n[64]=e(" Beispiel: ",-1)),n[65]||(n[65]=t("span",{class:"text-info"},"[-0.87,0.96,1.0]",-1))]),t("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:i(()=>[e(" openWB/set/mqtt/chargepoint/"+r(o.chargePoint.id)+"/get/rfid_tag ",1)]),_:1}),n[66]||(n[66]=t("br",null,null,-1)),n[67]||(n[67]=e(" Eine Zeichenfolge, die einen eingelesenen Tag für openWB repräsentiert.",-1)),n[68]||(n[68]=t("br",null,null,-1)),n[69]||(n[69]=e(" Beispiel: ",-1)),n[70]||(n[70]=t("span",{class:"text-info"},'"123654"',-1))])])])])]),_:1,__:[72,73,74]})])}const S=g(b,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/mqtt/chargePoint.vue"]]);export{S as default}; diff --git a/web/settings/assets/chargePoint-bca3f365.js b/web/settings/assets/chargePoint-d78b5b66.js similarity index 72% rename from web/settings/assets/chargePoint-bca3f365.js rename to web/settings/assets/chargePoint-d78b5b66.js index 6ebc1b29a6..c62e491a24 100644 --- a/web/settings/assets/chargePoint-bca3f365.js +++ b/web/settings/assets/chargePoint-d78b5b66.js @@ -1 +1 @@ -import{C as p}from"./ChargePointInstallation-34ff8e1d.js";import{_ as s,u as t,l as u,m,G as i,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"ChargePointExternalOpenwb",mixins:[p]},c={class:"charge-point-external-openwb"};function g(n,e,b,f,h,w){const r=t("openwb-base-text-input"),a=t("openwb-base-number-input");return u(),m("div",c,[i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.chargePoint.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),i(a,{title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":n.chargePoint.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o-1,"configuration.duo_num"))},{help:d(()=>e[2]||(e[2]=[l(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ',-1)])),_:1},8,["model-value"])])}const E=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/external_openwb/chargePoint.vue"]]);export{E as default}; +import{C as p}from"./ChargePointInstallation-9345f83e.js";import{_ as s,u as t,l as u,m,G as i,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"ChargePointExternalOpenwb",mixins:[p]},c={class:"charge-point-external-openwb"};function g(n,e,b,f,h,w){const r=t("openwb-base-text-input"),a=t("openwb-base-number-input");return u(),m("div",c,[i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.chargePoint.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),i(a,{title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":n.chargePoint.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o-1,"configuration.duo_num"))},{help:d(()=>e[2]||(e[2]=[l(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ',-1)])),_:1},8,["model-value"])])}const E=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/external_openwb/chargePoint.vue"]]);export{E as default}; diff --git a/web/settings/assets/commands-0f7aef64.js b/web/settings/assets/commands-2be8d876.js similarity index 84% rename from web/settings/assets/commands-0f7aef64.js rename to web/settings/assets/commands-2be8d876.js index 64cf503bcd..4bb532bf0f 100644 --- a/web/settings/assets/commands-0f7aef64.js +++ b/web/settings/assets/commands-2be8d876.js @@ -1 +1 @@ -import{a as d}from"./ChargePointInstallation-34ff8e1d.js";import{_ as u,u as c,l,m as g,G as a,E as r,B as p}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const m={name:"ChargePointCommandsOpenwbPro",mixins:[d],methods:{async triggerUpdate(){let t=new FormData;t.append("command","update"),t.append("data",'{"ip_address":"'+this.chargePoint.configuration.ip_address+'"}');const n="Die Aktualisierung der openWB Pro wird gestartet...";this.$root.postClientMessage(n,"info"),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/charge_points/openwb_pro/commands.php",t,{timeout:5e3}).then(()=>{const e="Die Aktualisierung der openWB Pro wurde erfolgreich gestartet.";this.$root.postClientMessage(e,"success")}).catch(e=>{var s="Aktualisierung fehlgeschlagen!
";e.response?(console.error(e.response.status,e.response.data),s+=e.response.status+": "+e.response.data):e.request?(console.error(e.request),s+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",e.message),s+="Es ist ein unbekannter Fehler aufgetreten."),this.$root.postClientMessage(s,"danger")})},openSettings(){window.open("http://"+this.chargePoint.configuration.ip_address,"_blank")}}},h={class:"charge-point-commands-openwb-pro"};function f(t,n,e,s,b,o){const i=c("openwb-base-button-input");return l(),g("div",h,[a(i,{title:"Ladepunkt aktualisieren","button-text":"Update anfordern",subtype:"success",disabled:t.chargePoint.configuration.ip_address==null,onButtonClicked:o.triggerUpdate},{help:r(()=>n[0]||(n[0]=[p(" Mit diesem Befehl können Sie die Aktualisierung der openWB Pro anstoßen. Bitte beachten Sie, dass kein Fahrzeug angesteckt ist. ",-1)])),_:1},8,["disabled","onButtonClicked"]),a(i,{title:"Einstellungen öffnen","button-text":"Zu den Einstellungen",subtype:"success",disabled:t.chargePoint.configuration.ip_address==null,onButtonClicked:o.openSettings},{help:r(()=>n[1]||(n[1]=[p(" Mit diesem Befehl können Sie die Einstellungen der openWB Pro in einem neuen Browser-Tab oder -Fenster öffnen. ",-1)])),_:1},8,["disabled","onButtonClicked"])])}const v=u(m,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_pro/commands.vue"]]);export{v as default}; +import{a as d}from"./ChargePointInstallation-9345f83e.js";import{_ as u,u as c,l,m as g,G as a,E as r,B as p}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const m={name:"ChargePointCommandsOpenwbPro",mixins:[d],methods:{async triggerUpdate(){let t=new FormData;t.append("command","update"),t.append("data",'{"ip_address":"'+this.chargePoint.configuration.ip_address+'"}');const n="Die Aktualisierung der openWB Pro wird gestartet...";this.$root.postClientMessage(n,"info"),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/charge_points/openwb_pro/commands.php",t,{timeout:5e3}).then(()=>{const e="Die Aktualisierung der openWB Pro wurde erfolgreich gestartet.";this.$root.postClientMessage(e,"success")}).catch(e=>{var s="Aktualisierung fehlgeschlagen!
";e.response?(console.error(e.response.status,e.response.data),s+=e.response.status+": "+e.response.data):e.request?(console.error(e.request),s+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",e.message),s+="Es ist ein unbekannter Fehler aufgetreten."),this.$root.postClientMessage(s,"danger")})},openSettings(){window.open("http://"+this.chargePoint.configuration.ip_address,"_blank")}}},h={class:"charge-point-commands-openwb-pro"};function f(t,n,e,s,b,o){const i=c("openwb-base-button-input");return l(),g("div",h,[a(i,{title:"Ladepunkt aktualisieren","button-text":"Update anfordern",subtype:"success",disabled:t.chargePoint.configuration.ip_address==null,onButtonClicked:o.triggerUpdate},{help:r(()=>n[0]||(n[0]=[p(" Mit diesem Befehl können Sie die Aktualisierung der openWB Pro anstoßen. Bitte beachten Sie, dass kein Fahrzeug angesteckt ist. ",-1)])),_:1},8,["disabled","onButtonClicked"]),a(i,{title:"Einstellungen öffnen","button-text":"Zu den Einstellungen",subtype:"success",disabled:t.chargePoint.configuration.ip_address==null,onButtonClicked:o.openSettings},{help:r(()=>n[1]||(n[1]=[p(" Mit diesem Befehl können Sie die Einstellungen der openWB Pro in einem neuen Browser-Tab oder -Fenster öffnen. ",-1)])),_:1},8,["disabled","onButtonClicked"])])}const v=u(m,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_pro/commands.vue"]]);export{v as default}; diff --git a/web/settings/assets/commands-a50295e0.js b/web/settings/assets/commands-4c824edc.js similarity index 88% rename from web/settings/assets/commands-a50295e0.js rename to web/settings/assets/commands-4c824edc.js index dca9d3f261..6fd036366d 100644 --- a/web/settings/assets/commands-a50295e0.js +++ b/web/settings/assets/commands-4c824edc.js @@ -1 +1 @@ -import{a as g}from"./ChargePointInstallation-34ff8e1d.js";import{_ as h,u,l as a,m as c,G as d,E as r,B as i,x as _,F as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"ChargePointCommandsInternalOpenwb",mixins:[g],computed:{mode(){switch(this.chargePoint.configuration.mode){case"series":return"openWB series1/2 custom, standard & standard+";case"duo":return"openWB series1/2 Duo";case"socket":return"openWB series1/2 Buchse";case"pro_plus":return"openWB Pro+";default:return this.chargePoint.configuration.mode}}},methods:{async triggerUpdate(){let n=new FormData;n.append("command","update_pro_plus");const t="Die Aktualisierung der openWB Pro+ wird gestartet...";this.$root.postClientMessage(t,"info"),console.debug(location),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/charge_points/internal_openwb/commands.php",n,{timeout:5e3}).then(()=>{const e="Die Aktualisierung der openWB Pro+ wurde erfolgreich gestartet.";this.$root.postClientMessage(e,"success")}).catch(e=>{var s="Aktualisierung fehlgeschlagen!
";e.response?(console.error(e.response.status,e.response.data),s+=e.response.status+": "+e.response.data):e.request?(console.error(e.request),s+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",e.message),s+="Es ist ein unbekannter Fehler aufgetreten."),this.$root.postClientMessage(s,"danger")})},openSettings(){window.open("http://"+location.hostname+":8080","_blank")}}},b={class:"charge-point-commands-internal-openwb"},k={key:0};function B(n,t,e,s,w,o){const p=u("openwb-base-button-input"),m=u("openwb-base-alert");return a(),c("div",b,[n.chargePoint.configuration.mode=="pro_plus"?(a(),c("div",k,[d(p,{title:"Ladepunkt aktualisieren","button-text":"Update anfordern",subtype:"success",onButtonClicked:o.triggerUpdate},{help:r(()=>t[0]||(t[0]=[i(" Hier können Sie die Aktualisierung der openWB Pro anstoßen. Bitte stellen Sie sicher, dass kein Fahrzeug angesteckt ist. ",-1)])),_:1},8,["onButtonClicked"]),d(p,{title:"Einstellungen öffnen","button-text":"Zu den Einstellungen",subtype:"success",onButtonClicked:o.openSettings},{help:r(()=>t[1]||(t[1]=[i(" Mit diesem Befehl können Sie die Einstellungen der openWB Pro in einem neuen Browser-Tab oder -Fenster öffnen. ",-1)])),_:1},8,["onButtonClicked"])])):(a(),_(m,{key:1,subtype:"secondary"},{default:r(()=>[i(' Der Ladepunkt-Typ "'+l(n.chargePoint.type)+'" bietet für die Bauart "'+l(o.mode)+'" keine Befehle an. ',1)]),_:1}))])}const S=h(f,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/internal_openwb/commands.vue"]]);export{S as default}; +import{a as g}from"./ChargePointInstallation-9345f83e.js";import{_ as h,u,l as a,m as c,G as d,E as r,B as i,x as _,F as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"ChargePointCommandsInternalOpenwb",mixins:[g],computed:{mode(){switch(this.chargePoint.configuration.mode){case"series":return"openWB series1/2 custom, standard & standard+";case"duo":return"openWB series1/2 Duo";case"socket":return"openWB series1/2 Buchse";case"pro_plus":return"openWB Pro+";default:return this.chargePoint.configuration.mode}}},methods:{async triggerUpdate(){let n=new FormData;n.append("command","update_pro_plus");const t="Die Aktualisierung der openWB Pro+ wird gestartet...";this.$root.postClientMessage(t,"info"),console.debug(location),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/charge_points/internal_openwb/commands.php",n,{timeout:5e3}).then(()=>{const e="Die Aktualisierung der openWB Pro+ wurde erfolgreich gestartet.";this.$root.postClientMessage(e,"success")}).catch(e=>{var s="Aktualisierung fehlgeschlagen!
";e.response?(console.error(e.response.status,e.response.data),s+=e.response.status+": "+e.response.data):e.request?(console.error(e.request),s+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",e.message),s+="Es ist ein unbekannter Fehler aufgetreten."),this.$root.postClientMessage(s,"danger")})},openSettings(){window.open("http://"+location.hostname+":8080","_blank")}}},b={class:"charge-point-commands-internal-openwb"},k={key:0};function B(n,t,e,s,w,o){const p=u("openwb-base-button-input"),m=u("openwb-base-alert");return a(),c("div",b,[n.chargePoint.configuration.mode=="pro_plus"?(a(),c("div",k,[d(p,{title:"Ladepunkt aktualisieren","button-text":"Update anfordern",subtype:"success",onButtonClicked:o.triggerUpdate},{help:r(()=>t[0]||(t[0]=[i(" Hier können Sie die Aktualisierung der openWB Pro anstoßen. Bitte stellen Sie sicher, dass kein Fahrzeug angesteckt ist. ",-1)])),_:1},8,["onButtonClicked"]),d(p,{title:"Einstellungen öffnen","button-text":"Zu den Einstellungen",subtype:"success",onButtonClicked:o.openSettings},{help:r(()=>t[1]||(t[1]=[i(" Mit diesem Befehl können Sie die Einstellungen der openWB Pro in einem neuen Browser-Tab oder -Fenster öffnen. ",-1)])),_:1},8,["onButtonClicked"])])):(a(),_(m,{key:1,subtype:"secondary"},{default:r(()=>[i(' Der Ladepunkt-Typ "'+l(n.chargePoint.type)+'" bietet für die Bauart "'+l(o.mode)+'" keine Befehle an. ',1)]),_:1}))])}const S=h(f,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/internal_openwb/commands.vue"]]);export{S as default}; diff --git a/web/settings/assets/consumption_counter-2e31a35f.js b/web/settings/assets/consumption_counter-3aa8670b.js similarity index 79% rename from web/settings/assets/consumption_counter-2e31a35f.js rename to web/settings/assets/consumption_counter-3aa8670b.js index 3c191ddb25..c880be5e01 100644 --- a/web/settings/assets/consumption_counter-2e31a35f.js +++ b/web/settings/assets/consumption_counter-3aa8670b.js @@ -1 +1 @@ -import{C as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as o,l as b,m as c,G as t,E as s,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceOpenwbFlexConsumptionCounter",mixins:[d]},f={class:"device-openwb-flex-consumption-counter"};function g(n,e,w,v,B,x){const l=o("openwb-base-heading"),u=o("openwb-base-alert"),p=o("openwb-base-select-input"),a=o("openwb-base-number-input");return b(),c("div",f,[t(l,null,{default:s(()=>e[2]||(e[2]=[r(" Einstellungen für openWB-Flex Verbrauchszähler ",-1)])),_:1,__:[2]}),t(u,{subtype:"info"},{default:s(()=>e[3]||(e[3]=[r(" Bei saldierenden Zählern (B23) werden die Zählerstände für Einspeisung und Bezug aus dem Zähler ausgelesen. Bei Zählern, die nicht saldierend arbeiten (SDM120, SDM630, SDM72D-M), wird der Zählerstand für den Bezug aus dem Zähler ausgelesen. Eine Messung der Einspeisung ist nicht möglich. ",-1)])),_:1,__:[3]}),t(p,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:"sdm120",text:"SDM120"},{value:"sdm630",text:"SDM630/SDM72D-M"},{value:"b23",text:"B23"}],"model-value":n.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.version"))},null,8,["model-value"]),t(a,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":n.component.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=i=>n.updateConfiguration(i,"configuration.id"))},null,8,["model-value"])])}const z=m(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_flex/consumption_counter.vue"]]);export{z as default}; +import{C as d}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as o,l as b,m as c,G as t,E as s,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceOpenwbFlexConsumptionCounter",mixins:[d]},f={class:"device-openwb-flex-consumption-counter"};function g(n,e,w,v,B,x){const l=o("openwb-base-heading"),u=o("openwb-base-alert"),p=o("openwb-base-select-input"),a=o("openwb-base-number-input");return b(),c("div",f,[t(l,null,{default:s(()=>e[2]||(e[2]=[r(" Einstellungen für openWB-Flex Verbrauchszähler ",-1)])),_:1,__:[2]}),t(u,{subtype:"info"},{default:s(()=>e[3]||(e[3]=[r(" Bei saldierenden Zählern (B23) werden die Zählerstände für Einspeisung und Bezug aus dem Zähler ausgelesen. Bei Zählern, die nicht saldierend arbeiten (SDM120, SDM630, SDM72D-M), wird der Zählerstand für den Bezug aus dem Zähler ausgelesen. Eine Messung der Einspeisung ist nicht möglich. ",-1)])),_:1,__:[3]}),t(p,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:"sdm120",text:"SDM120"},{value:"sdm630",text:"SDM630/SDM72D-M"},{value:"b23",text:"B23"}],"model-value":n.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.version"))},null,8,["model-value"]),t(a,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":n.component.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=i=>n.updateConfiguration(i,"configuration.id"))},null,8,["model-value"])])}const z=m(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_flex/consumption_counter.vue"]]);export{z as default}; diff --git a/web/settings/assets/counter-4492ff33.js b/web/settings/assets/counter-059aac54.js similarity index 75% rename from web/settings/assets/counter-4492ff33.js rename to web/settings/assets/counter-059aac54.js index c68795bdb7..4b405fe22c 100644 --- a/web/settings/assets/counter-4492ff33.js +++ b/web/settings/assets/counter-059aac54.js @@ -1 +1 @@ -import{C as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as r,l as p,m as _,G as n,E as s,B as a}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSolaredgeCounter",mixins:[m]},g={class:"device-solaredge-counter"};function b(o,e,c,v,w,C){const l=r("openwb-base-heading"),u=r("openwb-base-alert"),i=r("openwb-base-number-input");return p(),_("div",g,[n(l,null,{default:s(()=>e[2]||(e[2]=[a(" Einstellungen für SolarEdge Zähler ",-1)])),_:1,__:[2]}),n(u,{subtype:"info"},{default:s(()=>e[3]||(e[3]=[a(" Hierfür muss ein EVU-Zähler am SolarEdge Wechselrichter per Modbus angebunden sein. Der Zähler muss an erster Position im Wechselrichter konfiguriert sein. ",-1)])),_:1,__:[3]}),n(i,{title:"SolarEdge-Geräte-ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.modbus_id"))},null,8,["model-value"]),n(i,{title:"SolarEdge-Meter-ID","model-value":o.component.configuration.meter_id,min:"1",max:"255",required:"","onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.meter_id"))},null,8,["model-value"])])}const M=d(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/solaredge/counter.vue"]]);export{M as default}; +import{C as m}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as r,l as p,m as _,G as n,E as s,B as a}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSolaredgeCounter",mixins:[m]},g={class:"device-solaredge-counter"};function b(o,e,c,v,w,C){const l=r("openwb-base-heading"),u=r("openwb-base-alert"),i=r("openwb-base-number-input");return p(),_("div",g,[n(l,null,{default:s(()=>e[2]||(e[2]=[a(" Einstellungen für SolarEdge Zähler ",-1)])),_:1,__:[2]}),n(u,{subtype:"info"},{default:s(()=>e[3]||(e[3]=[a(" Hierfür muss ein EVU-Zähler am SolarEdge Wechselrichter per Modbus angebunden sein. Der Zähler muss an erster Position im Wechselrichter konfiguriert sein. ",-1)])),_:1,__:[3]}),n(i,{title:"SolarEdge-Geräte-ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.modbus_id"))},null,8,["model-value"]),n(i,{title:"SolarEdge-Meter-ID","model-value":o.component.configuration.meter_id,min:"1",max:"255",required:"","onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.meter_id"))},null,8,["model-value"])])}const M=d(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/solaredge/counter.vue"]]);export{M as default}; diff --git a/web/settings/assets/counter-a748557e.js b/web/settings/assets/counter-0d81c4e8.js similarity index 63% rename from web/settings/assets/counter-a748557e.js rename to web/settings/assets/counter-0d81c4e8.js index 8e9bff8744..27bfa74091 100644 --- a/web/settings/assets/counter-a748557e.js +++ b/web/settings/assets/counter-0d81c4e8.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as n,l as m,m as u,G as t,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceNibeCounter",mixins:[p]},_={class:"device-nibe-counter"};function b(o,e,f,v,g,C){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return m(),u("div",_,[t(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Nibe Zähler ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const D=a(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/nibe/nibe/counter.vue"]]);export{D as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as n,l as m,m as u,G as t,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceNibeCounter",mixins:[p]},_={class:"device-nibe-counter"};function b(o,e,f,v,g,C){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return m(),u("div",_,[t(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Nibe Zähler ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const D=a(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/nibe/nibe/counter.vue"]]);export{D as default}; diff --git a/web/settings/assets/counter-80fa230d.js b/web/settings/assets/counter-14bdbbf1.js similarity index 73% rename from web/settings/assets/counter-80fa230d.js rename to web/settings/assets/counter-14bdbbf1.js index e1496120ec..c2b8245438 100644 --- a/web/settings/assets/counter-80fa230d.js +++ b/web/settings/assets/counter-14bdbbf1.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as t,l as _,m as c,G as o,E as s,B as l,A as n,F as u}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceShellyCounter",mixins:[p]},f={class:"device-shelly-counter"},h={class:"small"};function b(r,e,g,y,v,w){const i=t("openwb-base-heading"),a=t("openwb-base-alert");return _(),c("div",f,[o(i,null,{default:s(()=>[e[0]||(e[0]=l(" Einstellungen für Shelly Zähler ",-1)),n("span",h,"(Modul: "+u(r.$options.name)+")",1)]),_:1,__:[0]}),o(a,{subtype:"info"},{default:s(()=>e[1]||(e[1]=[n("span",{class:"text-danger"}," Als EVU-Zähler werden nur dreiphasige Shelly unterstützt (z.B. Shelly 3EM, Shelly Pro 3EM)",-1),n("br",null,null,-1),l(" Diese Komponente benötigt keine Einstellungen. ",-1)])),_:1,__:[1]})])}const D=m(d,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/shelly/shelly/counter.vue"]]);export{D as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as t,l as _,m as c,G as o,E as s,B as l,A as n,F as u}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceShellyCounter",mixins:[p]},f={class:"device-shelly-counter"},h={class:"small"};function b(r,e,g,y,v,w){const i=t("openwb-base-heading"),a=t("openwb-base-alert");return _(),c("div",f,[o(i,null,{default:s(()=>[e[0]||(e[0]=l(" Einstellungen für Shelly Zähler ",-1)),n("span",h,"(Modul: "+u(r.$options.name)+")",1)]),_:1,__:[0]}),o(a,{subtype:"info"},{default:s(()=>e[1]||(e[1]=[n("span",{class:"text-danger"}," Als EVU-Zähler werden nur dreiphasige Shelly unterstützt (z.B. Shelly 3EM, Shelly Pro 3EM)",-1),n("br",null,null,-1),l(" Diese Komponente benötigt keine Einstellungen. ",-1)])),_:1,__:[1]})])}const D=m(d,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/shelly/shelly/counter.vue"]]);export{D as default}; diff --git a/web/settings/assets/counter-a241b59e.js b/web/settings/assets/counter-2a9f653b.js similarity index 78% rename from web/settings/assets/counter-a241b59e.js rename to web/settings/assets/counter-2a9f653b.js index b44f0c8b8f..ca00e20504 100644 --- a/web/settings/assets/counter-a241b59e.js +++ b/web/settings/assets/counter-2a9f653b.js @@ -1 +1 @@ -import{C as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as o,l as b,m as _,G as t,E as r,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceOpenwbFlexCounter",mixins:[d]},f={class:"device-openwb-flex-counter"};function v(n,e,w,g,M,x){const l=o("openwb-base-heading"),a=o("openwb-base-alert"),p=o("openwb-base-select-input"),u=o("openwb-base-number-input");return b(),_("div",f,[t(l,null,{default:r(()=>e[2]||(e[2]=[s(" Einstellungen für openWB-Flex Zähler ",-1)])),_:1,__:[2]}),t(a,{subtype:"info"},{default:r(()=>e[3]||(e[3]=[s(" Bei saldierenden Zählern (MPM3PM, B23) werden die Zählerstände für Einspeisung und Bezug aus dem Zähler ausgelesen. Bei Zählern, die nicht saldierend arbeiten (Lovato, SDM630, SDM72D-M), werden die Zählerstände von der openWB berechnet. ",-1)])),_:1,__:[3]}),t(p,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:3,text:"B23"},{value:1,text:"Lovato"},{value:0,text:"MPM3PM"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":n.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.version"))},null,8,["model-value"]),t(u,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":n.component.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=i=>n.updateConfiguration(i,"configuration.id"))},null,8,["model-value"])])}const $=m(c,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_flex/counter.vue"]]);export{$ as default}; +import{C as d}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as o,l as b,m as _,G as t,E as r,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceOpenwbFlexCounter",mixins:[d]},f={class:"device-openwb-flex-counter"};function v(n,e,w,g,M,x){const l=o("openwb-base-heading"),a=o("openwb-base-alert"),p=o("openwb-base-select-input"),u=o("openwb-base-number-input");return b(),_("div",f,[t(l,null,{default:r(()=>e[2]||(e[2]=[s(" Einstellungen für openWB-Flex Zähler ",-1)])),_:1,__:[2]}),t(a,{subtype:"info"},{default:r(()=>e[3]||(e[3]=[s(" Bei saldierenden Zählern (MPM3PM, B23) werden die Zählerstände für Einspeisung und Bezug aus dem Zähler ausgelesen. Bei Zählern, die nicht saldierend arbeiten (Lovato, SDM630, SDM72D-M), werden die Zählerstände von der openWB berechnet. ",-1)])),_:1,__:[3]}),t(p,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:3,text:"B23"},{value:1,text:"Lovato"},{value:0,text:"MPM3PM"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":n.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.version"))},null,8,["model-value"]),t(u,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":n.component.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=i=>n.updateConfiguration(i,"configuration.id"))},null,8,["model-value"])])}const $=m(c,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_flex/counter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/counter-530a38a8.js b/web/settings/assets/counter-328892f7.js similarity index 62% rename from web/settings/assets/counter-530a38a8.js rename to web/settings/assets/counter-328892f7.js index dbb2cf1a88..0b2529ea52 100644 --- a/web/settings/assets/counter-530a38a8.js +++ b/web/settings/assets/counter-328892f7.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as t,l as p,m as u,G as n,E as l,B as d}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSmartMeCounter",mixins:[a]},_={class:"device-smart-me-counter"};function f(o,e,b,v,g,x){const r=t("openwb-base-heading"),i=t("openwb-base-text-input");return p(),u("div",_,[n(r,null,{default:l(()=>e[1]||(e[1]=[d(" Einstellungen für smart-me Zähler ",-1)])),_:1,__:[1]}),n(i,{title:"Geräte-ID",required:"","model-value":o.component.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.id"))},null,8,["model-value"])])}const G=m(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/smart_me/counter.vue"]]);export{G as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as t,l as p,m as u,G as n,E as l,B as d}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSmartMeCounter",mixins:[a]},_={class:"device-smart-me-counter"};function f(o,e,b,v,g,x){const r=t("openwb-base-heading"),i=t("openwb-base-text-input");return p(),u("div",_,[n(r,null,{default:l(()=>e[1]||(e[1]=[d(" Einstellungen für smart-me Zähler ",-1)])),_:1,__:[1]}),n(i,{title:"Geräte-ID",required:"","model-value":o.component.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.id"))},null,8,["model-value"])])}const G=m(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/smart_me/counter.vue"]]);export{G as default}; diff --git a/web/settings/assets/counter-db80b3b7.js b/web/settings/assets/counter-359a5c4f.js similarity index 54% rename from web/settings/assets/counter-db80b3b7.js rename to web/settings/assets/counter-359a5c4f.js index 350a88e55a..1eb473c4a1 100644 --- a/web/settings/assets/counter-db80b3b7.js +++ b/web/settings/assets/counter-359a5c4f.js @@ -1 +1 @@ -import{C as t}from"./HardwareInstallation-b7e2b58c.js";import{_ as n,u as r,l as s,m as a,G as i,E as p,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const m={name:"DeviceCarloGavazziCounter",mixins:[t]},_={class:"device-carlo-gavazzi-counter"};function l(u,e,d,v,f,z){const o=r("openwb-base-alert");return s(),a("div",_,[i(o,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[c(" ModbusTCP muss aktiviert sein. ",-1)])),_:1,__:[0]})])}const G=n(m,[["render",l],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/carlo_gavazzi/carlo_gavazzi/counter.vue"]]);export{G as default}; +import{C as t}from"./HardwareInstallation-0c77715a.js";import{_ as n,u as r,l as s,m as a,G as i,E as p,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const m={name:"DeviceCarloGavazziCounter",mixins:[t]},_={class:"device-carlo-gavazzi-counter"};function l(u,e,d,v,f,z){const o=r("openwb-base-alert");return s(),a("div",_,[i(o,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[c(" ModbusTCP muss aktiviert sein. ",-1)])),_:1,__:[0]})])}const G=n(m,[["render",l],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/carlo_gavazzi/carlo_gavazzi/counter.vue"]]);export{G as default}; diff --git a/web/settings/assets/counter-ba55eb76.js b/web/settings/assets/counter-39d4af34.js similarity index 68% rename from web/settings/assets/counter-ba55eb76.js rename to web/settings/assets/counter-39d4af34.js index 5f8141f1d6..ed508653e2 100644 --- a/web/settings/assets/counter-ba55eb76.js +++ b/web/settings/assets/counter-39d4af34.js @@ -1 +1 @@ -import{C as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as t,l,m as u,G as n,E as m,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceOpenwbEvukitCounter",mixins:[r]},_={class:"device-openwb-evukit-counter"};function v(o,e,f,b,w,x){const i=t("openwb-base-heading"),s=t("openwb-base-select-input");return l(),u("div",_,[n(i,null,{default:m(()=>e[1]||(e[1]=[c(" Einstellungen für openWB EVU-Kit Zähler ",-1)])),_:1,__:[1]}),n(s,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:3,text:"B23"},{value:1,text:"Lovato"},{value:0,text:"MPM3PM"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":o.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.version"))},null,8,["model-value"])])}const $=a(d,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_evu_kit/counter.vue"]]);export{$ as default}; +import{C as r}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as t,l,m as u,G as n,E as m,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceOpenwbEvukitCounter",mixins:[r]},_={class:"device-openwb-evukit-counter"};function v(o,e,f,b,w,x){const i=t("openwb-base-heading"),s=t("openwb-base-select-input");return l(),u("div",_,[n(i,null,{default:m(()=>e[1]||(e[1]=[c(" Einstellungen für openWB EVU-Kit Zähler ",-1)])),_:1,__:[1]}),n(s,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:3,text:"B23"},{value:1,text:"Lovato"},{value:0,text:"MPM3PM"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":o.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.version"))},null,8,["model-value"])])}const $=a(d,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_evu_kit/counter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/counter-511bff85.js b/web/settings/assets/counter-3ba24356.js similarity index 77% rename from web/settings/assets/counter-511bff85.js rename to web/settings/assets/counter-3ba24356.js index 7c5ad32cf6..4b48c0a797 100644 --- a/web/settings/assets/counter-511bff85.js +++ b/web/settings/assets/counter-3ba24356.js @@ -1 +1 @@ -import{C as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as n,l as u,m as c,G as r,E as i,B as o,A as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceDiscovergyCounter",mixins:[d]},f={class:"device-discovergy-counter"};function g(t,e,v,b,w,x){const s=n("openwb-base-heading"),a=n("openwb-base-text-input");return u(),c("div",f,[r(s,null,{default:i(()=>e[1]||(e[1]=[o(" Einstellungen für Discovergy Zähler ",-1)])),_:1,__:[1]}),r(a,{title:"Meter-ID",required:"","model-value":t.component.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=p=>t.updateConfiguration(p,"configuration.meter_id"))},{help:i(()=>e[2]||(e[2]=[o(" Um die ID herauszufinden mit dem Browser die Adresse ",-1),l("a",{href:"https://api.discovergy.com/public/v1/meters",target:"_blank",rel:"noopener noreferrer"}," https://api.discovergy.com/public/v1/meters ",-1),o(" aufrufen und dort Benutzername und Passwort eingeben. Hier wird nun u.a. die ID des Zählers angezeigt. ",-1)])),_:1},8,["model-value"])])}const E=m(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/discovergy/counter.vue"]]);export{E as default}; +import{C as d}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as n,l as u,m as c,G as r,E as i,B as o,A as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceDiscovergyCounter",mixins:[d]},f={class:"device-discovergy-counter"};function g(t,e,v,b,w,x){const s=n("openwb-base-heading"),a=n("openwb-base-text-input");return u(),c("div",f,[r(s,null,{default:i(()=>e[1]||(e[1]=[o(" Einstellungen für Discovergy Zähler ",-1)])),_:1,__:[1]}),r(a,{title:"Meter-ID",required:"","model-value":t.component.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=p=>t.updateConfiguration(p,"configuration.meter_id"))},{help:i(()=>e[2]||(e[2]=[o(" Um die ID herauszufinden mit dem Browser die Adresse ",-1),l("a",{href:"https://api.discovergy.com/public/v1/meters",target:"_blank",rel:"noopener noreferrer"}," https://api.discovergy.com/public/v1/meters ",-1),o(" aufrufen und dort Benutzername und Passwort eingeben. Hier wird nun u.a. die ID des Zählers angezeigt. ",-1)])),_:1},8,["model-value"])])}const E=m(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/discovergy/counter.vue"]]);export{E as default}; diff --git a/web/settings/assets/counter-38b5b751.js b/web/settings/assets/counter-4644e6cb.js similarity index 63% rename from web/settings/assets/counter-38b5b751.js rename to web/settings/assets/counter-4644e6cb.js index 7c3769b049..019381e477 100644 --- a/web/settings/assets/counter-38b5b751.js +++ b/web/settings/assets/counter-4644e6cb.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as n,l as m,m as u,G as t,E as l,B as d}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSolisCounter",mixins:[p]},_={class:"device-solis-counter"};function b(o,e,f,v,g,C){const i=n("openwb-base-heading"),s=n("openwb-base-number-input");return m(),u("div",_,[t(i,null,{default:l(()=>e[1]||(e[1]=[d(" Einstellungen für Solis Zähler ",-1)])),_:1,__:[1]}),t(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const M=a(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solis/solis/counter.vue"]]);export{M as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as n,l as m,m as u,G as t,E as l,B as d}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSolisCounter",mixins:[p]},_={class:"device-solis-counter"};function b(o,e,f,v,g,C){const i=n("openwb-base-heading"),s=n("openwb-base-number-input");return m(),u("div",_,[t(i,null,{default:l(()=>e[1]||(e[1]=[d(" Einstellungen für Solis Zähler ",-1)])),_:1,__:[1]}),t(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const M=a(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solis/solis/counter.vue"]]);export{M as default}; diff --git a/web/settings/assets/counter-c1e3dac6.js b/web/settings/assets/counter-4e6d9499.js similarity index 70% rename from web/settings/assets/counter-c1e3dac6.js rename to web/settings/assets/counter-4e6d9499.js index 79163c403b..406a6e119e 100644 --- a/web/settings/assets/counter-c1e3dac6.js +++ b/web/settings/assets/counter-4e6d9499.js @@ -1 +1 @@ -import{C as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as s,u as n,l as i,m as a,G as p,E as c,B as o,A as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceKostalPikoCounter",mixins:[r]},u={class:"device-kostal-piko-counter"};function _(d,e,f,b,h,k){const t=n("openwb-base-alert");return i(),a("div",u,[p(t,{subtype:"info"},{default:c(()=>e[0]||(e[0]=[o(" Wenn der Zähler im Hausverbrauchs-Zweig installiert ist, muss die Hierarchie wie im ",-1),m("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Zähler",target:"_blank",rel:"noopener noreferrer"},"Wiki für Hausverbrauchs-Zähler",-1),o(" beschrieben, angeordnet werden. ",-1)])),_:1,__:[0]})])}const $=s(l,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_piko/counter.vue"]]);export{$ as default}; +import{C as r}from"./HardwareInstallation-0c77715a.js";import{_ as s,u as n,l as i,m as a,G as p,E as c,B as o,A as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceKostalPikoCounter",mixins:[r]},u={class:"device-kostal-piko-counter"};function _(d,e,f,b,h,k){const t=n("openwb-base-alert");return i(),a("div",u,[p(t,{subtype:"info"},{default:c(()=>e[0]||(e[0]=[o(" Wenn der Zähler im Hausverbrauchs-Zweig installiert ist, muss die Hierarchie wie im ",-1),m("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Zähler",target:"_blank",rel:"noopener noreferrer"},"Wiki für Hausverbrauchs-Zähler",-1),o(" beschrieben, angeordnet werden. ",-1)])),_:1,__:[0]})])}const $=s(l,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_piko/counter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/counter-f2f0c6a5.js b/web/settings/assets/counter-5661736f.js similarity index 81% rename from web/settings/assets/counter-f2f0c6a5.js rename to web/settings/assets/counter-5661736f.js index 4415197005..d2f8890afd 100644 --- a/web/settings/assets/counter-f2f0c6a5.js +++ b/web/settings/assets/counter-5661736f.js @@ -1 +1 @@ -import{C as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as l,u as t,l as m,m as c,G as r,E as i,B as n,A as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DevicePowerfoxCounter",mixins:[u]},_={class:"device-powerfox-counter"};function b(o,e,g,w,x,h){const a=t("openwb-base-heading"),p=t("openwb-base-text-input");return m(),c("div",_,[r(a,null,{default:i(()=>e[1]||(e[1]=[n(" Einstellungen für Powerfox Zähler ",-1)])),_:1,__:[1]}),r(p,{title:"ID",required:"","model-value":o.component.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=d=>o.updateConfiguration(d,"configuration.id"))},{help:i(()=>e[2]||(e[2]=[n(" Um die ID herauszufinden mit dem Browser die Adresse ",-1),s("a",{href:"https://backend.powerfox.energy/api/2.0/my/all/devices",target:"_blank",rel:"noopener noreferrer"}," https://backend.powerfox.energy/api/2.0/my/all/devices ",-1),n(" aufrufen und dort Benutzername und Passwort eingeben. Die DeviceID ist exakt so einzutragen, wie in der Antwort des Servers. Das bedeutet insbesondere auch, die Groß-/Kleinschreibung ist zu beachten! In dem Feld ist nur die Zeichenfolge direkt hinter ",-1),s("span",{class:"font-weight-bold text-monospace",style:{display:"contents"}},' "DeviceID" ',-1),n(" ohne den Doppelpunkt und Anführungszeichen einzutragen. ",-1)])),_:1},8,["model-value"])])}const V=l(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/powerfox/counter.vue"]]);export{V as default}; +import{C as u}from"./HardwareInstallation-0c77715a.js";import{_ as l,u as t,l as m,m as c,G as r,E as i,B as n,A as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DevicePowerfoxCounter",mixins:[u]},_={class:"device-powerfox-counter"};function b(o,e,g,w,x,h){const a=t("openwb-base-heading"),p=t("openwb-base-text-input");return m(),c("div",_,[r(a,null,{default:i(()=>e[1]||(e[1]=[n(" Einstellungen für Powerfox Zähler ",-1)])),_:1,__:[1]}),r(p,{title:"ID",required:"","model-value":o.component.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=d=>o.updateConfiguration(d,"configuration.id"))},{help:i(()=>e[2]||(e[2]=[n(" Um die ID herauszufinden mit dem Browser die Adresse ",-1),s("a",{href:"https://backend.powerfox.energy/api/2.0/my/all/devices",target:"_blank",rel:"noopener noreferrer"}," https://backend.powerfox.energy/api/2.0/my/all/devices ",-1),n(" aufrufen und dort Benutzername und Passwort eingeben. Die DeviceID ist exakt so einzutragen, wie in der Antwort des Servers. Das bedeutet insbesondere auch, die Groß-/Kleinschreibung ist zu beachten! In dem Feld ist nur die Zeichenfolge direkt hinter ",-1),s("span",{class:"font-weight-bold text-monospace",style:{display:"contents"}},' "DeviceID" ',-1),n(" ohne den Doppelpunkt und Anführungszeichen einzutragen. ",-1)])),_:1},8,["model-value"])])}const V=l(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/powerfox/counter.vue"]]);export{V as default}; diff --git a/web/settings/assets/counter-3e31d9a4.js b/web/settings/assets/counter-566a9e91.js similarity index 53% rename from web/settings/assets/counter-3e31d9a4.js rename to web/settings/assets/counter-566a9e91.js index 83199cfa31..c27d8515d2 100644 --- a/web/settings/assets/counter-3e31d9a4.js +++ b/web/settings/assets/counter-566a9e91.js @@ -1 +1 @@ -import{C as o}from"./HardwareInstallation-b7e2b58c.js";import{_ as n,u as r,l as s,m as i,G as a,E as p,B as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceThermiaCounter",mixins:[o]},_={class:"device-thermia-counter"};function u(d,e,f,l,v,b){const t=r("openwb-base-alert");return s(),i("div",_,[a(t,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[m(" ModbusTCP muss aktiviert sein. ",-1)])),_:1,__:[0]})])}const E=n(c,[["render",u],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/thermia/thermia/counter.vue"]]);export{E as default}; +import{C as o}from"./HardwareInstallation-0c77715a.js";import{_ as n,u as r,l as s,m as i,G as a,E as p,B as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceThermiaCounter",mixins:[o]},_={class:"device-thermia-counter"};function u(d,e,f,l,v,b){const t=r("openwb-base-alert");return s(),i("div",_,[a(t,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[m(" ModbusTCP muss aktiviert sein. ",-1)])),_:1,__:[0]})])}const E=n(c,[["render",u],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/thermia/thermia/counter.vue"]]);export{E as default}; diff --git a/web/settings/assets/counter-91b63bf3.js b/web/settings/assets/counter-58f8613e.js similarity index 93% rename from web/settings/assets/counter-91b63bf3.js rename to web/settings/assets/counter-58f8613e.js index 586e458c18..a3354d2de7 100644 --- a/web/settings/assets/counter-91b63bf3.js +++ b/web/settings/assets/counter-58f8613e.js @@ -1 +1 @@ -import{C as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as s,l as p,m as g,G as i,E as a,B as n,A as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const h={name:"DeviceHttpCounter",mixins:[u]},b={class:"device-http-counter"};function f(t,e,w,v,k,S){const d=s("openwb-base-heading"),o=s("openwb-base-text-input");return p(),g("div",b,[i(d,null,{default:a(()=>e[6]||(e[6]=[n(" Einstellungen für Http Zähler ",-1)])),_:1,__:[6]}),i(o,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":t.component.configuration.power_path,"onUpdate:modelValue":e[0]||(e[0]=r=>t.updateConfiguration(r,"configuration.power_path"))},{help:a(()=>e[7]||(e[7]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ",-1)])),_:1},8,["model-value"]),i(o,{title:"Pfad für Zählerstand Bezug",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.imported_path,"onUpdate:modelValue":e[1]||(e[1]=r=>t.updateConfiguration(r,"configuration.imported_path"))},{help:a(()=>e[8]||(e[8]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt.",-1),l("br",null,null,-1),n(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ",-1)])),_:1},8,["model-value"]),i(o,{title:"Pfad für Zählerstand Einspeisung",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.exported_path,"onUpdate:modelValue":e[2]||(e[2]=r=>t.updateConfiguration(r,"configuration.exported_path"))},{help:a(()=>e[9]||(e[9]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt.",-1),l("br",null,null,-1),n(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ",-1)])),_:1},8,["model-value"]),i(o,{title:"Pfad für Strom Phase 1",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.current_l1_path,"onUpdate:modelValue":e[3]||(e[3]=r=>t.updateConfiguration(r,"configuration.current_l1_path"))},{help:a(()=>e[10]||(e[10]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 1. Phase in Ampere darstellt.",-1),l("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"]),i(o,{title:"Pfad für Strom Phase 2",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.current_l2_path,"onUpdate:modelValue":e[4]||(e[4]=r=>t.updateConfiguration(r,"configuration.current_l2_path"))},{help:a(()=>e[11]||(e[11]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 2. Phase in Ampere darstellt.",-1),l("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"]),i(o,{title:"Pfad für Strom Phase 3",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.current_l3_path,"onUpdate:modelValue":e[5]||(e[5]=r=>t.updateConfiguration(r,"configuration.current_l3_path"))},{help:a(()=>e[12]||(e[12]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 3. Phase in Ampere darstellt.",-1),l("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"])])}const F=m(h,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/http/counter.vue"]]);export{F as default}; +import{C as u}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as s,l as p,m as g,G as i,E as a,B as n,A as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const h={name:"DeviceHttpCounter",mixins:[u]},b={class:"device-http-counter"};function f(t,e,w,v,k,S){const d=s("openwb-base-heading"),o=s("openwb-base-text-input");return p(),g("div",b,[i(d,null,{default:a(()=>e[6]||(e[6]=[n(" Einstellungen für Http Zähler ",-1)])),_:1,__:[6]}),i(o,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":t.component.configuration.power_path,"onUpdate:modelValue":e[0]||(e[0]=r=>t.updateConfiguration(r,"configuration.power_path"))},{help:a(()=>e[7]||(e[7]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ",-1)])),_:1},8,["model-value"]),i(o,{title:"Pfad für Zählerstand Bezug",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.imported_path,"onUpdate:modelValue":e[1]||(e[1]=r=>t.updateConfiguration(r,"configuration.imported_path"))},{help:a(()=>e[8]||(e[8]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt.",-1),l("br",null,null,-1),n(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ",-1)])),_:1},8,["model-value"]),i(o,{title:"Pfad für Zählerstand Einspeisung",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.exported_path,"onUpdate:modelValue":e[2]||(e[2]=r=>t.updateConfiguration(r,"configuration.exported_path"))},{help:a(()=>e[9]||(e[9]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt.",-1),l("br",null,null,-1),n(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ",-1)])),_:1},8,["model-value"]),i(o,{title:"Pfad für Strom Phase 1",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.current_l1_path,"onUpdate:modelValue":e[3]||(e[3]=r=>t.updateConfiguration(r,"configuration.current_l1_path"))},{help:a(()=>e[10]||(e[10]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 1. Phase in Ampere darstellt.",-1),l("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"]),i(o,{title:"Pfad für Strom Phase 2",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.current_l2_path,"onUpdate:modelValue":e[4]||(e[4]=r=>t.updateConfiguration(r,"configuration.current_l2_path"))},{help:a(()=>e[11]||(e[11]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 2. Phase in Ampere darstellt.",-1),l("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"]),i(o,{title:"Pfad für Strom Phase 3",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.current_l3_path,"onUpdate:modelValue":e[5]||(e[5]=r=>t.updateConfiguration(r,"configuration.current_l3_path"))},{help:a(()=>e[12]||(e[12]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 3. Phase in Ampere darstellt.",-1),l("br",null,null,-1),n(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ",-1)])),_:1},8,["model-value"])])}const F=m(h,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/http/counter.vue"]]);export{F as default}; diff --git a/web/settings/assets/counter-9aae6b3e.js b/web/settings/assets/counter-5fe4c9c7.js similarity index 72% rename from web/settings/assets/counter-9aae6b3e.js rename to web/settings/assets/counter-5fe4c9c7.js index 9468ee136c..3bf507db44 100644 --- a/web/settings/assets/counter-9aae6b3e.js +++ b/web/settings/assets/counter-5fe4c9c7.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as t,l as m,m as l,G as i,E as d,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceVictronCounter",mixins:[p]},b={class:"device-victron-counter"};function f(o,e,g,v,C,V){const r=t("openwb-base-heading"),u=t("openwb-base-number-input"),s=t("openwb-base-button-group-input");return m(),l("div",b,[i(r,null,{default:d(()=>e[2]||(e[2]=[c(" Einstellungen für Victron Zähler ",-1)])),_:1,__:[2]}),i(u,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),i(s,{title:"Messgerät",buttons:[{buttonValue:!1,text:"AC-In Victron GX"},{buttonValue:!0,text:"Energy Meter"}],"model-value":o.component.configuration.energy_meter,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.energy_meter"))},null,8,["model-value"])])}const G=a(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/victron/counter.vue"]]);export{G as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as t,l as m,m as l,G as i,E as d,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceVictronCounter",mixins:[p]},b={class:"device-victron-counter"};function f(o,e,g,v,C,V){const r=t("openwb-base-heading"),u=t("openwb-base-number-input"),s=t("openwb-base-button-group-input");return m(),l("div",b,[i(r,null,{default:d(()=>e[2]||(e[2]=[c(" Einstellungen für Victron Zähler ",-1)])),_:1,__:[2]}),i(u,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),i(s,{title:"Messgerät",buttons:[{buttonValue:!1,text:"AC-In Victron GX"},{buttonValue:!0,text:"Energy Meter"}],"model-value":o.component.configuration.energy_meter,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.energy_meter"))},null,8,["model-value"])])}const G=a(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/victron/counter.vue"]]);export{G as default}; diff --git a/web/settings/assets/counter-4bd255f1.js b/web/settings/assets/counter-696bc2b5.js similarity index 93% rename from web/settings/assets/counter-4bd255f1.js rename to web/settings/assets/counter-696bc2b5.js index cb92a6111f..19ba351300 100644 --- a/web/settings/assets/counter-4bd255f1.js +++ b/web/settings/assets/counter-696bc2b5.js @@ -1 +1 @@ -import{C as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u,l as f,m as g,G as l,E as o,B as t,A as e,F as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceMqttCounter",mixins:[d]},B={class:"device-mqtt-counter"};function k(i,n,z,x,W,v){const p=u("openwb-base-heading"),s=u("openwb-base-copy-to-clipboard"),m=u("openwb-base-alert");return f(),g("div",B,[l(p,null,{default:o(()=>n[0]||(n[0]=[t(" Einstellungen für MQTT Zähler ",-1)])),_:1,__:[0]}),l(m,{subtype:"info"},{default:o(()=>[n[41]||(n[41]=t(" Die folgenden Topics sind für einen reibungslosen Betrieb unbedingt erforderlich: ",-1)),e("ul",null,[e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/power ",1)]),_:1}),n[1]||(n[1]=e("br",null,null,-1)),n[2]||(n[2]=t(" Bezugsleistung in Watt, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, positiv Bezug, negativ Einspeisung",-1)),n[3]||(n[3]=e("br",null,null,-1)),n[4]||(n[4]=t(" Beispiel: ",-1)),n[5]||(n[5]=e("span",{class:"text-info"},"-123.45",-1))])]),n[42]||(n[42]=t(" Falls keine Werte für die Zählerstände übermittelt werden, berechnet openWB die Zählerstände anhand der Leistung. ",-1)),e("ul",null,[e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/imported ",1)]),_:1}),n[6]||(n[6]=e("br",null,null,-1)),n[7]||(n[7]=t(" Bezogene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv",-1)),n[8]||(n[8]=e("br",null,null,-1)),n[9]||(n[9]=t(" Beispiel: ",-1)),n[10]||(n[10]=e("span",{class:"text-info"},"123.45",-1))]),e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/exported ",1)]),_:1}),n[11]||(n[11]=e("br",null,null,-1)),n[12]||(n[12]=t(" Eingespeiste Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv",-1)),n[13]||(n[13]=e("br",null,null,-1)),n[14]||(n[14]=t(" Beispiel: ",-1)),n[15]||(n[15]=e("span",{class:"text-info"},"123.45",-1))])]),n[43]||(n[43]=t(" Ströme je Phase sind für phasenbasiertes Lastmanagement unbedingt erforderlich, sonst erfolgt das Lastmanagement ausschließlich auf Basis der Gesamtleistung am EVU-Punkt: ",-1)),e("ul",null,[e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/currents ",1)]),_:1}),n[16]||(n[16]=e("br",null,null,-1)),n[17]||(n[17]=t(" Array mit den Strömen je Phase in Ampere, mit Nachkommastellen (Float), positiv Bezug, negativ Einspeisung",-1)),n[18]||(n[18]=e("br",null,null,-1)),n[19]||(n[19]=t(" Beispiel: ",-1)),n[20]||(n[20]=e("span",{class:"text-info"},"[1.2,2.3,-2.1]",-1))])]),n[44]||(n[44]=t(" Die Netzfrequenz, Spannungen, Leistungen und Leistungsfaktoren jeder Phase werden ausschließlich zu Anzeigezwecken verwendet: ",-1)),e("ul",null,[e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/frequency ",1)]),_:1}),n[21]||(n[21]=e("br",null,null,-1)),n[22]||(n[22]=t(" Netzfrequenz in Hz, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen",-1)),n[23]||(n[23]=e("br",null,null,-1)),n[24]||(n[24]=t(" Beispiel: ",-1)),n[25]||(n[25]=e("span",{class:"text-info"},"50.12",-1))]),e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/voltages ",1)]),_:1}),n[26]||(n[26]=e("br",null,null,-1)),n[27]||(n[27]=t(" Array mit den Spannungen je Phase in Volt, mit Nachkommastellen (Float)",-1)),n[28]||(n[28]=e("br",null,null,-1)),n[29]||(n[29]=t(" Beispiel: ",-1)),n[30]||(n[30]=e("span",{class:"text-info"},"[222.2,223.3,222.3]",-1))]),e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/powers ",1)]),_:1}),n[31]||(n[31]=e("br",null,null,-1)),n[32]||(n[32]=t(" Array mit den Leistungen je Phase in Watt, mit Nachkommastellen (Float)",-1)),n[33]||(n[33]=e("br",null,null,-1)),n[34]||(n[34]=t(" Beispiel: ",-1)),n[35]||(n[35]=e("span",{class:"text-info"},"[12.3,23.4,-12.3]",-1))]),e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/power_factors ",1)]),_:1}),n[36]||(n[36]=e("br",null,null,-1)),n[37]||(n[37]=t(" Array mit den Leistungsfaktoren je Phase, mit Nachkommastellen (Float), Wertebereich -1 bis 1",-1)),n[38]||(n[38]=e("br",null,null,-1)),n[39]||(n[39]=t(" Beispiel: ",-1)),n[40]||(n[40]=e("span",{class:"text-info"},"[0.95,0.96,-0.95]",-1))])])]),_:1,__:[41,42,43,44]})])}const A=a(b,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/mqtt/counter.vue"]]);export{A as default}; +import{C as d}from"./HardwareInstallation-0c77715a.js";import{_ as a,u,l as f,m as g,G as l,E as o,B as t,A as e,F as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceMqttCounter",mixins:[d]},B={class:"device-mqtt-counter"};function k(i,n,z,x,W,v){const p=u("openwb-base-heading"),s=u("openwb-base-copy-to-clipboard"),m=u("openwb-base-alert");return f(),g("div",B,[l(p,null,{default:o(()=>n[0]||(n[0]=[t(" Einstellungen für MQTT Zähler ",-1)])),_:1,__:[0]}),l(m,{subtype:"info"},{default:o(()=>[n[41]||(n[41]=t(" Die folgenden Topics sind für einen reibungslosen Betrieb unbedingt erforderlich: ",-1)),e("ul",null,[e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/power ",1)]),_:1}),n[1]||(n[1]=e("br",null,null,-1)),n[2]||(n[2]=t(" Bezugsleistung in Watt, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, positiv Bezug, negativ Einspeisung",-1)),n[3]||(n[3]=e("br",null,null,-1)),n[4]||(n[4]=t(" Beispiel: ",-1)),n[5]||(n[5]=e("span",{class:"text-info"},"-123.45",-1))])]),n[42]||(n[42]=t(" Falls keine Werte für die Zählerstände übermittelt werden, berechnet openWB die Zählerstände anhand der Leistung. ",-1)),e("ul",null,[e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/imported ",1)]),_:1}),n[6]||(n[6]=e("br",null,null,-1)),n[7]||(n[7]=t(" Bezogene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv",-1)),n[8]||(n[8]=e("br",null,null,-1)),n[9]||(n[9]=t(" Beispiel: ",-1)),n[10]||(n[10]=e("span",{class:"text-info"},"123.45",-1))]),e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/exported ",1)]),_:1}),n[11]||(n[11]=e("br",null,null,-1)),n[12]||(n[12]=t(" Eingespeiste Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv",-1)),n[13]||(n[13]=e("br",null,null,-1)),n[14]||(n[14]=t(" Beispiel: ",-1)),n[15]||(n[15]=e("span",{class:"text-info"},"123.45",-1))])]),n[43]||(n[43]=t(" Ströme je Phase sind für phasenbasiertes Lastmanagement unbedingt erforderlich, sonst erfolgt das Lastmanagement ausschließlich auf Basis der Gesamtleistung am EVU-Punkt: ",-1)),e("ul",null,[e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/currents ",1)]),_:1}),n[16]||(n[16]=e("br",null,null,-1)),n[17]||(n[17]=t(" Array mit den Strömen je Phase in Ampere, mit Nachkommastellen (Float), positiv Bezug, negativ Einspeisung",-1)),n[18]||(n[18]=e("br",null,null,-1)),n[19]||(n[19]=t(" Beispiel: ",-1)),n[20]||(n[20]=e("span",{class:"text-info"},"[1.2,2.3,-2.1]",-1))])]),n[44]||(n[44]=t(" Die Netzfrequenz, Spannungen, Leistungen und Leistungsfaktoren jeder Phase werden ausschließlich zu Anzeigezwecken verwendet: ",-1)),e("ul",null,[e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/frequency ",1)]),_:1}),n[21]||(n[21]=e("br",null,null,-1)),n[22]||(n[22]=t(" Netzfrequenz in Hz, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen",-1)),n[23]||(n[23]=e("br",null,null,-1)),n[24]||(n[24]=t(" Beispiel: ",-1)),n[25]||(n[25]=e("span",{class:"text-info"},"50.12",-1))]),e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/voltages ",1)]),_:1}),n[26]||(n[26]=e("br",null,null,-1)),n[27]||(n[27]=t(" Array mit den Spannungen je Phase in Volt, mit Nachkommastellen (Float)",-1)),n[28]||(n[28]=e("br",null,null,-1)),n[29]||(n[29]=t(" Beispiel: ",-1)),n[30]||(n[30]=e("span",{class:"text-info"},"[222.2,223.3,222.3]",-1))]),e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/powers ",1)]),_:1}),n[31]||(n[31]=e("br",null,null,-1)),n[32]||(n[32]=t(" Array mit den Leistungen je Phase in Watt, mit Nachkommastellen (Float)",-1)),n[33]||(n[33]=e("br",null,null,-1)),n[34]||(n[34]=t(" Beispiel: ",-1)),n[35]||(n[35]=e("span",{class:"text-info"},"[12.3,23.4,-12.3]",-1))]),e("li",null,[l(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/counter/"+r(i.component.id)+"/get/power_factors ",1)]),_:1}),n[36]||(n[36]=e("br",null,null,-1)),n[37]||(n[37]=t(" Array mit den Leistungsfaktoren je Phase, mit Nachkommastellen (Float), Wertebereich -1 bis 1",-1)),n[38]||(n[38]=e("br",null,null,-1)),n[39]||(n[39]=t(" Beispiel: ",-1)),n[40]||(n[40]=e("span",{class:"text-info"},"[0.95,0.96,-0.95]",-1))])])]),_:1,__:[41,42,43,44]})])}const A=a(b,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/mqtt/counter.vue"]]);export{A as default}; diff --git a/web/settings/assets/counter-9cae3702.js b/web/settings/assets/counter-6c205795.js similarity index 55% rename from web/settings/assets/counter-9cae3702.js rename to web/settings/assets/counter-6c205795.js index 80a98146f4..b6e78cc4a7 100644 --- a/web/settings/assets/counter-9cae3702.js +++ b/web/settings/assets/counter-6c205795.js @@ -1 +1 @@ -import{C as o}from"./HardwareInstallation-b7e2b58c.js";import{_ as n,u as i,l as s,m as a,G as r,E as p,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const m={name:"DeviceJanitzaBat",mixins:[o]},_={class:"device-janitza-counter"};function u(d,e,f,l,v,b){const t=i("openwb-base-alert");return s(),a("div",_,[r(t,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[c(' ModbusTCP muss im Janitza auf Port 502 aktiv und die ID auf "1" eingestellt sein. ',-1)])),_:1,__:[0]})])}const D=n(m,[["render",u],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/janitza/janitza/counter.vue"]]);export{D as default}; +import{C as o}from"./HardwareInstallation-0c77715a.js";import{_ as n,u as i,l as s,m as a,G as r,E as p,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const m={name:"DeviceJanitzaBat",mixins:[o]},_={class:"device-janitza-counter"};function u(d,e,f,l,v,b){const t=i("openwb-base-alert");return s(),a("div",_,[r(t,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[c(' ModbusTCP muss im Janitza auf Port 502 aktiv und die ID auf "1" eingestellt sein. ',-1)])),_:1,__:[0]})])}const D=n(m,[["render",u],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/janitza/janitza/counter.vue"]]);export{D as default}; diff --git a/web/settings/assets/counter-7c0a1b4c.js b/web/settings/assets/counter-6f4588d4.js similarity index 58% rename from web/settings/assets/counter-7c0a1b4c.js rename to web/settings/assets/counter-6f4588d4.js index 5446e51551..5b58f717cc 100644 --- a/web/settings/assets/counter-7c0a1b4c.js +++ b/web/settings/assets/counter-6f4588d4.js @@ -1 +1 @@ -import{C as t}from"./HardwareInstallation-b7e2b58c.js";import{_ as o,u as s,l as i,m as r,G as a,E as p,B as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSonnenbatterieCounter",mixins:[t]},_={class:"device-sonnenbatterie-counter"};function d(l,e,u,f,b,v){const n=s("openwb-base-alert");return i(),r("div",_,[a(n,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[m(" Mit diesem Modul ist kein phasenbasiertes Lastmanagement möglich, da keine Ströme der einzelnen Phasen gemessen werden. ",-1)])),_:1,__:[0]})])}const E=o(c,[["render",d],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnen/sonnenbatterie/counter.vue"]]);export{E as default}; +import{C as t}from"./HardwareInstallation-0c77715a.js";import{_ as o,u as s,l as i,m as r,G as a,E as p,B as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSonnenbatterieCounter",mixins:[t]},_={class:"device-sonnenbatterie-counter"};function d(l,e,u,f,b,v){const n=s("openwb-base-alert");return i(),r("div",_,[a(n,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[m(" Mit diesem Modul ist kein phasenbasiertes Lastmanagement möglich, da keine Ströme der einzelnen Phasen gemessen werden. ",-1)])),_:1,__:[0]})])}const E=o(c,[["render",d],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnen/sonnenbatterie/counter.vue"]]);export{E as default}; diff --git a/web/settings/assets/counter-af1ad647.js b/web/settings/assets/counter-84b3047d.js similarity index 65% rename from web/settings/assets/counter-af1ad647.js rename to web/settings/assets/counter-84b3047d.js index c67deaeb84..c75b7eeadf 100644 --- a/web/settings/assets/counter-af1ad647.js +++ b/web/settings/assets/counter-84b3047d.js @@ -1 +1 @@ -import{C as s}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as n,l as u,m as p,G as t,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceHuaweiSmartLoggerCounter",mixins:[s]},c={class:"device-huawei-smart-logger-counter"};function g(o,e,b,f,w,v){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return u(),p("div",c,[t(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Huawei SmartLogger Zähler ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.modbus_id"))},null,8,["model-value"])])}const H=m(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/huawei_smartlogger/counter.vue"]]);export{H as default}; +import{C as s}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as n,l as u,m as p,G as t,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceHuaweiSmartLoggerCounter",mixins:[s]},c={class:"device-huawei-smart-logger-counter"};function g(o,e,b,f,w,v){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return u(),p("div",c,[t(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Huawei SmartLogger Zähler ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.modbus_id"))},null,8,["model-value"])])}const H=m(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/huawei_smartlogger/counter.vue"]]);export{H as default}; diff --git a/web/settings/assets/counter-484db2f2.js b/web/settings/assets/counter-8a64260e.js similarity index 64% rename from web/settings/assets/counter-484db2f2.js rename to web/settings/assets/counter-8a64260e.js index 5fd0b3c21a..e4ff62f354 100644 --- a/web/settings/assets/counter-484db2f2.js +++ b/web/settings/assets/counter-8a64260e.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as n,l as a,m,G as t,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSunnyBoyCounter",mixins:[p]},c={class:"device-sunnyboy-counter"};function b(o,e,f,v,g,y){const i=n("openwb-base-heading"),s=n("openwb-base-number-input");return a(),m("div",c,[t(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für SMA Sunny Boy/Tripower Zähler ",-1)])),_:1,__:[1]}),t(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const h=u(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_boy/counter.vue"]]);export{h as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as n,l as a,m,G as t,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSunnyBoyCounter",mixins:[p]},c={class:"device-sunnyboy-counter"};function b(o,e,f,v,g,y){const i=n("openwb-base-heading"),s=n("openwb-base-number-input");return a(),m("div",c,[t(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für SMA Sunny Boy/Tripower Zähler ",-1)])),_:1,__:[1]}),t(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const h=u(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_boy/counter.vue"]]);export{h as default}; diff --git a/web/settings/assets/counter-b7508d1c.js b/web/settings/assets/counter-8f9e07d5.js similarity index 76% rename from web/settings/assets/counter-b7508d1c.js rename to web/settings/assets/counter-8f9e07d5.js index c6c49762f6..f02ff4da83 100644 --- a/web/settings/assets/counter-b7508d1c.js +++ b/web/settings/assets/counter-8f9e07d5.js @@ -1 +1 @@ -import{C as n}from"./HardwareInstallation-b7e2b58c.js";import{_ as s,u as a,l as i,m as l,G as m,E as p,A as e,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSolarLogCounter",mixins:[n]},u={class:"device-solar_log-counter"};function _(d,o,g,h,f,b){const t=a("openwb-base-alert");return i(),l("div",u,[m(t,{subtype:"info"},{default:p(()=>o[0]||(o[0]=[e("span",{class:"text-danger"},[r(" Solar-Log Zähler geben keine Ströme aus, sodass nur ein Lastmanagement anhand der Gesamtleistung, aber nicht phasenbasiert möglich ist."),e("br")],-1),r(" Solar-Log Zähler sind Hausverbrauchs-Zähler. Um die Werte am EVU-Punkt zu ermitteln, muss ein virtueller Zähler konfiguriert werden. Eine Beispiel-Konfiguration mit Solar-Log Zähler findest Du im ",-1),e("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"}," Wiki für Hausverbrauchs-Zähler ",-1),r(". ",-1)])),_:1,__:[0]})])}const E=s(c,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/solar_log/counter.vue"]]);export{E as default}; +import{C as n}from"./HardwareInstallation-0c77715a.js";import{_ as s,u as a,l as i,m as l,G as m,E as p,A as e,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSolarLogCounter",mixins:[n]},u={class:"device-solar_log-counter"};function _(d,o,g,h,f,b){const t=a("openwb-base-alert");return i(),l("div",u,[m(t,{subtype:"info"},{default:p(()=>o[0]||(o[0]=[e("span",{class:"text-danger"},[r(" Solar-Log Zähler geben keine Ströme aus, sodass nur ein Lastmanagement anhand der Gesamtleistung, aber nicht phasenbasiert möglich ist."),e("br")],-1),r(" Solar-Log Zähler sind Hausverbrauchs-Zähler. Um die Werte am EVU-Punkt zu ermitteln, muss ein virtueller Zähler konfiguriert werden. Eine Beispiel-Konfiguration mit Solar-Log Zähler findest Du im ",-1),e("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"}," Wiki für Hausverbrauchs-Zähler ",-1),r(". ",-1)])),_:1,__:[0]})])}const E=s(c,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/solar_log/counter.vue"]]);export{E as default}; diff --git a/web/settings/assets/counter-858527e9.js b/web/settings/assets/counter-9413118e.js similarity index 71% rename from web/settings/assets/counter-858527e9.js rename to web/settings/assets/counter-9413118e.js index 3f519f16a2..8f57939a4b 100644 --- a/web/settings/assets/counter-858527e9.js +++ b/web/settings/assets/counter-9413118e.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as l,u as t,l as m,m as d,G as o,E as i,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceVirtualCounter",mixins:[p]},_={class:"device-virtual-counter"};function f(n,e,b,g,v,h){const s=t("openwb-base-heading"),a=t("openwb-base-number-input");return m(),d("div",_,[o(s,null,{default:i(()=>e[1]||(e[1]=[r(" Einstellungen für virtuelle Zähler ",-1)])),_:1,__:[1]}),o(a,{title:"Zusätzlicher Verbrauch",min:0,step:.05,unit:"kW",required:"","model-value":n.component.configuration.external_consumption/1e3,"onUpdate:modelValue":e[0]||(e[0]=u=>n.updateConfiguration(u*1e3,"configuration.external_consumption"))},{help:i(()=>e[2]||(e[2]=[r(" Die hier angegebene Leistung wird pauschal zu dem Leistungen der hinter dem Zähler liegenden Komponenten addiert. Damit lässt sich z. B. eine Reserve für nicht erfasste Verbraucher einstellen. ",-1)])),_:1},8,["model-value"])])}const E=l(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/virtual/counter.vue"]]);export{E as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as l,u as t,l as m,m as d,G as o,E as i,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceVirtualCounter",mixins:[p]},_={class:"device-virtual-counter"};function f(n,e,b,g,v,h){const s=t("openwb-base-heading"),a=t("openwb-base-number-input");return m(),d("div",_,[o(s,null,{default:i(()=>e[1]||(e[1]=[r(" Einstellungen für virtuelle Zähler ",-1)])),_:1,__:[1]}),o(a,{title:"Zusätzlicher Verbrauch",min:0,step:.05,unit:"kW",required:"","model-value":n.component.configuration.external_consumption/1e3,"onUpdate:modelValue":e[0]||(e[0]=u=>n.updateConfiguration(u*1e3,"configuration.external_consumption"))},{help:i(()=>e[2]||(e[2]=[r(" Die hier angegebene Leistung wird pauschal zu dem Leistungen der hinter dem Zähler liegenden Komponenten addiert. Damit lässt sich z. B. eine Reserve für nicht erfasste Verbraucher einstellen. ",-1)])),_:1},8,["model-value"])])}const E=l(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/virtual/counter.vue"]]);export{E as default}; diff --git a/web/settings/assets/counter-c9fa17a6.js b/web/settings/assets/counter-94cb1f63.js similarity index 71% rename from web/settings/assets/counter-c9fa17a6.js rename to web/settings/assets/counter-94cb1f63.js index 90f8196971..3d7a92790c 100644 --- a/web/settings/assets/counter-c9fa17a6.js +++ b/web/settings/assets/counter-94cb1f63.js @@ -1 +1 @@ -import{C as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as n,u as s,l as i,m as a,G as c,E as p,B as o,A as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const m={name:"DeviceKostalPlenticoreCounter",mixins:[r]},u={class:"device-kostal-plenticore-counter"};function _(d,e,f,b,h,v){const t=s("openwb-base-alert");return i(),a("div",u,[c(t,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[o(" Wenn der Zähler im Hausverbrauchs-Zweig installiert ist, muss die Hierarchie wie im ",-1),l("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Zähler",target:"_blank",rel:"noopener noreferrer"},"Wiki für Hausverbrauchs-Zähler",-1),o(" beschrieben, angeordnet werden. ",-1)])),_:1,__:[0]})])}const $=n(m,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_plenticore/counter.vue"]]);export{$ as default}; +import{C as r}from"./HardwareInstallation-0c77715a.js";import{_ as n,u as s,l as i,m as a,G as c,E as p,B as o,A as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const m={name:"DeviceKostalPlenticoreCounter",mixins:[r]},u={class:"device-kostal-plenticore-counter"};function _(d,e,f,b,h,v){const t=s("openwb-base-alert");return i(),a("div",u,[c(t,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[o(" Wenn der Zähler im Hausverbrauchs-Zweig installiert ist, muss die Hierarchie wie im ",-1),l("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Zähler",target:"_blank",rel:"noopener noreferrer"},"Wiki für Hausverbrauchs-Zähler",-1),o(" beschrieben, angeordnet werden. ",-1)])),_:1,__:[0]})])}const $=n(m,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_plenticore/counter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/counter-71c817be.js b/web/settings/assets/counter-9cc7434e.js similarity index 59% rename from web/settings/assets/counter-71c817be.js rename to web/settings/assets/counter-9cc7434e.js index d774c63a8e..001b18ea8d 100644 --- a/web/settings/assets/counter-71c817be.js +++ b/web/settings/assets/counter-9cc7434e.js @@ -1 +1 @@ -import{C as o}from"./HardwareInstallation-b7e2b58c.js";import{_ as s,u as n,l as r,m as i,G as a,E as p,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const m={name:"DeviceKostalSemCounter",mixins:[o]},l={class:"device-kostal-sem-counter"};function _(d,e,u,f,b,h){const t=n("openwb-base-alert");return r(),i("div",l,[a(t,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[c(" Diese Komponente ist nur richtig, wenn der Zähler NICHT direkt am Wechselrichter (Kostal Plenticore) angeschlossen ist und daher separat abgefragt werden muss. ",-1)])),_:1,__:[0]})])}const N=s(m,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_sem/counter.vue"]]);export{N as default}; +import{C as o}from"./HardwareInstallation-0c77715a.js";import{_ as s,u as n,l as r,m as i,G as a,E as p,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const m={name:"DeviceKostalSemCounter",mixins:[o]},l={class:"device-kostal-sem-counter"};function _(d,e,u,f,b,h){const t=n("openwb-base-alert");return r(),i("div",l,[a(t,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[c(" Diese Komponente ist nur richtig, wenn der Zähler NICHT direkt am Wechselrichter (Kostal Plenticore) angeschlossen ist und daher separat abgefragt werden muss. ",-1)])),_:1,__:[0]})])}const N=s(m,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_sem/counter.vue"]]);export{N as default}; diff --git a/web/settings/assets/counter-f53a55cd.js b/web/settings/assets/counter-aa714b1f.js similarity index 66% rename from web/settings/assets/counter-f53a55cd.js rename to web/settings/assets/counter-aa714b1f.js index 8c3696c2f0..8ea4ed633c 100644 --- a/web/settings/assets/counter-f53a55cd.js +++ b/web/settings/assets/counter-aa714b1f.js @@ -1 +1 @@ -import{C as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as n,l as d,m as l,G as t,E as i,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceSigenergyCounter",mixins:[m]},_={class:"device-sigenergy-counter"};function c(o,e,b,f,v,C){const s=n("openwb-base-heading"),p=n("openwb-base-number-input");return d(),l("div",_,[t(s,null,{default:i(()=>e[1]||(e[1]=[r(" Einstellungen für Sigenergy Zähler ",-1)])),_:1,__:[1]}),t(p,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.modbus_id"))},{help:i(()=>e[2]||(e[2]=[r(" Die Standard-Modbus-ID von Sigenergy ist 247 ",-1)])),_:1},8,["model-value"])])}const V=u(g,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sigenergy/sigenergy/counter.vue"]]);export{V as default}; +import{C as m}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as n,l as d,m as l,G as t,E as i,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceSigenergyCounter",mixins:[m]},_={class:"device-sigenergy-counter"};function c(o,e,b,f,v,C){const s=n("openwb-base-heading"),p=n("openwb-base-number-input");return d(),l("div",_,[t(s,null,{default:i(()=>e[1]||(e[1]=[r(" Einstellungen für Sigenergy Zähler ",-1)])),_:1,__:[1]}),t(p,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.modbus_id"))},{help:i(()=>e[2]||(e[2]=[r(" Die Standard-Modbus-ID von Sigenergy ist 247 ",-1)])),_:1},8,["model-value"])])}const V=u(g,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sigenergy/sigenergy/counter.vue"]]);export{V as default}; diff --git a/web/settings/assets/counter-510c4bff.js b/web/settings/assets/counter-ad9cf578.js similarity index 65% rename from web/settings/assets/counter-510c4bff.js rename to web/settings/assets/counter-ad9cf578.js index 4b1c259f31..0aa590dbb6 100644 --- a/web/settings/assets/counter-510c4bff.js +++ b/web/settings/assets/counter-ad9cf578.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as n,l as d,m as c,G as t,E as i,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceMTecCounter",mixins:[a]},_={class:"device-mtec-counter"};function b(o,e,f,v,g,C){const r=n("openwb-base-heading"),m=n("openwb-base-number-input");return d(),c("div",_,[t(r,null,{default:i(()=>e[1]||(e[1]=[s(" Einstellungen für M-Tec Zähler ",-1)])),_:1,__:[1]}),t(m,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.modbus_id"))},{help:i(()=>e[2]||(e[2]=[s(" Die Standard-Modbus-ID von M-Tec ist 247 ",-1)])),_:1},8,["model-value"])])}const k=u(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mtec/mtec/counter.vue"]]);export{k as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as n,l as d,m as c,G as t,E as i,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceMTecCounter",mixins:[a]},_={class:"device-mtec-counter"};function b(o,e,f,v,g,C){const r=n("openwb-base-heading"),m=n("openwb-base-number-input");return d(),c("div",_,[t(r,null,{default:i(()=>e[1]||(e[1]=[s(" Einstellungen für M-Tec Zähler ",-1)])),_:1,__:[1]}),t(m,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.modbus_id"))},{help:i(()=>e[2]||(e[2]=[s(" Die Standard-Modbus-ID von M-Tec ist 247 ",-1)])),_:1},8,["model-value"])])}const k=u(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mtec/mtec/counter.vue"]]);export{k as default}; diff --git a/web/settings/assets/counter-1951067e.js b/web/settings/assets/counter-b94bfe2c.js similarity index 63% rename from web/settings/assets/counter-1951067e.js rename to web/settings/assets/counter-b94bfe2c.js index 6f4e66c884..c66c671644 100644 --- a/web/settings/assets/counter-1951067e.js +++ b/web/settings/assets/counter-b94bfe2c.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as n,l as m,m as u,G as t,E as d,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceFoxEssCounter",mixins:[p]},c={class:"device-fox_ess-counter"};function f(o,e,b,x,v,g){const s=n("openwb-base-heading"),i=n("openwb-base-number-input");return m(),u("div",c,[t(s,null,{default:d(()=>e[1]||(e[1]=[_(" Einstellungen für FoxEss Zähler ",-1)])),_:1,__:[1]}),t(i,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const F=a(l,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fox_ess/fox_ess/counter.vue"]]);export{F as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as n,l as m,m as u,G as t,E as d,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceFoxEssCounter",mixins:[p]},c={class:"device-fox_ess-counter"};function f(o,e,b,x,v,g){const s=n("openwb-base-heading"),i=n("openwb-base-number-input");return m(),u("div",c,[t(s,null,{default:d(()=>e[1]||(e[1]=[_(" Einstellungen für FoxEss Zähler ",-1)])),_:1,__:[1]}),t(i,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const F=a(l,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fox_ess/fox_ess/counter.vue"]]);export{F as default}; diff --git a/web/settings/assets/counter-d7979450.js b/web/settings/assets/counter-ccc4227f.js similarity index 58% rename from web/settings/assets/counter-d7979450.js rename to web/settings/assets/counter-ccc4227f.js index 81e0ca1e65..aed6a8830d 100644 --- a/web/settings/assets/counter-d7979450.js +++ b/web/settings/assets/counter-ccc4227f.js @@ -1 +1 @@ -import{C as n}from"./HardwareInstallation-b7e2b58c.js";import{_ as o,u as s,l as r,m as a,G as i,E as m,B as p}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceTeslaCounter",mixins:[n]},l={class:"device-tesla-counter"};function _(d,e,u,f,v,x){const t=s("openwb-base-alert");return r(),a("div",l,[i(t,{subtype:"info"},{default:m(()=>e[0]||(e[0]=[p(" Je nach Firmware-Version ist nur ein Lastmanagement anhand der Gesamtleistung möglich, da nicht alle Firmware-Versionen Phasenströme liefern. ",-1)])),_:1,__:[0]})])}const E=o(c,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/tesla/counter.vue"]]);export{E as default}; +import{C as n}from"./HardwareInstallation-0c77715a.js";import{_ as o,u as s,l as r,m as a,G as i,E as m,B as p}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceTeslaCounter",mixins:[n]},l={class:"device-tesla-counter"};function _(d,e,u,f,v,x){const t=s("openwb-base-alert");return r(),a("div",l,[i(t,{subtype:"info"},{default:m(()=>e[0]||(e[0]=[p(" Je nach Firmware-Version ist nur ein Lastmanagement anhand der Gesamtleistung möglich, da nicht alle Firmware-Versionen Phasenströme liefern. ",-1)])),_:1,__:[0]})])}const E=o(c,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/tesla/counter.vue"]]);export{E as default}; diff --git a/web/settings/assets/counter-69ac9fe8.js b/web/settings/assets/counter-e054b606.js similarity index 63% rename from web/settings/assets/counter-69ac9fe8.js rename to web/settings/assets/counter-e054b606.js index 738d874e98..c9192db3bd 100644 --- a/web/settings/assets/counter-69ac9fe8.js +++ b/web/settings/assets/counter-e054b606.js @@ -1 +1 @@ -import{C as s}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as n,l as m,m as u,G as t,E as l,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceAvmCounter",mixins:[s]},_={class:"device-avm-counter"};function f(o,e,v,b,x,g){const i=n("openwb-base-heading"),r=n("openwb-base-text-input");return m(),u("div",_,[t(i,null,{default:l(()=>e[1]||(e[1]=[c(" Einstellungen für AVM Fritz!Box Zähler ",-1)])),_:1,__:[1]}),t(r,{title:"Gerätename in der Fritz!Box",required:"","model-value":o.component.configuration.name,"onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.name"))},null,8,["model-value"])])}const A=p(d,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/avm/avm/counter.vue"]]);export{A as default}; +import{C as s}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as n,l as m,m as u,G as t,E as l,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceAvmCounter",mixins:[s]},_={class:"device-avm-counter"};function f(o,e,v,b,x,g){const i=n("openwb-base-heading"),r=n("openwb-base-text-input");return m(),u("div",_,[t(i,null,{default:l(()=>e[1]||(e[1]=[c(" Einstellungen für AVM Fritz!Box Zähler ",-1)])),_:1,__:[1]}),t(r,{title:"Gerätename in der Fritz!Box",required:"","model-value":o.component.configuration.name,"onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.name"))},null,8,["model-value"])])}const A=p(d,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/avm/avm/counter.vue"]]);export{A as default}; diff --git a/web/settings/assets/counter-5505722d.js b/web/settings/assets/counter-e68e3c33.js similarity index 66% rename from web/settings/assets/counter-5505722d.js rename to web/settings/assets/counter-e68e3c33.js index e6d8b20ff1..e323f8f81c 100644 --- a/web/settings/assets/counter-5505722d.js +++ b/web/settings/assets/counter-e68e3c33.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as t,l as a,m as l,G as n,E as m,B as d}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DevicePowerdogCounter",mixins:[p]},_={class:"device-powerdog-counter"};function b(e,o,f,g,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-button-group-input");return a(),l("div",_,[n(i,null,{default:m(()=>o[1]||(o[1]=[d(" Einstellungen für Powerdog Zähler ",-1)])),_:1,__:[1]}),n(r,{title:"Einbau-Position",buttons:[{buttonValue:!1,text:"Hausverbrauch"},{buttonValue:!0,text:"EVU-Punkt"}],"model-value":e.component.configuration.position_evu,"onUpdate:modelValue":o[0]||(o[0]=s=>e.updateConfiguration(s,"configuration.position_evu"))},null,8,["model-value"])])}const N=u(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/powerdog/counter.vue"]]);export{N as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as t,l as a,m as l,G as n,E as m,B as d}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DevicePowerdogCounter",mixins:[p]},_={class:"device-powerdog-counter"};function b(e,o,f,g,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-button-group-input");return a(),l("div",_,[n(i,null,{default:m(()=>o[1]||(o[1]=[d(" Einstellungen für Powerdog Zähler ",-1)])),_:1,__:[1]}),n(r,{title:"Einbau-Position",buttons:[{buttonValue:!1,text:"Hausverbrauch"},{buttonValue:!0,text:"EVU-Punkt"}],"model-value":e.component.configuration.position_evu,"onUpdate:modelValue":o[0]||(o[0]=s=>e.updateConfiguration(s,"configuration.position_evu"))},null,8,["model-value"])])}const N=u(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/powerdog/counter.vue"]]);export{N as default}; diff --git a/web/settings/assets/counter-cae900f7.js b/web/settings/assets/counter-e9030149.js similarity index 65% rename from web/settings/assets/counter-cae900f7.js rename to web/settings/assets/counter-e9030149.js index d234d7296f..265ba05f15 100644 --- a/web/settings/assets/counter-cae900f7.js +++ b/web/settings/assets/counter-e9030149.js @@ -1 +1 @@ -import{C as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as o,l as d,m as l,G as t,E as i,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceEnphaseCounter",mixins:[m]},_={class:"device-enphase-counter"};function f(n,e,b,v,g,E){const p=o("openwb-base-heading"),r=o("openwb-base-number-input");return d(),l("div",_,[t(p,null,{default:i(()=>e[1]||(e[1]=[s(" Einstellungen für Enphase Envoy / IQ Gateway Zähler ",-1)])),_:1,__:[1]}),t(r,{title:"EID",required:"","model-value":n.component.configuration.eid,"onUpdate:modelValue":e[0]||(e[0]=a=>n.updateConfiguration(a,"configuration.eid"))},{help:i(()=>e[2]||(e[2]=[s(' EID für "net-consumption" ',-1)])),_:1},8,["model-value"])])}const k=u(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/enphase/counter.vue"]]);export{k as default}; +import{C as m}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as o,l as d,m as l,G as t,E as i,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceEnphaseCounter",mixins:[m]},_={class:"device-enphase-counter"};function f(n,e,b,v,g,E){const p=o("openwb-base-heading"),r=o("openwb-base-number-input");return d(),l("div",_,[t(p,null,{default:i(()=>e[1]||(e[1]=[s(" Einstellungen für Enphase Envoy / IQ Gateway Zähler ",-1)])),_:1,__:[1]}),t(r,{title:"EID",required:"","model-value":n.component.configuration.eid,"onUpdate:modelValue":e[0]||(e[0]=a=>n.updateConfiguration(a,"configuration.eid"))},{help:i(()=>e[2]||(e[2]=[s(' EID für "net-consumption" ',-1)])),_:1},8,["model-value"])])}const k=u(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/enphase/counter.vue"]]);export{k as default}; diff --git a/web/settings/assets/counter-0b772c20.js b/web/settings/assets/counter-efe3ec69.js similarity index 78% rename from web/settings/assets/counter-0b772c20.js rename to web/settings/assets/counter-efe3ec69.js index 0cb9b14159..19be53803f 100644 --- a/web/settings/assets/counter-0b772c20.js +++ b/web/settings/assets/counter-efe3ec69.js @@ -1 +1 @@ -import{C as s}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as r,l as m,m as g,G as t,E as l,B as u}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceVZLoggerCounter",mixins:[s]},_={class:"device-vzlogger-counter"};function c(n,e,b,v,w,Z){const a=r("openwb-base-heading"),p=r("openwb-base-alert"),i=r("openwb-base-number-input");return m(),g("div",_,[t(a,null,{default:l(()=>e[3]||(e[3]=[u(" Einstellungen für VZLogger Zähler ",-1)])),_:1,__:[3]}),t(p,{subtype:"info"},{default:l(()=>e[4]||(e[4]=[u(' Bitte auf der Shell ausführen: "curl -s IPdesVZLogger:Port | jq .|cat -n" Zählen, in welcher Zeile der gesuchte Wert steht. Bei der ersten Zeile mit 1 anfangen zu zählen. ',-1)])),_:1,__:[4]}),t(i,{title:"Zeile der Leistung",required:"",min:0,"model-value":n.component.configuration.line_power,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.line_power"))},null,8,["model-value"]),t(i,{title:"Zeile der Einspeisung",min:0,"model-value":n.component.configuration.line_exported,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.line_exported"))},null,8,["model-value"]),t(i,{title:"Zeile des Bezugs",min:0,"model-value":n.component.configuration.line_imported,"onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.line_imported"))},null,8,["model-value"])])}const U=d(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/vzlogger/counter.vue"]]);export{U as default}; +import{C as s}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as r,l as m,m as g,G as t,E as l,B as u}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceVZLoggerCounter",mixins:[s]},_={class:"device-vzlogger-counter"};function c(n,e,b,v,w,Z){const a=r("openwb-base-heading"),p=r("openwb-base-alert"),i=r("openwb-base-number-input");return m(),g("div",_,[t(a,null,{default:l(()=>e[3]||(e[3]=[u(" Einstellungen für VZLogger Zähler ",-1)])),_:1,__:[3]}),t(p,{subtype:"info"},{default:l(()=>e[4]||(e[4]=[u(' Bitte auf der Shell ausführen: "curl -s IPdesVZLogger:Port | jq .|cat -n" Zählen, in welcher Zeile der gesuchte Wert steht. Bei der ersten Zeile mit 1 anfangen zu zählen. ',-1)])),_:1,__:[4]}),t(i,{title:"Zeile der Leistung",required:"",min:0,"model-value":n.component.configuration.line_power,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.line_power"))},null,8,["model-value"]),t(i,{title:"Zeile der Einspeisung",min:0,"model-value":n.component.configuration.line_exported,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.line_exported"))},null,8,["model-value"]),t(i,{title:"Zeile des Bezugs",min:0,"model-value":n.component.configuration.line_imported,"onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.line_imported"))},null,8,["model-value"])])}const U=d(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/vzlogger/counter.vue"]]);export{U as default}; diff --git a/web/settings/assets/counter-40c49fbb.js b/web/settings/assets/counter-f13a85ea.js similarity index 63% rename from web/settings/assets/counter-40c49fbb.js rename to web/settings/assets/counter-f13a85ea.js index 70865104b3..f4a2f44583 100644 --- a/web/settings/assets/counter-40c49fbb.js +++ b/web/settings/assets/counter-f13a85ea.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as n,l as m,m as u,G as t,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceDeyeCounter",mixins:[p]},_={class:"device-deye-counter"};function b(o,e,f,v,g,C){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return m(),u("div",_,[t(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Deye Zähler ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const k=a(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/deye/counter.vue"]]);export{k as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as n,l as m,m as u,G as t,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceDeyeCounter",mixins:[p]},_={class:"device-deye-counter"};function b(o,e,f,v,g,C){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return m(),u("div",_,[t(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Deye Zähler ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const k=a(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/deye/counter.vue"]]);export{k as default}; diff --git a/web/settings/assets/counter-4321da14.js b/web/settings/assets/counter-f910d11a.js similarity index 92% rename from web/settings/assets/counter-4321da14.js rename to web/settings/assets/counter-f910d11a.js index 75d132740d..cbff54d698 100644 --- a/web/settings/assets/counter-4321da14.js +++ b/web/settings/assets/counter-f910d11a.js @@ -1 +1 @@ -import{C as s}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u,l as f,m,G as t,E as r,B as a,A as g}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceJsonCounter",mixins:[s]},v={class:"device-json-counter"};function w(o,e,j,q,_,P){const i=u("openwb-base-heading"),l=u("openwb-base-text-input"),d=u("openwb-base-alert");return f(),m("div",v,[t(i,null,{default:r(()=>e[15]||(e[15]=[a(" Einstellungen für JSON Zähler ",-1)])),_:1,__:[15]}),t(l,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":o.component.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.jq_power"))},{help:r(()=>e[16]||(e[16]=[a(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. ',-1),g("br",null,null,-1),a(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ",-1)])),_:1},8,["model-value"]),t(l,{title:"Abfrage für Zählerstand Bezug",subtype:"text","model-value":o.component.configuration.jq_imported,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.jq_imported"))},{help:r(()=>e[17]||(e[17]=[a(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ",-1)])),_:1},8,["model-value"]),t(l,{title:"Abfrage für Zählerstand Einspeisung",subtype:"text","model-value":o.component.configuration.jq_exported,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.jq_exported"))},{help:r(()=>e[18]||(e[18]=[a(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ",-1)])),_:1},8,["model-value"]),t(d,{subtype:"info"},{default:r(()=>e[19]||(e[19]=[a(" Werden sowohl Leistung als auch Strom auf den Einzelphasen leer gelassen, erfolgt das Lastmanagement am EVU-Punkt nur anhand der Gesamtleistung am EVU-Punkt. Wird der Zähler als Zwischenzähler verwendet, wird in diesem Fall kein Lastmanagement durchgeführt. ",-1)])),_:1,__:[19]}),t(l,{title:"Abfrage für Leistung auf Phase 1",subtype:"text","model-value":o.component.configuration.jq_power_l1,"onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.jq_power_l1"))},null,8,["model-value"]),t(l,{title:"Abfrage für Leistung auf Phase 2",subtype:"text","model-value":o.component.configuration.jq_power_l2,"onUpdate:modelValue":e[4]||(e[4]=n=>o.updateConfiguration(n,"configuration.jq_power_l2"))},null,8,["model-value"]),t(l,{title:"Abfrage für Leistung auf Phase 3",subtype:"text","model-value":o.component.configuration.jq_power_l3,"onUpdate:modelValue":e[5]||(e[5]=n=>o.updateConfiguration(n,"configuration.jq_power_l3"))},null,8,["model-value"]),t(l,{title:"Abfrage für Leistungsfaktor auf Phase 1",subtype:"text","model-value":o.component.configuration.jq_power_factor_l1,"onUpdate:modelValue":e[6]||(e[6]=n=>o.updateConfiguration(n,"configuration.jq_power_factor_l1"))},null,8,["model-value"]),t(l,{title:"Abfrage für Leistungsfaktor auf Phase 2",subtype:"text","model-value":o.component.configuration.jq_power_factor_l2,"onUpdate:modelValue":e[7]||(e[7]=n=>o.updateConfiguration(n,"configuration.jq_power_factor_l2"))},null,8,["model-value"]),t(l,{title:"Abfrage für Leistungsfaktor auf Phase 3",subtype:"text","model-value":o.component.configuration.jq_power_factor_l3,"onUpdate:modelValue":e[8]||(e[8]=n=>o.updateConfiguration(n,"configuration.jq_power_factor_l3"))},null,8,["model-value"]),t(l,{title:"Abfrage für Strom auf Phase 1",subtype:"text","model-value":o.component.configuration.jq_current_l1,"onUpdate:modelValue":e[9]||(e[9]=n=>o.updateConfiguration(n,"configuration.jq_current_l1"))},null,8,["model-value"]),t(l,{title:"Abfrage für Strom auf Phase 2",subtype:"text","model-value":o.component.configuration.jq_current_l2,"onUpdate:modelValue":e[10]||(e[10]=n=>o.updateConfiguration(n,"configuration.jq_current_l2"))},null,8,["model-value"]),t(l,{title:"Abfrage für Strom auf Phase 3",subtype:"text","model-value":o.component.configuration.jq_current_l3,"onUpdate:modelValue":e[11]||(e[11]=n=>o.updateConfiguration(n,"configuration.jq_current_l3"))},null,8,["model-value"]),t(l,{title:"Abfrage für Spannung auf Phase 1",subtype:"text","model-value":o.component.configuration.jq_voltage_l1,"onUpdate:modelValue":e[12]||(e[12]=n=>o.updateConfiguration(n,"configuration.jq_voltage_l1"))},null,8,["model-value"]),t(l,{title:"Abfrage für Spannung auf Phase 2",subtype:"text","model-value":o.component.configuration.jq_voltage_l2,"onUpdate:modelValue":e[13]||(e[13]=n=>o.updateConfiguration(n,"configuration.jq_voltage_l2"))},null,8,["model-value"]),t(l,{title:"Abfrage für Spannung auf Phase 3",subtype:"text","model-value":o.component.configuration.jq_voltage_l3,"onUpdate:modelValue":e[14]||(e[14]=n=>o.updateConfiguration(n,"configuration.jq_voltage_l3"))},null,8,["model-value"])])}const E=p(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/json/counter.vue"]]);export{E as default}; +import{C as s}from"./HardwareInstallation-0c77715a.js";import{_ as p,u,l as f,m,G as t,E as r,B as a,A as g}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceJsonCounter",mixins:[s]},v={class:"device-json-counter"};function w(o,e,j,q,_,P){const i=u("openwb-base-heading"),l=u("openwb-base-text-input"),d=u("openwb-base-alert");return f(),m("div",v,[t(i,null,{default:r(()=>e[15]||(e[15]=[a(" Einstellungen für JSON Zähler ",-1)])),_:1,__:[15]}),t(l,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":o.component.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.jq_power"))},{help:r(()=>e[16]||(e[16]=[a(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. ',-1),g("br",null,null,-1),a(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ",-1)])),_:1},8,["model-value"]),t(l,{title:"Abfrage für Zählerstand Bezug",subtype:"text","model-value":o.component.configuration.jq_imported,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.jq_imported"))},{help:r(()=>e[17]||(e[17]=[a(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ",-1)])),_:1},8,["model-value"]),t(l,{title:"Abfrage für Zählerstand Einspeisung",subtype:"text","model-value":o.component.configuration.jq_exported,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.jq_exported"))},{help:r(()=>e[18]||(e[18]=[a(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ",-1)])),_:1},8,["model-value"]),t(d,{subtype:"info"},{default:r(()=>e[19]||(e[19]=[a(" Werden sowohl Leistung als auch Strom auf den Einzelphasen leer gelassen, erfolgt das Lastmanagement am EVU-Punkt nur anhand der Gesamtleistung am EVU-Punkt. Wird der Zähler als Zwischenzähler verwendet, wird in diesem Fall kein Lastmanagement durchgeführt. ",-1)])),_:1,__:[19]}),t(l,{title:"Abfrage für Leistung auf Phase 1",subtype:"text","model-value":o.component.configuration.jq_power_l1,"onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.jq_power_l1"))},null,8,["model-value"]),t(l,{title:"Abfrage für Leistung auf Phase 2",subtype:"text","model-value":o.component.configuration.jq_power_l2,"onUpdate:modelValue":e[4]||(e[4]=n=>o.updateConfiguration(n,"configuration.jq_power_l2"))},null,8,["model-value"]),t(l,{title:"Abfrage für Leistung auf Phase 3",subtype:"text","model-value":o.component.configuration.jq_power_l3,"onUpdate:modelValue":e[5]||(e[5]=n=>o.updateConfiguration(n,"configuration.jq_power_l3"))},null,8,["model-value"]),t(l,{title:"Abfrage für Leistungsfaktor auf Phase 1",subtype:"text","model-value":o.component.configuration.jq_power_factor_l1,"onUpdate:modelValue":e[6]||(e[6]=n=>o.updateConfiguration(n,"configuration.jq_power_factor_l1"))},null,8,["model-value"]),t(l,{title:"Abfrage für Leistungsfaktor auf Phase 2",subtype:"text","model-value":o.component.configuration.jq_power_factor_l2,"onUpdate:modelValue":e[7]||(e[7]=n=>o.updateConfiguration(n,"configuration.jq_power_factor_l2"))},null,8,["model-value"]),t(l,{title:"Abfrage für Leistungsfaktor auf Phase 3",subtype:"text","model-value":o.component.configuration.jq_power_factor_l3,"onUpdate:modelValue":e[8]||(e[8]=n=>o.updateConfiguration(n,"configuration.jq_power_factor_l3"))},null,8,["model-value"]),t(l,{title:"Abfrage für Strom auf Phase 1",subtype:"text","model-value":o.component.configuration.jq_current_l1,"onUpdate:modelValue":e[9]||(e[9]=n=>o.updateConfiguration(n,"configuration.jq_current_l1"))},null,8,["model-value"]),t(l,{title:"Abfrage für Strom auf Phase 2",subtype:"text","model-value":o.component.configuration.jq_current_l2,"onUpdate:modelValue":e[10]||(e[10]=n=>o.updateConfiguration(n,"configuration.jq_current_l2"))},null,8,["model-value"]),t(l,{title:"Abfrage für Strom auf Phase 3",subtype:"text","model-value":o.component.configuration.jq_current_l3,"onUpdate:modelValue":e[11]||(e[11]=n=>o.updateConfiguration(n,"configuration.jq_current_l3"))},null,8,["model-value"]),t(l,{title:"Abfrage für Spannung auf Phase 1",subtype:"text","model-value":o.component.configuration.jq_voltage_l1,"onUpdate:modelValue":e[12]||(e[12]=n=>o.updateConfiguration(n,"configuration.jq_voltage_l1"))},null,8,["model-value"]),t(l,{title:"Abfrage für Spannung auf Phase 2",subtype:"text","model-value":o.component.configuration.jq_voltage_l2,"onUpdate:modelValue":e[13]||(e[13]=n=>o.updateConfiguration(n,"configuration.jq_voltage_l2"))},null,8,["model-value"]),t(l,{title:"Abfrage für Spannung auf Phase 3",subtype:"text","model-value":o.component.configuration.jq_voltage_l3,"onUpdate:modelValue":e[14]||(e[14]=n=>o.updateConfiguration(n,"configuration.jq_voltage_l3"))},null,8,["model-value"])])}const E=p(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/json/counter.vue"]]);export{E as default}; diff --git a/web/settings/assets/counter-686e6911.js b/web/settings/assets/counter-f990ab02.js similarity index 68% rename from web/settings/assets/counter-686e6911.js rename to web/settings/assets/counter-f990ab02.js index cff6bb7264..b600312be2 100644 --- a/web/settings/assets/counter-686e6911.js +++ b/web/settings/assets/counter-f990ab02.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as t,l,m as d,G as r,E as i,B as n,A as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSmahmCounter",mixins:[p]},f={class:"device-smahm-counter"};function b(o,e,g,v,M,h){const s=t("openwb-base-heading"),a=t("openwb-base-number-input");return l(),d("div",f,[r(s,null,{default:i(()=>e[1]||(e[1]=[n(" Einstellungen für SMA-HM/EM Zähler ",-1)])),_:1,__:[1]}),r(a,{title:"Seriennummer","model-value":o.component.configuration.serials,"onUpdate:modelValue":e[0]||(e[0]=m=>o.updateConfiguration(m,"configuration.serials"))},{help:i(()=>e[2]||(e[2]=[n(" Eine Seriennummer ist nur erforderlich, wenn mehrere SMA HomeManager in Betrieb sind.",-1),c("br",null,null,-1),n(" Funktioniert auch mit Energy Meter anstatt Home Manager. ",-1)])),_:1},8,["model-value"])])}const A=u(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_shm/counter.vue"]]);export{A as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as t,l,m as d,G as r,E as i,B as n,A as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSmahmCounter",mixins:[p]},f={class:"device-smahm-counter"};function b(o,e,g,v,M,h){const s=t("openwb-base-heading"),a=t("openwb-base-number-input");return l(),d("div",f,[r(s,null,{default:i(()=>e[1]||(e[1]=[n(" Einstellungen für SMA-HM/EM Zähler ",-1)])),_:1,__:[1]}),r(a,{title:"Seriennummer","model-value":o.component.configuration.serials,"onUpdate:modelValue":e[0]||(e[0]=m=>o.updateConfiguration(m,"configuration.serials"))},{help:i(()=>e[2]||(e[2]=[n(" Eine Seriennummer ist nur erforderlich, wenn mehrere SMA HomeManager in Betrieb sind.",-1),c("br",null,null,-1),n(" Funktioniert auch mit Energy Meter anstatt Home Manager. ",-1)])),_:1},8,["model-value"])])}const A=u(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_shm/counter.vue"]]);export{A as default}; diff --git a/web/settings/assets/counter-351902ed.js b/web/settings/assets/counter-f9f8b4aa.js similarity index 63% rename from web/settings/assets/counter-351902ed.js rename to web/settings/assets/counter-f9f8b4aa.js index e7386c3d59..55a23f0369 100644 --- a/web/settings/assets/counter-351902ed.js +++ b/web/settings/assets/counter-f9f8b4aa.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as n,l as m,m as u,G as t,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceOrnoCounter",mixins:[p]},_={class:"device-orno-counter"};function b(e,o,f,v,g,C){const r=n("openwb-base-heading"),i=n("openwb-base-number-input");return m(),u("div",_,[t(r,null,{default:d(()=>o[1]||(o[1]=[l(" Einstellungen für Orno WE-514 Zähler ",-1)])),_:1,__:[1]}),t(i,{title:"Modbus ID",required:"","model-value":e.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":o[0]||(o[0]=s=>e.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const M=a(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/orno/orno/counter.vue"]]);export{M as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as n,l as m,m as u,G as t,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceOrnoCounter",mixins:[p]},_={class:"device-orno-counter"};function b(e,o,f,v,g,C){const r=n("openwb-base-heading"),i=n("openwb-base-number-input");return m(),u("div",_,[t(r,null,{default:d(()=>o[1]||(o[1]=[l(" Einstellungen für Orno WE-514 Zähler ",-1)])),_:1,__:[1]}),t(i,{title:"Modbus ID",required:"","model-value":e.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":o[0]||(o[0]=s=>e.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const M=a(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/orno/orno/counter.vue"]]);export{M as default}; diff --git a/web/settings/assets/counter_consumption-cf52aa82.js b/web/settings/assets/counter_consumption-14cd8b87.js similarity index 71% rename from web/settings/assets/counter_consumption-cf52aa82.js rename to web/settings/assets/counter_consumption-14cd8b87.js index 836feea3a5..f231a4def4 100644 --- a/web/settings/assets/counter_consumption-cf52aa82.js +++ b/web/settings/assets/counter_consumption-14cd8b87.js @@ -1 +1 @@ -import{C as s}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as p,l as u,m as d,G as t,E as o,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceSonnenbatterieCounterConsumption",mixins:[s]},m={class:"device-sonnenbatterie-counter-consumption"};function c(i,e,_,f,b,v){const n=p("openwb-base-alert");return u(),d("div",m,[t(n,{subtype:"info"},{default:o(()=>e[0]||(e[0]=[r(" Diese Komponente liest die Daten des Verbrauchszählers der Sonnenbatterie aus, nicht die EVU-Daten! Es ist ggf. ein virtueller Zähler als EVU-Zähler zu konfigurieren, falls kein anderer Zähler vorhanden ist und ausgelesen werden kann. ",-1)])),_:1,__:[0]}),t(n,{subtype:i.device.configuration.variant!==3?"danger":"info"},{default:o(()=>e[1]||(e[1]=[r(" Diese Komponente kann nur in Verbindung mit der JSON-API v2 verwendet werden, da die anderen Schnittstellen die Daten nicht zur Verfügung stellen. ",-1)])),_:1,__:[1]},8,["subtype"])])}const B=a(l,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnen/sonnenbatterie/counter_consumption.vue"]]);export{B as default}; +import{C as s}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as p,l as u,m as d,G as t,E as o,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceSonnenbatterieCounterConsumption",mixins:[s]},m={class:"device-sonnenbatterie-counter-consumption"};function c(i,e,_,f,b,v){const n=p("openwb-base-alert");return u(),d("div",m,[t(n,{subtype:"info"},{default:o(()=>e[0]||(e[0]=[r(" Diese Komponente liest die Daten des Verbrauchszählers der Sonnenbatterie aus, nicht die EVU-Daten! Es ist ggf. ein virtueller Zähler als EVU-Zähler zu konfigurieren, falls kein anderer Zähler vorhanden ist und ausgelesen werden kann. ",-1)])),_:1,__:[0]}),t(n,{subtype:i.device.configuration.variant!==3?"danger":"info"},{default:o(()=>e[1]||(e[1]=[r(" Diese Komponente kann nur in Verbindung mit der JSON-API v2 verwendet werden, da die anderen Schnittstellen die Daten nicht zur Verfügung stellen. ",-1)])),_:1,__:[1]},8,["subtype"])])}const B=a(l,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnen/sonnenbatterie/counter_consumption.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter_sm-d1b8f654.js b/web/settings/assets/counter_sm-09ba7690.js similarity index 87% rename from web/settings/assets/counter_sm-d1b8f654.js rename to web/settings/assets/counter_sm-09ba7690.js index 7c95bcd21d..9b4defaa3c 100644 --- a/web/settings/assets/counter_sm-d1b8f654.js +++ b/web/settings/assets/counter_sm-09ba7690.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as f,u as i,l as g,m as c,G as o,E as a,B as t,A as l,F as b}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceFroniusCounterSM",mixins:[p],computed:{meterRealtimeUrl:{get(){return`http://${this.device.configuration.ip_address}/solar_api/v1/GetMeterRealtimeData.cgi?Scope=System`}}}},v={class:"device-fronius-counter-sm"},w=["href"];function D(n,e,M,S,h,s){const m=i("openwb-base-heading"),d=i("openwb-base-select-input"),u=i("openwb-base-number-input");return g(),c("div",v,[o(m,null,{default:a(()=>e[2]||(e[2]=[t(" Einstellungen für Fronius SmartMeter ",-1)])),_:1,__:[2]}),o(d,{title:"Kompatibilitätsmodus","not-selected":"Bitte auswählen",required:"",options:[{value:0,text:"Aus"},{value:1,text:"Variante 1"},{value:2,text:"Variante 2"}],"model-value":n.component.configuration.variant,"onUpdate:modelValue":e[0]||(e[0]=r=>n.updateConfiguration(r,"configuration.variant"))},{help:a(()=>e[3]||(e[3]=[t(" Gegebenenfalls auch für alte Modelle nach einem Softwareupdate erforderlich. Fronius hat derzeit keine Konsistente Schnittstelle. Speziell beim Gen24 kann Variante 1 oder 2 erforderlich sein. Nach speichern sollten nach etwa 10-20 Sekunden Daten angezeigt werden. Ist dies nicht der Fall die andere Variante ausprobieren. ",-1)])),_:1},8,["model-value"]),o(u,{title:"Meter ID",required:"",min:"0",max:"65535","model-value":n.component.configuration.meter_id,"onUpdate:modelValue":e[1]||(e[1]=r=>n.updateConfiguration(r,"configuration.meter_id"))},{help:a(()=>[e[4]||(e[4]=t(" Die Meter ID des SmartMeters. Diese ist normalerweise 1. Bei mehreren SmartMetern im System kann es notwendig sein, die Meter ID zu ändern. Zur Ermittlung kann der folgende Link verwendet werden. Die Meter ID kann den zurückgegebenen JSON Daten entnommen werden. ",-1)),l("a",{href:s.meterRealtimeUrl,target:"_blank",rel:"noopener noreferrer"},b(s.meterRealtimeUrl),9,w),e[5]||(e[5]=l("br",null,null,-1)),e[6]||(e[6]=t(' Im Abschnitt "Body" -> "Data" werden die installierten SmartMeter mit aktuellen Messwerten angezeigt. Die Meter ID ist die Zahl vor dem Doppelpunkt und den zugehörigen Messwerten. ',-1))]),_:1},8,["model-value"])])}const U=f(_,[["render",D],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/fronius/counter_sm.vue"]]);export{U as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as f,u as i,l as g,m as c,G as o,E as a,B as t,A as l,F as b}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceFroniusCounterSM",mixins:[p],computed:{meterRealtimeUrl:{get(){return`http://${this.device.configuration.ip_address}/solar_api/v1/GetMeterRealtimeData.cgi?Scope=System`}}}},v={class:"device-fronius-counter-sm"},w=["href"];function D(n,e,M,S,h,s){const m=i("openwb-base-heading"),d=i("openwb-base-select-input"),u=i("openwb-base-number-input");return g(),c("div",v,[o(m,null,{default:a(()=>e[2]||(e[2]=[t(" Einstellungen für Fronius SmartMeter ",-1)])),_:1,__:[2]}),o(d,{title:"Kompatibilitätsmodus","not-selected":"Bitte auswählen",required:"",options:[{value:0,text:"Aus"},{value:1,text:"Variante 1"},{value:2,text:"Variante 2"}],"model-value":n.component.configuration.variant,"onUpdate:modelValue":e[0]||(e[0]=r=>n.updateConfiguration(r,"configuration.variant"))},{help:a(()=>e[3]||(e[3]=[t(" Gegebenenfalls auch für alte Modelle nach einem Softwareupdate erforderlich. Fronius hat derzeit keine Konsistente Schnittstelle. Speziell beim Gen24 kann Variante 1 oder 2 erforderlich sein. Nach speichern sollten nach etwa 10-20 Sekunden Daten angezeigt werden. Ist dies nicht der Fall die andere Variante ausprobieren. ",-1)])),_:1},8,["model-value"]),o(u,{title:"Meter ID",required:"",min:"0",max:"65535","model-value":n.component.configuration.meter_id,"onUpdate:modelValue":e[1]||(e[1]=r=>n.updateConfiguration(r,"configuration.meter_id"))},{help:a(()=>[e[4]||(e[4]=t(" Die Meter ID des SmartMeters. Diese ist normalerweise 1. Bei mehreren SmartMetern im System kann es notwendig sein, die Meter ID zu ändern. Zur Ermittlung kann der folgende Link verwendet werden. Die Meter ID kann den zurückgegebenen JSON Daten entnommen werden. ",-1)),l("a",{href:s.meterRealtimeUrl,target:"_blank",rel:"noopener noreferrer"},b(s.meterRealtimeUrl),9,w),e[5]||(e[5]=l("br",null,null,-1)),e[6]||(e[6]=t(' Im Abschnitt "Body" -> "Data" werden die installierten SmartMeter mit aktuellen Messwerten angezeigt. Die Meter ID ist die Zahl vor dem Doppelpunkt und den zugehörigen Messwerten. ',-1))]),_:1},8,["model-value"])])}const U=f(_,[["render",D],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/fronius/counter_sm.vue"]]);export{U as default}; diff --git a/web/settings/assets/device-465f5d76.js b/web/settings/assets/device-012d3b5a.js similarity index 69% rename from web/settings/assets/device-465f5d76.js rename to web/settings/assets/device-012d3b5a.js index 6e6073d423..df68f96825 100644 --- a/web/settings/assets/device-465f5d76.js +++ b/web/settings/assets/device-012d3b5a.js @@ -1 +1 @@ -import{D as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as i,l as d,m as u,G as t,E as l,B as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSunways",mixins:[r]},f={class:"device-sunways"};function _(o,e,v,w,b,g){const a=i("openwb-base-heading"),s=i("openwb-base-text-input");return d(),u("div",f,[t(a,null,{default:l(()=>e[2]||(e[2]=[m(" Einstellungen für Sunways ",-1)])),_:1,__:[2]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(s,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},null,8,["model-value"])])}const q=p(c,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sunways/sunways/device.vue"]]);export{q as default}; +import{D as r}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as i,l as d,m as u,G as t,E as l,B as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSunways",mixins:[r]},f={class:"device-sunways"};function _(o,e,v,w,b,g){const a=i("openwb-base-heading"),s=i("openwb-base-text-input");return d(),u("div",f,[t(a,null,{default:l(()=>e[2]||(e[2]=[m(" Einstellungen für Sunways ",-1)])),_:1,__:[2]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(s,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},null,8,["model-value"])])}const q=p(c,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sunways/sunways/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-12a7dbac.js b/web/settings/assets/device-019ef76a.js similarity index 76% rename from web/settings/assets/device-12a7dbac.js rename to web/settings/assets/device-019ef76a.js index ab2f288758..266d8f1a1f 100644 --- a/web/settings/assets/device-12a7dbac.js +++ b/web/settings/assets/device-019ef76a.js @@ -1 +1 @@ -import{D as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as l,u as i,l as _,m as b,G as t,E as r,B as a}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSiemens",mixins:[m]},v={class:"device-siemens"};function c(o,e,g,w,C,x){const p=i("openwb-base-heading"),d=i("openwb-base-alert"),u=i("openwb-base-text-input"),s=i("openwb-base-number-input");return _(),b("div",v,[t(p,null,{default:r(()=>e[3]||(e[3]=[a(" Einstellungen für Siemens ",-1)])),_:1,__:[3]}),t(d,{subtype:"info"},{default:r(()=>e[4]||(e[4]=[a(" Im Siemens-Speicher muss die Schnittstelle openWB gewählt werden. ",-1)])),_:1,__:[4]}),t(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(s,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(s,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const k=l(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/siemens/device.vue"]]);export{k as default}; +import{D as m}from"./HardwareInstallation-0c77715a.js";import{_ as l,u as i,l as _,m as b,G as t,E as r,B as a}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSiemens",mixins:[m]},v={class:"device-siemens"};function c(o,e,g,w,C,x){const p=i("openwb-base-heading"),d=i("openwb-base-alert"),u=i("openwb-base-text-input"),s=i("openwb-base-number-input");return _(),b("div",v,[t(p,null,{default:r(()=>e[3]||(e[3]=[a(" Einstellungen für Siemens ",-1)])),_:1,__:[3]}),t(d,{subtype:"info"},{default:r(()=>e[4]||(e[4]=[a(" Im Siemens-Speicher muss die Schnittstelle openWB gewählt werden. ",-1)])),_:1,__:[4]}),t(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(s,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(s,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const k=l(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/siemens/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-126f751b.js b/web/settings/assets/device-075d9674.js similarity index 87% rename from web/settings/assets/device-126f751b.js rename to web/settings/assets/device-075d9674.js index be81470736..c51eeb4a5e 100644 --- a/web/settings/assets/device-126f751b.js +++ b/web/settings/assets/device-075d9674.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as s,l as f,m as g,G as t,E as a,B as r,A as o}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const w={name:"DeviceTesla",mixins:[p]},b={class:"device-tesla"};function c(n,e,v,k,_,h){const d=s("openwb-base-heading"),u=s("openwb-base-alert"),l=s("openwb-base-text-input");return f(),g("div",b,[t(d,null,{default:a(()=>e[3]||(e[3]=[r(" Einstellungen für Tesla ",-1)])),_:1,__:[3]}),t(u,{subtype:"danger"},{default:a(()=>e[4]||(e[4]=[o("span",{style:{"font-weight":"bold"}}," Tesla hat in der aktuellen Firmware-Version die lokale API der PowerWall abgeschaltet. ",-1),r("Daher ist es mit dieser Firmware nicht mehr möglich, die PowerWall direkt auszulesen. Wir prüfen aktuell den Zugriff über die Tesla-Server. Bis zur Umsetzung dieser Funktion ist es nicht möglich, die PowerWall lokal auszulesen.",-1),o("br",null,null,-1),o("span",{style:{"font-weight":"bold"}}," Wenn die lokale Abfrage bei Dir noch funktioniert, dann solltest Du die Firmware der PowerWall nicht aktualisieren! ",-1),o("br",null,null,-1),r(" Wir empfehlen, dass Du Tesla kontaktierst und Kritik an dieser Entscheidung mitteilst. Nur so können wir hoffen, dass Tesla die lokale API wieder aktiviert. Mit der Cloud-API kommt es zwangsläufig zu Verzögerungen (Latenzen), welche eine Regelung durch openWB erschweren. Weiterhin kommt es zu einem totalen Ausfall, wenn die Internetverbindung gestört ist. Aus diesen Gründen ist eine lokale API immer vorzuziehen. ",-1)])),_:1,__:[4]}),t(l,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"]),t(l,{title:"E-Mail",subtype:"email",required:"","model-value":n.device.configuration.email,"onUpdate:modelValue":e[1]||(e[1]=i=>n.updateConfiguration(i,"configuration.email"))},null,8,["model-value"]),t(l,{title:"Passwort",subtype:"password",required:"","model-value":n.device.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=i=>n.updateConfiguration(i,"configuration.password"))},null,8,["model-value"])])}const y=m(w,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/tesla/device.vue"]]);export{y as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as s,l as f,m as g,G as t,E as a,B as r,A as o}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const w={name:"DeviceTesla",mixins:[p]},b={class:"device-tesla"};function c(n,e,v,k,_,h){const d=s("openwb-base-heading"),u=s("openwb-base-alert"),l=s("openwb-base-text-input");return f(),g("div",b,[t(d,null,{default:a(()=>e[3]||(e[3]=[r(" Einstellungen für Tesla ",-1)])),_:1,__:[3]}),t(u,{subtype:"danger"},{default:a(()=>e[4]||(e[4]=[o("span",{style:{"font-weight":"bold"}}," Tesla hat in der aktuellen Firmware-Version die lokale API der PowerWall abgeschaltet. ",-1),r("Daher ist es mit dieser Firmware nicht mehr möglich, die PowerWall direkt auszulesen. Wir prüfen aktuell den Zugriff über die Tesla-Server. Bis zur Umsetzung dieser Funktion ist es nicht möglich, die PowerWall lokal auszulesen.",-1),o("br",null,null,-1),o("span",{style:{"font-weight":"bold"}}," Wenn die lokale Abfrage bei Dir noch funktioniert, dann solltest Du die Firmware der PowerWall nicht aktualisieren! ",-1),o("br",null,null,-1),r(" Wir empfehlen, dass Du Tesla kontaktierst und Kritik an dieser Entscheidung mitteilst. Nur so können wir hoffen, dass Tesla die lokale API wieder aktiviert. Mit der Cloud-API kommt es zwangsläufig zu Verzögerungen (Latenzen), welche eine Regelung durch openWB erschweren. Weiterhin kommt es zu einem totalen Ausfall, wenn die Internetverbindung gestört ist. Aus diesen Gründen ist eine lokale API immer vorzuziehen. ",-1)])),_:1,__:[4]}),t(l,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"]),t(l,{title:"E-Mail",subtype:"email",required:"","model-value":n.device.configuration.email,"onUpdate:modelValue":e[1]||(e[1]=i=>n.updateConfiguration(i,"configuration.email"))},null,8,["model-value"]),t(l,{title:"Passwort",subtype:"password",required:"","model-value":n.device.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=i=>n.updateConfiguration(i,"configuration.password"))},null,8,["model-value"])])}const y=m(w,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/tesla/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-18442843.js b/web/settings/assets/device-0812a0b7.js similarity index 74% rename from web/settings/assets/device-18442843.js rename to web/settings/assets/device-0812a0b7.js index 0d921c18bd..9f68356faa 100644 --- a/web/settings/assets/device-18442843.js +++ b/web/settings/assets/device-0812a0b7.js @@ -1 +1 @@ -import{D as l}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as t,l as d,m as u,G as i,E as s,B as o,A as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceJson",mixins:[l]},f={class:"device-json"};function b(n,e,v,g,w,x){const r=t("openwb-base-heading"),a=t("openwb-base-text-input");return d(),u("div",f,[i(r,null,{default:s(()=>e[1]||(e[1]=[o(" Einstellungen für JSON ",-1)])),_:1,__:[1]}),i(a,{title:"URL",subtype:"url",required:"","model-value":n.device.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=p=>n.updateConfiguration(p,"configuration.url"))},{help:s(()=>e[2]||(e[2]=[o(" Es wird eine komplette URL erwartet mit Angaben zum Protokoll, IP oder Hostnamen, optional einem Port und einem Pfad. Die Antwort muss ein json-Objekt sein.",-1),c("br",null,null,-1),o(" Beispiel: http://192.168.1.1:8080/json?data=1 ",-1)])),_:1},8,["model-value"])])}const $=m(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/json/device.vue"]]);export{$ as default}; +import{D as l}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as t,l as d,m as u,G as i,E as s,B as o,A as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceJson",mixins:[l]},f={class:"device-json"};function b(n,e,v,g,w,x){const r=t("openwb-base-heading"),a=t("openwb-base-text-input");return d(),u("div",f,[i(r,null,{default:s(()=>e[1]||(e[1]=[o(" Einstellungen für JSON ",-1)])),_:1,__:[1]}),i(a,{title:"URL",subtype:"url",required:"","model-value":n.device.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=p=>n.updateConfiguration(p,"configuration.url"))},{help:s(()=>e[2]||(e[2]=[o(" Es wird eine komplette URL erwartet mit Angaben zum Protokoll, IP oder Hostnamen, optional einem Port und einem Pfad. Die Antwort muss ein json-Objekt sein.",-1),c("br",null,null,-1),o(" Beispiel: http://192.168.1.1:8080/json?data=1 ",-1)])),_:1},8,["model-value"])])}const $=m(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/json/device.vue"]]);export{$ as default}; diff --git a/web/settings/assets/device-f42f3b17.js b/web/settings/assets/device-083b322d.js similarity index 69% rename from web/settings/assets/device-f42f3b17.js rename to web/settings/assets/device-083b322d.js index dc53320b7b..b2f7e57ea2 100644 --- a/web/settings/assets/device-f42f3b17.js +++ b/web/settings/assets/device-083b322d.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as n,l as m,m as u,G as i,E as l,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceMTec",mixins:[a]},f={class:"device-mtec"};function b(o,e,v,g,w,x){const s=n("openwb-base-heading"),r=n("openwb-base-text-input"),p=n("openwb-base-number-input");return m(),u("div",f,[i(s,null,{default:l(()=>e[2]||(e[2]=[c("Einstellungen für M-Tec",-1)])),_:1,__:[2]}),i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.port"))},null,8,["model-value"])])}const q=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mtec/mtec/device.vue"]]);export{q as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as n,l as m,m as u,G as i,E as l,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceMTec",mixins:[a]},f={class:"device-mtec"};function b(o,e,v,g,w,x){const s=n("openwb-base-heading"),r=n("openwb-base-text-input"),p=n("openwb-base-number-input");return m(),u("div",f,[i(s,null,{default:l(()=>e[2]||(e[2]=[c("Einstellungen für M-Tec",-1)])),_:1,__:[2]}),i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.port"))},null,8,["model-value"])])}const q=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mtec/mtec/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-29966a32.js b/web/settings/assets/device-0a610e9f.js similarity index 90% rename from web/settings/assets/device-29966a32.js rename to web/settings/assets/device-0a610e9f.js index ed2285abae..b2efb04912 100644 --- a/web/settings/assets/device-29966a32.js +++ b/web/settings/assets/device-0a610e9f.js @@ -1 +1 @@ -import{D as f}from"./HardwareInstallation-b7e2b58c.js";import{_ as g,u as d,l as t,m as b,G as l,E as a,B as i,x as s,z as u,A as p}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const w={name:"DeviceEnphase",mixins:[f]},y={class:"device-enphase"};function k(n,e,V,c,E,h){const m=d("openwb-base-heading"),r=d("openwb-base-text-input"),v=d("openwb-base-select-input");return t(),b("div",y,[l(m,null,{default:a(()=>e[6]||(e[6]=[i(" Einstellungen für Enphase Envoy / IQ Gateway ",-1)])),_:1,__:[6]}),l(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.hostname,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.hostname"))},{help:a(()=>e[7]||(e[7]=[i(' Bitte geben Sie die IP-Adresse oder den Hostnamen des Enphase Envoy oder IQ Gateway an. Die Info finden Sie in Ihrem Router. Ab Werk ist der Hostname "envoy" oder "envoy.local". ',-1)])),_:1},8,["model-value"]),l(v,{title:"Version",required:"",options:[{value:1,text:"Firmware < 7.0"},{value:2,text:"Firmware ab 7.0"}],"model-value":n.device.configuration.version,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.version"))},{help:a(()=>e[8]||(e[8]=[i(" Bitte wählen Sie die Version des Enphase Envoy oder IQ Gateway aus. Die Version 1 ist für Geräte mit einer Firmware-Version unter 7.0, die Version 2 für Geräte mit einer Firmware-Version ab 7.0. Ein angebundener Speicher wird nur bei Version 2 unterstützt. ",-1)])),_:1},8,["model-value"]),n.device.configuration.version>1?(t(),s(r,{key:0,title:"Benutzer",subtype:"user","model-value":n.device.configuration.user,required:"","onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.user"))},null,8,["model-value"])):u("",!0),n.device.configuration.version>1?(t(),s(r,{key:1,title:"Kennwort",subtype:"password","model-value":n.device.configuration.password,required:"","onUpdate:modelValue":e[3]||(e[3]=o=>n.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])):u("",!0),n.device.configuration.version>1?(t(),s(r,{key:2,title:"Envoy Seriennummer","model-value":n.device.configuration.serial,required:"","onUpdate:modelValue":e[4]||(e[4]=o=>n.updateConfiguration(o,"configuration.serial"))},null,8,["model-value"])):u("",!0),n.device.configuration.version>1?(t(),s(r,{key:3,title:"Token",subtype:"password","model-value":n.device.configuration.token,required:"","onUpdate:modelValue":e[5]||(e[5]=o=>n.updateConfiguration(o,"configuration.token"))},{help:a(()=>e[9]||(e[9]=[i(" Wenn Benutzer, Kennwort und Seriennummer des Envoys angegeben werden, wird das Token automatisch beim Speichern abgerufen. Ebenfalls wird ein abgelaufenes Token (derzeit nach einem Jahr) automatisch erneuert.",-1),p("br",null,null,-1),i(" Wenn Sie ein Token manuell erstellen möchten, können Sie dies auf der ",-1),p("a",{href:"https://developer.enphase.com/docs/quickstart.html",target:"_blank",rel:"noopener"}," Enphase-Webseite ",-1),i(" erledigen. ",-1)])),_:1},8,["model-value"])):u("",!0)])}const T=g(w,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/enphase/device.vue"]]);export{T as default}; +import{D as f}from"./HardwareInstallation-0c77715a.js";import{_ as g,u as d,l as t,m as b,G as l,E as a,B as i,x as s,z as u,A as p}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const w={name:"DeviceEnphase",mixins:[f]},y={class:"device-enphase"};function k(n,e,V,c,E,h){const m=d("openwb-base-heading"),r=d("openwb-base-text-input"),v=d("openwb-base-select-input");return t(),b("div",y,[l(m,null,{default:a(()=>e[6]||(e[6]=[i(" Einstellungen für Enphase Envoy / IQ Gateway ",-1)])),_:1,__:[6]}),l(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.hostname,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.hostname"))},{help:a(()=>e[7]||(e[7]=[i(' Bitte geben Sie die IP-Adresse oder den Hostnamen des Enphase Envoy oder IQ Gateway an. Die Info finden Sie in Ihrem Router. Ab Werk ist der Hostname "envoy" oder "envoy.local". ',-1)])),_:1},8,["model-value"]),l(v,{title:"Version",required:"",options:[{value:1,text:"Firmware < 7.0"},{value:2,text:"Firmware ab 7.0"}],"model-value":n.device.configuration.version,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.version"))},{help:a(()=>e[8]||(e[8]=[i(" Bitte wählen Sie die Version des Enphase Envoy oder IQ Gateway aus. Die Version 1 ist für Geräte mit einer Firmware-Version unter 7.0, die Version 2 für Geräte mit einer Firmware-Version ab 7.0. Ein angebundener Speicher wird nur bei Version 2 unterstützt. ",-1)])),_:1},8,["model-value"]),n.device.configuration.version>1?(t(),s(r,{key:0,title:"Benutzer",subtype:"user","model-value":n.device.configuration.user,required:"","onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.user"))},null,8,["model-value"])):u("",!0),n.device.configuration.version>1?(t(),s(r,{key:1,title:"Kennwort",subtype:"password","model-value":n.device.configuration.password,required:"","onUpdate:modelValue":e[3]||(e[3]=o=>n.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])):u("",!0),n.device.configuration.version>1?(t(),s(r,{key:2,title:"Envoy Seriennummer","model-value":n.device.configuration.serial,required:"","onUpdate:modelValue":e[4]||(e[4]=o=>n.updateConfiguration(o,"configuration.serial"))},null,8,["model-value"])):u("",!0),n.device.configuration.version>1?(t(),s(r,{key:3,title:"Token",subtype:"password","model-value":n.device.configuration.token,required:"","onUpdate:modelValue":e[5]||(e[5]=o=>n.updateConfiguration(o,"configuration.token"))},{help:a(()=>e[9]||(e[9]=[i(" Wenn Benutzer, Kennwort und Seriennummer des Envoys angegeben werden, wird das Token automatisch beim Speichern abgerufen. Ebenfalls wird ein abgelaufenes Token (derzeit nach einem Jahr) automatisch erneuert.",-1),p("br",null,null,-1),i(" Wenn Sie ein Token manuell erstellen möchten, können Sie dies auf der ",-1),p("a",{href:"https://developer.enphase.com/docs/quickstart.html",target:"_blank",rel:"noopener"}," Enphase-Webseite ",-1),i(" erledigen. ",-1)])),_:1},8,["model-value"])):u("",!0)])}const T=g(w,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/enphase/device.vue"]]);export{T as default}; diff --git a/web/settings/assets/device-e96fb3a1.js b/web/settings/assets/device-0b615e92.js similarity index 77% rename from web/settings/assets/device-e96fb3a1.js rename to web/settings/assets/device-0b615e92.js index 2e749132da..661306fdb3 100644 --- a/web/settings/assets/device-e96fb3a1.js +++ b/web/settings/assets/device-0b615e92.js @@ -1 +1 @@ -import{D as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as l,u as i,l as _,m as b,G as t,E as r,B as a}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSiemensSentron",mixins:[m]},v={class:"device-siemens-sentron"};function c(n,e,g,w,C,x){const u=i("openwb-base-heading"),p=i("openwb-base-alert"),d=i("openwb-base-text-input"),s=i("openwb-base-number-input");return _(),b("div",v,[t(u,null,{default:r(()=>e[3]||(e[3]=[a(" Einstellungen für Siemens Sentron ",-1)])),_:1,__:[3]}),t(p,{subtype:"info"},{default:r(()=>e[4]||(e[4]=[a(' Derzeit werden nur Messgeräte vom Typ "7KM PAC2200" mit Ethernet-Schnittstelle unterstützt. ',-1)])),_:1,__:[4]}),t(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),t(s,{title:"Port",required:"",min:1,max:65535,"model-value":n.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.port"))},null,8,["model-value"]),t(s,{title:"Modbus ID",required:"","model-value":n.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.modbus_id"))},null,8,["model-value"])])}const P=l(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/siemens_sentron/device.vue"]]);export{P as default}; +import{D as m}from"./HardwareInstallation-0c77715a.js";import{_ as l,u as i,l as _,m as b,G as t,E as r,B as a}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSiemensSentron",mixins:[m]},v={class:"device-siemens-sentron"};function c(n,e,g,w,C,x){const u=i("openwb-base-heading"),p=i("openwb-base-alert"),d=i("openwb-base-text-input"),s=i("openwb-base-number-input");return _(),b("div",v,[t(u,null,{default:r(()=>e[3]||(e[3]=[a(" Einstellungen für Siemens Sentron ",-1)])),_:1,__:[3]}),t(p,{subtype:"info"},{default:r(()=>e[4]||(e[4]=[a(' Derzeit werden nur Messgeräte vom Typ "7KM PAC2200" mit Ethernet-Schnittstelle unterstützt. ',-1)])),_:1,__:[4]}),t(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),t(s,{title:"Port",required:"",min:1,max:65535,"model-value":n.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.port"))},null,8,["model-value"]),t(s,{title:"Modbus ID",required:"","model-value":n.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.modbus_id"))},null,8,["model-value"])])}const P=l(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/siemens_sentron/device.vue"]]);export{P as default}; diff --git a/web/settings/assets/device-8e1ca3b6.js b/web/settings/assets/device-0bbde04c.js similarity index 74% rename from web/settings/assets/device-8e1ca3b6.js rename to web/settings/assets/device-0bbde04c.js index 9c95f747c6..6484d7e2f1 100644 --- a/web/settings/assets/device-8e1ca3b6.js +++ b/web/settings/assets/device-0bbde04c.js @@ -1 +1 @@ -import{D as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as i,l as p,m as l,G as t,E as m,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceZCS",mixins:[u]},f={class:"device-azzurro_zcs"};function b(o,e,v,g,z,w){const a=i("openwb-base-heading"),s=i("openwb-base-text-input"),r=i("openwb-base-number-input");return p(),l("div",f,[t(a,null,{default:m(()=>e[3]||(e[3]=[_(" Einstellungen für Azzurro ZCS ",-1)])),_:1,__:[3]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(r,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(r,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const k=d(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/azzurro_zcs/azzurro_zcs/device.vue"]]);export{k as default}; +import{D as u}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as i,l as p,m as l,G as t,E as m,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceZCS",mixins:[u]},f={class:"device-azzurro_zcs"};function b(o,e,v,g,z,w){const a=i("openwb-base-heading"),s=i("openwb-base-text-input"),r=i("openwb-base-number-input");return p(),l("div",f,[t(a,null,{default:m(()=>e[3]||(e[3]=[_(" Einstellungen für Azzurro ZCS ",-1)])),_:1,__:[3]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(r,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(r,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const k=d(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/azzurro_zcs/azzurro_zcs/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-722e0495.js b/web/settings/assets/device-1734f335.js similarity index 90% rename from web/settings/assets/device-722e0495.js rename to web/settings/assets/device-1734f335.js index f2fbc681e3..bd5cc1cca0 100644 --- a/web/settings/assets/device-722e0495.js +++ b/web/settings/assets/device-1734f335.js @@ -1 +1 @@ -import{D as b}from"./HardwareInstallation-b7e2b58c.js";import{_ as v,u as i,l as s,m as g,G as t,E as a,B as r,x as f,A as w,z as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const S={name:"DeviceSungrow",mixins:[b]},_={class:"device-sungrow"};function N(n,e,D,V,H,h){const d=i("openwb-base-heading"),m=i("openwb-base-alert"),p=i("openwb-base-text-input"),l=i("openwb-base-number-input"),u=i("openwb-base-select-input");return s(),g("div",_,[t(d,null,{default:a(()=>e[5]||(e[5]=[r(" Einstellungen für Sungrow ",-1)])),_:1,__:[5]}),t(m,{subtype:"info"},{default:a(()=>e[6]||(e[6]=[r(" Bitte zur Fehlervermeidung die Firmware des Sungrow Wechselrichters und WiNet-S Dongles aktuell halten. ",-1)])),_:1,__:[6]}),t(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),t(l,{title:"Port",required:"",min:1,max:65535,"model-value":n.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.port"))},null,8,["model-value"]),t(l,{title:"Modbus ID",required:"","model-value":n.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.modbus_id"))},null,8,["model-value"]),t(u,{title:"Version",options:[{value:0,text:"SH (Hybrid)"},{value:3,text:"SH (Hybrid) über WiNet-S Dongle"},{value:1,text:"SG (kein Hybrid)"},{value:2,text:"SG (kein Hybrid) über WiNet-S Dongle"}],"model-value":n.device.configuration.version,required:"","onUpdate:modelValue":e[3]||(e[3]=o=>n.updateConfiguration(o,"configuration.version"))},{help:a(()=>e[7]||(e[7]=[r(" Die Variante SH sollte möglichst über den internen LAN-Port genutzt werden (befindet sich am Wechselrichter hinter dem WiNet-S Dongle), da nur hier alle Werte vollständig ausgelesen werden können. Den WiNet-S Dongle zusätzlich ins Heimnetz (per LAN oder WLAN) einbinden, um iSolarCloud nutzen zu können. ",-1)])),_:1},8,["model-value"]),n.device.configuration.version===0?(s(),f(u,{key:0,title:"Firmware",options:[{value:"v1",text:"bis November 2024"},{value:"v2",text:"ab November 2024"}],"model-value":n.device.configuration.firmware,required:"","onUpdate:modelValue":e[4]||(e[4]=o=>n.updateConfiguration(o,"configuration.firmware"))},{help:a(()=>e[8]||(e[8]=[r(' Mit einem Firmwareupdate hat Sungrow ab November 2024 die Auslesung der Speicherleistung verändert. Sollte ab November 2024 selbst oder vom Installateur ein Firmwareupdate gemacht worden sein bitte "ab November 2024" als Firmware wählen. Ohne dieses Update ist "bis November 2024" die richtige Auswahl (Standard).',-1),w("br",null,null,-1),r(' Für Benutzer mit Installateur-Account: Dies entspricht einer Version des MDSP Moduls größer gleich "SAPPHIRE-H_03011.95.03" ',-1)])),_:1},8,["model-value"])):c("",!0)])}const P=v(S,[["render",N],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/sungrow/device.vue"]]);export{P as default}; +import{D as b}from"./HardwareInstallation-0c77715a.js";import{_ as v,u as i,l as s,m as g,G as t,E as a,B as r,x as f,A as w,z as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const S={name:"DeviceSungrow",mixins:[b]},_={class:"device-sungrow"};function N(n,e,D,V,H,h){const d=i("openwb-base-heading"),m=i("openwb-base-alert"),p=i("openwb-base-text-input"),l=i("openwb-base-number-input"),u=i("openwb-base-select-input");return s(),g("div",_,[t(d,null,{default:a(()=>e[5]||(e[5]=[r(" Einstellungen für Sungrow ",-1)])),_:1,__:[5]}),t(m,{subtype:"info"},{default:a(()=>e[6]||(e[6]=[r(" Bitte zur Fehlervermeidung die Firmware des Sungrow Wechselrichters und WiNet-S Dongles aktuell halten. ",-1)])),_:1,__:[6]}),t(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),t(l,{title:"Port",required:"",min:1,max:65535,"model-value":n.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.port"))},null,8,["model-value"]),t(l,{title:"Modbus ID",required:"","model-value":n.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.modbus_id"))},null,8,["model-value"]),t(u,{title:"Version",options:[{value:0,text:"SH (Hybrid)"},{value:3,text:"SH (Hybrid) über WiNet-S Dongle"},{value:1,text:"SG (kein Hybrid)"},{value:2,text:"SG (kein Hybrid) über WiNet-S Dongle"}],"model-value":n.device.configuration.version,required:"","onUpdate:modelValue":e[3]||(e[3]=o=>n.updateConfiguration(o,"configuration.version"))},{help:a(()=>e[7]||(e[7]=[r(" Die Variante SH sollte möglichst über den internen LAN-Port genutzt werden (befindet sich am Wechselrichter hinter dem WiNet-S Dongle), da nur hier alle Werte vollständig ausgelesen werden können. Den WiNet-S Dongle zusätzlich ins Heimnetz (per LAN oder WLAN) einbinden, um iSolarCloud nutzen zu können. ",-1)])),_:1},8,["model-value"]),n.device.configuration.version===0?(s(),f(u,{key:0,title:"Firmware",options:[{value:"v1",text:"bis November 2024"},{value:"v2",text:"ab November 2024"}],"model-value":n.device.configuration.firmware,required:"","onUpdate:modelValue":e[4]||(e[4]=o=>n.updateConfiguration(o,"configuration.firmware"))},{help:a(()=>e[8]||(e[8]=[r(' Mit einem Firmwareupdate hat Sungrow ab November 2024 die Auslesung der Speicherleistung verändert. Sollte ab November 2024 selbst oder vom Installateur ein Firmwareupdate gemacht worden sein bitte "ab November 2024" als Firmware wählen. Ohne dieses Update ist "bis November 2024" die richtige Auswahl (Standard).',-1),w("br",null,null,-1),r(' Für Benutzer mit Installateur-Account: Dies entspricht einer Version des MDSP Moduls größer gleich "SAPPHIRE-H_03011.95.03" ',-1)])),_:1},8,["model-value"])):c("",!0)])}const P=v(S,[["render",N],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/sungrow/device.vue"]]);export{P as default}; diff --git a/web/settings/assets/device-aa40f40e.js b/web/settings/assets/device-18f04763.js similarity index 73% rename from web/settings/assets/device-aa40f40e.js rename to web/settings/assets/device-18f04763.js index 347b8233b6..d75586a449 100644 --- a/web/settings/assets/device-aa40f40e.js +++ b/web/settings/assets/device-18f04763.js @@ -1 +1 @@ -import{D as s}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as i,l as p,m as l,G as t,E as m,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceE3dc",mixins:[s]},b={class:"device-e3dc"};function v(o,e,_,g,w,C){const a=i("openwb-base-heading"),r=i("openwb-base-text-input"),d=i("openwb-base-number-input");return p(),l("div",b,[t(a,null,{default:m(()=>e[3]||(e[3]=[c(" Einstellungen für E3DC ",-1)])),_:1,__:[3]}),t(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.address"))},null,8,["model-value"]),t(d,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(d,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const I=u(f,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/e3dc/device.vue"]]);export{I as default}; +import{D as s}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as i,l as p,m as l,G as t,E as m,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceE3dc",mixins:[s]},b={class:"device-e3dc"};function v(o,e,_,g,w,C){const a=i("openwb-base-heading"),r=i("openwb-base-text-input"),d=i("openwb-base-number-input");return p(),l("div",b,[t(a,null,{default:m(()=>e[3]||(e[3]=[c(" Einstellungen für E3DC ",-1)])),_:1,__:[3]}),t(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.address"))},null,8,["model-value"]),t(d,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(d,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const I=u(f,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/e3dc/device.vue"]]);export{I as default}; diff --git a/web/settings/assets/device-5f077938.js b/web/settings/assets/device-2060009a.js similarity index 73% rename from web/settings/assets/device-5f077938.js rename to web/settings/assets/device-2060009a.js index 8545871a7e..a515456e96 100644 --- a/web/settings/assets/device-5f077938.js +++ b/web/settings/assets/device-2060009a.js @@ -1 +1 @@ -import{D as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as i,l,m as u,G as n,E as a,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceFems",mixins:[d]},c={class:"device-fems"};function v(o,e,_,b,g,w){const p=i("openwb-base-heading"),s=i("openwb-base-text-input");return l(),u("div",c,[n(p,null,{default:a(()=>e[2]||(e[2]=[r(" Einstellungen für openEMS, Fenecon FEMS, CENTURIO 10, Kaco Hy-Control ",-1)])),_:1,__:[2]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),n(s,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},{help:a(()=>e[3]||(e[3]=[r(" Bei Nutzung von Fenecon FEMS ist das Passwort im Normalfall user, bei Kaco mit Hy-Control ist das Passwort meist admin. ",-1)])),_:1},8,["model-value"])])}const V=m(f,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/fems/device.vue"]]);export{V as default}; +import{D as d}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as i,l,m as u,G as n,E as a,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceFems",mixins:[d]},c={class:"device-fems"};function v(o,e,_,b,g,w){const p=i("openwb-base-heading"),s=i("openwb-base-text-input");return l(),u("div",c,[n(p,null,{default:a(()=>e[2]||(e[2]=[r(" Einstellungen für openEMS, Fenecon FEMS, CENTURIO 10, Kaco Hy-Control ",-1)])),_:1,__:[2]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),n(s,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},{help:a(()=>e[3]||(e[3]=[r(" Bei Nutzung von Fenecon FEMS ist das Passwort im Normalfall user, bei Kaco mit Hy-Control ist das Passwort meist admin. ",-1)])),_:1},8,["model-value"])])}const V=m(f,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/fems/device.vue"]]);export{V as default}; diff --git a/web/settings/assets/device-df9a450a.js b/web/settings/assets/device-209d430b.js similarity index 69% rename from web/settings/assets/device-df9a450a.js rename to web/settings/assets/device-209d430b.js index 3362d2ddfc..31d4aceba6 100644 --- a/web/settings/assets/device-df9a450a.js +++ b/web/settings/assets/device-209d430b.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as r,l as u,m as d,G as n,E as l,B as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DevicePowerfox",mixins:[a]},c={class:"device-powerfox"};function v(o,e,w,_,b,g){const s=r("openwb-base-heading"),i=r("openwb-base-text-input");return u(),d("div",c,[n(s,null,{default:l(()=>e[2]||(e[2]=[m(" Einstellungen für Powerfox ",-1)])),_:1,__:[2]}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":o.device.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const q=p(f,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/powerfox/device.vue"]]);export{q as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as r,l as u,m as d,G as n,E as l,B as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DevicePowerfox",mixins:[a]},c={class:"device-powerfox"};function v(o,e,w,_,b,g){const s=r("openwb-base-heading"),i=r("openwb-base-text-input");return u(),d("div",c,[n(s,null,{default:l(()=>e[2]||(e[2]=[m(" Einstellungen für Powerfox ",-1)])),_:1,__:[2]}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":o.device.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const q=p(f,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/powerfox/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-4bc532b0.js b/web/settings/assets/device-2c5bfecf.js similarity index 75% rename from web/settings/assets/device-4bc532b0.js rename to web/settings/assets/device-2c5bfecf.js index a4d496d746..c9619d906d 100644 --- a/web/settings/assets/device-4bc532b0.js +++ b/web/settings/assets/device-2c5bfecf.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as n,l as m,m as _,G as a,E as i,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSolarwatt",mixins:[p]},v={class:"device-solarwatt"};function c(t,e,w,b,g,x){const s=n("openwb-base-heading"),l=n("openwb-base-text-input"),d=n("openwb-base-select-input");return m(),_("div",v,[a(s,null,{default:i(()=>e[2]||(e[2]=[r(" Einstellungen für Solarwatt/My Reserve ",-1)])),_:1,__:[2]}),a(l,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),a(d,{title:"Abrufmethode","not-selected":"Bitte auswählen",options:[{value:0,text:"Gateway"},{value:1,text:"Energy Manager"}],"model-value":t.device.configuration.energy_manager,required:"","onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.energy_manager"))},{help:i(()=>e[3]||(e[3]=[r(" Wenn beide Abrufmethoden verwendet werden sollen, muss für jede Methode ein Gerät erstellt werden. ",-1)])),_:1},8,["model-value"])])}const G=u(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/solar_watt/device.vue"]]);export{G as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as n,l as m,m as _,G as a,E as i,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSolarwatt",mixins:[p]},v={class:"device-solarwatt"};function c(t,e,w,b,g,x){const s=n("openwb-base-heading"),l=n("openwb-base-text-input"),d=n("openwb-base-select-input");return m(),_("div",v,[a(s,null,{default:i(()=>e[2]||(e[2]=[r(" Einstellungen für Solarwatt/My Reserve ",-1)])),_:1,__:[2]}),a(l,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),a(d,{title:"Abrufmethode","not-selected":"Bitte auswählen",options:[{value:0,text:"Gateway"},{value:1,text:"Energy Manager"}],"model-value":t.device.configuration.energy_manager,required:"","onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.energy_manager"))},{help:i(()=>e[3]||(e[3]=[r(" Wenn beide Abrufmethoden verwendet werden sollen, muss für jede Methode ein Gerät erstellt werden. ",-1)])),_:1},8,["model-value"])])}const G=u(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/solar_watt/device.vue"]]);export{G as default}; diff --git a/web/settings/assets/device-8677c7f9.js b/web/settings/assets/device-2e6ed3d2.js similarity index 62% rename from web/settings/assets/device-8677c7f9.js rename to web/settings/assets/device-2e6ed3d2.js index de4ac5e223..15000eab36 100644 --- a/web/settings/assets/device-8677c7f9.js +++ b/web/settings/assets/device-2e6ed3d2.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as t,l as m,m as d,G as n,E as l,B as u}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceMystrom",mixins:[p]},_={class:"device-mystrom"};function f(o,e,v,b,g,x){const s=t("openwb-base-heading"),i=t("openwb-base-text-input");return m(),d("div",_,[n(s,null,{default:l(()=>e[1]||(e[1]=[u("Einstellungen für mystrom",-1)])),_:1,__:[1]}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const k=a(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mystrom/mystrom/device.vue"]]);export{k as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as t,l as m,m as d,G as n,E as l,B as u}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceMystrom",mixins:[p]},_={class:"device-mystrom"};function f(o,e,v,b,g,x){const s=t("openwb-base-heading"),i=t("openwb-base-text-input");return m(),d("div",_,[n(s,null,{default:l(()=>e[1]||(e[1]=[u("Einstellungen für mystrom",-1)])),_:1,__:[1]}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const k=a(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mystrom/mystrom/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-0e3564cf.js b/web/settings/assets/device-317fa85d.js similarity index 71% rename from web/settings/assets/device-0e3564cf.js rename to web/settings/assets/device-317fa85d.js index bf2a46945e..1af4887b68 100644 --- a/web/settings/assets/device-0e3564cf.js +++ b/web/settings/assets/device-317fa85d.js @@ -1 +1 @@ -import{D as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as t,l as c,m as _,G as o,E as s,B as i}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const m={name:"DeviceKostalPiko",mixins:[d]},f={class:"device-kostal-piko"};function b(n,e,v,g,k,h){const a=t("openwb-base-heading"),r=t("openwb-base-alert"),p=t("openwb-base-text-input");return c(),_("div",f,[o(a,null,{default:s(()=>e[1]||(e[1]=[i(" Einstellungen für Kostal Piko ",-1)])),_:1,__:[1]}),o(r,{subtype:"info"},{default:s(()=>e[2]||(e[2]=[i(" Der Wechselrichter liefert Werte nur, solange er auch PV-Leistung liefert. Nachts geht er in den Standby. Die Hausanschlussüberwachung ist nur aktiv, wenn der Wechselrichter auch aktiv ist. ",-1)])),_:1,__:[2]}),o(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=l=>n.updateConfiguration(l,"configuration.ip_address"))},null,8,["model-value"])])}const y=u(m,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_piko/device.vue"]]);export{y as default}; +import{D as d}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as t,l as c,m as _,G as o,E as s,B as i}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const m={name:"DeviceKostalPiko",mixins:[d]},f={class:"device-kostal-piko"};function b(n,e,v,g,k,h){const a=t("openwb-base-heading"),r=t("openwb-base-alert"),p=t("openwb-base-text-input");return c(),_("div",f,[o(a,null,{default:s(()=>e[1]||(e[1]=[i(" Einstellungen für Kostal Piko ",-1)])),_:1,__:[1]}),o(r,{subtype:"info"},{default:s(()=>e[2]||(e[2]=[i(" Der Wechselrichter liefert Werte nur, solange er auch PV-Leistung liefert. Nachts geht er in den Standby. Die Hausanschlussüberwachung ist nur aktiv, wenn der Wechselrichter auch aktiv ist. ",-1)])),_:1,__:[2]}),o(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=l=>n.updateConfiguration(l,"configuration.ip_address"))},null,8,["model-value"])])}const y=u(m,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_piko/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-1041d4f9.js b/web/settings/assets/device-345bd775.js similarity index 74% rename from web/settings/assets/device-1041d4f9.js rename to web/settings/assets/device-345bd775.js index 8ac0b0ca46..aed7d7ee78 100644 --- a/web/settings/assets/device-1041d4f9.js +++ b/web/settings/assets/device-345bd775.js @@ -1 +1 @@ -import{D as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as i,l,m as p,G as t,E as m,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceKostalSEM",mixins:[d]},b={class:"device-kostal-sem"};function v(o,e,c,g,w,C){const s=i("openwb-base-heading"),r=i("openwb-base-text-input"),a=i("openwb-base-number-input");return l(),p("div",b,[t(s,null,{default:m(()=>e[3]||(e[3]=[_(" Einstellungen für Kostal Smart Energy Meter oder TQ EM 410 ",-1)])),_:1,__:[3]}),t(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const U=u(f,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_sem/device.vue"]]);export{U as default}; +import{D as d}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as i,l,m as p,G as t,E as m,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceKostalSEM",mixins:[d]},b={class:"device-kostal-sem"};function v(o,e,c,g,w,C){const s=i("openwb-base-heading"),r=i("openwb-base-text-input"),a=i("openwb-base-number-input");return l(),p("div",b,[t(s,null,{default:m(()=>e[3]||(e[3]=[_(" Einstellungen für Kostal Smart Energy Meter oder TQ EM 410 ",-1)])),_:1,__:[3]}),t(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const U=u(f,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_sem/device.vue"]]);export{U as default}; diff --git a/web/settings/assets/device-64d52b78.js b/web/settings/assets/device-39b20fb3.js similarity index 62% rename from web/settings/assets/device-64d52b78.js rename to web/settings/assets/device-39b20fb3.js index 934ca4d8fc..2f83fa1b09 100644 --- a/web/settings/assets/device-64d52b78.js +++ b/web/settings/assets/device-39b20fb3.js @@ -1 +1 @@ -import{D as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as t,l as d,m as u,G as n,E as l,B as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceOpenDTU",mixins:[r]},_={class:"device-opendtu"};function f(o,e,v,b,g,x){const i=t("openwb-base-heading"),s=t("openwb-base-text-input");return d(),u("div",_,[n(i,null,{default:l(()=>e[1]||(e[1]=[m("Einstellungen für OpenDTU",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.url"))},null,8,["model-value"])])}const h=a(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/opendtu/opendtu/device.vue"]]);export{h as default}; +import{D as r}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as t,l as d,m as u,G as n,E as l,B as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceOpenDTU",mixins:[r]},_={class:"device-opendtu"};function f(o,e,v,b,g,x){const i=t("openwb-base-heading"),s=t("openwb-base-text-input");return d(),u("div",_,[n(i,null,{default:l(()=>e[1]||(e[1]=[m("Einstellungen für OpenDTU",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.url"))},null,8,["model-value"])])}const h=a(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/opendtu/opendtu/device.vue"]]);export{h as default}; diff --git a/web/settings/assets/device-87950857.js b/web/settings/assets/device-3af8cb6b.js similarity index 77% rename from web/settings/assets/device-87950857.js rename to web/settings/assets/device-3af8cb6b.js index fd09d808e8..3cbfed6a61 100644 --- a/web/settings/assets/device-87950857.js +++ b/web/settings/assets/device-3af8cb6b.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as i,l as b,m as _,G as t,E as r,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceAlgodue",mixins:[p]},v={class:"device-algodue"};function g(o,e,c,w,C,D){const a=i("openwb-base-heading"),d=i("openwb-base-alert"),l=i("openwb-base-text-input"),u=i("openwb-base-number-input");return b(),_("div",v,[t(a,null,{default:r(()=>e[3]||(e[3]=[s(" Einstellungen für Algodue",-1)])),_:1,__:[3]}),t(d,{subtype:"info"},{default:r(()=>e[4]||(e[4]=[s(" ModbusTCP muss aktiviert sein. Der Zähler ist auf Modbus-ID 1 und Port 502 vorkonfiguriert. ",-1)])),_:1,__:[4]}),t(l,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(u,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(u,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const I=m(f,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/algodue/algodue/device.vue"]]);export{I as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as i,l as b,m as _,G as t,E as r,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceAlgodue",mixins:[p]},v={class:"device-algodue"};function g(o,e,c,w,C,D){const a=i("openwb-base-heading"),d=i("openwb-base-alert"),l=i("openwb-base-text-input"),u=i("openwb-base-number-input");return b(),_("div",v,[t(a,null,{default:r(()=>e[3]||(e[3]=[s(" Einstellungen für Algodue",-1)])),_:1,__:[3]}),t(d,{subtype:"info"},{default:r(()=>e[4]||(e[4]=[s(" ModbusTCP muss aktiviert sein. Der Zähler ist auf Modbus-ID 1 und Port 502 vorkonfiguriert. ",-1)])),_:1,__:[4]}),t(l,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(u,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(u,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const I=m(f,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/algodue/algodue/device.vue"]]);export{I as default}; diff --git a/web/settings/assets/device-53ae7640.js b/web/settings/assets/device-3bfb9718.js similarity index 74% rename from web/settings/assets/device-53ae7640.js rename to web/settings/assets/device-3bfb9718.js index 8f5435e91e..225b5886cc 100644 --- a/web/settings/assets/device-53ae7640.js +++ b/web/settings/assets/device-3bfb9718.js @@ -1 +1 @@ -import{D as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as t,l,m as p,G as i,E as m,B as v}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceCarloGavazzi",mixins:[d]},c={class:"device-carlo-gavazzi"};function f(o,e,b,g,z,w){const r=t("openwb-base-heading"),s=t("openwb-base-text-input"),a=t("openwb-base-number-input");return l(),p("div",c,[i(r,null,{default:m(()=>e[3]||(e[3]=[v(" Einstellungen für Carlo Gavazzi ",-1)])),_:1,__:[3]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),i(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const U=u(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/carlo_gavazzi/carlo_gavazzi/device.vue"]]);export{U as default}; +import{D as d}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as t,l,m as p,G as i,E as m,B as v}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceCarloGavazzi",mixins:[d]},c={class:"device-carlo-gavazzi"};function f(o,e,b,g,z,w){const r=t("openwb-base-heading"),s=t("openwb-base-text-input"),a=t("openwb-base-number-input");return l(),p("div",c,[i(r,null,{default:m(()=>e[3]||(e[3]=[v(" Einstellungen für Carlo Gavazzi ",-1)])),_:1,__:[3]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),i(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const U=u(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/carlo_gavazzi/carlo_gavazzi/device.vue"]]);export{U as default}; diff --git a/web/settings/assets/device-72eb4453.js b/web/settings/assets/device-3c6a1975.js similarity index 78% rename from web/settings/assets/device-72eb4453.js rename to web/settings/assets/device-3c6a1975.js index cb0ca46430..fd1077d63c 100644 --- a/web/settings/assets/device-72eb4453.js +++ b/web/settings/assets/device-3c6a1975.js @@ -1 +1 @@ -import{D as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as l,u as n,l as m,m as _,G as t,E as s,B as b,A as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceDeye",mixins:[u]},v={class:"device-deye"};function g(o,e,w,y,x,C){const r=n("openwb-base-heading"),a=n("openwb-base-alert"),p=n("openwb-base-text-input"),d=n("openwb-base-number-input");return m(),_("div",v,[t(r,null,{default:s(()=>e[2]||(e[2]=[b("Einstellungen für Deye",-1)])),_:1,__:[2]}),t(a,{subtype:"info"},{default:s(()=>e[3]||(e[3]=[c("span",{class:"text-danger"}," Deye Wechselrichter verfügen über keine Modbus-TCP Schnittstelle. Für die Auslesung wird ein RS485/LAN-Adapter benötigt. ",-1)])),_:1,__:[3]}),t(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>o.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"]),t(d,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=i=>o.updateConfiguration(i,"configuration.port"))},null,8,["model-value"])])}const q=l(f,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/deye/device.vue"]]);export{q as default}; +import{D as u}from"./HardwareInstallation-0c77715a.js";import{_ as l,u as n,l as m,m as _,G as t,E as s,B as b,A as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceDeye",mixins:[u]},v={class:"device-deye"};function g(o,e,w,y,x,C){const r=n("openwb-base-heading"),a=n("openwb-base-alert"),p=n("openwb-base-text-input"),d=n("openwb-base-number-input");return m(),_("div",v,[t(r,null,{default:s(()=>e[2]||(e[2]=[b("Einstellungen für Deye",-1)])),_:1,__:[2]}),t(a,{subtype:"info"},{default:s(()=>e[3]||(e[3]=[c("span",{class:"text-danger"}," Deye Wechselrichter verfügen über keine Modbus-TCP Schnittstelle. Für die Auslesung wird ein RS485/LAN-Adapter benötigt. ",-1)])),_:1,__:[3]}),t(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>o.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"]),t(d,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=i=>o.updateConfiguration(i,"configuration.port"))},null,8,["model-value"])])}const q=l(f,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/deye/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-54bd57ba.js b/web/settings/assets/device-3cefb251.js similarity index 63% rename from web/settings/assets/device-54bd57ba.js rename to web/settings/assets/device-3cefb251.js index e60073a997..e25bea938c 100644 --- a/web/settings/assets/device-54bd57ba.js +++ b/web/settings/assets/device-3cefb251.js @@ -1 +1 @@ -import{D as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as t,l as d,m as l,G as s,E as u,B as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceYouless",mixins:[r]},_={class:"device-youless"};function f(o,e,v,b,g,x){const n=t("openwb-base-heading"),i=t("openwb-base-text-input");return d(),l("div",_,[s(n,null,{default:u(()=>e[1]||(e[1]=[m(" Einstellungen für Youless ",-1)])),_:1,__:[1]}),s(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.ip_address"))},null,8,["model-value"])])}const k=a(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/youless/youless/device.vue"]]);export{k as default}; +import{D as r}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as t,l as d,m as l,G as s,E as u,B as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceYouless",mixins:[r]},_={class:"device-youless"};function f(o,e,v,b,g,x){const n=t("openwb-base-heading"),i=t("openwb-base-text-input");return d(),l("div",_,[s(n,null,{default:u(()=>e[1]||(e[1]=[m(" Einstellungen für Youless ",-1)])),_:1,__:[1]}),s(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.ip_address"))},null,8,["model-value"])])}const k=a(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/youless/youless/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-68afe813.js b/web/settings/assets/device-3da862be.js similarity index 89% rename from web/settings/assets/device-68afe813.js rename to web/settings/assets/device-3da862be.js index 95ed499545..e631673dc2 100644 --- a/web/settings/assets/device-68afe813.js +++ b/web/settings/assets/device-3da862be.js @@ -1 +1 @@ -import{D as w}from"./HardwareInstallation-b7e2b58c.js";import{_ as c,u as t,l as s,m as f,G as r,E as a,B as o,x as d,z as l,A as v}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceHuawei",mixins:[w]},h={class:"device-huawei"};function k(n,e,D,H,C,B){const p=t("openwb-base-heading"),m=t("openwb-base-alert"),g=t("openwb-base-text-input"),u=t("openwb-base-number-input"),b=t("openwb-base-select-input");return s(),f("div",h,[r(p,null,{default:a(()=>e[4]||(e[4]=[o(" Einstellungen für Huawei ",-1)])),_:1,__:[4]}),r(m,{subtype:"info"},{default:a(()=>e[5]||(e[5]=[o(' Die Antwort der Huawei Wechselrichter benötigt sehr viel Zeit. Es wird empfohlen, dass Regelintervall der openWB auf "sehr langsam" zu stellen. Mit unserem Huawei-Kit können Huawei Wechselrichter auch in normaler Regelgeschwindigkeit abgefragt werden. ',-1)])),_:1,__:[5]}),n.device.configuration.type!="huawei_kit"?(s(),d(g,{key:0,title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"])):l("",!0),n.device.configuration.type!="huawei_kit"?(s(),d(u,{key:1,title:"Port",required:"",min:1,max:65535,"model-value":n.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=i=>n.updateConfiguration(i,"configuration.port"))},null,8,["model-value"])):l("",!0),r(u,{title:"Modbus ID",required:"","model-value":n.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=i=>n.updateConfiguration(i,"configuration.modbus_id"))},{help:a(()=>e[6]||(e[6]=[o(' Sind mehrere Huawei Wechselrichter als "Schwarm" verbunden, dann besitzt der Master vermutlich die ID "16". Über diese ID werden dann alle Daten in Summe zur Verfügung gestellt.',-1),v("br",null,null,-1),o(" Die IDs 1 bis 15 sind für einzelne Wechselrichter reserviert. ",-1)])),_:1},8,["model-value"]),r(b,{title:"Anbindung","not-selected":"Bitte auswählen",options:[{value:"s_dongle",text:"SDongle"},{value:"huawei_kit",text:"Huawei Kit"},{value:"modbus_rtu",text:"Modbus RTU (mit Modbus/TCP Adapter)"}],"model-value":n.device.configuration.type,required:"","onUpdate:modelValue":e[3]||(e[3]=i=>n.updateConfiguration(i,"configuration.type"))},{help:a(()=>e[7]||(e[7]=[o(' Die Anbindung über den Huawei SDongle erfordert die Regelgeschwindigkeit "sehr langsam". Alternativ kann Huawei auch mittels Modbus/TCP Adapter (z.B. Protoss oder Elfin) über den Modbus RTU Ausgang des Wechselrichters abgefragt werden. Hier gibt es keine Einschränkungen der Regelgeschwindigkeit. Eine gleichzeitige Nutzung von SDongle und Modbus RTU ist nicht möglich. ',-1)])),_:1},8,["model-value"])])}const S=c(_,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/huawei/device.vue"]]);export{S as default}; +import{D as w}from"./HardwareInstallation-0c77715a.js";import{_ as c,u as t,l as s,m as f,G as r,E as a,B as o,x as d,z as l,A as v}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceHuawei",mixins:[w]},h={class:"device-huawei"};function k(n,e,D,H,C,B){const p=t("openwb-base-heading"),m=t("openwb-base-alert"),g=t("openwb-base-text-input"),u=t("openwb-base-number-input"),b=t("openwb-base-select-input");return s(),f("div",h,[r(p,null,{default:a(()=>e[4]||(e[4]=[o(" Einstellungen für Huawei ",-1)])),_:1,__:[4]}),r(m,{subtype:"info"},{default:a(()=>e[5]||(e[5]=[o(' Die Antwort der Huawei Wechselrichter benötigt sehr viel Zeit. Es wird empfohlen, dass Regelintervall der openWB auf "sehr langsam" zu stellen. Mit unserem Huawei-Kit können Huawei Wechselrichter auch in normaler Regelgeschwindigkeit abgefragt werden. ',-1)])),_:1,__:[5]}),n.device.configuration.type!="huawei_kit"?(s(),d(g,{key:0,title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"])):l("",!0),n.device.configuration.type!="huawei_kit"?(s(),d(u,{key:1,title:"Port",required:"",min:1,max:65535,"model-value":n.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=i=>n.updateConfiguration(i,"configuration.port"))},null,8,["model-value"])):l("",!0),r(u,{title:"Modbus ID",required:"","model-value":n.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=i=>n.updateConfiguration(i,"configuration.modbus_id"))},{help:a(()=>e[6]||(e[6]=[o(' Sind mehrere Huawei Wechselrichter als "Schwarm" verbunden, dann besitzt der Master vermutlich die ID "16". Über diese ID werden dann alle Daten in Summe zur Verfügung gestellt.',-1),v("br",null,null,-1),o(" Die IDs 1 bis 15 sind für einzelne Wechselrichter reserviert. ",-1)])),_:1},8,["model-value"]),r(b,{title:"Anbindung","not-selected":"Bitte auswählen",options:[{value:"s_dongle",text:"SDongle"},{value:"huawei_kit",text:"Huawei Kit"},{value:"modbus_rtu",text:"Modbus RTU (mit Modbus/TCP Adapter)"}],"model-value":n.device.configuration.type,required:"","onUpdate:modelValue":e[3]||(e[3]=i=>n.updateConfiguration(i,"configuration.type"))},{help:a(()=>e[7]||(e[7]=[o(' Die Anbindung über den Huawei SDongle erfordert die Regelgeschwindigkeit "sehr langsam". Alternativ kann Huawei auch mittels Modbus/TCP Adapter (z.B. Protoss oder Elfin) über den Modbus RTU Ausgang des Wechselrichters abgefragt werden. Hier gibt es keine Einschränkungen der Regelgeschwindigkeit. Eine gleichzeitige Nutzung von SDongle und Modbus RTU ist nicht möglich. ',-1)])),_:1},8,["model-value"])])}const S=c(_,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/huawei/device.vue"]]);export{S as default}; diff --git a/web/settings/assets/device-079f5cdc.js b/web/settings/assets/device-434acb81.js similarity index 69% rename from web/settings/assets/device-079f5cdc.js rename to web/settings/assets/device-434acb81.js index 68be5ce422..18f935a236 100644 --- a/web/settings/assets/device-079f5cdc.js +++ b/web/settings/assets/device-434acb81.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as t,l as u,m,G as i,E as l,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceFoxEss",mixins:[a]},f={class:"device-fox_ess"};function b(o,e,v,g,x,w){const s=t("openwb-base-heading"),r=t("openwb-base-text-input"),p=t("openwb-base-number-input");return u(),m("div",f,[i(s,null,{default:l(()=>e[2]||(e[2]=[_("Einstellungen für FoxEss",-1)])),_:1,__:[2]}),i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const N=d(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fox_ess/fox_ess/device.vue"]]);export{N as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as t,l as u,m,G as i,E as l,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceFoxEss",mixins:[a]},f={class:"device-fox_ess"};function b(o,e,v,g,x,w){const s=t("openwb-base-heading"),r=t("openwb-base-text-input"),p=t("openwb-base-number-input");return u(),m("div",f,[i(s,null,{default:l(()=>e[2]||(e[2]=[_("Einstellungen für FoxEss",-1)])),_:1,__:[2]}),i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const N=d(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fox_ess/fox_ess/device.vue"]]);export{N as default}; diff --git a/web/settings/assets/device-afea5820.js b/web/settings/assets/device-44a9fe5b.js similarity index 73% rename from web/settings/assets/device-afea5820.js rename to web/settings/assets/device-44a9fe5b.js index 891d800990..6b8f3f8b12 100644 --- a/web/settings/assets/device-afea5820.js +++ b/web/settings/assets/device-44a9fe5b.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as s,l as u,m as p,G as t,E as l,B as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceBYD",mixins:[a]},v={class:"device-byd"};function b(o,e,c,g,_,w){const r=s("openwb-base-heading"),i=s("openwb-base-text-input");return u(),p("div",v,[t(r,null,{default:l(()=>e[3]||(e[3]=[m(" Einstellungen für BYD ",-1)])),_:1,__:[3]}),t(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(i,{title:"Benutzername",subtype:"user",required:"","model-value":o.device.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.user"))},null,8,["model-value"]),t(i,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.password"))},null,8,["model-value"])])}const U=d(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/byd/byd/device.vue"]]);export{U as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as s,l as u,m as p,G as t,E as l,B as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceBYD",mixins:[a]},v={class:"device-byd"};function b(o,e,c,g,_,w){const r=s("openwb-base-heading"),i=s("openwb-base-text-input");return u(),p("div",v,[t(r,null,{default:l(()=>e[3]||(e[3]=[m(" Einstellungen für BYD ",-1)])),_:1,__:[3]}),t(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(i,{title:"Benutzername",subtype:"user",required:"","model-value":o.device.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.user"))},null,8,["model-value"]),t(i,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.password"))},null,8,["model-value"])])}const U=d(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/byd/byd/device.vue"]]);export{U as default}; diff --git a/web/settings/assets/device-5d2a3e3a.js b/web/settings/assets/device-4687580a.js similarity index 63% rename from web/settings/assets/device-5d2a3e3a.js rename to web/settings/assets/device-4687580a.js index 87b7490d3d..d8ad360719 100644 --- a/web/settings/assets/device-5d2a3e3a.js +++ b/web/settings/assets/device-4687580a.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as t,l,m as d,G as n,E as m,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceSolarLog",mixins:[a]},c={class:"device-solar_log"};function f(o,e,g,v,b,x){const i=t("openwb-base-heading"),s=t("openwb-base-text-input");return l(),d("div",c,[n(i,null,{default:m(()=>e[1]||(e[1]=[_(" Einstellungen für Solar-Log ",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const L=p(u,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/solar_log/device.vue"]]);export{L as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as t,l,m as d,G as n,E as m,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceSolarLog",mixins:[a]},c={class:"device-solar_log"};function f(o,e,g,v,b,x){const i=t("openwb-base-heading"),s=t("openwb-base-text-input");return l(),d("div",c,[n(i,null,{default:m(()=>e[1]||(e[1]=[_(" Einstellungen für Solar-Log ",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const L=p(u,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/solar_log/device.vue"]]);export{L as default}; diff --git a/web/settings/assets/device-23d9f519.js b/web/settings/assets/device-47e158c3.js similarity index 64% rename from web/settings/assets/device-23d9f519.js rename to web/settings/assets/device-47e158c3.js index 7a053df4b2..e84dd031fb 100644 --- a/web/settings/assets/device-23d9f519.js +++ b/web/settings/assets/device-47e158c3.js @@ -1 +1 @@ -import{D as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as t,l as d,m as l,G as n,E as c,B as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceKostalSteca",mixins:[r]},_={class:"device-kostal-steca"};function f(o,e,v,b,g,x){const s=t("openwb-base-heading"),i=t("openwb-base-text-input");return d(),l("div",_,[n(s,null,{default:c(()=>e[1]||(e[1]=[m(" Einstellungen für Kostal Piko MP oder Steca Grid Coolcept ",-1)])),_:1,__:[1]}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.ip_address"))},null,8,["model-value"])])}const h=p(u,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_steca/device.vue"]]);export{h as default}; +import{D as r}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as t,l as d,m as l,G as n,E as c,B as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceKostalSteca",mixins:[r]},_={class:"device-kostal-steca"};function f(o,e,v,b,g,x){const s=t("openwb-base-heading"),i=t("openwb-base-text-input");return d(),l("div",_,[n(s,null,{default:c(()=>e[1]||(e[1]=[m(" Einstellungen für Kostal Piko MP oder Steca Grid Coolcept ",-1)])),_:1,__:[1]}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.ip_address"))},null,8,["model-value"])])}const h=p(u,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_steca/device.vue"]]);export{h as default}; diff --git a/web/settings/assets/device-214978b0.js b/web/settings/assets/device-4a7dd16d.js similarity index 69% rename from web/settings/assets/device-214978b0.js rename to web/settings/assets/device-4a7dd16d.js index 002453ea11..89b494a94d 100644 --- a/web/settings/assets/device-214978b0.js +++ b/web/settings/assets/device-4a7dd16d.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as t,l,m as u,G as i,E as m,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceOpenwbFlex",mixins:[a]},c={class:"device-openwb-flex"};function f(o,e,v,w,g,x){const p=t("openwb-base-heading"),s=t("openwb-base-text-input"),r=t("openwb-base-number-input");return l(),u("div",c,[i(p,null,{default:m(()=>e[2]||(e[2]=[_(" Einstellungen für openWB-Flex ",-1)])),_:1,__:[2]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(r,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const N=d(b,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_flex/device.vue"]]);export{N as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as t,l,m as u,G as i,E as m,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceOpenwbFlex",mixins:[a]},c={class:"device-openwb-flex"};function f(o,e,v,w,g,x){const p=t("openwb-base-heading"),s=t("openwb-base-text-input"),r=t("openwb-base-number-input");return l(),u("div",c,[i(p,null,{default:m(()=>e[2]||(e[2]=[_(" Einstellungen für openWB-Flex ",-1)])),_:1,__:[2]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(r,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const N=d(b,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_flex/device.vue"]]);export{N as default}; diff --git a/web/settings/assets/device-b860ea67.js b/web/settings/assets/device-4bc72e48.js similarity index 63% rename from web/settings/assets/device-b860ea67.js rename to web/settings/assets/device-4bc72e48.js index b1dc67dcc7..c030a22d94 100644 --- a/web/settings/assets/device-b860ea67.js +++ b/web/settings/assets/device-4bc72e48.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as t,l as d,m as l,G as n,E as m,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceSolarWorld",mixins:[a]},c={class:"device-solar_world"};function f(o,e,v,b,w,g){const i=t("openwb-base-heading"),s=t("openwb-base-text-input");return d(),l("div",c,[n(i,null,{default:m(()=>e[1]||(e[1]=[_(" Einstellungen für SolarWorld ",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const k=p(u,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/solar_world/device.vue"]]);export{k as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as t,l as d,m as l,G as n,E as m,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceSolarWorld",mixins:[a]},c={class:"device-solar_world"};function f(o,e,v,b,w,g){const i=t("openwb-base-heading"),s=t("openwb-base-text-input");return d(),l("div",c,[n(i,null,{default:m(()=>e[1]||(e[1]=[_(" Einstellungen für SolarWorld ",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const k=p(u,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/solar_world/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-e2624d17.js b/web/settings/assets/device-545b2256.js similarity index 71% rename from web/settings/assets/device-e2624d17.js rename to web/settings/assets/device-545b2256.js index e36bb953f5..a131a30c44 100644 --- a/web/settings/assets/device-e2624d17.js +++ b/web/settings/assets/device-545b2256.js @@ -1 +1 @@ -import{D as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as l,u as n,l as u,m as d,G as a,E as m,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceTasmota",mixins:[r]},v={class:"device-tasmota"};function f(t,e,b,g,w,x){const i=n("openwb-base-heading"),s=n("openwb-base-text-input"),p=n("openwb-base-select-input");return u(),d("div",v,[a(i,null,{default:m(()=>e[2]||(e[2]=[c("Einstellungen für Tasmota",-1)])),_:1,__:[2]}),a(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),a(p,{title:"Phase","not-selected":"Bitte auswählen",options:[{value:1,text:"1"},{value:2,text:"2"},{value:3,text:"3"}],"model-value":t.device.configuration.phase,required:"","onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.phase"))},null,8,["model-value"])])}const q=l(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tasmota/tasmota/device.vue"]]);export{q as default}; +import{D as r}from"./HardwareInstallation-0c77715a.js";import{_ as l,u as n,l as u,m as d,G as a,E as m,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceTasmota",mixins:[r]},v={class:"device-tasmota"};function f(t,e,b,g,w,x){const i=n("openwb-base-heading"),s=n("openwb-base-text-input"),p=n("openwb-base-select-input");return u(),d("div",v,[a(i,null,{default:m(()=>e[2]||(e[2]=[c("Einstellungen für Tasmota",-1)])),_:1,__:[2]}),a(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),a(p,{title:"Phase","not-selected":"Bitte auswählen",options:[{value:1,text:"1"},{value:2,text:"2"},{value:3,text:"3"}],"model-value":t.device.configuration.phase,required:"","onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.phase"))},null,8,["model-value"])])}const q=l(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tasmota/tasmota/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-8c48e19c.js b/web/settings/assets/device-547c5594.js similarity index 86% rename from web/settings/assets/device-8c48e19c.js rename to web/settings/assets/device-547c5594.js index b6d8258b37..abb96e08ec 100644 --- a/web/settings/assets/device-8c48e19c.js +++ b/web/settings/assets/device-547c5594.js @@ -1 +1 @@ -import{D as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as v,u as t,l as i,m as f,G as a,E as c,B as b,x as u,z as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceAlphaess",mixins:[m]},_={class:"device-alphaess"};function w(e,o,V,C,B,E){const d=t("openwb-base-heading"),s=t("openwb-base-select-input"),p=t("openwb-base-text-input"),l=t("openwb-base-number-input");return i(),f("div",_,[a(d,null,{default:c(()=>o[5]||(o[5]=[b(" Einstellungen für Alpha ESS ",-1)])),_:1,__:[5]}),a(s,{title:"Ausleseart","not-selected":"Bitte auswählen",required:"",options:[{value:0,text:"Alpha ESS-Kit"},{value:1,text:"Hi 5/10"}],"model-value":e.device.configuration.source,"onUpdate:modelValue":o[0]||(o[0]=n=>e.updateConfiguration(n,"configuration.source"))},null,8,["model-value"]),e.device.configuration.source==1?(i(),u(p,{key:0,title:"IP oder Hostname",subtype:"host",required:"","model-value":e.device.configuration.ip_address,"onUpdate:modelValue":o[1]||(o[1]=n=>e.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"])):r("",!0),e.device.configuration.source==1?(i(),u(l,{key:1,title:"Port",required:"",min:1,max:65535,"model-value":e.device.configuration.port,"onUpdate:modelValue":o[2]||(o[2]=n=>e.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])):r("",!0),e.device.configuration.source==1?(i(),u(l,{key:2,title:"Modbus ID",required:"","model-value":e.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":o[3]||(o[3]=n=>e.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])):r("",!0),a(s,{title:"Firmware Version","not-selected":"Bitte auswählen",required:"",options:[{value:0,text:"EMS älter als 1.23V"},{value:1,text:"EMS 1.23V oder neuer"}],"model-value":e.device.configuration.version,"onUpdate:modelValue":o[4]||(o[4]=n=>e.updateConfiguration(n,"configuration.version"))},null,8,["model-value"])])}const x=v(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/alpha_ess/device.vue"]]);export{x as default}; +import{D as m}from"./HardwareInstallation-0c77715a.js";import{_ as v,u as t,l as i,m as f,G as a,E as c,B as b,x as u,z as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceAlphaess",mixins:[m]},_={class:"device-alphaess"};function w(e,o,V,C,B,E){const d=t("openwb-base-heading"),s=t("openwb-base-select-input"),p=t("openwb-base-text-input"),l=t("openwb-base-number-input");return i(),f("div",_,[a(d,null,{default:c(()=>o[5]||(o[5]=[b(" Einstellungen für Alpha ESS ",-1)])),_:1,__:[5]}),a(s,{title:"Ausleseart","not-selected":"Bitte auswählen",required:"",options:[{value:0,text:"Alpha ESS-Kit"},{value:1,text:"Hi 5/10"}],"model-value":e.device.configuration.source,"onUpdate:modelValue":o[0]||(o[0]=n=>e.updateConfiguration(n,"configuration.source"))},null,8,["model-value"]),e.device.configuration.source==1?(i(),u(p,{key:0,title:"IP oder Hostname",subtype:"host",required:"","model-value":e.device.configuration.ip_address,"onUpdate:modelValue":o[1]||(o[1]=n=>e.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"])):r("",!0),e.device.configuration.source==1?(i(),u(l,{key:1,title:"Port",required:"",min:1,max:65535,"model-value":e.device.configuration.port,"onUpdate:modelValue":o[2]||(o[2]=n=>e.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])):r("",!0),e.device.configuration.source==1?(i(),u(l,{key:2,title:"Modbus ID",required:"","model-value":e.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":o[3]||(o[3]=n=>e.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])):r("",!0),a(s,{title:"Firmware Version","not-selected":"Bitte auswählen",required:"",options:[{value:0,text:"EMS älter als 1.23V"},{value:1,text:"EMS 1.23V oder neuer"}],"model-value":e.device.configuration.version,"onUpdate:modelValue":o[4]||(o[4]=n=>e.updateConfiguration(n,"configuration.version"))},null,8,["model-value"])])}const x=v(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/alpha_ess/device.vue"]]);export{x as default}; diff --git a/web/settings/assets/device-c4b87c43.js b/web/settings/assets/device-57fdb288.js similarity index 83% rename from web/settings/assets/device-c4b87c43.js rename to web/settings/assets/device-57fdb288.js index 8d2785487f..9362b8425d 100644 --- a/web/settings/assets/device-c4b87c43.js +++ b/web/settings/assets/device-57fdb288.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as i,l as g,m as b,G as t,E as r,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSolax",mixins:[p]},v={class:"device-solax"};function _(n,e,c,w,x,G){const l=i("openwb-base-heading"),d=i("openwb-base-text-input"),a=i("openwb-base-number-input"),u=i("openwb-base-select-input");return g(),b("div",v,[t(l,null,{default:r(()=>e[4]||(e[4]=[s(" Einstellungen für Solax ",-1)])),_:1,__:[4]}),t(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),t(a,{title:"Port",min:1,max:65535,placeholder:502,"model-value":n.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.port"))},{help:r(()=>e[5]||(e[5]=[s(" Standardmäßig ist der Port 502. Dieser sollte nur geändert werden, wenn der Solax Wechselrichter auf einen anderen Port konfiguriert wurde. ",-1)])),_:1},8,["model-value"]),t(a,{title:"Modbus-ID",required:"",min:0,max:255,"model-value":n.device.configuration.modbus_id,"onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.modbus_id"))},{help:r(()=>e[6]||(e[6]=[s(" Laut der Schnittstellenbeschreibung ist die ID bei Solax ab Werk auf 1 gesetzt. Entgegen der Beschreibung ist meist für Gen4 eine ID größer als 2 eingestellt. Bei Gen3 sogar (gegen jeglicher Modbus Standards) eine 0. ",-1)])),_:1},8,["model-value"]),t(u,{title:"Generation","not-selected":"Bitte auswählen",options:[{value:"g2",text:"Gen 2"},{value:"g3",text:"Gen 3 & Gen4"},{value:"g4",text:"Gen 4 Boost & Gen 4 Mini"}],"model-value":n.device.configuration.version,required:"","onUpdate:modelValue":e[3]||(e[3]=o=>n.updateConfiguration(o,"configuration.version"))},null,8,["model-value"])])}const P=m(f,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/solax/device.vue"]]);export{P as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as i,l as g,m as b,G as t,E as r,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSolax",mixins:[p]},v={class:"device-solax"};function _(n,e,c,w,x,G){const l=i("openwb-base-heading"),d=i("openwb-base-text-input"),a=i("openwb-base-number-input"),u=i("openwb-base-select-input");return g(),b("div",v,[t(l,null,{default:r(()=>e[4]||(e[4]=[s(" Einstellungen für Solax ",-1)])),_:1,__:[4]}),t(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),t(a,{title:"Port",min:1,max:65535,placeholder:502,"model-value":n.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.port"))},{help:r(()=>e[5]||(e[5]=[s(" Standardmäßig ist der Port 502. Dieser sollte nur geändert werden, wenn der Solax Wechselrichter auf einen anderen Port konfiguriert wurde. ",-1)])),_:1},8,["model-value"]),t(a,{title:"Modbus-ID",required:"",min:0,max:255,"model-value":n.device.configuration.modbus_id,"onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.modbus_id"))},{help:r(()=>e[6]||(e[6]=[s(" Laut der Schnittstellenbeschreibung ist die ID bei Solax ab Werk auf 1 gesetzt. Entgegen der Beschreibung ist meist für Gen4 eine ID größer als 2 eingestellt. Bei Gen3 sogar (gegen jeglicher Modbus Standards) eine 0. ",-1)])),_:1},8,["model-value"]),t(u,{title:"Generation","not-selected":"Bitte auswählen",options:[{value:"g2",text:"Gen 2"},{value:"g3",text:"Gen 3 & Gen4"},{value:"g4",text:"Gen 4 Boost & Gen 4 Mini"}],"model-value":n.device.configuration.version,required:"","onUpdate:modelValue":e[3]||(e[3]=o=>n.updateConfiguration(o,"configuration.version"))},null,8,["model-value"])])}const P=m(f,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/solax/device.vue"]]);export{P as default}; diff --git a/web/settings/assets/device-70c29a17.js b/web/settings/assets/device-5d61b244.js similarity index 69% rename from web/settings/assets/device-70c29a17.js rename to web/settings/assets/device-5d61b244.js index 00b54cb0f9..809f3620ff 100644 --- a/web/settings/assets/device-70c29a17.js +++ b/web/settings/assets/device-5d61b244.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as t,l as u,m,G as i,E as l,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceVictron",mixins:[a]},v={class:"device-victron"};function f(o,e,b,g,w,x){const r=t("openwb-base-heading"),s=t("openwb-base-text-input"),p=t("openwb-base-number-input");return u(),m("div",v,[i(r,null,{default:l(()=>e[2]||(e[2]=[c(" Einstellungen für Victron ",-1)])),_:1,__:[2]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const P=d(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/victron/device.vue"]]);export{P as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as t,l as u,m,G as i,E as l,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceVictron",mixins:[a]},v={class:"device-victron"};function f(o,e,b,g,w,x){const r=t("openwb-base-heading"),s=t("openwb-base-text-input"),p=t("openwb-base-number-input");return u(),m("div",v,[i(r,null,{default:l(()=>e[2]||(e[2]=[c(" Einstellungen für Victron ",-1)])),_:1,__:[2]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const P=d(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/victron/device.vue"]]);export{P as default}; diff --git a/web/settings/assets/device-01cc831a.js b/web/settings/assets/device-652a9744.js similarity index 75% rename from web/settings/assets/device-01cc831a.js rename to web/settings/assets/device-652a9744.js index 9339f44a12..34220bf62c 100644 --- a/web/settings/assets/device-01cc831a.js +++ b/web/settings/assets/device-652a9744.js @@ -1 +1 @@ -import{D as l}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as n,l as _,m as b,G as t,E as r,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSunnyBoy",mixins:[l]},f={class:"device-sunnyboy"};function v(o,e,w,g,y,x){const a=n("openwb-base-heading"),p=n("openwb-base-alert"),d=n("openwb-base-text-input"),u=n("openwb-base-number-input");return _(),b("div",f,[t(a,null,{default:r(()=>e[2]||(e[2]=[s(" Einstellungen für SMA Sunny Boy/Tripower ",-1)])),_:1,__:[2]}),t(p,{subtype:"info"},{default:r(()=>e[3]||(e[3]=[s(' ModbusTCP muss entweder direkt am Wechselrichter, per Sunny Portal oder über das Tool "Sunny Explorer" aktiviert werden. Dies ist standardmäßig deaktiviert. ',-1)])),_:1,__:[3]}),t(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>o.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"]),t(u,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=i=>o.updateConfiguration(i,"configuration.port"))},null,8,["model-value"])])}const $=m(c,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_boy/device.vue"]]);export{$ as default}; +import{D as l}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as n,l as _,m as b,G as t,E as r,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSunnyBoy",mixins:[l]},f={class:"device-sunnyboy"};function v(o,e,w,g,y,x){const a=n("openwb-base-heading"),p=n("openwb-base-alert"),d=n("openwb-base-text-input"),u=n("openwb-base-number-input");return _(),b("div",f,[t(a,null,{default:r(()=>e[2]||(e[2]=[s(" Einstellungen für SMA Sunny Boy/Tripower ",-1)])),_:1,__:[2]}),t(p,{subtype:"info"},{default:r(()=>e[3]||(e[3]=[s(' ModbusTCP muss entweder direkt am Wechselrichter, per Sunny Portal oder über das Tool "Sunny Explorer" aktiviert werden. Dies ist standardmäßig deaktiviert. ',-1)])),_:1,__:[3]}),t(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>o.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"]),t(u,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=i=>o.updateConfiguration(i,"configuration.port"))},null,8,["model-value"])])}const $=m(c,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_boy/device.vue"]]);export{$ as default}; diff --git a/web/settings/assets/device-383e08a5.js b/web/settings/assets/device-6c191cc5.js similarity index 78% rename from web/settings/assets/device-383e08a5.js rename to web/settings/assets/device-6c191cc5.js index 7784dfae2f..16bec6100a 100644 --- a/web/settings/assets/device-383e08a5.js +++ b/web/settings/assets/device-6c191cc5.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as i,l,m,G as t,E as v,B as b}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceUPower",mixins:[p]},_={class:"device-upower"};function c(o,e,g,w,C,U){const r=i("openwb-base-heading"),a=i("openwb-base-text-input"),u=i("openwb-base-number-input"),s=i("openwb-base-select-input");return l(),m("div",_,[t(r,null,{default:v(()=>e[4]||(e[4]=[b("Einstellungen für UPower",-1)])),_:1,__:[4]}),t(a,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(u,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(u,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),t(s,{title:"Generation","not-selected":"Bitte auswählen",options:[{value:"1",text:"Gen 1"},{value:"2",text:"Gen 2"}],"model-value":o.device.configuration.version,required:"","onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.version"))},null,8,["model-value"])])}const k=d(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/upower/upower/device.vue"]]);export{k as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as i,l,m,G as t,E as v,B as b}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceUPower",mixins:[p]},_={class:"device-upower"};function c(o,e,g,w,C,U){const r=i("openwb-base-heading"),a=i("openwb-base-text-input"),u=i("openwb-base-number-input"),s=i("openwb-base-select-input");return l(),m("div",_,[t(r,null,{default:v(()=>e[4]||(e[4]=[b("Einstellungen für UPower",-1)])),_:1,__:[4]}),t(a,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(u,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(u,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),t(s,{title:"Generation","not-selected":"Bitte auswählen",options:[{value:"1",text:"Gen 1"},{value:"2",text:"Gen 2"}],"model-value":o.device.configuration.version,required:"","onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.version"))},null,8,["model-value"])])}const k=d(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/upower/upower/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-a07b3e3d.js b/web/settings/assets/device-6fbd7b85.js similarity index 74% rename from web/settings/assets/device-a07b3e3d.js rename to web/settings/assets/device-6fbd7b85.js index db828ce41b..34dea54109 100644 --- a/web/settings/assets/device-a07b3e3d.js +++ b/web/settings/assets/device-6fbd7b85.js @@ -1 +1 @@ -import{D as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as i,l as u,m as p,G as t,E as m,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceQCells",mixins:[r]},_={class:"device-qcells"};function b(o,e,v,g,w,C){const l=i("openwb-base-heading"),a=i("openwb-base-text-input"),s=i("openwb-base-number-input");return u(),p("div",_,[t(l,null,{default:m(()=>e[3]||(e[3]=[c(" Einstellungen für QCells ESS ",-1)])),_:1,__:[3]}),t(a,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(s,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(s,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const I=d(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/qcells/device.vue"]]);export{I as default}; +import{D as r}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as i,l as u,m as p,G as t,E as m,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceQCells",mixins:[r]},_={class:"device-qcells"};function b(o,e,v,g,w,C){const l=i("openwb-base-heading"),a=i("openwb-base-text-input"),s=i("openwb-base-number-input");return u(),p("div",_,[t(l,null,{default:m(()=>e[3]||(e[3]=[c(" Einstellungen für QCells ESS ",-1)])),_:1,__:[3]}),t(a,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(s,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(s,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const I=d(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/qcells/device.vue"]]);export{I as default}; diff --git a/web/settings/assets/device-65767a9c.js b/web/settings/assets/device-70078db6.js similarity index 70% rename from web/settings/assets/device-65767a9c.js rename to web/settings/assets/device-70078db6.js index 2c5fd1455d..b90b7ee4b5 100644 --- a/web/settings/assets/device-65767a9c.js +++ b/web/settings/assets/device-70078db6.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as n,l as m,m as d,G as i,E as l,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceHuaweiSmartLogger",mixins:[p]},g={class:"device-huawei-smart-logger"};function f(o,e,b,v,w,x){const r=n("openwb-base-heading"),a=n("openwb-base-text-input"),s=n("openwb-base-number-input");return m(),d("div",g,[i(r,null,{default:l(()=>e[2]||(e[2]=[_(" Einstellungen für Huawei SmartLogger ",-1)])),_:1,__:[2]}),i(a,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),i(s,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.port"))},null,8,["model-value"])])}const q=u(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/huawei_smartlogger/device.vue"]]);export{q as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as n,l as m,m as d,G as i,E as l,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceHuaweiSmartLogger",mixins:[p]},g={class:"device-huawei-smart-logger"};function f(o,e,b,v,w,x){const r=n("openwb-base-heading"),a=n("openwb-base-text-input"),s=n("openwb-base-number-input");return m(),d("div",g,[i(r,null,{default:l(()=>e[2]||(e[2]=[_(" Einstellungen für Huawei SmartLogger ",-1)])),_:1,__:[2]}),i(a,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),i(s,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.port"))},null,8,["model-value"])])}const q=u(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/huawei_smartlogger/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-3dfd4984.js b/web/settings/assets/device-71bc1bb6.js similarity index 69% rename from web/settings/assets/device-3dfd4984.js rename to web/settings/assets/device-71bc1bb6.js index 7ac12799a2..8a63d4ee5a 100644 --- a/web/settings/assets/device-3dfd4984.js +++ b/web/settings/assets/device-71bc1bb6.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as t,l as u,m,G as i,E as l,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceOrno",mixins:[a]},f={class:"device-orno"};function b(o,e,v,g,w,x){const r=t("openwb-base-heading"),s=t("openwb-base-text-input"),p=t("openwb-base-number-input");return u(),m("div",f,[i(r,null,{default:l(()=>e[2]||(e[2]=[_("Einstellungen für Orno WE-514",-1)])),_:1,__:[2]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const O=d(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/orno/orno/device.vue"]]);export{O as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as t,l as u,m,G as i,E as l,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceOrno",mixins:[a]},f={class:"device-orno"};function b(o,e,v,g,w,x){const r=t("openwb-base-heading"),s=t("openwb-base-text-input"),p=t("openwb-base-number-input");return u(),m("div",f,[i(r,null,{default:l(()=>e[2]||(e[2]=[_("Einstellungen für Orno WE-514",-1)])),_:1,__:[2]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const O=d(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/orno/orno/device.vue"]]);export{O as default}; diff --git a/web/settings/assets/device-04c35d6b.js b/web/settings/assets/device-76063706.js similarity index 62% rename from web/settings/assets/device-04c35d6b.js rename to web/settings/assets/device-76063706.js index a085337353..80468911c1 100644 --- a/web/settings/assets/device-04c35d6b.js +++ b/web/settings/assets/device-76063706.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as o,l as d,m,G as n,E as l,B as u}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceBatterX",mixins:[a]},_={class:"device-batterx"};function f(t,e,b,v,x,g){const i=o("openwb-base-heading"),s=o("openwb-base-text-input");return d(),m("div",_,[n(i,null,{default:l(()=>e[1]||(e[1]=[u(" Einstellungen für BatterX ",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>t.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const N=p(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/batterx/device.vue"]]);export{N as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as o,l as d,m,G as n,E as l,B as u}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceBatterX",mixins:[a]},_={class:"device-batterx"};function f(t,e,b,v,x,g){const i=o("openwb-base-heading"),s=o("openwb-base-text-input");return d(),m("div",_,[n(i,null,{default:l(()=>e[1]||(e[1]=[u(" Einstellungen für BatterX ",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>t.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const N=p(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/batterx/device.vue"]]);export{N as default}; diff --git a/web/settings/assets/device-a75bb0fd.js b/web/settings/assets/device-774e33ff.js similarity index 74% rename from web/settings/assets/device-a75bb0fd.js rename to web/settings/assets/device-774e33ff.js index a357d4e87b..4090acc957 100644 --- a/web/settings/assets/device-a75bb0fd.js +++ b/web/settings/assets/device-774e33ff.js @@ -1 +1 @@ -import{D as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as t,l as p,m,G as i,E as l,B as f}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceThermia",mixins:[d]},b={class:"device-thermia"};function v(o,e,c,g,w,C){const r=t("openwb-base-heading"),s=t("openwb-base-text-input"),a=t("openwb-base-number-input");return p(),m("div",b,[i(r,null,{default:l(()=>e[3]||(e[3]=[f(" Einstellungen für Thermia ",-1)])),_:1,__:[3]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),i(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const U=u(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/thermia/thermia/device.vue"]]);export{U as default}; +import{D as d}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as t,l as p,m,G as i,E as l,B as f}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceThermia",mixins:[d]},b={class:"device-thermia"};function v(o,e,c,g,w,C){const r=t("openwb-base-heading"),s=t("openwb-base-text-input"),a=t("openwb-base-number-input");return p(),m("div",b,[i(r,null,{default:l(()=>e[3]||(e[3]=[f(" Einstellungen für Thermia ",-1)])),_:1,__:[3]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),i(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const U=u(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/thermia/thermia/device.vue"]]);export{U as default}; diff --git a/web/settings/assets/device-69d484dc.js b/web/settings/assets/device-7bafcf0f.js similarity index 73% rename from web/settings/assets/device-69d484dc.js rename to web/settings/assets/device-7bafcf0f.js index 60474336c5..fecbeee106 100644 --- a/web/settings/assets/device-69d484dc.js +++ b/web/settings/assets/device-7bafcf0f.js @@ -1 +1 @@ -import{D as s}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as i,l as u,m,G as t,E as l,B as f}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceAmpere",mixins:[s]},b={class:"device-ampere"};function v(o,e,c,g,w,C){const a=i("openwb-base-heading"),p=i("openwb-base-text-input"),r=i("openwb-base-number-input");return u(),m("div",b,[t(a,null,{default:l(()=>e[3]||(e[3]=[f(" Einstellungen für Ampere Pro",-1)])),_:1,__:[3]}),t(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(r,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(r,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const k=d(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/ampere/ampere/device.vue"]]);export{k as default}; +import{D as s}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as i,l as u,m,G as t,E as l,B as f}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceAmpere",mixins:[s]},b={class:"device-ampere"};function v(o,e,c,g,w,C){const a=i("openwb-base-heading"),p=i("openwb-base-text-input"),r=i("openwb-base-number-input");return u(),m("div",b,[t(a,null,{default:l(()=>e[3]||(e[3]=[f(" Einstellungen für Ampere Pro",-1)])),_:1,__:[3]}),t(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(r,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(r,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const k=d(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/ampere/ampere/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-41905c43.js b/web/settings/assets/device-7d5ffda7.js similarity index 76% rename from web/settings/assets/device-41905c43.js rename to web/settings/assets/device-7d5ffda7.js index 86dc172c37..8474ecd06f 100644 --- a/web/settings/assets/device-41905c43.js +++ b/web/settings/assets/device-7d5ffda7.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as t,l as d,m,G as i,E as c,B as v}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceSolis",mixins:[p]},_={class:"device-solis"};function f(o,e,g,w,h,x){const s=t("openwb-base-heading"),r=t("openwb-base-text-input"),a=t("openwb-base-number-input"),l=t("openwb-base-select-input");return d(),m("div",_,[i(s,null,{default:c(()=>e[3]||(e[3]=[v("Einstellungen für Solis",-1)])),_:1,__:[3]}),i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),i(l,{title:"Version","not-selected":"Bitte auswählen",options:[{value:"inverter",text:"Wechselrichter ohne Speicheranbindung"},{value:"hybrid",text:"Hybridwechselrichter RHI/S Serie"}],"model-value":o.device.configuration.version,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.version"))},null,8,["model-value"])])}const U=u(b,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solis/solis/device.vue"]]);export{U as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as t,l as d,m,G as i,E as c,B as v}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceSolis",mixins:[p]},_={class:"device-solis"};function f(o,e,g,w,h,x){const s=t("openwb-base-heading"),r=t("openwb-base-text-input"),a=t("openwb-base-number-input"),l=t("openwb-base-select-input");return d(),m("div",_,[i(s,null,{default:c(()=>e[3]||(e[3]=[v("Einstellungen für Solis",-1)])),_:1,__:[3]}),i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),i(l,{title:"Version","not-selected":"Bitte auswählen",options:[{value:"inverter",text:"Wechselrichter ohne Speicheranbindung"},{value:"hybrid",text:"Hybridwechselrichter RHI/S Serie"}],"model-value":o.device.configuration.version,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.version"))},null,8,["model-value"])])}const U=u(b,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solis/solis/device.vue"]]);export{U as default}; diff --git a/web/settings/assets/device-b9725af4.js b/web/settings/assets/device-81740119.js similarity index 73% rename from web/settings/assets/device-b9725af4.js rename to web/settings/assets/device-81740119.js index 15852b692a..fb735a5fcf 100644 --- a/web/settings/assets/device-b9725af4.js +++ b/web/settings/assets/device-81740119.js @@ -1 +1 @@ -import{D as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as i,l as p,m as l,G as t,E as m,B as f}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSofar",mixins:[d]},b={class:"device-sofar"};function v(o,e,c,g,w,C){const r=i("openwb-base-heading"),s=i("openwb-base-text-input"),a=i("openwb-base-number-input");return p(),l("div",b,[t(r,null,{default:m(()=>e[3]||(e[3]=[f("Einstellungen für Sofar",-1)])),_:1,__:[3]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const I=u(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sofar/sofar/device.vue"]]);export{I as default}; +import{D as d}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as i,l as p,m as l,G as t,E as m,B as f}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSofar",mixins:[d]},b={class:"device-sofar"};function v(o,e,c,g,w,C){const r=i("openwb-base-heading"),s=i("openwb-base-text-input"),a=i("openwb-base-number-input");return p(),l("div",b,[t(r,null,{default:m(()=>e[3]||(e[3]=[f("Einstellungen für Sofar",-1)])),_:1,__:[3]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const I=u(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sofar/sofar/device.vue"]]);export{I as default}; diff --git a/web/settings/assets/device-225f64e5.js b/web/settings/assets/device-8a76503c.js similarity index 66% rename from web/settings/assets/device-225f64e5.js rename to web/settings/assets/device-8a76503c.js index 1d03f707e6..fa5b981a33 100644 --- a/web/settings/assets/device-225f64e5.js +++ b/web/settings/assets/device-8a76503c.js @@ -1 +1 @@ -import{D as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as t,l,m as u,G as n,E as i,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceVZLogger",mixins:[d]},_={class:"device-vzlogger"};function c(o,e,v,f,b,w){const r=t("openwb-base-heading"),p=t("openwb-base-text-input");return l(),u("div",_,[n(r,null,{default:i(()=>e[1]||(e[1]=[s(" Einstellungen für VZLogger ",-1)])),_:1,__:[1]}),n(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.ip_address"))},{help:i(()=>e[2]||(e[2]=[s(" Bei Angabe des Ports muss auch das Schema mit angegeben werden: http://ip:port ",-1)])),_:1},8,["model-value"])])}const k=m(g,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/vzlogger/device.vue"]]);export{k as default}; +import{D as d}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as t,l,m as u,G as n,E as i,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceVZLogger",mixins:[d]},_={class:"device-vzlogger"};function c(o,e,v,f,b,w){const r=t("openwb-base-heading"),p=t("openwb-base-text-input");return l(),u("div",_,[n(r,null,{default:i(()=>e[1]||(e[1]=[s(" Einstellungen für VZLogger ",-1)])),_:1,__:[1]}),n(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.ip_address"))},{help:i(()=>e[2]||(e[2]=[s(" Bei Angabe des Ports muss auch das Schema mit angegeben werden: http://ip:port ",-1)])),_:1},8,["model-value"])])}const k=m(g,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/vzlogger/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-f3564d79.js b/web/settings/assets/device-90b99ba4.js similarity index 73% rename from web/settings/assets/device-f3564d79.js rename to web/settings/assets/device-90b99ba4.js index 843188c745..810896b9a8 100644 --- a/web/settings/assets/device-f3564d79.js +++ b/web/settings/assets/device-90b99ba4.js @@ -1 +1 @@ -import{D as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as s,l as d,m as p,G as n,E as l,B as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const v={name:"DeviceAvm",mixins:[r]},f={class:"device-avm"};function c(o,e,g,_,b,w){const a=s("openwb-base-heading"),i=s("openwb-base-text-input");return d(),p("div",f,[n(a,null,{default:l(()=>e[3]||(e[3]=[m("Einstellungen für AVM Fritz!Box",-1)])),_:1,__:[3]}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":o.device.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const U=u(v,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/avm/avm/device.vue"]]);export{U as default}; +import{D as r}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as s,l as d,m as p,G as n,E as l,B as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const v={name:"DeviceAvm",mixins:[r]},f={class:"device-avm"};function c(o,e,g,_,b,w){const a=s("openwb-base-heading"),i=s("openwb-base-text-input");return d(),p("div",f,[n(a,null,{default:l(()=>e[3]||(e[3]=[m("Einstellungen für AVM Fritz!Box",-1)])),_:1,__:[3]}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":o.device.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const U=u(v,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/avm/avm/device.vue"]]);export{U as default}; diff --git a/web/settings/assets/device-b119076e.js b/web/settings/assets/device-9732226b.js similarity index 73% rename from web/settings/assets/device-b119076e.js rename to web/settings/assets/device-9732226b.js index cd25e6a4c8..229d2d743e 100644 --- a/web/settings/assets/device-b119076e.js +++ b/web/settings/assets/device-9732226b.js @@ -1 +1 @@ -import{D as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as i,l as p,m as l,G as t,E as m,B as v}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceVarta",mixins:[d]},_={class:"device-varta"};function b(o,e,c,g,w,V){const r=i("openwb-base-heading"),s=i("openwb-base-text-input"),a=i("openwb-base-number-input");return p(),l("div",_,[t(r,null,{default:m(()=>e[3]||(e[3]=[v(" Einstellungen für Varta ",-1)])),_:1,__:[3]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const I=u(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/varta/device.vue"]]);export{I as default}; +import{D as d}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as i,l as p,m as l,G as t,E as m,B as v}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceVarta",mixins:[d]},_={class:"device-varta"};function b(o,e,c,g,w,V){const r=i("openwb-base-heading"),s=i("openwb-base-text-input"),a=i("openwb-base-number-input");return p(),l("div",_,[t(r,null,{default:m(()=>e[3]||(e[3]=[v(" Einstellungen für Varta ",-1)])),_:1,__:[3]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const I=u(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/varta/device.vue"]]);export{I as default}; diff --git a/web/settings/assets/device-5aa89219.js b/web/settings/assets/device-97db254f.js similarity index 91% rename from web/settings/assets/device-5aa89219.js rename to web/settings/assets/device-97db254f.js index 10125bf6a6..d30baf5fe8 100644 --- a/web/settings/assets/device-5aa89219.js +++ b/web/settings/assets/device-97db254f.js @@ -1 +1 @@ -import{D as g}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as s,l as p,m as k,G as l,E as u,B as t,A as n,F as a,x as A,z as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const w={name:"DeviceSonnenbatterie",mixins:[g],computed:{linkRestApi1(){return"http://"+this.device.configuration.ip_address+":7979/rest/devices/battery"},linkRestApi2(){return"http://"+this.device.configuration.ip_address+":7979/rest/devices/battery/M05"},linkJsonApi1(){return"http://"+this.device.configuration.ip_address+"/api/v1/status"},linkJsonApi2(){return"http://"+this.device.configuration.ip_address+"/api/v2/status"}}},B={class:"device-sonnenbatterie"},I=["href"],S=["href"],P=["href"],J=["href"];function z(i,e,R,C,D,r){const v=s("openwb-base-heading"),f=s("openwb-base-alert"),d=s("openwb-base-text-input"),b=s("openwb-base-select-input");return p(),k("div",B,[l(v,null,{default:u(()=>e[3]||(e[3]=[t(" Einstellungen für SonnenBatterie ",-1)])),_:1,__:[3]}),l(f,{subtype:"info"},{default:u(()=>e[4]||(e[4]=[t(' Die Leistung steht nur in den Varianten "Rest-API 2" und "JSON-API" zur Verfügung.',-1),n("br",null,null,-1),t(" Die aktive Steuerung des Speichers durch openWB ist nur mit der JSON-API v2 möglich. ",-1)])),_:1,__:[4]}),l(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),l(b,{title:"Datenverbindung",required:"","not-selected":"Bitte auswählen",options:[{value:0,text:"Rest-API 1 (z.B. ECO 4)"},{value:2,text:"Rest-API 2 (z.B. ECO 6)"},{value:1,text:"JSON-API v1(z.B. ECO 8 oder 10)"},{value:3,text:"JSON-API v2(z.B. ECO 8 oder 10)"}],"model-value":i.device.configuration.variant,"onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o,"configuration.variant"))},{help:u(()=>[e[5]||(e[5]=t(" Je nach SonnenBatterie muss die richtige Datenverbindung ausgewählt werden. Folgende URLs werden zum Abruf der Daten genutzt und können auch manuell über einen Browser abgefragt werden, um die richtige Einstellung zu finden:",-1)),e[6]||(e[6]=n("br",null,null,-1)),e[7]||(e[7]=t(" Rest-API 1: ",-1)),n("a",{href:r.linkRestApi1,target:"_blank",rel:"noopener noreferrer"},a(r.linkRestApi1),9,I),e[8]||(e[8]=n("br",null,null,-1)),e[9]||(e[9]=t(" Rest-API 2: ",-1)),n("a",{href:r.linkRestApi2,target:"_blank",rel:"noopener noreferrer"},a(r.linkRestApi2),9,S),e[10]||(e[10]=n("br",null,null,-1)),e[11]||(e[11]=t(" JSON-API v1: ",-1)),n("a",{href:r.linkJsonApi1,target:"_blank",rel:"noopener noreferrer"},a(r.linkJsonApi1),9,P),e[12]||(e[12]=n("br",null,null,-1)),e[13]||(e[13]=t(" JSON-API v2: ",-1)),n("a",{href:r.linkJsonApi2,target:"_blank",rel:"noopener noreferrer"},a(r.linkJsonApi2),9,J),e[14]||(e[14]=n("br",null,null,-1))]),_:1},8,["model-value"]),i.device.configuration.variant===3?(p(),A(d,{key:0,title:"API-Token",subtype:"password",required:"","model-value":i.device.configuration.api_v2_token,"onUpdate:modelValue":e[2]||(e[2]=o=>i.updateConfiguration(o,"configuration.api_v2_token"))},{help:u(()=>e[15]||(e[15]=[t(' API-Token für JSON-API v2. Dieses Token wird benötigt, um detaillierte Daten auszulesen und den Speicher aktiv zu steuern (optional). Es kann in der Weboberfläche der SonnenBatterie unter "Software-Integration" erstellt werden.',-1),n("br",null,null,-1),t(' Für die aktive Steuerung durch openWB ist ebenfalls die "Write API" zu aktivieren! ',-1)])),_:1},8,["model-value"])):_("",!0)])}const T=m(w,[["render",z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnen/sonnenbatterie/device.vue"]]);export{T as default}; +import{D as g}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as s,l as p,m as k,G as l,E as u,B as t,A as n,F as a,x as A,z as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const w={name:"DeviceSonnenbatterie",mixins:[g],computed:{linkRestApi1(){return"http://"+this.device.configuration.ip_address+":7979/rest/devices/battery"},linkRestApi2(){return"http://"+this.device.configuration.ip_address+":7979/rest/devices/battery/M05"},linkJsonApi1(){return"http://"+this.device.configuration.ip_address+"/api/v1/status"},linkJsonApi2(){return"http://"+this.device.configuration.ip_address+"/api/v2/status"}}},B={class:"device-sonnenbatterie"},I=["href"],S=["href"],P=["href"],J=["href"];function z(i,e,R,C,D,r){const v=s("openwb-base-heading"),f=s("openwb-base-alert"),d=s("openwb-base-text-input"),b=s("openwb-base-select-input");return p(),k("div",B,[l(v,null,{default:u(()=>e[3]||(e[3]=[t(" Einstellungen für SonnenBatterie ",-1)])),_:1,__:[3]}),l(f,{subtype:"info"},{default:u(()=>e[4]||(e[4]=[t(' Die Leistung steht nur in den Varianten "Rest-API 2" und "JSON-API" zur Verfügung.',-1),n("br",null,null,-1),t(" Die aktive Steuerung des Speichers durch openWB ist nur mit der JSON-API v2 möglich. ",-1)])),_:1,__:[4]}),l(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),l(b,{title:"Datenverbindung",required:"","not-selected":"Bitte auswählen",options:[{value:0,text:"Rest-API 1 (z.B. ECO 4)"},{value:2,text:"Rest-API 2 (z.B. ECO 6)"},{value:1,text:"JSON-API v1(z.B. ECO 8 oder 10)"},{value:3,text:"JSON-API v2(z.B. ECO 8 oder 10)"}],"model-value":i.device.configuration.variant,"onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o,"configuration.variant"))},{help:u(()=>[e[5]||(e[5]=t(" Je nach SonnenBatterie muss die richtige Datenverbindung ausgewählt werden. Folgende URLs werden zum Abruf der Daten genutzt und können auch manuell über einen Browser abgefragt werden, um die richtige Einstellung zu finden:",-1)),e[6]||(e[6]=n("br",null,null,-1)),e[7]||(e[7]=t(" Rest-API 1: ",-1)),n("a",{href:r.linkRestApi1,target:"_blank",rel:"noopener noreferrer"},a(r.linkRestApi1),9,I),e[8]||(e[8]=n("br",null,null,-1)),e[9]||(e[9]=t(" Rest-API 2: ",-1)),n("a",{href:r.linkRestApi2,target:"_blank",rel:"noopener noreferrer"},a(r.linkRestApi2),9,S),e[10]||(e[10]=n("br",null,null,-1)),e[11]||(e[11]=t(" JSON-API v1: ",-1)),n("a",{href:r.linkJsonApi1,target:"_blank",rel:"noopener noreferrer"},a(r.linkJsonApi1),9,P),e[12]||(e[12]=n("br",null,null,-1)),e[13]||(e[13]=t(" JSON-API v2: ",-1)),n("a",{href:r.linkJsonApi2,target:"_blank",rel:"noopener noreferrer"},a(r.linkJsonApi2),9,J),e[14]||(e[14]=n("br",null,null,-1))]),_:1},8,["model-value"]),i.device.configuration.variant===3?(p(),A(d,{key:0,title:"API-Token",subtype:"password",required:"","model-value":i.device.configuration.api_v2_token,"onUpdate:modelValue":e[2]||(e[2]=o=>i.updateConfiguration(o,"configuration.api_v2_token"))},{help:u(()=>e[15]||(e[15]=[t(' API-Token für JSON-API v2. Dieses Token wird benötigt, um detaillierte Daten auszulesen und den Speicher aktiv zu steuern (optional). Es kann in der Weboberfläche der SonnenBatterie unter "Software-Integration" erstellt werden.',-1),n("br",null,null,-1),t(' Für die aktive Steuerung durch openWB ist ebenfalls die "Write API" zu aktivieren! ',-1)])),_:1},8,["model-value"])):_("",!0)])}const T=m(w,[["render",z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnen/sonnenbatterie/device.vue"]]);export{T as default}; diff --git a/web/settings/assets/device-5cd242bf.js b/web/settings/assets/device-9e5971cf.js similarity index 62% rename from web/settings/assets/device-5cd242bf.js rename to web/settings/assets/device-9e5971cf.js index d5508a28a2..253b44e899 100644 --- a/web/settings/assets/device-5cd242bf.js +++ b/web/settings/assets/device-9e5971cf.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as o,l as d,m as l,G as t,E as m,B as u}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceBenning",mixins:[p]},_={class:"device-benning"};function f(n,e,b,g,v,x){const i=o("openwb-base-heading"),s=o("openwb-base-text-input");return d(),l("div",_,[t(i,null,{default:m(()=>e[1]||(e[1]=[u("Einstellungen für Benning",-1)])),_:1,__:[1]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=r=>n.updateConfiguration(r,"configuration.url"))},null,8,["model-value"])])}const N=a(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/benning/benning/device.vue"]]);export{N as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as o,l as d,m as l,G as t,E as m,B as u}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceBenning",mixins:[p]},_={class:"device-benning"};function f(n,e,b,g,v,x){const i=o("openwb-base-heading"),s=o("openwb-base-text-input");return d(),l("div",_,[t(i,null,{default:m(()=>e[1]||(e[1]=[u("Einstellungen für Benning",-1)])),_:1,__:[1]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=r=>n.updateConfiguration(r,"configuration.url"))},null,8,["model-value"])])}const N=a(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/benning/benning/device.vue"]]);export{N as default}; diff --git a/web/settings/assets/device-32b32d79.js b/web/settings/assets/device-a362181c.js similarity index 80% rename from web/settings/assets/device-32b32d79.js rename to web/settings/assets/device-a362181c.js index 25d6e4c47c..110534aafc 100644 --- a/web/settings/assets/device-32b32d79.js +++ b/web/settings/assets/device-a362181c.js @@ -1 +1 @@ -import{D as l}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as n,l as p,m as c,G as t,E as r,B as o,A as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceFronius",mixins:[l]},b={class:"device-fronius"};function g(i,e,v,h,w,S){const s=n("openwb-base-heading"),a=n("openwb-base-alert"),d=n("openwb-base-text-input");return p(),c("div",b,[t(s,null,{default:r(()=>e[1]||(e[1]=[o(" Einstellungen für Fronius ",-1)])),_:1,__:[1]}),t(a,{subtype:"info"},{default:r(()=>e[2]||(e[2]=[o(" Die Fronius API muss aktiviert sein.",-1),_("br",null,null,-1),o(" Sind nur Symos in Nutzung, welche über Fronius Solar Net / DATCOM miteinander verbunden sind, muss nur ein Gerät mit einer Komponente Wechselrichter angelegt werden. Sind aber z.B. Symo und Symo Hybrid im Einsatz, muss für jeden Wechselrichter ein Gerät mit einer Komponente Wechselrichter angelegt werden. Die Zähler-Komponente für das Smart-Meter wird in dem Gerät angelegt, dass den Wechselrichter enthält, an den das SmartMeter angeschlossen ist. ",-1)])),_:1,__:[2]}),t(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const G=m(f,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/fronius/device.vue"]]);export{G as default}; +import{D as l}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as n,l as p,m as c,G as t,E as r,B as o,A as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceFronius",mixins:[l]},b={class:"device-fronius"};function g(i,e,v,h,w,S){const s=n("openwb-base-heading"),a=n("openwb-base-alert"),d=n("openwb-base-text-input");return p(),c("div",b,[t(s,null,{default:r(()=>e[1]||(e[1]=[o(" Einstellungen für Fronius ",-1)])),_:1,__:[1]}),t(a,{subtype:"info"},{default:r(()=>e[2]||(e[2]=[o(" Die Fronius API muss aktiviert sein.",-1),_("br",null,null,-1),o(" Sind nur Symos in Nutzung, welche über Fronius Solar Net / DATCOM miteinander verbunden sind, muss nur ein Gerät mit einer Komponente Wechselrichter angelegt werden. Sind aber z.B. Symo und Symo Hybrid im Einsatz, muss für jeden Wechselrichter ein Gerät mit einer Komponente Wechselrichter angelegt werden. Die Zähler-Komponente für das Smart-Meter wird in dem Gerät angelegt, dass den Wechselrichter enthält, an den das SmartMeter angeschlossen ist. ",-1)])),_:1,__:[2]}),t(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const G=m(f,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/fronius/device.vue"]]);export{G as default}; diff --git a/web/settings/assets/device-43ea3db6.js b/web/settings/assets/device-a8208384.js similarity index 62% rename from web/settings/assets/device-43ea3db6.js rename to web/settings/assets/device-a8208384.js index 3ee62fdc54..7d763f8353 100644 --- a/web/settings/assets/device-43ea3db6.js +++ b/web/settings/assets/device-a8208384.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as t,l as d,m as c,G as n,E as m,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceRCT",mixins:[p]},_={class:"device-rct"};function f(o,e,v,b,g,x){const i=t("openwb-base-heading"),s=t("openwb-base-text-input");return d(),c("div",_,[n(i,null,{default:m(()=>e[1]||(e[1]=[l(" Einstellungen für RCT ",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const k=a(u,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/rct/device.vue"]]);export{k as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as t,l as d,m as c,G as n,E as m,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceRCT",mixins:[p]},_={class:"device-rct"};function f(o,e,v,b,g,x){const i=t("openwb-base-heading"),s=t("openwb-base-text-input");return d(),c("div",_,[n(i,null,{default:m(()=>e[1]||(e[1]=[l(" Einstellungen für RCT ",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const k=a(u,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/rct/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-4cc9719a.js b/web/settings/assets/device-aa0fb6fb.js similarity index 69% rename from web/settings/assets/device-4cc9719a.js rename to web/settings/assets/device-aa0fb6fb.js index 51bc73e7b1..8ed91222c3 100644 --- a/web/settings/assets/device-4cc9719a.js +++ b/web/settings/assets/device-aa0fb6fb.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as n,l as u,m,G as i,E as l,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceStuder",mixins:[a]},f={class:"device-studer"};function b(o,e,v,g,w,x){const r=n("openwb-base-heading"),s=n("openwb-base-text-input"),p=n("openwb-base-number-input");return u(),m("div",f,[i(r,null,{default:l(()=>e[2]||(e[2]=[_(" Einstellungen für Studer ",-1)])),_:1,__:[2]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.port"))},null,8,["model-value"])])}const P=d(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/studer/device.vue"]]);export{P as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as n,l as u,m,G as i,E as l,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceStuder",mixins:[a]},f={class:"device-studer"};function b(o,e,v,g,w,x){const r=n("openwb-base-heading"),s=n("openwb-base-text-input"),p=n("openwb-base-number-input");return u(),m("div",f,[i(r,null,{default:l(()=>e[2]||(e[2]=[_(" Einstellungen für Studer ",-1)])),_:1,__:[2]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.port"))},null,8,["model-value"])])}const P=d(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/studer/device.vue"]]);export{P as default}; diff --git a/web/settings/assets/device-9b32a0e5.js b/web/settings/assets/device-ae133671.js similarity index 80% rename from web/settings/assets/device-9b32a0e5.js rename to web/settings/assets/device-ae133671.js index 758d9b0107..d1109f6af9 100644 --- a/web/settings/assets/device-9b32a0e5.js +++ b/web/settings/assets/device-ae133671.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as i,l as v,m as b,G as n,E as s,B as u}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceGrowatt",mixins:[p]},g={class:"device-growatt"};function _(o,e,c,w,V,C){const a=i("openwb-base-heading"),d=i("openwb-base-text-input"),r=i("openwb-base-number-input"),l=i("openwb-base-select-input");return v(),b("div",g,[n(a,null,{default:s(()=>e[4]||(e[4]=[u("Einstellungen für Growatt",-1)])),_:1,__:[4]}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),n(r,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.port"))},null,8,["model-value"]),n(r,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.modbus_id"))},null,8,["model-value"]),n(l,{title:"Version","not-selected":"Bitte auswählen",options:[{value:"MAX",text:"MAX Series"},{value:"TL-X",text:"TL-X Inverter"}],"model-value":o.device.configuration.version,required:"","onUpdate:modelValue":e[3]||(e[3]=t=>o.updateConfiguration(t,"configuration.version"))},{help:s(()=>e[5]||(e[5]=[u(" Die Wahl der API-Version beeinflusst die Auslesung der Speicherleistung und der Import/ Export Werte des Zählers. ",-1)])),_:1},8,["model-value"])])}const X=m(f,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/growatt/growatt/device.vue"]]);export{X as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as i,l as v,m as b,G as n,E as s,B as u}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceGrowatt",mixins:[p]},g={class:"device-growatt"};function _(o,e,c,w,V,C){const a=i("openwb-base-heading"),d=i("openwb-base-text-input"),r=i("openwb-base-number-input"),l=i("openwb-base-select-input");return v(),b("div",g,[n(a,null,{default:s(()=>e[4]||(e[4]=[u("Einstellungen für Growatt",-1)])),_:1,__:[4]}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),n(r,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.port"))},null,8,["model-value"]),n(r,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.modbus_id"))},null,8,["model-value"]),n(l,{title:"Version","not-selected":"Bitte auswählen",options:[{value:"MAX",text:"MAX Series"},{value:"TL-X",text:"TL-X Inverter"}],"model-value":o.device.configuration.version,required:"","onUpdate:modelValue":e[3]||(e[3]=t=>o.updateConfiguration(t,"configuration.version"))},{help:s(()=>e[5]||(e[5]=[u(" Die Wahl der API-Version beeinflusst die Auslesung der Speicherleistung und der Import/ Export Werte des Zählers. ",-1)])),_:1},8,["model-value"])])}const X=m(f,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/growatt/growatt/device.vue"]]);export{X as default}; diff --git a/web/settings/assets/device-8a02bf9e.js b/web/settings/assets/device-b0fef6f7.js similarity index 77% rename from web/settings/assets/device-8a02bf9e.js rename to web/settings/assets/device-b0fef6f7.js index c33392ca43..2daad502fb 100644 --- a/web/settings/assets/device-8a02bf9e.js +++ b/web/settings/assets/device-b0fef6f7.js @@ -1 +1 @@ -import{D as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as s,l as p,m as l,G as t,E as r,B as a}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceLG",mixins:[m]},f={class:"device-lg"};function c(n,e,v,_,b,w){const d=s("openwb-base-heading"),o=s("openwb-base-text-input");return p(),l("div",f,[t(d,null,{default:r(()=>e[2]||(e[2]=[a(" Einstellungen für LG ESS V1.0 ",-1)])),_:1,__:[2]}),t(o,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"]),t(o,{title:"Passwort",subtype:"password",required:"","model-value":n.device.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=i=>n.updateConfiguration(i,"configuration.password"))},{help:r(()=>e[3]||(e[3]=[a(' Passwort, um sich in den LG ESS V1.0 einzuloggen. Das Passwort ist standardmäßig die Registrierungsnummer, die sich auf einem Aufkleber auf dem PCS (dem Hybridwechselrichter und Batteriemanagementsystem) befindet. Alternativ findet man die Registrierungsnummer in der App unter dem Menüpunkt "Systeminformationen". Mit der Registrierungsnummer kann man sich dann in der Rolle "installer" einloggen. ',-1)])),_:1},8,["model-value"])])}const h=u(g,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/lg/device.vue"]]);export{h as default}; +import{D as m}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as s,l as p,m as l,G as t,E as r,B as a}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceLG",mixins:[m]},f={class:"device-lg"};function c(n,e,v,_,b,w){const d=s("openwb-base-heading"),o=s("openwb-base-text-input");return p(),l("div",f,[t(d,null,{default:r(()=>e[2]||(e[2]=[a(" Einstellungen für LG ESS V1.0 ",-1)])),_:1,__:[2]}),t(o,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"]),t(o,{title:"Passwort",subtype:"password",required:"","model-value":n.device.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=i=>n.updateConfiguration(i,"configuration.password"))},{help:r(()=>e[3]||(e[3]=[a(' Passwort, um sich in den LG ESS V1.0 einzuloggen. Das Passwort ist standardmäßig die Registrierungsnummer, die sich auf einem Aufkleber auf dem PCS (dem Hybridwechselrichter und Batteriemanagementsystem) befindet. Alternativ findet man die Registrierungsnummer in der App unter dem Menüpunkt "Systeminformationen". Mit der Registrierungsnummer kann man sich dann in der Rolle "installer" einloggen. ',-1)])),_:1},8,["model-value"])])}const h=u(g,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/lg/device.vue"]]);export{h as default}; diff --git a/web/settings/assets/device-53266948.js b/web/settings/assets/device-b89dcacb.js similarity index 69% rename from web/settings/assets/device-53266948.js rename to web/settings/assets/device-b89dcacb.js index bd1614219f..30973d81b9 100644 --- a/web/settings/assets/device-53266948.js +++ b/web/settings/assets/device-b89dcacb.js @@ -1 +1 @@ -import{D as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as l,u as o,l as u,m,G as i,E as r,B as t,A as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceHttp",mixins:[d]},f={class:"device-http"};function v(n,e,b,g,w,x){const s=o("openwb-base-heading"),p=o("openwb-base-text-input");return u(),m("div",f,[i(s,null,{default:r(()=>e[1]||(e[1]=[t(" Einstellungen für Http ",-1)])),_:1,__:[1]}),i(p,{title:"Server-URL",subtype:"url",required:"","model-value":n.device.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=a=>n.updateConfiguration(a,"configuration.url"))},{help:r(()=>e[2]||(e[2]=[t(" Hier sind die Verbindungsangaben für den Http-Server einzutragen. Der Pfad für die einzelnen Daten wird in der Komponente hinterlegt.",-1),c("br",null,null,-1),t(" Beispiel: http://mein.server:8080 ",-1)])),_:1},8,["model-value"])])}const k=l(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/http/device.vue"]]);export{k as default}; +import{D as d}from"./HardwareInstallation-0c77715a.js";import{_ as l,u as o,l as u,m,G as i,E as r,B as t,A as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceHttp",mixins:[d]},f={class:"device-http"};function v(n,e,b,g,w,x){const s=o("openwb-base-heading"),p=o("openwb-base-text-input");return u(),m("div",f,[i(s,null,{default:r(()=>e[1]||(e[1]=[t(" Einstellungen für Http ",-1)])),_:1,__:[1]}),i(p,{title:"Server-URL",subtype:"url",required:"","model-value":n.device.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=a=>n.updateConfiguration(a,"configuration.url"))},{help:r(()=>e[2]||(e[2]=[t(" Hier sind die Verbindungsangaben für den Http-Server einzutragen. Der Pfad für die einzelnen Daten wird in der Komponente hinterlegt.",-1),c("br",null,null,-1),t(" Beispiel: http://mein.server:8080 ",-1)])),_:1},8,["model-value"])])}const k=l(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/http/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-c5d84904.js b/web/settings/assets/device-bba50fe5.js similarity index 70% rename from web/settings/assets/device-c5d84904.js rename to web/settings/assets/device-bba50fe5.js index 0e83b99e21..0e18417b0e 100644 --- a/web/settings/assets/device-c5d84904.js +++ b/web/settings/assets/device-bba50fe5.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as t,l as u,m as l,G as i,E as m,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSunnyIsland",mixins:[p]},f={class:"device-sunnyisland"};function b(n,e,v,g,w,x){const s=t("openwb-base-heading"),a=t("openwb-base-text-input"),r=t("openwb-base-number-input");return u(),l("div",f,[i(s,null,{default:m(()=>e[2]||(e[2]=[_(" Einstellungen für Sunny Island ",-1)])),_:1,__:[2]}),i(a,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),i(r,{title:"Port",required:"",min:1,max:65535,"model-value":n.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.port"))},null,8,["model-value"])])}const q=d(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_island/device.vue"]]);export{q as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as t,l as u,m as l,G as i,E as m,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSunnyIsland",mixins:[p]},f={class:"device-sunnyisland"};function b(n,e,v,g,w,x){const s=t("openwb-base-heading"),a=t("openwb-base-text-input"),r=t("openwb-base-number-input");return u(),l("div",f,[i(s,null,{default:m(()=>e[2]||(e[2]=[_(" Einstellungen für Sunny Island ",-1)])),_:1,__:[2]}),i(a,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),i(r,{title:"Port",required:"",min:1,max:65535,"model-value":n.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.port"))},null,8,["model-value"])])}const q=d(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_island/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-6d6283ca.js b/web/settings/assets/device-c9250c5b.js similarity index 69% rename from web/settings/assets/device-6d6283ca.js rename to web/settings/assets/device-c9250c5b.js index efbb8ebd47..faadf24b74 100644 --- a/web/settings/assets/device-6d6283ca.js +++ b/web/settings/assets/device-c9250c5b.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as t,l as u,m,G as i,E as l,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceSigenergy",mixins:[a]},c={class:"device-sigenergy"};function f(o,e,b,v,w,x){const r=t("openwb-base-heading"),s=t("openwb-base-text-input"),p=t("openwb-base-number-input");return u(),m("div",c,[i(r,null,{default:l(()=>e[2]||(e[2]=[_("Einstellungen für Sigenergy",-1)])),_:1,__:[2]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const N=d(g,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sigenergy/sigenergy/device.vue"]]);export{N as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as t,l as u,m,G as i,E as l,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceSigenergy",mixins:[a]},c={class:"device-sigenergy"};function f(o,e,b,v,w,x){const r=t("openwb-base-heading"),s=t("openwb-base-text-input"),p=t("openwb-base-number-input");return u(),m("div",c,[i(r,null,{default:l(()=>e[2]||(e[2]=[_("Einstellungen für Sigenergy",-1)])),_:1,__:[2]}),i(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const N=d(g,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sigenergy/sigenergy/device.vue"]]);export{N as default}; diff --git a/web/settings/assets/device-ef0c1ebd.js b/web/settings/assets/device-c9b784c2.js similarity index 74% rename from web/settings/assets/device-ef0c1ebd.js rename to web/settings/assets/device-c9b784c2.js index 7308203aa3..cb539f3c26 100644 --- a/web/settings/assets/device-ef0c1ebd.js +++ b/web/settings/assets/device-c9b784c2.js @@ -1 +1 @@ -import{D as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as i,l as p,m as l,G as t,E as m,B as f}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceJanitza",mixins:[d]},b={class:"device-janitza"};function v(o,e,c,g,w,C){const r=i("openwb-base-heading"),s=i("openwb-base-text-input"),a=i("openwb-base-number-input");return p(),l("div",b,[t(r,null,{default:m(()=>e[3]||(e[3]=[f(" Einstellungen für Janitza ",-1)])),_:1,__:[3]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const U=u(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/janitza/janitza/device.vue"]]);export{U as default}; +import{D as d}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as i,l as p,m as l,G as t,E as m,B as f}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceJanitza",mixins:[d]},b={class:"device-janitza"};function v(o,e,c,g,w,C){const r=i("openwb-base-heading"),s=i("openwb-base-text-input"),a=i("openwb-base-number-input");return p(),l("div",b,[t(r,null,{default:m(()=>e[3]||(e[3]=[f(" Einstellungen für Janitza ",-1)])),_:1,__:[3]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const U=u(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/janitza/janitza/device.vue"]]);export{U as default}; diff --git a/web/settings/assets/device-e3d4ebdd.js b/web/settings/assets/device-cea58e31.js similarity index 71% rename from web/settings/assets/device-e3d4ebdd.js rename to web/settings/assets/device-cea58e31.js index c42165c794..d3305a73a2 100644 --- a/web/settings/assets/device-e3d4ebdd.js +++ b/web/settings/assets/device-cea58e31.js @@ -1 +1 @@ -import{D as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as n,l,m as c,G as i,E as a,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceKaco",mixins:[u]},f={class:"device-kaco"};function b(o,e,v,g,w,x){const s=n("openwb-base-heading"),p=n("openwb-base-text-input"),d=n("openwb-base-number-input");return l(),c("div",f,[i(s,null,{default:a(()=>e[2]||(e[2]=[r(" Einstellungen für Kaco ",-1)])),_:1,__:[2]}),i(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),i(d,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.port"))},{help:a(()=>e[3]||(e[3]=[r(" Der Standardport für Kaco ist 502. ",-1)])),_:1},8,["model-value"])])}const N=m(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kaco/kaco_tx/device.vue"]]);export{N as default}; +import{D as u}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as n,l,m as c,G as i,E as a,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceKaco",mixins:[u]},f={class:"device-kaco"};function b(o,e,v,g,w,x){const s=n("openwb-base-heading"),p=n("openwb-base-text-input"),d=n("openwb-base-number-input");return l(),c("div",f,[i(s,null,{default:a(()=>e[2]||(e[2]=[r(" Einstellungen für Kaco ",-1)])),_:1,__:[2]}),i(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),i(d,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.port"))},{help:a(()=>e[3]||(e[3]=[r(" Der Standardport für Kaco ist 502. ",-1)])),_:1},8,["model-value"])])}const N=m(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kaco/kaco_tx/device.vue"]]);export{N as default}; diff --git a/web/settings/assets/device-429bda33.js b/web/settings/assets/device-d28a42a6.js similarity index 69% rename from web/settings/assets/device-429bda33.js rename to web/settings/assets/device-d28a42a6.js index e137f5ab94..f752fc0c65 100644 --- a/web/settings/assets/device-429bda33.js +++ b/web/settings/assets/device-d28a42a6.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as t,l as u,m,G as i,E as l,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceNibe",mixins:[a]},c={class:"device-nibe"};function f(o,e,v,g,w,x){const s=t("openwb-base-heading"),r=t("openwb-base-text-input"),p=t("openwb-base-number-input");return u(),m("div",c,[i(s,null,{default:l(()=>e[2]||(e[2]=[_("Einstellungen für Nibe",-1)])),_:1,__:[2]}),i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const P=d(b,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/nibe/nibe/device.vue"]]);export{P as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as t,l as u,m,G as i,E as l,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceNibe",mixins:[a]},c={class:"device-nibe"};function f(o,e,v,g,w,x){const s=t("openwb-base-heading"),r=t("openwb-base-text-input"),p=t("openwb-base-number-input");return u(),m("div",c,[i(s,null,{default:l(()=>e[2]||(e[2]=[_("Einstellungen für Nibe",-1)])),_:1,__:[2]}),i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const P=d(b,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/nibe/nibe/device.vue"]]);export{P as default}; diff --git a/web/settings/assets/device-dd870d85.js b/web/settings/assets/device-d801ab50.js similarity index 78% rename from web/settings/assets/device-dd870d85.js rename to web/settings/assets/device-d801ab50.js index a1bf365177..44befebee3 100644 --- a/web/settings/assets/device-dd870d85.js +++ b/web/settings/assets/device-d801ab50.js @@ -1 +1 @@ -import{D as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as n,l as _,m as c,G as o,E as l,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceShelly",mixins:[u]},v={class:"device-shelly"};function b(t,e,g,h,w,y){const r=n("openwb-base-heading"),a=n("openwb-base-alert"),p=n("openwb-base-text-input"),d=n("openwb-base-select-input");return _(),c("div",v,[o(r,null,{default:l(()=>e[2]||(e[2]=[s(" Einstellungen für Shelly ",-1)])),_:1,__:[2]}),o(a,{subtype:"info"},{default:l(()=>e[3]||(e[3]=[s(" Unterstützt werden theoretisch alle ein- und dreiphasigen Shelly der Generation 1-3. Getestete Modelle sind Shelly 1pm, 1pm plus, Pro Pro 3EM, Plug S. ",-1)])),_:1,__:[3]}),o(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>t.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"]),o(d,{title:"Vorzeichen invertieren","not-selected":"Bitte auswählen",options:[{value:-1,text:"ja"},{value:1,text:"nein"}],"model-value":t.device.configuration.factor,required:"","onUpdate:modelValue":e[1]||(e[1]=i=>t.updateConfiguration(i,"configuration.factor"))},{help:l(()=>e[4]||(e[4]=[s(" Einige Shelly Modelle liefern die Leistung mit umgedrehtem Vorzeichen. Falls dies der Fall sein sollte, das Vorzeichen invertieren. ",-1)])),_:1},8,["model-value"])])}const $=m(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/shelly/shelly/device.vue"]]);export{$ as default}; +import{D as u}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as n,l as _,m as c,G as o,E as l,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceShelly",mixins:[u]},v={class:"device-shelly"};function b(t,e,g,h,w,y){const r=n("openwb-base-heading"),a=n("openwb-base-alert"),p=n("openwb-base-text-input"),d=n("openwb-base-select-input");return _(),c("div",v,[o(r,null,{default:l(()=>e[2]||(e[2]=[s(" Einstellungen für Shelly ",-1)])),_:1,__:[2]}),o(a,{subtype:"info"},{default:l(()=>e[3]||(e[3]=[s(" Unterstützt werden theoretisch alle ein- und dreiphasigen Shelly der Generation 1-3. Getestete Modelle sind Shelly 1pm, 1pm plus, Pro Pro 3EM, Plug S. ",-1)])),_:1,__:[3]}),o(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>t.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"]),o(d,{title:"Vorzeichen invertieren","not-selected":"Bitte auswählen",options:[{value:-1,text:"ja"},{value:1,text:"nein"}],"model-value":t.device.configuration.factor,required:"","onUpdate:modelValue":e[1]||(e[1]=i=>t.updateConfiguration(i,"configuration.factor"))},{help:l(()=>e[4]||(e[4]=[s(" Einige Shelly Modelle liefern die Leistung mit umgedrehtem Vorzeichen. Falls dies der Fall sein sollte, das Vorzeichen invertieren. ",-1)])),_:1},8,["model-value"])])}const $=m(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/shelly/shelly/device.vue"]]);export{$ as default}; diff --git a/web/settings/assets/device-779403a1.js b/web/settings/assets/device-dbd0d29c.js similarity index 63% rename from web/settings/assets/device-779403a1.js rename to web/settings/assets/device-dbd0d29c.js index ebb769a00d..3495685a55 100644 --- a/web/settings/assets/device-779403a1.js +++ b/web/settings/assets/device-dbd0d29c.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as t,l as m,m as d,G as n,E as l,B as u}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSmartfox",mixins:[a]},_={class:"device-smartfox"};function f(o,e,v,x,b,g){const i=t("openwb-base-heading"),s=t("openwb-base-text-input");return m(),d("div",_,[n(i,null,{default:l(()=>e[1]||(e[1]=[u(" Einstellungen für Smartfox ",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const N=p(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smartfox/smartfox/device.vue"]]);export{N as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as t,l as m,m as d,G as n,E as l,B as u}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSmartfox",mixins:[a]},_={class:"device-smartfox"};function f(o,e,v,x,b,g){const i=t("openwb-base-heading"),s=t("openwb-base-text-input");return m(),d("div",_,[n(i,null,{default:l(()=>e[1]||(e[1]=[u(" Einstellungen für Smartfox ",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const N=p(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smartfox/smartfox/device.vue"]]);export{N as default}; diff --git a/web/settings/assets/device-42a91b6b.js b/web/settings/assets/device-dc230eb0.js similarity index 69% rename from web/settings/assets/device-42a91b6b.js rename to web/settings/assets/device-dc230eb0.js index fced9bf027..942c385bb6 100644 --- a/web/settings/assets/device-42a91b6b.js +++ b/web/settings/assets/device-dc230eb0.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as t,l,m as d,G as i,E as u,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSolarmax",mixins:[p]},f={class:"device-solarmax"};function b(o,e,v,g,x,w){const a=t("openwb-base-heading"),r=t("openwb-base-text-input"),s=t("openwb-base-number-input");return l(),d("div",f,[i(a,null,{default:u(()=>e[2]||(e[2]=[_(" Einstellungen für Solarmax ",-1)])),_:1,__:[2]}),i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(s,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const P=m(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/solarmax/device.vue"]]);export{P as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as t,l,m as d,G as i,E as u,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSolarmax",mixins:[p]},f={class:"device-solarmax"};function b(o,e,v,g,x,w){const a=t("openwb-base-heading"),r=t("openwb-base-text-input"),s=t("openwb-base-number-input");return l(),d("div",f,[i(a,null,{default:u(()=>e[2]||(e[2]=[_(" Einstellungen für Solarmax ",-1)])),_:1,__:[2]}),i(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(s,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const P=m(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/solarmax/device.vue"]]);export{P as default}; diff --git a/web/settings/assets/device-94881378.js b/web/settings/assets/device-dd17995b.js similarity index 76% rename from web/settings/assets/device-94881378.js rename to web/settings/assets/device-dd17995b.js index 3a74530379..fac826966d 100644 --- a/web/settings/assets/device-94881378.js +++ b/web/settings/assets/device-dd17995b.js @@ -1 +1 @@ -import{D as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as r,l as d,m,G as i,E as s,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceKostalPikoOld",mixins:[u]},v={class:"device-kostal-piko-old"};function c(o,e,g,b,w,k){const a=r("openwb-base-heading"),n=r("openwb-base-text-input");return d(),m("div",v,[i(a,null,{default:s(()=>e[3]||(e[3]=[l(" Einstellungen für Kostal Piko (alte Generation) ",-1)])),_:1,__:[3]}),i(n,{title:"URL",subtype:"url",required:"","model-value":o.device.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.url"))},{help:s(()=>e[4]||(e[4]=[l(' Es wird eine komplette URL inklusive Protokoll erwartet. Normalerweise ist der Wechselrichter über "http://IP" zu erreichen. ',-1)])),_:1},8,["model-value"]),i(n,{title:"Benutzername",subtype:"user",required:"","model-value":o.device.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),i(n,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const x=p(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_piko_old/device.vue"]]);export{x as default}; +import{D as u}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as r,l as d,m,G as i,E as s,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceKostalPikoOld",mixins:[u]},v={class:"device-kostal-piko-old"};function c(o,e,g,b,w,k){const a=r("openwb-base-heading"),n=r("openwb-base-text-input");return d(),m("div",v,[i(a,null,{default:s(()=>e[3]||(e[3]=[l(" Einstellungen für Kostal Piko (alte Generation) ",-1)])),_:1,__:[3]}),i(n,{title:"URL",subtype:"url",required:"","model-value":o.device.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.url"))},{help:s(()=>e[4]||(e[4]=[l(' Es wird eine komplette URL inklusive Protokoll erwartet. Normalerweise ist der Wechselrichter über "http://IP" zu erreichen. ',-1)])),_:1},8,["model-value"]),i(n,{title:"Benutzername",subtype:"user",required:"","model-value":o.device.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),i(n,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const x=p(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_piko_old/device.vue"]]);export{x as default}; diff --git a/web/settings/assets/device-4216efb1.js b/web/settings/assets/device-dd5cb4eb.js similarity index 63% rename from web/settings/assets/device-4216efb1.js rename to web/settings/assets/device-dd5cb4eb.js index 47d23c29a7..a5d6dce9ea 100644 --- a/web/settings/assets/device-4216efb1.js +++ b/web/settings/assets/device-dd5cb4eb.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as r,u as t,l as d,m,G as n,E as l,B as u}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSmaWebbox",mixins:[p]},c={class:"device-sma-webbox"};function b(o,e,f,v,x,g){const i=t("openwb-base-heading"),s=t("openwb-base-text-input");return d(),m("div",c,[n(i,null,{default:l(()=>e[1]||(e[1]=[u(" Einstellungen für SMA Webbox ",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.ip_address"))},null,8,["model-value"])])}const k=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_webbox/device.vue"]]);export{k as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as r,u as t,l as d,m,G as n,E as l,B as u}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSmaWebbox",mixins:[p]},c={class:"device-sma-webbox"};function b(o,e,f,v,x,g){const i=t("openwb-base-heading"),s=t("openwb-base-text-input");return d(),m("div",c,[n(i,null,{default:l(()=>e[1]||(e[1]=[u(" Einstellungen für SMA Webbox ",-1)])),_:1,__:[1]}),n(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=a=>o.updateConfiguration(a,"configuration.ip_address"))},null,8,["model-value"])])}const k=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_webbox/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-de7086f5.js b/web/settings/assets/device-de940d29.js similarity index 83% rename from web/settings/assets/device-de7086f5.js rename to web/settings/assets/device-de940d29.js index 8e9ae6db64..e4d9177046 100644 --- a/web/settings/assets/device-de7086f5.js +++ b/web/settings/assets/device-de940d29.js @@ -1 +1 @@ -import{D as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as o,l as b,m as _,G as t,E as s,B as r,A as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSolarEdge",mixins:[u]},g={class:"device-solaredge"};function v(n,e,w,B,h,S){const a=o("openwb-base-heading"),d=o("openwb-base-alert"),p=o("openwb-base-text-input"),l=o("openwb-base-number-input");return b(),_("div",g,[t(a,null,{default:s(()=>e[2]||(e[2]=[r(" Einstellungen für SolarEdge ",-1)])),_:1,__:[2]}),t(d,{subtype:"info"},{default:s(()=>e[3]||(e[3]=[r(" ModbusTCP muss im Wechselrichter aktiviert werden und der Wechselrichter per LAN angebunden sein.",-1),c("br",null,null,-1),r(" SolarEdge lässt nur eine ModbusTCP-Verbindung zu. Wenn Sie mit einem weiteren SmartHome-System, wie z.B. ioBroker oder openHAB, den SolarEdge-Wechselrichter abfragen, kann dies die Abfrage durch die openWB stören oder verhindern. ",-1)])),_:1,__:[3]}),t(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"]),t(l,{title:"Port",required:"",min:1,max:65535,"model-value":n.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=i=>n.updateConfiguration(i,"configuration.port"))},{help:s(()=>e[4]||(e[4]=[r(" Je nach Produktionsdatum und Softwareversion ist 502 oder 1502 ab Werk eingestellt. Bitte im Wechselrichter überprüfen. ",-1)])),_:1},8,["model-value"])])}const $=m(f,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/solaredge/device.vue"]]);export{$ as default}; +import{D as u}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as o,l as b,m as _,G as t,E as s,B as r,A as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSolarEdge",mixins:[u]},g={class:"device-solaredge"};function v(n,e,w,B,h,S){const a=o("openwb-base-heading"),d=o("openwb-base-alert"),p=o("openwb-base-text-input"),l=o("openwb-base-number-input");return b(),_("div",g,[t(a,null,{default:s(()=>e[2]||(e[2]=[r(" Einstellungen für SolarEdge ",-1)])),_:1,__:[2]}),t(d,{subtype:"info"},{default:s(()=>e[3]||(e[3]=[r(" ModbusTCP muss im Wechselrichter aktiviert werden und der Wechselrichter per LAN angebunden sein.",-1),c("br",null,null,-1),r(" SolarEdge lässt nur eine ModbusTCP-Verbindung zu. Wenn Sie mit einem weiteren SmartHome-System, wie z.B. ioBroker oder openHAB, den SolarEdge-Wechselrichter abfragen, kann dies die Abfrage durch die openWB stören oder verhindern. ",-1)])),_:1,__:[3]}),t(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=i=>n.updateConfiguration(i,"configuration.ip_address"))},null,8,["model-value"]),t(l,{title:"Port",required:"",min:1,max:65535,"model-value":n.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=i=>n.updateConfiguration(i,"configuration.port"))},{help:s(()=>e[4]||(e[4]=[r(" Je nach Produktionsdatum und Softwareversion ist 502 oder 1502 ab Werk eingestellt. Bitte im Wechselrichter überprüfen. ",-1)])),_:1},8,["model-value"])])}const $=m(f,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/solaredge/device.vue"]]);export{$ as default}; diff --git a/web/settings/assets/device-60803ee4.js b/web/settings/assets/device-e061c3ce.js similarity index 77% rename from web/settings/assets/device-60803ee4.js rename to web/settings/assets/device-e061c3ce.js index ac4aec488e..9e10524069 100644 --- a/web/settings/assets/device-60803ee4.js +++ b/web/settings/assets/device-e061c3ce.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as t,l,m as p,G as i,E as s,B as n,A as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceMqtt",mixins:[a]},c={class:"device-mqtt"};function b(g,e,_,f,h,v){const r=t("openwb-base-heading"),o=t("openwb-base-alert");return l(),p("div",c,[i(r,null,{default:s(()=>e[0]||(e[0]=[n("Einstellungen für MQTT",-1)])),_:1,__:[0]}),i(o,{subtype:"info"},{default:s(()=>e[1]||(e[1]=[n(" Das MQTT Modul stellt keine aktive Verbindung her, sondern erwartet, dass die Daten an die angegebenen Topics im Broker gesendet werden. Alle Daten sind als gültiges JSON zu senden! Zahlen mit Nachkommastellen (Float) müssen einen Punkt als Dezimaltrenner verwenden (internationales Format). ",-1),m("br",null,null,-1),n(" Ab Version 2.1.8 wurden die Topics überarbeitet. Die bisherigen Topics openWB/set/bat/id/get/..., openWB/set/counter/id/get/... und openWB/set/pv/id/get/... bleiben aus Gründen der Abwärtskompatibilität weiterhin nutzbar. Wir empfehlen, auf die neuen Topics umzusteigen. Dies ermöglicht die Beseitigung von Einschränkungen, wie z. B. die fehlende Verrechnung bei Hybrid-Systemen oder die Berechnung fehlender Werte, wie der Phasen-Leistung aus Spannung und Stromstärken. ",-1)])),_:1,__:[1]})])}const M=d(u,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/mqtt/device.vue"]]);export{M as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as t,l,m as p,G as i,E as s,B as n,A as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceMqtt",mixins:[a]},c={class:"device-mqtt"};function b(g,e,_,f,h,v){const r=t("openwb-base-heading"),o=t("openwb-base-alert");return l(),p("div",c,[i(r,null,{default:s(()=>e[0]||(e[0]=[n("Einstellungen für MQTT",-1)])),_:1,__:[0]}),i(o,{subtype:"info"},{default:s(()=>e[1]||(e[1]=[n(" Das MQTT Modul stellt keine aktive Verbindung her, sondern erwartet, dass die Daten an die angegebenen Topics im Broker gesendet werden. Alle Daten sind als gültiges JSON zu senden! Zahlen mit Nachkommastellen (Float) müssen einen Punkt als Dezimaltrenner verwenden (internationales Format). ",-1),m("br",null,null,-1),n(" Ab Version 2.1.8 wurden die Topics überarbeitet. Die bisherigen Topics openWB/set/bat/id/get/..., openWB/set/counter/id/get/... und openWB/set/pv/id/get/... bleiben aus Gründen der Abwärtskompatibilität weiterhin nutzbar. Wir empfehlen, auf die neuen Topics umzusteigen. Dies ermöglicht die Beseitigung von Einschränkungen, wie z. B. die fehlende Verrechnung bei Hybrid-Systemen oder die Berechnung fehlender Werte, wie der Phasen-Leistung aus Spannung und Stromstärken. ",-1)])),_:1,__:[1]})])}const M=d(u,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/mqtt/device.vue"]]);export{M as default}; diff --git a/web/settings/assets/device-3ffc8ac2.js b/web/settings/assets/device-e1e97349.js similarity index 69% rename from web/settings/assets/device-3ffc8ac2.js rename to web/settings/assets/device-e1e97349.js index 57bb6df1b7..8b89b7d7c5 100644 --- a/web/settings/assets/device-3ffc8ac2.js +++ b/web/settings/assets/device-e1e97349.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as s,l as m,m as u,G as n,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSmartMe",mixins:[a]},f={class:"device-smart-me"};function _(o,e,v,b,g,w){const r=s("openwb-base-heading"),i=s("openwb-base-text-input");return m(),u("div",f,[n(r,null,{default:d(()=>e[2]||(e[2]=[l(" Einstellungen für smart-me ",-1)])),_:1,__:[2]}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":o.device.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const y=p(c,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/smart_me/device.vue"]]);export{y as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as s,l as m,m as u,G as n,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSmartMe",mixins:[a]},f={class:"device-smart-me"};function _(o,e,v,b,g,w){const r=s("openwb-base-heading"),i=s("openwb-base-text-input");return m(),u("div",f,[n(r,null,{default:d(()=>e[2]||(e[2]=[l(" Einstellungen für smart-me ",-1)])),_:1,__:[2]}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":o.device.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const y=p(c,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/smart_me/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-32daf8c4.js b/web/settings/assets/device-e2b6e352.js similarity index 86% rename from web/settings/assets/device-32daf8c4.js rename to web/settings/assets/device-e2b6e352.js index d05d10b8f9..499f00b004 100644 --- a/web/settings/assets/device-32daf8c4.js +++ b/web/settings/assets/device-e2b6e352.js @@ -1 +1 @@ -import{D as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as v,u as t,l as b,m as f,G as i,E as r,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceGoodWe",mixins:[m]},_={class:"device-goodwe"};function w(o,e,W,c,D,V){const l=t("openwb-base-heading"),a=t("openwb-base-alert"),p=t("openwb-base-text-input"),d=t("openwb-base-number-input"),u=t("openwb-base-select-input");return b(),f("div",_,[i(l,null,{default:r(()=>e[5]||(e[5]=[s("Einstellungen für GoodWe",-1)])),_:1,__:[5]}),i(a,{subtype:"info"},{default:r(()=>e[6]||(e[6]=[s(" GoodWe-Wechselrichter verfügen über 3 Dongle: Den WiFi-Dongle, das Wifi-Lan-Kit und das Wifi-Lan-Kit 2.0. Die Einbindung über dieses Modul ist nur mit den Wifi-Lan-Kits möglich. Welches Kit benötigt wird ist vom Wechselrichter abhängig und kann bei GoodWe erfragt werden. ",-1)])),_:1,__:[6]}),i(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(d,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),i(d,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),i(u,{title:"API-Version","not-selected":"Bitte auswählen",options:[{value:"v_1_7",text:"v1.7"},{value:"v_1_1",text:"v1.0/ v1.1"}],"model-value":o.device.configuration.version,required:"","onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.version"))},{help:r(()=>e[7]||(e[7]=[s(" Die Wahl der API-Version beeinflusst die Auslesung der Speicherleistung und der Import/ Export Werte des Zählers. ",-1)])),_:1},8,["model-value"]),i(u,{title:"Firmware","not-selected":"Bitte auswählen",options:[{value:8,text:"ARM < 9.0"},{value:9,text:"ARM ab 9.0"}],"model-value":o.device.configuration.firmware,required:"","onUpdate:modelValue":e[4]||(e[4]=n=>o.updateConfiguration(n,"configuration.firmware"))},{help:r(()=>e[8]||(e[8]=[s(" Die Auswahl der Firmware-Version beeinflusst die Auslesung der Wirkleistung und der Phasenströme des Zählers. ",-1)])),_:1},8,["model-value"])])}const M=v(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/good_we/device.vue"]]);export{M as default}; +import{D as m}from"./HardwareInstallation-0c77715a.js";import{_ as v,u as t,l as b,m as f,G as i,E as r,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceGoodWe",mixins:[m]},_={class:"device-goodwe"};function w(o,e,W,c,D,V){const l=t("openwb-base-heading"),a=t("openwb-base-alert"),p=t("openwb-base-text-input"),d=t("openwb-base-number-input"),u=t("openwb-base-select-input");return b(),f("div",_,[i(l,null,{default:r(()=>e[5]||(e[5]=[s("Einstellungen für GoodWe",-1)])),_:1,__:[5]}),i(a,{subtype:"info"},{default:r(()=>e[6]||(e[6]=[s(" GoodWe-Wechselrichter verfügen über 3 Dongle: Den WiFi-Dongle, das Wifi-Lan-Kit und das Wifi-Lan-Kit 2.0. Die Einbindung über dieses Modul ist nur mit den Wifi-Lan-Kits möglich. Welches Kit benötigt wird ist vom Wechselrichter abhängig und kann bei GoodWe erfragt werden. ",-1)])),_:1,__:[6]}),i(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(d,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),i(d,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),i(u,{title:"API-Version","not-selected":"Bitte auswählen",options:[{value:"v_1_7",text:"v1.7"},{value:"v_1_1",text:"v1.0/ v1.1"}],"model-value":o.device.configuration.version,required:"","onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.version"))},{help:r(()=>e[7]||(e[7]=[s(" Die Wahl der API-Version beeinflusst die Auslesung der Speicherleistung und der Import/ Export Werte des Zählers. ",-1)])),_:1},8,["model-value"]),i(u,{title:"Firmware","not-selected":"Bitte auswählen",options:[{value:8,text:"ARM < 9.0"},{value:9,text:"ARM ab 9.0"}],"model-value":o.device.configuration.firmware,required:"","onUpdate:modelValue":e[4]||(e[4]=n=>o.updateConfiguration(n,"configuration.firmware"))},{help:r(()=>e[8]||(e[8]=[s(" Die Auswahl der Firmware-Version beeinflusst die Auslesung der Wirkleistung und der Phasenströme des Zählers. ",-1)])),_:1},8,["model-value"])])}const M=v(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/good_we/device.vue"]]);export{M as default}; diff --git a/web/settings/assets/device-bb4ff5b1.js b/web/settings/assets/device-e3414ea3.js similarity index 76% rename from web/settings/assets/device-bb4ff5b1.js rename to web/settings/assets/device-e3414ea3.js index 0ac133630a..910ceff5cb 100644 --- a/web/settings/assets/device-bb4ff5b1.js +++ b/web/settings/assets/device-e3414ea3.js @@ -1 +1 @@ -import{D as l}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as i,l as b,m as _,G as t,E as s,B as d}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DevicePowerdog",mixins:[l]},v={class:"device-powerdog"};function g(o,e,c,w,C,x){const a=i("openwb-base-heading"),p=i("openwb-base-alert"),u=i("openwb-base-text-input"),r=i("openwb-base-number-input");return b(),_("div",v,[t(a,null,{default:s(()=>e[3]||(e[3]=[d(" Einstellungen für Powerdog ",-1)])),_:1,__:[3]}),t(p,{subtype:"info"},{default:s(()=>e[4]||(e[4]=[d(" ModbusTCP muss aktiviert sein. ",-1)])),_:1,__:[4]}),t(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(r,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(r,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const U=m(f,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/powerdog/device.vue"]]);export{U as default}; +import{D as l}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as i,l as b,m as _,G as t,E as s,B as d}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DevicePowerdog",mixins:[l]},v={class:"device-powerdog"};function g(o,e,c,w,C,x){const a=i("openwb-base-heading"),p=i("openwb-base-alert"),u=i("openwb-base-text-input"),r=i("openwb-base-number-input");return b(),_("div",v,[t(a,null,{default:s(()=>e[3]||(e[3]=[d(" Einstellungen für Powerdog ",-1)])),_:1,__:[3]}),t(p,{subtype:"info"},{default:s(()=>e[4]||(e[4]=[d(" ModbusTCP muss aktiviert sein. ",-1)])),_:1,__:[4]}),t(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(r,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(r,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const U=m(f,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/powerdog/device.vue"]]);export{U as default}; diff --git a/web/settings/assets/device-ec276f96.js b/web/settings/assets/device-eb24efb6.js similarity index 74% rename from web/settings/assets/device-ec276f96.js rename to web/settings/assets/device-eb24efb6.js index 88c8a41948..d438341eb1 100644 --- a/web/settings/assets/device-ec276f96.js +++ b/web/settings/assets/device-eb24efb6.js @@ -1 +1 @@ -import{D as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as i,l as u,m as l,G as t,E as m,B as f}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSaxpower",mixins:[p]},b={class:"device-saxpower"};function v(o,e,c,g,w,x){const r=i("openwb-base-heading"),s=i("openwb-base-text-input"),a=i("openwb-base-number-input");return u(),l("div",b,[t(r,null,{default:m(()=>e[3]||(e[3]=[f(" Einstellungen für Saxpower ",-1)])),_:1,__:[3]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const I=d(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/saxpower/saxpower/device.vue"]]);export{I as default}; +import{D as p}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as i,l as u,m as l,G as t,E as m,B as f}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSaxpower",mixins:[p]},b={class:"device-saxpower"};function v(o,e,c,g,w,x){const r=i("openwb-base-heading"),s=i("openwb-base-text-input"),a=i("openwb-base-number-input");return u(),l("div",b,[t(r,null,{default:m(()=>e[3]||(e[3]=[f(" Einstellungen für Saxpower ",-1)])),_:1,__:[3]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(a,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(a,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const I=d(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/saxpower/saxpower/device.vue"]]);export{I as default}; diff --git a/web/settings/assets/device-79c9c89c.js b/web/settings/assets/device-ed18848c.js similarity index 78% rename from web/settings/assets/device-79c9c89c.js rename to web/settings/assets/device-ed18848c.js index 76322b9e41..9f9254e0dd 100644 --- a/web/settings/assets/device-79c9c89c.js +++ b/web/settings/assets/device-ed18848c.js @@ -1 +1 @@ -import{D as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as i,l as _,m as c,G as t,E as r,B as a}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceKostalPlenticore",mixins:[u]},f={class:"device-kostal-plenticore"};function v(o,e,g,w,C,E){const l=i("openwb-base-heading"),p=i("openwb-base-alert"),d=i("openwb-base-text-input"),s=i("openwb-base-number-input");return _(),c("div",f,[t(l,null,{default:r(()=>e[3]||(e[3]=[a(" Einstellungen für Kostal Plenticore ",-1)])),_:1,__:[3]}),t(p,{subtype:"info"},{default:r(()=>e[4]||(e[4]=[a(" Wenn am Kostal Plenticore-Wechselrichter ein EM300 oder Kostal Smart Energy Meter (KSEM) angeschlossen ist, muss eine Zähler-und eine Wechselrichter-Komponente angelegt werden. ",-1)])),_:1,__:[4]}),t(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(s,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(s,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const $=m(b,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_plenticore/device.vue"]]);export{$ as default}; +import{D as u}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as i,l as _,m as c,G as t,E as r,B as a}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceKostalPlenticore",mixins:[u]},f={class:"device-kostal-plenticore"};function v(o,e,g,w,C,E){const l=i("openwb-base-heading"),p=i("openwb-base-alert"),d=i("openwb-base-text-input"),s=i("openwb-base-number-input");return _(),c("div",f,[t(l,null,{default:r(()=>e[3]||(e[3]=[a(" Einstellungen für Kostal Plenticore ",-1)])),_:1,__:[3]}),t(p,{subtype:"info"},{default:r(()=>e[4]||(e[4]=[a(" Wenn am Kostal Plenticore-Wechselrichter ein EM300 oder Kostal Smart Energy Meter (KSEM) angeschlossen ist, muss eine Zähler-und eine Wechselrichter-Komponente angelegt werden. ",-1)])),_:1,__:[4]}),t(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(s,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(s,{title:"Modbus ID",required:"","model-value":o.device.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const $=m(b,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_plenticore/device.vue"]]);export{$ as default}; diff --git a/web/settings/assets/device-e210f928.js b/web/settings/assets/device-ee7b1351.js similarity index 73% rename from web/settings/assets/device-e210f928.js rename to web/settings/assets/device-ee7b1351.js index efbbd84936..d576b21a9d 100644 --- a/web/settings/assets/device-e210f928.js +++ b/web/settings/assets/device-ee7b1351.js @@ -1 +1 @@ -import{D as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as l,u as i,l as p,m as d,G as t,E as m,B as v}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSolarView",mixins:[u]},_={class:"device-solar-view"};function c(o,e,b,g,w,V){const a=i("openwb-base-heading"),s=i("openwb-base-text-input"),r=i("openwb-base-number-input");return p(),d("div",_,[t(a,null,{default:m(()=>e[3]||(e[3]=[v(" Einstellungen für SolarView ",-1)])),_:1,__:[3]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(r,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(r,{title:"Timeout",required:"","model-value":o.device.configuration.timeout,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.timeout"))},null,8,["model-value"])])}const N=l(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/solar_view/device.vue"]]);export{N as default}; +import{D as u}from"./HardwareInstallation-0c77715a.js";import{_ as l,u as i,l as p,m as d,G as t,E as m,B as v}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSolarView",mixins:[u]},_={class:"device-solar-view"};function c(o,e,b,g,w,V){const a=i("openwb-base-heading"),s=i("openwb-base-text-input"),r=i("openwb-base-number-input");return p(),d("div",_,[t(a,null,{default:m(()=>e[3]||(e[3]=[v(" Einstellungen für SolarView ",-1)])),_:1,__:[3]}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.device.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),t(r,{title:"Port",required:"",min:1,max:65535,"model-value":o.device.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),t(r,{title:"Timeout",required:"","model-value":o.device.configuration.timeout,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.timeout"))},null,8,["model-value"])])}const N=l(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/solar_view/device.vue"]]);export{N as default}; diff --git a/web/settings/assets/device-16e005d5.js b/web/settings/assets/device-f3ea5347.js similarity index 69% rename from web/settings/assets/device-16e005d5.js rename to web/settings/assets/device-f3ea5347.js index 8256b6404f..54489b6dc9 100644 --- a/web/settings/assets/device-16e005d5.js +++ b/web/settings/assets/device-f3ea5347.js @@ -1 +1 @@ -import{D as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as s,l as d,m as u,G as n,E as l,B as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceDiscovergy",mixins:[a]},v={class:"device-discovergy"};function f(o,e,g,_,b,w){const r=s("openwb-base-heading"),i=s("openwb-base-text-input");return d(),u("div",v,[n(r,null,{default:l(()=>e[2]||(e[2]=[m(" Einstellungen für Discovergy ",-1)])),_:1,__:[2]}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":o.device.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const q=p(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/discovergy/device.vue"]]);export{q as default}; +import{D as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as s,l as d,m as u,G as n,E as l,B as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceDiscovergy",mixins:[a]},v={class:"device-discovergy"};function f(o,e,g,_,b,w){const r=s("openwb-base-heading"),i=s("openwb-base-text-input");return d(),u("div",v,[n(r,null,{default:l(()=>e[2]||(e[2]=[m(" Einstellungen für Discovergy ",-1)])),_:1,__:[2]}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":o.device.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":o.device.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const q=p(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/discovergy/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/displayTheme-2283c696.js b/web/settings/assets/displayTheme-9b47aca9.js similarity index 78% rename from web/settings/assets/displayTheme-2283c696.js rename to web/settings/assets/displayTheme-9b47aca9.js index c1bf359e33..9213cc6331 100644 --- a/web/settings/assets/displayTheme-2283c696.js +++ b/web/settings/assets/displayTheme-9b47aca9.js @@ -1 +1 @@ -import{D as d}from"./OptionalComponents-7d7b65c9.js";import{_ as m,u as n,l as a,m as c,G as p,E as s,B as i,x as _,z as b}from"./vendor-25d394b4.js";import"./index-93388667.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const g={name:"DisplayThemeColors",mixins:[d]},f={class:"display-theme-colors"};function h(o,e,y,w,k,v){const r=n("openwb-base-heading"),l=n("openwb-base-button-group-input"),u=n("openwb-base-text-input");return a(),c("div",f,[p(r,null,{default:s(()=>e[2]||(e[2]=[i("Bediensperre",-1)])),_:1,__:[2]}),p(l,{title:"Bedienung sperren","model-value":o.displayTheme.configuration.lock_changes,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.lock_changes"))},{help:s(()=>e[3]||(e[3]=[i(' Die Bedienung wird automatisch nach der eingestellten Ausschaltzeit (siehe "Display Standby") wieder gesperrt. ',-1)])),_:1},8,["model-value"]),o.displayTheme.configuration.lock_changes?(a(),_(u,{key:0,title:"PIN zur Freigabe",subtype:"password",required:"",pattern:"[0-9]{4,10}","model-value":o.displayTheme.configuration.lock_changes_code,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.lock_changes_code"))},{help:s(()=>e[4]||(e[4]=[i(" Der PIN muss aus 4 bis 10 Zahlen bestehen. ",-1)])),_:1},8,["model-value"])):b("",!0)])}const E=m(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/colors/displayTheme.vue"]]);export{E as default}; +import{D as d}from"./OptionalComponents-1d822d98.js";import{_ as m,u as n,l as a,m as c,G as p,E as s,B as i,x as _,z as b}from"./vendor-57e3a63c.js";import"./index-eccf5556.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const g={name:"DisplayThemeColors",mixins:[d]},f={class:"display-theme-colors"};function h(o,e,y,w,k,v){const r=n("openwb-base-heading"),l=n("openwb-base-button-group-input"),u=n("openwb-base-text-input");return a(),c("div",f,[p(r,null,{default:s(()=>e[2]||(e[2]=[i("Bediensperre",-1)])),_:1,__:[2]}),p(l,{title:"Bedienung sperren","model-value":o.displayTheme.configuration.lock_changes,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.lock_changes"))},{help:s(()=>e[3]||(e[3]=[i(' Die Bedienung wird automatisch nach der eingestellten Ausschaltzeit (siehe "Display Standby") wieder gesperrt. ',-1)])),_:1},8,["model-value"]),o.displayTheme.configuration.lock_changes?(a(),_(u,{key:0,title:"PIN zur Freigabe",subtype:"password",required:"",pattern:"[0-9]{4,10}","model-value":o.displayTheme.configuration.lock_changes_code,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.lock_changes_code"))},{help:s(()=>e[4]||(e[4]=[i(" Der PIN muss aus 4 bis 10 Zahlen bestehen. ",-1)])),_:1},8,["model-value"])):b("",!0)])}const E=m(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/colors/displayTheme.vue"]]);export{E as default}; diff --git a/web/settings/assets/displayTheme-14df5dae.js b/web/settings/assets/displayTheme-c1cc8f13.js similarity index 94% rename from web/settings/assets/displayTheme-14df5dae.js rename to web/settings/assets/displayTheme-c1cc8f13.js index 5581f0b2d9..7a65b4072f 100644 --- a/web/settings/assets/displayTheme-14df5dae.js +++ b/web/settings/assets/displayTheme-c1cc8f13.js @@ -1 +1 @@ -import{D as v}from"./OptionalComponents-7d7b65c9.js";import{_,u as s,l as r,m as c,G as a,E as o,B as u,x as b,z as p}from"./vendor-25d394b4.js";import"./index-93388667.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const h=[{value:"dashboard",text:"Übersicht"},{value:"energy-flow",text:"Energiefluss"},{value:"charge-points",text:"Ladepunkte"},{value:"status",text:"Status"}],V={name:"DisplayThemeCards",mixins:[v],computed:{enabledViews(){return h.filter(t=>this.displayTheme.configuration[`enable_${t.value.replace("-","_")}_view`])}},methods:{toggleView(t){this.displayTheme.configuration.default_view===t&&this.updateConfiguration(void 0,"configuration.default_view"),this.updateConfiguration(!this.displayTheme.configuration[`enable_${t}_view`],`configuration.enable_${t}_view`)}}},w={class:"display-theme-cards"};function y(t,e,A,T,z,i){const d=s("openwb-base-heading"),l=s("openwb-base-button-group-input"),g=s("openwb-base-text-input"),m=s("openwb-base-select-input"),f=s("openwb-base-range-input");return r(),c("div",w,[a(d,null,{default:o(()=>e[15]||(e[15]=[u("Bediensperre",-1)])),_:1,__:[15]}),a(l,{title:"Bedienung sperren","model-value":t.displayTheme.configuration.lock_changes,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateConfiguration(n,"configuration.lock_changes"))},{help:o(()=>e[16]||(e[16]=[u(' Die Bedienung wird automatisch nach der eingestellten Ausschaltzeit (siehe "Display Standby") wieder gesperrt. ',-1)])),_:1},8,["model-value"]),t.displayTheme.configuration.lock_changes?(r(),b(g,{key:0,title:"PIN zur Freigabe",subtype:"password",required:"",pattern:"[0-9]{4,10}","model-value":t.displayTheme.configuration.lock_changes_code,"onUpdate:modelValue":e[1]||(e[1]=n=>t.updateConfiguration(n,"configuration.lock_changes_code"))},{help:o(()=>e[17]||(e[17]=[u(" Der PIN muss aus 4 bis 10 Zahlen bestehen. ",-1)])),_:1},8,["model-value"])):p("",!0),a(d,null,{default:o(()=>e[18]||(e[18]=[u("Ansichten",-1)])),_:1,__:[18]}),a(l,{title:"Übersicht anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_view,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[2]||(e[2]=n=>i.toggleView("dashboard"))},null,8,["model-value"]),a(l,{title:"Energiefluss anzeigen","model-value":t.displayTheme.configuration.enable_energy_flow_view,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[3]||(e[3]=n=>i.toggleView("energy-flow"))},null,8,["model-value"]),a(l,{title:"Ladepunkte anzeigen","model-value":t.displayTheme.configuration.enable_charge_points_view,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[4]||(e[4]=n=>i.toggleView("charge-points"))},null,8,["model-value"]),t.displayTheme.configuration.enable_charge_points_view==!0?(r(),b(l,{key:1,title:"Einfache Ansicht der Ladepunkte","model-value":t.displayTheme.configuration.simple_charge_point_view,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[5]||(e[5]=n=>t.updateConfiguration(n,"configuration.simple_charge_point_view"))},null,8,["model-value"])):p("",!0),a(l,{title:"Status anzeigen","model-value":t.displayTheme.configuration.enable_status_view,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[6]||(e[6]=n=>i.toggleView("status"))},null,8,["model-value"]),a(m,{title:"Standardansicht","not-selected":"Bitte auswählen",required:"","model-value":t.displayTheme.configuration.default_view,options:i.enabledViews,"onUpdate:modelValue":e[7]||(e[7]=n=>t.updateConfiguration(n,"configuration.default_view"))},{help:o(()=>e[19]||(e[19]=[u(" Die Standardansicht wird beim Start sowie nach einiger Zeit ohne Bedienung angezeigt. ",-1)])),_:1},8,["model-value","options"]),a(f,{title:"Wechsel zur Standardansicht",min:0,max:6,step:1,"model-value":t.displayTheme.configuration.default_view_timeout,labels:[{value:0,label:"Aus"},{value:60,label:"1 Min"},{value:300,label:"5 Min"},{value:600,label:"10 Min"},{value:900,label:"15 Min"},{value:1800,label:"30 Min"},{value:3600,label:"60 Min"}],"onUpdate:modelValue":e[8]||(e[8]=n=>t.updateConfiguration(n,"configuration.default_view_timeout"))},{help:o(()=>e[20]||(e[20]=[u(" Nach dieser Zeit ohne Bedienung wird die Standardansicht angezeigt. ",-1)])),_:1},8,["model-value"]),a(d,null,{help:o(()=>e[21]||(e[21]=[u(' Hier kann festgelegt werden, welche Daten in den Ansichten "Übersicht" und "Energiefluss" angezeigt werden. ',-1)])),default:o(()=>[e[22]||(e[22]=u(" Datenauswahl ",-1))]),_:1,__:[22]}),a(l,{title:"EVU anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_card_grid,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[9]||(e[9]=n=>t.updateConfiguration(n,"configuration.enable_dashboard_card_grid"))},null,8,["model-value"]),a(l,{title:"Hausverbrauch anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_card_home_consumption,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[10]||(e[10]=n=>t.updateConfiguration(n,"configuration.enable_dashboard_card_home_consumption"))},null,8,["model-value"]),a(l,{title:"PV anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_card_inverter_sum,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[11]||(e[11]=n=>t.updateConfiguration(n,"configuration.enable_dashboard_card_inverter_sum"))},null,8,["model-value"]),a(l,{title:"Batteriespeicher anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_card_battery_sum,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[12]||(e[12]=n=>t.updateConfiguration(n,"configuration.enable_dashboard_card_battery_sum"))},null,8,["model-value"]),a(l,{title:"Ladepunkte anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_card_charge_point_sum,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[13]||(e[13]=n=>t.updateConfiguration(n,"configuration.enable_dashboard_card_charge_point_sum"))},null,8,["model-value"]),a(l,{title:"Fahrzeuge anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_card_vehicles,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[14]||(e[14]=n=>t.updateConfiguration(n,"configuration.enable_dashboard_card_vehicles"))},null,8,["model-value"])])}const $=_(V,[["render",y],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/cards/displayTheme.vue"]]);export{$ as default}; +import{D as v}from"./OptionalComponents-1d822d98.js";import{_,u as s,l as r,m as c,G as a,E as o,B as u,x as b,z as p}from"./vendor-57e3a63c.js";import"./index-eccf5556.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const h=[{value:"dashboard",text:"Übersicht"},{value:"energy-flow",text:"Energiefluss"},{value:"charge-points",text:"Ladepunkte"},{value:"status",text:"Status"}],V={name:"DisplayThemeCards",mixins:[v],computed:{enabledViews(){return h.filter(t=>this.displayTheme.configuration[`enable_${t.value.replace("-","_")}_view`])}},methods:{toggleView(t){this.displayTheme.configuration.default_view===t&&this.updateConfiguration(void 0,"configuration.default_view"),this.updateConfiguration(!this.displayTheme.configuration[`enable_${t}_view`],`configuration.enable_${t}_view`)}}},w={class:"display-theme-cards"};function y(t,e,A,T,z,i){const d=s("openwb-base-heading"),l=s("openwb-base-button-group-input"),g=s("openwb-base-text-input"),m=s("openwb-base-select-input"),f=s("openwb-base-range-input");return r(),c("div",w,[a(d,null,{default:o(()=>e[15]||(e[15]=[u("Bediensperre",-1)])),_:1,__:[15]}),a(l,{title:"Bedienung sperren","model-value":t.displayTheme.configuration.lock_changes,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateConfiguration(n,"configuration.lock_changes"))},{help:o(()=>e[16]||(e[16]=[u(' Die Bedienung wird automatisch nach der eingestellten Ausschaltzeit (siehe "Display Standby") wieder gesperrt. ',-1)])),_:1},8,["model-value"]),t.displayTheme.configuration.lock_changes?(r(),b(g,{key:0,title:"PIN zur Freigabe",subtype:"password",required:"",pattern:"[0-9]{4,10}","model-value":t.displayTheme.configuration.lock_changes_code,"onUpdate:modelValue":e[1]||(e[1]=n=>t.updateConfiguration(n,"configuration.lock_changes_code"))},{help:o(()=>e[17]||(e[17]=[u(" Der PIN muss aus 4 bis 10 Zahlen bestehen. ",-1)])),_:1},8,["model-value"])):p("",!0),a(d,null,{default:o(()=>e[18]||(e[18]=[u("Ansichten",-1)])),_:1,__:[18]}),a(l,{title:"Übersicht anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_view,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[2]||(e[2]=n=>i.toggleView("dashboard"))},null,8,["model-value"]),a(l,{title:"Energiefluss anzeigen","model-value":t.displayTheme.configuration.enable_energy_flow_view,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[3]||(e[3]=n=>i.toggleView("energy-flow"))},null,8,["model-value"]),a(l,{title:"Ladepunkte anzeigen","model-value":t.displayTheme.configuration.enable_charge_points_view,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[4]||(e[4]=n=>i.toggleView("charge-points"))},null,8,["model-value"]),t.displayTheme.configuration.enable_charge_points_view==!0?(r(),b(l,{key:1,title:"Einfache Ansicht der Ladepunkte","model-value":t.displayTheme.configuration.simple_charge_point_view,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[5]||(e[5]=n=>t.updateConfiguration(n,"configuration.simple_charge_point_view"))},null,8,["model-value"])):p("",!0),a(l,{title:"Status anzeigen","model-value":t.displayTheme.configuration.enable_status_view,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[6]||(e[6]=n=>i.toggleView("status"))},null,8,["model-value"]),a(m,{title:"Standardansicht","not-selected":"Bitte auswählen",required:"","model-value":t.displayTheme.configuration.default_view,options:i.enabledViews,"onUpdate:modelValue":e[7]||(e[7]=n=>t.updateConfiguration(n,"configuration.default_view"))},{help:o(()=>e[19]||(e[19]=[u(" Die Standardansicht wird beim Start sowie nach einiger Zeit ohne Bedienung angezeigt. ",-1)])),_:1},8,["model-value","options"]),a(f,{title:"Wechsel zur Standardansicht",min:0,max:6,step:1,"model-value":t.displayTheme.configuration.default_view_timeout,labels:[{value:0,label:"Aus"},{value:60,label:"1 Min"},{value:300,label:"5 Min"},{value:600,label:"10 Min"},{value:900,label:"15 Min"},{value:1800,label:"30 Min"},{value:3600,label:"60 Min"}],"onUpdate:modelValue":e[8]||(e[8]=n=>t.updateConfiguration(n,"configuration.default_view_timeout"))},{help:o(()=>e[20]||(e[20]=[u(" Nach dieser Zeit ohne Bedienung wird die Standardansicht angezeigt. ",-1)])),_:1},8,["model-value"]),a(d,null,{help:o(()=>e[21]||(e[21]=[u(' Hier kann festgelegt werden, welche Daten in den Ansichten "Übersicht" und "Energiefluss" angezeigt werden. ',-1)])),default:o(()=>[e[22]||(e[22]=u(" Datenauswahl ",-1))]),_:1,__:[22]}),a(l,{title:"EVU anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_card_grid,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[9]||(e[9]=n=>t.updateConfiguration(n,"configuration.enable_dashboard_card_grid"))},null,8,["model-value"]),a(l,{title:"Hausverbrauch anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_card_home_consumption,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[10]||(e[10]=n=>t.updateConfiguration(n,"configuration.enable_dashboard_card_home_consumption"))},null,8,["model-value"]),a(l,{title:"PV anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_card_inverter_sum,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[11]||(e[11]=n=>t.updateConfiguration(n,"configuration.enable_dashboard_card_inverter_sum"))},null,8,["model-value"]),a(l,{title:"Batteriespeicher anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_card_battery_sum,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[12]||(e[12]=n=>t.updateConfiguration(n,"configuration.enable_dashboard_card_battery_sum"))},null,8,["model-value"]),a(l,{title:"Ladepunkte anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_card_charge_point_sum,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[13]||(e[13]=n=>t.updateConfiguration(n,"configuration.enable_dashboard_card_charge_point_sum"))},null,8,["model-value"]),a(l,{title:"Fahrzeuge anzeigen","model-value":t.displayTheme.configuration.enable_dashboard_card_vehicles,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"onUpdate:modelValue":e[14]||(e[14]=n=>t.updateConfiguration(n,"configuration.enable_dashboard_card_vehicles"))},null,8,["model-value"])])}const $=_(V,[["render",y],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/cards/displayTheme.vue"]]);export{$ as default}; diff --git a/web/settings/assets/electricity_tariff-858ebc25.js b/web/settings/assets/electricity_tariff-192d8c6f.js similarity index 68% rename from web/settings/assets/electricity_tariff-858ebc25.js rename to web/settings/assets/electricity_tariff-192d8c6f.js index e7ed7f6907..00eecff001 100644 --- a/web/settings/assets/electricity_tariff-858ebc25.js +++ b/web/settings/assets/electricity_tariff-192d8c6f.js @@ -1 +1 @@ -import{E as o}from"./GeneralChargeConfig-866a1615.js";import{_ as a,u as n,l as s,m as c,G as l,E as p,B as f}from"./vendor-25d394b4.js";import"./index-93388667.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"ElectricityTariffAwattar",mixins:[o]},u={class:"electricity-tariff-awattar"};function m(t,e,_,w,b,v){const i=n("openwb-base-select-input");return s(),c("div",u,[l(i,{title:"Land","not-selected":"Bitte auswählen",options:[{value:"de",text:"Deutschland"},{value:"at",text:"Österreich"}],"model-value":t.electricityTariff.configuration.country,"onUpdate:modelValue":e[0]||(e[0]=r=>t.updateConfiguration(r,"configuration.country"))},{help:p(()=>e[1]||(e[1]=[f(" Es werden die abgefragten Börsenpreise verwendet, die aWATTar bereitstellt. aWATTar-Gebühren oder Steuern werden nicht berücksichtigt. ",-1)])),_:1},8,["model-value"])])}const k=a(d,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/awattar/electricity_tariff.vue"]]);export{k as default}; +import{E as o}from"./GeneralChargeConfig-28e21ec2.js";import{_ as a,u as n,l as s,m as c,G as l,E as p,B as f}from"./vendor-57e3a63c.js";import"./index-eccf5556.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"ElectricityTariffAwattar",mixins:[o]},u={class:"electricity-tariff-awattar"};function m(t,e,_,w,b,v){const i=n("openwb-base-select-input");return s(),c("div",u,[l(i,{title:"Land","not-selected":"Bitte auswählen",options:[{value:"de",text:"Deutschland"},{value:"at",text:"Österreich"}],"model-value":t.electricityTariff.configuration.country,"onUpdate:modelValue":e[0]||(e[0]=r=>t.updateConfiguration(r,"configuration.country"))},{help:p(()=>e[1]||(e[1]=[f(" Es werden die abgefragten Börsenpreise verwendet, die aWATTar bereitstellt. aWATTar-Gebühren oder Steuern werden nicht berücksichtigt. ",-1)])),_:1},8,["model-value"])])}const k=a(d,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/awattar/electricity_tariff.vue"]]);export{k as default}; diff --git a/web/settings/assets/electricity_tariff-02377493.js b/web/settings/assets/electricity_tariff-30cdacc8.js similarity index 90% rename from web/settings/assets/electricity_tariff-02377493.js rename to web/settings/assets/electricity_tariff-30cdacc8.js index 61a1b3419e..04c4039720 100644 --- a/web/settings/assets/electricity_tariff-02377493.js +++ b/web/settings/assets/electricity_tariff-30cdacc8.js @@ -1 +1 @@ -import{E as m}from"./GeneralChargeConfig-866a1615.js";import{_ as g,u as s,l as h,m as _,G as n,E as y,B as l,A as T}from"./vendor-25d394b4.js";import"./index-93388667.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const k={name:"ElectricityTariffTibber",mixins:[m],data(){return{tibberAPI:"https://api.tibber.com/v1-beta/gql",tibberHomeList:[]}},methods:{async getTibberHomeList(){if(this.electricityTariff.configuration.token===null)return;const i='{ "query": "{viewer {homes{id address{address1 address2 address3 postalCode city country}}}}" }';try{const e=await this.axios.post(this.tibberAPI,i,{headers:{Authorization:"Bearer "+this.electricityTariff.configuration.token,"Content-Type":"application/json"}});this.tibberHomeList=e.data.data.viewer.homes.map(t=>{let r=t.address.address1;return t.address.address2&&(r=r+", "+t.address.address2),t.address.address3&&(r=r+", "+t.address.address3),r=r+`, ${t.address.postalCode} ${t.address.city}, ${t.address.country}`,{value:t.id,text:r}}),this.electricityTariff.configuration.home_id||this.updateConfiguration(this.tibberHomeList[0].value,"configuration.home_id"),this.$root.postClientMessage("Home IDs erfolgreich abgerufen.","success")}catch(e){console.error(e),this.$root.postClientMessage("Beim Abfragen der Tibber API ist ein Fehler aufgetreten!
"+e+"
","danger")}}}},v={class:"electricity-tariff-tibber"};function w(i,e,t,r,u,c){var d;const b=s("openwb-base-alert"),a=s("openwb-base-text-input"),p=s("openwb-base-button-input"),f=s("openwb-base-select-input");return h(),_("div",v,[n(b,{subtype:"info"},{default:y(()=>e[3]||(e[3]=[l(" Ihren persönlichen Tibber-Token erhalten Sie über die ",-1),T("a",{href:"https://developer.tibber.com/explorer",target:"_blank",rel:"noopener noreferrer"}," Tibber-Developer-Seite ",-1),l(" . Behandeln Sie Ihren Token wie ein Passwort, da sich darüber auch persönliche Daten aus Ihrem Tibber-Account abfragen lassen! Die Home-ID können Sie (wenn bekannt) in das Eingabefeld selbst eintragen oder nach Eingabe Ihres Token durch Klick auf den Button von der openWB ermitteln lassen. Unerlaubte Zeichen werden aus dem Token und der Home-ID automatisch gelöscht. ",-1)])),_:1,__:[3]}),n(a,{ref:"tokenInput",title:"Token",required:"","model-value":i.electricityTariff.configuration.token,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"configuration.token"))},null,8,["model-value"]),n(p,{title:"Home-IDs abrufen","button-text":"Jetzt abrufen",subtype:"success",disabled:!((d=i.electricityTariff.configuration.token)!=null&&d.length),onButtonClicked:c.getTibberHomeList},null,8,["disabled","onButtonClicked"]),n(f,{title:"Verfügbare Home-IDs",options:u.tibberHomeList,"model-value":i.electricityTariff.configuration.home_id,"onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o,"configuration.home_id"))},null,8,["options","model-value"]),n(a,{title:"Home-ID",required:"","model-value":i.electricityTariff.configuration.home_id,"onUpdate:modelValue":e[2]||(e[2]=o=>i.updateConfiguration(o,"configuration.home_id"))},null,8,["model-value"])])}const $=g(k,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/tibber/electricity_tariff.vue"]]);export{$ as default}; +import{E as m}from"./GeneralChargeConfig-28e21ec2.js";import{_ as g,u as s,l as h,m as _,G as n,E as y,B as l,A as T}from"./vendor-57e3a63c.js";import"./index-eccf5556.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const k={name:"ElectricityTariffTibber",mixins:[m],data(){return{tibberAPI:"https://api.tibber.com/v1-beta/gql",tibberHomeList:[]}},methods:{async getTibberHomeList(){if(this.electricityTariff.configuration.token===null)return;const i='{ "query": "{viewer {homes{id address{address1 address2 address3 postalCode city country}}}}" }';try{const e=await this.axios.post(this.tibberAPI,i,{headers:{Authorization:"Bearer "+this.electricityTariff.configuration.token,"Content-Type":"application/json"}});this.tibberHomeList=e.data.data.viewer.homes.map(t=>{let r=t.address.address1;return t.address.address2&&(r=r+", "+t.address.address2),t.address.address3&&(r=r+", "+t.address.address3),r=r+`, ${t.address.postalCode} ${t.address.city}, ${t.address.country}`,{value:t.id,text:r}}),this.electricityTariff.configuration.home_id||this.updateConfiguration(this.tibberHomeList[0].value,"configuration.home_id"),this.$root.postClientMessage("Home IDs erfolgreich abgerufen.","success")}catch(e){console.error(e),this.$root.postClientMessage("Beim Abfragen der Tibber API ist ein Fehler aufgetreten!
"+e+"
","danger")}}}},v={class:"electricity-tariff-tibber"};function w(i,e,t,r,u,c){var d;const b=s("openwb-base-alert"),a=s("openwb-base-text-input"),p=s("openwb-base-button-input"),f=s("openwb-base-select-input");return h(),_("div",v,[n(b,{subtype:"info"},{default:y(()=>e[3]||(e[3]=[l(" Ihren persönlichen Tibber-Token erhalten Sie über die ",-1),T("a",{href:"https://developer.tibber.com/explorer",target:"_blank",rel:"noopener noreferrer"}," Tibber-Developer-Seite ",-1),l(" . Behandeln Sie Ihren Token wie ein Passwort, da sich darüber auch persönliche Daten aus Ihrem Tibber-Account abfragen lassen! Die Home-ID können Sie (wenn bekannt) in das Eingabefeld selbst eintragen oder nach Eingabe Ihres Token durch Klick auf den Button von der openWB ermitteln lassen. Unerlaubte Zeichen werden aus dem Token und der Home-ID automatisch gelöscht. ",-1)])),_:1,__:[3]}),n(a,{ref:"tokenInput",title:"Token",required:"","model-value":i.electricityTariff.configuration.token,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"configuration.token"))},null,8,["model-value"]),n(p,{title:"Home-IDs abrufen","button-text":"Jetzt abrufen",subtype:"success",disabled:!((d=i.electricityTariff.configuration.token)!=null&&d.length),onButtonClicked:c.getTibberHomeList},null,8,["disabled","onButtonClicked"]),n(f,{title:"Verfügbare Home-IDs",options:u.tibberHomeList,"model-value":i.electricityTariff.configuration.home_id,"onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o,"configuration.home_id"))},null,8,["options","model-value"]),n(a,{title:"Home-ID",required:"","model-value":i.electricityTariff.configuration.home_id,"onUpdate:modelValue":e[2]||(e[2]=o=>i.updateConfiguration(o,"configuration.home_id"))},null,8,["model-value"])])}const $=g(k,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/tibber/electricity_tariff.vue"]]);export{$ as default}; diff --git a/web/settings/assets/electricity_tariff-9eb316f1.js b/web/settings/assets/electricity_tariff-46183402.js similarity index 74% rename from web/settings/assets/electricity_tariff-9eb316f1.js rename to web/settings/assets/electricity_tariff-46183402.js index 311cb723c0..5d44bf7792 100644 --- a/web/settings/assets/electricity_tariff-9eb316f1.js +++ b/web/settings/assets/electricity_tariff-46183402.js @@ -1 +1 @@ -import{E as l}from"./GeneralChargeConfig-866a1615.js";import{_ as s,u as r,l as c,m as p,G as o,E as u,B as f}from"./vendor-25d394b4.js";import"./index-93388667.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"ElectricityTariffVoltego",mixins:[l]},m={class:"electricity-tariff-voltego"};function _(t,e,g,b,v,y){const a=r("openwb-base-alert"),n=r("openwb-base-text-input");return c(),p("div",m,[o(a,{subtype:"info"},{default:u(()=>e[2]||(e[2]=[f(" Ihre persönlichen Zugangsdaten (Client-ID und Client-Secret) erhalten Sie direkt von Voltego. Behandeln Sie diese Daten wie ein Passwort, da sich darüber auch persönliche Daten aus Ihrem Voltego-Account abfragen lassen! ",-1)])),_:1,__:[2]}),o(n,{title:"Client-ID",subtype:"user",required:"","model-value":t.electricityTariff.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=i=>t.updateConfiguration(i,"configuration.client_id"))},null,8,["model-value"]),o(n,{title:"Client-Secret",subtype:"password",required:"","model-value":t.electricityTariff.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=i=>t.updateConfiguration(i,"configuration.client_secret"))},null,8,["model-value"])])}const I=s(d,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/voltego/electricity_tariff.vue"]]);export{I as default}; +import{E as l}from"./GeneralChargeConfig-28e21ec2.js";import{_ as s,u as r,l as c,m as p,G as o,E as u,B as f}from"./vendor-57e3a63c.js";import"./index-eccf5556.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"ElectricityTariffVoltego",mixins:[l]},m={class:"electricity-tariff-voltego"};function _(t,e,g,b,v,y){const a=r("openwb-base-alert"),n=r("openwb-base-text-input");return c(),p("div",m,[o(a,{subtype:"info"},{default:u(()=>e[2]||(e[2]=[f(" Ihre persönlichen Zugangsdaten (Client-ID und Client-Secret) erhalten Sie direkt von Voltego. Behandeln Sie diese Daten wie ein Passwort, da sich darüber auch persönliche Daten aus Ihrem Voltego-Account abfragen lassen! ",-1)])),_:1,__:[2]}),o(n,{title:"Client-ID",subtype:"user",required:"","model-value":t.electricityTariff.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=i=>t.updateConfiguration(i,"configuration.client_id"))},null,8,["model-value"]),o(n,{title:"Client-Secret",subtype:"password",required:"","model-value":t.electricityTariff.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=i=>t.updateConfiguration(i,"configuration.client_secret"))},null,8,["model-value"])])}const I=s(d,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/voltego/electricity_tariff.vue"]]);export{I as default}; diff --git a/web/settings/assets/electricity_tariff-09587c2e.js b/web/settings/assets/electricity_tariff-54f66a4e.js similarity index 95% rename from web/settings/assets/electricity_tariff-09587c2e.js rename to web/settings/assets/electricity_tariff-54f66a4e.js index 0a9efb6ef2..fd739e967f 100644 --- a/web/settings/assets/electricity_tariff-09587c2e.js +++ b/web/settings/assets/electricity_tariff-54f66a4e.js @@ -1 +1 @@ -import{E as I}from"./GeneralChargeConfig-866a1615.js";import{_ as S,l as o,m as c,A as u,p as k,u as s,x as w,D as N,E as a,B as f,F as V,G as r,y as C,z as B,N as x,M as $,I as q,S as z}from"./vendor-25d394b4.js";import{l as T,d as F,aa as O,F as U}from"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const H={name:"TimeRow"},W={class:"w-100"},A={class:"form-row align-items-center"},D={class:"col-10"},Q={class:"form-row"},Z={class:"col-6"},M={class:"col-6"},P={class:"col-2 text-right"};function K(t,e,p,b,g,n){return o(),c("div",W,[u("div",A,[u("div",D,[u("div",Q,[u("div",Z,[k(t.$slots,"start")]),u("div",M,[k(t.$slots,"end")])])]),u("div",P,[k(t.$slots,"action")])])])}const R=S(H,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/fixed_hours/TimeRow.vue"]]);T.add(F);T.add(O);const L={name:"TimeTable",components:{FontAwesomeIcon:U,TimeRow:R},inheritAttrs:!1,props:{title:{type:String,required:!0,default:"#TITLE#"},modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],data(){return{endOptions:this.modelValue.map(()=>this.generateTimeOptions("01:00","24:00"))}},computed:{value:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},methods:{generateTimeOptions(t,e){const p=[],b=parseInt(t.split(":")[0],10),g=parseInt(e.split(":")[0],10);for(let n=b;n<=g;n++){const d=`${n.toString().padStart(2,"0")}:00`;p.push({value:d,text:d})}return p},addTime(){this.value.push(["",""])},removeTime(t){this.value.splice(t,1)},updateEndOptions(t){const e=this.value[t][0];if(e){const b=(parseInt(e.split(":")[0],10)+1).toString().padStart(2,"0")+":00";this.endOptions[t]=this.generateTimeOptions(b,"24:00")}else this.endOptions[t]=this.generateTimeOptions("01:00","24:00")}}},j={key:0,class:"w-100 alert alert-danger"},G=["onUpdate:modelValue","onChange"],J=["value"],X=["onUpdate:modelValue"],Y=["value"];function ee(t,e,p,b,g,n){const m=s("font-awesome-icon"),d=s("openwb-base-avatar"),h=s("time-row"),y=s("openwb-base-setting-element");return o(),w(y,null,N({title:a(()=>[k(t.$slots,"title",{},()=>[f(V(p.title),1)])]),default:a(()=>[r(h,null,{start:a(()=>e[0]||(e[0]=[f(" Beginn ",-1)])),end:a(()=>e[1]||(e[1]=[f(" Ende ",-1)])),action:a(()=>[r(d,{class:"bg-success clickable",title:"Zeitbereich hinzufügen",onClick:C(n.addTime,["stop"])},{default:a(()=>[r(m,{icon:["fas","plus"]})]),_:1},8,["onClick"])]),_:1}),n.value.length===0?(o(),c("div",j," Keine Zeitbereiche definiert! ")):B("",!0),(o(!0),c(x,null,$(n.value,(_,v)=>(o(),w(h,{key:v},{start:a(()=>[q(u("select",{"onUpdate:modelValue":i=>_[0]=i,class:"form-control",required:"",onChange:i=>n.updateEndOptions(v)},[e[2]||(e[2]=u("option",{value:"",disabled:""}," -- Bitte auswählen -- ",-1)),(o(!0),c(x,null,$(n.generateTimeOptions("00:00","23:00"),i=>(o(),c("option",{key:i.value,value:i.value},V(i.text),9,J))),128))],40,G),[[z,_[0]]])]),end:a(()=>[q(u("select",{"onUpdate:modelValue":i=>_[1]=i,class:"form-control",required:""},[e[3]||(e[3]=u("option",{value:"",disabled:""}," -- Bitte auswählen -- ",-1)),(o(!0),c(x,null,$(g.endOptions[v],i=>(o(),c("option",{key:i.value,value:i.value},V(i.text),9,Y))),128))],8,X),[[z,_[1]]])]),action:a(()=>[n.value.length>1?(o(),w(d,{key:0,class:"bg-danger clickable",title:"Zeitbereich entfernen",onClick:C(i=>n.removeTime(v),["stop"])},{default:a(()=>[r(m,{icon:["fas","trash"]})]),_:2},1032,["onClick"])):B("",!0)]),_:2},1024))),128))]),_:2},[t.$slots.help?{name:"help",fn:a(()=>[k(t.$slots,"help")]),key:"0"}:void 0]),1024)}const te=S(L,[["render",ee],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/fixed_hours/TimeTable.vue"]]);T.add(F);T.add(O);const ne={name:"FixedTariff",components:{FontAwesomeIcon:U,TimeTable:te},props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue","delete"],computed:{tariff:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},dates:{get(){return this.tariff.active_times.dates.map(([t,e])=>`${t};${e}`)},set(t){this.tariff.active_times.dates=t.map(e=>e.split(";"))}}}};function ae(t,e,p,b,g,n){const m=s("font-awesome-icon"),d=s("openwb-base-avatar"),h=s("openwb-base-text-input"),y=s("openwb-base-number-input"),_=s("openwb-base-select-input"),v=s("time-table"),i=s("openwb-base-card");return o(),w(i,{subtype:"info",collapsible:!0},{header:a(()=>[f(V(n.tariff.name),1)]),actions:a(()=>[r(d,{class:"bg-danger clickable",onClick:e[0]||(e[0]=l=>t.$emit("delete"))},{default:a(()=>[r(m,{icon:["fas","trash"]})]),_:1})]),default:a(()=>[r(h,{modelValue:n.tariff.name,"onUpdate:modelValue":e[1]||(e[1]=l=>n.tariff.name=l),title:"Tarifname"},null,8,["modelValue"]),r(y,{title:"Preis",min:0,step:.1,precision:1,required:"",unit:"ct/kWh","model-value":n.tariff.price*100,"onUpdate:modelValue":e[2]||(e[2]=l=>n.tariff.price=parseFloat((l/100).toFixed(3)))},null,8,["model-value"]),r(_,{modelValue:n.dates,"onUpdate:modelValue":e[3]||(e[3]=l=>n.dates=l),title:"Quartale",required:"",multiple:"",options:[{value:"01-01;31-03",text:"1. Quartal"},{value:"01-04;30-06",text:"2. Quartal"},{value:"01-07;30-09",text:"3. Quartal"},{value:"01-10;31-12",text:"4. Quartal"}]},null,8,["modelValue"]),r(v,{modelValue:n.tariff.active_times.times,"onUpdate:modelValue":e[4]||(e[4]=l=>n.tariff.active_times.times=l),title:"Aktive Zeiten"},null,8,["modelValue"])]),_:1})}const ie=S(ne,[["render",ae],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/fixed_hours/FixedTariff.vue"]]);T.add(F);T.add(O);const se={name:"ElectricityTariffFixedHours",components:{FontAwesomeIcon:U,FixedTariff:ie},mixins:[I],computed:{value:{get(){return this.electricityTariff},set(t){console.log("set",t),this.updateConfiguration(t)}}},methods:{addTariff(){this.value.configuration.tariffs.push({name:"Neuer Tarif",price:0,active_times:{dates:[],times:[["",""]]}})},removeTariff(t){this.value.configuration.tariffs.splice(t,1)}}},oe={class:"electricity-tariff-fixed-hours"};function re(t,e,p,b,g,n){const m=s("openwb-base-alert"),d=s("openwb-base-number-input"),h=s("font-awesome-icon"),y=s("openwb-base-avatar"),_=s("openwb-base-heading"),v=s("fixed-tariff");return o(),c("div",oe,[r(m,{subtype:"info"},{default:a(()=>e[1]||(e[1]=[f(" Konfiguriert feste Tarifzeiten, z.b. HT, NT und Standardpreis. ",-1)])),_:1,__:[1]}),r(d,{title:"Standardpreis",min:0,step:.1,precision:1,required:"",unit:"ct/kWh","model-value":n.value.configuration.default_price*100,"onUpdate:modelValue":e[0]||(e[0]=i=>n.value.configuration.default_price=parseFloat((i/100).toFixed(3)))},{help:a(()=>e[2]||(e[2]=[f(" Standardpreis sofern kein anderer Tarif aktiv ist. ",-1)])),_:1},8,["model-value"]),e[5]||(e[5]=u("hr",null,null,-1)),r(_,null,{actions:a(()=>[r(y,{class:"bg-success clickable",onClick:C(n.addTariff,["stop"])},{default:a(()=>[r(h,{icon:["fas","plus"]})]),_:1},8,["onClick"])]),default:a(()=>[e[3]||(e[3]=f(" Tarife ",-1))]),_:1,__:[3]}),n.value.configuration.tariffs.length===0?(o(),w(m,{key:0,subtype:"info"},{default:a(()=>e[4]||(e[4]=[f(" Es wurde noch kein Tarif konfiguriert. Klicken Sie auf das Plus-Symbol um einen neuen Tarif hinzuzufügen.",-1),u("br",null,null,-1),f(" Tarife ermöglichen es unterschiedliche Preise für unterschiedliche Zeiten zu definieren. ",-1)])),_:1,__:[4]})):B("",!0),(o(!0),c(x,null,$(n.value.configuration.tariffs,(i,l)=>(o(),w(v,{key:l,"model-value":i,"onUpdate:modelValue":E=>n.value.configuration.tariffs[l]=E,onDelete:E=>n.removeTariff(l)},null,8,["model-value","onUpdate:modelValue","onDelete"]))),128))])}const be=S(se,[["render",re],["__scopeId","data-v-aa5a711c"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/fixed_hours/electricity_tariff.vue"]]);export{be as default}; +import{E as I}from"./GeneralChargeConfig-28e21ec2.js";import{_ as S,l as o,m as c,A as u,p as k,u as s,x as w,D as N,E as a,B as f,F as V,G as r,y as C,z as B,N as x,M as $,I as q,S as z}from"./vendor-57e3a63c.js";import{l as T,d as F,aa as O,F as U}from"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const H={name:"TimeRow"},W={class:"w-100"},A={class:"form-row align-items-center"},D={class:"col-10"},Q={class:"form-row"},Z={class:"col-6"},M={class:"col-6"},P={class:"col-2 text-right"};function K(t,e,p,b,g,n){return o(),c("div",W,[u("div",A,[u("div",D,[u("div",Q,[u("div",Z,[k(t.$slots,"start")]),u("div",M,[k(t.$slots,"end")])])]),u("div",P,[k(t.$slots,"action")])])])}const R=S(H,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/fixed_hours/TimeRow.vue"]]);T.add(F);T.add(O);const L={name:"TimeTable",components:{FontAwesomeIcon:U,TimeRow:R},inheritAttrs:!1,props:{title:{type:String,required:!0,default:"#TITLE#"},modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],data(){return{endOptions:this.modelValue.map(()=>this.generateTimeOptions("01:00","24:00"))}},computed:{value:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},methods:{generateTimeOptions(t,e){const p=[],b=parseInt(t.split(":")[0],10),g=parseInt(e.split(":")[0],10);for(let n=b;n<=g;n++){const d=`${n.toString().padStart(2,"0")}:00`;p.push({value:d,text:d})}return p},addTime(){this.value.push(["",""])},removeTime(t){this.value.splice(t,1)},updateEndOptions(t){const e=this.value[t][0];if(e){const b=(parseInt(e.split(":")[0],10)+1).toString().padStart(2,"0")+":00";this.endOptions[t]=this.generateTimeOptions(b,"24:00")}else this.endOptions[t]=this.generateTimeOptions("01:00","24:00")}}},j={key:0,class:"w-100 alert alert-danger"},G=["onUpdate:modelValue","onChange"],J=["value"],X=["onUpdate:modelValue"],Y=["value"];function ee(t,e,p,b,g,n){const m=s("font-awesome-icon"),d=s("openwb-base-avatar"),h=s("time-row"),y=s("openwb-base-setting-element");return o(),w(y,null,N({title:a(()=>[k(t.$slots,"title",{},()=>[f(V(p.title),1)])]),default:a(()=>[r(h,null,{start:a(()=>e[0]||(e[0]=[f(" Beginn ",-1)])),end:a(()=>e[1]||(e[1]=[f(" Ende ",-1)])),action:a(()=>[r(d,{class:"bg-success clickable",title:"Zeitbereich hinzufügen",onClick:C(n.addTime,["stop"])},{default:a(()=>[r(m,{icon:["fas","plus"]})]),_:1},8,["onClick"])]),_:1}),n.value.length===0?(o(),c("div",j," Keine Zeitbereiche definiert! ")):B("",!0),(o(!0),c(x,null,$(n.value,(_,v)=>(o(),w(h,{key:v},{start:a(()=>[q(u("select",{"onUpdate:modelValue":i=>_[0]=i,class:"form-control",required:"",onChange:i=>n.updateEndOptions(v)},[e[2]||(e[2]=u("option",{value:"",disabled:""}," -- Bitte auswählen -- ",-1)),(o(!0),c(x,null,$(n.generateTimeOptions("00:00","23:00"),i=>(o(),c("option",{key:i.value,value:i.value},V(i.text),9,J))),128))],40,G),[[z,_[0]]])]),end:a(()=>[q(u("select",{"onUpdate:modelValue":i=>_[1]=i,class:"form-control",required:""},[e[3]||(e[3]=u("option",{value:"",disabled:""}," -- Bitte auswählen -- ",-1)),(o(!0),c(x,null,$(g.endOptions[v],i=>(o(),c("option",{key:i.value,value:i.value},V(i.text),9,Y))),128))],8,X),[[z,_[1]]])]),action:a(()=>[n.value.length>1?(o(),w(d,{key:0,class:"bg-danger clickable",title:"Zeitbereich entfernen",onClick:C(i=>n.removeTime(v),["stop"])},{default:a(()=>[r(m,{icon:["fas","trash"]})]),_:2},1032,["onClick"])):B("",!0)]),_:2},1024))),128))]),_:2},[t.$slots.help?{name:"help",fn:a(()=>[k(t.$slots,"help")]),key:"0"}:void 0]),1024)}const te=S(L,[["render",ee],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/fixed_hours/TimeTable.vue"]]);T.add(F);T.add(O);const ne={name:"FixedTariff",components:{FontAwesomeIcon:U,TimeTable:te},props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue","delete"],computed:{tariff:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},dates:{get(){return this.tariff.active_times.dates.map(([t,e])=>`${t};${e}`)},set(t){this.tariff.active_times.dates=t.map(e=>e.split(";"))}}}};function ae(t,e,p,b,g,n){const m=s("font-awesome-icon"),d=s("openwb-base-avatar"),h=s("openwb-base-text-input"),y=s("openwb-base-number-input"),_=s("openwb-base-select-input"),v=s("time-table"),i=s("openwb-base-card");return o(),w(i,{subtype:"info",collapsible:!0},{header:a(()=>[f(V(n.tariff.name),1)]),actions:a(()=>[r(d,{class:"bg-danger clickable",onClick:e[0]||(e[0]=l=>t.$emit("delete"))},{default:a(()=>[r(m,{icon:["fas","trash"]})]),_:1})]),default:a(()=>[r(h,{modelValue:n.tariff.name,"onUpdate:modelValue":e[1]||(e[1]=l=>n.tariff.name=l),title:"Tarifname"},null,8,["modelValue"]),r(y,{title:"Preis",min:0,step:.1,precision:1,required:"",unit:"ct/kWh","model-value":n.tariff.price*100,"onUpdate:modelValue":e[2]||(e[2]=l=>n.tariff.price=parseFloat((l/100).toFixed(3)))},null,8,["model-value"]),r(_,{modelValue:n.dates,"onUpdate:modelValue":e[3]||(e[3]=l=>n.dates=l),title:"Quartale",required:"",multiple:"",options:[{value:"01-01;31-03",text:"1. Quartal"},{value:"01-04;30-06",text:"2. Quartal"},{value:"01-07;30-09",text:"3. Quartal"},{value:"01-10;31-12",text:"4. Quartal"}]},null,8,["modelValue"]),r(v,{modelValue:n.tariff.active_times.times,"onUpdate:modelValue":e[4]||(e[4]=l=>n.tariff.active_times.times=l),title:"Aktive Zeiten"},null,8,["modelValue"])]),_:1})}const ie=S(ne,[["render",ae],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/fixed_hours/FixedTariff.vue"]]);T.add(F);T.add(O);const se={name:"ElectricityTariffFixedHours",components:{FontAwesomeIcon:U,FixedTariff:ie},mixins:[I],computed:{value:{get(){return this.electricityTariff},set(t){console.log("set",t),this.updateConfiguration(t)}}},methods:{addTariff(){this.value.configuration.tariffs.push({name:"Neuer Tarif",price:0,active_times:{dates:[],times:[["",""]]}})},removeTariff(t){this.value.configuration.tariffs.splice(t,1)}}},oe={class:"electricity-tariff-fixed-hours"};function re(t,e,p,b,g,n){const m=s("openwb-base-alert"),d=s("openwb-base-number-input"),h=s("font-awesome-icon"),y=s("openwb-base-avatar"),_=s("openwb-base-heading"),v=s("fixed-tariff");return o(),c("div",oe,[r(m,{subtype:"info"},{default:a(()=>e[1]||(e[1]=[f(" Konfiguriert feste Tarifzeiten, z.b. HT, NT und Standardpreis. ",-1)])),_:1,__:[1]}),r(d,{title:"Standardpreis",min:0,step:.1,precision:1,required:"",unit:"ct/kWh","model-value":n.value.configuration.default_price*100,"onUpdate:modelValue":e[0]||(e[0]=i=>n.value.configuration.default_price=parseFloat((i/100).toFixed(3)))},{help:a(()=>e[2]||(e[2]=[f(" Standardpreis sofern kein anderer Tarif aktiv ist. ",-1)])),_:1},8,["model-value"]),e[5]||(e[5]=u("hr",null,null,-1)),r(_,null,{actions:a(()=>[r(y,{class:"bg-success clickable",onClick:C(n.addTariff,["stop"])},{default:a(()=>[r(h,{icon:["fas","plus"]})]),_:1},8,["onClick"])]),default:a(()=>[e[3]||(e[3]=f(" Tarife ",-1))]),_:1,__:[3]}),n.value.configuration.tariffs.length===0?(o(),w(m,{key:0,subtype:"info"},{default:a(()=>e[4]||(e[4]=[f(" Es wurde noch kein Tarif konfiguriert. Klicken Sie auf das Plus-Symbol um einen neuen Tarif hinzuzufügen.",-1),u("br",null,null,-1),f(" Tarife ermöglichen es unterschiedliche Preise für unterschiedliche Zeiten zu definieren. ",-1)])),_:1,__:[4]})):B("",!0),(o(!0),c(x,null,$(n.value.configuration.tariffs,(i,l)=>(o(),w(v,{key:l,"model-value":i,"onUpdate:modelValue":E=>n.value.configuration.tariffs[l]=E,onDelete:E=>n.removeTariff(l)},null,8,["model-value","onUpdate:modelValue","onDelete"]))),128))])}const be=S(se,[["render",re],["__scopeId","data-v-aa5a711c"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/fixed_hours/electricity_tariff.vue"]]);export{be as default}; diff --git a/web/settings/assets/electricity_tariff-e3583a43.js b/web/settings/assets/electricity_tariff-56f9a905.js similarity index 85% rename from web/settings/assets/electricity_tariff-e3583a43.js rename to web/settings/assets/electricity_tariff-56f9a905.js index 6e7e5dfa0d..a395db9517 100644 --- a/web/settings/assets/electricity_tariff-e3583a43.js +++ b/web/settings/assets/electricity_tariff-56f9a905.js @@ -1 +1 @@ -import{E as c}from"./GeneralChargeConfig-866a1615.js";import{_ as p,u as r,l as d,m as f,G as i,E as o,B as s,A as m}from"./vendor-25d394b4.js";import"./index-93388667.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"ElectricityTariffEnergyCharts",mixins:[c]},h={class:"electricity-tariff-energy-charts"};function b(t,e,_,y,w,v){const a=r("openwb-base-alert"),l=r("openwb-base-select-input"),u=r("openwb-base-number-input");return d(),f("div",h,[i(a,{subtype:"info"},{default:o(()=>e[2]||(e[2]=[s(" Börsenstrompreise von Energy Charts (energy-charts.info)",-1),m("br",null,null,-1),s(" Die Rohdaten werden von Wissenschaftlern des Fraunhofer-Instituts für Solare Energiesysteme ISE aus zahlreichen Quellen stündlich oder täglich abgerufen und für die Darstellung aufbereitet. ",-1)])),_:1,__:[2]}),i(l,{title:"Land","not-selected":"Bitte auswählen",options:[{value:"DE-LU",text:"Deutschland"},{value:"AT",text:"Österreich"},{value:"CH",text:"Schweiz"}],"model-value":t.electricityTariff.configuration.country,"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateConfiguration(n,"configuration.country"))},null,8,["model-value"]),i(u,{title:"Aufschlag zum Börsenstrompreis",min:0,step:.001,precision:3,required:"",unit:"ct/kWh","model-value":t.electricityTariff.configuration.surcharge,"onUpdate:modelValue":e[1]||(e[1]=n=>t.updateConfiguration(parseFloat(n.toFixed(3)),"configuration.surcharge"))},{help:o(()=>e[3]||(e[3]=[s(" Die Auswahl (Energy-Charts) kann für alle Stromanbieter ausgewählt werden, die die Börsenstrompreise in einem variablen/dynamischen Tarif an die Kunden weitergeben. Das Modul soll es ermöglichen, dass zu tagesaktuellen Strompreisen unter Berücksichtigung eines Aufschlags zu günstigen Zeiten automatisch geladen werden kann und somit die Preisschwankungen an der Börse optimal ausgenutzt werden. ",-1)])),_:1},8,["model-value"])])}const S=p(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/energycharts/electricity_tariff.vue"]]);export{S as default}; +import{E as c}from"./GeneralChargeConfig-28e21ec2.js";import{_ as p,u as r,l as d,m as f,G as i,E as o,B as s,A as m}from"./vendor-57e3a63c.js";import"./index-eccf5556.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"ElectricityTariffEnergyCharts",mixins:[c]},h={class:"electricity-tariff-energy-charts"};function b(t,e,_,y,w,v){const a=r("openwb-base-alert"),l=r("openwb-base-select-input"),u=r("openwb-base-number-input");return d(),f("div",h,[i(a,{subtype:"info"},{default:o(()=>e[2]||(e[2]=[s(" Börsenstrompreise von Energy Charts (energy-charts.info)",-1),m("br",null,null,-1),s(" Die Rohdaten werden von Wissenschaftlern des Fraunhofer-Instituts für Solare Energiesysteme ISE aus zahlreichen Quellen stündlich oder täglich abgerufen und für die Darstellung aufbereitet. ",-1)])),_:1,__:[2]}),i(l,{title:"Land","not-selected":"Bitte auswählen",options:[{value:"DE-LU",text:"Deutschland"},{value:"AT",text:"Österreich"},{value:"CH",text:"Schweiz"}],"model-value":t.electricityTariff.configuration.country,"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateConfiguration(n,"configuration.country"))},null,8,["model-value"]),i(u,{title:"Aufschlag zum Börsenstrompreis",min:0,step:.001,precision:3,required:"",unit:"ct/kWh","model-value":t.electricityTariff.configuration.surcharge,"onUpdate:modelValue":e[1]||(e[1]=n=>t.updateConfiguration(parseFloat(n.toFixed(3)),"configuration.surcharge"))},{help:o(()=>e[3]||(e[3]=[s(" Die Auswahl (Energy-Charts) kann für alle Stromanbieter ausgewählt werden, die die Börsenstrompreise in einem variablen/dynamischen Tarif an die Kunden weitergeben. Das Modul soll es ermöglichen, dass zu tagesaktuellen Strompreisen unter Berücksichtigung eines Aufschlags zu günstigen Zeiten automatisch geladen werden kann und somit die Preisschwankungen an der Börse optimal ausgenutzt werden. ",-1)])),_:1},8,["model-value"])])}const S=p(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/energycharts/electricity_tariff.vue"]]);export{S as default}; diff --git a/web/settings/assets/electricity_tariff-48b3c8b7.js b/web/settings/assets/electricity_tariff-7adf718b.js similarity index 72% rename from web/settings/assets/electricity_tariff-48b3c8b7.js rename to web/settings/assets/electricity_tariff-7adf718b.js index 12a35c0d5c..bb89da4bd1 100644 --- a/web/settings/assets/electricity_tariff-48b3c8b7.js +++ b/web/settings/assets/electricity_tariff-7adf718b.js @@ -1 +1 @@ -import{E as n}from"./GeneralChargeConfig-866a1615.js";import{_ as a,u as l,l as u,m as s,G as r}from"./vendor-25d394b4.js";import"./index-93388667.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const p={name:"ElectricityTariffOctopusEnergy",mixins:[n]},f={class:"electricity-tariff-octopusenergy"};function m(e,t,c,d,g,y){const i=l("openwb-base-text-input");return u(),s("div",f,[r(i,{title:"Benutzername",subtype:"user",required:"","model-value":e.electricityTariff.configuration.email,"onUpdate:modelValue":t[0]||(t[0]=o=>e.updateConfiguration(o,"configuration.email"))},null,8,["model-value"]),r(i,{title:"Passwort",subtype:"password",required:"","model-value":e.electricityTariff.configuration.password,"onUpdate:modelValue":t[1]||(t[1]=o=>e.updateConfiguration(o,"configuration.password"))},null,8,["model-value"]),r(i,{title:"Vertragsnummer (beginnt mit A-)",required:"","model-value":e.electricityTariff.configuration.accountId,"onUpdate:modelValue":t[2]||(t[2]=o=>e.updateConfiguration(o,"configuration.accountId"))},null,8,["model-value"])])}const $=a(p,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/octopusenergy/electricity_tariff.vue"]]);export{$ as default}; +import{E as n}from"./GeneralChargeConfig-28e21ec2.js";import{_ as a,u as l,l as u,m as s,G as r}from"./vendor-57e3a63c.js";import"./index-eccf5556.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const p={name:"ElectricityTariffOctopusEnergy",mixins:[n]},f={class:"electricity-tariff-octopusenergy"};function m(e,t,c,d,g,y){const i=l("openwb-base-text-input");return u(),s("div",f,[r(i,{title:"Benutzername",subtype:"user",required:"","model-value":e.electricityTariff.configuration.email,"onUpdate:modelValue":t[0]||(t[0]=o=>e.updateConfiguration(o,"configuration.email"))},null,8,["model-value"]),r(i,{title:"Passwort",subtype:"password",required:"","model-value":e.electricityTariff.configuration.password,"onUpdate:modelValue":t[1]||(t[1]=o=>e.updateConfiguration(o,"configuration.password"))},null,8,["model-value"]),r(i,{title:"Vertragsnummer (beginnt mit A-)",required:"","model-value":e.electricityTariff.configuration.accountId,"onUpdate:modelValue":t[2]||(t[2]=o=>e.updateConfiguration(o,"configuration.accountId"))},null,8,["model-value"])])}const $=a(p,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/octopusenergy/electricity_tariff.vue"]]);export{$ as default}; diff --git a/web/settings/assets/electricity_tariff-c8b9c23c.js b/web/settings/assets/electricity_tariff-e06fa542.js similarity index 84% rename from web/settings/assets/electricity_tariff-c8b9c23c.js rename to web/settings/assets/electricity_tariff-e06fa542.js index bf91466eaa..c815c6cb67 100644 --- a/web/settings/assets/electricity_tariff-c8b9c23c.js +++ b/web/settings/assets/electricity_tariff-e06fa542.js @@ -1 +1 @@ -import{E as p}from"./GeneralChargeConfig-866a1615.js";import{_ as u,u as a,l as d,m as f,G as r,E as l,B as n,A as m}from"./vendor-25d394b4.js";import"./index-93388667.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"ElectricityTariffOstrom",mixins:[p]},g={class:"electricity-tariff-ostrom"};function b(t,e,_,h,v,w){const s=a("openwb-base-alert"),o=a("openwb-base-text-input");return d(),f("div",g,[r(s,{subtype:"info"},{default:l(()=>e[3]||(e[3]=[n(" Ihre persönlichen Zugangsdaten (Client-ID und Client-Secret) erhalten Sie über das ",-1),m("a",{href:"https://developer.ostrom-api.io/",target:"_blank",rel:"noopener noreferrer"}," Ostrom Developer Portal ",-1),n(" . Behandeln Sie diese Daten wie ein Passwort, da sich darüber auch persönliche Daten aus Ihrem ostrom-Account abfragen lassen! ",-1)])),_:1,__:[3]}),r(o,{title:"Client-ID",subtype:"user",required:"","model-value":t.electricityTariff.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=i=>t.updateConfiguration(i,"configuration.client_id"))},null,8,["model-value"]),r(o,{title:"Client-Secret",subtype:"password",required:"","model-value":t.electricityTariff.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=i=>t.updateConfiguration(i,"configuration.client_secret"))},null,8,["model-value"]),r(o,{title:"Postleitzahl","model-value":t.electricityTariff.configuration.zip,"onUpdate:modelValue":e[2]||(e[2]=i=>t.updateConfiguration(i,"configuration.zip"))},{help:l(()=>e[4]||(e[4]=[n(" Die Postleitzahl wird zur Ermittlung der Abgaben und Umlagen benötigt. Ohne Angabe der Postleitzahl wird durch die ostrom API lediglich der Börsenstrompreis einschließlich Mehrwertsteuer geliefert. ",-1)])),_:1},8,["model-value"])])}const A=u(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/ostrom/electricity_tariff.vue"]]);export{A as default}; +import{E as p}from"./GeneralChargeConfig-28e21ec2.js";import{_ as u,u as a,l as d,m as f,G as r,E as l,B as n,A as m}from"./vendor-57e3a63c.js";import"./index-eccf5556.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"ElectricityTariffOstrom",mixins:[p]},g={class:"electricity-tariff-ostrom"};function b(t,e,_,h,v,w){const s=a("openwb-base-alert"),o=a("openwb-base-text-input");return d(),f("div",g,[r(s,{subtype:"info"},{default:l(()=>e[3]||(e[3]=[n(" Ihre persönlichen Zugangsdaten (Client-ID und Client-Secret) erhalten Sie über das ",-1),m("a",{href:"https://developer.ostrom-api.io/",target:"_blank",rel:"noopener noreferrer"}," Ostrom Developer Portal ",-1),n(" . Behandeln Sie diese Daten wie ein Passwort, da sich darüber auch persönliche Daten aus Ihrem ostrom-Account abfragen lassen! ",-1)])),_:1,__:[3]}),r(o,{title:"Client-ID",subtype:"user",required:"","model-value":t.electricityTariff.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=i=>t.updateConfiguration(i,"configuration.client_id"))},null,8,["model-value"]),r(o,{title:"Client-Secret",subtype:"password",required:"","model-value":t.electricityTariff.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=i=>t.updateConfiguration(i,"configuration.client_secret"))},null,8,["model-value"]),r(o,{title:"Postleitzahl","model-value":t.electricityTariff.configuration.zip,"onUpdate:modelValue":e[2]||(e[2]=i=>t.updateConfiguration(i,"configuration.zip"))},{help:l(()=>e[4]||(e[4]=[n(" Die Postleitzahl wird zur Ermittlung der Abgaben und Umlagen benötigt. Ohne Angabe der Postleitzahl wird durch die ostrom API lediglich der Börsenstrompreis einschließlich Mehrwertsteuer geliefert. ",-1)])),_:1},8,["model-value"])])}const A=u(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/ostrom/electricity_tariff.vue"]]);export{A as default}; diff --git a/web/settings/assets/electricity_tariff-9da2adde.js b/web/settings/assets/electricity_tariff-f82826f0.js similarity index 74% rename from web/settings/assets/electricity_tariff-9da2adde.js rename to web/settings/assets/electricity_tariff-f82826f0.js index b564adb9ca..57d4a1500e 100644 --- a/web/settings/assets/electricity_tariff-9da2adde.js +++ b/web/settings/assets/electricity_tariff-f82826f0.js @@ -1 +1 @@ -import{E as s}from"./GeneralChargeConfig-866a1615.js";import{_ as l,u as r,l as c,m as p,G as n,E as u,B as f}from"./vendor-25d394b4.js";import"./index-93388667.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"ElectricityTariffRabot",mixins:[s]},m={class:"electricity-tariff-rabot"};function _(t,e,b,g,y,v){const a=r("openwb-base-alert"),o=r("openwb-base-text-input");return c(),p("div",m,[n(a,{subtype:"info"},{default:u(()=>e[2]||(e[2]=[f(" Ihre persönlichen Zugangsdaten (Client-ID und Client-Secret) erhalten Sie direkt von Rabot. Behandeln Sie diese Daten wie ein Passwort, da sich darüber auch persönliche Daten aus Ihrem Rabot-Account abfragen lassen! ",-1)])),_:1,__:[2]}),n(o,{title:"Client-ID",subtype:"user",required:"","model-value":t.electricityTariff.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=i=>t.updateConfiguration(i,"configuration.client_id"))},null,8,["model-value"]),n(o,{title:"Client-Secret",subtype:"password",required:"","model-value":t.electricityTariff.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=i=>t.updateConfiguration(i,"configuration.client_secret"))},null,8,["model-value"])])}const S=l(d,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/rabot/electricity_tariff.vue"]]);export{S as default}; +import{E as s}from"./GeneralChargeConfig-28e21ec2.js";import{_ as l,u as r,l as c,m as p,G as n,E as u,B as f}from"./vendor-57e3a63c.js";import"./index-eccf5556.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"ElectricityTariffRabot",mixins:[s]},m={class:"electricity-tariff-rabot"};function _(t,e,b,g,y,v){const a=r("openwb-base-alert"),o=r("openwb-base-text-input");return c(),p("div",m,[n(a,{subtype:"info"},{default:u(()=>e[2]||(e[2]=[f(" Ihre persönlichen Zugangsdaten (Client-ID und Client-Secret) erhalten Sie direkt von Rabot. Behandeln Sie diese Daten wie ein Passwort, da sich darüber auch persönliche Daten aus Ihrem Rabot-Account abfragen lassen! ",-1)])),_:1,__:[2]}),n(o,{title:"Client-ID",subtype:"user",required:"","model-value":t.electricityTariff.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=i=>t.updateConfiguration(i,"configuration.client_id"))},null,8,["model-value"]),n(o,{title:"Client-Secret",subtype:"password",required:"","model-value":t.electricityTariff.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=i=>t.updateConfiguration(i,"configuration.client_secret"))},null,8,["model-value"])])}const S=l(d,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/rabot/electricity_tariff.vue"]]);export{S as default}; diff --git a/web/settings/assets/external_inverter-f3d046db.js b/web/settings/assets/external_inverter-ac3fe3d1.js similarity index 82% rename from web/settings/assets/external_inverter-f3d046db.js rename to web/settings/assets/external_inverter-ac3fe3d1.js index fde67e5108..1abc08b820 100644 --- a/web/settings/assets/external_inverter-f3d046db.js +++ b/web/settings/assets/external_inverter-ac3fe3d1.js @@ -1 +1 @@ -import{C as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as i,l as g,m as f,G as o,E as r,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSolaredgeExternalInverter",mixins:[m]},b={class:"device-solaredge-external-inverter"};function c(n,e,v,w,x,E){const l=i("openwb-base-heading"),u=i("openwb-base-alert"),a=i("openwb-base-number-input"),d=i("openwb-base-select-input");return g(),f("div",b,[o(l,null,{default:r(()=>e[3]||(e[3]=[s(" Einstellungen für SolarEdge externen Wechselrichter ",-1)])),_:1,__:[3]}),o(u,{subtype:"info"},{default:r(()=>e[4]||(e[4]=[s(' Diese Komponente nur konfigurieren, wenn ein weiteres Solaredge SmartMeter verbaut ist, welches z.B. die Leistung einer vorhandenen Bestands-PV-Anlage erfasst. Dieses zusätzliche SmartMeter muss dann als "Zähler 2" / "Position 2" im Wechselrichter-Konfigurationsmenü konfiguriert sein. ',-1)])),_:1,__:[4]}),o(a,{title:"SolarEdge-Geräte-ID",required:"","model-value":n.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t,"configuration.modbus_id"))},null,8,["model-value"]),o(a,{title:"SolarEdge-Meter-ID","model-value":n.component.configuration.meter_id,min:"1",max:"255",required:"","onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.meter_id"))},null,8,["model-value"]),o(d,{title:"Leistung invertieren","not-selected":"Bitte auswählen",options:[{value:1,text:"nein"},{value:-1,text:"ja"}],"model-value":n.component.configuration.factor,"onUpdate:modelValue":e[2]||(e[2]=t=>n.updateConfiguration(t,"configuration.factor"))},{help:r(()=>e[5]||(e[5]=[s(" Einige externe SolarEdge Wechselrichter liefern die Leistung mit falschem Vorzeichen. In diesem Fall ist die Leistung zu invertieren. ",-1)])),_:1},8,["model-value"])])}const L=p(_,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/solaredge/external_inverter.vue"]]);export{L as default}; +import{C as m}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as i,l as g,m as f,G as o,E as r,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSolaredgeExternalInverter",mixins:[m]},b={class:"device-solaredge-external-inverter"};function c(n,e,v,w,x,E){const l=i("openwb-base-heading"),u=i("openwb-base-alert"),a=i("openwb-base-number-input"),d=i("openwb-base-select-input");return g(),f("div",b,[o(l,null,{default:r(()=>e[3]||(e[3]=[s(" Einstellungen für SolarEdge externen Wechselrichter ",-1)])),_:1,__:[3]}),o(u,{subtype:"info"},{default:r(()=>e[4]||(e[4]=[s(' Diese Komponente nur konfigurieren, wenn ein weiteres Solaredge SmartMeter verbaut ist, welches z.B. die Leistung einer vorhandenen Bestands-PV-Anlage erfasst. Dieses zusätzliche SmartMeter muss dann als "Zähler 2" / "Position 2" im Wechselrichter-Konfigurationsmenü konfiguriert sein. ',-1)])),_:1,__:[4]}),o(a,{title:"SolarEdge-Geräte-ID",required:"","model-value":n.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t,"configuration.modbus_id"))},null,8,["model-value"]),o(a,{title:"SolarEdge-Meter-ID","model-value":n.component.configuration.meter_id,min:"1",max:"255",required:"","onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.meter_id"))},null,8,["model-value"]),o(d,{title:"Leistung invertieren","not-selected":"Bitte auswählen",options:[{value:1,text:"nein"},{value:-1,text:"ja"}],"model-value":n.component.configuration.factor,"onUpdate:modelValue":e[2]||(e[2]=t=>n.updateConfiguration(t,"configuration.factor"))},{help:r(()=>e[5]||(e[5]=[s(" Einige externe SolarEdge Wechselrichter liefern die Leistung mit falschem Vorzeichen. In diesem Fall ist die Leistung zu invertieren. ",-1)])),_:1},8,["model-value"])])}const L=p(_,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/solaredge/external_inverter.vue"]]);export{L as default}; diff --git a/web/settings/assets/index-93388667.js b/web/settings/assets/index-eccf5556.js similarity index 90% rename from web/settings/assets/index-93388667.js rename to web/settings/assets/index-eccf5556.js index fffbc8dde2..85e81d173f 100644 --- a/web/settings/assets/index-93388667.js +++ b/web/settings/assets/index-eccf5556.js @@ -1 +1 @@ -import{_ as y,l as i,m as u,p as g,q as S,u as b,x as h,y as x,z as p,A as a,B as f,D as A,E as c,F as v,G as _,I as B,J as I,K as O,L as ee,M as q,N as T,O as te,P as ne,Q as se,R as oe,T as F,S as ae,U as N,V as ie,W as le,X as re,Y as de,Z as ue,$ as ce,a0 as pe}from"./vendor-25d394b4.js";import{l as $,f as H,a as U,F as C,b as me,c as fe,d as G,e as _e,g as j,h as ge,i as be,j as he,k as ve,m as ye,n as we,o as ke,p as Se,q as Oe,r as Be,s as $e,t as Ce,u as Ie,v as Te,w as J,x as Ve,y as Ae,z as Me,A as Pe,B as K,C as qe,D as xe,E as De,G as Ee,H as Le,I as je,J as We,K as Re,L as Ne,M as ze,N as Fe}from"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import{p as He,a as Ue}from"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./vendor-jquery-3364d39b.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))d(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&d(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function d(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();const Ge={name:"OpenwbAlert",props:{subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}}};function Je(e,t,n,d,l,s){return i(),u("div",{class:S(["card-text alert","alert-"+n.subtype])},[g(e.$slots,"default",{},void 0,!0)],2)}const Ke=y(Ge,[["render",Je],["__scopeId","data-v-055c15aa"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAlert.vue"]]),Ze=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"}));$.add(H,U);const Qe={name:"OpenwbBaseSettingElement",components:{FontAwesomeIcon:C},data(){return{showHelp:!1}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},Ye={key:0,class:"col-md-4 col-form-label"},Xe={class:"form-row"},et={key:0,class:"form-text alert alert-info my-1 small flex-fill"};function tt(e,t,n,d,l,s){const o=b("font-awesome-icon");return i(),u("div",{class:S(["form-row",e.$slots.title?"mb-1":"mx-0"])},[e.$slots.title?(i(),u("label",Ye,[g(e.$slots,"title",{},void 0,!0),e.$slots.help?(i(),h(o,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:S(["clickable ml-1",l.showHelp?"text-info":""]),onClick:x(s.toggleHelp,["stop"])},null,8,["icon","class","onClick"])):p("",!0)])):p("",!0),a("div",{class:S(e.$slots.title?"col-md-8":"col px-0")},[a("div",{class:S({"form-row":e.$slots.title})},[g(e.$slots,"default",{},()=>[t[0]||(t[0]=f("*ELEMENT MISSING*",-1))],!0)],2),a("div",Xe,[l.showHelp?(i(),u("span",et,[g(e.$slots,"help",{},void 0,!0)])):p("",!0)])],2)],2)}const M=y(Qe,[["render",tt],["__scopeId","data-v-33864f66"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSettingElement.vue"]]),nt=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"}));$.add(me,fe,G,_e);const st={name:"OpenwbArrayInput",components:{FontAwesomeIcon:C,OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!0,default:"#TITLE#"},modelValue:{type:Array,default:()=>[]},noElementsMessage:{type:String,default:()=>"Keine Elemente zugeordnet."}},emits:["update:modelValue"],data(){return{newTag:"",showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},newTagValid:{get(){return this.newTag.length>0&&!this.value.includes(this.newTag)}}},methods:{addTag(){if(this.newTagValid){const e=[...this.value,this.newTag].sort();this.value=e,this.newTag=""}this.$refs.tagInput.focus()},removeTag(e){let t=[...this.value];t.splice(e,1),this.value=t}}},ot={class:"w-100"},at={class:"input-group"},it={class:"input-group-prepend"},lt={class:"input-group-text"},rt={class:"input-group-append"},dt={class:"tagList mt-1 w-100"},ut={key:0,class:"noTag"};function ct(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("openwb-base-setting-element");return i(),h(m,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)],!0)]),default:c(()=>[a("div",ot,[a("div",at,[a("div",it,[a("div",lt,[g(e.$slots,"input-prefix",{},()=>[_(o,{icon:["fas","tag"]})],!0)])]),B(a("input",O({ref:"tagInput","onUpdate:modelValue":t[0]||(t[0]=r=>l.newTag=r),type:"text",class:"form-control"},e.$attrs,{onKeyup:t[1]||(t[1]=ee((...r)=>s.addTag&&s.addTag(...r),["enter"]))}),null,16),[[I,l.newTag]]),a("div",rt,[a("div",{class:S(["input-group-text",s.newTagValid?"bg-success clickable":"not-clickable"]),onClick:t[2]||(t[2]=(...r)=>s.addTag&&s.addTag(...r))},[g(e.$slots,"input-add",{},()=>[_(o,{icon:["fas","plus"]})],!0)],2)])])]),a("div",dt,[s.value.length==0?(i(),u("span",ut,[_(o,{icon:["fas","info-circle"]}),f(" "+v(n.noElementsMessage),1)])):p("",!0),(i(!0),u(T,null,q(s.value,(r,w)=>(i(),u("span",{key:w,class:"tag"},[g(e.$slots,"element-prefix",{},()=>[_(o,{icon:["fas","tag"]})],!0),f(" "+v(r)+" ",1),_(o,{class:"clickable remove-element",icon:["fas","times-circle"],onClick:V=>s.removeTag(w)},null,8,["onClick"])]))),128))])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help",{},void 0,!0)]),key:"0"}:void 0]),1024)}const pt=y(st,[["render",ct],["__scopeId","data-v-9de93d37"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseArrayInput.vue"]]),mt=Object.freeze(Object.defineProperty({__proto__:null,default:pt},Symbol.toStringTag,{value:"Module"}));const ft={name:"OpenwbAvatar"},_t={class:"avatar"};function gt(e,t,n,d,l,s){return i(),u("div",_t,[g(e.$slots,"default",{},()=>[t[0]||(t[0]=f("?",-1))],!0)])}const bt=y(ft,[["render",gt],["__scopeId","data-v-06082a1a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAvatar.vue"]]),ht=Object.freeze(Object.defineProperty({__proto__:null,default:bt},Symbol.toStringTag,{value:"Module"}));$.add(j);const vt={name:"OpenwbButtonGroupInput",components:{FontAwesomeIcon:C,OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:[String,Number,Boolean],default:void 0},buttons:{type:Array,required:!0}},emits:["update:modelValue","button-click"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}},yt={class:"btn-group btn-block btn-group-toggle"},wt=["value","onClick"];function kt(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("openwb-base-setting-element");return i(),h(m,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)])]),default:c(()=>[a("div",yt,[(i(!0),u(T,null,q(n.buttons,r=>(i(),u("label",{key:r.value,class:S(["btn",[s.value==r.buttonValue?"active":"",r.class?r.class:"btn-outline-info"]])},[B(a("input",O({"onUpdate:modelValue":t[0]||(t[0]=w=>s.value=w),type:"radio",value:r.buttonValue},{ref_for:!0},e.$attrs,{onClick:w=>e.$emit("button-click",r.buttonValue)}),null,16,wt),[[te,s.value]]),g(e.$slots,"label-"+r.buttonValue,{},()=>[f(v(r.text),1)]),_(o,{icon:["fas","check"],style:ne([s.value==r.buttonValue?"visibility: visible":"visibility: hidden"])},null,8,["style"])],2))),128))])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help")]),key:"0"}:void 0]),1024)}const St=y(vt,[["render",kt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonGroupInput.vue"]]),Ot=Object.freeze(Object.defineProperty({__proto__:null,default:St},Symbol.toStringTag,{value:"Module"}));const Bt={name:"OpenwbClickButton",props:{title:{type:String,required:!1,default:""},tooltip:{type:String,required:!1,default:""}},emits:["buttonClicked"],methods:{click(e){this.$emit("buttonClicked",e)}}},$t=["title"];function Ct(e,t,n,d,l,s){return i(),u("button",{type:"button",class:"btn btn-block",title:n.tooltip,onClick:t[0]||(t[0]=x((...o)=>s.click&&s.click(...o),["prevent"]))},[g(e.$slots,"default",{},()=>[f(v(n.title),1)],!0)],8,$t)}const Z=y(Bt,[["render",Ct],["__scopeId","data-v-2e9c095b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseClickButton.vue"]]),It=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"})),Tt={name:"OpenwbButtonInput",components:{OpenwbBaseSettingElement:M,OpenwbBaseClickButton:Z},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},buttonText:{type:String,required:!1,default:void 0},disabled:{type:Boolean,default:!1},subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}},emits:["buttonClicked"],methods:{handleClick(e){this.$emit("buttonClicked",e)}}};function Vt(e,t,n,d,l,s){const o=b("openwb-base-click-button"),m=b("openwb-base-setting-element");return i(),h(m,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)])]),default:c(()=>[_(o,O({class:(n.disabled?"btn-outline-":"btn-")+n.subtype,disabled:n.disabled},e.$attrs,{onButtonClicked:s.handleClick}),{default:c(()=>[f(v(n.buttonText),1)]),_:1},16,["class","disabled","onButtonClicked"])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help")]),key:"0"}:void 0]),1024)}const At=y(Tt,[["render",Vt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonInput.vue"]]),Mt=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"}));$.add(ge,be);const Pt={name:"OpenwbCard",components:{FontAwesomeIcon:C},inheritAttrs:!1,props:{title:{type:String,default:void 0},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark","pink","white"].indexOf(e)!==-1},default:"secondary"},bodyBg:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark","pink","white"].indexOf(e)!==-1},default:"light"},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1}},emits:["collapsed","expanded"],data(){return{isCollapsed:this.collapsible&&this.collapsed}},methods:{toggleBody(){this.collapsible===!0&&(this.isCollapsed=!this.isCollapsed,this.$emit(this.isCollapsed?"collapsed":"expanded"))}}},qt={class:"form-group mb-0"},xt={class:"form-row vaRow mb-0 py-2"},Dt={class:"col"},Et={class:"card-actions ml-4"},Lt={key:0,class:"card-actions mr-2"},jt={key:2,class:"card-footer"};function Wt(e,t,n,d,l,s){const o=b("font-awesome-icon");return i(),u("div",{class:S(["card","border-"+n.subtype])},[n.title!==void 0||e.$slots.header?(i(),u("div",{key:0,class:S(["card-header py-1","bg-"+n.subtype]),onClick:t[0]||(t[0]=(...m)=>s.toggleBody&&s.toggleBody(...m))},[a("div",qt,[a("div",xt,[a("div",Dt,[g(e.$slots,"header",{collapsed:l.isCollapsed},()=>[f(v(n.title),1)],!0)])])]),a("span",Et,[e.$slots.actions?(i(),u("span",Lt,[g(e.$slots,"actions",{collapsed:l.isCollapsed},void 0,!0)])):p("",!0),n.collapsible?(i(),h(o,{key:1,icon:l.isCollapsed?["fas","chevron-right"]:["fas","chevron-down"]},null,8,["icon"])):p("",!0)])],2)):p("",!0),l.isCollapsed===!1?(i(),u("div",O({key:1,class:["card-body",[n.title==null&&!e.$slots.header?"border-radius-top-inherit":"",e.$slots.footer?"":"border-radius-bottom-inherit","bg-"+n.bodyBg]]},e.$attrs),[g(e.$slots,"default",{},void 0,!0)],16)):p("",!0),e.$slots.footer&&l.isCollapsed===!1?(i(),u("div",jt,[g(e.$slots,"footer",{},void 0,!0)])):p("",!0)],2)}const Rt=y(Pt,[["render",Wt],["__scopeId","data-v-9833c353"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCard.vue"]]),Nt=Object.freeze(Object.defineProperty({__proto__:null,default:Rt},Symbol.toStringTag,{value:"Module"})),zt={name:"OpenwbCheckboxInput",components:{OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:Boolean}},emits:["update:modelValue"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}},Ft={class:"col-md-8"};function Ht(e,t,n,d,l,s){const o=b("openwb-base-setting-element");return i(),h(o,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)])]),default:c(()=>[a("div",Ft,[B(a("input",O({"onUpdate:modelValue":t[0]||(t[0]=m=>s.value=m),class:"form-control",type:"checkbox"},e.$attrs),null,16),[[se,s.value]])])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help")]),key:"0"}:void 0]),1024)}const Ut=y(zt,[["render",Ht],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCheckboxInput.vue"]]),Gt=Object.freeze(Object.defineProperty({__proto__:null,default:Ut},Symbol.toStringTag,{value:"Module"}));$.add(he);const Jt={name:"OpenwbColorPicker",components:{FontAwesomeIcon:C},props:{defaultColor:{type:String,required:!1,default:void 0,validator:e=>/^#[0-9A-F]{6}$/i.test(e)},modelValue:{type:String,required:!1,default:"#000000",validator:e=>/^#[0-9A-F]{6}$/i.test(e)}},emits:["update:model-value"],methods:{changed(e){this.$emit("update:model-value",e)}}},Kt={class:"wrapper"},Zt=["value","title"];function Qt(e,t,n,d,l,s){const o=b("font-awesome-icon");return i(),u("div",Kt,[a("input",{type:"color",class:"custom-color-picker",value:n.modelValue,title:`Farbe: ${n.modelValue}`,onInput:t[0]||(t[0]=m=>s.changed(m.target.value))},null,40,Zt),n.defaultColor?(i(),h(o,{key:0,class:"ml-1 clickable",icon:["fas","rotate-left"],title:`Zurücksetzen auf Standardfarbe (${n.defaultColor})`,onClick:t[1]||(t[1]=m=>s.changed(n.defaultColor))},null,8,["title"])):p("",!0)])}const Yt=y(Jt,[["render",Qt],["__scopeId","data-v-1378b599"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseColorPicker.vue"]]),Xt=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"}));const{text:en,copy:tn,copied:nn,isSupported:sn}=oe({copiedDuring:3e3,legacy:!0});$.add(ve,ye);const on={name:"OpenwbCopyToClipboard",components:{FontAwesomeIcon:C},props:{tooltip:{type:String,default:"Wert kopieren"}},data(){return{}},computed:{contentText(){return this.$refs.content?this.$refs.content.innerText.trim():""},isCopied(){return nn.value},copySupported(){return sn.value}},methods:{click(){this.copySupported&&tn(this.contentText).then(()=>{console.debug("Text copied to clipboard:",en.value)}).catch(e=>{console.error("Failed to copy text to clipboard:",e)})}}},an=["title"],ln={ref:"content"};function rn(e,t,n,d,l,s){const o=b("font-awesome-icon");return i(),u("span",{title:s.copySupported&&!s.isCopied?n.tooltip:"",class:S({"copy-me":s.copySupported&&!s.isCopied}),onClick:t[0]||(t[0]=x((...m)=>s.click&&s.click(...m),["stop"]))},[a("span",ln,[g(e.$slots,"default",{},void 0,!0)],512),s.copySupported?(i(),h(o,{key:0,icon:s.isCopied?["fas","clipboard-check"]:["fas","clipboard"]},null,8,["icon"])):p("",!0)],10,an)}const dn=y(on,[["render",rn],["__scopeId","data-v-81826ebe"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCopyToClipboard.vue"]]),un=Object.freeze(Object.defineProperty({__proto__:null,default:dn},Symbol.toStringTag,{value:"Module"}));$.add(H,U,j);const cn={name:"OpenwbHeading",components:{FontAwesomeIcon:C},inheritAttrs:!1,data(){return{showHelp:!1}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},pn={class:"heading-text"},mn={key:0,class:"actions"},fn={class:""},_n={key:0,class:"form-row alert alert-info small flex-fill"};function gn(e,t,n,d,l,s){const o=b("font-awesome-icon");return i(),u(T,null,[a("div",O({class:"card-text card-text-heading"},e.$attrs),[a("div",pn,[g(e.$slots,"default",{},void 0,!0),e.$slots.help?(i(),h(o,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:S(["clickable",l.showHelp?"text-info":""]),onClick:x(s.toggleHelp,["stop"])},null,8,["icon","class","onClick"])):p("",!0)]),e.$slots.actions?(i(),u("span",mn,[g(e.$slots,"actions",{},void 0,!0)])):p("",!0)],16),a("div",fn,[l.showHelp?(i(),u("span",_n,[g(e.$slots,"help",{},void 0,!0)])):p("",!0)])],64)}const bn=y(cn,[["render",gn],["__scopeId","data-v-cbe4e96e"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseHeading.vue"]]),hn=Object.freeze(Object.defineProperty({__proto__:null,default:bn},Symbol.toStringTag,{value:"Module"}));$.add(we,ke,Se,Oe);const E={null:{value:null,icon:["fas","question"],iconClass:"text-secondary",title:"Nicht relevant",nextValue:!0},true:{value:!0,icon:["fas","square"],iconClass:"",title:"Geschlossen",nextValue:!1},false:{value:!1,icon:["far","square"],iconClass:"",title:"Offen",nextValue:null}},vn={name:"OpenwbIoPattern",components:{FontAwesomeIcon:C},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:Array,required:!1,default:()=>[]}},emits:["update:modelValue"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{getIcon(e){return E[e].icon},getIconClass(e){return E[e].iconClass},getTitle(e){return E[e].title},toggleInput(e,t){this.value[e]=E[t].nextValue}}};function yn(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("openwb-base-setting-element");return i(),h(m,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)])]),default:c(()=>[(i(!0),u(T,null,q(s.value,(r,w)=>(i(),u("span",{key:w},[_(o,{title:s.getTitle(r),icon:s.getIcon(r),class:S([s.getIconClass(r),"fa-fw clickable"]),size:"2x",transform:r=="undefined"?"shrink-6":null,mask:r=="undefined"?["fas","square"]:null,onClick:x(V=>s.toggleInput(w,r),["stop","prevent"]),onMousedown:t[0]||(t[0]=x(()=>{},["stop","prevent"])),onMouseup:t[1]||(t[1]=x(()=>{},["stop","prevent"]))},null,8,["title","icon","class","transform","mask","onClick"])]))),128))]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help")]),key:"0"}:void 0]),1024)}const wn=y(vn,[["render",yn],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseIoPattern.vue"]]),kn=Object.freeze(Object.defineProperty({__proto__:null,default:wn},Symbol.toStringTag,{value:"Module"})),Sn={name:"OpenwbModalDialog",props:{title:{type:String,required:!1,default:""},subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},buttons:{type:Array,default:void 0},footerAlignment:{type:String,validator:function(e){return["around","between","center","end","start"].indexOf(e)!==-1},default:"end"},preventClose:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},emits:["modal-result"],computed:{myButtons(){var e=[];return this.buttons!==void 0&&(e=this.buttons),this.preventClose||e.push({text:"Schließen",event:"close"}),e}},methods:{handleClick(e){e.stopPropagation();let t=e.target.getAttribute("data-event");t===null&&(t="close"),(t!="close"||!this.preventClose)&&this.$emit("modal-result",t)}}},On={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},Bn={class:"modal-content"},$n={class:"modal-title"},Cn={class:"modal-body"},In=["data-event"];function Tn(e,t,n,d,l,s){return n.show?(i(),h(F,{key:0,to:"body"},[t[4]||(t[4]=a("div",{class:"modal-backdrop fade show"},null,-1)),a("div",{class:"modal fade d-block show",role:"dialog",onClick:t[2]||(t[2]=(...o)=>s.handleClick&&s.handleClick(...o))},[a("div",On,[a("div",Bn,[a("div",{class:S(["modal-header","bg-"+n.subtype])},[a("h4",$n,v(n.title),1),n.preventClose?p("",!0):(i(),u("button",{key:0,type:"button",class:"close",onClick:t[0]||(t[0]=(...o)=>s.handleClick&&s.handleClick(...o))}," × "))],2),a("div",Cn,[g(e.$slots,"default",{},()=>[t[3]||(t[3]=f("# Body #",-1))])]),s.myButtons.length>0?(i(),u("div",{key:0,class:S(["modal-footer d-flex","justify-content-"+n.footerAlignment])},[(i(!0),u(T,null,q(s.myButtons,o=>(i(),u("button",{key:o.text,type:"button",class:S(["btn",o.subtype?"btn-"+o.subtype:"btn-secondary"]),"data-dismiss":"modal","data-event":o.event?o.event:"close",onClick:t[1]||(t[1]=(...m)=>s.handleClick&&s.handleClick(...m))},v(o.text),11,In))),128))],2)):p("",!0)])])])])):p("",!0)}const Vn=y(Sn,[["render",Tn],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseModalDialog.vue"]]),An=Object.freeze(Object.defineProperty({__proto__:null,default:Vn},Symbol.toStringTag,{value:"Module"}));$.add(Be);const Mn={name:"OpenwbNumberInput",components:{FontAwesomeIcon:C,OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:Number,required:!1,default:void 0},unit:{type:String,required:!1,default:void 0},precision:{type:Number,default:void 0},emptyValue:{type:[Number,null],required:!1,default:null}},emits:["update:modelValue"],computed:{value:{get(){return this.precision!==void 0?parseFloat(Math.round(this.modelValue*Math.pow(10,this.precision))/Math.pow(10,this.precision)):this.modelValue},set(e){(isNaN(e)||typeof e!="number")&&(e=this.emptyValue),this.$emit("update:modelValue",e)}}}},Pn={class:"input-group"},qn={class:"input-group-prepend"},xn={class:"input-group-text"},Dn={key:0,class:"input-group-append"},En={class:"input-group-text"},Ln={key:1,class:"input-group-append"},jn={class:"input-group-text p-0"};function Wn(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("openwb-base-setting-element");return i(),h(m,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)],!0)]),default:c(()=>[a("div",Pn,[a("div",qn,[a("div",xn,[_(o,{icon:["fas","calculator"]})])]),B(a("input",O({"onUpdate:modelValue":t[0]||(t[0]=r=>s.value=r),type:"number",class:"form-control"},e.$attrs),null,16),[[I,s.value,void 0,{number:!0}]]),n.unit?(i(),u("div",Dn,[a("div",En,v(n.unit),1)])):p("",!0),e.$slots.append?(i(),u("div",Ln,[a("div",jn,[g(e.$slots,"append",{},void 0,!0)])])):p("",!0)])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help",{},void 0,!0)]),key:"0"}:void 0]),1024)}const Rn=y(Mn,[["render",Wn],["__scopeId","data-v-c2fb7eef"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseNumberInput.vue"]]),Nn=Object.freeze(Object.defineProperty({__proto__:null,default:Rn},Symbol.toStringTag,{value:"Module"}));$.add($e,Ce);const zn={name:"OpenwbRangeInput",components:{FontAwesomeIcon:C,OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:Number,required:!1,default:void 0},unit:{type:String,required:!1,default:void 0},min:{type:Number,required:!0,default:0},max:{type:Number,required:!0,default:100},step:{type:Number,required:!1,default:1},labels:{type:Array,required:!1,default:void 0}},emits:["update:modelValue"],computed:{label(){var e;return this.labels&&this.sliderValue!=null?this.sliderValue[g(e.$slots,"title",{},()=>[f(v(n.title),1)],!0)]),default:c(()=>[a("div",Fn,[a("div",Hn,[s.label?(i(),u("label",Un,v(s.label),1)):p("",!0),a("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[0]||(t[0]=(...r)=>s.decrement&&s.decrement(...r))},[_(o,{icon:["fas","step-backward"]})]),a("div",Gn,[B(a("input",O({"onUpdate:modelValue":t[1]||(t[1]=r=>s.sliderValue=r),type:"range",class:"form-control-range rangeInput",min:n.min,max:n.max,step:n.step},e.$attrs),null,16,Jn),[[I,s.sliderValue,void 0,{number:!0}]])]),a("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[2]||(t[2]=(...r)=>s.increment&&s.increment(...r))},[_(o,{icon:["fas","step-forward"]})])])])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help",{},void 0,!0)]),key:"0"}:void 0]),1024)}const Zn=y(zn,[["render",Kn],["__scopeId","data-v-449fb0a5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseRangeInput.vue"]]),Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"}));$.add(G);const Yn={name:"OpenwbSelectInput",components:{FontAwesomeIcon:C,OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!1,default:void 0},modelValue:{type:[String,Number,Array,null],required:!1,default:void 0},emptyValue:{type:[String,Number,Array],required:!1,default:void 0},groups:{type:Array,required:!1,default:void 0},options:{type:Array,required:!1,default:void 0},notSelected:{type:String,default:void 0},addButton:{type:Boolean,default:!1}},emits:["update:modelValue","input:add"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},addDisabled:{get(){return this.value===void 0}}},methods:{addClicked(){this.addDisabled||this.$emit("input:add")}}},Xn={class:"w-100"},es={class:"input-group"},ts={key:0,class:"input-group-prepend"},ns={class:"input-group-text"},ss=["value"],os=["value"],as=["label"],is=["value"],ls={key:1,class:"input-group-append"};function rs(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("openwb-base-setting-element");return i(),h(m,null,A({default:c(()=>[a("div",Xn,[a("div",es,[e.$slots.prefix?(i(),u("div",ts,[a("div",ns,[g(e.$slots,"prefix")])])):p("",!0),B(a("select",O({"onUpdate:modelValue":t[0]||(t[0]=r=>s.value=r),class:"col form-control"},e.$attrs),[n.notSelected!==void 0?(i(),u("option",{key:0,value:n.emptyValue,disabled:""}," -- "+v(n.notSelected)+" -- ",9,ss)):p("",!0),(i(!0),u(T,null,q(n.options,r=>(i(),u("option",{key:r.value,value:r.value},v(r.text),9,os))),128)),(i(!0),u(T,null,q(n.groups,r=>(i(),u("optgroup",{key:r.label,label:r.label},[(i(!0),u(T,null,q(r.options,w=>(i(),u("option",{key:w.value,value:w.value},v(w.text),9,is))),128))],8,as))),128))],16),[[ae,s.value]]),n.addButton?(i(),u("div",ls,[a("div",{class:S(["input-group-text",s.addDisabled?"not-clickable":"bg-success clickable"]),onClick:t[1]||(t[1]=r=>s.addClicked())},[g(e.$slots,"inputAdd",{},()=>[_(o,{icon:["fas","plus"]})])],2)])):p("",!0)])])]),_:2},[e.$slots.title||n.title?{name:"title",fn:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)])]),key:"0"}:void 0,e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help")]),key:"1"}:void 0]),1024)}const ds=y(Yn,[["render",rs],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSelectInput.vue"]]),us=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"}));$.add(j,Ie,Te);const cs={name:"OpenwbSubmitButtons",components:{FontAwesomeIcon:C},props:{formName:{type:String,default:void 0},hideReset:{type:Boolean,default:!1},hideDefaults:{type:Boolean,default:!0}},emits:["reset","defaults","save"],data(){return{showModalReset:!1,showModalDefaults:!1}},computed:{showModalSave(){return this.$store.state.local.savingData}},methods:{showResetModal(){this.showModalReset=!0},handleModalReset(e){this.showModalReset=!1,e=="confirm"&&this.$emit("reset")},showDefaultsModal(){this.showModalDefaults=!0},handleModalDefaults(e){this.showModalDefaults=!1,e=="confirm"&&this.$emit("defaults")},saveSettings(){if(this.formName){if(!document.forms[this.formName].reportValidity()){console.debug("form invalid");return}}else console.debug("no form to validate");this.$emit("save")}}},ps={class:"row justify-content-center mb-1"},ms={class:"col-md-4 d-flex py-1 justify-content-center"},fs={key:0,class:"col-md-4 d-flex py-1 justify-content-center"},_s={key:1,class:"col-md-4 d-flex py-1 justify-content-center"};function gs(e,t,n,d,l,s){const o=b("openwb-base-modal-dialog"),m=b("font-awesome-icon");return i(),u(T,null,[_(o,{show:s.showModalSave,title:"Speichern",subtype:"success","prevent-close":!0},{default:c(()=>t[3]||(t[3]=[f(" Einstellungen werden gespeichert... ",-1)])),_:1,__:[3]},8,["show"]),_(o,{show:l.showModalReset,title:"Änderungen verwerfen",subtype:"warning",buttons:[{text:"Ok",event:"confirm",subtype:"warning"}],onModalResult:s.handleModalReset},{default:c(()=>t[4]||(t[4]=[f(" Wollen Sie die nicht gespeicherten Änderungen wirklich verwerfen? ",-1)])),_:1,__:[4]},8,["show","onModalResult"]),_(o,{show:l.showModalDefaults,title:"Werkseinstellungen",subtype:"danger",buttons:[{text:"Ok",event:"confirm",subtype:"danger"}],onModalResult:s.handleModalDefaults},{default:c(()=>t[5]||(t[5]=[f(" Wollen Sie wirklich alle Werte dieser Seite auf die Werkseinstellungen zurücksetzen? ",-1)])),_:1,__:[5]},8,["show","onModalResult"]),a("div",ps,[a("div",ms,[a("button",{id:"saveSettingsBtn",type:"button",class:"btn btn-block btn-success",onClick:t[0]||(t[0]=(...r)=>s.saveSettings&&s.saveSettings(...r))},[t[6]||(t[6]=f(" Speichern ",-1)),_(m,{icon:["fas","check"]})])]),n.hideReset?p("",!0):(i(),u("div",fs,[a("button",{id:"modalResetBtn",type:"button",class:"btn btn-block btn-warning",onClick:t[1]||(t[1]=(...r)=>s.showResetModal&&s.showResetModal(...r))},[t[7]||(t[7]=f(" Änderungen verwerfen ",-1)),_(m,{icon:["fas","undo"]})])])),n.hideDefaults?p("",!0):(i(),u("div",_s,[a("button",{id:"modalDefaultsBtn",type:"button",class:"btn btn-block btn-danger",onClick:t[2]||(t[2]=(...r)=>s.showDefaultsModal&&s.showDefaultsModal(...r))},[t[8]||(t[8]=f(" Werkseinstellungen ",-1)),_(m,{icon:["fas","times"]})])]))])],64)}const bs=y(cs,[["render",gs],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSubmitButtons.vue"]]),hs=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"}));$.add(J,Ve,Ae,Me,Pe,K,qe,xe,De,Ee,Le,je);const vs={name:"OpenwbTextInput",components:{FontAwesomeIcon:C,OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:[String,Object],required:!1,default:void 0},subtype:{validator:function(e){return["text","email","host","url","user","json","password","time","date","month","year"].indexOf(e)!==-1},default:"text"},pattern:{type:String,required:!1,default:void 0},unit:{type:String,required:!1,default:void 0},emptyValue:{type:[String,Object,null],required:!1,default:null},showQuickButtons:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{showPassword:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.warn("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch(t){console.error("parsing JSON failed: "+e,t),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else e==""&&(e=this.emptyValue),this.$emit("update:modelValue",e)}},inputRef(){switch(this.subtype){case"json":return this.$refs.jsonInput;case"password":return this.$refs.passwordInput;case"host":return this.$refs.hostInput;case"email":case"url":return this.$refs.urlInput;case"time":return this.$refs.timeInput;case"date":return this.$refs.dateInput;case"month":return this.$refs.monthInput;case"year":return this.$refs.yearInput}return this.$refs.textInput},hostPattern(){return"(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$)|(^(?=.*[a-zA-Z].*$)([a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])$)|(^((?=[^.]*[a-zA-Z][^.]*\\.)([a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9]\\.))+((?=[^.]*[a-zA-Z].*$)([a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9]))$)"}},methods:{togglePassword(){this.showPassword=!this.showPassword},modify(e){var t,n=new Date(this.modelValue);switch(this.subtype){case"date":n.setDate(n.getDate()+e),t=String(n.getFullYear())+"-"+String(n.getMonth()+1).padStart(2,"0")+"-"+String(n.getDate()).padStart(2,"0");break;case"month":n.setMonth(n.getMonth()+e),t=String(n.getFullYear())+"-"+String(n.getMonth()+1).padStart(2,"0");break;case"year":n.setYear(n.getFullYear()+e),t=String(n.getFullYear());break;default:console.warn(`cannot modify input of subtype '${this.subtype}'`);return}t>this.inputRef.max||t[g(e.$slots,"title",{},()=>[f(v(n.title),1)],!0)]),default:c(()=>[a("div",ys,[a("div",ws,[a("div",ks,[a("div",Ss,[n.subtype=="text"?(i(),h(o,{key:0,icon:["fas","keyboard"]})):p("",!0),n.subtype=="email"?(i(),h(o,{key:1,icon:["fas","envelope"]})):p("",!0),n.subtype=="host"?(i(),h(o,{key:2,icon:["fas","network-wired"]})):p("",!0),n.subtype=="url"?(i(),h(o,{key:3,icon:["fas","globe"]})):p("",!0),n.subtype=="user"?(i(),h(o,{key:4,icon:["fas","user"]})):p("",!0),n.subtype=="json"?(i(),h(o,{key:5,icon:["fas","code"]})):p("",!0),n.subtype=="password"?(i(),h(o,{key:6,icon:l.showPassword?["fas","unlock"]:["fas","lock"]},null,8,["icon"])):p("",!0),n.subtype=="time"?(i(),h(o,{key:7,icon:["fas","clock"]})):p("",!0),n.subtype=="date"||n.subtype=="month"||n.subtype=="year"?(i(),h(o,{key:8,icon:["fas","calendar-day"]})):p("",!0)])]),["text","user"].includes(n.subtype)?B((i(),u("input",O({key:0,ref:"textInput","onUpdate:modelValue":t[0]||(t[0]=r=>s.value=r),type:"text",class:["form-control",{invalid:l.inputInvalid}]},e.$attrs,{pattern:n.pattern}),null,16,Os)),[[I,s.value]]):p("",!0),n.subtype=="json"?B((i(),u("input",O({key:1,ref:"jsonInput","onUpdate:modelValue":t[1]||(t[1]=r=>s.value=r),type:"text",class:"form-control"},e.$attrs,{pattern:n.pattern}),null,16,Bs)),[[I,s.value]]):p("",!0),n.subtype=="password"?B((i(),u("input",O({key:2,ref:"passwordInput","onUpdate:modelValue":t[2]||(t[2]=r=>s.value=r),type:l.showPassword?"text":"password",class:"form-control"},e.$attrs,{pattern:n.pattern}),null,16,$s)),[[N,s.value]]):p("",!0),n.subtype=="host"?B((i(),u("input",O({key:3,ref:"hostInput","onUpdate:modelValue":t[3]||(t[3]=r=>s.value=r),type:"text",class:"form-control"},e.$attrs,{pattern:s.hostPattern}),null,16,Cs)),[[I,s.value]]):p("",!0),["email","url"].includes(n.subtype)?B((i(),u("input",O({key:4,"onUpdate:modelValue":t[4]||(t[4]=r=>s.value=r),refs:"urlInput",type:n.subtype,class:"form-control"},e.$attrs),null,16,Is)),[[N,s.value]]):p("",!0),n.subtype=="time"?B((i(),u("input",O({key:5,ref:"timeInput","onUpdate:modelValue":t[5]||(t[5]=r=>s.value=r),type:"time",class:"form-control"},e.$attrs),null,16)),[[I,s.value]]):p("",!0),n.subtype=="date"?B((i(),u("input",O({key:6,ref:"dateInput","onUpdate:modelValue":t[6]||(t[6]=r=>s.value=r),type:"date",class:"form-control"},e.$attrs),null,16)),[[I,s.value]]):p("",!0),n.subtype=="month"?B((i(),u("input",O({key:7,ref:"monthInput","onUpdate:modelValue":t[7]||(t[7]=r=>s.value=r),type:"month",class:"form-control"},e.$attrs),null,16)),[[I,s.value]]):p("",!0),n.subtype=="year"?B((i(),u("input",O({key:8,ref:"yearInput","onUpdate:modelValue":t[8]||(t[8]=r=>s.value=r),type:"number",class:"form-control"},e.$attrs),null,16)),[[I,s.value]]):p("",!0),n.unit?(i(),u("div",Ts,[a("div",Vs,v(n.unit),1)])):p("",!0),n.subtype=="password"?(i(),u("div",{key:10,class:"input-group-append clickable",onClick:t[9]||(t[9]=(...r)=>s.togglePassword&&s.togglePassword(...r))},[a("div",As,[_(o,{icon:l.showPassword?["far","eye"]:["far","eye-slash"]},null,8,["icon"])])])):p("",!0),n.showQuickButtons&&(n.subtype=="date"||n.subtype=="month"||n.subtype=="year")?(i(),u("div",{key:11,class:"input-group-append clickable",onClick:t[10]||(t[10]=r=>s.modify(-1))},t[12]||(t[12]=[a("div",{class:"input-group-text"},"-",-1)]))):p("",!0),n.showQuickButtons&&(n.subtype=="date"||n.subtype=="month"||n.subtype=="year")?(i(),u("div",{key:12,class:"input-group-append clickable",onClick:t[11]||(t[11]=r=>s.modify(1))},t[13]||(t[13]=[a("div",{class:"input-group-text"},"+",-1)]))):p("",!0),e.$slots.append?(i(),u("div",Ms,[a("div",Ps,[g(e.$slots,"append",{},void 0,!0)])])):p("",!0)])])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help",{},void 0,!0)]),key:"0"}:void 0]),1024)}const xs=y(vs,[["render",qs],["__scopeId","data-v-6927d479"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextInput.vue"]]),Ds=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"}));$.add(J,K);const Es={name:"OpenwbTextareaInput",components:{OpenwbBaseSettingElement:M,FontAwesomeIcon:C},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:[String,Object],required:!1,default:void 0},subtype:{validator:function(e){return["text","json"].indexOf(e)!==-1},default:"text"}},emits:["update:modelValue"],data(){return{inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.debug("returning invalid JSON as String"),this.tempValue):JSON.stringify(this.tempValue,void 0,2):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch(t){console.warn("parsing JSON failed: "+e,t),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else this.$emit("update:modelValue",e)}},length:{get(){return this.value!==void 0?this.value.length:0}}}},Ls={class:"w-100"},js={class:"input-group"},Ws={class:"input-group-prepend"},Rs={class:"input-group-text"},Ns={key:2,class:"input-group-append"},zs={class:"input-group-text"},Fs={class:"form-text text-muted text-right"};function Hs(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("openwb-base-setting-element");return i(),h(m,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)],!0)]),default:c(()=>[a("div",Ls,[a("div",js,[a("div",Ws,[a("div",Rs,[n.subtype=="text"?(i(),h(o,{key:0,icon:["fas","keyboard"]})):p("",!0),n.subtype=="json"?(i(),h(o,{key:1,icon:["fas","code"]})):p("",!0)])]),n.subtype==="json"?B((i(),u("textarea",O({key:0,ref:"jsonInput","onUpdate:modelValue":t[0]||(t[0]=r=>s.value=r),class:"form-control"},e.$attrs),null,16)),[[I,s.value,void 0,{lazy:!0}]]):B((i(),u("textarea",O({key:1,"onUpdate:modelValue":t[1]||(t[1]=r=>s.value=r),class:"form-control"},e.$attrs),null,16)),[[I,s.value]]),e.$attrs.maxlength?(i(),u("div",Ns,[a("div",zs,[a("small",Fs,v(s.length)+" / "+v(e.$attrs.maxlength),1)])])):p("",!0)])])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help",{},void 0,!0)]),key:"0"}:void 0]),1024)}const Us=y(Es,[["render",Hs],["__scopeId","data-v-3d93046b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextarea.vue"]]),Gs=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"}));const Js={name:"OpenwbToast",props:{topic:{type:String,required:!0},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},source:{type:String,required:!0,validator:function(e){return["system","client","command"].indexOf(e)!==-1}},timestamp:{type:Number,required:!0}},emits:["dismiss","hide"],data(){return{handle:void 0,relativeTime:void 0,hidden:!1}},mounted(){this.handle=window.setInterval(this.updateRelativeTime,1e3)},unmounted(){window.clearInterval(this.handle)},methods:{dismiss(){this.$emit("dismiss",{topic:this.topic})},updateRelativeTime(){const e={year:31536e6,month:2628e6,day:864e5,hour:36e5,minute:6e4,second:1e3};var t=new Intl.RelativeTimeFormat("de",{numeric:"auto"});const d=new Date-this.timestamp*1e3;for(var l in e)if(Math.abs(d)>e[l]){this.relativeTime=t.format(Math.round(-d/e[l]),l);break}d>10*1e3&&!this.hidden&&(this.hidden=!0,this.$emit("hide",{topic:this.topic}))}}},Ks={key:0,class:"time-diff"},Zs={class:"toast-body"};function Qs(e,t,n,d,l,s){return i(),u("div",{class:S(["toast","border-"+n.subtype]),role:"alert"},[a("div",{class:S(["toast-header","bg-"+n.subtype])},[t[2]||(t[2]=a("strong",{class:"pr-2 mr-auto"},"openWB",-1)),n.timestamp?(i(),u("small",Ks,v(l.relativeTime),1)):p("",!0),a("button",{type:"button",class:"ml-2 mb-1 close","data-dismiss":"toast","aria-label":"Close",onClick:t[0]||(t[0]=(...o)=>s.dismiss&&s.dismiss(...o))},t[1]||(t[1]=[a("span",{"aria-hidden":"true"},"×",-1)]))],2),a("div",Zs,[g(e.$slots,"default",{},void 0,!0)])],2)}const Ys=y(Js,[["render",Qs],["__scopeId","data-v-c51b5764"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseToast.vue"]]),Xs=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"}));$.add(We);const eo={name:"OpenwbNavBar",components:{FontAwesomeIcon:C},computed:{nodeEnv(){return"development"}},watch:{$route(){this.$refs.collapsibleNavbar.classList.remove("show"),this.$refs.navbarButton.classList.add("collapsed"),this.$refs.navbarButton.setAttribute("aria-expanded",!1)}}},to={class:"navbar navbar-expand-lg bg-dark navbar-dark fixed-top"},no={ref:"navbarButton",class:"navbar-toggler mr-5",type:"button","data-toggle":"collapse","data-target":"#collapsibleNavbar"},so={id:"collapsibleNavbar",ref:"collapsibleNavbar",class:"collapse navbar-collapse navbar-nav-scroll"},oo={class:"navbar-nav"},ao={class:"nav-item"},io={class:"nav-item dropdown nav-separator-after"},lo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},ro={class:"nav-item dropdown"},uo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},co={class:"nav-item dropdown"},po={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},mo={class:"nav-item dropdown"},fo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},_o={class:"nav-item dropdown"},go={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},bo={class:"nav-item nav-separator-before"},ho={class:"nav-link",href:"https://github.com/openWB/core/wiki",target:"_blank"};function vo(e,t,n,d,l,s){const o=b("router-link"),m=b("font-awesome-icon");return i(),u("nav",to,[t[29]||(t[29]=a("a",{class:"navbar-brand",href:"/openWB/web/"},[a("span",null,"openWB")],-1)),a("button",no,t[0]||(t[0]=[a("span",{class:"navbar-toggler-icon"},null,-1)]),512),a("div",so,[a("ul",oo,[a("li",ao,[_(o,{to:"/Status",class:"nav-link","active-class":"active disabled"},{default:c(()=>t[1]||(t[1]=[f(" Status ",-1)])),_:1,__:[1]})]),a("li",io,[t[4]||(t[4]=a("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Auswertungen ",-1)),a("div",lo,[_(o,{to:"/Logging/ChargeLog",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[2]||(t[2]=[f(" Ladeprotokoll ",-1)])),_:1,__:[2]}),_(o,{to:"/Logging/Chart",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[3]||(t[3]=[f(" Diagramme ",-1)])),_:1,__:[3]})])]),a("li",ro,[t[7]||(t[7]=a("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Einstellungen ",-1)),a("div",uo,[_(o,{to:"/GeneralConfig",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[5]||(t[5]=[f(" Allgemein ",-1)])),_:1,__:[5]}),_(o,{to:"/OptionalComponents",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[6]||(t[6]=[f(" Optionale Hardware ",-1)])),_:1,__:[6]})])]),a("li",co,[t[10]||(t[10]=a("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Ladeeinstellungen ",-1)),a("div",po,[_(o,{to:"/GeneralChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[8]||(t[8]=[f(" Übergreifendes ",-1)])),_:1,__:[8]}),_(o,{to:"/PVChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[9]||(t[9]=[f(" PV-Laden ",-1)])),_:1,__:[9]})])]),a("li",mo,[t[18]||(t[18]=a("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Konfiguration ",-1)),a("div",fo,[_(o,{to:"/HardwareInstallation",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[11]||(t[11]=[f(" Geräte und Komponenten ",-1)])),_:1,__:[11]}),_(o,{to:"/LoadManagementConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[12]||(t[12]=[f(" Lastmanagement ",-1)])),_:1,__:[12]}),_(o,{to:"/ChargePointInstallation",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[13]||(t[13]=[f(" Ladepunkte ",-1)])),_:1,__:[13]}),_(o,{to:"/VehicleConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[14]||(t[14]=[f(" Fahrzeuge ",-1)])),_:1,__:[14]}),_(o,{to:"/IoConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[15]||(t[15]=[f(" Ein-/Ausgänge ",-1)])),_:1,__:[15]}),t[16]||(t[16]=a("div",{class:"dropdown-divider"},null,-1)),t[17]||(t[17]=a("a",{href:"modules/legacy_smart_home/smarthomeconfig.php",class:"dropdown-item",target:"_blank"}," SmartHome ",-1))])]),a("li",_o,[t[27]||(t[27]=a("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," System ",-1)),a("div",go,[_(o,{to:"/System/InstallAssistant",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[19]||(t[19]=[f(" Einrichtungsassistent ",-1)])),_:1,__:[19]}),_(o,{to:"/System/CloudConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[20]||(t[20]=[f(" openWB Cloud ",-1)])),_:1,__:[20]}),_(o,{to:"/System/MqttBridgeConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[21]||(t[21]=[f(" MQTT-Brücken ",-1)])),_:1,__:[21]}),_(o,{to:"/System/DebugConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[22]||(t[22]=[f(" Fehlersuche ",-1)])),_:1,__:[22]}),_(o,{to:"/System/Support",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[23]||(t[23]=[f(" Support ",-1)])),_:1,__:[23]}),_(o,{to:"/System/DataManagement",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[24]||(t[24]=[f(" Datenverwaltung ",-1)])),_:1,__:[24]}),_(o,{to:"/System/SystemConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[25]||(t[25]=[f(" System ",-1)])),_:1,__:[25]}),_(o,{to:"/System/LegalSettings",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[26]||(t[26]=[f(" Rechtliches ",-1)])),_:1,__:[26]})])]),a("li",bo,[a("a",ho,[t[28]||(t[28]=f(" Wiki ",-1)),_(m,{icon:["fas","external-link-alt"]})])])])],512)])}const yo=y(eo,[["render",vo],["__scopeId","data-v-e7a6d0c0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageNavbar.vue"]]);const wo={name:"OpenwbPageFooter"},ko={id:"footer",class:"footer bg-dark text-light font-small"},So={class:"container text-center"};function Oo(e,t,n,d,l,s){return i(),u("footer",ko,[a("div",So,[a("small",null," Sie befinden sich hier: Einstellungen / "+v(e.$route.meta.heading),1)])])}const Bo=y(wo,[["render",Oo],["__scopeId","data-v-3c9a239a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageFooter.vue"]]),$o={name:"ComponentState",emits:["reset","defaults","save"],data(){return{mqttTopicsToSubscribe:[]}},computed:{weekdays(){return["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"]},chargeModes(){return["instant_charging","pv_charging","scheduled_charging","time_charging","eco_charging","stop"]},statusLevel(){return["success","warning","danger"]},stateIcon:{get(){switch(this.$store.state.mqtt[this.baseTopic+"/get/fault_state"]){case 0:return["fas","check-circle"];case 1:return["fas","exclamation-triangle"];case 2:return["fas","times-circle"];default:return["fas","check-circle"]}}}},mounted(){this.mqttTopicsToSubscribe.length>0&&this.$root.doSubscribe(this.mqttTopicsToSubscribe)},unmounted(){this.mqttTopicsToSubscribe.length>0&&this.$root.doUnsubscribe(this.mqttTopicsToSubscribe)},methods:{updateState(e,t,n=void 0){console.debug("updateState:",e,t,n),this.$store.commit({type:"updateTopic",topic:e,objectPath:n,payload:t})},ac_current2dc_power(e){return parseFloat((e*3*230/1e3).toFixed(0))},dc_power2ac_current(e){return parseFloat((e*1e3/230/3).toFixed(2))},getWildcardIndexList(e,t=!1){let n=e;t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$");let d=Object.keys(this.$store.state.mqtt).filter(l=>l.match(n));return d.forEach((l,s,o)=>{o[s]=parseInt(l.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,""))}),d},getWildcardTopics(e,t=!1){let n=e;return t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$"),Object.keys(this.$store.state.mqtt).filter(d=>d.match(n)).reduce((d,l)=>({...d,[l]:this.$store.state.mqtt[l]}),{})},formatDate(e,t={year:"numeric",month:"2-digit",day:"2-digit"}){return new Date(e).toLocaleDateString(void 0,t)},formatNumber(e,t=0,n=t,d=1){if(!(e==null||isNaN(e)))return e=e*d,e.toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:n})},formatNumberTopic(e,t=0,n=t,d=1){return this.$store.state.mqtt[e]?this.formatNumber(this.$store.state.mqtt[e],t,n,d):"-"},formatPhaseArrayNumberTopic(e,t=0,n=t,d=1){return this.$store.state.mqtt[e]?this.$store.state.mqtt[e].map(l=>this.formatNumber(l,t,n,d)):["-","-","-"]},translateChargeMode(e){switch(e){case"instant_charging":return"Sofort";case"pv_charging":return"PV";case"scheduled_charging":return"Zielladen";case"time_charging":return"Zeitladen";case"eco_charging":return"Eco";case"standby":return"Standby";case"stop":return"Stop";default:return console.warn("unknown charge mode:",e),e}},getFaultStateSubtype(e){const t=this.$store.state.mqtt[e+"/get/fault_state"];if(t===void 0)return"warning";switch(t){case 0:return"success";case 1:return"warning";case 2:return"danger";default:return"dark"}}}},Q=y($o,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/mixins/ComponentState.vue"]]);$.add(Re,Ne);const Co={name:"OpenwbPageMessages",components:{FontAwesomeIcon:C,FontAwesomeLayers:ze,FontAwesomeLayersText:Fe},mixins:[Q],data(){return{mqttTopicsToSubscribe:["openWB/system/messages/+","openWB/command/"+this.$root.mqttClientId+"/messages/+"],showAllMessages:!1,hiddenMessages:[]}},computed:{alertLevel(){return this.messages.reduce((t,n)=>((t=="light"&&["info","success","warning","danger"].includes(n.type)||t=="info"&&["success","warning","danger"].includes(n.type)||t=="success"&&["warning","danger"].includes(n.type)||t=="warning"&&n.type=="danger")&&(t=n.type),t),"light")},messages(){const e=[];return this.systemMessages.forEach(t=>{e.push(t)}),this.clientMessages.forEach(t=>{e.push(t)}),e.sort(this.compareMessagesByTimestamp),e},recentMessages(){return this.showAllMessages?this.messages:this.messages.filter(e=>!this.hiddenMessages.includes(e.topic))},messageIndicatorClass(){return"text-"+this.alertLevel},systemMessages(){let e=this.getWildcardTopics("openWB/system/messages/+");var t=[];for(const[n,d]of Object.entries(e))t.push({topic:n,...d});return t},clientMessages(){let e=this.getWildcardTopics("openWB/command/"+this.$root.mqttClientId+"/messages/+");var t=[];for(const[n,d]of Object.entries(e))t.push({topic:n,...d});return t}},methods:{toggleAllMessages(){this.showAllMessages=!this.showAllMessages},compareMessagesByTimestamp(e,t){return t.timestamp-e.timestamp},clearTopic(e){this.$root.doPublish(e,void 0)},dismissMessage(e){this.clearTopic(e.topic);var t=this.hiddenMessages.indexOf(e.topic);t>-1&&this.hiddenMessages.splice(t,1)},dismissAllMessages(){this.messages.forEach(e=>{this.clearTopic(e.topic)}),this.hiddenMessages=[],this.toggleAllMessages()},hideMessage(e){this.hiddenMessages.includes(e.topic)||this.hiddenMessages.push(e.topic)}}},Io=["innerHTML"];function To(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("font-awesome-layers-text"),r=b("font-awesome-layers"),w=b("openwb-base-alert"),V=b("openwb-base-click-button"),D=b("openwb-base-toast");return i(),u(T,null,[(i(),h(F,{to:"body"},[a("div",{id:"message-indicator",class:S(["text-light mt-1 p-2 mr-1 clickable",l.showAllMessages?"active":""]),onClick:t[0]||(t[0]=(...P)=>s.toggleAllMessages&&s.toggleAllMessages(...P))},[_(r,{"full-width":"",style:{"font-size":"175%"}},{default:c(()=>[_(o,{icon:l.showAllMessages?["fas","bell"]:["far","bell"],class:S(s.messageIndicatorClass)},null,8,["icon","class"]),s.messages.length>0?(i(),h(m,{key:0,counter:"",value:s.messages.length,position:"top-right",class:"message-counter bg-light text-dark"},null,8,["value"])):p("",!0)]),_:1})],2)])),s.recentMessages.length>0||l.showAllMessages?(i(),u("div",{key:0,class:S(["openwb-toast-container",l.showAllMessages?"full-height":""])},[s.recentMessages.length==0?(i(),h(w,{key:0,subtype:"info"},{default:c(()=>t[1]||(t[1]=[f(" Keine Nachrichten vorhanden. ",-1)])),_:1,__:[1]})):l.showAllMessages?(i(),h(V,{key:1,class:"btn-sm btn-secondary mb-1",onButtonClicked:s.dismissAllMessages},{default:c(()=>t[2]||(t[2]=[f(" Alle Nachrichten löschen ",-1)])),_:1,__:[2]},8,["onButtonClicked"])):p("",!0),(i(!0),u(T,null,q(s.recentMessages,P=>(i(),h(D,{key:P.topic,topic:P.topic,source:P.source,subtype:P.type,timestamp:P.timestamp,onDismiss:s.dismissMessage,onHide:s.hideMessage},{default:c(()=>[a("span",{innerHTML:P.message},null,8,Io)]),_:2},1032,["topic","source","subtype","timestamp","onDismiss","onHide"]))),128))],2)):p("",!0)],64)}const Vo=y(Co,[["render",To],["__scopeId","data-v-2c25f0d0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageMessages.vue"]]),Ao={name:"OpenwbPageBlocker",mixins:[Q],data(){return{mqttTopicsToSubscribe:["openWB/system/boot_done","openWB/system/update_in_progress"]}},computed:{title(){return this.bootInProgress||this.updateInProgress?"openWB ist noch nicht bereit":this.reloadRequired?"Neues Laden der Seite erforderlich":"???"},myButtons(){return!(this.bootInProgress||this.updateInProgress)&&this.reloadRequired?[{text:"Jetzt neu laden",subtype:"success",event:"reload"}]:[]},bootInProgress(){return this.$store.state.mqtt["openWB/system/boot_done"]==null?!0:!this.$store.state.mqtt["openWB/system/boot_done"]},updateInProgress(){return this.$store.state.mqtt["openWB/system/update_in_progress"]==null?!1:this.$store.state.mqtt["openWB/system/update_in_progress"]},reloadRequired(){return this.$store.state.local.reloadRequired},showModalBlocker(){return this.bootInProgress||this.updateInProgress||this.reloadRequired}},methods:{handleModalResult(e){e=="reload"?location.reload():console.warn("unknown event",e)}}},Mo={class:"openwb-blocker"},Po={key:0},qo={key:1},xo={key:2},Do={key:3};function Eo(e,t,n,d,l,s){const o=b("openwb-base-modal-dialog");return i(),u("div",Mo,[_(o,{show:s.showModalBlocker,title:s.title,subtype:"dark","prevent-close":!0,buttons:s.myButtons,onModalResult:t[0]||(t[0]=m=>s.handleModalResult(m))},{default:c(()=>[s.bootInProgress?(i(),u("p",Po,"Der Systemstart ist noch nicht abgeschlossen.")):p("",!0),s.updateInProgress?(i(),u("p",qo,"Es wird eine Systemaktualisierung ausgeführt.")):p("",!0),!(s.bootInProgress||s.updateInProgress)&&s.reloadRequired?(i(),u("p",xo,"Bitte die Seite neu laden.")):(i(),u("p",Do,"Bitte warten..."))]),_:1},8,["show","title","buttons"])])}const Lo=y(Ao,[["render",Eo],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageBlocker.vue"]]);const jo={name:"OpenwbSettingsApp",components:{NavBar:yo,PageFooter:Bo,Messages:Vo,Blocker:Lo},data(){return{client:{connected:!1},connection:{protocol:location.protocol=="https:"?"wss":"ws",host:location.hostname,port:parseInt(location.port)||(location.protocol=="https:"?443:80),endpoint:"/ws",connectTimeout:4e3,reconnectPeriod:4e3}}},computed:{mqttClientId(){try{return this.client.options.clientId}catch(e){console.error("mqttClientId error",e);return}},topicList(){return Object.keys(this.$store.state.mqtt)}},created(){this.createConnection()},methods:{async saveValues(e=void 0){function t(d){return new Promise(l=>setTimeout(l,d))}this.$store.state.local.savingData=!0;let n={};e===void 0?(console.debug("no topics defined, so save everything we have in store"),n=this.$store.state.mqtt):Array.isArray(e)?e.forEach(d=>{n[d]=this.$store.state.mqtt[d]}):console.error("expected array, got ",typeof e);for(const[d,l]of Object.entries(n)){let s=d.replace("openWB/","openWB/set/");console.debug("saving data:",s,l),this.doPublish(s,l),await t(100)}this.$store.state.local.savingData=!1},resetValues(e=this.topicList){console.debug("resetting values..."),console.debug("topics: ",e),this.doUnsubscribe(e),this.doSubscribe(e)},setDefaultValues(){console.debug("setting default values... (ToDo)")},sendCommand(e){console.debug("sendCommand:",e),this.doPublish("openWB/set/command/"+this.client.options.clientId+"/todo",e,!1)},createConnection(){const{protocol:e,host:t,port:n,endpoint:d,...l}=this.connection,s=`${e}://${t}:${n}${d}`;console.debug("connecting to broker:",s);try{this.client=ie.connect(s,l)}catch(o){console.error("mqtt.connect error",o)}this.client.on("connect",()=>{console.debug("Connection succeeded! ClientId: ",this.client.options.clientId),this.doSubscribe(["openWB/system/usage_terms_acknowledged"]),this.doSubscribe(["openWB/system/installAssistantDone"])}),this.client.on("error",o=>{console.error("Connection failed",o)}),this.client.on("message",(o,m)=>{if(m.toString().length>0){let r;try{r=JSON.parse(m.toString())}catch(w){console.debug("Json parsing failed, fallback to string: ",o,w),r=m.toString()}this.$store.commit("updateTopic",{topic:o,payload:r})}else this.$store.commit("removeTopic",o)})},doSubscribe(e){e.forEach(t=>{this.$store.commit("addSubscription",t),this.$store.getters.subscriptionCount(t)==1?(t.includes("#")||t.includes("+")?console.debug("skipping init of wildcard topic:",t):this.$store.commit("addTopic",{topic:t,payload:void 0}),this.client.subscribe(t,{},n=>{if(n){console.error("Subscribe to topics error",n);return}})):console.debug("Already subscribed to topic: ",t)})},doUnsubscribe(e){e.forEach(t=>{this.$store.commit("removeSubscription",t),this.$store.getters.subscriptionCount(t)==0?(this.client.unsubscribe(t,n=>{n&&console.error("Unsubscribe error",n)}),t.includes("#")||t.includes("+")?(console.debug("expanding wildcard topic:",t),Object.keys(this.getWildcardTopics(t)).forEach(n=>{console.debug("removing wildcardTopic:",n),this.$store.commit("removeTopic",n)})):(console.debug("removing topic:",t),this.$store.commit("removeTopic",t))):console.debug("Still subscribed to topic: ",t)})},doPublish(e,t,n=!0,d=2){let l={qos:d,retain:n};this.client.publish(e,JSON.stringify(t),l,s=>{s&&console.error("Publish error",s)})},postClientMessage(e,t="secondary"){console.debug("postMessage:",e,t);const n=Date.now(),d="openWB/command/"+this.mqttClientId+"/messages/"+n;this.$store.commit({type:"addTopic",topic:d,payload:{message:e,type:t,source:"client",timestamp:Math.floor(n/1e3)}})},getWildcardTopics(e,t=!1){let n=e;return t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$"),Object.keys(this.$store.state.mqtt).filter(d=>d.match(n)).reduce((d,l)=>({...d,[l]:this.$store.state.mqtt[l]}),{})}}},Wo={role:"main",class:"container"},Ro={id:"content"};function No(e,t,n,d,l,s){const o=b("nav-bar"),m=b("router-view"),r=b("page-footer"),w=b("messages"),V=b("blocker");return i(),u(T,null,[a("header",null,[_(o)]),a("div",Wo,[a("div",Ro,[a("h1",null,v(e.$route.meta.heading),1),_(m,{onSave:s.saveValues,onReset:s.resetValues,onDefaults:s.setDefaultValues,onSendCommand:s.sendCommand},null,8,["onSave","onReset","onDefaults","onSendCommand"])])]),_(r),_(w),_(V)],64)}const zo=y(jo,[["render",No],["__file","/opt/openWB-dev/openwb-ui-settings/src/App.vue"]]),Fo="modulepreload",Ho=function(e){return"/openWB/web/settings/"+e},z={},k=function(t,n,d){if(!n||n.length===0)return t();const l=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Ho(s),s in z)return;z[s]=!0;const o=s.endsWith(".css"),m=o?'[rel="stylesheet"]':"";if(!!d)for(let V=l.length-1;V>=0;V--){const D=l[V];if(D.href===s&&(!o||D.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${m}`))return;const w=document.createElement("link");if(w.rel=o?"stylesheet":Fo,o||(w.as="script",w.crossOrigin=""),w.href=s,document.head.appendChild(w),o)return new Promise((V,D)=>{w.addEventListener("load",V),w.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};let Y={mqtt:{},mqttSubscriptions:{},local:{reloadRequired:!1,savingData:!1}};Y.examples={text1:"Text...",text2:"mail@domain.com",text3:"openwb.local",text4:"http://www.openwb.de",text5:"Benutzername",text6:"12:34",text7:"2021-10-31",color1:"#ff0000",color2:"#0000ff",number1:5,number2:10,number3:28e-5,password1:"GeHeiM!",textarea1:"Langer Text...",range1:6,range2:10,select1:1,select2:void 0,buttonGroup1:1,checkbox1:!0,json1:{text:"Text",number:123},hierarchy1:[{id:0,type:"counter",children:[{id:3,type:"inverter",children:[]},{id:4,type:"bat",children:[]},{id:1,type:"cp",children:[]},{id:2,type:"cp",children:[]}]}],hierarchy1Labels:{0:"EVU",1:"Ladepunkt 1",2:"Ladepunkt 2",3:"Wechselrichter",4:"Batteriespeicher"},tags:["1234","2345","3456"],ioConfig:{active:!1,pattern:[null,!1,!0],action:{value:"stop_all",options:null}}};const L=le({state:Y,mutations:{storeLocal(e,t){e.local[t.name]=t.value},addTopic(e,t){Object.keys(e.mqtt).includes(t.topic)?console.warn("topic already exists: ",t.topic):e.mqtt[t.topic]=t.payload},removeTopic(e,t){delete e.mqtt[t]},updateTopic(e,t){const n=(d,l,s)=>l.split(".").reduce((o,m,r)=>o[m]=l.split(".").length===++r?s:o[m]||{},d);t.topic in e.mqtt||!(t.topic in e.examples)?t.objectPath!=null?n(e.mqtt[t.topic],t.objectPath,t.payload):e.mqtt[t.topic]=t.payload:(console.debug("topic not found in state.mqtt: ",t.topic),t.topic in e.examples?t.objectPath!=null?n(e.examples[t.topic],t.objectPath,t.payload):e.examples[t.topic]=t.payload:console.warn("topic not found in state: ",t.topic," giving up"))},addSubscription(e,t){t in e.mqttSubscriptions?e.mqttSubscriptions[t]+=1:e.mqttSubscriptions[t]=1,console.debug("subscription count: ",t,e.mqttSubscriptions[t])},removeSubscription(e,t){t in e.mqttSubscriptions&&(e.mqttSubscriptions[t]-=1,e.mqttSubscriptions[t]<=0&&delete e.mqttSubscriptions[t])}},actions:{},modules:{},getters:{usageTermsAcknowledged(e){return new Promise(t=>{if(e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0)t(e.mqtt["openWB/system/usage_terms_acknowledged"]);else{var n,d;n=setTimeout(()=>{clearInterval(d),t(!1)},5e3),d=setInterval(()=>{e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0&&(clearTimeout(n),clearInterval(d),t(e.mqtt["openWB/system/usage_terms_acknowledged"]))},100)}})},installAssistantDone(e){return new Promise(t=>{if(e.mqtt["openWB/system/installAssistantDone"]!==void 0)t(e.mqtt["openWB/system/installAssistantDone"]);else{var n,d;n=setTimeout(()=>{clearInterval(d),t(!1)},5e3),d=setInterval(()=>{e.mqtt["openWB/system/installAssistantDone"]!==void 0&&(clearTimeout(n),clearInterval(d),t(e.mqtt["openWB/system/installAssistantDone"]))},100)}})},subscriptionCount:e=>t=>e.mqttSubscriptions[t]||0}}),X=[{path:"/",redirect:"/GeneralConfig"},{path:"/Status",name:"Status",meta:{heading:"Status"},component:()=>k(()=>import("./Status-9fd32ca3.js"),["assets/Status-9fd32ca3.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-chartjs-94a826eb.js","assets/vendor-luxon-cc86f6dc.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/Status-a4f24178.css"])},{path:"/Logging/ChargeLog",name:"ChargeLog",meta:{heading:"Auswertungen - Ladeprotokoll"},component:()=>k(()=>import("./ChargeLog-0bc5a230.js"),["assets/ChargeLog-0bc5a230.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/ChargeLog-1fb3fa68.css"])},{path:"/Logging/Chart/:chartRange?/:initialDate?",name:"DailyChart",meta:{heading:"Auswertungen - Diagramme"},component:()=>k(()=>import("./Chart-526b0a77.js"),["assets/Chart-526b0a77.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-chartjs-94a826eb.js","assets/vendor-luxon-cc86f6dc.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/Chart-e20451b4.css"])},{path:"/GeneralConfig",name:"GeneralConfig",meta:{heading:"Einstellungen - Allgemein"},component:()=>k(()=>import("./GeneralConfig-a1e6f160.js").then(e=>e.a),["assets/GeneralConfig-a1e6f160.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/dynamic-import-helper-be004503.js"])},{path:"/OptionalComponents",name:"OptionalComponents",meta:{heading:"Einstellungen - Optionale Hardware"},component:()=>k(()=>import("./OptionalComponents-7d7b65c9.js").then(e=>e.O),["assets/OptionalComponents-7d7b65c9.js","assets/dynamic-import-helper-be004503.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/VehicleIdWikiHint-c0918982.js"])},{path:"/GeneralChargeConfig",name:"GeneralChargeConfig",meta:{heading:"Ladeeinstellungen - Übergreifendes"},component:()=>k(()=>import("./GeneralChargeConfig-866a1615.js").then(e=>e.G),["assets/GeneralChargeConfig-866a1615.js","assets/dynamic-import-helper-be004503.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css"])},{path:"/PVChargeConfig",name:"PVChargeConfig",meta:{heading:"Ladeeinstellungen - PV-Laden"},component:()=>k(()=>import("./PVChargeConfig-aa930462.js"),["assets/PVChargeConfig-aa930462.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js"])},{path:"/HardwareInstallation",name:"HardwareInstallation",meta:{heading:"Konfiguration - Geräte und Komponenten"},component:()=>k(()=>import("./HardwareInstallation-b7e2b58c.js").then(e=>e.a),["assets/HardwareInstallation-b7e2b58c.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/dynamic-import-helper-be004503.js"])},{path:"/LoadManagementConfiguration",name:"LoadManagementConfiguration",meta:{heading:"Konfiguration - Lastmanagement"},component:()=>k(()=>import("./LoadManagementConfig-913bc596.js"),["assets/LoadManagementConfig-913bc596.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/OpenwbSortableList-2a6a01cb.js","assets/OpenwbSortableList-7ba533e4.css","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js"])},{path:"/ChargePointInstallation",name:"ChargePointInstallation",meta:{heading:"Konfiguration - Ladepunkte"},component:()=>k(()=>import("./ChargePointInstallation-34ff8e1d.js").then(e=>e.c),["assets/ChargePointInstallation-34ff8e1d.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/dynamic-import-helper-be004503.js","assets/ChargePointInstallation-7b9399a8.css"])},{path:"/VehicleConfiguration/:section?/:section_index?/:section_part?/:action?",name:"VehicleConfiguration",meta:{heading:"Konfiguration - Fahrzeuge"},component:()=>k(()=>import("./VehicleConfig-28b52371.js").then(e=>e.b),["assets/VehicleConfig-28b52371.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-c0918982.js"])},{path:"/IoConfiguration",name:"IoConfiguration",meta:{heading:"Konfiguration - Ein- und Ausgänge"},component:()=>k(()=>import("./IoConfig-3eeecf97.js").then(e=>e.I),["assets/IoConfig-3eeecf97.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/dynamic-import-helper-be004503.js"])},{path:"/System/CloudConfiguration",name:"CloudConfig",meta:{heading:"System - openWB Cloud"},component:()=>k(()=>import("./CloudConfig-17419a85.js"),["assets/CloudConfig-17419a85.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js"])},{path:"/System/MqttBridgeConfiguration",name:"MqttBridgeConfig",meta:{heading:"System - MQTT-Brücken"},component:()=>k(()=>import("./MqttBridgeConfig-d0b5bf80.js"),["assets/MqttBridgeConfig-d0b5bf80.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js"])},{path:"/System/DebugConfiguration",name:"Debugging",meta:{heading:"System - Fehlersuche"},component:()=>k(()=>import("./DebugConfig-2807847f.js"),["assets/DebugConfig-2807847f.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-axios-ac33d60c.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/DebugConfig-e21ab72c.css"])},{path:"/System/Support",name:"Support",meta:{heading:"System - Support"},component:()=>k(()=>import("./Support-bbe6a404.js"),["assets/Support-bbe6a404.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js"])},{path:"/System/LegalSettings",name:"LegalSettings",meta:{heading:"System - Rechtliches"},component:()=>k(()=>import("./LegalSettings-bad44d1c.js"),["assets/LegalSettings-bad44d1c.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js"])},{path:"/System/SystemConfiguration",name:"SystemConfig",meta:{heading:"System - System"},component:()=>k(()=>import("./System-47d1c8ae.js"),["assets/System-47d1c8ae.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js","assets/System-f301c290.css"])},{path:"/System/DataManagement",name:"DataManagement",meta:{heading:"System - Datenverwaltung"},component:()=>k(()=>import("./DataManagement-93d69162.js").then(e=>e.a),["assets/DataManagement-93d69162.js","assets/vendor-fortawesome-66071a0e.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/dynamic-import-helper-be004503.js"])},{path:"/System/InstallAssistant",name:"InstallAssistant",meta:{heading:"System - Einrichtungsassistent"},component:()=>k(()=>import("./InstallAssistant-ed1cd3a8.js"),["assets/InstallAssistant-ed1cd3a8.js","assets/dynamic-import-helper-be004503.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js"])}];X.push({path:"/TestingStore",name:"VUEX Store",meta:{heading:"Beispiele - VUEX Store"},component:()=>k(()=>import("./TestingStore-955b09f5.js"),["assets/TestingStore-955b09f5.js","assets/OpenwbSortableList-2a6a01cb.js","assets/vendor-25d394b4.js","assets/vendor-sortablejs-0eb84ec8.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-66071a0e.js","assets/OpenwbSortableList-7ba533e4.css","assets/vendor-bootstrap-374cd88e.js","assets/vendor-jquery-3364d39b.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-ac33d60c.js"])});const W=re({history:de(),routes:X});W.beforeEach(async e=>{if(await L.getters.usageTermsAcknowledged){if(!await L.getters.installAssistantDone&&e.name!=="InstallAssistant")return{name:"InstallAssistant"}}else if(e.name!=="LegalSettings")return{name:"LegalSettings"}});W.afterEach(e=>{e.meta.heading?document.title="openWB | "+e.meta.heading:document.title="openWB"});const R=ue(zo);R.use(L).use(W).use(He,Ue);const Uo=Object.assign({"./components/OpenwbBaseAlert.vue":Ze,"./components/OpenwbBaseArrayInput.vue":mt,"./components/OpenwbBaseAvatar.vue":ht,"./components/OpenwbBaseButtonGroupInput.vue":Ot,"./components/OpenwbBaseButtonInput.vue":Mt,"./components/OpenwbBaseCard.vue":Nt,"./components/OpenwbBaseCheckboxInput.vue":Gt,"./components/OpenwbBaseClickButton.vue":It,"./components/OpenwbBaseColorPicker.vue":Xt,"./components/OpenwbBaseCopyToClipboard.vue":un,"./components/OpenwbBaseHeading.vue":hn,"./components/OpenwbBaseIoPattern.vue":kn,"./components/OpenwbBaseModalDialog.vue":An,"./components/OpenwbBaseNumberInput.vue":Nn,"./components/OpenwbBaseRangeInput.vue":Qn,"./components/OpenwbBaseSelectInput.vue":us,"./components/OpenwbBaseSettingElement.vue":nt,"./components/OpenwbBaseSubmitButtons.vue":hs,"./components/OpenwbBaseTextInput.vue":Ds,"./components/OpenwbBaseTextarea.vue":Gs,"./components/OpenwbBaseToast.vue":Xs});Object.entries(Uo).forEach(([e,t])=>{const n=ce(pe(e.split("/").pop().replace(/\.\w+$/,"")));R.component(n,t.default)});R.mount("#app");export{Q as C,M as O,k as _}; +import{_ as y,l as i,m as u,p as g,q as S,u as b,x as h,y as x,z as p,A as a,B as f,D as A,E as c,F as v,G as _,I as B,J as I,K as O,L as ee,M as q,N as T,O as te,P as ne,Q as se,R as oe,T as F,S as ae,U as N,V as ie,W as le,X as re,Y as de,Z as ue,$ as ce,a0 as pe}from"./vendor-57e3a63c.js";import{l as $,f as H,a as U,F as C,b as me,c as fe,d as G,e as _e,g as j,h as ge,i as be,j as he,k as ve,m as ye,n as we,o as ke,p as Se,q as Oe,r as Be,s as $e,t as Ce,u as Ie,v as Te,w as J,x as Ve,y as Ae,z as Me,A as Pe,B as K,C as qe,D as xe,E as De,G as Ee,H as Le,I as je,J as We,K as Re,L as Ne,M as ze,N as Fe}from"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import{p as He,a as Ue}from"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./vendor-jquery-92d6c4db.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))d(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&d(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function d(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();const Ge={name:"OpenwbAlert",props:{subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}}};function Je(e,t,n,d,l,s){return i(),u("div",{class:S(["card-text alert","alert-"+n.subtype])},[g(e.$slots,"default",{},void 0,!0)],2)}const Ke=y(Ge,[["render",Je],["__scopeId","data-v-055c15aa"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAlert.vue"]]),Ze=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"}));$.add(H,U);const Qe={name:"OpenwbBaseSettingElement",components:{FontAwesomeIcon:C},data(){return{showHelp:!1}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},Ye={key:0,class:"col-md-4 col-form-label"},Xe={class:"form-row"},et={key:0,class:"form-text alert alert-info my-1 small flex-fill"};function tt(e,t,n,d,l,s){const o=b("font-awesome-icon");return i(),u("div",{class:S(["form-row",e.$slots.title?"mb-1":"mx-0"])},[e.$slots.title?(i(),u("label",Ye,[g(e.$slots,"title",{},void 0,!0),e.$slots.help?(i(),h(o,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:S(["clickable ml-1",l.showHelp?"text-info":""]),onClick:x(s.toggleHelp,["stop"])},null,8,["icon","class","onClick"])):p("",!0)])):p("",!0),a("div",{class:S(e.$slots.title?"col-md-8":"col px-0")},[a("div",{class:S({"form-row":e.$slots.title})},[g(e.$slots,"default",{},()=>[t[0]||(t[0]=f("*ELEMENT MISSING*",-1))],!0)],2),a("div",Xe,[l.showHelp?(i(),u("span",et,[g(e.$slots,"help",{},void 0,!0)])):p("",!0)])],2)],2)}const M=y(Qe,[["render",tt],["__scopeId","data-v-33864f66"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSettingElement.vue"]]),nt=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"}));$.add(me,fe,G,_e);const st={name:"OpenwbArrayInput",components:{FontAwesomeIcon:C,OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!0,default:"#TITLE#"},modelValue:{type:Array,default:()=>[]},noElementsMessage:{type:String,default:()=>"Keine Elemente zugeordnet."}},emits:["update:modelValue"],data(){return{newTag:"",showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},newTagValid:{get(){return this.newTag.length>0&&!this.value.includes(this.newTag)}}},methods:{addTag(){if(this.newTagValid){const e=[...this.value,this.newTag].sort();this.value=e,this.newTag=""}this.$refs.tagInput.focus()},removeTag(e){let t=[...this.value];t.splice(e,1),this.value=t}}},ot={class:"w-100"},at={class:"input-group"},it={class:"input-group-prepend"},lt={class:"input-group-text"},rt={class:"input-group-append"},dt={class:"tagList mt-1 w-100"},ut={key:0,class:"noTag"};function ct(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("openwb-base-setting-element");return i(),h(m,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)],!0)]),default:c(()=>[a("div",ot,[a("div",at,[a("div",it,[a("div",lt,[g(e.$slots,"input-prefix",{},()=>[_(o,{icon:["fas","tag"]})],!0)])]),B(a("input",O({ref:"tagInput","onUpdate:modelValue":t[0]||(t[0]=r=>l.newTag=r),type:"text",class:"form-control"},e.$attrs,{onKeyup:t[1]||(t[1]=ee((...r)=>s.addTag&&s.addTag(...r),["enter"]))}),null,16),[[I,l.newTag]]),a("div",rt,[a("div",{class:S(["input-group-text",s.newTagValid?"bg-success clickable":"not-clickable"]),onClick:t[2]||(t[2]=(...r)=>s.addTag&&s.addTag(...r))},[g(e.$slots,"input-add",{},()=>[_(o,{icon:["fas","plus"]})],!0)],2)])])]),a("div",dt,[s.value.length==0?(i(),u("span",ut,[_(o,{icon:["fas","info-circle"]}),f(" "+v(n.noElementsMessage),1)])):p("",!0),(i(!0),u(T,null,q(s.value,(r,w)=>(i(),u("span",{key:w,class:"tag"},[g(e.$slots,"element-prefix",{},()=>[_(o,{icon:["fas","tag"]})],!0),f(" "+v(r)+" ",1),_(o,{class:"clickable remove-element",icon:["fas","times-circle"],onClick:V=>s.removeTag(w)},null,8,["onClick"])]))),128))])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help",{},void 0,!0)]),key:"0"}:void 0]),1024)}const pt=y(st,[["render",ct],["__scopeId","data-v-9de93d37"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseArrayInput.vue"]]),mt=Object.freeze(Object.defineProperty({__proto__:null,default:pt},Symbol.toStringTag,{value:"Module"}));const ft={name:"OpenwbAvatar"},_t={class:"avatar"};function gt(e,t,n,d,l,s){return i(),u("div",_t,[g(e.$slots,"default",{},()=>[t[0]||(t[0]=f("?",-1))],!0)])}const bt=y(ft,[["render",gt],["__scopeId","data-v-06082a1a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAvatar.vue"]]),ht=Object.freeze(Object.defineProperty({__proto__:null,default:bt},Symbol.toStringTag,{value:"Module"}));$.add(j);const vt={name:"OpenwbButtonGroupInput",components:{FontAwesomeIcon:C,OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:[String,Number,Boolean],default:void 0},buttons:{type:Array,required:!0}},emits:["update:modelValue","button-click"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}},yt={class:"btn-group btn-block btn-group-toggle"},wt=["value","onClick"];function kt(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("openwb-base-setting-element");return i(),h(m,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)])]),default:c(()=>[a("div",yt,[(i(!0),u(T,null,q(n.buttons,r=>(i(),u("label",{key:r.value,class:S(["btn",[s.value==r.buttonValue?"active":"",r.class?r.class:"btn-outline-info"]])},[B(a("input",O({"onUpdate:modelValue":t[0]||(t[0]=w=>s.value=w),type:"radio",value:r.buttonValue},{ref_for:!0},e.$attrs,{onClick:w=>e.$emit("button-click",r.buttonValue)}),null,16,wt),[[te,s.value]]),g(e.$slots,"label-"+r.buttonValue,{},()=>[f(v(r.text),1)]),_(o,{icon:["fas","check"],style:ne([s.value==r.buttonValue?"visibility: visible":"visibility: hidden"])},null,8,["style"])],2))),128))])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help")]),key:"0"}:void 0]),1024)}const St=y(vt,[["render",kt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonGroupInput.vue"]]),Ot=Object.freeze(Object.defineProperty({__proto__:null,default:St},Symbol.toStringTag,{value:"Module"}));const Bt={name:"OpenwbClickButton",props:{title:{type:String,required:!1,default:""},tooltip:{type:String,required:!1,default:""}},emits:["buttonClicked"],methods:{click(e){this.$emit("buttonClicked",e)}}},$t=["title"];function Ct(e,t,n,d,l,s){return i(),u("button",{type:"button",class:"btn btn-block",title:n.tooltip,onClick:t[0]||(t[0]=x((...o)=>s.click&&s.click(...o),["prevent"]))},[g(e.$slots,"default",{},()=>[f(v(n.title),1)],!0)],8,$t)}const Z=y(Bt,[["render",Ct],["__scopeId","data-v-2e9c095b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseClickButton.vue"]]),It=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"})),Tt={name:"OpenwbButtonInput",components:{OpenwbBaseSettingElement:M,OpenwbBaseClickButton:Z},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},buttonText:{type:String,required:!1,default:void 0},disabled:{type:Boolean,default:!1},subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}},emits:["buttonClicked"],methods:{handleClick(e){this.$emit("buttonClicked",e)}}};function Vt(e,t,n,d,l,s){const o=b("openwb-base-click-button"),m=b("openwb-base-setting-element");return i(),h(m,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)])]),default:c(()=>[_(o,O({class:(n.disabled?"btn-outline-":"btn-")+n.subtype,disabled:n.disabled},e.$attrs,{onButtonClicked:s.handleClick}),{default:c(()=>[f(v(n.buttonText),1)]),_:1},16,["class","disabled","onButtonClicked"])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help")]),key:"0"}:void 0]),1024)}const At=y(Tt,[["render",Vt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonInput.vue"]]),Mt=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"}));$.add(ge,be);const Pt={name:"OpenwbCard",components:{FontAwesomeIcon:C},inheritAttrs:!1,props:{title:{type:String,default:void 0},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark","pink","white"].indexOf(e)!==-1},default:"secondary"},bodyBg:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark","pink","white"].indexOf(e)!==-1},default:"light"},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1}},emits:["collapsed","expanded"],data(){return{isCollapsed:this.collapsible&&this.collapsed}},methods:{toggleBody(){this.collapsible===!0&&(this.isCollapsed=!this.isCollapsed,this.$emit(this.isCollapsed?"collapsed":"expanded"))}}},qt={class:"form-group mb-0"},xt={class:"form-row vaRow mb-0 py-2"},Dt={class:"col"},Et={class:"card-actions ml-4"},Lt={key:0,class:"card-actions mr-2"},jt={key:2,class:"card-footer"};function Wt(e,t,n,d,l,s){const o=b("font-awesome-icon");return i(),u("div",{class:S(["card","border-"+n.subtype])},[n.title!==void 0||e.$slots.header?(i(),u("div",{key:0,class:S(["card-header py-1","bg-"+n.subtype]),onClick:t[0]||(t[0]=(...m)=>s.toggleBody&&s.toggleBody(...m))},[a("div",qt,[a("div",xt,[a("div",Dt,[g(e.$slots,"header",{collapsed:l.isCollapsed},()=>[f(v(n.title),1)],!0)])])]),a("span",Et,[e.$slots.actions?(i(),u("span",Lt,[g(e.$slots,"actions",{collapsed:l.isCollapsed},void 0,!0)])):p("",!0),n.collapsible?(i(),h(o,{key:1,icon:l.isCollapsed?["fas","chevron-right"]:["fas","chevron-down"]},null,8,["icon"])):p("",!0)])],2)):p("",!0),l.isCollapsed===!1?(i(),u("div",O({key:1,class:["card-body",[n.title==null&&!e.$slots.header?"border-radius-top-inherit":"",e.$slots.footer?"":"border-radius-bottom-inherit","bg-"+n.bodyBg]]},e.$attrs),[g(e.$slots,"default",{},void 0,!0)],16)):p("",!0),e.$slots.footer&&l.isCollapsed===!1?(i(),u("div",jt,[g(e.$slots,"footer",{},void 0,!0)])):p("",!0)],2)}const Rt=y(Pt,[["render",Wt],["__scopeId","data-v-9833c353"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCard.vue"]]),Nt=Object.freeze(Object.defineProperty({__proto__:null,default:Rt},Symbol.toStringTag,{value:"Module"})),zt={name:"OpenwbCheckboxInput",components:{OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:Boolean}},emits:["update:modelValue"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}},Ft={class:"col-md-8"};function Ht(e,t,n,d,l,s){const o=b("openwb-base-setting-element");return i(),h(o,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)])]),default:c(()=>[a("div",Ft,[B(a("input",O({"onUpdate:modelValue":t[0]||(t[0]=m=>s.value=m),class:"form-control",type:"checkbox"},e.$attrs),null,16),[[se,s.value]])])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help")]),key:"0"}:void 0]),1024)}const Ut=y(zt,[["render",Ht],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCheckboxInput.vue"]]),Gt=Object.freeze(Object.defineProperty({__proto__:null,default:Ut},Symbol.toStringTag,{value:"Module"}));$.add(he);const Jt={name:"OpenwbColorPicker",components:{FontAwesomeIcon:C},props:{defaultColor:{type:String,required:!1,default:void 0,validator:e=>/^#[0-9A-F]{6}$/i.test(e)},modelValue:{type:String,required:!1,default:"#000000",validator:e=>/^#[0-9A-F]{6}$/i.test(e)}},emits:["update:model-value"],methods:{changed(e){this.$emit("update:model-value",e)}}},Kt={class:"wrapper"},Zt=["value","title"];function Qt(e,t,n,d,l,s){const o=b("font-awesome-icon");return i(),u("div",Kt,[a("input",{type:"color",class:"custom-color-picker",value:n.modelValue,title:`Farbe: ${n.modelValue}`,onInput:t[0]||(t[0]=m=>s.changed(m.target.value))},null,40,Zt),n.defaultColor?(i(),h(o,{key:0,class:"ml-1 clickable",icon:["fas","rotate-left"],title:`Zurücksetzen auf Standardfarbe (${n.defaultColor})`,onClick:t[1]||(t[1]=m=>s.changed(n.defaultColor))},null,8,["title"])):p("",!0)])}const Yt=y(Jt,[["render",Qt],["__scopeId","data-v-1378b599"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseColorPicker.vue"]]),Xt=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"}));const{text:en,copy:tn,copied:nn,isSupported:sn}=oe({copiedDuring:3e3,legacy:!0});$.add(ve,ye);const on={name:"OpenwbCopyToClipboard",components:{FontAwesomeIcon:C},props:{tooltip:{type:String,default:"Wert kopieren"}},data(){return{}},computed:{contentText(){return this.$refs.content?this.$refs.content.innerText.trim():""},isCopied(){return nn.value},copySupported(){return sn.value}},methods:{click(){this.copySupported&&tn(this.contentText).then(()=>{console.debug("Text copied to clipboard:",en.value)}).catch(e=>{console.error("Failed to copy text to clipboard:",e)})}}},an=["title"],ln={ref:"content"};function rn(e,t,n,d,l,s){const o=b("font-awesome-icon");return i(),u("span",{title:s.copySupported&&!s.isCopied?n.tooltip:"",class:S({"copy-me":s.copySupported&&!s.isCopied}),onClick:t[0]||(t[0]=x((...m)=>s.click&&s.click(...m),["stop"]))},[a("span",ln,[g(e.$slots,"default",{},void 0,!0)],512),s.copySupported?(i(),h(o,{key:0,icon:s.isCopied?["fas","clipboard-check"]:["fas","clipboard"]},null,8,["icon"])):p("",!0)],10,an)}const dn=y(on,[["render",rn],["__scopeId","data-v-81826ebe"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCopyToClipboard.vue"]]),un=Object.freeze(Object.defineProperty({__proto__:null,default:dn},Symbol.toStringTag,{value:"Module"}));$.add(H,U,j);const cn={name:"OpenwbHeading",components:{FontAwesomeIcon:C},inheritAttrs:!1,data(){return{showHelp:!1}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},pn={class:"heading-text"},mn={key:0,class:"actions"},fn={class:""},_n={key:0,class:"form-row alert alert-info small flex-fill"};function gn(e,t,n,d,l,s){const o=b("font-awesome-icon");return i(),u(T,null,[a("div",O({class:"card-text card-text-heading"},e.$attrs),[a("div",pn,[g(e.$slots,"default",{},void 0,!0),e.$slots.help?(i(),h(o,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:S(["clickable",l.showHelp?"text-info":""]),onClick:x(s.toggleHelp,["stop"])},null,8,["icon","class","onClick"])):p("",!0)]),e.$slots.actions?(i(),u("span",mn,[g(e.$slots,"actions",{},void 0,!0)])):p("",!0)],16),a("div",fn,[l.showHelp?(i(),u("span",_n,[g(e.$slots,"help",{},void 0,!0)])):p("",!0)])],64)}const bn=y(cn,[["render",gn],["__scopeId","data-v-cbe4e96e"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseHeading.vue"]]),hn=Object.freeze(Object.defineProperty({__proto__:null,default:bn},Symbol.toStringTag,{value:"Module"}));$.add(we,ke,Se,Oe);const E={null:{value:null,icon:["fas","question"],iconClass:"text-secondary",title:"Nicht relevant",nextValue:!0},true:{value:!0,icon:["fas","square"],iconClass:"",title:"Geschlossen",nextValue:!1},false:{value:!1,icon:["far","square"],iconClass:"",title:"Offen",nextValue:null}},vn={name:"OpenwbIoPattern",components:{FontAwesomeIcon:C},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:Array,required:!1,default:()=>[]}},emits:["update:modelValue"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{getIcon(e){return E[e].icon},getIconClass(e){return E[e].iconClass},getTitle(e){return E[e].title},toggleInput(e,t){this.value[e]=E[t].nextValue}}};function yn(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("openwb-base-setting-element");return i(),h(m,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)])]),default:c(()=>[(i(!0),u(T,null,q(s.value,(r,w)=>(i(),u("span",{key:w},[_(o,{title:s.getTitle(r),icon:s.getIcon(r),class:S([s.getIconClass(r),"fa-fw clickable"]),size:"2x",transform:r=="undefined"?"shrink-6":null,mask:r=="undefined"?["fas","square"]:null,onClick:x(V=>s.toggleInput(w,r),["stop","prevent"]),onMousedown:t[0]||(t[0]=x(()=>{},["stop","prevent"])),onMouseup:t[1]||(t[1]=x(()=>{},["stop","prevent"]))},null,8,["title","icon","class","transform","mask","onClick"])]))),128))]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help")]),key:"0"}:void 0]),1024)}const wn=y(vn,[["render",yn],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseIoPattern.vue"]]),kn=Object.freeze(Object.defineProperty({__proto__:null,default:wn},Symbol.toStringTag,{value:"Module"})),Sn={name:"OpenwbModalDialog",props:{title:{type:String,required:!1,default:""},subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},buttons:{type:Array,default:void 0},footerAlignment:{type:String,validator:function(e){return["around","between","center","end","start"].indexOf(e)!==-1},default:"end"},preventClose:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},emits:["modal-result"],computed:{myButtons(){var e=[];return this.buttons!==void 0&&(e=this.buttons),this.preventClose||e.push({text:"Schließen",event:"close"}),e}},methods:{handleClick(e){e.stopPropagation();let t=e.target.getAttribute("data-event");t===null&&(t="close"),(t!="close"||!this.preventClose)&&this.$emit("modal-result",t)}}},On={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},Bn={class:"modal-content"},$n={class:"modal-title"},Cn={class:"modal-body"},In=["data-event"];function Tn(e,t,n,d,l,s){return n.show?(i(),h(F,{key:0,to:"body"},[t[4]||(t[4]=a("div",{class:"modal-backdrop fade show"},null,-1)),a("div",{class:"modal fade d-block show",role:"dialog",onClick:t[2]||(t[2]=(...o)=>s.handleClick&&s.handleClick(...o))},[a("div",On,[a("div",Bn,[a("div",{class:S(["modal-header","bg-"+n.subtype])},[a("h4",$n,v(n.title),1),n.preventClose?p("",!0):(i(),u("button",{key:0,type:"button",class:"close",onClick:t[0]||(t[0]=(...o)=>s.handleClick&&s.handleClick(...o))}," × "))],2),a("div",Cn,[g(e.$slots,"default",{},()=>[t[3]||(t[3]=f("# Body #",-1))])]),s.myButtons.length>0?(i(),u("div",{key:0,class:S(["modal-footer d-flex","justify-content-"+n.footerAlignment])},[(i(!0),u(T,null,q(s.myButtons,o=>(i(),u("button",{key:o.text,type:"button",class:S(["btn",o.subtype?"btn-"+o.subtype:"btn-secondary"]),"data-dismiss":"modal","data-event":o.event?o.event:"close",onClick:t[1]||(t[1]=(...m)=>s.handleClick&&s.handleClick(...m))},v(o.text),11,In))),128))],2)):p("",!0)])])])])):p("",!0)}const Vn=y(Sn,[["render",Tn],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseModalDialog.vue"]]),An=Object.freeze(Object.defineProperty({__proto__:null,default:Vn},Symbol.toStringTag,{value:"Module"}));$.add(Be);const Mn={name:"OpenwbNumberInput",components:{FontAwesomeIcon:C,OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:Number,required:!1,default:void 0},unit:{type:String,required:!1,default:void 0},precision:{type:Number,default:void 0},emptyValue:{type:[Number,null],required:!1,default:null}},emits:["update:modelValue"],computed:{value:{get(){return this.precision!==void 0?parseFloat(Math.round(this.modelValue*Math.pow(10,this.precision))/Math.pow(10,this.precision)):this.modelValue},set(e){(isNaN(e)||typeof e!="number")&&(e=this.emptyValue),this.$emit("update:modelValue",e)}}}},Pn={class:"input-group"},qn={class:"input-group-prepend"},xn={class:"input-group-text"},Dn={key:0,class:"input-group-append"},En={class:"input-group-text"},Ln={key:1,class:"input-group-append"},jn={class:"input-group-text p-0"};function Wn(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("openwb-base-setting-element");return i(),h(m,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)],!0)]),default:c(()=>[a("div",Pn,[a("div",qn,[a("div",xn,[_(o,{icon:["fas","calculator"]})])]),B(a("input",O({"onUpdate:modelValue":t[0]||(t[0]=r=>s.value=r),type:"number",class:"form-control"},e.$attrs),null,16),[[I,s.value,void 0,{number:!0}]]),n.unit?(i(),u("div",Dn,[a("div",En,v(n.unit),1)])):p("",!0),e.$slots.append?(i(),u("div",Ln,[a("div",jn,[g(e.$slots,"append",{},void 0,!0)])])):p("",!0)])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help",{},void 0,!0)]),key:"0"}:void 0]),1024)}const Rn=y(Mn,[["render",Wn],["__scopeId","data-v-c2fb7eef"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseNumberInput.vue"]]),Nn=Object.freeze(Object.defineProperty({__proto__:null,default:Rn},Symbol.toStringTag,{value:"Module"}));$.add($e,Ce);const zn={name:"OpenwbRangeInput",components:{FontAwesomeIcon:C,OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:Number,required:!1,default:void 0},unit:{type:String,required:!1,default:void 0},min:{type:Number,required:!0,default:0},max:{type:Number,required:!0,default:100},step:{type:Number,required:!1,default:1},labels:{type:Array,required:!1,default:void 0}},emits:["update:modelValue"],computed:{label(){var e;return this.labels&&this.sliderValue!=null?this.sliderValue[g(e.$slots,"title",{},()=>[f(v(n.title),1)],!0)]),default:c(()=>[a("div",Fn,[a("div",Hn,[s.label?(i(),u("label",Un,v(s.label),1)):p("",!0),a("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[0]||(t[0]=(...r)=>s.decrement&&s.decrement(...r))},[_(o,{icon:["fas","step-backward"]})]),a("div",Gn,[B(a("input",O({"onUpdate:modelValue":t[1]||(t[1]=r=>s.sliderValue=r),type:"range",class:"form-control-range rangeInput",min:n.min,max:n.max,step:n.step},e.$attrs),null,16,Jn),[[I,s.sliderValue,void 0,{number:!0}]])]),a("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[2]||(t[2]=(...r)=>s.increment&&s.increment(...r))},[_(o,{icon:["fas","step-forward"]})])])])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help",{},void 0,!0)]),key:"0"}:void 0]),1024)}const Zn=y(zn,[["render",Kn],["__scopeId","data-v-449fb0a5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseRangeInput.vue"]]),Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"}));$.add(G);const Yn={name:"OpenwbSelectInput",components:{FontAwesomeIcon:C,OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!1,default:void 0},modelValue:{type:[String,Number,Array,null],required:!1,default:void 0},emptyValue:{type:[String,Number,Array],required:!1,default:void 0},groups:{type:Array,required:!1,default:void 0},options:{type:Array,required:!1,default:void 0},notSelected:{type:String,default:void 0},addButton:{type:Boolean,default:!1}},emits:["update:modelValue","input:add"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},addDisabled:{get(){return this.value===void 0}}},methods:{addClicked(){this.addDisabled||this.$emit("input:add")}}},Xn={class:"w-100"},es={class:"input-group"},ts={key:0,class:"input-group-prepend"},ns={class:"input-group-text"},ss=["value"],os=["value"],as=["label"],is=["value"],ls={key:1,class:"input-group-append"};function rs(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("openwb-base-setting-element");return i(),h(m,null,A({default:c(()=>[a("div",Xn,[a("div",es,[e.$slots.prefix?(i(),u("div",ts,[a("div",ns,[g(e.$slots,"prefix")])])):p("",!0),B(a("select",O({"onUpdate:modelValue":t[0]||(t[0]=r=>s.value=r),class:"col form-control"},e.$attrs),[n.notSelected!==void 0?(i(),u("option",{key:0,value:n.emptyValue,disabled:""}," -- "+v(n.notSelected)+" -- ",9,ss)):p("",!0),(i(!0),u(T,null,q(n.options,r=>(i(),u("option",{key:r.value,value:r.value},v(r.text),9,os))),128)),(i(!0),u(T,null,q(n.groups,r=>(i(),u("optgroup",{key:r.label,label:r.label},[(i(!0),u(T,null,q(r.options,w=>(i(),u("option",{key:w.value,value:w.value},v(w.text),9,is))),128))],8,as))),128))],16),[[ae,s.value]]),n.addButton?(i(),u("div",ls,[a("div",{class:S(["input-group-text",s.addDisabled?"not-clickable":"bg-success clickable"]),onClick:t[1]||(t[1]=r=>s.addClicked())},[g(e.$slots,"inputAdd",{},()=>[_(o,{icon:["fas","plus"]})])],2)])):p("",!0)])])]),_:2},[e.$slots.title||n.title?{name:"title",fn:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)])]),key:"0"}:void 0,e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help")]),key:"1"}:void 0]),1024)}const ds=y(Yn,[["render",rs],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSelectInput.vue"]]),us=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"}));$.add(j,Ie,Te);const cs={name:"OpenwbSubmitButtons",components:{FontAwesomeIcon:C},props:{formName:{type:String,default:void 0},hideReset:{type:Boolean,default:!1},hideDefaults:{type:Boolean,default:!0}},emits:["reset","defaults","save"],data(){return{showModalReset:!1,showModalDefaults:!1}},computed:{showModalSave(){return this.$store.state.local.savingData}},methods:{showResetModal(){this.showModalReset=!0},handleModalReset(e){this.showModalReset=!1,e=="confirm"&&this.$emit("reset")},showDefaultsModal(){this.showModalDefaults=!0},handleModalDefaults(e){this.showModalDefaults=!1,e=="confirm"&&this.$emit("defaults")},saveSettings(){if(this.formName){if(!document.forms[this.formName].reportValidity()){console.debug("form invalid");return}}else console.debug("no form to validate");this.$emit("save")}}},ps={class:"row justify-content-center mb-1"},ms={class:"col-md-4 d-flex py-1 justify-content-center"},fs={key:0,class:"col-md-4 d-flex py-1 justify-content-center"},_s={key:1,class:"col-md-4 d-flex py-1 justify-content-center"};function gs(e,t,n,d,l,s){const o=b("openwb-base-modal-dialog"),m=b("font-awesome-icon");return i(),u(T,null,[_(o,{show:s.showModalSave,title:"Speichern",subtype:"success","prevent-close":!0},{default:c(()=>t[3]||(t[3]=[f(" Einstellungen werden gespeichert... ",-1)])),_:1,__:[3]},8,["show"]),_(o,{show:l.showModalReset,title:"Änderungen verwerfen",subtype:"warning",buttons:[{text:"Ok",event:"confirm",subtype:"warning"}],onModalResult:s.handleModalReset},{default:c(()=>t[4]||(t[4]=[f(" Wollen Sie die nicht gespeicherten Änderungen wirklich verwerfen? ",-1)])),_:1,__:[4]},8,["show","onModalResult"]),_(o,{show:l.showModalDefaults,title:"Werkseinstellungen",subtype:"danger",buttons:[{text:"Ok",event:"confirm",subtype:"danger"}],onModalResult:s.handleModalDefaults},{default:c(()=>t[5]||(t[5]=[f(" Wollen Sie wirklich alle Werte dieser Seite auf die Werkseinstellungen zurücksetzen? ",-1)])),_:1,__:[5]},8,["show","onModalResult"]),a("div",ps,[a("div",ms,[a("button",{id:"saveSettingsBtn",type:"button",class:"btn btn-block btn-success",onClick:t[0]||(t[0]=(...r)=>s.saveSettings&&s.saveSettings(...r))},[t[6]||(t[6]=f(" Speichern ",-1)),_(m,{icon:["fas","check"]})])]),n.hideReset?p("",!0):(i(),u("div",fs,[a("button",{id:"modalResetBtn",type:"button",class:"btn btn-block btn-warning",onClick:t[1]||(t[1]=(...r)=>s.showResetModal&&s.showResetModal(...r))},[t[7]||(t[7]=f(" Änderungen verwerfen ",-1)),_(m,{icon:["fas","undo"]})])])),n.hideDefaults?p("",!0):(i(),u("div",_s,[a("button",{id:"modalDefaultsBtn",type:"button",class:"btn btn-block btn-danger",onClick:t[2]||(t[2]=(...r)=>s.showDefaultsModal&&s.showDefaultsModal(...r))},[t[8]||(t[8]=f(" Werkseinstellungen ",-1)),_(m,{icon:["fas","times"]})])]))])],64)}const bs=y(cs,[["render",gs],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSubmitButtons.vue"]]),hs=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"}));$.add(J,Ve,Ae,Me,Pe,K,qe,xe,De,Ee,Le,je);const vs={name:"OpenwbTextInput",components:{FontAwesomeIcon:C,OpenwbBaseSettingElement:M},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:[String,Object],required:!1,default:void 0},subtype:{validator:function(e){return["text","email","host","url","user","json","password","time","date","month","year"].indexOf(e)!==-1},default:"text"},pattern:{type:String,required:!1,default:void 0},unit:{type:String,required:!1,default:void 0},emptyValue:{type:[String,Object,null],required:!1,default:null},showQuickButtons:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{showPassword:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.warn("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch(t){console.error("parsing JSON failed: "+e,t),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else e==""&&(e=this.emptyValue),this.$emit("update:modelValue",e)}},inputRef(){switch(this.subtype){case"json":return this.$refs.jsonInput;case"password":return this.$refs.passwordInput;case"host":return this.$refs.hostInput;case"email":case"url":return this.$refs.urlInput;case"time":return this.$refs.timeInput;case"date":return this.$refs.dateInput;case"month":return this.$refs.monthInput;case"year":return this.$refs.yearInput}return this.$refs.textInput},hostPattern(){return"(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$)|(^(?=.*[a-zA-Z].*$)([a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])$)|(^((?=[^.]*[a-zA-Z][^.]*\\.)([a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9]\\.))+((?=[^.]*[a-zA-Z].*$)([a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9]))$)"}},methods:{togglePassword(){this.showPassword=!this.showPassword},modify(e){var t,n=new Date(this.modelValue);switch(this.subtype){case"date":n.setDate(n.getDate()+e),t=String(n.getFullYear())+"-"+String(n.getMonth()+1).padStart(2,"0")+"-"+String(n.getDate()).padStart(2,"0");break;case"month":n.setMonth(n.getMonth()+e),t=String(n.getFullYear())+"-"+String(n.getMonth()+1).padStart(2,"0");break;case"year":n.setYear(n.getFullYear()+e),t=String(n.getFullYear());break;default:console.warn(`cannot modify input of subtype '${this.subtype}'`);return}t>this.inputRef.max||t[g(e.$slots,"title",{},()=>[f(v(n.title),1)],!0)]),default:c(()=>[a("div",ys,[a("div",ws,[a("div",ks,[a("div",Ss,[n.subtype=="text"?(i(),h(o,{key:0,icon:["fas","keyboard"]})):p("",!0),n.subtype=="email"?(i(),h(o,{key:1,icon:["fas","envelope"]})):p("",!0),n.subtype=="host"?(i(),h(o,{key:2,icon:["fas","network-wired"]})):p("",!0),n.subtype=="url"?(i(),h(o,{key:3,icon:["fas","globe"]})):p("",!0),n.subtype=="user"?(i(),h(o,{key:4,icon:["fas","user"]})):p("",!0),n.subtype=="json"?(i(),h(o,{key:5,icon:["fas","code"]})):p("",!0),n.subtype=="password"?(i(),h(o,{key:6,icon:l.showPassword?["fas","unlock"]:["fas","lock"]},null,8,["icon"])):p("",!0),n.subtype=="time"?(i(),h(o,{key:7,icon:["fas","clock"]})):p("",!0),n.subtype=="date"||n.subtype=="month"||n.subtype=="year"?(i(),h(o,{key:8,icon:["fas","calendar-day"]})):p("",!0)])]),["text","user"].includes(n.subtype)?B((i(),u("input",O({key:0,ref:"textInput","onUpdate:modelValue":t[0]||(t[0]=r=>s.value=r),type:"text",class:["form-control",{invalid:l.inputInvalid}]},e.$attrs,{pattern:n.pattern}),null,16,Os)),[[I,s.value]]):p("",!0),n.subtype=="json"?B((i(),u("input",O({key:1,ref:"jsonInput","onUpdate:modelValue":t[1]||(t[1]=r=>s.value=r),type:"text",class:"form-control"},e.$attrs,{pattern:n.pattern}),null,16,Bs)),[[I,s.value]]):p("",!0),n.subtype=="password"?B((i(),u("input",O({key:2,ref:"passwordInput","onUpdate:modelValue":t[2]||(t[2]=r=>s.value=r),type:l.showPassword?"text":"password",class:"form-control"},e.$attrs,{pattern:n.pattern}),null,16,$s)),[[N,s.value]]):p("",!0),n.subtype=="host"?B((i(),u("input",O({key:3,ref:"hostInput","onUpdate:modelValue":t[3]||(t[3]=r=>s.value=r),type:"text",class:"form-control"},e.$attrs,{pattern:s.hostPattern}),null,16,Cs)),[[I,s.value]]):p("",!0),["email","url"].includes(n.subtype)?B((i(),u("input",O({key:4,"onUpdate:modelValue":t[4]||(t[4]=r=>s.value=r),refs:"urlInput",type:n.subtype,class:"form-control"},e.$attrs),null,16,Is)),[[N,s.value]]):p("",!0),n.subtype=="time"?B((i(),u("input",O({key:5,ref:"timeInput","onUpdate:modelValue":t[5]||(t[5]=r=>s.value=r),type:"time",class:"form-control"},e.$attrs),null,16)),[[I,s.value]]):p("",!0),n.subtype=="date"?B((i(),u("input",O({key:6,ref:"dateInput","onUpdate:modelValue":t[6]||(t[6]=r=>s.value=r),type:"date",class:"form-control"},e.$attrs),null,16)),[[I,s.value]]):p("",!0),n.subtype=="month"?B((i(),u("input",O({key:7,ref:"monthInput","onUpdate:modelValue":t[7]||(t[7]=r=>s.value=r),type:"month",class:"form-control"},e.$attrs),null,16)),[[I,s.value]]):p("",!0),n.subtype=="year"?B((i(),u("input",O({key:8,ref:"yearInput","onUpdate:modelValue":t[8]||(t[8]=r=>s.value=r),type:"number",class:"form-control"},e.$attrs),null,16)),[[I,s.value]]):p("",!0),n.unit?(i(),u("div",Ts,[a("div",Vs,v(n.unit),1)])):p("",!0),n.subtype=="password"?(i(),u("div",{key:10,class:"input-group-append clickable",onClick:t[9]||(t[9]=(...r)=>s.togglePassword&&s.togglePassword(...r))},[a("div",As,[_(o,{icon:l.showPassword?["far","eye"]:["far","eye-slash"]},null,8,["icon"])])])):p("",!0),n.showQuickButtons&&(n.subtype=="date"||n.subtype=="month"||n.subtype=="year")?(i(),u("div",{key:11,class:"input-group-append clickable",onClick:t[10]||(t[10]=r=>s.modify(-1))},t[12]||(t[12]=[a("div",{class:"input-group-text"},"-",-1)]))):p("",!0),n.showQuickButtons&&(n.subtype=="date"||n.subtype=="month"||n.subtype=="year")?(i(),u("div",{key:12,class:"input-group-append clickable",onClick:t[11]||(t[11]=r=>s.modify(1))},t[13]||(t[13]=[a("div",{class:"input-group-text"},"+",-1)]))):p("",!0),e.$slots.append?(i(),u("div",Ms,[a("div",Ps,[g(e.$slots,"append",{},void 0,!0)])])):p("",!0)])])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help",{},void 0,!0)]),key:"0"}:void 0]),1024)}const xs=y(vs,[["render",qs],["__scopeId","data-v-6927d479"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextInput.vue"]]),Ds=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"}));$.add(J,K);const Es={name:"OpenwbTextareaInput",components:{OpenwbBaseSettingElement:M,FontAwesomeIcon:C},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},modelValue:{type:[String,Object],required:!1,default:void 0},subtype:{validator:function(e){return["text","json"].indexOf(e)!==-1},default:"text"}},emits:["update:modelValue"],data(){return{inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.debug("returning invalid JSON as String"),this.tempValue):JSON.stringify(this.tempValue,void 0,2):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch(t){console.warn("parsing JSON failed: "+e,t),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else this.$emit("update:modelValue",e)}},length:{get(){return this.value!==void 0?this.value.length:0}}}},Ls={class:"w-100"},js={class:"input-group"},Ws={class:"input-group-prepend"},Rs={class:"input-group-text"},Ns={key:2,class:"input-group-append"},zs={class:"input-group-text"},Fs={class:"form-text text-muted text-right"};function Hs(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("openwb-base-setting-element");return i(),h(m,null,A({title:c(()=>[g(e.$slots,"title",{},()=>[f(v(n.title),1)],!0)]),default:c(()=>[a("div",Ls,[a("div",js,[a("div",Ws,[a("div",Rs,[n.subtype=="text"?(i(),h(o,{key:0,icon:["fas","keyboard"]})):p("",!0),n.subtype=="json"?(i(),h(o,{key:1,icon:["fas","code"]})):p("",!0)])]),n.subtype==="json"?B((i(),u("textarea",O({key:0,ref:"jsonInput","onUpdate:modelValue":t[0]||(t[0]=r=>s.value=r),class:"form-control"},e.$attrs),null,16)),[[I,s.value,void 0,{lazy:!0}]]):B((i(),u("textarea",O({key:1,"onUpdate:modelValue":t[1]||(t[1]=r=>s.value=r),class:"form-control"},e.$attrs),null,16)),[[I,s.value]]),e.$attrs.maxlength?(i(),u("div",Ns,[a("div",zs,[a("small",Fs,v(s.length)+" / "+v(e.$attrs.maxlength),1)])])):p("",!0)])])]),_:2},[e.$slots.help?{name:"help",fn:c(()=>[g(e.$slots,"help",{},void 0,!0)]),key:"0"}:void 0]),1024)}const Us=y(Es,[["render",Hs],["__scopeId","data-v-3d93046b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextarea.vue"]]),Gs=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"}));const Js={name:"OpenwbToast",props:{topic:{type:String,required:!0},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},source:{type:String,required:!0,validator:function(e){return["system","client","command"].indexOf(e)!==-1}},timestamp:{type:Number,required:!0}},emits:["dismiss","hide"],data(){return{handle:void 0,relativeTime:void 0,hidden:!1}},mounted(){this.handle=window.setInterval(this.updateRelativeTime,1e3)},unmounted(){window.clearInterval(this.handle)},methods:{dismiss(){this.$emit("dismiss",{topic:this.topic})},updateRelativeTime(){const e={year:31536e6,month:2628e6,day:864e5,hour:36e5,minute:6e4,second:1e3};var t=new Intl.RelativeTimeFormat("de",{numeric:"auto"});const d=new Date-this.timestamp*1e3;for(var l in e)if(Math.abs(d)>e[l]){this.relativeTime=t.format(Math.round(-d/e[l]),l);break}d>10*1e3&&!this.hidden&&(this.hidden=!0,this.$emit("hide",{topic:this.topic}))}}},Ks={key:0,class:"time-diff"},Zs={class:"toast-body"};function Qs(e,t,n,d,l,s){return i(),u("div",{class:S(["toast","border-"+n.subtype]),role:"alert"},[a("div",{class:S(["toast-header","bg-"+n.subtype])},[t[2]||(t[2]=a("strong",{class:"pr-2 mr-auto"},"openWB",-1)),n.timestamp?(i(),u("small",Ks,v(l.relativeTime),1)):p("",!0),a("button",{type:"button",class:"ml-2 mb-1 close","data-dismiss":"toast","aria-label":"Close",onClick:t[0]||(t[0]=(...o)=>s.dismiss&&s.dismiss(...o))},t[1]||(t[1]=[a("span",{"aria-hidden":"true"},"×",-1)]))],2),a("div",Zs,[g(e.$slots,"default",{},void 0,!0)])],2)}const Ys=y(Js,[["render",Qs],["__scopeId","data-v-c51b5764"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseToast.vue"]]),Xs=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"}));$.add(We);const eo={name:"OpenwbNavBar",components:{FontAwesomeIcon:C},computed:{nodeEnv(){return"development"}},watch:{$route(){this.$refs.collapsibleNavbar.classList.remove("show"),this.$refs.navbarButton.classList.add("collapsed"),this.$refs.navbarButton.setAttribute("aria-expanded",!1)}}},to={class:"navbar navbar-expand-lg bg-dark navbar-dark fixed-top"},no={ref:"navbarButton",class:"navbar-toggler mr-5",type:"button","data-toggle":"collapse","data-target":"#collapsibleNavbar"},so={id:"collapsibleNavbar",ref:"collapsibleNavbar",class:"collapse navbar-collapse navbar-nav-scroll"},oo={class:"navbar-nav"},ao={class:"nav-item"},io={class:"nav-item dropdown nav-separator-after"},lo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},ro={class:"nav-item dropdown"},uo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},co={class:"nav-item dropdown"},po={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},mo={class:"nav-item dropdown"},fo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},_o={class:"nav-item dropdown"},go={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},bo={class:"nav-item nav-separator-before"},ho={class:"nav-link",href:"https://github.com/openWB/core/wiki",target:"_blank"};function vo(e,t,n,d,l,s){const o=b("router-link"),m=b("font-awesome-icon");return i(),u("nav",to,[t[29]||(t[29]=a("a",{class:"navbar-brand",href:"/openWB/web/"},[a("span",null,"openWB")],-1)),a("button",no,t[0]||(t[0]=[a("span",{class:"navbar-toggler-icon"},null,-1)]),512),a("div",so,[a("ul",oo,[a("li",ao,[_(o,{to:"/Status",class:"nav-link","active-class":"active disabled"},{default:c(()=>t[1]||(t[1]=[f(" Status ",-1)])),_:1,__:[1]})]),a("li",io,[t[4]||(t[4]=a("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Auswertungen ",-1)),a("div",lo,[_(o,{to:"/Logging/ChargeLog",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[2]||(t[2]=[f(" Ladeprotokoll ",-1)])),_:1,__:[2]}),_(o,{to:"/Logging/Chart",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[3]||(t[3]=[f(" Diagramme ",-1)])),_:1,__:[3]})])]),a("li",ro,[t[7]||(t[7]=a("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Einstellungen ",-1)),a("div",uo,[_(o,{to:"/GeneralConfig",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[5]||(t[5]=[f(" Allgemein ",-1)])),_:1,__:[5]}),_(o,{to:"/OptionalComponents",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[6]||(t[6]=[f(" Optionale Hardware ",-1)])),_:1,__:[6]})])]),a("li",co,[t[10]||(t[10]=a("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Ladeeinstellungen ",-1)),a("div",po,[_(o,{to:"/GeneralChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[8]||(t[8]=[f(" Übergreifendes ",-1)])),_:1,__:[8]}),_(o,{to:"/PVChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[9]||(t[9]=[f(" PV-Laden ",-1)])),_:1,__:[9]})])]),a("li",mo,[t[18]||(t[18]=a("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Konfiguration ",-1)),a("div",fo,[_(o,{to:"/HardwareInstallation",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[11]||(t[11]=[f(" Geräte und Komponenten ",-1)])),_:1,__:[11]}),_(o,{to:"/LoadManagementConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[12]||(t[12]=[f(" Lastmanagement ",-1)])),_:1,__:[12]}),_(o,{to:"/ChargePointInstallation",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[13]||(t[13]=[f(" Ladepunkte ",-1)])),_:1,__:[13]}),_(o,{to:"/VehicleConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[14]||(t[14]=[f(" Fahrzeuge ",-1)])),_:1,__:[14]}),_(o,{to:"/IoConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[15]||(t[15]=[f(" Ein-/Ausgänge ",-1)])),_:1,__:[15]}),t[16]||(t[16]=a("div",{class:"dropdown-divider"},null,-1)),t[17]||(t[17]=a("a",{href:"modules/legacy_smart_home/smarthomeconfig.php",class:"dropdown-item",target:"_blank"}," SmartHome ",-1))])]),a("li",_o,[t[27]||(t[27]=a("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," System ",-1)),a("div",go,[_(o,{to:"/System/InstallAssistant",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[19]||(t[19]=[f(" Einrichtungsassistent ",-1)])),_:1,__:[19]}),_(o,{to:"/System/CloudConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[20]||(t[20]=[f(" openWB Cloud ",-1)])),_:1,__:[20]}),_(o,{to:"/System/MqttBridgeConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[21]||(t[21]=[f(" MQTT-Brücken ",-1)])),_:1,__:[21]}),_(o,{to:"/System/DebugConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[22]||(t[22]=[f(" Fehlersuche ",-1)])),_:1,__:[22]}),_(o,{to:"/System/Support",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[23]||(t[23]=[f(" Support ",-1)])),_:1,__:[23]}),_(o,{to:"/System/DataManagement",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[24]||(t[24]=[f(" Datenverwaltung ",-1)])),_:1,__:[24]}),_(o,{to:"/System/SystemConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[25]||(t[25]=[f(" System ",-1)])),_:1,__:[25]}),_(o,{to:"/System/LegalSettings",class:"dropdown-item","active-class":"active disabled"},{default:c(()=>t[26]||(t[26]=[f(" Rechtliches ",-1)])),_:1,__:[26]})])]),a("li",bo,[a("a",ho,[t[28]||(t[28]=f(" Wiki ",-1)),_(m,{icon:["fas","external-link-alt"]})])])])],512)])}const yo=y(eo,[["render",vo],["__scopeId","data-v-e7a6d0c0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageNavbar.vue"]]);const wo={name:"OpenwbPageFooter"},ko={id:"footer",class:"footer bg-dark text-light font-small"},So={class:"container text-center"};function Oo(e,t,n,d,l,s){return i(),u("footer",ko,[a("div",So,[a("small",null," Sie befinden sich hier: Einstellungen / "+v(e.$route.meta.heading),1)])])}const Bo=y(wo,[["render",Oo],["__scopeId","data-v-3c9a239a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageFooter.vue"]]),$o={name:"ComponentState",emits:["reset","defaults","save"],data(){return{mqttTopicsToSubscribe:[]}},computed:{weekdays(){return["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"]},chargeModes(){return["instant_charging","pv_charging","scheduled_charging","time_charging","eco_charging","stop"]},statusLevel(){return["success","warning","danger"]},stateIcon:{get(){switch(this.$store.state.mqtt[this.baseTopic+"/get/fault_state"]){case 0:return["fas","check-circle"];case 1:return["fas","exclamation-triangle"];case 2:return["fas","times-circle"];default:return["fas","check-circle"]}}}},mounted(){this.mqttTopicsToSubscribe.length>0&&this.$root.doSubscribe(this.mqttTopicsToSubscribe)},unmounted(){this.mqttTopicsToSubscribe.length>0&&this.$root.doUnsubscribe(this.mqttTopicsToSubscribe)},methods:{updateState(e,t,n=void 0){console.debug("updateState:",e,t,n),this.$store.commit({type:"updateTopic",topic:e,objectPath:n,payload:t})},ac_current2dc_power(e){return parseFloat((e*3*230/1e3).toFixed(0))},dc_power2ac_current(e){return parseFloat((e*1e3/230/3).toFixed(2))},getWildcardIndexList(e,t=!1){let n=e;t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$");let d=Object.keys(this.$store.state.mqtt).filter(l=>l.match(n));return d.forEach((l,s,o)=>{o[s]=parseInt(l.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,""))}),d},getWildcardTopics(e,t=!1){let n=e;return t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$"),Object.keys(this.$store.state.mqtt).filter(d=>d.match(n)).reduce((d,l)=>({...d,[l]:this.$store.state.mqtt[l]}),{})},formatDate(e,t={year:"numeric",month:"2-digit",day:"2-digit"}){return new Date(e).toLocaleDateString(void 0,t)},formatNumber(e,t=0,n=t,d=1){if(!(e==null||isNaN(e)))return e=e*d,e.toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:n})},formatNumberTopic(e,t=0,n=t,d=1){return this.$store.state.mqtt[e]?this.formatNumber(this.$store.state.mqtt[e],t,n,d):"-"},formatPhaseArrayNumberTopic(e,t=0,n=t,d=1){return this.$store.state.mqtt[e]?this.$store.state.mqtt[e].map(l=>this.formatNumber(l,t,n,d)):["-","-","-"]},translateChargeMode(e){switch(e){case"instant_charging":return"Sofort";case"pv_charging":return"PV";case"scheduled_charging":return"Zielladen";case"time_charging":return"Zeitladen";case"eco_charging":return"Eco";case"standby":return"Standby";case"stop":return"Stop";default:return console.warn("unknown charge mode:",e),e}},getFaultStateSubtype(e){const t=this.$store.state.mqtt[e+"/get/fault_state"];if(t===void 0)return"warning";switch(t){case 0:return"success";case 1:return"warning";case 2:return"danger";default:return"dark"}}}},Q=y($o,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/mixins/ComponentState.vue"]]);$.add(Re,Ne);const Co={name:"OpenwbPageMessages",components:{FontAwesomeIcon:C,FontAwesomeLayers:ze,FontAwesomeLayersText:Fe},mixins:[Q],data(){return{mqttTopicsToSubscribe:["openWB/system/messages/+","openWB/command/"+this.$root.mqttClientId+"/messages/+"],showAllMessages:!1,hiddenMessages:[]}},computed:{alertLevel(){return this.messages.reduce((t,n)=>((t=="light"&&["info","success","warning","danger"].includes(n.type)||t=="info"&&["success","warning","danger"].includes(n.type)||t=="success"&&["warning","danger"].includes(n.type)||t=="warning"&&n.type=="danger")&&(t=n.type),t),"light")},messages(){const e=[];return this.systemMessages.forEach(t=>{e.push(t)}),this.clientMessages.forEach(t=>{e.push(t)}),e.sort(this.compareMessagesByTimestamp),e},recentMessages(){return this.showAllMessages?this.messages:this.messages.filter(e=>!this.hiddenMessages.includes(e.topic))},messageIndicatorClass(){return"text-"+this.alertLevel},systemMessages(){let e=this.getWildcardTopics("openWB/system/messages/+");var t=[];for(const[n,d]of Object.entries(e))t.push({topic:n,...d});return t},clientMessages(){let e=this.getWildcardTopics("openWB/command/"+this.$root.mqttClientId+"/messages/+");var t=[];for(const[n,d]of Object.entries(e))t.push({topic:n,...d});return t}},methods:{toggleAllMessages(){this.showAllMessages=!this.showAllMessages},compareMessagesByTimestamp(e,t){return t.timestamp-e.timestamp},clearTopic(e){this.$root.doPublish(e,void 0)},dismissMessage(e){this.clearTopic(e.topic);var t=this.hiddenMessages.indexOf(e.topic);t>-1&&this.hiddenMessages.splice(t,1)},dismissAllMessages(){this.messages.forEach(e=>{this.clearTopic(e.topic)}),this.hiddenMessages=[],this.toggleAllMessages()},hideMessage(e){this.hiddenMessages.includes(e.topic)||this.hiddenMessages.push(e.topic)}}},Io=["innerHTML"];function To(e,t,n,d,l,s){const o=b("font-awesome-icon"),m=b("font-awesome-layers-text"),r=b("font-awesome-layers"),w=b("openwb-base-alert"),V=b("openwb-base-click-button"),D=b("openwb-base-toast");return i(),u(T,null,[(i(),h(F,{to:"body"},[a("div",{id:"message-indicator",class:S(["text-light mt-1 p-2 mr-1 clickable",l.showAllMessages?"active":""]),onClick:t[0]||(t[0]=(...P)=>s.toggleAllMessages&&s.toggleAllMessages(...P))},[_(r,{"full-width":"",style:{"font-size":"175%"}},{default:c(()=>[_(o,{icon:l.showAllMessages?["fas","bell"]:["far","bell"],class:S(s.messageIndicatorClass)},null,8,["icon","class"]),s.messages.length>0?(i(),h(m,{key:0,counter:"",value:s.messages.length,position:"top-right",class:"message-counter bg-light text-dark"},null,8,["value"])):p("",!0)]),_:1})],2)])),s.recentMessages.length>0||l.showAllMessages?(i(),u("div",{key:0,class:S(["openwb-toast-container",l.showAllMessages?"full-height":""])},[s.recentMessages.length==0?(i(),h(w,{key:0,subtype:"info"},{default:c(()=>t[1]||(t[1]=[f(" Keine Nachrichten vorhanden. ",-1)])),_:1,__:[1]})):l.showAllMessages?(i(),h(V,{key:1,class:"btn-sm btn-secondary mb-1",onButtonClicked:s.dismissAllMessages},{default:c(()=>t[2]||(t[2]=[f(" Alle Nachrichten löschen ",-1)])),_:1,__:[2]},8,["onButtonClicked"])):p("",!0),(i(!0),u(T,null,q(s.recentMessages,P=>(i(),h(D,{key:P.topic,topic:P.topic,source:P.source,subtype:P.type,timestamp:P.timestamp,onDismiss:s.dismissMessage,onHide:s.hideMessage},{default:c(()=>[a("span",{innerHTML:P.message},null,8,Io)]),_:2},1032,["topic","source","subtype","timestamp","onDismiss","onHide"]))),128))],2)):p("",!0)],64)}const Vo=y(Co,[["render",To],["__scopeId","data-v-2c25f0d0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageMessages.vue"]]),Ao={name:"OpenwbPageBlocker",mixins:[Q],data(){return{mqttTopicsToSubscribe:["openWB/system/boot_done","openWB/system/update_in_progress"]}},computed:{title(){return this.bootInProgress||this.updateInProgress?"openWB ist noch nicht bereit":this.reloadRequired?"Neues Laden der Seite erforderlich":"???"},myButtons(){return!(this.bootInProgress||this.updateInProgress)&&this.reloadRequired?[{text:"Jetzt neu laden",subtype:"success",event:"reload"}]:[]},bootInProgress(){return this.$store.state.mqtt["openWB/system/boot_done"]==null?!0:!this.$store.state.mqtt["openWB/system/boot_done"]},updateInProgress(){return this.$store.state.mqtt["openWB/system/update_in_progress"]==null?!1:this.$store.state.mqtt["openWB/system/update_in_progress"]},reloadRequired(){return this.$store.state.local.reloadRequired},showModalBlocker(){return this.bootInProgress||this.updateInProgress||this.reloadRequired}},methods:{handleModalResult(e){e=="reload"?location.reload():console.warn("unknown event",e)}}},Mo={class:"openwb-blocker"},Po={key:0},qo={key:1},xo={key:2},Do={key:3};function Eo(e,t,n,d,l,s){const o=b("openwb-base-modal-dialog");return i(),u("div",Mo,[_(o,{show:s.showModalBlocker,title:s.title,subtype:"dark","prevent-close":!0,buttons:s.myButtons,onModalResult:t[0]||(t[0]=m=>s.handleModalResult(m))},{default:c(()=>[s.bootInProgress?(i(),u("p",Po,"Der Systemstart ist noch nicht abgeschlossen.")):p("",!0),s.updateInProgress?(i(),u("p",qo,"Es wird eine Systemaktualisierung ausgeführt.")):p("",!0),!(s.bootInProgress||s.updateInProgress)&&s.reloadRequired?(i(),u("p",xo,"Bitte die Seite neu laden.")):(i(),u("p",Do,"Bitte warten..."))]),_:1},8,["show","title","buttons"])])}const Lo=y(Ao,[["render",Eo],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageBlocker.vue"]]);const jo={name:"OpenwbSettingsApp",components:{NavBar:yo,PageFooter:Bo,Messages:Vo,Blocker:Lo},data(){return{client:{connected:!1},connection:{protocol:location.protocol=="https:"?"wss":"ws",host:location.hostname,port:parseInt(location.port)||(location.protocol=="https:"?443:80),endpoint:"/ws",connectTimeout:4e3,reconnectPeriod:4e3}}},computed:{mqttClientId(){try{return this.client.options.clientId}catch(e){console.error("mqttClientId error",e);return}},topicList(){return Object.keys(this.$store.state.mqtt)}},created(){this.createConnection()},methods:{async saveValues(e=void 0){function t(d){return new Promise(l=>setTimeout(l,d))}this.$store.state.local.savingData=!0;let n={};e===void 0?(console.debug("no topics defined, so save everything we have in store"),n=this.$store.state.mqtt):Array.isArray(e)?e.forEach(d=>{n[d]=this.$store.state.mqtt[d]}):console.error("expected array, got ",typeof e);for(const[d,l]of Object.entries(n)){let s=d.replace("openWB/","openWB/set/");console.debug("saving data:",s,l),this.doPublish(s,l),await t(100)}this.$store.state.local.savingData=!1},resetValues(e=this.topicList){console.debug("resetting values..."),console.debug("topics: ",e),this.doUnsubscribe(e),this.doSubscribe(e)},setDefaultValues(){console.debug("setting default values... (ToDo)")},sendCommand(e){console.debug("sendCommand:",e),this.doPublish("openWB/set/command/"+this.client.options.clientId+"/todo",e,!1)},createConnection(){const{protocol:e,host:t,port:n,endpoint:d,...l}=this.connection,s=`${e}://${t}:${n}${d}`;console.debug("connecting to broker:",s);try{this.client=ie.connect(s,l)}catch(o){console.error("mqtt.connect error",o)}this.client.on("connect",()=>{console.debug("Connection succeeded! ClientId: ",this.client.options.clientId),this.doSubscribe(["openWB/system/usage_terms_acknowledged"]),this.doSubscribe(["openWB/system/installAssistantDone"])}),this.client.on("error",o=>{console.error("Connection failed",o)}),this.client.on("message",(o,m)=>{if(m.toString().length>0){let r;try{r=JSON.parse(m.toString())}catch(w){console.debug("Json parsing failed, fallback to string: ",o,w),r=m.toString()}this.$store.commit("updateTopic",{topic:o,payload:r})}else this.$store.commit("removeTopic",o)})},doSubscribe(e){e.forEach(t=>{this.$store.commit("addSubscription",t),this.$store.getters.subscriptionCount(t)==1?(t.includes("#")||t.includes("+")?console.debug("skipping init of wildcard topic:",t):this.$store.commit("addTopic",{topic:t,payload:void 0}),this.client.subscribe(t,{},n=>{if(n){console.error("Subscribe to topics error",n);return}})):console.debug("Already subscribed to topic: ",t)})},doUnsubscribe(e){e.forEach(t=>{this.$store.commit("removeSubscription",t),this.$store.getters.subscriptionCount(t)==0?(this.client.unsubscribe(t,n=>{n&&console.error("Unsubscribe error",n)}),t.includes("#")||t.includes("+")?(console.debug("expanding wildcard topic:",t),Object.keys(this.getWildcardTopics(t)).forEach(n=>{console.debug("removing wildcardTopic:",n),this.$store.commit("removeTopic",n)})):(console.debug("removing topic:",t),this.$store.commit("removeTopic",t))):console.debug("Still subscribed to topic: ",t)})},doPublish(e,t,n=!0,d=2){let l={qos:d,retain:n};this.client.publish(e,JSON.stringify(t),l,s=>{s&&console.error("Publish error",s)})},postClientMessage(e,t="secondary"){console.debug("postMessage:",e,t);const n=Date.now(),d="openWB/command/"+this.mqttClientId+"/messages/"+n;this.$store.commit({type:"addTopic",topic:d,payload:{message:e,type:t,source:"client",timestamp:Math.floor(n/1e3)}})},getWildcardTopics(e,t=!1){let n=e;return t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$"),Object.keys(this.$store.state.mqtt).filter(d=>d.match(n)).reduce((d,l)=>({...d,[l]:this.$store.state.mqtt[l]}),{})}}},Wo={role:"main",class:"container"},Ro={id:"content"};function No(e,t,n,d,l,s){const o=b("nav-bar"),m=b("router-view"),r=b("page-footer"),w=b("messages"),V=b("blocker");return i(),u(T,null,[a("header",null,[_(o)]),a("div",Wo,[a("div",Ro,[a("h1",null,v(e.$route.meta.heading),1),_(m,{onSave:s.saveValues,onReset:s.resetValues,onDefaults:s.setDefaultValues,onSendCommand:s.sendCommand},null,8,["onSave","onReset","onDefaults","onSendCommand"])])]),_(r),_(w),_(V)],64)}const zo=y(jo,[["render",No],["__file","/opt/openWB-dev/openwb-ui-settings/src/App.vue"]]),Fo="modulepreload",Ho=function(e){return"/openWB/web/settings/"+e},z={},k=function(t,n,d){if(!n||n.length===0)return t();const l=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Ho(s),s in z)return;z[s]=!0;const o=s.endsWith(".css"),m=o?'[rel="stylesheet"]':"";if(!!d)for(let V=l.length-1;V>=0;V--){const D=l[V];if(D.href===s&&(!o||D.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${m}`))return;const w=document.createElement("link");if(w.rel=o?"stylesheet":Fo,o||(w.as="script",w.crossOrigin=""),w.href=s,document.head.appendChild(w),o)return new Promise((V,D)=>{w.addEventListener("load",V),w.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};let Y={mqtt:{},mqttSubscriptions:{},local:{reloadRequired:!1,savingData:!1}};Y.examples={text1:"Text...",text2:"mail@domain.com",text3:"openwb.local",text4:"http://www.openwb.de",text5:"Benutzername",text6:"12:34",text7:"2021-10-31",color1:"#ff0000",color2:"#0000ff",number1:5,number2:10,number3:28e-5,password1:"GeHeiM!",textarea1:"Langer Text...",range1:6,range2:10,select1:1,select2:void 0,buttonGroup1:1,checkbox1:!0,json1:{text:"Text",number:123},hierarchy1:[{id:0,type:"counter",children:[{id:3,type:"inverter",children:[]},{id:4,type:"bat",children:[]},{id:1,type:"cp",children:[]},{id:2,type:"cp",children:[]}]}],hierarchy1Labels:{0:"EVU",1:"Ladepunkt 1",2:"Ladepunkt 2",3:"Wechselrichter",4:"Batteriespeicher"},tags:["1234","2345","3456"],ioConfig:{active:!1,pattern:[null,!1,!0],action:{value:"stop_all",options:null}}};const L=le({state:Y,mutations:{storeLocal(e,t){e.local[t.name]=t.value},addTopic(e,t){Object.keys(e.mqtt).includes(t.topic)?console.warn("topic already exists: ",t.topic):e.mqtt[t.topic]=t.payload},removeTopic(e,t){delete e.mqtt[t]},updateTopic(e,t){const n=(d,l,s)=>l.split(".").reduce((o,m,r)=>o[m]=l.split(".").length===++r?s:o[m]||{},d);t.topic in e.mqtt||!(t.topic in e.examples)?t.objectPath!=null?n(e.mqtt[t.topic],t.objectPath,t.payload):e.mqtt[t.topic]=t.payload:(console.debug("topic not found in state.mqtt: ",t.topic),t.topic in e.examples?t.objectPath!=null?n(e.examples[t.topic],t.objectPath,t.payload):e.examples[t.topic]=t.payload:console.warn("topic not found in state: ",t.topic," giving up"))},addSubscription(e,t){t in e.mqttSubscriptions?e.mqttSubscriptions[t]+=1:e.mqttSubscriptions[t]=1,console.debug("subscription count: ",t,e.mqttSubscriptions[t])},removeSubscription(e,t){t in e.mqttSubscriptions&&(e.mqttSubscriptions[t]-=1,e.mqttSubscriptions[t]<=0&&delete e.mqttSubscriptions[t])}},actions:{},modules:{},getters:{usageTermsAcknowledged(e){return new Promise(t=>{if(e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0)t(e.mqtt["openWB/system/usage_terms_acknowledged"]);else{var n,d;n=setTimeout(()=>{clearInterval(d),t(!1)},5e3),d=setInterval(()=>{e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0&&(clearTimeout(n),clearInterval(d),t(e.mqtt["openWB/system/usage_terms_acknowledged"]))},100)}})},installAssistantDone(e){return new Promise(t=>{if(e.mqtt["openWB/system/installAssistantDone"]!==void 0)t(e.mqtt["openWB/system/installAssistantDone"]);else{var n,d;n=setTimeout(()=>{clearInterval(d),t(!1)},5e3),d=setInterval(()=>{e.mqtt["openWB/system/installAssistantDone"]!==void 0&&(clearTimeout(n),clearInterval(d),t(e.mqtt["openWB/system/installAssistantDone"]))},100)}})},subscriptionCount:e=>t=>e.mqttSubscriptions[t]||0}}),X=[{path:"/",redirect:"/GeneralConfig"},{path:"/Status",name:"Status",meta:{heading:"Status"},component:()=>k(()=>import("./Status-0bb03b2e.js"),["assets/Status-0bb03b2e.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-chartjs-b3bc0878.js","assets/vendor-luxon-cc86f6dc.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/Status-a4f24178.css"])},{path:"/Logging/ChargeLog",name:"ChargeLog",meta:{heading:"Auswertungen - Ladeprotokoll"},component:()=>k(()=>import("./ChargeLog-5f1564ba.js"),["assets/ChargeLog-5f1564ba.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/ChargeLog-1fb3fa68.css"])},{path:"/Logging/Chart/:chartRange?/:initialDate?",name:"DailyChart",meta:{heading:"Auswertungen - Diagramme"},component:()=>k(()=>import("./Chart-56d76d74.js"),["assets/Chart-56d76d74.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-chartjs-b3bc0878.js","assets/vendor-luxon-cc86f6dc.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/Chart-e20451b4.css"])},{path:"/GeneralConfig",name:"GeneralConfig",meta:{heading:"Einstellungen - Allgemein"},component:()=>k(()=>import("./GeneralConfig-3d94b7eb.js").then(e=>e.a),["assets/GeneralConfig-3d94b7eb.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/dynamic-import-helper-be004503.js"])},{path:"/OptionalComponents",name:"OptionalComponents",meta:{heading:"Einstellungen - Optionale Hardware"},component:()=>k(()=>import("./OptionalComponents-1d822d98.js").then(e=>e.O),["assets/OptionalComponents-1d822d98.js","assets/dynamic-import-helper-be004503.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/VehicleIdWikiHint-714fb4c5.js"])},{path:"/GeneralChargeConfig",name:"GeneralChargeConfig",meta:{heading:"Ladeeinstellungen - Übergreifendes"},component:()=>k(()=>import("./GeneralChargeConfig-28e21ec2.js").then(e=>e.G),["assets/GeneralChargeConfig-28e21ec2.js","assets/dynamic-import-helper-be004503.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css"])},{path:"/PVChargeConfig",name:"PVChargeConfig",meta:{heading:"Ladeeinstellungen - PV-Laden"},component:()=>k(()=>import("./PVChargeConfig-9086cd97.js"),["assets/PVChargeConfig-9086cd97.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js"])},{path:"/HardwareInstallation",name:"HardwareInstallation",meta:{heading:"Konfiguration - Geräte und Komponenten"},component:()=>k(()=>import("./HardwareInstallation-0c77715a.js").then(e=>e.a),["assets/HardwareInstallation-0c77715a.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/dynamic-import-helper-be004503.js"])},{path:"/LoadManagementConfiguration",name:"LoadManagementConfiguration",meta:{heading:"Konfiguration - Lastmanagement"},component:()=>k(()=>import("./LoadManagementConfig-adf5f944.js"),["assets/LoadManagementConfig-adf5f944.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/OpenwbSortableList-e9396362.js","assets/OpenwbSortableList-7ba533e4.css","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js"])},{path:"/ChargePointInstallation",name:"ChargePointInstallation",meta:{heading:"Konfiguration - Ladepunkte"},component:()=>k(()=>import("./ChargePointInstallation-9345f83e.js").then(e=>e.c),["assets/ChargePointInstallation-9345f83e.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/dynamic-import-helper-be004503.js","assets/ChargePointInstallation-7b9399a8.css"])},{path:"/VehicleConfiguration/:section?/:section_index?/:section_part?/:action?",name:"VehicleConfiguration",meta:{heading:"Konfiguration - Fahrzeuge"},component:()=>k(()=>import("./VehicleConfig-44d8bbb2.js").then(e=>e.b),["assets/VehicleConfig-44d8bbb2.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/dynamic-import-helper-be004503.js","assets/VehicleIdWikiHint-714fb4c5.js"])},{path:"/IoConfiguration",name:"IoConfiguration",meta:{heading:"Konfiguration - Ein- und Ausgänge"},component:()=>k(()=>import("./IoConfig-1ffa1790.js").then(e=>e.I),["assets/IoConfig-1ffa1790.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/dynamic-import-helper-be004503.js"])},{path:"/System/CloudConfiguration",name:"CloudConfig",meta:{heading:"System - openWB Cloud"},component:()=>k(()=>import("./CloudConfig-592841ed.js"),["assets/CloudConfig-592841ed.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js"])},{path:"/System/MqttBridgeConfiguration",name:"MqttBridgeConfig",meta:{heading:"System - MQTT-Brücken"},component:()=>k(()=>import("./MqttBridgeConfig-dcc167ed.js"),["assets/MqttBridgeConfig-dcc167ed.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js"])},{path:"/System/DebugConfiguration",name:"Debugging",meta:{heading:"System - Fehlersuche"},component:()=>k(()=>import("./DebugConfig-3be918cd.js"),["assets/DebugConfig-3be918cd.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-axios-89a9dc60.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/DebugConfig-e21ab72c.css"])},{path:"/System/Support",name:"Support",meta:{heading:"System - Support"},component:()=>k(()=>import("./Support-76a3c998.js"),["assets/Support-76a3c998.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js"])},{path:"/System/LegalSettings",name:"LegalSettings",meta:{heading:"System - Rechtliches"},component:()=>k(()=>import("./LegalSettings-fa1fe7ea.js"),["assets/LegalSettings-fa1fe7ea.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js"])},{path:"/System/SystemConfiguration",name:"SystemConfig",meta:{heading:"System - System"},component:()=>k(()=>import("./System-186920b0.js"),["assets/System-186920b0.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js","assets/System-f301c290.css"])},{path:"/System/DataManagement",name:"DataManagement",meta:{heading:"System - Datenverwaltung"},component:()=>k(()=>import("./DataManagement-3531e291.js").then(e=>e.a),["assets/DataManagement-3531e291.js","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/dynamic-import-helper-be004503.js"])},{path:"/System/InstallAssistant",name:"InstallAssistant",meta:{heading:"System - Einrichtungsassistent"},component:()=>k(()=>import("./InstallAssistant-928c3063.js"),["assets/InstallAssistant-928c3063.js","assets/dynamic-import-helper-be004503.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js"])}];X.push({path:"/TestingStore",name:"VUEX Store",meta:{heading:"Beispiele - VUEX Store"},component:()=>k(()=>import("./TestingStore-ae29e04b.js"),["assets/TestingStore-ae29e04b.js","assets/OpenwbSortableList-e9396362.js","assets/vendor-57e3a63c.js","assets/vendor-sortablejs-63b3e6e3.js","assets/vendor-3a7c342f.css","assets/vendor-fortawesome-d6ee0a65.js","assets/OpenwbSortableList-7ba533e4.css","assets/vendor-bootstrap-6fb47dbc.js","assets/vendor-jquery-92d6c4db.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-89a9dc60.js"])});const W=re({history:de(),routes:X});W.beforeEach(async e=>{if(await L.getters.usageTermsAcknowledged){if(!await L.getters.installAssistantDone&&e.name!=="InstallAssistant")return{name:"InstallAssistant"}}else if(e.name!=="LegalSettings")return{name:"LegalSettings"}});W.afterEach(e=>{e.meta.heading?document.title="openWB | "+e.meta.heading:document.title="openWB"});const R=ue(zo);R.use(L).use(W).use(He,Ue);const Uo=Object.assign({"./components/OpenwbBaseAlert.vue":Ze,"./components/OpenwbBaseArrayInput.vue":mt,"./components/OpenwbBaseAvatar.vue":ht,"./components/OpenwbBaseButtonGroupInput.vue":Ot,"./components/OpenwbBaseButtonInput.vue":Mt,"./components/OpenwbBaseCard.vue":Nt,"./components/OpenwbBaseCheckboxInput.vue":Gt,"./components/OpenwbBaseClickButton.vue":It,"./components/OpenwbBaseColorPicker.vue":Xt,"./components/OpenwbBaseCopyToClipboard.vue":un,"./components/OpenwbBaseHeading.vue":hn,"./components/OpenwbBaseIoPattern.vue":kn,"./components/OpenwbBaseModalDialog.vue":An,"./components/OpenwbBaseNumberInput.vue":Nn,"./components/OpenwbBaseRangeInput.vue":Qn,"./components/OpenwbBaseSelectInput.vue":us,"./components/OpenwbBaseSettingElement.vue":nt,"./components/OpenwbBaseSubmitButtons.vue":hs,"./components/OpenwbBaseTextInput.vue":Ds,"./components/OpenwbBaseTextarea.vue":Gs,"./components/OpenwbBaseToast.vue":Xs});Object.entries(Uo).forEach(([e,t])=>{const n=ce(pe(e.split("/").pop().replace(/\.\w+$/,"")));R.component(n,t.default)});R.mount("#app");export{Q as C,M as O,k as _}; diff --git a/web/settings/assets/inverter-0e60b688.js b/web/settings/assets/inverter-0e60b688.js new file mode 100644 index 0000000000..75387acaf1 --- /dev/null +++ b/web/settings/assets/inverter-0e60b688.js @@ -0,0 +1 @@ +import{C as e}from"./HardwareInstallation-0c77715a.js";import{_ as n,l as t,m as i}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const o={name:"DeviceBenningInverter",mixins:[e]},r={class:"device-benning-inverter"};function s(p,c,m,a,_,v){return t(),i("div",r)}const C=n(o,[["render",s],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/benning/benning/inverter.vue"]]);export{C as default}; diff --git a/web/settings/assets/inverter-da7b4d6d.js b/web/settings/assets/inverter-14d8ff03.js similarity index 67% rename from web/settings/assets/inverter-da7b4d6d.js rename to web/settings/assets/inverter-14d8ff03.js index 60f5d2090a..49aad61ae0 100644 --- a/web/settings/assets/inverter-da7b4d6d.js +++ b/web/settings/assets/inverter-14d8ff03.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as o,l,m,G as n,E as u,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceOpenwbPvkitInverter",mixins:[p]},v={class:"device-openwb-pvkit-inverter"};function _(t,e,f,b,w,g){const i=o("openwb-base-heading"),r=o("openwb-base-select-input");return l(),m("div",v,[n(i,null,{default:u(()=>e[1]||(e[1]=[c(" Einstellungen für openWB PV-Kit Wechselrichter ",-1)])),_:1,__:[1]}),n(r,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":t.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=s=>t.updateConfiguration(s,"configuration.version"))},null,8,["model-value"])])}const $=a(d,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_pv_kit/inverter.vue"]]);export{$ as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as o,l,m,G as n,E as u,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceOpenwbPvkitInverter",mixins:[p]},v={class:"device-openwb-pvkit-inverter"};function _(t,e,f,b,w,g){const i=o("openwb-base-heading"),r=o("openwb-base-select-input");return l(),m("div",v,[n(i,null,{default:u(()=>e[1]||(e[1]=[c(" Einstellungen für openWB PV-Kit Wechselrichter ",-1)])),_:1,__:[1]}),n(r,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":t.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=s=>t.updateConfiguration(s,"configuration.version"))},null,8,["model-value"])])}const $=a(d,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_pv_kit/inverter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/inverter-da89e3ac.js b/web/settings/assets/inverter-21f4f499.js similarity index 68% rename from web/settings/assets/inverter-da89e3ac.js rename to web/settings/assets/inverter-21f4f499.js index 0dba137d2a..15743df46f 100644 --- a/web/settings/assets/inverter-da89e3ac.js +++ b/web/settings/assets/inverter-21f4f499.js @@ -1 +1 @@ -import{C as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as o,l,m as u,G as n,E as c,B as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceKostalStecaInverter",mixins:[r]},_={class:"device-kostal-steca-inverter"};function f(t,e,v,b,g,k){const a=o("openwb-base-heading"),i=o("openwb-base-button-group-input");return l(),u("div",_,[n(a,null,{default:c(()=>e[1]||(e[1]=[m(" Einstellungen für Kostal Piko MP oder Steca Grid Coolcept Wechselrichter ",-1)])),_:1,__:[1]}),n(i,{title:"Variante",buttons:[{buttonValue:!1,text:"Kostal Piko MP (non-plus)"},{buttonValue:!0,text:"Kostal Piko MP oder Steca Grid Coolcept"}],"model-value":t.component.configuration.variant_steca,"onUpdate:modelValue":e[0]||(e[0]=s=>t.updateConfiguration(s,"configuration.variant_steca"))},null,8,["model-value"])])}const h=p(d,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_steca/inverter.vue"]]);export{h as default}; +import{C as r}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as o,l,m as u,G as n,E as c,B as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceKostalStecaInverter",mixins:[r]},_={class:"device-kostal-steca-inverter"};function f(t,e,v,b,g,k){const a=o("openwb-base-heading"),i=o("openwb-base-button-group-input");return l(),u("div",_,[n(a,null,{default:c(()=>e[1]||(e[1]=[m(" Einstellungen für Kostal Piko MP oder Steca Grid Coolcept Wechselrichter ",-1)])),_:1,__:[1]}),n(i,{title:"Variante",buttons:[{buttonValue:!1,text:"Kostal Piko MP (non-plus)"},{buttonValue:!0,text:"Kostal Piko MP oder Steca Grid Coolcept"}],"model-value":t.component.configuration.variant_steca,"onUpdate:modelValue":e[0]||(e[0]=s=>t.updateConfiguration(s,"configuration.variant_steca"))},null,8,["model-value"])])}const h=p(d,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_steca/inverter.vue"]]);export{h as default}; diff --git a/web/settings/assets/inverter-7c045e1d.js b/web/settings/assets/inverter-23a0795f.js similarity index 86% rename from web/settings/assets/inverter-7c045e1d.js rename to web/settings/assets/inverter-23a0795f.js index fc9fb1ca95..7f4ee7652c 100644 --- a/web/settings/assets/inverter-7c045e1d.js +++ b/web/settings/assets/inverter-23a0795f.js @@ -1 +1 @@ -import{C as s}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as a,l as p,m,G as o,E as l,B as i,A as f}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceJsonInverter",mixins:[s]},b={class:"device-json-inverter"};function v(n,e,w,_,c,j){const u=a("openwb-base-heading"),r=a("openwb-base-text-input");return p(),m("div",b,[o(u,null,{default:l(()=>e[5]||(e[5]=[i(" Einstellungen für JSON Wechselrichter ",-1)])),_:1,__:[5]}),o(r,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":n.component.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t,"configuration.jq_power"))},{help:l(()=>e[6]||(e[6]=[i(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. ',-1),f("br",null,null,-1),i(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) ",-1)])),_:1},8,["model-value"]),o(r,{title:"Abfrage für Zählerstand",subtype:"text","model-value":n.component.configuration.jq_exported,"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.jq_exported"))},{help:l(()=>e[7]||(e[7]=[i(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ",-1)])),_:1},8,["model-value"]),o(r,{title:"Abfrage für Strom auf Phase 1",subtype:"text","model-value":n.component.configuration.jq_current_l1,"onUpdate:modelValue":e[2]||(e[2]=t=>n.updateConfiguration(t,"configuration.jq_current_l1"))},null,8,["model-value"]),o(r,{title:"Abfrage für Strom auf Phase 2",subtype:"text","model-value":n.component.configuration.jq_current_l2,"onUpdate:modelValue":e[3]||(e[3]=t=>n.updateConfiguration(t,"configuration.jq_current_l2"))},null,8,["model-value"]),o(r,{title:"Abfrage für Strom auf Phase 3",subtype:"text","model-value":n.component.configuration.jq_current_l3,"onUpdate:modelValue":e[4]||(e[4]=t=>n.updateConfiguration(t,"configuration.jq_current_l3"))},null,8,["model-value"])])}const k=d(g,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/json/inverter.vue"]]);export{k as default}; +import{C as s}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as a,l as p,m,G as o,E as l,B as i,A as f}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceJsonInverter",mixins:[s]},b={class:"device-json-inverter"};function v(n,e,w,_,c,j){const u=a("openwb-base-heading"),r=a("openwb-base-text-input");return p(),m("div",b,[o(u,null,{default:l(()=>e[5]||(e[5]=[i(" Einstellungen für JSON Wechselrichter ",-1)])),_:1,__:[5]}),o(r,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":n.component.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t,"configuration.jq_power"))},{help:l(()=>e[6]||(e[6]=[i(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. ',-1),f("br",null,null,-1),i(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) ",-1)])),_:1},8,["model-value"]),o(r,{title:"Abfrage für Zählerstand",subtype:"text","model-value":n.component.configuration.jq_exported,"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.jq_exported"))},{help:l(()=>e[7]||(e[7]=[i(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ",-1)])),_:1},8,["model-value"]),o(r,{title:"Abfrage für Strom auf Phase 1",subtype:"text","model-value":n.component.configuration.jq_current_l1,"onUpdate:modelValue":e[2]||(e[2]=t=>n.updateConfiguration(t,"configuration.jq_current_l1"))},null,8,["model-value"]),o(r,{title:"Abfrage für Strom auf Phase 2",subtype:"text","model-value":n.component.configuration.jq_current_l2,"onUpdate:modelValue":e[3]||(e[3]=t=>n.updateConfiguration(t,"configuration.jq_current_l2"))},null,8,["model-value"]),o(r,{title:"Abfrage für Strom auf Phase 3",subtype:"text","model-value":n.component.configuration.jq_current_l3,"onUpdate:modelValue":e[4]||(e[4]=t=>n.updateConfiguration(t,"configuration.jq_current_l3"))},null,8,["model-value"])])}const k=d(g,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/json/inverter.vue"]]);export{k as default}; diff --git a/web/settings/assets/inverter-2464c133.js b/web/settings/assets/inverter-2464c133.js deleted file mode 100644 index 8cc5863836..0000000000 --- a/web/settings/assets/inverter-2464c133.js +++ /dev/null @@ -1 +0,0 @@ -import{C as e}from"./HardwareInstallation-b7e2b58c.js";import{_ as n,l as t,m as i}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const o={name:"DeviceBenningInverter",mixins:[e]},r={class:"device-benning-inverter"};function s(p,c,m,a,_,v){return t(),i("div",r)}const C=n(o,[["render",s],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/benning/benning/inverter.vue"]]);export{C as default}; diff --git a/web/settings/assets/inverter-8261fbcd.js b/web/settings/assets/inverter-273c4d09.js similarity index 66% rename from web/settings/assets/inverter-8261fbcd.js rename to web/settings/assets/inverter-273c4d09.js index 3a0420e440..24b807ba8b 100644 --- a/web/settings/assets/inverter-8261fbcd.js +++ b/web/settings/assets/inverter-273c4d09.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as n,l as u,m as c,G as t,E as i,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceMTecInverter",mixins:[a]},_={class:"device-mtec-inverter"};function b(o,e,f,v,g,w){const s=n("openwb-base-heading"),m=n("openwb-base-number-input");return u(),c("div",_,[t(s,null,{default:i(()=>e[1]||(e[1]=[r(" Einstellungen für M-Tec Wechselrichter ",-1)])),_:1,__:[1]}),t(m,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.modbus_id"))},{help:i(()=>e[2]||(e[2]=[r(" Die Standard-Modbus-ID von M-Tec ist 247 ",-1)])),_:1},8,["model-value"])])}const V=d(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mtec/mtec/inverter.vue"]]);export{V as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as n,l as u,m as c,G as t,E as i,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceMTecInverter",mixins:[a]},_={class:"device-mtec-inverter"};function b(o,e,f,v,g,w){const s=n("openwb-base-heading"),m=n("openwb-base-number-input");return u(),c("div",_,[t(s,null,{default:i(()=>e[1]||(e[1]=[r(" Einstellungen für M-Tec Wechselrichter ",-1)])),_:1,__:[1]}),t(m,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=p=>o.updateConfiguration(p,"configuration.modbus_id"))},{help:i(()=>e[2]||(e[2]=[r(" Die Standard-Modbus-ID von M-Tec ist 247 ",-1)])),_:1},8,["model-value"])])}const V=d(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mtec/mtec/inverter.vue"]]);export{V as default}; diff --git a/web/settings/assets/inverter-0eab0f03.js b/web/settings/assets/inverter-39424733.js similarity index 67% rename from web/settings/assets/inverter-0eab0f03.js rename to web/settings/assets/inverter-39424733.js index 7cf1f8b7df..357c5326d2 100644 --- a/web/settings/assets/inverter-0eab0f03.js +++ b/web/settings/assets/inverter-39424733.js @@ -1 +1 @@ -import{C as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as o,l as u,m as l,G as t,E as i,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceSigenergyInverter",mixins:[m]},_={class:"device-sigenergy-inverter"};function c(n,e,b,f,v,w){const s=o("openwb-base-heading"),p=o("openwb-base-number-input");return u(),l("div",_,[t(s,null,{default:i(()=>e[1]||(e[1]=[r(" Einstellungen für Sigenergy Wechselrichter ",-1)])),_:1,__:[1]}),t(p,{title:"Modbus ID",required:"","model-value":n.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>n.updateConfiguration(a,"configuration.modbus_id"))},{help:i(()=>e[2]||(e[2]=[r(" Die Standard-Modbus-ID von Sigenergy ist 247 ",-1)])),_:1},8,["model-value"])])}const M=d(g,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sigenergy/sigenergy/inverter.vue"]]);export{M as default}; +import{C as m}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as o,l as u,m as l,G as t,E as i,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceSigenergyInverter",mixins:[m]},_={class:"device-sigenergy-inverter"};function c(n,e,b,f,v,w){const s=o("openwb-base-heading"),p=o("openwb-base-number-input");return u(),l("div",_,[t(s,null,{default:i(()=>e[1]||(e[1]=[r(" Einstellungen für Sigenergy Wechselrichter ",-1)])),_:1,__:[1]}),t(p,{title:"Modbus ID",required:"","model-value":n.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=a=>n.updateConfiguration(a,"configuration.modbus_id"))},{help:i(()=>e[2]||(e[2]=[r(" Die Standard-Modbus-ID von Sigenergy ist 247 ",-1)])),_:1},8,["model-value"])])}const M=d(g,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sigenergy/sigenergy/inverter.vue"]]);export{M as default}; diff --git a/web/settings/assets/inverter-3c1b86b2.js b/web/settings/assets/inverter-3ba58e65.js similarity index 66% rename from web/settings/assets/inverter-3c1b86b2.js rename to web/settings/assets/inverter-3ba58e65.js index b7dd0be98b..7a47d78582 100644 --- a/web/settings/assets/inverter-3c1b86b2.js +++ b/web/settings/assets/inverter-3ba58e65.js @@ -1 +1 @@ -import{C as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as t,l as p,m as l,G as n,E as m,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceYoulessInverter",mixins:[u]},d={class:"device-youless-inverter"};function f(o,e,b,v,g,x){const s=t("openwb-base-heading"),i=t("openwb-base-button-group-input");return p(),l("div",d,[n(s,null,{default:m(()=>e[1]||(e[1]=[c(" Einstellungen für Youless LS120 Wechselrichter ",-1)])),_:1,__:[1]}),n(i,{title:"S0-Eingang auslesen",buttons:[{buttonValue:!1,text:"nein"},{buttonValue:!0,text:"ja"}],"model-value":o.component.configuration.source_s0,"onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.source_s0"))},null,8,["model-value"])])}const N=a(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/youless/youless/inverter.vue"]]);export{N as default}; +import{C as u}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as t,l as p,m as l,G as n,E as m,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceYoulessInverter",mixins:[u]},d={class:"device-youless-inverter"};function f(o,e,b,v,g,x){const s=t("openwb-base-heading"),i=t("openwb-base-button-group-input");return p(),l("div",d,[n(s,null,{default:m(()=>e[1]||(e[1]=[c(" Einstellungen für Youless LS120 Wechselrichter ",-1)])),_:1,__:[1]}),n(i,{title:"S0-Eingang auslesen",buttons:[{buttonValue:!1,text:"nein"},{buttonValue:!0,text:"ja"}],"model-value":o.component.configuration.source_s0,"onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.source_s0"))},null,8,["model-value"])])}const N=a(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/youless/youless/inverter.vue"]]);export{N as default}; diff --git a/web/settings/assets/inverter-3a09fafa.js b/web/settings/assets/inverter-3f8066c8.js similarity index 64% rename from web/settings/assets/inverter-3a09fafa.js rename to web/settings/assets/inverter-3f8066c8.js index a56a6d0bbd..7578c5c9de 100644 --- a/web/settings/assets/inverter-3a09fafa.js +++ b/web/settings/assets/inverter-3f8066c8.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as n,l as m,m as u,G as t,E as d,B as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceFoxEssInverter",mixins:[p]},c={class:"device-fox_ess-inverter"};function f(o,e,b,v,x,g){const s=n("openwb-base-heading"),i=n("openwb-base-number-input");return m(),u("div",c,[t(s,null,{default:d(()=>e[1]||(e[1]=[_(" Einstellungen für FoxEss Wechselrichter ",-1)])),_:1,__:[1]}),t(i,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const F=a(l,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fox_ess/fox_ess/inverter.vue"]]);export{F as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as n,l as m,m as u,G as t,E as d,B as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceFoxEssInverter",mixins:[p]},c={class:"device-fox_ess-inverter"};function f(o,e,b,v,x,g){const s=n("openwb-base-heading"),i=n("openwb-base-number-input");return m(),u("div",c,[t(s,null,{default:d(()=>e[1]||(e[1]=[_(" Einstellungen für FoxEss Wechselrichter ",-1)])),_:1,__:[1]}),t(i,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const F=a(l,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fox_ess/fox_ess/inverter.vue"]]);export{F as default}; diff --git a/web/settings/assets/inverter-280fc766.js b/web/settings/assets/inverter-3ff240fb.js similarity index 75% rename from web/settings/assets/inverter-280fc766.js rename to web/settings/assets/inverter-3ff240fb.js index eb18f0b157..2c80b0face 100644 --- a/web/settings/assets/inverter-280fc766.js +++ b/web/settings/assets/inverter-3ff240fb.js @@ -1 +1 @@ -import{C as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as r,l as d,m as g,G as o,E as l,B as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceVZLoggerInverter",mixins:[u]},f={class:"device-vzlogger-inverter"};function c(n,e,v,b,w,Z){const a=r("openwb-base-heading"),p=r("openwb-base-alert"),i=r("openwb-base-number-input");return d(),g("div",f,[o(a,null,{default:l(()=>e[2]||(e[2]=[s(" Einstellungen für VZLogger Wechselrichter ",-1)])),_:1,__:[2]}),o(p,{subtype:"info"},{default:l(()=>e[3]||(e[3]=[s(' Bitte auf der Shell ausführen: "curl -s IPdesVZLogger:Port | jq .|cat -n" Zählen, in welcher Zeile der gesuchte Wert steht. Bei der ersten Zeile mit 1 anfangen zu zählen. ',-1)])),_:1,__:[3]}),o(i,{title:"Zeile der Leistung",required:"",min:0,"model-value":n.component.configuration.line_power,"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t,"configuration.line_power"))},null,8,["model-value"]),o(i,{title:"Zeile der exportierten Energie (Ertrag)",min:0,"model-value":n.component.configuration.line_exported,"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.line_exported"))},null,8,["model-value"])])}const W=m(_,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/vzlogger/inverter.vue"]]);export{W as default}; +import{C as u}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as r,l as d,m as g,G as o,E as l,B as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceVZLoggerInverter",mixins:[u]},f={class:"device-vzlogger-inverter"};function c(n,e,v,b,w,Z){const a=r("openwb-base-heading"),p=r("openwb-base-alert"),i=r("openwb-base-number-input");return d(),g("div",f,[o(a,null,{default:l(()=>e[2]||(e[2]=[s(" Einstellungen für VZLogger Wechselrichter ",-1)])),_:1,__:[2]}),o(p,{subtype:"info"},{default:l(()=>e[3]||(e[3]=[s(' Bitte auf der Shell ausführen: "curl -s IPdesVZLogger:Port | jq .|cat -n" Zählen, in welcher Zeile der gesuchte Wert steht. Bei der ersten Zeile mit 1 anfangen zu zählen. ',-1)])),_:1,__:[3]}),o(i,{title:"Zeile der Leistung",required:"",min:0,"model-value":n.component.configuration.line_power,"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t,"configuration.line_power"))},null,8,["model-value"]),o(i,{title:"Zeile der exportierten Energie (Ertrag)",min:0,"model-value":n.component.configuration.line_exported,"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.line_exported"))},null,8,["model-value"])])}const W=m(_,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/vzlogger/inverter.vue"]]);export{W as default}; diff --git a/web/settings/assets/inverter-1475e049.js b/web/settings/assets/inverter-426faebc.js similarity index 75% rename from web/settings/assets/inverter-1475e049.js rename to web/settings/assets/inverter-426faebc.js index dbc3dfd026..f044f0c934 100644 --- a/web/settings/assets/inverter-1475e049.js +++ b/web/settings/assets/inverter-426faebc.js @@ -1 +1 @@ -import{C as s}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as n,l as m,m as _,G as r,E as i,B as a}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceStuderInverter",mixins:[s]},b={class:"device-studer-inverter"};function v(t,e,f,g,V,S){const u=n("openwb-base-heading"),p=n("openwb-base-button-group-input"),l=n("openwb-base-number-input");return m(),_("div",b,[r(u,null,{default:i(()=>e[2]||(e[2]=[a(" Einstellungen für Studer Wechselrichter ",-1)])),_:1,__:[2]}),r(p,{title:"Typ der MPPT Solarladeregler",buttons:[{buttonValue:"VT",text:"Variotrack (VT-40/VT-65/VT-80)"},{buttonValue:"VS",text:"VarioString (VS-70/VS-120)"}],"model-value":t.component.configuration.vc_type,required:"","onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.vc_type"))},null,8,["model-value"]),r(l,{title:"Anzahl MPPT Solarladeregler",required:"",min:1,max:9,"model-value":t.component.configuration.vc_count,"onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.vc_count"))},{help:i(()=>e[3]||(e[3]=[a(" Anzahl (1-9) der Studer MPPT Solarladeregler im System (VS/VT) ",-1)])),_:1},8,["model-value"])])}const k=d(c,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/studer/inverter.vue"]]);export{k as default}; +import{C as s}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as n,l as m,m as _,G as r,E as i,B as a}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceStuderInverter",mixins:[s]},b={class:"device-studer-inverter"};function v(t,e,f,g,V,S){const u=n("openwb-base-heading"),p=n("openwb-base-button-group-input"),l=n("openwb-base-number-input");return m(),_("div",b,[r(u,null,{default:i(()=>e[2]||(e[2]=[a(" Einstellungen für Studer Wechselrichter ",-1)])),_:1,__:[2]}),r(p,{title:"Typ der MPPT Solarladeregler",buttons:[{buttonValue:"VT",text:"Variotrack (VT-40/VT-65/VT-80)"},{buttonValue:"VS",text:"VarioString (VS-70/VS-120)"}],"model-value":t.component.configuration.vc_type,required:"","onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.vc_type"))},null,8,["model-value"]),r(l,{title:"Anzahl MPPT Solarladeregler",required:"",min:1,max:9,"model-value":t.component.configuration.vc_count,"onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.vc_count"))},{help:i(()=>e[3]||(e[3]=[a(" Anzahl (1-9) der Studer MPPT Solarladeregler im System (VS/VT) ",-1)])),_:1},8,["model-value"])])}const k=d(c,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/studer/inverter.vue"]]);export{k as default}; diff --git a/web/settings/assets/inverter-fcb44e16.js b/web/settings/assets/inverter-43948e1d.js similarity index 64% rename from web/settings/assets/inverter-fcb44e16.js rename to web/settings/assets/inverter-43948e1d.js index ec30974970..5351072c0f 100644 --- a/web/settings/assets/inverter-fcb44e16.js +++ b/web/settings/assets/inverter-43948e1d.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as n,l as p,m as l,G as t,E as u,B as d}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSolarmaxInverter",mixins:[a]},c={class:"device-solarmax-inverter"};function b(o,e,f,v,x,g){const r=n("openwb-base-heading"),i=n("openwb-base-number-input");return p(),l("div",c,[t(r,null,{default:u(()=>e[1]||(e[1]=[d(" Einstellungen für Solarmax Wechselrichter ",-1)])),_:1,__:[1]}),t(i,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const I=m(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/solarmax/inverter.vue"]]);export{I as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as n,l as p,m as l,G as t,E as u,B as d}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSolarmaxInverter",mixins:[a]},c={class:"device-solarmax-inverter"};function b(o,e,f,v,x,g){const r=n("openwb-base-heading"),i=n("openwb-base-number-input");return p(),l("div",c,[t(r,null,{default:u(()=>e[1]||(e[1]=[d(" Einstellungen für Solarmax Wechselrichter ",-1)])),_:1,__:[1]}),t(i,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const I=m(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/solarmax/inverter.vue"]]);export{I as default}; diff --git a/web/settings/assets/inverter-517a33e3.js b/web/settings/assets/inverter-4a6155cb.js similarity index 86% rename from web/settings/assets/inverter-517a33e3.js rename to web/settings/assets/inverter-4a6155cb.js index f16e49b2a3..4adabf3f57 100644 --- a/web/settings/assets/inverter-517a33e3.js +++ b/web/settings/assets/inverter-4a6155cb.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as l,l as m,m as g,G as r,E as o,B as n,A as a}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const h={name:"DeviceHttpInverter",mixins:[p]},c={class:"device-http-inverter"};function b(t,e,v,f,w,_){const d=l("openwb-base-heading"),s=l("openwb-base-text-input");return m(),g("div",c,[r(d,null,{default:o(()=>e[2]||(e[2]=[n(" Einstellungen für Http Wechselrichter ",-1)])),_:1,__:[2]}),r(s,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":t.component.configuration.power_path,"onUpdate:modelValue":e[0]||(e[0]=i=>t.updateConfiguration(i,"configuration.power_path"))},{help:o(()=>e[3]||(e[3]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) ",-1)])),_:1},8,["model-value"]),r(s,{title:"Pfad für Zählerstand Erzeugung",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.exported_path,"onUpdate:modelValue":e[1]||(e[1]=i=>t.updateConfiguration(i,"configuration.exported_path"))},{help:o(()=>e[4]||(e[4]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt.",-1),a("br",null,null,-1),n(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ",-1)])),_:1},8,["model-value"])])}const S=u(h,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/http/inverter.vue"]]);export{S as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as l,l as m,m as g,G as r,E as o,B as n,A as a}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const h={name:"DeviceHttpInverter",mixins:[p]},c={class:"device-http-inverter"};function b(t,e,v,f,w,_){const d=l("openwb-base-heading"),s=l("openwb-base-text-input");return m(),g("div",c,[r(d,null,{default:o(()=>e[2]||(e[2]=[n(" Einstellungen für Http Wechselrichter ",-1)])),_:1,__:[2]}),r(s,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":t.component.configuration.power_path,"onUpdate:modelValue":e[0]||(e[0]=i=>t.updateConfiguration(i,"configuration.power_path"))},{help:o(()=>e[3]||(e[3]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) ",-1)])),_:1},8,["model-value"]),r(s,{title:"Pfad für Zählerstand Erzeugung",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":t.component.configuration.exported_path,"onUpdate:modelValue":e[1]||(e[1]=i=>t.updateConfiguration(i,"configuration.exported_path"))},{help:o(()=>e[4]||(e[4]=[n(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.',-1),a("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt.",-1),a("br",null,null,-1),n(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ",-1)])),_:1},8,["model-value"])])}const S=u(h,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/http/inverter.vue"]]);export{S as default}; diff --git a/web/settings/assets/inverter-09d7efba.js b/web/settings/assets/inverter-4b8c7e35.js similarity index 71% rename from web/settings/assets/inverter-09d7efba.js rename to web/settings/assets/inverter-4b8c7e35.js index d49163ebe0..beb8fc53e4 100644 --- a/web/settings/assets/inverter-09d7efba.js +++ b/web/settings/assets/inverter-4b8c7e35.js @@ -1 +1 @@ -import{C as s}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as t,l as m,m as l,G as i,E as d,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceVictronInverter",mixins:[s]},_={class:"device-victron-inverter"};function f(o,e,v,g,w,V){const r=t("openwb-base-heading"),p=t("openwb-base-number-input"),u=t("openwb-base-button-group-input");return m(),l("div",_,[i(r,null,{default:d(()=>e[2]||(e[2]=[c(" Einstellungen für Victron Wechselrichter ",-1)])),_:1,__:[2]}),i(p,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),i(u,{title:"MPPT",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":o.component.configuration.mppt,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.mppt"))},null,8,["model-value"])])}const I=a(b,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/victron/inverter.vue"]]);export{I as default}; +import{C as s}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as t,l as m,m as l,G as i,E as d,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const b={name:"DeviceVictronInverter",mixins:[s]},_={class:"device-victron-inverter"};function f(o,e,v,g,w,V){const r=t("openwb-base-heading"),p=t("openwb-base-number-input"),u=t("openwb-base-button-group-input");return m(),l("div",_,[i(r,null,{default:d(()=>e[2]||(e[2]=[c(" Einstellungen für Victron Wechselrichter ",-1)])),_:1,__:[2]}),i(p,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),i(u,{title:"MPPT",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":o.component.configuration.mppt,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.mppt"))},null,8,["model-value"])])}const I=a(b,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/victron/inverter.vue"]]);export{I as default}; diff --git a/web/settings/assets/inverter-242f8f6b.js b/web/settings/assets/inverter-4f480ee7.js similarity index 63% rename from web/settings/assets/inverter-242f8f6b.js rename to web/settings/assets/inverter-4f480ee7.js index 023ac39d04..803f12bec2 100644 --- a/web/settings/assets/inverter-242f8f6b.js +++ b/web/settings/assets/inverter-4f480ee7.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as n,l as m,m as d,G as t,E as u,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceDeyeInverter",mixins:[p]},c={class:"device-deye-inverter"};function b(o,e,f,v,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return m(),d("div",c,[t(i,null,{default:u(()=>e[1]||(e[1]=[l(" Einstellungen für Deye Wechselrichter ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const k=a(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/deye/inverter.vue"]]);export{k as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as n,l as m,m as d,G as t,E as u,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceDeyeInverter",mixins:[p]},c={class:"device-deye-inverter"};function b(o,e,f,v,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return m(),d("div",c,[t(i,null,{default:u(()=>e[1]||(e[1]=[l(" Einstellungen für Deye Wechselrichter ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const k=a(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/deye/inverter.vue"]]);export{k as default}; diff --git a/web/settings/assets/inverter-55951246.js b/web/settings/assets/inverter-55951246.js deleted file mode 100644 index 704b468b16..0000000000 --- a/web/settings/assets/inverter-55951246.js +++ /dev/null @@ -1 +0,0 @@ -import{C as e}from"./HardwareInstallation-b7e2b58c.js";import{_ as t,l as o,m as n}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const r={name:"DeviceOpenDTUInverter",mixins:[e]},i={class:"device-opendtu-inverter"};function p(s,c,m,a,_,d){return o(),n("div",i)}const h=t(r,[["render",p],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/opendtu/opendtu/inverter.vue"]]);export{h as default}; diff --git a/web/settings/assets/inverter-7fe24049.js b/web/settings/assets/inverter-59d7cfeb.js similarity index 63% rename from web/settings/assets/inverter-7fe24049.js rename to web/settings/assets/inverter-59d7cfeb.js index fcb4ec0c88..cb3b07a9d7 100644 --- a/web/settings/assets/inverter-7fe24049.js +++ b/web/settings/assets/inverter-59d7cfeb.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as n,l as m,m as c,G as t,E as u,B as d}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceKacoInverter",mixins:[a]},_={class:"device-kaco-inverter"};function b(o,e,f,v,g,x){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return m(),c("div",_,[t(i,null,{default:u(()=>e[1]||(e[1]=[d(" Einstellungen für Kaco Wechselrichter ",-1)])),_:1,__:[1]}),t(r,{title:"Kaco-Modbus-ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const D=p(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kaco/kaco_tx/inverter.vue"]]);export{D as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as n,l as m,m as c,G as t,E as u,B as d}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const l={name:"DeviceKacoInverter",mixins:[a]},_={class:"device-kaco-inverter"};function b(o,e,f,v,g,x){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return m(),c("div",_,[t(i,null,{default:u(()=>e[1]||(e[1]=[d(" Einstellungen für Kaco Wechselrichter ",-1)])),_:1,__:[1]}),t(r,{title:"Kaco-Modbus-ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const D=p(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kaco/kaco_tx/inverter.vue"]]);export{D as default}; diff --git a/web/settings/assets/inverter-d02dc296.js b/web/settings/assets/inverter-5cf4002d.js similarity index 64% rename from web/settings/assets/inverter-d02dc296.js rename to web/settings/assets/inverter-5cf4002d.js index 889f8c0687..203055a8f2 100644 --- a/web/settings/assets/inverter-d02dc296.js +++ b/web/settings/assets/inverter-5cf4002d.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as n,l as m,m as d,G as t,E as l,B as u}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSolaredgeInverter",mixins:[a]},c={class:"device-solaredge-inverter"};function f(o,e,g,b,v,w){const r=n("openwb-base-heading"),i=n("openwb-base-number-input");return m(),d("div",c,[t(r,null,{default:l(()=>e[1]||(e[1]=[u(" Einstellungen für SolarEdge Wechselrichter ",-1)])),_:1,__:[1]}),t(i,{title:"SolarEdge-Geräte-ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const D=p(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/solaredge/inverter.vue"]]);export{D as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as n,l as m,m as d,G as t,E as l,B as u}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSolaredgeInverter",mixins:[a]},c={class:"device-solaredge-inverter"};function f(o,e,g,b,v,w){const r=n("openwb-base-heading"),i=n("openwb-base-number-input");return m(),d("div",c,[t(r,null,{default:l(()=>e[1]||(e[1]=[u(" Einstellungen für SolarEdge Wechselrichter ",-1)])),_:1,__:[1]}),t(i,{title:"SolarEdge-Geräte-ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const D=p(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/solaredge/inverter.vue"]]);export{D as default}; diff --git a/web/settings/assets/inverter-77029227.js b/web/settings/assets/inverter-77029227.js new file mode 100644 index 0000000000..b8c8ba90c1 --- /dev/null +++ b/web/settings/assets/inverter-77029227.js @@ -0,0 +1 @@ +import{C as e}from"./HardwareInstallation-0c77715a.js";import{_ as t,l as o,m as n}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const r={name:"DeviceOpenDTUInverter",mixins:[e]},i={class:"device-opendtu-inverter"};function p(s,c,m,a,_,d){return o(),n("div",i)}const h=t(r,[["render",p],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/opendtu/opendtu/inverter.vue"]]);export{h as default}; diff --git a/web/settings/assets/inverter-4272ff71.js b/web/settings/assets/inverter-7a8ba133.js similarity index 61% rename from web/settings/assets/inverter-4272ff71.js rename to web/settings/assets/inverter-7a8ba133.js index 7d017c43d0..7fcebb9ef7 100644 --- a/web/settings/assets/inverter-4272ff71.js +++ b/web/settings/assets/inverter-7a8ba133.js @@ -1 +1 @@ -import{C as r}from"./HardwareInstallation-b7e2b58c.js";import{_ as n,u as s,l as o,m as i,G as a,E as p,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const m={name:"DeviceVartaInverter",mixins:[r]},d={class:"varta-inverter"};function _(l,e,u,v,f,b){const t=s("openwb-base-alert");return o(),i("div",d,[a(t,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[c(" Die Leistung des Wechselrichters ist nur verfügbar, wenn dieser über Sensor an Varta angebunden ist. Wechselrichter die per Modbus mit dem Speicher kommunizieren lassen sich nicht über den Varta PV-Sensor auslesen. ",-1)])),_:1,__:[0]})])}const S=n(m,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/varta/inverter.vue"]]);export{S as default}; +import{C as r}from"./HardwareInstallation-0c77715a.js";import{_ as n,u as s,l as o,m as i,G as a,E as p,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const m={name:"DeviceVartaInverter",mixins:[r]},d={class:"varta-inverter"};function _(l,e,u,v,f,b){const t=s("openwb-base-alert");return o(),i("div",d,[a(t,{subtype:"info"},{default:p(()=>e[0]||(e[0]=[c(" Die Leistung des Wechselrichters ist nur verfügbar, wenn dieser über Sensor an Varta angebunden ist. Wechselrichter die per Modbus mit dem Speicher kommunizieren lassen sich nicht über den Varta PV-Sensor auslesen. ",-1)])),_:1,__:[0]})])}const S=n(m,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/varta/inverter.vue"]]);export{S as default}; diff --git a/web/settings/assets/inverter-3abb1a19.js b/web/settings/assets/inverter-82a5e024.js similarity index 89% rename from web/settings/assets/inverter-3abb1a19.js rename to web/settings/assets/inverter-82a5e024.js index a846ac40d7..25bcaaa974 100644 --- a/web/settings/assets/inverter-3abb1a19.js +++ b/web/settings/assets/inverter-82a5e024.js @@ -1 +1 @@ -import{C as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as r,l as b,m as g,G as i,E as o,B as t,A as n,F as p}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceMqttInverter",mixins:[u]},v={class:"device-mqtt-inverter"};function B(s,e,w,k,x,z){const a=r("openwb-base-heading"),l=r("openwb-base-copy-to-clipboard"),m=r("openwb-base-alert");return b(),g("div",v,[i(a,null,{default:o(()=>e[0]||(e[0]=[t(" Einstellungen für MQTT Wechselrichter ",-1)])),_:1,__:[0]}),i(m,{subtype:"info"},{default:o(()=>[e[14]||(e[14]=t(" Die folgenden Topics sind für einen reibungslosen Betrieb unbedingt erforderlich: ",-1)),n("ul",null,[n("li",null,[i(l,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/pv/"+p(s.component.id)+"/get/power ",1)]),_:1}),e[1]||(e[1]=n("br",null,null,-1)),e[2]||(e[2]=t(" PV-Leistung in Watt als Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) Beispiel: ",-1)),e[3]||(e[3]=n("span",{class:"text-info"},"-123",-1))])]),e[15]||(e[15]=t(" Falls keine Wert für den Zählerstand übermittelt wird, berechnet openWB den Zählerstand anhand der Leistung. ",-1)),n("ul",null,[n("li",null,[i(l,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/pv/"+p(s.component.id)+"/get/exported ",1)]),_:1}),e[4]||(e[4]=n("br",null,null,-1)),e[5]||(e[5]=t(" Erzeugte Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv",-1)),e[6]||(e[6]=n("br",null,null,-1)),e[7]||(e[7]=t(" Beispiel: ",-1)),e[8]||(e[8]=n("span",{class:"text-info"},"123.45",-1))])]),e[16]||(e[16]=t(" Ströme je Phase sind optional, jedoch für phasenbasiertes Lastmanagement in Verbindung mit einem virtuellen Zähler unbedingt erforderlich. Ansonsten erfolgt das Lastmanagement ausschließlich auf Basis der Gesamtleistung an diesem Zähler: ",-1)),n("ul",null,[n("li",null,[i(l,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/pv/"+p(s.component.id)+"/get/currents ",1)]),_:1}),e[9]||(e[9]=n("br",null,null,-1)),e[10]||(e[10]=t(" Array mit den Strömen je Phase in Ampere, mit Nachkommastellen (Float), positiv Bezug, negativ Einspeisung",-1)),e[11]||(e[11]=n("br",null,null,-1)),e[12]||(e[12]=t(" Beispiel: ",-1)),e[13]||(e[13]=n("span",{class:"text-info"},"[1.2,2.3,-2.1]",-1))])])]),_:1,__:[14,15,16]})])}const Z=d(f,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/mqtt/inverter.vue"]]);export{Z as default}; +import{C as u}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as r,l as b,m as g,G as i,E as o,B as t,A as n,F as p}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceMqttInverter",mixins:[u]},v={class:"device-mqtt-inverter"};function B(s,e,w,k,x,z){const a=r("openwb-base-heading"),l=r("openwb-base-copy-to-clipboard"),m=r("openwb-base-alert");return b(),g("div",v,[i(a,null,{default:o(()=>e[0]||(e[0]=[t(" Einstellungen für MQTT Wechselrichter ",-1)])),_:1,__:[0]}),i(m,{subtype:"info"},{default:o(()=>[e[14]||(e[14]=t(" Die folgenden Topics sind für einen reibungslosen Betrieb unbedingt erforderlich: ",-1)),n("ul",null,[n("li",null,[i(l,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/pv/"+p(s.component.id)+"/get/power ",1)]),_:1}),e[1]||(e[1]=n("br",null,null,-1)),e[2]||(e[2]=t(" PV-Leistung in Watt als Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) Beispiel: ",-1)),e[3]||(e[3]=n("span",{class:"text-info"},"-123",-1))])]),e[15]||(e[15]=t(" Falls keine Wert für den Zählerstand übermittelt wird, berechnet openWB den Zählerstand anhand der Leistung. ",-1)),n("ul",null,[n("li",null,[i(l,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/pv/"+p(s.component.id)+"/get/exported ",1)]),_:1}),e[4]||(e[4]=n("br",null,null,-1)),e[5]||(e[5]=t(" Erzeugte Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv",-1)),e[6]||(e[6]=n("br",null,null,-1)),e[7]||(e[7]=t(" Beispiel: ",-1)),e[8]||(e[8]=n("span",{class:"text-info"},"123.45",-1))])]),e[16]||(e[16]=t(" Ströme je Phase sind optional, jedoch für phasenbasiertes Lastmanagement in Verbindung mit einem virtuellen Zähler unbedingt erforderlich. Ansonsten erfolgt das Lastmanagement ausschließlich auf Basis der Gesamtleistung an diesem Zähler: ",-1)),n("ul",null,[n("li",null,[i(l,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t(" openWB/set/mqtt/pv/"+p(s.component.id)+"/get/currents ",1)]),_:1}),e[9]||(e[9]=n("br",null,null,-1)),e[10]||(e[10]=t(" Array mit den Strömen je Phase in Ampere, mit Nachkommastellen (Float), positiv Bezug, negativ Einspeisung",-1)),e[11]||(e[11]=n("br",null,null,-1)),e[12]||(e[12]=t(" Beispiel: ",-1)),e[13]||(e[13]=n("span",{class:"text-info"},"[1.2,2.3,-2.1]",-1))])])]),_:1,__:[14,15,16]})])}const Z=d(f,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/generic/mqtt/inverter.vue"]]);export{Z as default}; diff --git a/web/settings/assets/inverter-8c76c5fa.js b/web/settings/assets/inverter-9cc82d3a.js similarity index 82% rename from web/settings/assets/inverter-8c76c5fa.js rename to web/settings/assets/inverter-9cc82d3a.js index 829975505a..7303efe4b3 100644 --- a/web/settings/assets/inverter-8c76c5fa.js +++ b/web/settings/assets/inverter-9cc82d3a.js @@ -1 +1 @@ -import{C as l}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as t,l as b,m as v,G as r,E as i,B as a}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSunnyBoyInverter",mixins:[l]},_={class:"device-sunnyboy-inverter"};function g(n,e,y,c,w,C){const s=t("openwb-base-heading"),u=t("openwb-base-button-group-input"),d=t("openwb-base-select-input"),p=t("openwb-base-number-input");return b(),v("div",_,[r(s,null,{default:i(()=>e[3]||(e[3]=[a(" Einstellungen für SMA Sunny Boy/Tripower Wechselrichter ",-1)])),_:1,__:[3]}),r(u,{title:"Hybrid-System",buttons:[{buttonValue:!1,text:"nicht vorhanden"},{buttonValue:!0,text:"vorhanden"}],"model-value":n.component.configuration.hybrid,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.hybrid"))},{help:i(()=>e[4]||(e[4]=[a(" Diese Option aktivieren, wenn ein Tripower Smart Energy, Sunny Boy Smart Energy oder ein anderes Hybrid-System verbaut ist. ",-1)])),_:1},8,["model-value"]),r(d,{title:"Version","not-selected":"Bitte auswählen",options:[{value:0,text:"Standard"},{value:1,text:"Core-2"},{value:2,text:"Data Manager/Cluster Controller"}],"model-value":n.component.configuration.version,required:"","onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.version"))},null,8,["model-value"]),r(p,{title:"Modbus ID",required:"","model-value":n.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.modbus_id"))},{help:i(()=>e[5]||(e[5]=[a(" Für die Standardversion ist die Standardmodbus-ID 3, für Core-2 ist sie 1 und für Data Manager/Cluster Controller 2. Wurde eine abweichende Modbus ID konfiguriert, entsprechend anpassen. ",-1)])),_:1},8,["model-value"])])}const I=m(f,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_boy/inverter.vue"]]);export{I as default}; +import{C as l}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as t,l as b,m as v,G as r,E as i,B as a}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DeviceSunnyBoyInverter",mixins:[l]},_={class:"device-sunnyboy-inverter"};function g(n,e,y,c,w,C){const s=t("openwb-base-heading"),u=t("openwb-base-button-group-input"),d=t("openwb-base-select-input"),p=t("openwb-base-number-input");return b(),v("div",_,[r(s,null,{default:i(()=>e[3]||(e[3]=[a(" Einstellungen für SMA Sunny Boy/Tripower Wechselrichter ",-1)])),_:1,__:[3]}),r(u,{title:"Hybrid-System",buttons:[{buttonValue:!1,text:"nicht vorhanden"},{buttonValue:!0,text:"vorhanden"}],"model-value":n.component.configuration.hybrid,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.hybrid"))},{help:i(()=>e[4]||(e[4]=[a(" Diese Option aktivieren, wenn ein Tripower Smart Energy, Sunny Boy Smart Energy oder ein anderes Hybrid-System verbaut ist. ",-1)])),_:1},8,["model-value"]),r(d,{title:"Version","not-selected":"Bitte auswählen",options:[{value:0,text:"Standard"},{value:1,text:"Core-2"},{value:2,text:"Data Manager/Cluster Controller"}],"model-value":n.component.configuration.version,required:"","onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.version"))},null,8,["model-value"]),r(p,{title:"Modbus ID",required:"","model-value":n.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.modbus_id"))},{help:i(()=>e[5]||(e[5]=[a(" Für die Standardversion ist die Standardmodbus-ID 3, für Core-2 ist sie 1 und für Data Manager/Cluster Controller 2. Wurde eine abweichende Modbus ID konfiguriert, entsprechend anpassen. ",-1)])),_:1},8,["model-value"])])}const I=m(f,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_sunny_boy/inverter.vue"]]);export{I as default}; diff --git a/web/settings/assets/inverter-538f8b90.js b/web/settings/assets/inverter-9f809b2f.js similarity index 77% rename from web/settings/assets/inverter-538f8b90.js rename to web/settings/assets/inverter-9f809b2f.js index eb59176cf9..efa5147976 100644 --- a/web/settings/assets/inverter-538f8b90.js +++ b/web/settings/assets/inverter-9f809b2f.js @@ -1 +1 @@ -import{C as d}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as r,l as u,m as c,G as n,E as i,B as o,A as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const v={name:"DeviceDiscovergyInverter",mixins:[d]},_={class:"device-discovergy-inverter"};function f(t,e,g,b,w,h){const s=r("openwb-base-heading"),a=r("openwb-base-text-input");return u(),c("div",_,[n(s,null,{default:i(()=>e[1]||(e[1]=[o(" Einstellungen für Discovergy Wechselrichter ",-1)])),_:1,__:[1]}),n(a,{title:"Meter-ID",required:"","model-value":t.component.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=p=>t.updateConfiguration(p,"configuration.meter_id"))},{help:i(()=>e[2]||(e[2]=[o(" Um die ID herauszufinden mit dem Browser die Adresse ",-1),l("a",{href:"https://api.discovergy.com/public/v1/meters",target:"_blank",rel:"noopener noreferrer"}," https://api.discovergy.com/public/v1/meters ",-1),o(" aufrufen und dort Benutzername und Passwort eingeben. Hier wird nun u.a. die ID des Zählers angezeigt. ",-1)])),_:1},8,["model-value"])])}const z=m(v,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/discovergy/inverter.vue"]]);export{z as default}; +import{C as d}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as r,l as u,m as c,G as n,E as i,B as o,A as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const v={name:"DeviceDiscovergyInverter",mixins:[d]},_={class:"device-discovergy-inverter"};function f(t,e,g,b,w,h){const s=r("openwb-base-heading"),a=r("openwb-base-text-input");return u(),c("div",_,[n(s,null,{default:i(()=>e[1]||(e[1]=[o(" Einstellungen für Discovergy Wechselrichter ",-1)])),_:1,__:[1]}),n(a,{title:"Meter-ID",required:"","model-value":t.component.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=p=>t.updateConfiguration(p,"configuration.meter_id"))},{help:i(()=>e[2]||(e[2]=[o(" Um die ID herauszufinden mit dem Browser die Adresse ",-1),l("a",{href:"https://api.discovergy.com/public/v1/meters",target:"_blank",rel:"noopener noreferrer"}," https://api.discovergy.com/public/v1/meters ",-1),o(" aufrufen und dort Benutzername und Passwort eingeben. Hier wird nun u.a. die ID des Zählers angezeigt. ",-1)])),_:1},8,["model-value"])])}const z=m(v,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/discovergy/inverter.vue"]]);export{z as default}; diff --git a/web/settings/assets/inverter-d9c54d22.js b/web/settings/assets/inverter-a72dbeb0.js similarity index 65% rename from web/settings/assets/inverter-d9c54d22.js rename to web/settings/assets/inverter-a72dbeb0.js index 4304a36242..38e5a5a386 100644 --- a/web/settings/assets/inverter-d9c54d22.js +++ b/web/settings/assets/inverter-a72dbeb0.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as n,l as p,m as u,G as t,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceHuaweiSmartLoggerInverter",mixins:[a]},c={class:"device-huawei-smart-logger-inverter"};function g(o,e,b,f,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return p(),u("div",c,[t(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Huawei SmartLogger Wechselrichter ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const H=m(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/huawei_smartlogger/inverter.vue"]]);export{H as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as n,l as p,m as u,G as t,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceHuaweiSmartLoggerInverter",mixins:[a]},c={class:"device-huawei-smart-logger-inverter"};function g(o,e,b,f,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-number-input");return p(),u("div",c,[t(i,null,{default:d(()=>e[1]||(e[1]=[l(" Einstellungen für Huawei SmartLogger Wechselrichter ",-1)])),_:1,__:[1]}),t(r,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.modbus_id"))},null,8,["model-value"])])}const H=m(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/huawei_smartlogger/inverter.vue"]]);export{H as default}; diff --git a/web/settings/assets/inverter-7354c663.js b/web/settings/assets/inverter-aadeffcc.js similarity index 63% rename from web/settings/assets/inverter-7354c663.js rename to web/settings/assets/inverter-aadeffcc.js index f33f5bab23..f724a0e71a 100644 --- a/web/settings/assets/inverter-7354c663.js +++ b/web/settings/assets/inverter-aadeffcc.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as o,l as p,m as l,G as n,E as d,B as u}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSmartMeInverter",mixins:[a]},c={class:"device-smart-me-inverter"};function f(t,e,v,b,g,x){const r=o("openwb-base-heading"),i=o("openwb-base-text-input");return p(),l("div",c,[n(r,null,{default:d(()=>e[1]||(e[1]=[u(" Einstellungen für smart-me Wechselrichter ",-1)])),_:1,__:[1]}),n(i,{title:"Geräte-ID",required:"","model-value":t.component.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=s=>t.updateConfiguration(s,"configuration.id"))},null,8,["model-value"])])}const G=m(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/smart_me/inverter.vue"]]);export{G as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as o,l as p,m as l,G as n,E as d,B as u}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSmartMeInverter",mixins:[a]},c={class:"device-smart-me-inverter"};function f(t,e,v,b,g,x){const r=o("openwb-base-heading"),i=o("openwb-base-text-input");return p(),l("div",c,[n(r,null,{default:d(()=>e[1]||(e[1]=[u(" Einstellungen für smart-me Wechselrichter ",-1)])),_:1,__:[1]}),n(i,{title:"Geräte-ID",required:"","model-value":t.component.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=s=>t.updateConfiguration(s,"configuration.id"))},null,8,["model-value"])])}const G=m(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/smart_me/inverter.vue"]]);export{G as default}; diff --git a/web/settings/assets/inverter-cd891c2c.js b/web/settings/assets/inverter-aaf5cc74.js similarity index 65% rename from web/settings/assets/inverter-cd891c2c.js rename to web/settings/assets/inverter-aaf5cc74.js index 48669c0f87..817fee15b7 100644 --- a/web/settings/assets/inverter-cd891c2c.js +++ b/web/settings/assets/inverter-aaf5cc74.js @@ -1 +1 @@ -import{C as m}from"./HardwareInstallation-b7e2b58c.js";import{_ as d,u as o,l as u,m as l,G as t,E as i,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceEnphaseInverter",mixins:[m]},c={class:"device-enphase-inverter"};function f(n,e,v,b,g,E){const s=o("openwb-base-heading"),p=o("openwb-base-number-input");return u(),l("div",c,[t(s,null,{default:i(()=>e[1]||(e[1]=[r(" Einstellungen für Enphase Envoy / IQ Gateway Wechselrichter ",-1)])),_:1,__:[1]}),t(p,{title:"EID",required:"","model-value":n.component.configuration.eid,"onUpdate:modelValue":e[0]||(e[0]=a=>n.updateConfiguration(a,"configuration.eid"))},{help:i(()=>e[2]||(e[2]=[r(' EID für "production" ',-1)])),_:1},8,["model-value"])])}const k=d(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/enphase/inverter.vue"]]);export{k as default}; +import{C as m}from"./HardwareInstallation-0c77715a.js";import{_ as d,u as o,l as u,m as l,G as t,E as i,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceEnphaseInverter",mixins:[m]},c={class:"device-enphase-inverter"};function f(n,e,v,b,g,E){const s=o("openwb-base-heading"),p=o("openwb-base-number-input");return u(),l("div",c,[t(s,null,{default:i(()=>e[1]||(e[1]=[r(" Einstellungen für Enphase Envoy / IQ Gateway Wechselrichter ",-1)])),_:1,__:[1]}),t(p,{title:"EID",required:"","model-value":n.component.configuration.eid,"onUpdate:modelValue":e[0]||(e[0]=a=>n.updateConfiguration(a,"configuration.eid"))},{help:i(()=>e[2]||(e[2]=[r(' EID für "production" ',-1)])),_:1},8,["model-value"])])}const k=d(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/enphase/inverter.vue"]]);export{k as default}; diff --git a/web/settings/assets/inverter-6170a78d.js b/web/settings/assets/inverter-b18457fa.js similarity index 66% rename from web/settings/assets/inverter-6170a78d.js rename to web/settings/assets/inverter-b18457fa.js index f6eeb387cd..150b737917 100644 --- a/web/settings/assets/inverter-6170a78d.js +++ b/web/settings/assets/inverter-b18457fa.js @@ -1 +1 @@ -import{C as a}from"./HardwareInstallation-b7e2b58c.js";import{_ as p,u as t,l as u,m as l,G as n,E as m,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceKostalPikoInverter",mixins:[a]},_={class:"device-kostal-piko-inverter"};function f(o,e,b,v,g,k){const i=t("openwb-base-heading"),r=t("openwb-base-button-group-input");return u(),l("div",_,[n(i,null,{default:m(()=>e[1]||(e[1]=[c(" Einstellungen für Kostal Piko Wechselrichter ",-1)])),_:1,__:[1]}),n(r,{title:"Speicher",buttons:[{buttonValue:!1,text:"nicht vorhanden"},{buttonValue:!0,text:"vorhanden"}],"model-value":o.component.configuration.bat_configured,"onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.bat_configured"))},null,8,["model-value"])])}const N=p(d,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_piko/inverter.vue"]]);export{N as default}; +import{C as a}from"./HardwareInstallation-0c77715a.js";import{_ as p,u as t,l as u,m as l,G as n,E as m,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceKostalPikoInverter",mixins:[a]},_={class:"device-kostal-piko-inverter"};function f(o,e,b,v,g,k){const i=t("openwb-base-heading"),r=t("openwb-base-button-group-input");return u(),l("div",_,[n(i,null,{default:m(()=>e[1]||(e[1]=[c(" Einstellungen für Kostal Piko Wechselrichter ",-1)])),_:1,__:[1]}),n(r,{title:"Speicher",buttons:[{buttonValue:!1,text:"nicht vorhanden"},{buttonValue:!0,text:"vorhanden"}],"model-value":o.component.configuration.bat_configured,"onUpdate:modelValue":e[0]||(e[0]=s=>o.updateConfiguration(s,"configuration.bat_configured"))},null,8,["model-value"])])}const N=p(d,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal/kostal_piko/inverter.vue"]]);export{N as default}; diff --git a/web/settings/assets/inverter-269cffec.js b/web/settings/assets/inverter-c4d4cb47.js similarity index 72% rename from web/settings/assets/inverter-269cffec.js rename to web/settings/assets/inverter-c4d4cb47.js index 7419481781..9361abcc8f 100644 --- a/web/settings/assets/inverter-269cffec.js +++ b/web/settings/assets/inverter-c4d4cb47.js @@ -1 +1 @@ -import{C as l}from"./HardwareInstallation-b7e2b58c.js";import{_ as u,u as n,l as d,m as _,G as o,E as r,B as i}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSmahmInverter",mixins:[l]},f={class:"device-smahm-inverter"};function b(t,e,v,g,h,w){const s=n("openwb-base-heading"),a=n("openwb-base-alert"),m=n("openwb-base-number-input");return d(),_("div",f,[o(s,null,{default:r(()=>e[1]||(e[1]=[i(" Einstellungen für SMA-HM/EM Wechselrichter ",-1)])),_:1,__:[1]}),o(a,{subtype:"info"},{default:r(()=>e[2]||(e[2]=[i(' Dies ist nur die richtige Komponente, wenn ein extra EnergyMeter ausschließlich für die PV-Messung vorhanden ist. Wenn nur ein HomeManager vorhanden ist, muss ein Gerät "SMA Sunny Boy" mit der entsprechenden Wechselrichter-Komponente angelegt werden. ',-1)])),_:1,__:[2]}),o(m,{title:"Seriennummer",required:"","model-value":t.component.configuration.serials,"onUpdate:modelValue":e[0]||(e[0]=p=>t.updateConfiguration(p,"configuration.serials"))},null,8,["model-value"])])}const $=u(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_shm/inverter.vue"]]);export{$ as default}; +import{C as l}from"./HardwareInstallation-0c77715a.js";import{_ as u,u as n,l as d,m as _,G as o,E as r,B as i}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const c={name:"DeviceSmahmInverter",mixins:[l]},f={class:"device-smahm-inverter"};function b(t,e,v,g,h,w){const s=n("openwb-base-heading"),a=n("openwb-base-alert"),m=n("openwb-base-number-input");return d(),_("div",f,[o(s,null,{default:r(()=>e[1]||(e[1]=[i(" Einstellungen für SMA-HM/EM Wechselrichter ",-1)])),_:1,__:[1]}),o(a,{subtype:"info"},{default:r(()=>e[2]||(e[2]=[i(' Dies ist nur die richtige Komponente, wenn ein extra EnergyMeter ausschließlich für die PV-Messung vorhanden ist. Wenn nur ein HomeManager vorhanden ist, muss ein Gerät "SMA Sunny Boy" mit der entsprechenden Wechselrichter-Komponente angelegt werden. ',-1)])),_:1,__:[2]}),o(m,{title:"Seriennummer",required:"","model-value":t.component.configuration.serials,"onUpdate:modelValue":e[0]||(e[0]=p=>t.updateConfiguration(p,"configuration.serials"))},null,8,["model-value"])])}const $=u(c,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma/sma_shm/inverter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/inverter-b2aa2f88.js b/web/settings/assets/inverter-dda60d18.js similarity index 67% rename from web/settings/assets/inverter-b2aa2f88.js rename to web/settings/assets/inverter-dda60d18.js index 020e1262f4..87f80074c5 100644 --- a/web/settings/assets/inverter-b2aa2f88.js +++ b/web/settings/assets/inverter-dda60d18.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as o,l,m as u,G as n,E as m,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceOpenwbEvukitInverter",mixins:[p]},v={class:"device-openwb-evukit-inverter"};function _(t,e,f,b,w,g){const i=o("openwb-base-heading"),r=o("openwb-base-select-input");return l(),u("div",v,[n(i,null,{default:m(()=>e[1]||(e[1]=[c(" Einstellungen für openWB EVU-Kit Wechselrichter ",-1)])),_:1,__:[1]}),n(r,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":t.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=s=>t.updateConfiguration(s,"configuration.version"))},null,8,["model-value"])])}const $=a(d,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_evu_kit/inverter.vue"]]);export{$ as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as o,l,m as u,G as n,E as m,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"DeviceOpenwbEvukitInverter",mixins:[p]},v={class:"device-openwb-evukit-inverter"};function _(t,e,f,b,w,g){const i=o("openwb-base-heading"),r=o("openwb-base-select-input");return l(),u("div",v,[n(i,null,{default:m(()=>e[1]||(e[1]=[c(" Einstellungen für openWB EVU-Kit Wechselrichter ",-1)])),_:1,__:[1]}),n(r,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":t.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=s=>t.updateConfiguration(s,"configuration.version"))},null,8,["model-value"])])}const $=a(d,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_evu_kit/inverter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/inverter-db8b8e38.js b/web/settings/assets/inverter-df87aae6.js similarity index 63% rename from web/settings/assets/inverter-db8b8e38.js rename to web/settings/assets/inverter-df87aae6.js index b36d48b388..4f01290f63 100644 --- a/web/settings/assets/inverter-db8b8e38.js +++ b/web/settings/assets/inverter-df87aae6.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as n,l as m,m as l,G as t,E as u,B as d}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSolisInverter",mixins:[p]},c={class:"device-solis-inverter"};function b(o,e,f,v,g,w){const i=n("openwb-base-heading"),s=n("openwb-base-number-input");return m(),l("div",c,[t(i,null,{default:u(()=>e[1]||(e[1]=[d(" Einstellungen für Solis Wechselrichter ",-1)])),_:1,__:[1]}),t(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const I=a(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solis/solis/inverter.vue"]]);export{I as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as n,l as m,m as l,G as t,E as u,B as d}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const _={name:"DeviceSolisInverter",mixins:[p]},c={class:"device-solis-inverter"};function b(o,e,f,v,g,w){const i=n("openwb-base-heading"),s=n("openwb-base-number-input");return m(),l("div",c,[t(i,null,{default:u(()=>e[1]||(e[1]=[d(" Einstellungen für Solis Wechselrichter ",-1)])),_:1,__:[1]}),t(s,{title:"Modbus ID",required:"","model-value":o.component.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>o.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const I=a(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solis/solis/inverter.vue"]]);export{I as default}; diff --git a/web/settings/assets/inverter-c7f31b65.js b/web/settings/assets/inverter-f1e6b12e.js similarity index 73% rename from web/settings/assets/inverter-c7f31b65.js rename to web/settings/assets/inverter-f1e6b12e.js index 549004ac24..c0d3770879 100644 --- a/web/settings/assets/inverter-c7f31b65.js +++ b/web/settings/assets/inverter-f1e6b12e.js @@ -1 +1 @@ -import{C as s}from"./HardwareInstallation-b7e2b58c.js";import{_ as a,u as t,l as u,m,G as i,E as d,B as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const v={name:"DeviceOpenwbFlexInverter",mixins:[s]},_={class:"device-openwb-flex-inverter"};function b(o,e,f,w,x,g){const r=t("openwb-base-heading"),l=t("openwb-base-select-input"),p=t("openwb-base-number-input");return u(),m("div",_,[i(r,null,{default:d(()=>e[2]||(e[2]=[c(" Einstellungen für openWB-Flex Wechselrichter ",-1)])),_:1,__:[2]}),i(l,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"},{value:3,text:"SDM120"}],"model-value":o.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.version"))},null,8,["model-value"]),i(p,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":o.component.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.id"))},null,8,["model-value"])])}const W=a(v,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_flex/inverter.vue"]]);export{W as default}; +import{C as s}from"./HardwareInstallation-0c77715a.js";import{_ as a,u as t,l as u,m,G as i,E as d,B as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const v={name:"DeviceOpenwbFlexInverter",mixins:[s]},_={class:"device-openwb-flex-inverter"};function b(o,e,f,w,x,g){const r=t("openwb-base-heading"),l=t("openwb-base-select-input"),p=t("openwb-base-number-input");return u(),m("div",_,[i(r,null,{default:d(()=>e[2]||(e[2]=[c(" Einstellungen für openWB-Flex Wechselrichter ",-1)])),_:1,__:[2]}),i(l,{title:"Zählermodell","not-selected":"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"},{value:3,text:"SDM120"}],"model-value":o.component.configuration.version,required:"","onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.version"))},null,8,["model-value"]),i(p,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":o.component.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.id"))},null,8,["model-value"])])}const W=a(v,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb/openwb_flex/inverter.vue"]]);export{W as default}; diff --git a/web/settings/assets/inverter-f0642b5c.js b/web/settings/assets/inverter-f6b68618.js similarity index 68% rename from web/settings/assets/inverter-f0642b5c.js rename to web/settings/assets/inverter-f6b68618.js index 8fcb3ded9a..e4edbeaafc 100644 --- a/web/settings/assets/inverter-f0642b5c.js +++ b/web/settings/assets/inverter-f6b68618.js @@ -1 +1 @@ -import{C as p}from"./HardwareInstallation-b7e2b58c.js";import{_ as l,u as n,l as d,m as c,G as t,E as i,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceSolarViewInverter",mixins:[p]},_={class:"device-solar-view-inverter"};function f(o,e,v,g,w,b){const s=n("openwb-base-heading"),a=n("openwb-base-text-input");return d(),c("div",_,[t(s,null,{default:i(()=>e[1]||(e[1]=[r(" Einstellungen für SolarView Wechselrichter ",-1)])),_:1,__:[1]}),t(a,{title:"Kommando für die Abfrage",required:"","model-value":o.component.configuration.command,"onUpdate:modelValue":e[0]||(e[0]=m=>o.updateConfiguration(m,"configuration.command"))},{help:i(()=>e[2]||(e[2]=[r(" Kommandos gemäß SolarView-Dokumentation, z.B.: 00* (gesamte Anlage), 01* (Wechselrichter 1), 02* (Wechselrichter 2) ",-1)])),_:1},8,["model-value"])])}const S=l(u,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/solar_view/inverter.vue"]]);export{S as default}; +import{C as p}from"./HardwareInstallation-0c77715a.js";import{_ as l,u as n,l as d,m as c,G as t,E as i,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const u={name:"DeviceSolarViewInverter",mixins:[p]},_={class:"device-solar-view-inverter"};function f(o,e,v,g,w,b){const s=n("openwb-base-heading"),a=n("openwb-base-text-input");return d(),c("div",_,[t(s,null,{default:i(()=>e[1]||(e[1]=[r(" Einstellungen für SolarView Wechselrichter ",-1)])),_:1,__:[1]}),t(a,{title:"Kommando für die Abfrage",required:"","model-value":o.component.configuration.command,"onUpdate:modelValue":e[0]||(e[0]=m=>o.updateConfiguration(m,"configuration.command"))},{help:i(()=>e[2]||(e[2]=[r(" Kommandos gemäß SolarView-Dokumentation, z.B.: 00* (gesamte Anlage), 01* (Wechselrichter 1), 02* (Wechselrichter 2) ",-1)])),_:1},8,["model-value"])])}const S=l(u,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/solar_view/inverter.vue"]]);export{S as default}; diff --git a/web/settings/assets/inverter-3f6e0a86.js b/web/settings/assets/inverter-f704eca9.js similarity index 81% rename from web/settings/assets/inverter-3f6e0a86.js rename to web/settings/assets/inverter-f704eca9.js index 7fb2ae3acc..4a99827779 100644 --- a/web/settings/assets/inverter-3f6e0a86.js +++ b/web/settings/assets/inverter-f704eca9.js @@ -1 +1 @@ -import{C as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as l,u as t,l as m,m as c,G as r,E as i,B as n,A as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"DevicePowerfoxInverter",mixins:[u]},_={class:"device-powerfox-inverter"};function b(o,e,g,v,w,x){const a=t("openwb-base-heading"),p=t("openwb-base-text-input");return m(),c("div",_,[r(a,null,{default:i(()=>e[1]||(e[1]=[n(" Einstellungen für Powerfox Wechselrichter ",-1)])),_:1,__:[1]}),r(p,{title:"ID",required:"","model-value":o.component.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=d=>o.updateConfiguration(d,"configuration.id"))},{help:i(()=>e[2]||(e[2]=[n(" Um die ID herauszufinden mit dem Browser die Adresse ",-1),s("a",{href:"https://backend.powerfox.energy/api/2.0/my/all/devices",target:"_blank",rel:"noopener noreferrer"}," https://backend.powerfox.energy/api/2.0/my/all/devices ",-1),n(" aufrufen und dort Benutzername und Passwort eingeben. Die DeviceID ist exakt so einzutragen, wie in der Antwort des Servers. Das bedeutet insbesondere auch, die Groß-/Kleinschreibung ist zu beachten! In dem Feld ist nur die Zeichenfolge direkt hinter ",-1),s("span",{class:"font-weight-bold text-monospace",style:{display:"contents"}},' "DeviceID" ',-1),n(" ohne den Doppelpunkt und Anführungszeichen einzutragen. ",-1)])),_:1},8,["model-value"])])}const V=l(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/powerfox/inverter.vue"]]);export{V as default}; +import{C as u}from"./HardwareInstallation-0c77715a.js";import{_ as l,u as t,l as m,m as c,G as r,E as i,B as n,A as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"DevicePowerfoxInverter",mixins:[u]},_={class:"device-powerfox-inverter"};function b(o,e,g,v,w,x){const a=t("openwb-base-heading"),p=t("openwb-base-text-input");return m(),c("div",_,[r(a,null,{default:i(()=>e[1]||(e[1]=[n(" Einstellungen für Powerfox Wechselrichter ",-1)])),_:1,__:[1]}),r(p,{title:"ID",required:"","model-value":o.component.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=d=>o.updateConfiguration(d,"configuration.id"))},{help:i(()=>e[2]||(e[2]=[n(" Um die ID herauszufinden mit dem Browser die Adresse ",-1),s("a",{href:"https://backend.powerfox.energy/api/2.0/my/all/devices",target:"_blank",rel:"noopener noreferrer"}," https://backend.powerfox.energy/api/2.0/my/all/devices ",-1),n(" aufrufen und dort Benutzername und Passwort eingeben. Die DeviceID ist exakt so einzutragen, wie in der Antwort des Servers. Das bedeutet insbesondere auch, die Groß-/Kleinschreibung ist zu beachten! In dem Feld ist nur die Zeichenfolge direkt hinter ",-1),s("span",{class:"font-weight-bold text-monospace",style:{display:"contents"}},' "DeviceID" ',-1),n(" ohne den Doppelpunkt und Anführungszeichen einzutragen. ",-1)])),_:1},8,["model-value"])])}const V=l(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/powerfox/inverter.vue"]]);export{V as default}; diff --git a/web/settings/assets/inverter_secondary-a6696fc6.js b/web/settings/assets/inverter_secondary-9852ff67.js similarity index 82% rename from web/settings/assets/inverter_secondary-a6696fc6.js rename to web/settings/assets/inverter_secondary-9852ff67.js index 265ed1398c..f835f79a44 100644 --- a/web/settings/assets/inverter_secondary-a6696fc6.js +++ b/web/settings/assets/inverter_secondary-9852ff67.js @@ -1 +1 @@ -import{C as u}from"./HardwareInstallation-b7e2b58c.js";import{_ as m,u as t,l as f,m as c,G as i,E as s,B as n,A as a,F as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceFroniusInverterSecondary",mixins:[u],computed:{powerFlowUrl:{get(){return`http://${this.device.configuration.ip_address}/solar_api/v1/GetPowerFlowRealtimeData.fcgi?Scope=System`}}}},w={class:"device-fronius-inverter-secondary"},v=["href"];function b(r,e,D,k,h,o){const d=t("openwb-base-heading"),l=t("openwb-base-number-input");return f(),c("div",w,[i(d,null,{default:s(()=>e[1]||(e[1]=[n(" Einstellungen für einen sekundären Wechselrichter ",-1)])),_:1,__:[1]}),i(l,{title:"ID","model-value":r.component.configuration.id,min:"0",required:"","onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.id"))},{help:s(()=>[e[2]||(e[2]=n(" Die ID des sekundären Wechselrichters. Diese ist für jede Installation individuell und muss ermittelt werden. Dafür kann der folgende Link verwendet werden. Die ID kann den zurückgegebenen JSON entnommen werden. ",-1)),a("a",{href:o.powerFlowUrl,target:"_blank",rel:"noopener noreferrer"},_(o.powerFlowUrl),9,v),e[3]||(e[3]=a("br",null,null,-1)),e[4]||(e[4]=n(' Im Abschnitt "Body" -> "Data" -> "SecondaryMeters" werden die installierten Zähler angezeigt. Die ID ist die Zahl vor dem Doppelpunkt und den zugehörigen Daten. ',-1))]),_:1},8,["model-value"])])}const V=m(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/fronius/inverter_secondary.vue"]]);export{V as default}; +import{C as u}from"./HardwareInstallation-0c77715a.js";import{_ as m,u as t,l as f,m as c,G as i,E as s,B as n,A as a,F as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"DeviceFroniusInverterSecondary",mixins:[u],computed:{powerFlowUrl:{get(){return`http://${this.device.configuration.ip_address}/solar_api/v1/GetPowerFlowRealtimeData.fcgi?Scope=System`}}}},w={class:"device-fronius-inverter-secondary"},v=["href"];function b(r,e,D,k,h,o){const d=t("openwb-base-heading"),l=t("openwb-base-number-input");return f(),c("div",w,[i(d,null,{default:s(()=>e[1]||(e[1]=[n(" Einstellungen für einen sekundären Wechselrichter ",-1)])),_:1,__:[1]}),i(l,{title:"ID","model-value":r.component.configuration.id,min:"0",required:"","onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.id"))},{help:s(()=>[e[2]||(e[2]=n(" Die ID des sekundären Wechselrichters. Diese ist für jede Installation individuell und muss ermittelt werden. Dafür kann der folgende Link verwendet werden. Die ID kann den zurückgegebenen JSON entnommen werden. ",-1)),a("a",{href:o.powerFlowUrl,target:"_blank",rel:"noopener noreferrer"},_(o.powerFlowUrl),9,v),e[3]||(e[3]=a("br",null,null,-1)),e[4]||(e[4]=n(' Im Abschnitt "Body" -> "Data" -> "SecondaryMeters" werden die installierten Zähler angezeigt. Die ID ist die Zahl vor dem Doppelpunkt und den zugehörigen Daten. ',-1))]),_:1},8,["model-value"])])}const V=m(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/fronius/inverter_secondary.vue"]]);export{V as default}; diff --git a/web/settings/assets/io_action-511c0cd7.js b/web/settings/assets/io_action-25f5451d.js similarity index 87% rename from web/settings/assets/io_action-511c0cd7.js rename to web/settings/assets/io_action-25f5451d.js index 3c7c521051..f5f42223da 100644 --- a/web/settings/assets/io_action-511c0cd7.js +++ b/web/settings/assets/io_action-25f5451d.js @@ -1 +1 @@ -import{a as f}from"./IoConfig-3eeecf97.js";import{O as b}from"./OpenwbIoPattern-86c2d923.js";import{_ as v,u as r,l as p,m as w,G as l,E as a,B as i,F as g,A as s,x as A,z as V,N as h}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const k={name:"IoActionStepwiseControl",components:{OpenwbIoPattern:b},mixins:[f],computed:{availableDevices(){let t=this.availableComponents.filter(o=>o.type==="inverter").map(o=>({value:{type:o.type,id:o.value},text:o.text}));return[{label:t.length>0?"Wechselrichter":"Keine Wechselrichter verfügbar",options:t}]}}};function _(t,e,o,B,z,d){const u=r("openwb-io-pattern"),m=r("openwb-base-select-input"),c=r("openwb-base-button-group-input");return p(),w(h,null,[l(u,{modelValue:t.ioAction.configuration.input_pattern,"onUpdate:modelValue":e[0]||(e[0]=n=>t.ioAction.configuration.input_pattern=n),contacts:t.ioDevice.input.digital,"action-title":"Begrenzung","enable-add-delete":!1,class:"text-center"},{default:a(n=>[i(g(n.pattern.value*100+"%"),1)]),_:1},8,["modelValue","contacts"]),e[6]||(e[6]=s("hr",null,null,-1)),l(m,{modelValue:t.ioAction.configuration.devices,"onUpdate:modelValue":e[1]||(e[1]=n=>t.ioAction.configuration.devices=n),title:"Zugeordnete Erzeugungsanlagen...","not-selected":"Bitte auswählen","empty-value":[],groups:d.availableDevices,required:"",multiple:""},{help:a(()=>e[4]||(e[4]=[i(" Bitte die Erzeugungsanlagen auswählen, welche mit dieser Aktion gekoppelt sind. Es können mehrere Erzeugungsanlagen ausgewählt werden.",-1),s("br",null,null,-1),i(" Diese Zuordnung ist rein informativ und hat noch keine Auswirkungen auf die Funktionalität. Die Begrenzung der zugeordneten Erzeugungsanlagen wird im Status angezeigt. ",-1)])),_:1},8,["modelValue","groups"]),e[7]||(e[7]=s("hr",null,null,-1)),l(c,{modelValue:t.ioAction.configuration.passthrough_enabled,"onUpdate:modelValue":e[2]||(e[2]=n=>t.ioAction.configuration.passthrough_enabled=n),title:"Ausgänge aktivieren",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],class:"mb-2",required:""},{help:a(()=>e[5]||(e[5]=[i(' Optional kann das Signal der konfigurierten Eingänge an Ausgänge durchgereicht ("durchgeschliffen") werden. Wird z.B. das Muster für 60% als aktiv erkannt, dann wird auch das hier festgelegte Ausgangsmuster für 60% aktiviert. ',-1)])),_:1},8,["modelValue"]),t.ioAction.configuration.passthrough_enabled?(p(),A(u,{key:0,modelValue:t.ioAction.configuration.output_pattern,"onUpdate:modelValue":e[3]||(e[3]=n=>t.ioAction.configuration.output_pattern=n),contacts:t.ioDevice.output.digital,title:"Ausgangsmuster","action-title":"Begrenzung","enable-add-delete":!1,class:"text-center","show-check-pattern":!1},{default:a(n=>[i(g(n.pattern.value*100+"%"),1)]),_:1},8,["modelValue","contacts"])):V("",!0)],64)}const F=v(k,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/generator_systems/stepwise_control/io_action.vue"]]);export{F as default}; +import{a as f}from"./IoConfig-1ffa1790.js";import{O as b}from"./OpenwbIoPattern-43abb292.js";import{_ as v,u as r,l as p,m as w,G as l,E as a,B as i,F as g,A as s,x as A,z as V,N as h}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const k={name:"IoActionStepwiseControl",components:{OpenwbIoPattern:b},mixins:[f],computed:{availableDevices(){let t=this.availableComponents.filter(o=>o.type==="inverter").map(o=>({value:{type:o.type,id:o.value},text:o.text}));return[{label:t.length>0?"Wechselrichter":"Keine Wechselrichter verfügbar",options:t}]}}};function _(t,e,o,B,z,d){const u=r("openwb-io-pattern"),m=r("openwb-base-select-input"),c=r("openwb-base-button-group-input");return p(),w(h,null,[l(u,{modelValue:t.ioAction.configuration.input_pattern,"onUpdate:modelValue":e[0]||(e[0]=n=>t.ioAction.configuration.input_pattern=n),contacts:t.ioDevice.input.digital,"action-title":"Begrenzung","enable-add-delete":!1,class:"text-center"},{default:a(n=>[i(g(n.pattern.value*100+"%"),1)]),_:1},8,["modelValue","contacts"]),e[6]||(e[6]=s("hr",null,null,-1)),l(m,{modelValue:t.ioAction.configuration.devices,"onUpdate:modelValue":e[1]||(e[1]=n=>t.ioAction.configuration.devices=n),title:"Zugeordnete Erzeugungsanlagen...","not-selected":"Bitte auswählen","empty-value":[],groups:d.availableDevices,required:"",multiple:""},{help:a(()=>e[4]||(e[4]=[i(" Bitte die Erzeugungsanlagen auswählen, welche mit dieser Aktion gekoppelt sind. Es können mehrere Erzeugungsanlagen ausgewählt werden.",-1),s("br",null,null,-1),i(" Diese Zuordnung ist rein informativ und hat noch keine Auswirkungen auf die Funktionalität. Die Begrenzung der zugeordneten Erzeugungsanlagen wird im Status angezeigt. ",-1)])),_:1},8,["modelValue","groups"]),e[7]||(e[7]=s("hr",null,null,-1)),l(c,{modelValue:t.ioAction.configuration.passthrough_enabled,"onUpdate:modelValue":e[2]||(e[2]=n=>t.ioAction.configuration.passthrough_enabled=n),title:"Ausgänge aktivieren",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],class:"mb-2",required:""},{help:a(()=>e[5]||(e[5]=[i(' Optional kann das Signal der konfigurierten Eingänge an Ausgänge durchgereicht ("durchgeschliffen") werden. Wird z.B. das Muster für 60% als aktiv erkannt, dann wird auch das hier festgelegte Ausgangsmuster für 60% aktiviert. ',-1)])),_:1},8,["modelValue"]),t.ioAction.configuration.passthrough_enabled?(p(),A(u,{key:0,modelValue:t.ioAction.configuration.output_pattern,"onUpdate:modelValue":e[3]||(e[3]=n=>t.ioAction.configuration.output_pattern=n),contacts:t.ioDevice.output.digital,title:"Ausgangsmuster","action-title":"Begrenzung","enable-add-delete":!1,class:"text-center","show-check-pattern":!1},{default:a(n=>[i(g(n.pattern.value*100+"%"),1)]),_:1},8,["modelValue","contacts"])):V("",!0)],64)}const F=v(k,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/generator_systems/stepwise_control/io_action.vue"]]);export{F as default}; diff --git a/web/settings/assets/io_action-d714df0c.js b/web/settings/assets/io_action-33369fcf.js similarity index 78% rename from web/settings/assets/io_action-d714df0c.js rename to web/settings/assets/io_action-33369fcf.js index db44f609cd..48b2f3eba7 100644 --- a/web/settings/assets/io_action-d714df0c.js +++ b/web/settings/assets/io_action-33369fcf.js @@ -1 +1 @@ -import{a as d}from"./IoConfig-3eeecf97.js";import{O as m}from"./OpenwbIoPattern-86c2d923.js";import{_ as c,u as r,l as v,m as f,G as a,E as u,A as g,B as b,N as _}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const w={name:"IoActionRippleControlReceiver",components:{OpenwbIoPattern:m},mixins:[d],computed:{value:{get(){return this.ioAction.configuration.input_pattern},set(t){this.updateConfiguration(t,"configuration.input_pattern")}},availableDevices(){return[{label:this.availableChargePoints.length>0?"Ladepunkte":"Keine Ladepunkte verfügbar",options:this.availableChargePoints.map(e=>({value:{type:"cp",id:e.value},text:e.text}))}]}}};function V(t,e,h,x,C,o){var l;const i=r("openwb-base-select-input"),p=r("openwb-io-pattern");return v(),f(_,null,[a(p,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=n=>o.value=n),contacts:t.ioDevice.input.digital,"enable-add-delete":!0,"min-patterns":2},{default:u(n=>[a(i,{modelValue:n.pattern.value,"onUpdate:modelValue":s=>n.pattern.value=s,required:"","not-selected":"Bitte auswählen","empty-value":null,options:[{value:0,text:"sperren"},{value:1,text:"freigeben"}]},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["modelValue","contacts"]),e[3]||(e[3]=g("hr",null,null,-1)),a(i,{title:"Anwenden auf...","empty-value":[],groups:o.availableDevices,required:"",multiple:"","model-value":(l=t.ioAction)==null?void 0:l.configuration.devices,"onUpdate:modelValue":e[1]||(e[1]=n=>t.updateConfiguration(n,"configuration.devices"))},{help:u(()=>e[2]||(e[2]=[b(" Bitte die Ladepunkte auswählen, auf die das Verhalten angewendet werden soll. Es können mehrere Einträge ausgewählt werden. ",-1)])),_:1},8,["groups","model-value"])],64)}const O=c(w,[["render",V],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/controllable_consumers/ripple_control_receiver/io_action.vue"]]);export{O as default}; +import{a as d}from"./IoConfig-1ffa1790.js";import{O as m}from"./OpenwbIoPattern-43abb292.js";import{_ as c,u as r,l as v,m as f,G as a,E as u,A as g,B as b,N as _}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const w={name:"IoActionRippleControlReceiver",components:{OpenwbIoPattern:m},mixins:[d],computed:{value:{get(){return this.ioAction.configuration.input_pattern},set(t){this.updateConfiguration(t,"configuration.input_pattern")}},availableDevices(){return[{label:this.availableChargePoints.length>0?"Ladepunkte":"Keine Ladepunkte verfügbar",options:this.availableChargePoints.map(e=>({value:{type:"cp",id:e.value},text:e.text}))}]}}};function V(t,e,h,x,C,o){var l;const i=r("openwb-base-select-input"),p=r("openwb-io-pattern");return v(),f(_,null,[a(p,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=n=>o.value=n),contacts:t.ioDevice.input.digital,"enable-add-delete":!0,"min-patterns":2},{default:u(n=>[a(i,{modelValue:n.pattern.value,"onUpdate:modelValue":s=>n.pattern.value=s,required:"","not-selected":"Bitte auswählen","empty-value":null,options:[{value:0,text:"sperren"},{value:1,text:"freigeben"}]},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["modelValue","contacts"]),e[3]||(e[3]=g("hr",null,null,-1)),a(i,{title:"Anwenden auf...","empty-value":[],groups:o.availableDevices,required:"",multiple:"","model-value":(l=t.ioAction)==null?void 0:l.configuration.devices,"onUpdate:modelValue":e[1]||(e[1]=n=>t.updateConfiguration(n,"configuration.devices"))},{help:u(()=>e[2]||(e[2]=[b(" Bitte die Ladepunkte auswählen, auf die das Verhalten angewendet werden soll. Es können mehrere Einträge ausgewählt werden. ",-1)])),_:1},8,["groups","model-value"])],64)}const O=c(w,[["render",V],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/controllable_consumers/ripple_control_receiver/io_action.vue"]]);export{O as default}; diff --git a/web/settings/assets/io_action-7060fe71.js b/web/settings/assets/io_action-4c5b44eb.js similarity index 86% rename from web/settings/assets/io_action-7060fe71.js rename to web/settings/assets/io_action-4c5b44eb.js index 2a9f52014f..f145fe485d 100644 --- a/web/settings/assets/io_action-7060fe71.js +++ b/web/settings/assets/io_action-4c5b44eb.js @@ -1 +1 @@ -import{a as v}from"./IoConfig-3eeecf97.js";import{O as h}from"./OpenwbIoSinglePattern-14df64f6.js";import{_ as w,u as r,l as _,m as k,G as u,A as p,E as V,B as g,N as A}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const x={name:"IoActionDimming",components:{OpenwbIoSinglePattern:h},mixins:[v],computed:{value:{get(){return this.ioAction.configuration.input_pattern},set(t){this.updateConfiguration(t,"configuration.input_pattern")}},ioDevicesOutputOptions(){let t=[];return this.availableIoDevices.forEach(e=>{let o=[];Object.keys(e==null?void 0:e.output.digital).forEach(a=>{o.push({text:`${a}`,value:{type:"io",id:e.id,digital_output:a}})}),o.length>0&&t.push({label:e.name,options:o})}),t},availableDevices(){return[{label:"Ladepunkte",options:this.availableChargePoints.map(t=>({value:{type:"cp",id:t.value},text:t.text}))}].concat(this.ioDevicesOutputOptions)}}};function E(t,e,o,a,O,n){var s,l,d,m;const c=r("openwb-io-single-pattern"),b=r("openwb-base-number-input"),f=r("openwb-base-select-input");return _(),k(A,null,[u(c,{modelValue:n.value,"onUpdate:modelValue":e[0]||(e[0]=i=>n.value=i),contacts:(l=(s=t.ioDevice)==null?void 0:s.input)==null?void 0:l.digital},null,8,["modelValue","contacts"]),u(b,{title:"maximale Bezugsleistung",unit:"kW",min:"0",step:"0.01",required:"",disabled:!(Object.keys(n.value[0].matrix).length>0),"model-value":((d=t.ioAction)==null?void 0:d.configuration.max_import_power)/1e3,"onUpdate:modelValue":e[1]||(e[1]=i=>t.updateConfiguration(i*1e3,"configuration.max_import_power"))},null,8,["disabled","model-value"]),e[4]||(e[4]=p("hr",null,null,-1)),u(f,{title:"Anwenden auf...",groups:n.availableDevices,required:"",multiple:"",disabled:!(Object.keys(n.value[0].matrix).length>0),"model-value":(m=t.ioAction)==null?void 0:m.configuration.devices,"onUpdate:modelValue":e[2]||(e[2]=i=>t.updateConfiguration(i,"configuration.devices"))},{help:V(()=>e[3]||(e[3]=[g(" Bitte die Ladepunkte und/oder digitale Ausgänge auswählen, welche berücksichtigt werden sollen. Es können mehrere Einträge ausgewählt werden. Bei steuerbaren Verbrauchseinrichtungen, die über einen digitalen Ausgang angesteuert werden, wird eine Leistung von 4,2 kW bei aktiver Dimmung angenommen. Ladepunkte werden so gesteuert, dass die angegebene Leistung am EVU-Punkt nicht überschritten wird. Eigene PV-Erzeugung und vorhandene Speicher werden berücksichtigt und zusätzlich genutzt.",-1),p("br",null,null,-1),g(' Zugeordnete digitale Ausgänge werden im nicht gedimmten Zustand aktiviert und im gedimmten Zustand deaktiviert. So ist sichergestellt, dass bei einem Verbindungsabbruch oder einem Ausfall der Steuerung die Verbraucher nicht ungewollt mit voller Leistung betrieben werden. Ein mit "NO" bezeichneter digitaler Ausgang ist also für den nicht gedimmten Zustand geschlossen und bei aktivierter Dimmung geöffnet. ',-1)])),_:1},8,["groups","disabled","model-value"])],64)}const U=w(x,[["render",E],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/controllable_consumers/dimming/io_action.vue"]]);export{U as default}; +import{a as v}from"./IoConfig-1ffa1790.js";import{O as h}from"./OpenwbIoSinglePattern-2e542bd1.js";import{_ as w,u as r,l as _,m as k,G as u,A as p,E as V,B as g,N as A}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const x={name:"IoActionDimming",components:{OpenwbIoSinglePattern:h},mixins:[v],computed:{value:{get(){return this.ioAction.configuration.input_pattern},set(t){this.updateConfiguration(t,"configuration.input_pattern")}},ioDevicesOutputOptions(){let t=[];return this.availableIoDevices.forEach(e=>{let o=[];Object.keys(e==null?void 0:e.output.digital).forEach(a=>{o.push({text:`${a}`,value:{type:"io",id:e.id,digital_output:a}})}),o.length>0&&t.push({label:e.name,options:o})}),t},availableDevices(){return[{label:"Ladepunkte",options:this.availableChargePoints.map(t=>({value:{type:"cp",id:t.value},text:t.text}))}].concat(this.ioDevicesOutputOptions)}}};function E(t,e,o,a,O,n){var s,l,d,m;const c=r("openwb-io-single-pattern"),b=r("openwb-base-number-input"),f=r("openwb-base-select-input");return _(),k(A,null,[u(c,{modelValue:n.value,"onUpdate:modelValue":e[0]||(e[0]=i=>n.value=i),contacts:(l=(s=t.ioDevice)==null?void 0:s.input)==null?void 0:l.digital},null,8,["modelValue","contacts"]),u(b,{title:"maximale Bezugsleistung",unit:"kW",min:"0",step:"0.01",required:"",disabled:!(Object.keys(n.value[0].matrix).length>0),"model-value":((d=t.ioAction)==null?void 0:d.configuration.max_import_power)/1e3,"onUpdate:modelValue":e[1]||(e[1]=i=>t.updateConfiguration(i*1e3,"configuration.max_import_power"))},null,8,["disabled","model-value"]),e[4]||(e[4]=p("hr",null,null,-1)),u(f,{title:"Anwenden auf...",groups:n.availableDevices,required:"",multiple:"",disabled:!(Object.keys(n.value[0].matrix).length>0),"model-value":(m=t.ioAction)==null?void 0:m.configuration.devices,"onUpdate:modelValue":e[2]||(e[2]=i=>t.updateConfiguration(i,"configuration.devices"))},{help:V(()=>e[3]||(e[3]=[g(" Bitte die Ladepunkte und/oder digitale Ausgänge auswählen, welche berücksichtigt werden sollen. Es können mehrere Einträge ausgewählt werden. Bei steuerbaren Verbrauchseinrichtungen, die über einen digitalen Ausgang angesteuert werden, wird eine Leistung von 4,2 kW bei aktiver Dimmung angenommen. Ladepunkte werden so gesteuert, dass die angegebene Leistung am EVU-Punkt nicht überschritten wird. Eigene PV-Erzeugung und vorhandene Speicher werden berücksichtigt und zusätzlich genutzt.",-1),p("br",null,null,-1),g(' Zugeordnete digitale Ausgänge werden im nicht gedimmten Zustand aktiviert und im gedimmten Zustand deaktiviert. So ist sichergestellt, dass bei einem Verbindungsabbruch oder einem Ausfall der Steuerung die Verbraucher nicht ungewollt mit voller Leistung betrieben werden. Ein mit "NO" bezeichneter digitaler Ausgang ist also für den nicht gedimmten Zustand geschlossen und bei aktivierter Dimmung geöffnet. ',-1)])),_:1},8,["groups","disabled","model-value"])],64)}const U=w(x,[["render",E],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/controllable_consumers/dimming/io_action.vue"]]);export{U as default}; diff --git a/web/settings/assets/io_action-3df13474.js b/web/settings/assets/io_action-8d0f9f11.js similarity index 81% rename from web/settings/assets/io_action-3df13474.js rename to web/settings/assets/io_action-8d0f9f11.js index ce94ddc7a1..bcf26a7ca3 100644 --- a/web/settings/assets/io_action-3df13474.js +++ b/web/settings/assets/io_action-8d0f9f11.js @@ -1 +1 @@ -import{a as g}from"./IoConfig-3eeecf97.js";import{O as c}from"./OpenwbIoSinglePattern-14df64f6.js";import{_ as f,u,l as b,m as v,G as p,A as h,E as _,B as w,N as V}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const k={name:"IoActionDimmingDirectControl",components:{OpenwbIoSinglePattern:c},mixins:[g],computed:{value:{get(){return this.ioAction.configuration.input_pattern},set(t){this.updateConfiguration(t,"configuration.input_pattern")}},ioDevicesOutputOptions(){let t=[];return this.availableIoDevices.forEach(e=>{let n=[];Object.keys(e==null?void 0:e.output.digital).forEach(i=>{n.push({text:`${i}`,value:{type:"io",id:e.id,digital_output:i}})}),n.length>0&&t.push({label:e.name,options:n})}),t.length===0&&t.push({label:"Keine digitalen Ausgänge verfügbar",options:[]}),t},availableDevices(){return[{label:this.availableChargePoints.length>0?"Ladepunkte":"Keine Ladepunkte verfügbar",options:this.availableChargePoints.map(e=>({value:{type:"cp",id:e.value},text:e.text}))}].concat(this.ioDevicesOutputOptions)}}};function x(t,e,n,i,C,o){var l,r,s;const d=u("openwb-io-single-pattern"),m=u("openwb-base-select-input");return b(),v(V,null,[p(d,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=a=>o.value=a),contacts:(r=(l=t.ioDevice)==null?void 0:l.input)==null?void 0:r.digital},null,8,["modelValue","contacts"]),e[3]||(e[3]=h("hr",null,null,-1)),p(m,{title:"Verhalten anwenden auf...","not-selected":"Bitte auswählen","empty-value":[],groups:o.availableDevices,multiple:"",required:"",disabled:!(Object.keys(o.value[0].matrix).length>0),"model-value":(s=t.ioAction)==null?void 0:s.configuration.devices,"onUpdate:modelValue":e[1]||(e[1]=a=>t.updateConfiguration(a,"configuration.devices"))},{help:_(()=>e[2]||(e[2]=[w(" Bitte die Ladepunkte und/oder digitalen Ausgänge auswählen, auf welche das Verhalten angewendet werden soll. Es können mehrere Einträge ausgewählt werden. Ladepunkte werden auf 4,2kW gedimmt, eine Verrechnung mit PV-Erzeugung findet nicht statt. ",-1)])),_:1},8,["groups","disabled","model-value"])],64)}const j=f(k,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/controllable_consumers/dimming_direct_control/io_action.vue"]]);export{j as default}; +import{a as g}from"./IoConfig-1ffa1790.js";import{O as c}from"./OpenwbIoSinglePattern-2e542bd1.js";import{_ as f,u,l as b,m as v,G as p,A as h,E as _,B as w,N as V}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const k={name:"IoActionDimmingDirectControl",components:{OpenwbIoSinglePattern:c},mixins:[g],computed:{value:{get(){return this.ioAction.configuration.input_pattern},set(t){this.updateConfiguration(t,"configuration.input_pattern")}},ioDevicesOutputOptions(){let t=[];return this.availableIoDevices.forEach(e=>{let n=[];Object.keys(e==null?void 0:e.output.digital).forEach(i=>{n.push({text:`${i}`,value:{type:"io",id:e.id,digital_output:i}})}),n.length>0&&t.push({label:e.name,options:n})}),t.length===0&&t.push({label:"Keine digitalen Ausgänge verfügbar",options:[]}),t},availableDevices(){return[{label:this.availableChargePoints.length>0?"Ladepunkte":"Keine Ladepunkte verfügbar",options:this.availableChargePoints.map(e=>({value:{type:"cp",id:e.value},text:e.text}))}].concat(this.ioDevicesOutputOptions)}}};function x(t,e,n,i,C,o){var l,r,s;const d=u("openwb-io-single-pattern"),m=u("openwb-base-select-input");return b(),v(V,null,[p(d,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=a=>o.value=a),contacts:(r=(l=t.ioDevice)==null?void 0:l.input)==null?void 0:r.digital},null,8,["modelValue","contacts"]),e[3]||(e[3]=h("hr",null,null,-1)),p(m,{title:"Verhalten anwenden auf...","not-selected":"Bitte auswählen","empty-value":[],groups:o.availableDevices,multiple:"",required:"",disabled:!(Object.keys(o.value[0].matrix).length>0),"model-value":(s=t.ioAction)==null?void 0:s.configuration.devices,"onUpdate:modelValue":e[1]||(e[1]=a=>t.updateConfiguration(a,"configuration.devices"))},{help:_(()=>e[2]||(e[2]=[w(" Bitte die Ladepunkte und/oder digitalen Ausgänge auswählen, auf welche das Verhalten angewendet werden soll. Es können mehrere Einträge ausgewählt werden. Ladepunkte werden auf 4,2kW gedimmt, eine Verrechnung mit PV-Erzeugung findet nicht statt. ",-1)])),_:1},8,["groups","disabled","model-value"])],64)}const j=f(k,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_actions/controllable_consumers/dimming_direct_control/io_action.vue"]]);export{j as default}; diff --git a/web/settings/assets/io_device-1b22f974.js b/web/settings/assets/io_device-6526992b.js similarity index 83% rename from web/settings/assets/io_device-1b22f974.js rename to web/settings/assets/io_device-6526992b.js index 4185a3634d..528ebf9290 100644 --- a/web/settings/assets/io_device-1b22f974.js +++ b/web/settings/assets/io_device-6526992b.js @@ -1 +1 @@ -import{O as m}from"./IoConfig-3eeecf97.js";import{C as f}from"./index-93388667.js";import{_ as g,u as s,l as h,m as b,G as a,E as l,B as o,A as n}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./dynamic-import-helper-be004503.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";const _={name:"IoDeviceAddOn",mixins:[f,m],data(){return{mqttTopicsToSubscribe:["openWB/chargepoint/+/config"]}},computed:{configuredChargePoints(){const t=this.getWildcardTopics("openWB/chargepoint/+/config");let e=[];for(const i of Object.values(t))if(["external_openwb"].includes(i.type)){if(e.find(r=>r.value===i.configuration.ip_address))continue;e.push({value:i.configuration.ip_address,text:i.name})}return e},configuredDisplays(){return[]},availableIoSources:{get(){return[{label:"Ladepunkte",options:this.configuredChargePoints},{label:"Zusatzdisplays",options:this.configuredDisplays}].filter(t=>t.options.length>0)}}}},v={class:"io-device-add-on"};function w(t,e,i,r,B,d){const u=s("openwb-base-alert"),p=s("openwb-base-select-input");return h(),b("div",v,[a(u,{subtype:"warning"},{default:l(()=>e[1]||(e[1]=[o(" Die Kontakte der AddOn-Platine sind nicht galvanisch oder optisch getrennt. Es wird dringend empfohlen, mit Koppelrelais zu arbeiten.",-1),n("br",null,null,-1),o(" Weiterhin muss für die Verwendung der Kontakte in einer openWB series2 eine weitere Kabeldurchführung in das Gehäuse gebohrt werden. Da es hierbei zu Undichtigkeiten kommen kann, ist dies nur von fachkundigen Personen durchzuführen.",-1),n("br",null,null,-1),o(" Es wird keine Haftung für Schäden übernommen, die durch die direkte Beschaltung der Kontakte oder eine zusätzliche Bohrung im Gehäuse entstehen.",-1),n("br",null,null,-1),o(" Es wird der Einsatz des Dimm- & Control-Kits empfohlen! ",-1)])),_:1,__:[1]}),a(p,{title:"Installiert auf...","not-selected":"Bitte auswählen","empty-value":null,options:[{value:"localhost",text:"dieser openWB"}],groups:d.availableIoSources,"model-value":t.ioDevice.configuration.host,"onUpdate:modelValue":e[0]||(e[0]=c=>t.updateConfiguration(c,"configuration.host"))},{help:l(()=>e[2]||(e[2]=[o(" Bitte die Komponente auswählen, an der die Add-On-Platine installiert ist.",-1),n("br",null,null,-1),o(" Unterstützt werden:",-1),n("br",null,null,-1),n("ul",null,[n("li",null,"openWB standalone (als primary oder Zusatzdisplay)"),n("li",null,'openWB Ladepunkte als primary ("interne openWB") und secondary ("externe openWB")')],-1)])),_:1},8,["groups","model-value"])])}const E=g(_,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_devices/add_on/io_device.vue"]]);export{E as default}; +import{O as m}from"./IoConfig-1ffa1790.js";import{C as f}from"./index-eccf5556.js";import{_ as g,u as s,l as h,m as b,G as a,E as l,B as o,A as n}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./dynamic-import-helper-be004503.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";const _={name:"IoDeviceAddOn",mixins:[f,m],data(){return{mqttTopicsToSubscribe:["openWB/chargepoint/+/config"]}},computed:{configuredChargePoints(){const t=this.getWildcardTopics("openWB/chargepoint/+/config");let e=[];for(const i of Object.values(t))if(["external_openwb"].includes(i.type)){if(e.find(r=>r.value===i.configuration.ip_address))continue;e.push({value:i.configuration.ip_address,text:i.name})}return e},configuredDisplays(){return[]},availableIoSources:{get(){return[{label:"Ladepunkte",options:this.configuredChargePoints},{label:"Zusatzdisplays",options:this.configuredDisplays}].filter(t=>t.options.length>0)}}}},v={class:"io-device-add-on"};function w(t,e,i,r,B,d){const u=s("openwb-base-alert"),p=s("openwb-base-select-input");return h(),b("div",v,[a(u,{subtype:"warning"},{default:l(()=>e[1]||(e[1]=[o(" Die Kontakte der AddOn-Platine sind nicht galvanisch oder optisch getrennt. Es wird dringend empfohlen, mit Koppelrelais zu arbeiten.",-1),n("br",null,null,-1),o(" Weiterhin muss für die Verwendung der Kontakte in einer openWB series2 eine weitere Kabeldurchführung in das Gehäuse gebohrt werden. Da es hierbei zu Undichtigkeiten kommen kann, ist dies nur von fachkundigen Personen durchzuführen.",-1),n("br",null,null,-1),o(" Es wird keine Haftung für Schäden übernommen, die durch die direkte Beschaltung der Kontakte oder eine zusätzliche Bohrung im Gehäuse entstehen.",-1),n("br",null,null,-1),o(" Es wird der Einsatz des Dimm- & Control-Kits empfohlen! ",-1)])),_:1,__:[1]}),a(p,{title:"Installiert auf...","not-selected":"Bitte auswählen","empty-value":null,options:[{value:"localhost",text:"dieser openWB"}],groups:d.availableIoSources,"model-value":t.ioDevice.configuration.host,"onUpdate:modelValue":e[0]||(e[0]=c=>t.updateConfiguration(c,"configuration.host"))},{help:l(()=>e[2]||(e[2]=[o(" Bitte die Komponente auswählen, an der die Add-On-Platine installiert ist.",-1),n("br",null,null,-1),o(" Unterstützt werden:",-1),n("br",null,null,-1),n("ul",null,[n("li",null,"openWB standalone (als primary oder Zusatzdisplay)"),n("li",null,'openWB Ladepunkte als primary ("interne openWB") und secondary ("externe openWB")')],-1)])),_:1},8,["groups","model-value"])])}const E=g(_,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_devices/add_on/io_device.vue"]]);export{E as default}; diff --git a/web/settings/assets/io_device-850aa661.js b/web/settings/assets/io_device-f28df559.js similarity index 70% rename from web/settings/assets/io_device-850aa661.js rename to web/settings/assets/io_device-f28df559.js index 4f8c97a169..576e348250 100644 --- a/web/settings/assets/io_device-850aa661.js +++ b/web/settings/assets/io_device-f28df559.js @@ -1 +1 @@ -import{O as m}from"./IoConfig-3eeecf97.js";import{_ as p,u as r,l as a,m as s,G as t}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const d={name:"IoDeviceDimmKit",mixins:[m]},l={class:"io-device-dimm-kit"};function v(o,e,c,f,_,b){const u=r("openwb-base-text-input"),n=r("openwb-base-number-input");return a(),s("div",l,[t(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.ioDevice.configuration.host,"onUpdate:modelValue":e[0]||(e[0]=i=>o.updateConfiguration(i,"configuration.host"))},null,8,["model-value"]),t(n,{title:"Port",required:"","model-value":o.ioDevice.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=i=>o.updateConfiguration(i,"configuration.port"))},null,8,["model-value"]),t(n,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":o.ioDevice.configuration.modbus_id,"onUpdate:modelValue":e[2]||(e[2]=i=>o.updateConfiguration(i,"configuration.modbus_id"))},null,8,["model-value"])])}const B=p(d,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_devices/dimm_kit/io_device.vue"]]);export{B as default}; +import{O as m}from"./IoConfig-1ffa1790.js";import{_ as p,u as r,l as a,m as s,G as t}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const d={name:"IoDeviceDimmKit",mixins:[m]},l={class:"io-device-dimm-kit"};function v(o,e,c,f,_,b){const u=r("openwb-base-text-input"),n=r("openwb-base-number-input");return a(),s("div",l,[t(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.ioDevice.configuration.host,"onUpdate:modelValue":e[0]||(e[0]=i=>o.updateConfiguration(i,"configuration.host"))},null,8,["model-value"]),t(n,{title:"Port",required:"","model-value":o.ioDevice.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=i=>o.updateConfiguration(i,"configuration.port"))},null,8,["model-value"]),t(n,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":o.ioDevice.configuration.modbus_id,"onUpdate:modelValue":e[2]||(e[2]=i=>o.updateConfiguration(i,"configuration.modbus_id"))},null,8,["model-value"])])}const B=p(d,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/io_devices/dimm_kit/io_device.vue"]]);export{B as default}; diff --git a/web/settings/assets/monitoring-5f234ebf.js b/web/settings/assets/monitoring-cec4113b.js similarity index 81% rename from web/settings/assets/monitoring-5f234ebf.js rename to web/settings/assets/monitoring-cec4113b.js index 618c097471..dd04678a62 100644 --- a/web/settings/assets/monitoring-5f234ebf.js +++ b/web/settings/assets/monitoring-cec4113b.js @@ -1 +1 @@ -import{M as l}from"./DataManagement-93d69162.js";import{_ as p,u as a,l as d,m,G as t,E as g,B as r,A as s}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const f={name:"MonitoringZabbix",mixins:[l]},b={class:"monitoring-zabbix"};function v(n,e,_,k,w,y){const u=a("openwb-base-alert"),i=a("openwb-base-text-input");return d(),m("div",b,[t(u,{subtype:"info"},{default:g(()=>e[4]||(e[4]=[r(" Mit dem Monitoring-Service von openWB kannst Du Dein System ganz einfach überwachen. Einfach ",-1),s("a",{href:"https://wb-solution.de/produkt/aktives-monitoring-openwb-installation-2/",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),r(" anmelden und Deine Zugangsdaten erhalten.",-1),s("br",null,null,-1),r("Alternativ kannst Du auch deinen eigenen Zabbix-Server aufsetzen und die Zugangsdaten hier eintragen. ",-1)])),_:1,__:[4]}),t(i,{title:"Zielhost",subtype:"host",required:"","model-value":n.monitoring.configuration.destination_host,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.destination_host"))},null,8,["model-value"]),t(i,{title:"Eigener Hostname",subtype:"user",required:"","model-value":n.monitoring.configuration.hostname,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.hostname"))},null,8,["model-value"]),t(i,{title:"PSK Identifier",subtype:"text",required:"","model-value":n.monitoring.configuration.psk_identifier,"onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.psk_identifier"))},null,8,["model-value"]),t(i,{title:"PSK Key",subtype:"password",required:"","model-value":n.monitoring.configuration.psk_key,"onUpdate:modelValue":e[3]||(e[3]=o=>n.updateConfiguration(o,"configuration.psk_key"))},null,8,["model-value"])])}const q=p(f,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/monitoring/zabbix/monitoring.vue"]]);export{q as default}; +import{M as l}from"./DataManagement-3531e291.js";import{_ as p,u as a,l as d,m,G as t,E as g,B as r,A as s}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const f={name:"MonitoringZabbix",mixins:[l]},b={class:"monitoring-zabbix"};function v(n,e,_,k,w,y){const u=a("openwb-base-alert"),i=a("openwb-base-text-input");return d(),m("div",b,[t(u,{subtype:"info"},{default:g(()=>e[4]||(e[4]=[r(" Mit dem Monitoring-Service von openWB kannst Du Dein System ganz einfach überwachen. Einfach ",-1),s("a",{href:"https://wb-solution.de/produkt/aktives-monitoring-openwb-installation-2/",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),r(" anmelden und Deine Zugangsdaten erhalten.",-1),s("br",null,null,-1),r("Alternativ kannst Du auch deinen eigenen Zabbix-Server aufsetzen und die Zugangsdaten hier eintragen. ",-1)])),_:1,__:[4]}),t(i,{title:"Zielhost",subtype:"host",required:"","model-value":n.monitoring.configuration.destination_host,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.destination_host"))},null,8,["model-value"]),t(i,{title:"Eigener Hostname",subtype:"user",required:"","model-value":n.monitoring.configuration.hostname,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.hostname"))},null,8,["model-value"]),t(i,{title:"PSK Identifier",subtype:"text",required:"","model-value":n.monitoring.configuration.psk_identifier,"onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.psk_identifier"))},null,8,["model-value"]),t(i,{title:"PSK Key",subtype:"password",required:"","model-value":n.monitoring.configuration.psk_key,"onUpdate:modelValue":e[3]||(e[3]=o=>n.updateConfiguration(o,"configuration.psk_key"))},null,8,["model-value"])])}const q=p(f,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/monitoring/zabbix/monitoring.vue"]]);export{q as default}; diff --git a/web/settings/assets/vehicle-e6540d4c.js b/web/settings/assets/vehicle-02aaf130.js similarity index 76% rename from web/settings/assets/vehicle-e6540d4c.js rename to web/settings/assets/vehicle-02aaf130.js index dd1f914350..acf4308f0a 100644 --- a/web/settings/assets/vehicle-e6540d4c.js +++ b/web/settings/assets/vehicle-02aaf130.js @@ -1 +1 @@ -import{V as p}from"./VehicleConfig-28b52371.js";import{_ as l,u as s,l as d,m,G as r,E as i,B as t,A as f}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const v={name:"VehicleSocCupra",mixins:[p]},g={class:"vehicle-soc-cupra"};function b(o,e,w,C,c,_){const u=s("openwb-base-alert"),a=s("openwb-base-text-input");return d(),m("div",g,[r(u,{subtype:"info"},{default:i(()=>e[3]||(e[3]=[t(" Beschreibung der Konfiguration und weitere Hinweise im Wiki: ",-1),f("a",{href:"https://github.com/openWB/core/wiki/SoC-Cupra",target:"_blank",rel:"noopener noreferrer"},"Wiki für SoC-Modul Cupra",-1)])),_:1,__:[3]}),r(a,{title:"Benutzername",required:"",subtype:"user","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.user_id"))},{help:i(()=>e[4]||(e[4]=[t(" Der Benutzername(Email-Adresse) für die Anmeldung an den Cupra-Servern. ",-1)])),_:1},8,["model-value"]),r(a,{title:"Kennwort",required:"",subtype:"password","model-value":o.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},{help:i(()=>e[5]||(e[5]=[t(" Das Passwort für die Anmeldung an den Cupra-Servern. ",-1)])),_:1},8,["model-value"]),r(a,{title:"VIN",required:"","model-value":o.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.vin"))},{help:i(()=>e[6]||(e[6]=[t(" Die Fahrgestellnummer des Fahrzeugs. ",-1)])),_:1},8,["model-value"])])}const x=l(v,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/cupra/vehicle.vue"]]);export{x as default}; +import{V as p}from"./VehicleConfig-44d8bbb2.js";import{_ as l,u as s,l as d,m,G as r,E as i,B as t,A as f}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const v={name:"VehicleSocCupra",mixins:[p]},g={class:"vehicle-soc-cupra"};function b(o,e,w,C,c,_){const u=s("openwb-base-alert"),a=s("openwb-base-text-input");return d(),m("div",g,[r(u,{subtype:"info"},{default:i(()=>e[3]||(e[3]=[t(" Beschreibung der Konfiguration und weitere Hinweise im Wiki: ",-1),f("a",{href:"https://github.com/openWB/core/wiki/SoC-Cupra",target:"_blank",rel:"noopener noreferrer"},"Wiki für SoC-Modul Cupra",-1)])),_:1,__:[3]}),r(a,{title:"Benutzername",required:"",subtype:"user","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.user_id"))},{help:i(()=>e[4]||(e[4]=[t(" Der Benutzername(Email-Adresse) für die Anmeldung an den Cupra-Servern. ",-1)])),_:1},8,["model-value"]),r(a,{title:"Kennwort",required:"",subtype:"password","model-value":o.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},{help:i(()=>e[5]||(e[5]=[t(" Das Passwort für die Anmeldung an den Cupra-Servern. ",-1)])),_:1},8,["model-value"]),r(a,{title:"VIN",required:"","model-value":o.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.vin"))},{help:i(()=>e[6]||(e[6]=[t(" Die Fahrgestellnummer des Fahrzeugs. ",-1)])),_:1},8,["model-value"])])}const x=l(v,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/cupra/vehicle.vue"]]);export{x as default}; diff --git a/web/settings/assets/vehicle-96da0410.js b/web/settings/assets/vehicle-07456498.js similarity index 92% rename from web/settings/assets/vehicle-96da0410.js rename to web/settings/assets/vehicle-07456498.js index 6ed0519430..4c0672b42f 100644 --- a/web/settings/assets/vehicle-96da0410.js +++ b/web/settings/assets/vehicle-07456498.js @@ -1 +1 @@ -import{_ as h,a6 as c,a7 as _,a8 as f,u as r,l as b,m as k,G as i,E as a,B as s,A as v}from"./vendor-25d394b4.js";import{a as w}from"./vendor-axios-ac33d60c.js";import{C}from"./index-93388667.js";import{V as y}from"./VehicleConfig-28b52371.js";import"./vendor-sortablejs-0eb84ec8.js";import"./vendor-fortawesome-66071a0e.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const T={name:"VehicleSocTesla",mixins:[C,y],data(){return{tesla_api_oauth2:"https://auth.tesla.com/oauth2/v3",tesla_api_redirect:"https://auth.tesla.com/void/callback",tesla_api_owners:"https://owner-api.teslamotors.com/oauth/token",user_agent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",code_challenge:null,code_verifier:null,page_not_found_url:null}},methods:{tesla_login_window(){this.tesla_gen_challenge();var e=window.open(this.tesla_gen_url(),"TeslaLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");e.focus()},tesla_gen_challenge(){this.code_verifier=c.encode(_.randomBytes(86)).replace(/[^a-zA-Z0-9]/gi,"").substring(0,86);const e=_.createHash("sha256").update(this.code_verifier).digest();this.code_challenge=c.encode(e),console.debug(this.code_verifier,this.code_verifier.length,this.code_challenge,this.code_challenge.length)},tesla_gen_url(){const e=new URL(this.tesla_api_oauth2+"/authorize/");return e.searchParams.append("client_id","ownerapi"),e.searchParams.append("code_challenge",this.code_challenge),e.searchParams.append("code_challenge_method","S256"),e.searchParams.append("redirect_uri",this.tesla_api_redirect),e.searchParams.append("response_type","code"),e.searchParams.append("scope","openid email offline_access"),e.searchParams.append("state","myteslaapp"),e},async tesla_login(){const e=f.parse(this.page_not_found_url,!0).query;if(console.debug("queryObject",e),!e.code){console.error("Something is wrong... Code does not exist in URL"),this.$root.postClientMessage("Die eingegebene URL ist ungültig.","danger");return}const n={url:this.tesla_api_owners,user_agent:this.user_agent,data:{grant_type:"authorization_code",client_id:"ownerapi",code:e.code,code_verifier:this.code_verifier,redirect_uri:this.tesla_api_redirect}};try{const o=await w.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/vehicles/tesla/tesla.php",JSON.parse(JSON.stringify(n)),{headers:{"Content-Type":"application/json",Accept:"application/json"}});console.debug("response",o),this.updateConfiguration({access_token:o.data.access_token,refresh_token:o.data.refresh_token,created_at:o.data.created_at,expires_in:o.data.expires_in},"configuration.token"),this.$root.postClientMessage("Token erfolgreich abgerufen.","success")}catch(o){console.error(o),this.$root.postClientMessage("Beim Abruf der Token ist ein Fehler aufgetreten!
"+o+"
","danger")}}}},B={class:"vehicle-soc-tesla"};function U(e,n,o,z,l,p){const u=r("openwb-base-number-input"),m=r("openwb-base-heading"),g=r("openwb-base-button-input"),d=r("openwb-base-text-input");return b(),k("div",B,[i(u,{title:"Fahrzeug-ID",required:"",min:0,"model-value":e.vehicle.configuration.tesla_ev_num,"onUpdate:modelValue":n[0]||(n[0]=t=>e.updateConfiguration(t,"configuration.tesla_ev_num"))},{help:a(()=>n[6]||(n[6]=[s(' Die ID des Fahrzeugs bei Tesla. Normalerweise "0" bei nur einem Fahrzeug im Konto. ',-1)])),_:1},8,["model-value"]),i(m,null,{default:a(()=>n[7]||(n[7]=[s("Token abrufen oder eingeben",-1)])),_:1,__:[7]}),i(g,{title:"1. Anmelden","button-text":"Bei Tesla Anmelden",subtype:"success",onButtonClicked:p.tesla_login_window},{help:a(()=>n[8]||(n[8]=[s(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Tesla mit Ihren Zugangsdaten anmelden können. ",-1)])),_:1},8,["onButtonClicked"]),i(d,{modelValue:l.page_not_found_url,"onUpdate:modelValue":n[1]||(n[1]=t=>l.page_not_found_url=t),title:"2. URL kopieren und einfügen",subtype:"url","empty-value":null},{help:a(()=>n[9]||(n[9]=[s(' Hier die komplette URL (Text in der Adresszeile) aus dem geöffneten Browserfenster einfügen, wenn dort "Page Not Found" angezeigt wird. ',-1)])),_:1},8,["modelValue"]),i(g,{title:"3. Token abrufen","button-text":"Jetzt abrufen",subtype:"success",disabled:l.page_not_found_url===null,onButtonClicked:p.tesla_login},{help:a(()=>n[10]||(n[10]=[s(" Der in der eingegebenen URL enthaltene Code wird genutzt, um ein Anmeldetoken bei Tesla abzurufen. Ist dies erfolgreich, so werden die Daten des Token in den weiteren Feldern automatisch eingegeben. ",-1)])),_:1},8,["disabled","onButtonClicked"]),n[13]||(n[13]=v("hr",null,null,-1)),i(d,{title:"Access Token",pattern:"^(ey).*",required:"","model-value":e.vehicle.configuration.token?e.vehicle.configuration.token.access_token:"","onUpdate:modelValue":n[2]||(n[2]=t=>e.updateConfiguration(t,"configuration.token.access_token"))},null,8,["model-value"]),i(d,{title:"Refresh Token",pattern:"^(ey).*",required:"","model-value":e.vehicle.configuration.token?e.vehicle.configuration.token.refresh_token:"","onUpdate:modelValue":n[3]||(n[3]=t=>e.updateConfiguration(t,"configuration.token.refresh_token"))},null,8,["model-value"]),i(u,{title:"Erstellt um",required:"","model-value":e.vehicle.configuration.token?e.vehicle.configuration.token.created_at:0,"onUpdate:modelValue":n[4]||(n[4]=t=>e.updateConfiguration(t,"configuration.token.created_at"))},{help:a(()=>n[11]||(n[11]=[s(" Unix Timestamp des Zeitpunktes, an dem das Token erzeugt wurde. ",-1)])),_:1},8,["model-value"]),i(u,{title:"Ungültig in",unit:"s",required:"","model-value":e.vehicle.configuration.token?e.vehicle.configuration.token.expires_in:0,"onUpdate:modelValue":n[5]||(n[5]=t=>e.updateConfiguration(t,"configuration.token.expires_in"))},{help:a(()=>n[12]||(n[12]=[s(" Zeitspanne in Sekunden, nach der das Token ungültig wird. ",-1)])),_:1},8,["model-value"])])}const F=h(T,[["render",U],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/tesla/vehicle.vue"]]);export{F as default}; +import{_ as h,a6 as c,a7 as _,a8 as f,u as r,l as b,m as k,G as i,E as a,B as s,A as v}from"./vendor-57e3a63c.js";import{a as w}from"./vendor-axios-89a9dc60.js";import{C}from"./index-eccf5556.js";import{V as y}from"./VehicleConfig-44d8bbb2.js";import"./vendor-sortablejs-63b3e6e3.js";import"./vendor-fortawesome-d6ee0a65.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const T={name:"VehicleSocTesla",mixins:[C,y],data(){return{tesla_api_oauth2:"https://auth.tesla.com/oauth2/v3",tesla_api_redirect:"https://auth.tesla.com/void/callback",tesla_api_owners:"https://owner-api.teslamotors.com/oauth/token",user_agent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",code_challenge:null,code_verifier:null,page_not_found_url:null}},methods:{tesla_login_window(){this.tesla_gen_challenge();var e=window.open(this.tesla_gen_url(),"TeslaLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");e.focus()},tesla_gen_challenge(){this.code_verifier=c.encode(_.randomBytes(86)).replace(/[^a-zA-Z0-9]/gi,"").substring(0,86);const e=_.createHash("sha256").update(this.code_verifier).digest();this.code_challenge=c.encode(e),console.debug(this.code_verifier,this.code_verifier.length,this.code_challenge,this.code_challenge.length)},tesla_gen_url(){const e=new URL(this.tesla_api_oauth2+"/authorize/");return e.searchParams.append("client_id","ownerapi"),e.searchParams.append("code_challenge",this.code_challenge),e.searchParams.append("code_challenge_method","S256"),e.searchParams.append("redirect_uri",this.tesla_api_redirect),e.searchParams.append("response_type","code"),e.searchParams.append("scope","openid email offline_access"),e.searchParams.append("state","myteslaapp"),e},async tesla_login(){const e=f.parse(this.page_not_found_url,!0).query;if(console.debug("queryObject",e),!e.code){console.error("Something is wrong... Code does not exist in URL"),this.$root.postClientMessage("Die eingegebene URL ist ungültig.","danger");return}const n={url:this.tesla_api_owners,user_agent:this.user_agent,data:{grant_type:"authorization_code",client_id:"ownerapi",code:e.code,code_verifier:this.code_verifier,redirect_uri:this.tesla_api_redirect}};try{const o=await w.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/vehicles/tesla/tesla.php",JSON.parse(JSON.stringify(n)),{headers:{"Content-Type":"application/json",Accept:"application/json"}});console.debug("response",o),this.updateConfiguration({access_token:o.data.access_token,refresh_token:o.data.refresh_token,created_at:o.data.created_at,expires_in:o.data.expires_in},"configuration.token"),this.$root.postClientMessage("Token erfolgreich abgerufen.","success")}catch(o){console.error(o),this.$root.postClientMessage("Beim Abruf der Token ist ein Fehler aufgetreten!
"+o+"
","danger")}}}},B={class:"vehicle-soc-tesla"};function U(e,n,o,z,l,p){const u=r("openwb-base-number-input"),m=r("openwb-base-heading"),g=r("openwb-base-button-input"),d=r("openwb-base-text-input");return b(),k("div",B,[i(u,{title:"Fahrzeug-ID",required:"",min:0,"model-value":e.vehicle.configuration.tesla_ev_num,"onUpdate:modelValue":n[0]||(n[0]=t=>e.updateConfiguration(t,"configuration.tesla_ev_num"))},{help:a(()=>n[6]||(n[6]=[s(' Die ID des Fahrzeugs bei Tesla. Normalerweise "0" bei nur einem Fahrzeug im Konto. ',-1)])),_:1},8,["model-value"]),i(m,null,{default:a(()=>n[7]||(n[7]=[s("Token abrufen oder eingeben",-1)])),_:1,__:[7]}),i(g,{title:"1. Anmelden","button-text":"Bei Tesla Anmelden",subtype:"success",onButtonClicked:p.tesla_login_window},{help:a(()=>n[8]||(n[8]=[s(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Tesla mit Ihren Zugangsdaten anmelden können. ",-1)])),_:1},8,["onButtonClicked"]),i(d,{modelValue:l.page_not_found_url,"onUpdate:modelValue":n[1]||(n[1]=t=>l.page_not_found_url=t),title:"2. URL kopieren und einfügen",subtype:"url","empty-value":null},{help:a(()=>n[9]||(n[9]=[s(' Hier die komplette URL (Text in der Adresszeile) aus dem geöffneten Browserfenster einfügen, wenn dort "Page Not Found" angezeigt wird. ',-1)])),_:1},8,["modelValue"]),i(g,{title:"3. Token abrufen","button-text":"Jetzt abrufen",subtype:"success",disabled:l.page_not_found_url===null,onButtonClicked:p.tesla_login},{help:a(()=>n[10]||(n[10]=[s(" Der in der eingegebenen URL enthaltene Code wird genutzt, um ein Anmeldetoken bei Tesla abzurufen. Ist dies erfolgreich, so werden die Daten des Token in den weiteren Feldern automatisch eingegeben. ",-1)])),_:1},8,["disabled","onButtonClicked"]),n[13]||(n[13]=v("hr",null,null,-1)),i(d,{title:"Access Token",pattern:"^(ey).*",required:"","model-value":e.vehicle.configuration.token?e.vehicle.configuration.token.access_token:"","onUpdate:modelValue":n[2]||(n[2]=t=>e.updateConfiguration(t,"configuration.token.access_token"))},null,8,["model-value"]),i(d,{title:"Refresh Token",pattern:"^(ey).*",required:"","model-value":e.vehicle.configuration.token?e.vehicle.configuration.token.refresh_token:"","onUpdate:modelValue":n[3]||(n[3]=t=>e.updateConfiguration(t,"configuration.token.refresh_token"))},null,8,["model-value"]),i(u,{title:"Erstellt um",required:"","model-value":e.vehicle.configuration.token?e.vehicle.configuration.token.created_at:0,"onUpdate:modelValue":n[4]||(n[4]=t=>e.updateConfiguration(t,"configuration.token.created_at"))},{help:a(()=>n[11]||(n[11]=[s(" Unix Timestamp des Zeitpunktes, an dem das Token erzeugt wurde. ",-1)])),_:1},8,["model-value"]),i(u,{title:"Ungültig in",unit:"s",required:"","model-value":e.vehicle.configuration.token?e.vehicle.configuration.token.expires_in:0,"onUpdate:modelValue":n[5]||(n[5]=t=>e.updateConfiguration(t,"configuration.token.expires_in"))},{help:a(()=>n[12]||(n[12]=[s(" Zeitspanne in Sekunden, nach der das Token ungültig wird. ",-1)])),_:1},8,["model-value"])])}const F=h(T,[["render",U],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/tesla/vehicle.vue"]]);export{F as default}; diff --git a/web/settings/assets/vehicle-f8c7286d.js b/web/settings/assets/vehicle-0d5a824a.js similarity index 76% rename from web/settings/assets/vehicle-f8c7286d.js rename to web/settings/assets/vehicle-0d5a824a.js index 755abce8f5..bc3bbdcfd3 100644 --- a/web/settings/assets/vehicle-f8c7286d.js +++ b/web/settings/assets/vehicle-0d5a824a.js @@ -1 +1 @@ -import{V as u}from"./VehicleConfig-28b52371.js";import{_ as p,u as a,l as d,m,G as o,E as i,B as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const v={name:"VehicleSocLeaf",mixins:[u]},f={class:"vehicle-soc-leaf"};function g(t,e,c,b,w,N){const s=a("openwb-base-text-input"),l=a("openwb-base-select-input");return d(),m("div",f,[o(s,{title:"Benutzername",required:"",subtype:"user","model-value":t.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateConfiguration(n,"configuration.user_id"))},{help:i(()=>e[3]||(e[3]=[r(" Der Benutzername für die Anmeldung an den Nissan-Servern. ",-1)])),_:1},8,["model-value"]),o(s,{title:"Kennwort",required:"",subtype:"password","model-value":t.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>t.updateConfiguration(n,"configuration.password"))},{help:i(()=>e[4]||(e[4]=[r(" Das Passwort für die Anmeldung an den Nissan-Servern. ",-1)])),_:1},8,["model-value"]),o(l,{title:"Region",required:"","not-selected":"Bitte auswählen",options:[{value:"NE",text:"Europa (getestet)"},{value:"NNA",text:"USA (nicht getestet)"},{value:"NCI",text:"Kanada (nicht getestet)"},{value:"NMA",text:"Australien (nicht getestet)"},{value:"NML",text:"Japan (nicht getestet)"}],"model-value":t.vehicle.configuration.region,"onUpdate:modelValue":e[2]||(e[2]=n=>t.updateConfiguration(n,"configuration.region"))},{help:i(()=>e[5]||(e[5]=[r(" Die Region, in der das Fahrzeug betrieben wird. ",-1)])),_:1},8,["model-value"])])}const $=p(v,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/leaf/vehicle.vue"]]);export{$ as default}; +import{V as u}from"./VehicleConfig-44d8bbb2.js";import{_ as p,u as a,l as d,m,G as o,E as i,B as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const v={name:"VehicleSocLeaf",mixins:[u]},f={class:"vehicle-soc-leaf"};function g(t,e,c,b,w,N){const s=a("openwb-base-text-input"),l=a("openwb-base-select-input");return d(),m("div",f,[o(s,{title:"Benutzername",required:"",subtype:"user","model-value":t.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateConfiguration(n,"configuration.user_id"))},{help:i(()=>e[3]||(e[3]=[r(" Der Benutzername für die Anmeldung an den Nissan-Servern. ",-1)])),_:1},8,["model-value"]),o(s,{title:"Kennwort",required:"",subtype:"password","model-value":t.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>t.updateConfiguration(n,"configuration.password"))},{help:i(()=>e[4]||(e[4]=[r(" Das Passwort für die Anmeldung an den Nissan-Servern. ",-1)])),_:1},8,["model-value"]),o(l,{title:"Region",required:"","not-selected":"Bitte auswählen",options:[{value:"NE",text:"Europa (getestet)"},{value:"NNA",text:"USA (nicht getestet)"},{value:"NCI",text:"Kanada (nicht getestet)"},{value:"NMA",text:"Australien (nicht getestet)"},{value:"NML",text:"Japan (nicht getestet)"}],"model-value":t.vehicle.configuration.region,"onUpdate:modelValue":e[2]||(e[2]=n=>t.updateConfiguration(n,"configuration.region"))},{help:i(()=>e[5]||(e[5]=[r(" Die Region, in der das Fahrzeug betrieben wird. ",-1)])),_:1},8,["model-value"])])}const $=p(v,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/leaf/vehicle.vue"]]);export{$ as default}; diff --git a/web/settings/assets/vehicle-b61bf4e9.js b/web/settings/assets/vehicle-10e7f333.js similarity index 76% rename from web/settings/assets/vehicle-b61bf4e9.js rename to web/settings/assets/vehicle-10e7f333.js index c80bcf9c2a..1dba393532 100644 --- a/web/settings/assets/vehicle-b61bf4e9.js +++ b/web/settings/assets/vehicle-10e7f333.js @@ -1 +1 @@ -import{V as l}from"./VehicleConfig-28b52371.js";import{_ as u,u as a,l as p,m,G as i,E as r,B as t,A as f}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const v={name:"VehicleSocVwid",mixins:[l]},g={class:"vehicle-soc-skoda"};function b(o,e,w,k,V,_){const d=a("openwb-base-alert"),s=a("openwb-base-text-input");return p(),m("div",g,[i(d,{subtype:"info"},{default:r(()=>e[3]||(e[3]=[t(" Beschreibung der Konfiguration und weitere Hinweise im Wiki: ",-1),f("a",{href:"https://github.com/openWB/core/wiki/SoC-Skoda",target:"_blank",rel:"noopener noreferrer"},"Wiki für SoC-Modul Skoda",-1)])),_:1,__:[3]}),i(s,{title:"Benutzername",required:"",subtype:"user","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.user_id"))},{help:r(()=>e[4]||(e[4]=[t(" Der Benutzername(Email-Adresse) für die Anmeldung an den Skoda-Servern. ",-1)])),_:1},8,["model-value"]),i(s,{title:"Kennwort",required:"",subtype:"password","model-value":o.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},{help:r(()=>e[5]||(e[5]=[t(" Das Passwort für die Anmeldung an den Skoda-Servern. ",-1)])),_:1},8,["model-value"]),i(s,{title:"VIN",required:"","model-value":o.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.vin"))},{help:r(()=>e[6]||(e[6]=[t(" Die Fahrgestellnummer des Fahrzeugs. ",-1)])),_:1},8,["model-value"])])}const x=u(v,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/skoda/vehicle.vue"]]);export{x as default}; +import{V as l}from"./VehicleConfig-44d8bbb2.js";import{_ as u,u as a,l as p,m,G as i,E as r,B as t,A as f}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const v={name:"VehicleSocVwid",mixins:[l]},g={class:"vehicle-soc-skoda"};function b(o,e,w,k,V,_){const d=a("openwb-base-alert"),s=a("openwb-base-text-input");return p(),m("div",g,[i(d,{subtype:"info"},{default:r(()=>e[3]||(e[3]=[t(" Beschreibung der Konfiguration und weitere Hinweise im Wiki: ",-1),f("a",{href:"https://github.com/openWB/core/wiki/SoC-Skoda",target:"_blank",rel:"noopener noreferrer"},"Wiki für SoC-Modul Skoda",-1)])),_:1,__:[3]}),i(s,{title:"Benutzername",required:"",subtype:"user","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.user_id"))},{help:r(()=>e[4]||(e[4]=[t(" Der Benutzername(Email-Adresse) für die Anmeldung an den Skoda-Servern. ",-1)])),_:1},8,["model-value"]),i(s,{title:"Kennwort",required:"",subtype:"password","model-value":o.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},{help:r(()=>e[5]||(e[5]=[t(" Das Passwort für die Anmeldung an den Skoda-Servern. ",-1)])),_:1},8,["model-value"]),i(s,{title:"VIN",required:"","model-value":o.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.vin"))},{help:r(()=>e[6]||(e[6]=[t(" Die Fahrgestellnummer des Fahrzeugs. ",-1)])),_:1},8,["model-value"])])}const x=u(v,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/skoda/vehicle.vue"]]);export{x as default}; diff --git a/web/settings/assets/vehicle-d4a0797c.js b/web/settings/assets/vehicle-1814a218.js similarity index 81% rename from web/settings/assets/vehicle-d4a0797c.js rename to web/settings/assets/vehicle-1814a218.js index ce00784d9f..9afc347f20 100644 --- a/web/settings/assets/vehicle-d4a0797c.js +++ b/web/settings/assets/vehicle-1814a218.js @@ -1 +1 @@ -import{V as p}from"./VehicleConfig-28b52371.js";import{_ as m,u as l,l as f,m as b,G as i,E as r,B as t,A as a}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const g={name:"VehicleSocVwid",mixins:[p]},v={class:"vehicle-soc-vwid"};function w(n,e,V,c,_,B){const s=l("openwb-base-alert"),u=l("openwb-base-text-input"),d=l("openwb-base-button-group-input");return f(),b("div",v,[i(s,{subtype:"info"},{default:r(()=>e[4]||(e[4]=[t(" Beschreibung der Konfiguration und weitere Hinweise im Wiki: ",-1),a("a",{href:"https://github.com/openWB/core/wiki/SoC-VWId",target:"_blank",rel:"noopener noreferrer"},"Wiki für SoC-Modul VWId",-1)])),_:1,__:[4]}),i(u,{title:"Benutzername",required:"",subtype:"user","model-value":n.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.user_id"))},{help:r(()=>e[5]||(e[5]=[t(" Der Benutzername(Email-Adresse) für die Anmeldung an den VW-Servern. ",-1)])),_:1},8,["model-value"]),i(u,{title:"Kennwort",required:"",subtype:"password","model-value":n.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.password"))},{help:r(()=>e[6]||(e[6]=[t(" Das Passwort für die Anmeldung an den VW-Servern. ",-1)])),_:1},8,["model-value"]),i(u,{title:"VIN",required:"","model-value":n.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.vin"))},{help:r(()=>e[7]||(e[7]=[t(" Die Fahrgestellnummer des Fahrzeugs. ",-1)])),_:1},8,["model-value"]),i(d,{title:"SoC während der Ladung berechnen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.vehicle.configuration.calculate_soc,"onUpdate:modelValue":e[3]||(e[3]=o=>n.updateConfiguration(o,"configuration.calculate_soc"))},{help:r(()=>e[8]||(e[8]=[t(" Berechnet den Ladestand (SoC) während der Ladung. ",-1),a("br",null,null,-1),t(" Die Berechnung erfolgt über die Ladeleistung und die Ladedauer. ",-1),a("br",null,null,-1)])),_:1},8,["model-value"])])}const $=m(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/vwid/vehicle.vue"]]);export{$ as default}; +import{V as p}from"./VehicleConfig-44d8bbb2.js";import{_ as m,u as l,l as f,m as b,G as i,E as r,B as t,A as a}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const g={name:"VehicleSocVwid",mixins:[p]},v={class:"vehicle-soc-vwid"};function w(n,e,V,c,_,B){const s=l("openwb-base-alert"),u=l("openwb-base-text-input"),d=l("openwb-base-button-group-input");return f(),b("div",v,[i(s,{subtype:"info"},{default:r(()=>e[4]||(e[4]=[t(" Beschreibung der Konfiguration und weitere Hinweise im Wiki: ",-1),a("a",{href:"https://github.com/openWB/core/wiki/SoC-VWId",target:"_blank",rel:"noopener noreferrer"},"Wiki für SoC-Modul VWId",-1)])),_:1,__:[4]}),i(u,{title:"Benutzername",required:"",subtype:"user","model-value":n.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.user_id"))},{help:r(()=>e[5]||(e[5]=[t(" Der Benutzername(Email-Adresse) für die Anmeldung an den VW-Servern. ",-1)])),_:1},8,["model-value"]),i(u,{title:"Kennwort",required:"",subtype:"password","model-value":n.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.password"))},{help:r(()=>e[6]||(e[6]=[t(" Das Passwort für die Anmeldung an den VW-Servern. ",-1)])),_:1},8,["model-value"]),i(u,{title:"VIN",required:"","model-value":n.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.vin"))},{help:r(()=>e[7]||(e[7]=[t(" Die Fahrgestellnummer des Fahrzeugs. ",-1)])),_:1},8,["model-value"]),i(d,{title:"SoC während der Ladung berechnen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.vehicle.configuration.calculate_soc,"onUpdate:modelValue":e[3]||(e[3]=o=>n.updateConfiguration(o,"configuration.calculate_soc"))},{help:r(()=>e[8]||(e[8]=[t(" Berechnet den Ladestand (SoC) während der Ladung. ",-1),a("br",null,null,-1),t(" Die Berechnung erfolgt über die Ladeleistung und die Ladedauer. ",-1),a("br",null,null,-1)])),_:1},8,["model-value"])])}const $=m(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/vwid/vehicle.vue"]]);export{$ as default}; diff --git a/web/settings/assets/vehicle-168e43cd.js b/web/settings/assets/vehicle-3527acb4.js similarity index 60% rename from web/settings/assets/vehicle-168e43cd.js rename to web/settings/assets/vehicle-3527acb4.js index 37f4c20ed0..c0f55afac3 100644 --- a/web/settings/assets/vehicle-168e43cd.js +++ b/web/settings/assets/vehicle-3527acb4.js @@ -1 +1 @@ -import{V as o}from"./VehicleConfig-28b52371.js";import{_ as i,u as r,l as s,m as a,G as c,E as p,B as n,A as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const m={name:"VehicleSocPSA",mixins:[o]},d={class:"vehicle-soc-psa"};function u(_,e,f,h,b,g){const t=r("openwb-base-alert");return s(),a("div",d,[c(t,{subtype:"danger"},{default:p(()=>e[0]||(e[0]=[n(" Diese Modul ist seit Änderungen der Schnittstellen durch PSA nicht mehr funktionsfähig und wird in einer zukünftigen Version entfernt. Bitte auf einen anderen Anbieter wechseln, z.B. Tronity.",-1),l("br",null,null,-1),n(" Bei vorhandener PSA-Integration in Heimautomation kann der SoC ggf. auch per MQTT übergeben werden. ",-1)])),_:1,__:[0]})])}const $=i(m,[["render",u],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/psa/vehicle.vue"]]);export{$ as default}; +import{V as o}from"./VehicleConfig-44d8bbb2.js";import{_ as i,u as r,l as s,m as a,G as c,E as p,B as n,A as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const m={name:"VehicleSocPSA",mixins:[o]},d={class:"vehicle-soc-psa"};function u(_,e,f,h,b,g){const t=r("openwb-base-alert");return s(),a("div",d,[c(t,{subtype:"danger"},{default:p(()=>e[0]||(e[0]=[n(" Diese Modul ist seit Änderungen der Schnittstellen durch PSA nicht mehr funktionsfähig und wird in einer zukünftigen Version entfernt. Bitte auf einen anderen Anbieter wechseln, z.B. Tronity.",-1),l("br",null,null,-1),n(" Bei vorhandener PSA-Integration in Heimautomation kann der SoC ggf. auch per MQTT übergeben werden. ",-1)])),_:1,__:[0]})])}const $=i(m,[["render",u],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/psa/vehicle.vue"]]);export{$ as default}; diff --git a/web/settings/assets/vehicle-a8c00d63.js b/web/settings/assets/vehicle-355260c2.js similarity index 80% rename from web/settings/assets/vehicle-a8c00d63.js rename to web/settings/assets/vehicle-355260c2.js index b2c2e9ce9a..99733ca563 100644 --- a/web/settings/assets/vehicle-a8c00d63.js +++ b/web/settings/assets/vehicle-355260c2.js @@ -1 +1 @@ -import{V as l}from"./VehicleConfig-28b52371.js";import{_ as p,u as a,l as m,m as f,G as r,E as t,B as i}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const g={name:"VehicleSocPSACC",mixins:[l]},v={class:"vehicle-soc-psacc"};function c(n,e,b,_,C,h){const d=a("openwb-base-alert"),s=a("openwb-base-text-input"),u=a("openwb-base-number-input");return m(),f("div",v,[r(d,{subtype:"info"},{default:t(()=>e[3]||(e[3]=[i(' Der PSA Car Controller muss auf einem eigenen Host installiert werden, mit Zugangsdaten konfiguriert werden und dauerhaft laufen. Die openWB ruft den SoC zu Beginn der Ladung vom PSA Car Controller ab. Während der Ladung liefert PSA keine Updates. Daher wird der SoC während der Ladung aus dem Zählerstand berechnet. Ausschlaggebend für die Genauigkeit dieser Berechnung sind die beiden Einstellungen "Kapazität der Batterie" und "Wirkungsgrad der Ladeelektronik" im Fahrzeug-Profil. ',-1)])),_:1,__:[3]}),r(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.vehicle.configuration.psacc_server_or_ip,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.psacc_server_or_ip"))},{help:t(()=>e[4]||(e[4]=[i("Host, auf dem der PSA Car Controller läuft.",-1)])),_:1},8,["model-value"]),r(u,{title:"Port",required:"",min:1,max:65535,"model-value":n.vehicle.configuration.psacc_port,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.psacc_port"))},{help:t(()=>e[5]||(e[5]=[i("Nummer des Ports, den der PSA Car Controller verwendet.",-1)])),_:1},8,["model-value"]),r(s,{title:"VIN",subtype:"text",required:"","model-value":n.vehicle.configuration.vehicle_vin,"onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.vehicle_vin"))},{help:t(()=>e[6]||(e[6]=[i("Fahrzeug-Identifizierungsnummer des Fahrzeugs, von dem der SoC abgefragt wird.",-1)])),_:1},8,["model-value"])])}const N=p(g,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/psacc/vehicle.vue"]]);export{N as default}; +import{V as l}from"./VehicleConfig-44d8bbb2.js";import{_ as p,u as a,l as m,m as f,G as r,E as t,B as i}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const g={name:"VehicleSocPSACC",mixins:[l]},v={class:"vehicle-soc-psacc"};function c(n,e,b,_,C,h){const d=a("openwb-base-alert"),s=a("openwb-base-text-input"),u=a("openwb-base-number-input");return m(),f("div",v,[r(d,{subtype:"info"},{default:t(()=>e[3]||(e[3]=[i(' Der PSA Car Controller muss auf einem eigenen Host installiert werden, mit Zugangsdaten konfiguriert werden und dauerhaft laufen. Die openWB ruft den SoC zu Beginn der Ladung vom PSA Car Controller ab. Während der Ladung liefert PSA keine Updates. Daher wird der SoC während der Ladung aus dem Zählerstand berechnet. Ausschlaggebend für die Genauigkeit dieser Berechnung sind die beiden Einstellungen "Kapazität der Batterie" und "Wirkungsgrad der Ladeelektronik" im Fahrzeug-Profil. ',-1)])),_:1,__:[3]}),r(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.vehicle.configuration.psacc_server_or_ip,"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateConfiguration(o,"configuration.psacc_server_or_ip"))},{help:t(()=>e[4]||(e[4]=[i("Host, auf dem der PSA Car Controller läuft.",-1)])),_:1},8,["model-value"]),r(u,{title:"Port",required:"",min:1,max:65535,"model-value":n.vehicle.configuration.psacc_port,"onUpdate:modelValue":e[1]||(e[1]=o=>n.updateConfiguration(o,"configuration.psacc_port"))},{help:t(()=>e[5]||(e[5]=[i("Nummer des Ports, den der PSA Car Controller verwendet.",-1)])),_:1},8,["model-value"]),r(s,{title:"VIN",subtype:"text",required:"","model-value":n.vehicle.configuration.vehicle_vin,"onUpdate:modelValue":e[2]||(e[2]=o=>n.updateConfiguration(o,"configuration.vehicle_vin"))},{help:t(()=>e[6]||(e[6]=[i("Fahrzeug-Identifizierungsnummer des Fahrzeugs, von dem der SoC abgefragt wird.",-1)])),_:1},8,["model-value"])])}const N=p(g,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/psacc/vehicle.vue"]]);export{N as default}; diff --git a/web/settings/assets/vehicle-f0f2cea1.js b/web/settings/assets/vehicle-42b70938.js similarity index 82% rename from web/settings/assets/vehicle-f0f2cea1.js rename to web/settings/assets/vehicle-42b70938.js index 19792c0187..c84df0134b 100644 --- a/web/settings/assets/vehicle-f0f2cea1.js +++ b/web/settings/assets/vehicle-42b70938.js @@ -1 +1 @@ -import{V as a}from"./VehicleConfig-28b52371.js";import{_ as p,u as s,l as m,m as v,G as t,E as l,B as o,A as i}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const f={name:"VehicleSocOVMS",mixins:[a]},g={class:"vehicle-soc-ovms"};function b(n,e,V,w,S,M){const d=s("openwb-base-alert"),u=s("openwb-base-text-input");return m(),v("div",g,[t(d,{subtype:"info"},{default:l(()=>e[4]||(e[4]=[o(" Beschreibung der Konfiguration und weitere Hinweise im Wiki: ",-1),i("a",{href:"https://github.com/openWB/core/wiki/SoC-OVMS",target:"_blank",rel:"noopener noreferrer"},"Wiki für SoC-Modul OVMS",-1)])),_:1,__:[4]}),t(u,{title:"Server URL",required:"","model-value":n.vehicle.configuration.server_url,"onUpdate:modelValue":e[0]||(e[0]=r=>n.updateConfiguration(r,"configuration.server_url"))},{help:l(()=>e[5]||(e[5]=[o(" Die URL (incl. Port) des API des OVMS-Servers, an dem das OVMS-Modul angemeldet ist, z.B. ",-1),i("br",null,null,-1),o(" https://ovms.dexters-web.de:6869",-1),i("br",null,null,-1),o(" oder",-1),i("br",null,null,-1),o(" https://api.openvehicles.com:6869",-1),i("br",null,null,-1),o(" oder ein custom server",-1),i("br",null,null,-1)])),_:1},8,["model-value"]),t(u,{title:"Benutzername",required:"",subtype:"user","model-value":n.vehicle.configuration.user_id,"onUpdate:modelValue":e[1]||(e[1]=r=>n.updateConfiguration(r,"configuration.user_id"))},{help:l(()=>e[6]||(e[6]=[o(" Der Benutzername für die Anmeldung am benutzen OVMS-Servers. ",-1)])),_:1},8,["model-value"]),t(u,{title:"Kennwort",required:"",subtype:"password","model-value":n.vehicle.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=r=>n.updateConfiguration(r,"configuration.password"))},{help:l(()=>e[7]||(e[7]=[o(" Das Passwort für die Anmeldung am OVMS-Server. ",-1)])),_:1},8,["model-value"]),t(u,{title:"Vehicle Id",required:"","model-value":n.vehicle.configuration.vehicleId,"onUpdate:modelValue":e[3]||(e[3]=r=>n.updateConfiguration(r,"configuration.vehicleId"))},{help:l(()=>e[8]||(e[8]=[o(" Die Id des Fahrzeugs im OVMS, auch Module Id genannt. ",-1)])),_:1},8,["model-value"])])}const q=p(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/ovms/vehicle.vue"]]);export{q as default}; +import{V as a}from"./VehicleConfig-44d8bbb2.js";import{_ as p,u as s,l as m,m as v,G as t,E as l,B as o,A as i}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const f={name:"VehicleSocOVMS",mixins:[a]},g={class:"vehicle-soc-ovms"};function b(n,e,V,w,S,M){const d=s("openwb-base-alert"),u=s("openwb-base-text-input");return m(),v("div",g,[t(d,{subtype:"info"},{default:l(()=>e[4]||(e[4]=[o(" Beschreibung der Konfiguration und weitere Hinweise im Wiki: ",-1),i("a",{href:"https://github.com/openWB/core/wiki/SoC-OVMS",target:"_blank",rel:"noopener noreferrer"},"Wiki für SoC-Modul OVMS",-1)])),_:1,__:[4]}),t(u,{title:"Server URL",required:"","model-value":n.vehicle.configuration.server_url,"onUpdate:modelValue":e[0]||(e[0]=r=>n.updateConfiguration(r,"configuration.server_url"))},{help:l(()=>e[5]||(e[5]=[o(" Die URL (incl. Port) des API des OVMS-Servers, an dem das OVMS-Modul angemeldet ist, z.B. ",-1),i("br",null,null,-1),o(" https://ovms.dexters-web.de:6869",-1),i("br",null,null,-1),o(" oder",-1),i("br",null,null,-1),o(" https://api.openvehicles.com:6869",-1),i("br",null,null,-1),o(" oder ein custom server",-1),i("br",null,null,-1)])),_:1},8,["model-value"]),t(u,{title:"Benutzername",required:"",subtype:"user","model-value":n.vehicle.configuration.user_id,"onUpdate:modelValue":e[1]||(e[1]=r=>n.updateConfiguration(r,"configuration.user_id"))},{help:l(()=>e[6]||(e[6]=[o(" Der Benutzername für die Anmeldung am benutzen OVMS-Servers. ",-1)])),_:1},8,["model-value"]),t(u,{title:"Kennwort",required:"",subtype:"password","model-value":n.vehicle.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=r=>n.updateConfiguration(r,"configuration.password"))},{help:l(()=>e[7]||(e[7]=[o(" Das Passwort für die Anmeldung am OVMS-Server. ",-1)])),_:1},8,["model-value"]),t(u,{title:"Vehicle Id",required:"","model-value":n.vehicle.configuration.vehicleId,"onUpdate:modelValue":e[3]||(e[3]=r=>n.updateConfiguration(r,"configuration.vehicleId"))},{help:l(()=>e[8]||(e[8]=[o(" Die Id des Fahrzeugs im OVMS, auch Module Id genannt. ",-1)])),_:1},8,["model-value"])])}const q=p(f,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/ovms/vehicle.vue"]]);export{q as default}; diff --git a/web/settings/assets/vehicle-3b91fe46.js b/web/settings/assets/vehicle-4c896303.js similarity index 76% rename from web/settings/assets/vehicle-3b91fe46.js rename to web/settings/assets/vehicle-4c896303.js index 0c785e3edf..af742c0bfa 100644 --- a/web/settings/assets/vehicle-3b91fe46.js +++ b/web/settings/assets/vehicle-4c896303.js @@ -1 +1 @@ -import{V as u}from"./VehicleConfig-28b52371.js";import{_ as a,u as s,l as d,m as p,G as i,E as r,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const m={name:"VehicleSocRenault",mixins:[u]},f={class:"vehicle-soc-renault"};function v(o,e,g,V,w,b){const t=s("openwb-base-text-input");return d(),p("div",f,[i(t,{title:"Benutzername",required:"",subtype:"user","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.user_id"))},{help:r(()=>e[4]||(e[4]=[l(" Der Benutzername für die Anmeldung an den Renault-Servern. ",-1)])),_:1},8,["model-value"]),i(t,{title:"Kennwort",required:"",subtype:"password","model-value":o.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},{help:r(()=>e[5]||(e[5]=[l(" Das Passwort für die Anmeldung an den Renault-Servern. ",-1)])),_:1},8,["model-value"]),i(t,{title:"Land",required:"","model-value":o.vehicle.configuration.country,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.country"))},{help:r(()=>e[6]||(e[6]=[l(" Land des Fahrzeugs, z.b. DE für Deutschland. ",-1)])),_:1},8,["model-value"]),i(t,{title:"VIN","model-value":o.vehicle.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.vin"))},{help:r(()=>e[7]||(e[7]=[l(" Die Fahrgestellnummer des Fahrzeugs falls mehrere Fahrzeuge im Account vorhanden sind. ",-1)])),_:1},8,["model-value"])])}const q=a(m,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/renault/vehicle.vue"]]);export{q as default}; +import{V as u}from"./VehicleConfig-44d8bbb2.js";import{_ as a,u as s,l as d,m as p,G as i,E as r,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const m={name:"VehicleSocRenault",mixins:[u]},f={class:"vehicle-soc-renault"};function v(o,e,g,V,w,b){const t=s("openwb-base-text-input");return d(),p("div",f,[i(t,{title:"Benutzername",required:"",subtype:"user","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.user_id"))},{help:r(()=>e[4]||(e[4]=[l(" Der Benutzername für die Anmeldung an den Renault-Servern. ",-1)])),_:1},8,["model-value"]),i(t,{title:"Kennwort",required:"",subtype:"password","model-value":o.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},{help:r(()=>e[5]||(e[5]=[l(" Das Passwort für die Anmeldung an den Renault-Servern. ",-1)])),_:1},8,["model-value"]),i(t,{title:"Land",required:"","model-value":o.vehicle.configuration.country,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.country"))},{help:r(()=>e[6]||(e[6]=[l(" Land des Fahrzeugs, z.b. DE für Deutschland. ",-1)])),_:1},8,["model-value"]),i(t,{title:"VIN","model-value":o.vehicle.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.vin"))},{help:r(()=>e[7]||(e[7]=[l(" Die Fahrgestellnummer des Fahrzeugs falls mehrere Fahrzeuge im Account vorhanden sind. ",-1)])),_:1},8,["model-value"])])}const q=a(m,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/renault/vehicle.vue"]]);export{q as default}; diff --git a/web/settings/assets/vehicle-1ca5962d.js b/web/settings/assets/vehicle-57410994.js similarity index 84% rename from web/settings/assets/vehicle-1ca5962d.js rename to web/settings/assets/vehicle-57410994.js index 8a86294648..b33004ddc2 100644 --- a/web/settings/assets/vehicle-1ca5962d.js +++ b/web/settings/assets/vehicle-57410994.js @@ -1 +1 @@ -import{V as d}from"./VehicleConfig-28b52371.js";import{_ as u,u as p,l as a,m as f,G as i,E as n,B as l,A as t,F as r}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const b={name:"VehicleSocMqtt",mixins:[d]},v={class:"vehicle-soc-mqtt"};function g(o,e,w,k,x,B){const s=p("openwb-base-copy-to-clipboard"),m=p("openwb-base-alert");return a(),f("div",v,[i(m,{subtype:"info"},{default:n(()=>[e[19]||(e[19]=l(" Die Daten werden immer dann aktualisiert, wenn das Topic veröffentlicht wird. Die Abfrageintervalle werden nicht berücksichtigt, da das Intervall vom sendenden Client festgelegt wird. ",-1)),t("ul",null,[t("li",null,[i(s,{class:"text-info",tooltip:"Topic kopieren"},{default:n(()=>[l(" openWB/set/mqtt/vehicle/"+r(o.vehicleId)+"/get/soc ",1)]),_:1}),e[0]||(e[0]=t("br",null,null,-1)),e[1]||(e[1]=l(" Fahrzeug-SoC mit Nachkommastellen (Float) oder Ganzzahl",-1)),e[2]||(e[2]=t("br",null,null,-1)),e[3]||(e[3]=l(" Beispiel: ",-1)),e[4]||(e[4]=t("span",{class:"text-info"},"89.5",-1))]),t("li",null,[i(s,{class:"text-info",tooltip:"Topic kopieren"},{default:n(()=>[l(" openWB/set/mqtt/vehicle/"+r(o.vehicleId)+"/get/soc_timestamp ",1)]),_:1}),e[5]||(e[5]=t("br",null,null,-1)),e[6]||(e[6]=l(" Zeitstempel des SoCs in s als Unix-Zeitstempel",-1)),e[7]||(e[7]=t("br",null,null,-1)),e[8]||(e[8]=l(" Diese Info ist optional. Wird kein Wert für das Topic veröffentlicht, wird bei der Abfrage automatisch der aktuelle Zeitstempel gesetzt.",-1)),e[9]||(e[9]=t("br",null,null,-1)),e[10]||(e[10]=l(" Beispiel: ",-1)),e[11]||(e[11]=t("span",{class:"text-info"},"1748339524",-1))]),t("li",null,[i(s,{class:"text-info",tooltip:"Topic kopieren"},{default:n(()=>[l(" openWB/set/mqtt/vehicle/"+r(o.vehicleId)+"/get/range ",1)]),_:1}),e[12]||(e[12]=t("br",null,null,-1)),e[13]||(e[13]=l(" Reichweite des Fahrzeugs in km mit Nachkommastellen (Float) oder Ganzzahl",-1)),e[14]||(e[14]=t("br",null,null,-1)),e[15]||(e[15]=l(" Diese Info ist optional.",-1)),e[16]||(e[16]=t("br",null,null,-1)),e[17]||(e[17]=l(" Beispiel: ",-1)),e[18]||(e[18]=t("span",{class:"text-info"},"356.5",-1))])])]),_:1,__:[19]})])}const y=u(b,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/mqtt/vehicle.vue"]]);export{y as default}; +import{V as d}from"./VehicleConfig-44d8bbb2.js";import{_ as u,u as p,l as a,m as f,G as i,E as n,B as l,A as t,F as r}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const b={name:"VehicleSocMqtt",mixins:[d]},v={class:"vehicle-soc-mqtt"};function g(o,e,w,k,x,B){const s=p("openwb-base-copy-to-clipboard"),m=p("openwb-base-alert");return a(),f("div",v,[i(m,{subtype:"info"},{default:n(()=>[e[19]||(e[19]=l(" Die Daten werden immer dann aktualisiert, wenn das Topic veröffentlicht wird. Die Abfrageintervalle werden nicht berücksichtigt, da das Intervall vom sendenden Client festgelegt wird. ",-1)),t("ul",null,[t("li",null,[i(s,{class:"text-info",tooltip:"Topic kopieren"},{default:n(()=>[l(" openWB/set/mqtt/vehicle/"+r(o.vehicleId)+"/get/soc ",1)]),_:1}),e[0]||(e[0]=t("br",null,null,-1)),e[1]||(e[1]=l(" Fahrzeug-SoC mit Nachkommastellen (Float) oder Ganzzahl",-1)),e[2]||(e[2]=t("br",null,null,-1)),e[3]||(e[3]=l(" Beispiel: ",-1)),e[4]||(e[4]=t("span",{class:"text-info"},"89.5",-1))]),t("li",null,[i(s,{class:"text-info",tooltip:"Topic kopieren"},{default:n(()=>[l(" openWB/set/mqtt/vehicle/"+r(o.vehicleId)+"/get/soc_timestamp ",1)]),_:1}),e[5]||(e[5]=t("br",null,null,-1)),e[6]||(e[6]=l(" Zeitstempel des SoCs in s als Unix-Zeitstempel",-1)),e[7]||(e[7]=t("br",null,null,-1)),e[8]||(e[8]=l(" Diese Info ist optional. Wird kein Wert für das Topic veröffentlicht, wird bei der Abfrage automatisch der aktuelle Zeitstempel gesetzt.",-1)),e[9]||(e[9]=t("br",null,null,-1)),e[10]||(e[10]=l(" Beispiel: ",-1)),e[11]||(e[11]=t("span",{class:"text-info"},"1748339524",-1))]),t("li",null,[i(s,{class:"text-info",tooltip:"Topic kopieren"},{default:n(()=>[l(" openWB/set/mqtt/vehicle/"+r(o.vehicleId)+"/get/range ",1)]),_:1}),e[12]||(e[12]=t("br",null,null,-1)),e[13]||(e[13]=l(" Reichweite des Fahrzeugs in km mit Nachkommastellen (Float) oder Ganzzahl",-1)),e[14]||(e[14]=t("br",null,null,-1)),e[15]||(e[15]=l(" Diese Info ist optional.",-1)),e[16]||(e[16]=t("br",null,null,-1)),e[17]||(e[17]=l(" Beispiel: ",-1)),e[18]||(e[18]=t("span",{class:"text-info"},"356.5",-1))])])]),_:1,__:[19]})])}const y=u(b,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/mqtt/vehicle.vue"]]);export{y as default}; diff --git a/web/settings/assets/vehicle-d2af01a7.js b/web/settings/assets/vehicle-8e08c50a.js similarity index 75% rename from web/settings/assets/vehicle-d2af01a7.js rename to web/settings/assets/vehicle-8e08c50a.js index 7af6bde848..0df26955f1 100644 --- a/web/settings/assets/vehicle-d2af01a7.js +++ b/web/settings/assets/vehicle-8e08c50a.js @@ -1 +1 @@ -import{V as u}from"./VehicleConfig-28b52371.js";import{_ as a,u as s,l as d,m as p,G as t,E as r,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const m={name:"VehicleSocKia",mixins:[u]},v={class:"vehicle-soc-kia"};function f(o,e,g,w,V,b){const i=s("openwb-base-text-input");return d(),p("div",v,[t(i,{title:"Benutzername",required:"",subtype:"user","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.user_id"))},{help:r(()=>e[4]||(e[4]=[l(" Der Benutzername für die Anmeldung an den Servern. ",-1)])),_:1},8,["model-value"]),t(i,{title:"Kennwort",required:"",subtype:"password","model-value":o.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},{help:r(()=>e[5]||(e[5]=[l(" Das Passwort für die Anmeldung an den Servern. ",-1)])),_:1},8,["model-value"]),t(i,{title:"PIN",required:"",subtype:"password","model-value":o.vehicle.configuration.pin,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.pin"))},{help:r(()=>e[6]||(e[6]=[l(" Die PIN für die Anmeldung an den Servern. ",-1)])),_:1},8,["model-value"]),t(i,{title:"VIN",required:"","model-value":o.vehicle.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.vin"))},{help:r(()=>e[7]||(e[7]=[l(" Die Fahrgestellnummer des Fahrzeugs. ",-1)])),_:1},8,["model-value"])])}const y=a(m,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/kia/vehicle.vue"]]);export{y as default}; +import{V as u}from"./VehicleConfig-44d8bbb2.js";import{_ as a,u as s,l as d,m as p,G as t,E as r,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const m={name:"VehicleSocKia",mixins:[u]},v={class:"vehicle-soc-kia"};function f(o,e,g,w,V,b){const i=s("openwb-base-text-input");return d(),p("div",v,[t(i,{title:"Benutzername",required:"",subtype:"user","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.user_id"))},{help:r(()=>e[4]||(e[4]=[l(" Der Benutzername für die Anmeldung an den Servern. ",-1)])),_:1},8,["model-value"]),t(i,{title:"Kennwort",required:"",subtype:"password","model-value":o.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},{help:r(()=>e[5]||(e[5]=[l(" Das Passwort für die Anmeldung an den Servern. ",-1)])),_:1},8,["model-value"]),t(i,{title:"PIN",required:"",subtype:"password","model-value":o.vehicle.configuration.pin,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.pin"))},{help:r(()=>e[6]||(e[6]=[l(" Die PIN für die Anmeldung an den Servern. ",-1)])),_:1},8,["model-value"]),t(i,{title:"VIN",required:"","model-value":o.vehicle.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.vin"))},{help:r(()=>e[7]||(e[7]=[l(" Die Fahrgestellnummer des Fahrzeugs. ",-1)])),_:1},8,["model-value"])])}const y=a(m,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/kia/vehicle.vue"]]);export{y as default}; diff --git a/web/settings/assets/vehicle-ceb6622c.js b/web/settings/assets/vehicle-94d80e22.js similarity index 70% rename from web/settings/assets/vehicle-ceb6622c.js rename to web/settings/assets/vehicle-94d80e22.js index 5fae6000be..9610088f1f 100644 --- a/web/settings/assets/vehicle-ceb6622c.js +++ b/web/settings/assets/vehicle-94d80e22.js @@ -1 +1 @@ -import{V as r}from"./VehicleConfig-28b52371.js";import{_ as l,u as s,l as a,m as u,G as n,E as p,B as m}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const d={name:"VehicleSocSmartHello",mixins:[r]},f={class:"vehicle-soc-smart-hello"};function v(o,e,c,g,h,V){const i=s("openwb-base-text-input");return a(),u("div",f,[n(i,{title:"Benutzername",subtype:"user",required:"","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user_id"))},null,8,["model-value"]),n(i,{title:"Kennwort",subtype:"password",required:"","model-value":o.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"]),n(i,{title:"VIN",subtype:"text","model-value":o.vehicle.configuration.VIN,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.VIN"))},{help:p(()=>e[3]||(e[3]=[m(" Fahrgestellnummer (VIN) des Fahrzeugs. Notwendig falls mehrere Fahrzeuge im Account des Herstellers vorhanden sind. ",-1)])),_:1},8,["model-value"])])}const z=l(d,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/smarthello/vehicle.vue"]]);export{z as default}; +import{V as r}from"./VehicleConfig-44d8bbb2.js";import{_ as l,u as s,l as a,m as u,G as n,E as p,B as m}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const d={name:"VehicleSocSmartHello",mixins:[r]},f={class:"vehicle-soc-smart-hello"};function v(o,e,c,g,h,V){const i=s("openwb-base-text-input");return a(),u("div",f,[n(i,{title:"Benutzername",subtype:"user",required:"","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user_id"))},null,8,["model-value"]),n(i,{title:"Kennwort",subtype:"password",required:"","model-value":o.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},null,8,["model-value"]),n(i,{title:"VIN",subtype:"text","model-value":o.vehicle.configuration.VIN,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.VIN"))},{help:p(()=>e[3]||(e[3]=[m(" Fahrgestellnummer (VIN) des Fahrzeugs. Notwendig falls mehrere Fahrzeuge im Account des Herstellers vorhanden sind. ",-1)])),_:1},8,["model-value"])])}const z=l(d,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/smarthello/vehicle.vue"]]);export{z as default}; diff --git a/web/settings/assets/vehicle-85376722.js b/web/settings/assets/vehicle-c53d1445.js similarity index 86% rename from web/settings/assets/vehicle-85376722.js rename to web/settings/assets/vehicle-c53d1445.js index 8fe248c958..37fc71b7ce 100644 --- a/web/settings/assets/vehicle-85376722.js +++ b/web/settings/assets/vehicle-c53d1445.js @@ -1 +1 @@ -import{V as s}from"./VehicleConfig-28b52371.js";import{_ as p,u,l as d,m as v,G as a,E as n,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const m={name:"VehicleSocEVCC",mixins:[s]},g={class:"vehicle-soc-evcc"};function x(t,e,f,V,w,b){const i=u("openwb-base-text-input"),r=u("openwb-base-select-input");return d(),v("div",g,[a(i,{title:"EVCC Sponsor Token",subtype:"password",required:"","model-value":t.vehicle.configuration.sponsor_token,"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.sponsor_token"))},{help:n(()=>e[5]||(e[5]=[l(" EVCC Sponsor Token angeben, dies ist notwendig um SoC über EVCC abrufen zu können. https://sponsor.evcc.io/ ",-1)])),_:1},8,["model-value"]),a(i,{title:"Benutzername",subtype:"user",required:"","model-value":t.vehicle.configuration.user_id,"onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.user_id"))},{help:n(()=>e[6]||(e[6]=[l(" Benutzername beim Fahrzeughersteller. ",-1)])),_:1},8,["model-value"]),a(i,{title:"Kennwort",subtype:"password",required:"","model-value":t.vehicle.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=o=>t.updateConfiguration(o,"configuration.password"))},{help:n(()=>e[7]||(e[7]=[l(" Kennwort beim Fahrzeughersteller. ",-1)])),_:1},8,["model-value"]),a(r,{title:"Marke",required:"","not-selected":"Bitte auswählen",options:[{value:"aiways",text:"Aiways"},{value:"audi",text:"Audi"},{value:"etron",text:"Audi e-tron"},{value:"bmw",text:"BMW"},{value:"dacia",text:"Dacia"},{value:"fiat",text:"Fiat"},{value:"ford",text:"Ford"},{value:"hyundai",text:"Hyundai"},{value:"jaguar",text:"Jaguar"},{value:"kia",text:"Kia"},{value:"landrover",text:"Landrover"},{value:"mg",text:"Mg"},{value:"mini",text:"Mini"},{value:"nissan",text:"Nissan"},{value:"carwings",text:"Nissan (Leaf pre 2019)"},{value:"ovms",text:"OVMS"},{value:"polestar",text:"Polestar"},{value:"porsche",text:"Porsche"},{value:"renault",text:"Renault"},{value:"seat",text:"Seat"},{value:"cupra",text:"Seat Cupra"},{value:"skoda",text:"Škoda"},{value:"enyaq",text:"Škoda Enyaq"},{value:"smart",text:"Smart"},{value:"smart-hello",text:"Smart-Hello"},{value:"template",text:"Template"},{value:"volvo",text:"Volvo"},{value:"volvo-connected",text:"Volvo-Connected"},{value:"vw",text:"VW"},{value:"id",text:"VW ID"}],"model-value":t.vehicle.configuration.vehicle_type,"onUpdate:modelValue":e[3]||(e[3]=o=>t.updateConfiguration(o,"configuration.vehicle_type"))},{help:n(()=>e[8]||(e[8]=[l(" Marke aus des Fahrzeugs. ",-1)])),_:1},8,["model-value"]),a(i,{title:"VIN",subtype:"text","model-value":t.vehicle.configuration.VIN,"onUpdate:modelValue":e[4]||(e[4]=o=>t.updateConfiguration(o,"configuration.VIN"))},{help:n(()=>e[9]||(e[9]=[l(" Fahrgestellnummer (VIN) des Fahrzeugs. Notwendig falls mehrere Fahrzeuge im Account des Herstellers vorhanden sind. ",-1)])),_:1},8,["model-value"])])}const E=p(m,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/evcc/vehicle.vue"]]);export{E as default}; +import{V as s}from"./VehicleConfig-44d8bbb2.js";import{_ as p,u,l as d,m as v,G as a,E as n,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const m={name:"VehicleSocEVCC",mixins:[s]},g={class:"vehicle-soc-evcc"};function x(t,e,f,V,w,b){const i=u("openwb-base-text-input"),r=u("openwb-base-select-input");return d(),v("div",g,[a(i,{title:"EVCC Sponsor Token",subtype:"password",required:"","model-value":t.vehicle.configuration.sponsor_token,"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.sponsor_token"))},{help:n(()=>e[5]||(e[5]=[l(" EVCC Sponsor Token angeben, dies ist notwendig um SoC über EVCC abrufen zu können. https://sponsor.evcc.io/ ",-1)])),_:1},8,["model-value"]),a(i,{title:"Benutzername",subtype:"user",required:"","model-value":t.vehicle.configuration.user_id,"onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.user_id"))},{help:n(()=>e[6]||(e[6]=[l(" Benutzername beim Fahrzeughersteller. ",-1)])),_:1},8,["model-value"]),a(i,{title:"Kennwort",subtype:"password",required:"","model-value":t.vehicle.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=o=>t.updateConfiguration(o,"configuration.password"))},{help:n(()=>e[7]||(e[7]=[l(" Kennwort beim Fahrzeughersteller. ",-1)])),_:1},8,["model-value"]),a(r,{title:"Marke",required:"","not-selected":"Bitte auswählen",options:[{value:"aiways",text:"Aiways"},{value:"audi",text:"Audi"},{value:"etron",text:"Audi e-tron"},{value:"bmw",text:"BMW"},{value:"dacia",text:"Dacia"},{value:"fiat",text:"Fiat"},{value:"ford",text:"Ford"},{value:"hyundai",text:"Hyundai"},{value:"jaguar",text:"Jaguar"},{value:"kia",text:"Kia"},{value:"landrover",text:"Landrover"},{value:"mg",text:"Mg"},{value:"mini",text:"Mini"},{value:"nissan",text:"Nissan"},{value:"carwings",text:"Nissan (Leaf pre 2019)"},{value:"ovms",text:"OVMS"},{value:"polestar",text:"Polestar"},{value:"porsche",text:"Porsche"},{value:"renault",text:"Renault"},{value:"seat",text:"Seat"},{value:"cupra",text:"Seat Cupra"},{value:"skoda",text:"Škoda"},{value:"enyaq",text:"Škoda Enyaq"},{value:"smart",text:"Smart"},{value:"smart-hello",text:"Smart-Hello"},{value:"template",text:"Template"},{value:"volvo",text:"Volvo"},{value:"volvo-connected",text:"Volvo-Connected"},{value:"vw",text:"VW"},{value:"id",text:"VW ID"}],"model-value":t.vehicle.configuration.vehicle_type,"onUpdate:modelValue":e[3]||(e[3]=o=>t.updateConfiguration(o,"configuration.vehicle_type"))},{help:n(()=>e[8]||(e[8]=[l(" Marke aus des Fahrzeugs. ",-1)])),_:1},8,["model-value"]),a(i,{title:"VIN",subtype:"text","model-value":t.vehicle.configuration.VIN,"onUpdate:modelValue":e[4]||(e[4]=o=>t.updateConfiguration(o,"configuration.VIN"))},{help:n(()=>e[9]||(e[9]=[l(" Fahrgestellnummer (VIN) des Fahrzeugs. Notwendig falls mehrere Fahrzeuge im Account des Herstellers vorhanden sind. ",-1)])),_:1},8,["model-value"])])}const E=p(m,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/evcc/vehicle.vue"]]);export{E as default}; diff --git a/web/settings/assets/vehicle-4d40b28f.js b/web/settings/assets/vehicle-cb7088f9.js similarity index 91% rename from web/settings/assets/vehicle-4d40b28f.js rename to web/settings/assets/vehicle-cb7088f9.js index 61f7b761d1..c1ef49c0f3 100644 --- a/web/settings/assets/vehicle-4d40b28f.js +++ b/web/settings/assets/vehicle-cb7088f9.js @@ -1 +1 @@ -import{V as p}from"./VehicleConfig-28b52371.js";import{_ as g,u as s,l as b,m as f,G as l,E as r,B as t,A as n}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const w={name:"VehicleSocBmwBimmerConnected",mixins:[p]},C={class:"vehicle-soc-bmwbc"},v={href:"https://bimmer-connected.readthedocs.io/en/latest/captcha/rest_of_world.html",target:"_blank"};function k(o,e,B,S,D,z){const a=s("openwb-base-alert"),u=s("openwb-base-text-input"),d=s("font-awesome-icon"),m=s("openwb-base-button-group-input");return b(),f("div",C,[l(a,{subtype:"info"},{default:r(()=>e[5]||(e[5]=[t(" Beschreibung der Konfiguration und weitere Hinweise im Wiki: ",-1),n("a",{href:"https://github.com/openWB/core/wiki/SoC-BMW-Mini",target:"_blank",rel:"noopener noreferrer"},"Wiki für SoC-Modul BMW & Mini",-1)])),_:1,__:[5]}),l(u,{title:"Benutzername",required:"",subtype:"user","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=i=>o.updateConfiguration(i,"configuration.user_id"))},{help:r(()=>e[6]||(e[6]=[t(" Der Benutzername für die Anmeldung an den BMW-Servern. ",-1)])),_:1},8,["model-value"]),l(u,{title:"Kennwort",required:"",subtype:"password","model-value":o.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=i=>o.updateConfiguration(i,"configuration.password"))},{help:r(()=>e[7]||(e[7]=[t(" Das Passwort für die Anmeldung an den BMW-Servern. ",-1)])),_:1},8,["model-value"]),l(u,{title:"VIN",required:"","model-value":o.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=i=>o.updateConfiguration(i,"configuration.vin"))},{help:r(()=>e[8]||(e[8]=[t(" Die Fahrgestellnummer des Fahrzeugs. ",-1)])),_:1},8,["model-value"]),l(u,{title:"Captcha-Token",required:"","model-value":o.vehicle.configuration.captcha_token,"onUpdate:modelValue":e[3]||(e[3]=i=>o.updateConfiguration(i,"configuration.captcha_token"))},{help:r(()=>[e[18]||(e[18]=t(" Zum erstmaligen Login z.B. nach einem Neustart oder wenn die Abfrage nicht mehr funktioniert ist ein ",-1)),e[19]||(e[19]=n("b",null,"aktuelles Captcha-Token",-1)),e[20]||(e[20]=t(" notwendig.",-1)),e[21]||(e[21]=n("br",null,null,-1)),e[22]||(e[22]=t(" Falls mehr als ein Fahrzeug in dem CD-Account vorhanden ist, sollte nur das mit der niedrigsten openWB id mit einem gültigen Captcha-Token konfiguriert werden (PRIMARY).",-1)),e[23]||(e[23]=n("br",null,null,-1)),e[24]||(e[24]=t(" Das SoC-Modul des Fahrzeuges mit ",-1)),e[25]||(e[25]=n("b",null,"gültigem",-1)),e[26]||(e[26]=t(" Captcha-Token führt die SoC-Abfragen für alle Fahrzeuge im CD-Account aus.",-1)),e[27]||(e[27]=n("br",null,null,-1)),e[28]||(e[28]=t(" Die SECONDARY SoC-Module holen sich ihre Daten vom PRIMARY.",-1)),e[29]||(e[29]=n("br",null,null,-1)),e[30]||(e[30]=t(' Bei den weiteren Fahrzeugen ist daher als Captcha-Token der Wert "SECONDARY" (ohne Quotes) einzutragen.',-1)),e[31]||(e[31]=n("br",null,null,-1)),e[32]||(e[32]=t(" Um das Captcha-Token zu bekommen bitte folgende Schritte durchführen: ",-1)),n("ol",null,[n("li",null,[e[10]||(e[10]=t(" In einem neuen Browser-Tab auf diese Seite gehen:",-1)),e[11]||(e[11]=n("br",null,null,-1)),n("a",v,[e[9]||(e[9]=t(" Captcha Lösen ",-1)),l(d,{icon:["fas","external-link-alt"]})]),e[12]||(e[12]=t(" (https://bimmer-connected.readthedocs.io/en/latest/captcha/rest_of_world.html) ",-1))]),e[13]||(e[13]=n("li",null,' Dort falls angefragt das Captcha lösen und/oder "Ich bin ein Mensch" und dann Submit anklicken. Als Ergebnis wird ein sehr langer String angezeigt. ',-1)),e[14]||(e[14]=n("li",null,[t("Diesen String komplett mit "),n("b",null,"Copy&Paste"),t(" in das Feld Captcha-Token eingeben.")],-1)),e[15]||(e[15]=n("li",null,"Die Konfiguration speichern.",-1)),e[16]||(e[16]=n("li",null,[n("b",null,"Sofort einmal im Desktop manuell (Kreispfeil) den SoC für das Fahrzeug abrufen.")],-1)),e[17]||(e[17]=n("li",null,[n("b",null,"Fertig."),t(" Ab jetzt wird bis zum nächsten Neustart das sog. Refresh-Token verwendet.")],-1))]),e[33]||(e[33]=n("b",null,"Achtung: Das Captcha-Token kann nur einmal verwendet werden und gilt nur kurze Zeit!",-1))]),_:1},8,["model-value"]),l(m,{title:"SoC während der Ladung berechnen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":o.vehicle.configuration.calculate_soc,"onUpdate:modelValue":e[4]||(e[4]=i=>o.updateConfiguration(i,"configuration.calculate_soc"))},{help:r(()=>e[34]||(e[34]=[t(" Berechnet den Ladestand (SoC) während der Ladung. ",-1),n("br",null,null,-1),t(" Die Berechnung erfolgt über die Ladeleistung und die Ladedauer. ",-1),n("br",null,null,-1)])),_:1},8,["model-value"])])}const U=g(w,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/bmwbc/vehicle.vue"]]);export{U as default}; +import{V as p}from"./VehicleConfig-44d8bbb2.js";import{_ as g,u as s,l as b,m as f,G as l,E as r,B as t,A as n}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const w={name:"VehicleSocBmwBimmerConnected",mixins:[p]},C={class:"vehicle-soc-bmwbc"},v={href:"https://bimmer-connected.readthedocs.io/en/latest/captcha/rest_of_world.html",target:"_blank"};function k(o,e,B,S,D,z){const a=s("openwb-base-alert"),u=s("openwb-base-text-input"),d=s("font-awesome-icon"),m=s("openwb-base-button-group-input");return b(),f("div",C,[l(a,{subtype:"info"},{default:r(()=>e[5]||(e[5]=[t(" Beschreibung der Konfiguration und weitere Hinweise im Wiki: ",-1),n("a",{href:"https://github.com/openWB/core/wiki/SoC-BMW-Mini",target:"_blank",rel:"noopener noreferrer"},"Wiki für SoC-Modul BMW & Mini",-1)])),_:1,__:[5]}),l(u,{title:"Benutzername",required:"",subtype:"user","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=i=>o.updateConfiguration(i,"configuration.user_id"))},{help:r(()=>e[6]||(e[6]=[t(" Der Benutzername für die Anmeldung an den BMW-Servern. ",-1)])),_:1},8,["model-value"]),l(u,{title:"Kennwort",required:"",subtype:"password","model-value":o.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=i=>o.updateConfiguration(i,"configuration.password"))},{help:r(()=>e[7]||(e[7]=[t(" Das Passwort für die Anmeldung an den BMW-Servern. ",-1)])),_:1},8,["model-value"]),l(u,{title:"VIN",required:"","model-value":o.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=i=>o.updateConfiguration(i,"configuration.vin"))},{help:r(()=>e[8]||(e[8]=[t(" Die Fahrgestellnummer des Fahrzeugs. ",-1)])),_:1},8,["model-value"]),l(u,{title:"Captcha-Token",required:"","model-value":o.vehicle.configuration.captcha_token,"onUpdate:modelValue":e[3]||(e[3]=i=>o.updateConfiguration(i,"configuration.captcha_token"))},{help:r(()=>[e[18]||(e[18]=t(" Zum erstmaligen Login z.B. nach einem Neustart oder wenn die Abfrage nicht mehr funktioniert ist ein ",-1)),e[19]||(e[19]=n("b",null,"aktuelles Captcha-Token",-1)),e[20]||(e[20]=t(" notwendig.",-1)),e[21]||(e[21]=n("br",null,null,-1)),e[22]||(e[22]=t(" Falls mehr als ein Fahrzeug in dem CD-Account vorhanden ist, sollte nur das mit der niedrigsten openWB id mit einem gültigen Captcha-Token konfiguriert werden (PRIMARY).",-1)),e[23]||(e[23]=n("br",null,null,-1)),e[24]||(e[24]=t(" Das SoC-Modul des Fahrzeuges mit ",-1)),e[25]||(e[25]=n("b",null,"gültigem",-1)),e[26]||(e[26]=t(" Captcha-Token führt die SoC-Abfragen für alle Fahrzeuge im CD-Account aus.",-1)),e[27]||(e[27]=n("br",null,null,-1)),e[28]||(e[28]=t(" Die SECONDARY SoC-Module holen sich ihre Daten vom PRIMARY.",-1)),e[29]||(e[29]=n("br",null,null,-1)),e[30]||(e[30]=t(' Bei den weiteren Fahrzeugen ist daher als Captcha-Token der Wert "SECONDARY" (ohne Quotes) einzutragen.',-1)),e[31]||(e[31]=n("br",null,null,-1)),e[32]||(e[32]=t(" Um das Captcha-Token zu bekommen bitte folgende Schritte durchführen: ",-1)),n("ol",null,[n("li",null,[e[10]||(e[10]=t(" In einem neuen Browser-Tab auf diese Seite gehen:",-1)),e[11]||(e[11]=n("br",null,null,-1)),n("a",v,[e[9]||(e[9]=t(" Captcha Lösen ",-1)),l(d,{icon:["fas","external-link-alt"]})]),e[12]||(e[12]=t(" (https://bimmer-connected.readthedocs.io/en/latest/captcha/rest_of_world.html) ",-1))]),e[13]||(e[13]=n("li",null,' Dort falls angefragt das Captcha lösen und/oder "Ich bin ein Mensch" und dann Submit anklicken. Als Ergebnis wird ein sehr langer String angezeigt. ',-1)),e[14]||(e[14]=n("li",null,[t("Diesen String komplett mit "),n("b",null,"Copy&Paste"),t(" in das Feld Captcha-Token eingeben.")],-1)),e[15]||(e[15]=n("li",null,"Die Konfiguration speichern.",-1)),e[16]||(e[16]=n("li",null,[n("b",null,"Sofort einmal im Desktop manuell (Kreispfeil) den SoC für das Fahrzeug abrufen.")],-1)),e[17]||(e[17]=n("li",null,[n("b",null,"Fertig."),t(" Ab jetzt wird bis zum nächsten Neustart das sog. Refresh-Token verwendet.")],-1))]),e[33]||(e[33]=n("b",null,"Achtung: Das Captcha-Token kann nur einmal verwendet werden und gilt nur kurze Zeit!",-1))]),_:1},8,["model-value"]),l(m,{title:"SoC während der Ladung berechnen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":o.vehicle.configuration.calculate_soc,"onUpdate:modelValue":e[4]||(e[4]=i=>o.updateConfiguration(i,"configuration.calculate_soc"))},{help:r(()=>e[34]||(e[34]=[t(" Berechnet den Ladestand (SoC) während der Ladung. ",-1),n("br",null,null,-1),t(" Die Berechnung erfolgt über die Ladeleistung und die Ladedauer. ",-1),n("br",null,null,-1)])),_:1},8,["model-value"])])}const U=g(w,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/bmwbc/vehicle.vue"]]);export{U as default}; diff --git a/web/settings/assets/vehicle-ba6a1f31.js b/web/settings/assets/vehicle-cb9a9cb5.js similarity index 65% rename from web/settings/assets/vehicle-ba6a1f31.js rename to web/settings/assets/vehicle-cb9a9cb5.js index e265fdd8aa..381d4a7b40 100644 --- a/web/settings/assets/vehicle-ba6a1f31.js +++ b/web/settings/assets/vehicle-cb9a9cb5.js @@ -1 +1 @@ -import{V as a}from"./VehicleConfig-28b52371.js";import{_ as u,u as l,l as p,m,G as i}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const s={name:"VehicleSocEvnotify",mixins:[a]},d={class:"vehicle-soc-evnotify"};function f(e,o,c,v,b,g){const r=l("openwb-base-number-input"),t=l("openwb-base-text-input");return p(),m("div",d,[i(r,{title:"ID",required:"",min:0,"model-value":e.vehicle.configuration.id,"onUpdate:modelValue":o[0]||(o[0]=n=>e.updateConfiguration(n,"configuration.id"))},null,8,["model-value"]),i(t,{title:"AKey",required:"","model-value":e.vehicle.configuration.akey,"onUpdate:modelValue":o[1]||(o[1]=n=>e.updateConfiguration(n,"configuration.akey"))},null,8,["model-value"]),i(t,{title:"Token",required:"","model-value":e.vehicle.configuration.token,"onUpdate:modelValue":o[2]||(o[2]=n=>e.updateConfiguration(n,"configuration.token"))},null,8,["model-value"])])}const U=u(s,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/evnotify/vehicle.vue"]]);export{U as default}; +import{V as a}from"./VehicleConfig-44d8bbb2.js";import{_ as u,u as l,l as p,m,G as i}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const s={name:"VehicleSocEvnotify",mixins:[a]},d={class:"vehicle-soc-evnotify"};function f(e,o,c,v,b,g){const r=l("openwb-base-number-input"),t=l("openwb-base-text-input");return p(),m("div",d,[i(r,{title:"ID",required:"",min:0,"model-value":e.vehicle.configuration.id,"onUpdate:modelValue":o[0]||(o[0]=n=>e.updateConfiguration(n,"configuration.id"))},null,8,["model-value"]),i(t,{title:"AKey",required:"","model-value":e.vehicle.configuration.akey,"onUpdate:modelValue":o[1]||(o[1]=n=>e.updateConfiguration(n,"configuration.akey"))},null,8,["model-value"]),i(t,{title:"Token",required:"","model-value":e.vehicle.configuration.token,"onUpdate:modelValue":o[2]||(o[2]=n=>e.updateConfiguration(n,"configuration.token"))},null,8,["model-value"])])}const U=u(s,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/evnotify/vehicle.vue"]]);export{U as default}; diff --git a/web/settings/assets/vehicle-cee2dd5b.js b/web/settings/assets/vehicle-d568544e.js similarity index 60% rename from web/settings/assets/vehicle-cee2dd5b.js rename to web/settings/assets/vehicle-d568544e.js index ee91607785..cf82433736 100644 --- a/web/settings/assets/vehicle-cee2dd5b.js +++ b/web/settings/assets/vehicle-d568544e.js @@ -1 +1 @@ -import{V as n}from"./VehicleConfig-28b52371.js";import{_ as s,u as i,l as o,m as r,G as a,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const p={name:"VehicleSocManual",mixins:[n]},c={class:"vehicle-soc-tesla"};function m(u,e,_,f,h,g){const t=i("openwb-base-alert");return o(),r("div",c,[a(t,{subtype:"info"},{default:d(()=>e[0]||(e[0]=[l(' Beim Anstecken des Fahrzeugs muss der aktuelle SoC über die Hauptseite angegeben werden. Anhand des Zählers im Ladepunkt wird dann der aktuelle SoC errechnet. Ausschlaggebend für die Qualität dieses Moduls sind die beiden Einstellungen "Kapazität der Batterie" in dem Fahrzeug-Profil und "Wirkungsgrad der Ladeelektronik". ',-1)])),_:1,__:[0]})])}const A=s(p,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/manual/vehicle.vue"]]);export{A as default}; +import{V as n}from"./VehicleConfig-44d8bbb2.js";import{_ as s,u as i,l as o,m as r,G as a,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const p={name:"VehicleSocManual",mixins:[n]},c={class:"vehicle-soc-tesla"};function m(u,e,_,f,h,g){const t=i("openwb-base-alert");return o(),r("div",c,[a(t,{subtype:"info"},{default:d(()=>e[0]||(e[0]=[l(' Beim Anstecken des Fahrzeugs muss der aktuelle SoC über die Hauptseite angegeben werden. Anhand des Zählers im Ladepunkt wird dann der aktuelle SoC errechnet. Ausschlaggebend für die Qualität dieses Moduls sind die beiden Einstellungen "Kapazität der Batterie" in dem Fahrzeug-Profil und "Wirkungsgrad der Ladeelektronik". ',-1)])),_:1,__:[0]})])}const A=s(p,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/manual/vehicle.vue"]]);export{A as default}; diff --git a/web/settings/assets/vehicle-982d80e7.js b/web/settings/assets/vehicle-d6bf9d86.js similarity index 82% rename from web/settings/assets/vehicle-982d80e7.js rename to web/settings/assets/vehicle-d6bf9d86.js index 999ec16709..c1d366e143 100644 --- a/web/settings/assets/vehicle-982d80e7.js +++ b/web/settings/assets/vehicle-d6bf9d86.js @@ -1 +1 @@ -import{V as a}from"./VehicleConfig-28b52371.js";import{_ as d,u,l as p,m as g,G as o,E as l,B as i,A as c}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const m={name:"VehicleSocTronity",mixins:[a]},f={class:"vehicle-soc-tronity"};function b(n,e,v,C,w,h){const r=u("openwb-base-text-input"),s=u("openwb-base-button-group-input");return p(),g("div",f,[o(r,{title:"Vehicle ID",subtype:"text",required:"","model-value":n.vehicle.configuration.vehicle_id,"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t,"configuration.vehicle_id"))},{help:l(()=>e[4]||(e[4]=[i(' Vehicle ID aus Tronity angeben. Diese ist in den "Assigned Vehicles" zu finden. ',-1)])),_:1},8,["model-value"]),o(r,{title:"Client ID",subtype:"text",required:"","model-value":n.vehicle.configuration.client_id,"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.client_id"))},{help:l(()=>e[5]||(e[5]=[i(' Client ID aus Tronity angeben. Diese ist in den "Application Settings" zu finden. ',-1)])),_:1},8,["model-value"]),o(r,{title:"Client Secret",subtype:"password",required:"","model-value":n.vehicle.configuration.client_secret,"onUpdate:modelValue":e[2]||(e[2]=t=>n.updateConfiguration(t,"configuration.client_secret"))},{help:l(()=>e[6]||(e[6]=[i(' Client Secret aus Tronity angeben. Diese ist in den "Application Settings" zu finden. Das Client Secret kann nur einmalig abgerufen werden. Ggf. neu erzeugen, womit frühere Client Secrets ungültig werden. ',-1)])),_:1},8,["model-value"]),o(s,{title:"SoC während der Ladung berechnen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.vehicle.configuration.calculate_soc,"onUpdate:modelValue":e[3]||(e[3]=t=>n.updateConfiguration(t,"configuration.calculate_soc"))},{help:l(()=>e[7]||(e[7]=[i(" Berechnet den Ladestand (SoC) während der Ladung. Dies ist notwendig, wenn der SoC nicht über die Schnittstelle des Fahrzeugs abgerufen werden kann. Die Berechnung erfolgt über die Ladeleistung und die Ladedauer. ",-1),c("br",null,null,-1),i(" Derzeit notwendig für Peugeot, Opel, Citroen und DS. ",-1)])),_:1},8,["model-value"])])}const k=d(m,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/tronity/vehicle.vue"]]);export{k as default}; +import{V as a}from"./VehicleConfig-44d8bbb2.js";import{_ as d,u,l as p,m as g,G as o,E as l,B as i,A as c}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const m={name:"VehicleSocTronity",mixins:[a]},f={class:"vehicle-soc-tronity"};function b(n,e,v,C,w,h){const r=u("openwb-base-text-input"),s=u("openwb-base-button-group-input");return p(),g("div",f,[o(r,{title:"Vehicle ID",subtype:"text",required:"","model-value":n.vehicle.configuration.vehicle_id,"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t,"configuration.vehicle_id"))},{help:l(()=>e[4]||(e[4]=[i(' Vehicle ID aus Tronity angeben. Diese ist in den "Assigned Vehicles" zu finden. ',-1)])),_:1},8,["model-value"]),o(r,{title:"Client ID",subtype:"text",required:"","model-value":n.vehicle.configuration.client_id,"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.client_id"))},{help:l(()=>e[5]||(e[5]=[i(' Client ID aus Tronity angeben. Diese ist in den "Application Settings" zu finden. ',-1)])),_:1},8,["model-value"]),o(r,{title:"Client Secret",subtype:"password",required:"","model-value":n.vehicle.configuration.client_secret,"onUpdate:modelValue":e[2]||(e[2]=t=>n.updateConfiguration(t,"configuration.client_secret"))},{help:l(()=>e[6]||(e[6]=[i(' Client Secret aus Tronity angeben. Diese ist in den "Application Settings" zu finden. Das Client Secret kann nur einmalig abgerufen werden. Ggf. neu erzeugen, womit frühere Client Secrets ungültig werden. ',-1)])),_:1},8,["model-value"]),o(s,{title:"SoC während der Ladung berechnen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.vehicle.configuration.calculate_soc,"onUpdate:modelValue":e[3]||(e[3]=t=>n.updateConfiguration(t,"configuration.calculate_soc"))},{help:l(()=>e[7]||(e[7]=[i(" Berechnet den Ladestand (SoC) während der Ladung. Dies ist notwendig, wenn der SoC nicht über die Schnittstelle des Fahrzeugs abgerufen werden kann. Die Berechnung erfolgt über die Ladeleistung und die Ladedauer. ",-1),c("br",null,null,-1),i(" Derzeit notwendig für Peugeot, Opel, Citroen und DS. ",-1)])),_:1},8,["model-value"])])}const k=d(m,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/tronity/vehicle.vue"]]);export{k as default}; diff --git a/web/settings/assets/vehicle-5e681017.js b/web/settings/assets/vehicle-d87c0cc9.js similarity index 71% rename from web/settings/assets/vehicle-5e681017.js rename to web/settings/assets/vehicle-d87c0cc9.js index 3d8e983dcd..1dd255e864 100644 --- a/web/settings/assets/vehicle-5e681017.js +++ b/web/settings/assets/vehicle-d87c0cc9.js @@ -1 +1 @@ -import{V as a}from"./VehicleConfig-28b52371.js";import{_ as s,u as p,l as u,m,G as n,E as r,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const d={name:"VehicleSocHttp",mixins:[a]},c={class:"vehicle-soc-http"};function v(t,e,f,h,g,w){const i=p("openwb-base-text-input");return u(),m("div",c,[n(i,{title:"SoC URL",subtype:"url",required:"","model-value":t.vehicle.configuration.soc_url,"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.soc_url"))},{help:r(()=>e[2]||(e[2]=[l(" Es wird vom Server eine Zahl (Float mit Punkt als Dezimaltrennzeichen oder Integer) erwartet, welche den aktuellen Ladestand in Prozent (0 bis 100) zurückgibt. ",-1)])),_:1},8,["model-value"]),n(i,{title:"Reichweiten URL",subtype:"url","model-value":t.vehicle.configuration.range_url,"onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.range_url"))},{help:r(()=>e[3]||(e[3]=[l(" Es wird vom Server eine Zahl (Float mit Punkt als Dezimaltrennzeichen oder Integer) erwartet, welche die aktuelle Reichweite in Kilometern darstellt. Diese Angabe ist optional. ",-1)])),_:1},8,["model-value"])])}const S=s(d,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/http/vehicle.vue"]]);export{S as default}; +import{V as a}from"./VehicleConfig-44d8bbb2.js";import{_ as s,u as p,l as u,m,G as n,E as r,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const d={name:"VehicleSocHttp",mixins:[a]},c={class:"vehicle-soc-http"};function v(t,e,f,h,g,w){const i=p("openwb-base-text-input");return u(),m("div",c,[n(i,{title:"SoC URL",subtype:"url",required:"","model-value":t.vehicle.configuration.soc_url,"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.soc_url"))},{help:r(()=>e[2]||(e[2]=[l(" Es wird vom Server eine Zahl (Float mit Punkt als Dezimaltrennzeichen oder Integer) erwartet, welche den aktuellen Ladestand in Prozent (0 bis 100) zurückgibt. ",-1)])),_:1},8,["model-value"]),n(i,{title:"Reichweiten URL",subtype:"url","model-value":t.vehicle.configuration.range_url,"onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.range_url"))},{help:r(()=>e[3]||(e[3]=[l(" Es wird vom Server eine Zahl (Float mit Punkt als Dezimaltrennzeichen oder Integer) erwartet, welche die aktuelle Reichweite in Kilometern darstellt. Diese Angabe ist optional. ",-1)])),_:1},8,["model-value"])])}const S=s(d,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/http/vehicle.vue"]]);export{S as default}; diff --git a/web/settings/assets/vehicle-3e73bf6e.js b/web/settings/assets/vehicle-d91cf08c.js similarity index 79% rename from web/settings/assets/vehicle-3e73bf6e.js rename to web/settings/assets/vehicle-d91cf08c.js index f16a1493ab..c8d356621a 100644 --- a/web/settings/assets/vehicle-3e73bf6e.js +++ b/web/settings/assets/vehicle-d91cf08c.js @@ -1 +1 @@ -import{V as u}from"./VehicleConfig-28b52371.js";import{_ as d,u as l,l as s,m as p,G as n,E as m,B as a,A as v}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const f={name:"VehicleSocAiways",mixins:[u]},g={class:"vehicle-soc-aiways"};function c(o,e,w,V,b,C){const r=l("openwb-base-alert"),t=l("openwb-base-text-input");return s(),p("div",g,[n(r,{subtype:"info"},{default:m(()=>e[6]||(e[6]=[a(" Alle Werte müssen von der Aiways App abgefangen werden. Dazu kann diese ",-1),v("a",{href:"https://community.home-assistant.io/t/read-aiways-u5-state-of-charge/466441/5"}," Anleitung ",-1),a(" verwendet werden. ",-1)])),_:1,__:[6]}),n(t,{title:"User ID",required:"","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=i=>o.updateConfiguration(i,"configuration.user_id"))},null,8,["model-value"]),n(t,{title:"VIN",required:"","model-value":o.vehicle.configuration.vin,"onUpdate:modelValue":e[1]||(e[1]=i=>o.updateConfiguration(i,"configuration.vin"))},null,8,["model-value"]),n(t,{title:"Device ID",required:"","model-value":o.vehicle.configuration.device_id,"onUpdate:modelValue":e[2]||(e[2]=i=>o.updateConfiguration(i,"configuration.device_id"))},null,8,["model-value"]),n(t,{title:"Register ID",required:"","model-value":o.vehicle.configuration.register_id,"onUpdate:modelValue":e[3]||(e[3]=i=>o.updateConfiguration(i,"configuration.register_id"))},null,8,["model-value"]),n(t,{title:"Token",required:"","model-value":o.vehicle.configuration.token,"onUpdate:modelValue":e[4]||(e[4]=i=>o.updateConfiguration(i,"configuration.token"))},null,8,["model-value"]),n(t,{title:"Condition URL",subtype:"url",required:"","model-value":o.vehicle.configuration.condition_url,"onUpdate:modelValue":e[5]||(e[5]=i=>o.updateConfiguration(i,"configuration.condition_url"))},null,8,["model-value"])])}const N=d(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/aiways/vehicle.vue"]]);export{N as default}; +import{V as u}from"./VehicleConfig-44d8bbb2.js";import{_ as d,u as l,l as s,m as p,G as n,E as m,B as a,A as v}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const f={name:"VehicleSocAiways",mixins:[u]},g={class:"vehicle-soc-aiways"};function c(o,e,w,V,b,C){const r=l("openwb-base-alert"),t=l("openwb-base-text-input");return s(),p("div",g,[n(r,{subtype:"info"},{default:m(()=>e[6]||(e[6]=[a(" Alle Werte müssen von der Aiways App abgefangen werden. Dazu kann diese ",-1),v("a",{href:"https://community.home-assistant.io/t/read-aiways-u5-state-of-charge/466441/5"}," Anleitung ",-1),a(" verwendet werden. ",-1)])),_:1,__:[6]}),n(t,{title:"User ID",required:"","model-value":o.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=i=>o.updateConfiguration(i,"configuration.user_id"))},null,8,["model-value"]),n(t,{title:"VIN",required:"","model-value":o.vehicle.configuration.vin,"onUpdate:modelValue":e[1]||(e[1]=i=>o.updateConfiguration(i,"configuration.vin"))},null,8,["model-value"]),n(t,{title:"Device ID",required:"","model-value":o.vehicle.configuration.device_id,"onUpdate:modelValue":e[2]||(e[2]=i=>o.updateConfiguration(i,"configuration.device_id"))},null,8,["model-value"]),n(t,{title:"Register ID",required:"","model-value":o.vehicle.configuration.register_id,"onUpdate:modelValue":e[3]||(e[3]=i=>o.updateConfiguration(i,"configuration.register_id"))},null,8,["model-value"]),n(t,{title:"Token",required:"","model-value":o.vehicle.configuration.token,"onUpdate:modelValue":e[4]||(e[4]=i=>o.updateConfiguration(i,"configuration.token"))},null,8,["model-value"]),n(t,{title:"Condition URL",subtype:"url",required:"","model-value":o.vehicle.configuration.condition_url,"onUpdate:modelValue":e[5]||(e[5]=i=>o.updateConfiguration(i,"configuration.condition_url"))},null,8,["model-value"])])}const N=d(f,[["render",c],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/aiways/vehicle.vue"]]);export{N as default}; diff --git a/web/settings/assets/vehicle-a0cbd4bf.js b/web/settings/assets/vehicle-e8e57114.js similarity index 90% rename from web/settings/assets/vehicle-a0cbd4bf.js rename to web/settings/assets/vehicle-e8e57114.js index 87301c5d54..c1e46fad42 100644 --- a/web/settings/assets/vehicle-a0cbd4bf.js +++ b/web/settings/assets/vehicle-e8e57114.js @@ -1 +1 @@ -import{V as m}from"./VehicleConfig-28b52371.js";import{_ as p,u as s,l as g,m as b,G as r,E as i,B as n,A as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const f={name:"VehicleSocJson",mixins:[m]},w={class:"vehicle-soc-json"};function h(t,e,v,c,k,z){const a=s("openwb-base-text-input"),u=s("openwb-base-button-group-input"),d=s("openwb-base-number-input");return g(),b("div",w,[r(a,{title:"URL",subtype:"url",required:"","model-value":t.vehicle.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.url"))},{help:i(()=>e[6]||(e[6]=[n(" Es wird eine komplette URL erwartet mit Angaben zum Protokoll, IP oder Hostnamen, optional einem Port und einem Pfad. Die Antwort muss ein json-Objekt sein. Beispiel: http://192.168.1.1:8080/json?data=1 ",-1)])),_:1},8,["model-value"]),r(a,{title:"Abfrage für SoC",subtype:"text",required:"","model-value":t.vehicle.configuration.soc_pattern,"onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.soc_pattern"))},{help:i(()=>e[7]||(e[7]=[n(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"response":{"soc":"39.8", "range": "207", "timestamp":1734054449}} So muss hier .response.soc eingetragen werden. ',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen Ladestand (SoC) darstellt. ",-1)])),_:1},8,["model-value"]),r(a,{title:"Abfrage für Reichweite",subtype:"text","model-value":t.vehicle.configuration.range_pattern,"onUpdate:modelValue":e[2]||(e[2]=o=>t.updateConfiguration(o,"configuration.range_pattern"))},{help:i(()=>e[8]||(e[8]=[n(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"response":{"soc":"39.8", "range": "207", "timestamp":1734054449}} So muss hier .response.range eingetragen werden. ',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Reichweite darstellt.",-1),l("br",null,null,-1),n(" Ohne Angabe wird die Reichweite nicht abgefragt und auf Null gesetzt. ",-1)])),_:1},8,["model-value"]),r(a,{title:"Abfrage für Zeitstempel",subtype:"text","model-value":t.vehicle.configuration.timestamp_pattern,"onUpdate:modelValue":e[3]||(e[3]=o=>t.updateConfiguration(o,"configuration.timestamp_pattern"))},{help:i(()=>e[9]||(e[9]=[n(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"response":{"soc":"39.8", "range": "207", "timestamp":1734054449}} So muss hier .response.timestamp eingetragen werden.',-1),l("br",null,null,-1),n(" Es wird vom Server entweder eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen als Epoch Zeitstempel oder eine ISO 8601 formatierte Zeit erwartet welche den Zeitstempel der gelieferten Werte darstellt.",-1),l("br",null,null,-1),n(" Ohne Angabe wird der Zeitpunkt des Datenabrufs als Zeitstempel verwendet. ",-1)])),_:1},8,["model-value"]),r(u,{title:"SoC während der Ladung berechnen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.vehicle.configuration.calculate_soc,"onUpdate:modelValue":e[4]||(e[4]=o=>t.updateConfiguration(o,"configuration.calculate_soc"))},{help:i(()=>e[10]||(e[10]=[n(" Berechnet den Ladestand (SoC) während der Ladung. Dies ist notwendig, wenn der SoC nicht über die Schnittstelle des Fahrzeugs abgerufen werden kann. Die Berechnung erfolgt über die Ladeleistung und die Ladedauer. ",-1),l("br",null,null,-1),n(" Derzeit u.a. notwendig für Peugeot, Opel, Citroen und DS. ",-1)])),_:1},8,["model-value"]),r(d,{title:"Timeout für http-Abfragen",subtype:"number","model-value":t.vehicle.configuration.timeout,"onUpdate:modelValue":e[5]||(e[5]=o=>t.updateConfiguration(o,"configuration.timeout"))},{help:i(()=>e[11]||(e[11]=[n(" Ermöglicht es einen Timeout für die http-Abfragen zu setzen. Der Wert wird in Sekunden angegeben. Standardwert ist 5 Sekunden sofern kein anderer Wert angegeben ist. ",-1)])),_:1},8,["model-value"])])}const I=p(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/json/vehicle.vue"]]);export{I as default}; +import{V as m}from"./VehicleConfig-44d8bbb2.js";import{_ as p,u as s,l as g,m as b,G as r,E as i,B as n,A as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const f={name:"VehicleSocJson",mixins:[m]},w={class:"vehicle-soc-json"};function h(t,e,v,c,k,z){const a=s("openwb-base-text-input"),u=s("openwb-base-button-group-input"),d=s("openwb-base-number-input");return g(),b("div",w,[r(a,{title:"URL",subtype:"url",required:"","model-value":t.vehicle.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o,"configuration.url"))},{help:i(()=>e[6]||(e[6]=[n(" Es wird eine komplette URL erwartet mit Angaben zum Protokoll, IP oder Hostnamen, optional einem Port und einem Pfad. Die Antwort muss ein json-Objekt sein. Beispiel: http://192.168.1.1:8080/json?data=1 ",-1)])),_:1},8,["model-value"]),r(a,{title:"Abfrage für SoC",subtype:"text",required:"","model-value":t.vehicle.configuration.soc_pattern,"onUpdate:modelValue":e[1]||(e[1]=o=>t.updateConfiguration(o,"configuration.soc_pattern"))},{help:i(()=>e[7]||(e[7]=[n(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"response":{"soc":"39.8", "range": "207", "timestamp":1734054449}} So muss hier .response.soc eingetragen werden. ',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen Ladestand (SoC) darstellt. ",-1)])),_:1},8,["model-value"]),r(a,{title:"Abfrage für Reichweite",subtype:"text","model-value":t.vehicle.configuration.range_pattern,"onUpdate:modelValue":e[2]||(e[2]=o=>t.updateConfiguration(o,"configuration.range_pattern"))},{help:i(()=>e[8]||(e[8]=[n(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"response":{"soc":"39.8", "range": "207", "timestamp":1734054449}} So muss hier .response.range eingetragen werden. ',-1),l("br",null,null,-1),n(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Reichweite darstellt.",-1),l("br",null,null,-1),n(" Ohne Angabe wird die Reichweite nicht abgefragt und auf Null gesetzt. ",-1)])),_:1},8,["model-value"]),r(a,{title:"Abfrage für Zeitstempel",subtype:"text","model-value":t.vehicle.configuration.timestamp_pattern,"onUpdate:modelValue":e[3]||(e[3]=o=>t.updateConfiguration(o,"configuration.timestamp_pattern"))},{help:i(()=>e[9]||(e[9]=[n(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"response":{"soc":"39.8", "range": "207", "timestamp":1734054449}} So muss hier .response.timestamp eingetragen werden.',-1),l("br",null,null,-1),n(" Es wird vom Server entweder eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen als Epoch Zeitstempel oder eine ISO 8601 formatierte Zeit erwartet welche den Zeitstempel der gelieferten Werte darstellt.",-1),l("br",null,null,-1),n(" Ohne Angabe wird der Zeitpunkt des Datenabrufs als Zeitstempel verwendet. ",-1)])),_:1},8,["model-value"]),r(u,{title:"SoC während der Ladung berechnen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.vehicle.configuration.calculate_soc,"onUpdate:modelValue":e[4]||(e[4]=o=>t.updateConfiguration(o,"configuration.calculate_soc"))},{help:i(()=>e[10]||(e[10]=[n(" Berechnet den Ladestand (SoC) während der Ladung. Dies ist notwendig, wenn der SoC nicht über die Schnittstelle des Fahrzeugs abgerufen werden kann. Die Berechnung erfolgt über die Ladeleistung und die Ladedauer. ",-1),l("br",null,null,-1),n(" Derzeit u.a. notwendig für Peugeot, Opel, Citroen und DS. ",-1)])),_:1},8,["model-value"]),r(d,{title:"Timeout für http-Abfragen",subtype:"number","model-value":t.vehicle.configuration.timeout,"onUpdate:modelValue":e[5]||(e[5]=o=>t.updateConfiguration(o,"configuration.timeout"))},{help:i(()=>e[11]||(e[11]=[n(" Ermöglicht es einen Timeout für die http-Abfragen zu setzen. Der Wert wird in Sekunden angegeben. Standardwert ist 5 Sekunden sofern kein anderer Wert angegeben ist. ",-1)])),_:1},8,["model-value"])])}const I=p(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/json/vehicle.vue"]]);export{I as default}; diff --git a/web/settings/assets/vehicle-075e67ef.js b/web/settings/assets/vehicle-f2cedad6.js similarity index 87% rename from web/settings/assets/vehicle-075e67ef.js rename to web/settings/assets/vehicle-f2cedad6.js index 10ece2318b..c478586e88 100644 --- a/web/settings/assets/vehicle-075e67ef.js +++ b/web/settings/assets/vehicle-f2cedad6.js @@ -1 +1 @@ -import{V as m}from"./VehicleConfig-28b52371.js";import{_ as b,u as s,l as g,m as _,G as i,E as o,B as n,A as u,F as v}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-c0918982.js";const f={name:"VehicleSocMercedesEq",mixins:[m],computed:{callback_url(){return`${location.origin}/openWB/web/settings/modules/vehicles/mercedeseq/callback_vehicle.php`},login_url(){return`https://ssoalpha.dvb.corpinter.net/v1/auth?response_type=code&state=${this.vehicleId}&client_id=${this.vehicle.configuration.client_id}&redirect_uri=${this.callback_url}&scope=mb:vehicle:mbdata:evstatus%20offline_access%20openid`},input_complete(){return this.vehicle.configuration.client_id&&this.vehicle.configuration.client_secret&&this.vehicle.configuration.vin}},methods:{login_window(){console.debug("callback url",this.callback_url),console.debug("login url",this.login_url);var t=window.open(this.login_url,"MercedesLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");t.focus()}}},h={class:"vehicle-soc-mercedeseq"};function w(t,e,k,C,y,r){const a=s("openwb-base-text-input"),d=s("openwb-base-copy-to-clipboard"),p=s("openwb-base-alert"),c=s("openwb-base-button-input");return g(),_("div",h,[i(a,{title:"Client-ID",required:"",subtype:"user","model-value":t.vehicle.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=l=>t.updateConfiguration(l,"configuration.client_id"))},{help:o(()=>e[3]||(e[3]=[n(" Die im Developer Portal angelegte Client-ID. ",-1)])),_:1},8,["model-value"]),i(a,{title:"Client Secret",required:"",subtype:"password","model-value":t.vehicle.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=l=>t.updateConfiguration(l,"configuration.client_secret"))},{help:o(()=>e[4]||(e[4]=[n(" Das im Developer Portal angelegte Client Secret. ",-1)])),_:1},8,["model-value"]),i(a,{title:"VIN",required:"","model-value":t.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=l=>t.updateConfiguration(l,"configuration.vin"))},{help:o(()=>e[5]||(e[5]=[n(" Die Fahrgestellnummer des Fahrzeugs. ",-1)])),_:1},8,["model-value"]),i(p,{subtype:"info"},{default:o(()=>[e[6]||(e[6]=n(" Vor dem Anmelden bitte die Angaben speichern.",-1)),e[7]||(e[7]=u("br",null,null,-1)),e[8]||(e[8]=n(" Die Callback-URL für die Anmeldung lautet:",-1)),e[9]||(e[9]=u("br",null,null,-1)),i(d,{class:"text-info",tooltip:"URL kopieren"},{default:o(()=>[n(v(r.callback_url),1)]),_:1})]),_:1,__:[6,7,8,9]}),i(c,{title:"Anmelden","button-text":"Bei Mercedes Anmelden",subtype:"success",disabled:!r.input_complete,onButtonClicked:r.login_window},{help:o(()=>e[10]||(e[10]=[n(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Mercedes mit Ihren Zugangsdaten anmelden können.",-1),u("br",null,null,-1)])),_:1},8,["disabled","onButtonClicked"])])}const $=b(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/mercedeseq/vehicle.vue"]]);export{$ as default}; +import{V as m}from"./VehicleConfig-44d8bbb2.js";import{_ as b,u as s,l as g,m as _,G as i,E as o,B as n,A as u,F as v}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";import"./VehicleIdWikiHint-714fb4c5.js";const f={name:"VehicleSocMercedesEq",mixins:[m],computed:{callback_url(){return`${location.origin}/openWB/web/settings/modules/vehicles/mercedeseq/callback_vehicle.php`},login_url(){return`https://ssoalpha.dvb.corpinter.net/v1/auth?response_type=code&state=${this.vehicleId}&client_id=${this.vehicle.configuration.client_id}&redirect_uri=${this.callback_url}&scope=mb:vehicle:mbdata:evstatus%20offline_access%20openid`},input_complete(){return this.vehicle.configuration.client_id&&this.vehicle.configuration.client_secret&&this.vehicle.configuration.vin}},methods:{login_window(){console.debug("callback url",this.callback_url),console.debug("login url",this.login_url);var t=window.open(this.login_url,"MercedesLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");t.focus()}}},h={class:"vehicle-soc-mercedeseq"};function w(t,e,k,C,y,r){const a=s("openwb-base-text-input"),d=s("openwb-base-copy-to-clipboard"),p=s("openwb-base-alert"),c=s("openwb-base-button-input");return g(),_("div",h,[i(a,{title:"Client-ID",required:"",subtype:"user","model-value":t.vehicle.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=l=>t.updateConfiguration(l,"configuration.client_id"))},{help:o(()=>e[3]||(e[3]=[n(" Die im Developer Portal angelegte Client-ID. ",-1)])),_:1},8,["model-value"]),i(a,{title:"Client Secret",required:"",subtype:"password","model-value":t.vehicle.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=l=>t.updateConfiguration(l,"configuration.client_secret"))},{help:o(()=>e[4]||(e[4]=[n(" Das im Developer Portal angelegte Client Secret. ",-1)])),_:1},8,["model-value"]),i(a,{title:"VIN",required:"","model-value":t.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=l=>t.updateConfiguration(l,"configuration.vin"))},{help:o(()=>e[5]||(e[5]=[n(" Die Fahrgestellnummer des Fahrzeugs. ",-1)])),_:1},8,["model-value"]),i(p,{subtype:"info"},{default:o(()=>[e[6]||(e[6]=n(" Vor dem Anmelden bitte die Angaben speichern.",-1)),e[7]||(e[7]=u("br",null,null,-1)),e[8]||(e[8]=n(" Die Callback-URL für die Anmeldung lautet:",-1)),e[9]||(e[9]=u("br",null,null,-1)),i(d,{class:"text-info",tooltip:"URL kopieren"},{default:o(()=>[n(v(r.callback_url),1)]),_:1})]),_:1,__:[6,7,8,9]}),i(c,{title:"Anmelden","button-text":"Bei Mercedes Anmelden",subtype:"success",disabled:!r.input_complete,onButtonClicked:r.login_window},{help:o(()=>e[10]||(e[10]=[n(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Mercedes mit Ihren Zugangsdaten anmelden können.",-1),u("br",null,null,-1)])),_:1},8,["disabled","onButtonClicked"])])}const $=b(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/mercedeseq/vehicle.vue"]]);export{$ as default}; diff --git a/web/settings/assets/vendor-25d394b4.js b/web/settings/assets/vendor-57e3a63c.js similarity index 85% rename from web/settings/assets/vendor-25d394b4.js rename to web/settings/assets/vendor-57e3a63c.js index a478e2dddd..33e07f9ac5 100644 --- a/web/settings/assets/vendor-25d394b4.js +++ b/web/settings/assets/vendor-57e3a63c.js @@ -1,4 +1,4 @@ -import{r as require$$1$5}from"./vendor-sortablejs-0eb84ec8.js";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var l=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,l.get?l:{enumerable:!0,get:function(){return e[o]}})}),n}var buffer$2={},base64Js={};base64Js.byteLength=byteLength$1;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var o=n===t?0:4-n%4;return[n,o]}function byteLength$1(e){var t=getLens(e),n=t[0],o=t[1];return(n+o)*3/4-o}function _byteLength(e,t,n){return(t+n)*3/4-n}function toByteArray(e){var t,n=getLens(e),o=n[0],l=n[1],a=new Arr(_byteLength(e,o,l)),d=0,y=l>0?o-4:o,w;for(w=0;w>16&255,a[d++]=t>>8&255,a[d++]=t&255;return l===2&&(t=revLookup[e.charCodeAt(w)]<<2|revLookup[e.charCodeAt(w+1)]>>4,a[d++]=t&255),l===1&&(t=revLookup[e.charCodeAt(w)]<<10|revLookup[e.charCodeAt(w+1)]<<4|revLookup[e.charCodeAt(w+2)]>>2,a[d++]=t>>8&255,a[d++]=t&255),a}function tripletToBase64(e){return lookup[e>>18&63]+lookup[e>>12&63]+lookup[e>>6&63]+lookup[e&63]}function encodeChunk(e,t,n){for(var o,l=[],a=t;ay?y:d+a));return o===1?(t=e[n-1],l.push(lookup[t>>2]+lookup[t<<4&63]+"==")):o===2&&(t=(e[n-2]<<8)+e[n-1],l.push(lookup[t>>10]+lookup[t>>4&63]+lookup[t<<2&63]+"=")),l.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754.read=function(e,t,n,o,l){var a,d,y=l*8-o-1,w=(1<>1,S=-7,E=n?l-1:0,C=n?-1:1,B=e[t+E];for(E+=C,a=B&(1<<-S)-1,B>>=-S,S+=y;S>0;a=a*256+e[t+E],E+=C,S-=8);for(d=a&(1<<-S)-1,a>>=-S,S+=o;S>0;d=d*256+e[t+E],E+=C,S-=8);if(a===0)a=1-_;else{if(a===w)return d?NaN:(B?-1:1)*(1/0);d=d+Math.pow(2,o),a=a-_}return(B?-1:1)*d*Math.pow(2,a-o)};ieee754.write=function(e,t,n,o,l,a){var d,y,w,_=a*8-l-1,S=(1<<_)-1,E=S>>1,C=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,B=o?0:a-1,L=o?1:-1,F=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(y=isNaN(t)?1:0,d=S):(d=Math.floor(Math.log(t)/Math.LN2),t*(w=Math.pow(2,-d))<1&&(d--,w*=2),d+E>=1?t+=C/w:t+=C*Math.pow(2,1-E),t*w>=2&&(d++,w/=2),d+E>=S?(y=0,d=S):d+E>=1?(y=(t*w-1)*Math.pow(2,l),d=d+E):(y=t*Math.pow(2,E-1)*Math.pow(2,l),d=0));l>=8;e[n+B]=y&255,B+=L,y/=256,l-=8);for(d=d<0;e[n+B]=d&255,B+=L,d/=256,_-=8);e[n+B-L]|=F*128};/*! +import{r as require$$1$5}from"./vendor-sortablejs-63b3e6e3.js";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var l=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,l.get?l:{enumerable:!0,get:function(){return e[o]}})}),n}var buffer$2={},base64Js={};base64Js.byteLength=byteLength$1;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var o=n===t?0:4-n%4;return[n,o]}function byteLength$1(e){var t=getLens(e),n=t[0],o=t[1];return(n+o)*3/4-o}function _byteLength(e,t,n){return(t+n)*3/4-n}function toByteArray(e){var t,n=getLens(e),o=n[0],l=n[1],a=new Arr(_byteLength(e,o,l)),d=0,y=l>0?o-4:o,w;for(w=0;w>16&255,a[d++]=t>>8&255,a[d++]=t&255;return l===2&&(t=revLookup[e.charCodeAt(w)]<<2|revLookup[e.charCodeAt(w+1)]>>4,a[d++]=t&255),l===1&&(t=revLookup[e.charCodeAt(w)]<<10|revLookup[e.charCodeAt(w+1)]<<4|revLookup[e.charCodeAt(w+2)]>>2,a[d++]=t>>8&255,a[d++]=t&255),a}function tripletToBase64(e){return lookup[e>>18&63]+lookup[e>>12&63]+lookup[e>>6&63]+lookup[e&63]}function encodeChunk(e,t,n){for(var o,l=[],a=t;ay?y:d+a));return o===1?(t=e[n-1],l.push(lookup[t>>2]+lookup[t<<4&63]+"==")):o===2&&(t=(e[n-2]<<8)+e[n-1],l.push(lookup[t>>10]+lookup[t>>4&63]+lookup[t<<2&63]+"=")),l.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754.read=function(e,t,n,o,l){var a,d,y=l*8-o-1,w=(1<>1,S=-7,E=n?l-1:0,C=n?-1:1,B=e[t+E];for(E+=C,a=B&(1<<-S)-1,B>>=-S,S+=y;S>0;a=a*256+e[t+E],E+=C,S-=8);for(d=a&(1<<-S)-1,a>>=-S,S+=o;S>0;d=d*256+e[t+E],E+=C,S-=8);if(a===0)a=1-_;else{if(a===w)return d?NaN:(B?-1:1)*(1/0);d=d+Math.pow(2,o),a=a-_}return(B?-1:1)*d*Math.pow(2,a-o)};ieee754.write=function(e,t,n,o,l,a){var d,y,w,_=a*8-l-1,S=(1<<_)-1,E=S>>1,C=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,B=o?0:a-1,L=o?1:-1,F=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(y=isNaN(t)?1:0,d=S):(d=Math.floor(Math.log(t)/Math.LN2),t*(w=Math.pow(2,-d))<1&&(d--,w*=2),d+E>=1?t+=C/w:t+=C*Math.pow(2,1-E),t*w>=2&&(d++,w/=2),d+E>=S?(y=0,d=S):d+E>=1?(y=(t*w-1)*Math.pow(2,l),d=d+E):(y=t*Math.pow(2,E-1)*Math.pow(2,l),d=0));l>=8;e[n+B]=y&255,B+=L,y/=256,l-=8);for(d=d<0;e[n+B]=d&255,B+=L,d/=256,_-=8);e[n+B-L]|=F*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh @@ -53,7 +53,7 @@ Expected function or array of functions, received type ${typeof e}.`),NOOP)}func `))):ie=N.stylize("[Circular]","special")),ce(Z)){if(P&&U.match(/^\d+$/))return ie;Z=JSON.stringify(""+U),Z.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Z=Z.slice(1,-1),Z=N.stylize(Z,"name")):(Z=Z.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Z=N.stylize(Z,"string"))}return Z+": "+ie}function F(N,z,oe){var le=N.reduce(function(U,P){return P.indexOf(` `)>=0,U+P.replace(/\u001b\[\d\d?m/g,"").length+1},0);return le>60?oe[0]+(z===""?"":z+` `)+" "+N.join(`, - `)+" "+oe[1]:oe[0]+z+" "+N.join(", ")+" "+oe[1]}e.types=types;function q(N){return Array.isArray(N)}e.isArray=q;function H(N){return typeof N=="boolean"}e.isBoolean=H;function D(N){return N===null}e.isNull=D;function j(N){return N==null}e.isNullOrUndefined=j;function V(N){return typeof N=="number"}e.isNumber=V;function Q(N){return typeof N=="string"}e.isString=Q;function ae(N){return typeof N=="symbol"}e.isSymbol=ae;function ce(N){return N===void 0}e.isUndefined=ce;function ue(N){return re(N)&&m(N)==="[object RegExp]"}e.isRegExp=ue,e.types.isRegExp=ue;function re(N){return typeof N=="object"&&N!==null}e.isObject=re;function pe(N){return re(N)&&m(N)==="[object Date]"}e.isDate=pe,e.types.isDate=pe;function T(N){return re(N)&&(m(N)==="[object Error]"||N instanceof Error)}e.isError=T,e.types.isNativeError=T;function u(N){return typeof N=="function"}e.isFunction=u;function v(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N>"u"}e.isPrimitive=v,e.isBuffer=isBufferBrowser;function m(N){return Object.prototype.toString.call(N)}function b(N){return N<10?"0"+N.toString(10):N.toString(10)}var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var N=new Date,z=[b(N.getHours()),b(N.getMinutes()),b(N.getSeconds())].join(":");return[N.getDate(),M[N.getMonth()],z].join(" ")}e.log=function(){console.log("%s - %s",A(),e.format.apply(e,arguments))},e.inherits=inherits_browserExports,e._extend=function(N,z){if(!z||!re(z))return N;for(var oe=Object.keys(z),le=oe.length;le--;)N[oe[le]]=z[oe[le]];return N};function O(N,z){return Object.prototype.hasOwnProperty.call(N,z)}var $=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(z){if(typeof z!="function")throw new TypeError('The "original" argument must be of type Function');if($&&z[$]){var oe=z[$];if(typeof oe!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(oe,$,{value:oe,enumerable:!1,writable:!1,configurable:!0}),oe}function oe(){for(var le,U,P=new Promise(function(se,k){le=se,U=k}),Z=[],ie=0;ie0?this.tail.next=H:this.head=H,this.tail=H,++this.length}},{key:"unshift",value:function(q){var H={data:q,next:this.head};this.length===0&&(this.tail=H),this.head=H,++this.length}},{key:"shift",value:function(){if(this.length!==0){var q=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(q){if(this.length===0)return"";for(var H=this.head,D=""+H.data;H=H.next;)D+=q+H.data;return D}},{key:"concat",value:function(q){if(this.length===0)return _.alloc(0);for(var H=_.allocUnsafe(q>>>0),D=this.head,j=0;D;)B(D.data,H,j),j+=D.data.length,D=D.next;return H}},{key:"consume",value:function(q,H){var D;return qV.length?V.length:q;if(Q===V.length?j+=V:j+=V.slice(0,q),q-=Q,q===0){Q===V.length?(++D,H.next?this.head=H.next:this.head=this.tail=null):(this.head=H,H.data=V.slice(Q));break}++D}return this.length-=D,j}},{key:"_getBuffer",value:function(q){var H=_.allocUnsafe(q),D=this.head,j=1;for(D.data.copy(H),q-=D.data.length;D=D.next;){var V=D.data,Q=q>V.length?V.length:q;if(V.copy(H,H.length-q,0,Q),q-=Q,q===0){Q===V.length?(++j,D.next?this.head=D.next:this.head=this.tail=null):(this.head=D,D.data=V.slice(Q));break}++j}return this.length-=j,H}},{key:C,value:function(q,H){return E(this,t(t({},H),{},{depth:0,customInspect:!1}))}}]),L}(),buffer_list$3}function destroy$4(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return o||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,api$2.nextTick(emitErrorNT$3,this,e)):api$2.nextTick(emitErrorNT$3,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?n._writableState?n._writableState.errorEmitted?api$2.nextTick(emitCloseNT$2,n):(n._writableState.errorEmitted=!0,api$2.nextTick(emitErrorAndCloseNT$2,n,a)):api$2.nextTick(emitErrorAndCloseNT$2,n,a):t?(api$2.nextTick(emitCloseNT$2,n),t(a)):api$2.nextTick(emitCloseNT$2,n)}),this)}function emitErrorAndCloseNT$2(e,t){emitErrorNT$3(e,t),emitCloseNT$2(e)}function emitCloseNT$2(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function undestroy$3(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT$3(e,t){e.emit("error",t)}function errorOrDestroy$2(e,t){var n=e._readableState,o=e._writableState;n&&n.autoDestroy||o&&o.autoDestroy?e.destroy(t):e.emit("error",t)}var destroy_1$4={destroy:destroy$4,undestroy:undestroy$3,errorOrDestroy:errorOrDestroy$2},errorsBrowser$3={};function _inheritsLoose$2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var codes$2={};function createErrorType$2(e,t,n){n||(n=Error);function o(a,d,y){return typeof t=="string"?t:t(a,d,y)}var l=function(a){_inheritsLoose$2(d,a);function d(y,w,_){return a.call(this,o(y,w,_))||this}return d}(n);l.prototype.name=n.name,l.prototype.code=e,codes$2[e]=l}function oneOf$2(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(o){return String(o)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:n===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function startsWith$2(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function endsWith$2(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function includes$2(e,t,n){return typeof n!="number"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}createErrorType$2("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);createErrorType$2("ERR_INVALID_ARG_TYPE",function(e,t,n){var o;typeof t=="string"&&startsWith$2(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be";var l;if(endsWith$2(e," argument"))l="The ".concat(e," ").concat(o," ").concat(oneOf$2(t,"type"));else{var a=includes$2(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(a," ").concat(o," ").concat(oneOf$2(t,"type"))}return l+=". Received type ".concat(typeof n),l},TypeError);createErrorType$2("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType$2("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});createErrorType$2("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType$2("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});createErrorType$2("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType$2("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType$2("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType$2("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType$2("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);createErrorType$2("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser$3.codes=codes$2;var ERR_INVALID_OPT_VALUE$2=errorsBrowser$3.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom$2(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function getHighWaterMark$2(e,t,n,o){var l=highWaterMarkFrom$2(t,o,n);if(l!=null){if(!(isFinite(l)&&Math.floor(l)===l)||l<0){var a=o?n:"highWaterMark";throw new ERR_INVALID_OPT_VALUE$2(a,l)}return Math.floor(l)}return e.objectMode?16:16*1024}var state$3={getHighWaterMark:getHighWaterMark$2},browser$d=deprecate;function deprecate(e,t){if(config("noDeprecation"))return e;var n=!1;function o(){if(!n){if(config("throwDeprecation"))throw new Error(t);config("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return o}function config(e){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var t=commonjsGlobal.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var _stream_writable$4,hasRequired_stream_writable$4;function require_stream_writable$4(){if(hasRequired_stream_writable$4)return _stream_writable$4;hasRequired_stream_writable$4=1,_stream_writable$4=ue;function e(U){var P=this;this.next=null,this.entry=null,this.finish=function(){le(P,U)}}var t;ue.WritableState=ae;var n={deprecate:browser$d},o=streamBrowser$4,l=buffer$2.Buffer,a=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d(U){return l.from(U)}function y(U){return l.isBuffer(U)||U instanceof a}var w=destroy_1$4,_=state$3,S=_.getHighWaterMark,E=errorsBrowser$3.codes,C=E.ERR_INVALID_ARG_TYPE,B=E.ERR_METHOD_NOT_IMPLEMENTED,L=E.ERR_MULTIPLE_CALLBACK,F=E.ERR_STREAM_CANNOT_PIPE,q=E.ERR_STREAM_DESTROYED,H=E.ERR_STREAM_NULL_VALUES,D=E.ERR_STREAM_WRITE_AFTER_END,j=E.ERR_UNKNOWN_ENCODING,V=w.errorOrDestroy;inherits_browserExports(ue,o);function Q(){}function ae(U,P,Z){t=t||require_stream_duplex$4(),U=U||{},typeof Z!="boolean"&&(Z=P instanceof t),this.objectMode=!!U.objectMode,Z&&(this.objectMode=this.objectMode||!!U.writableObjectMode),this.highWaterMark=S(this,U,"writableHighWaterMark",Z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=U.decodeStrings===!1;this.decodeStrings=!ie,this.defaultEncoding=U.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){M(P,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}ae.prototype.getBuffer=function(){for(var P=this.bufferedRequest,Z=[];P;)Z.push(P),P=P.next;return Z},function(){try{Object.defineProperty(ae.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ce;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ce=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(P){return ce.call(this,P)?!0:this!==ue?!1:P&&P._writableState instanceof ae}})):ce=function(P){return P instanceof this};function ue(U){t=t||require_stream_duplex$4();var P=this instanceof t;if(!P&&!ce.call(ue,this))return new ue(U);this._writableState=new ae(U,this,P),this.writable=!0,U&&(typeof U.write=="function"&&(this._write=U.write),typeof U.writev=="function"&&(this._writev=U.writev),typeof U.destroy=="function"&&(this._destroy=U.destroy),typeof U.final=="function"&&(this._final=U.final)),o.call(this)}ue.prototype.pipe=function(){V(this,new F)};function re(U,P){var Z=new D;V(U,Z),api$2.nextTick(P,Z)}function pe(U,P,Z,ie){var se;return Z===null?se=new H:typeof Z!="string"&&!P.objectMode&&(se=new C("chunk",["string","Buffer"],Z)),se?(V(U,se),api$2.nextTick(ie,se),!1):!0}ue.prototype.write=function(U,P,Z){var ie=this._writableState,se=!1,k=!ie.objectMode&&y(U);return k&&!l.isBuffer(U)&&(U=d(U)),typeof P=="function"&&(Z=P,P=null),k?P="buffer":P||(P=ie.defaultEncoding),typeof Z!="function"&&(Z=Q),ie.ending?re(this,Z):(k||pe(this,ie,U,Z))&&(ie.pendingcb++,se=u(this,ie,k,U,P,Z)),se},ue.prototype.cork=function(){this._writableState.corked++},ue.prototype.uncork=function(){var U=this._writableState;U.corked&&(U.corked--,!U.writing&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&$(this,U))},ue.prototype.setDefaultEncoding=function(P){if(typeof P=="string"&&(P=P.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((P+"").toLowerCase())>-1))throw new j(P);return this._writableState.defaultEncoding=P,this},Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function T(U,P,Z){return!U.objectMode&&U.decodeStrings!==!1&&typeof P=="string"&&(P=l.from(P,Z)),P}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function u(U,P,Z,ie,se,k){if(!Z){var I=T(P,ie,se);ie!==I&&(Z=!0,se="buffer",ie=I)}var te=P.objectMode?1:ie.length;P.length+=te;var ee=P.length */(function(e,t){var n=buffer$2,o=n.Buffer;function l(d,y){for(var w in d)y[w]=d[w]}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(l(n,t),t.Buffer=a);function a(d,y,w){return o(d,y,w)}a.prototype=Object.create(o.prototype),l(o,a),a.from=function(d,y,w){if(typeof d=="number")throw new TypeError("Argument must not be a number");return o(d,y,w)},a.alloc=function(d,y,w){if(typeof d!="number")throw new TypeError("Argument must be a number");var _=o(d);return y!==void 0?typeof w=="string"?_.fill(y,w):_.fill(y):_.fill(0),_},a.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return o(d)},a.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(d)}})(safeBuffer$2,safeBuffer$2.exports);var safeBufferExports$1=safeBuffer$2.exports,hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var e=safeBufferExports$1.Buffer,t=e.isEncoding||function(H){switch(H=""+H,H&&H.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(H){if(!H)return"utf8";for(var D;;)switch(H){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return H;default:if(D)return;H=(""+H).toLowerCase(),D=!0}}function o(H){var D=n(H);if(typeof D!="string"&&(e.isEncoding===t||!t(H)))throw new Error("Unknown encoding: "+H);return D||H}string_decoder.StringDecoder=l;function l(H){this.encoding=o(H);var D;switch(this.encoding){case"utf16le":this.text=E,this.end=C,D=4;break;case"utf8":this.fillLast=w,D=4;break;case"base64":this.text=B,this.end=L,D=3;break;default:this.write=F,this.end=q;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(D)}l.prototype.write=function(H){if(H.length===0)return"";var D,j;if(this.lastNeed){if(D=this.fillLast(H),D===void 0)return"";j=this.lastNeed,this.lastNeed=0}else j=0;return j>5===6?2:H>>4===14?3:H>>3===30?4:H>>6===2?-1:-2}function d(H,D,j){var V=D.length-1;if(V=0?(Q>0&&(H.lastNeed=Q-1),Q):--V=0?(Q>0&&(H.lastNeed=Q-2),Q):--V=0?(Q>0&&(Q===2?Q=0:H.lastNeed=Q-3),Q):0))}function y(H,D,j){if((D[0]&192)!==128)return H.lastNeed=0,"�";if(H.lastNeed>1&&D.length>1){if((D[1]&192)!==128)return H.lastNeed=1,"�";if(H.lastNeed>2&&D.length>2&&(D[2]&192)!==128)return H.lastNeed=2,"�"}}function w(H){var D=this.lastTotal-this.lastNeed,j=y(this,H);if(j!==void 0)return j;if(this.lastNeed<=H.length)return H.copy(this.lastChar,D,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);H.copy(this.lastChar,D,0,H.length),this.lastNeed-=H.length}function _(H,D){var j=d(this,H,D);if(!this.lastNeed)return H.toString("utf8",D);this.lastTotal=j;var V=H.length-(j-this.lastNeed);return H.copy(this.lastChar,0,V),H.toString("utf8",D,V)}function S(H){var D=H&&H.length?this.write(H):"";return this.lastNeed?D+"�":D}function E(H,D){if((H.length-D)%2===0){var j=H.toString("utf16le",D);if(j){var V=j.charCodeAt(j.length-1);if(V>=55296&&V<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=H[H.length-2],this.lastChar[1]=H[H.length-1],j.slice(0,-1)}return j}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=H[H.length-1],H.toString("utf16le",D,H.length-1)}function C(H){var D=H&&H.length?this.write(H):"";if(this.lastNeed){var j=this.lastTotal-this.lastNeed;return D+this.lastChar.toString("utf16le",0,j)}return D}function B(H,D){var j=(H.length-D)%3;return j===0?H.toString("base64",D):(this.lastNeed=3-j,this.lastTotal=3,j===1?this.lastChar[0]=H[H.length-1]:(this.lastChar[0]=H[H.length-2],this.lastChar[1]=H[H.length-1]),H.toString("base64",D,H.length-j))}function L(H){var D=H&&H.length?this.write(H):"";return this.lastNeed?D+this.lastChar.toString("base64",0,3-this.lastNeed):D}function F(H){return H.toString(this.encoding)}function q(H){return H&&H.length?this.write(H):""}return string_decoder}var ERR_STREAM_PREMATURE_CLOSE$2=errorsBrowser$3.codes.ERR_STREAM_PREMATURE_CLOSE;function once$8(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,o=new Array(n),l=0;l0)if(typeof I!="string"&&!J.objectMode&&Object.getPrototypeOf(I)!==o.prototype&&(I=a(I)),ee)J.endEmitted?Q(k,new H):T(k,J,I,!0);else if(J.ended)Q(k,new F);else{if(J.destroyed)return!1;J.reading=!1,J.decoder&&!te?(I=J.decoder.write(I),J.objectMode||I.length!==0?T(k,J,I,!1):$(k,J)):T(k,J,I,!1)}else ee||(J.reading=!1,$(k,J))}return!J.ended&&(J.length=v?k=v:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function b(k,I){return k<=0||I.length===0&&I.ended?0:I.objectMode?1:k!==k?I.flowing&&I.length?I.buffer.head.data.length:I.length:(k>I.highWaterMark&&(I.highWaterMark=m(k)),k<=I.length?k:I.ended?I.length:(I.needReadable=!0,0))}re.prototype.read=function(k){w("read",k),k=parseInt(k,10);var I=this._readableState,te=k;if(k!==0&&(I.emittedReadable=!1),k===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return w("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?Z(this):A(this),null;if(k=b(k,I),k===0&&I.ended)return I.length===0&&Z(this),null;var ee=I.needReadable;w("need readable",ee),(I.length===0||I.length-k0?fe=P(k,I):fe=null,fe===null?(I.needReadable=I.length<=I.highWaterMark,k=0):(I.length-=k,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),te!==k&&I.ended&&Z(this)),fe!==null&&this.emit("data",fe),fe};function M(k,I){if(w("onEofChunk"),!I.ended){if(I.decoder){var te=I.decoder.end();te&&te.length&&(I.buffer.push(te),I.length+=I.objectMode?1:te.length)}I.ended=!0,I.sync?A(k):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,O(k)))}}function A(k){var I=k._readableState;w("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(w("emitReadable",I.flowing),I.emittedReadable=!0,api$2.nextTick(O,k))}function O(k){var I=k._readableState;w("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(k.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,U(k)}function $(k,I){I.readingMore||(I.readingMore=!0,api$2.nextTick(c,k,I))}function c(k,I){for(;!I.reading&&!I.ended&&(I.length1&&se(ee.pipes,k)!==-1)&&!me&&(w("false write response, pause",ee.awaitDrain),ee.awaitDrain++),te.pause())}function Re(Se){w("onerror",Se),qe(),k.removeListener("error",Re),t(k,"error")===0&&Q(k,Se)}ce(k,"error",Re);function _e(){k.removeListener("finish",we),qe()}k.once("close",_e);function we(){w("onfinish"),k.removeListener("close",_e),qe()}k.once("finish",we);function qe(){w("unpipe"),te.unpipe(k)}return k.emit("pipe",te),ee.flowing||(w("pipe resume"),te.resume()),k};function x(k){return function(){var te=k._readableState;w("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&t(k,"data")&&(te.flowing=!0,U(k))}}re.prototype.unpipe=function(k){var I=this._readableState,te={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return k&&k!==I.pipes?this:(k||(k=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,k&&k.emit("unpipe",this,te),this);if(!k){var ee=I.pipes,fe=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var J=0;J0,ee.flowing!==!1&&this.resume()):k==="readable"&&!ee.endEmitted&&!ee.readableListening&&(ee.readableListening=ee.needReadable=!0,ee.flowing=!1,ee.emittedReadable=!1,w("on readable",ee.length,ee.reading),ee.length?A(this):ee.reading||api$2.nextTick(z,this)),te},re.prototype.addListener=re.prototype.on,re.prototype.removeListener=function(k,I){var te=n.prototype.removeListener.call(this,k,I);return k==="readable"&&api$2.nextTick(N,this),te},re.prototype.removeAllListeners=function(k){var I=n.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&api$2.nextTick(N,this),I};function N(k){var I=k._readableState;I.readableListening=k.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:k.listenerCount("data")>0&&k.resume()}function z(k){w("readable nexttick read 0"),k.read(0)}re.prototype.resume=function(){var k=this._readableState;return k.flowing||(w("resume"),k.flowing=!k.readableListening,oe(this,k)),k.paused=!1,this};function oe(k,I){I.resumeScheduled||(I.resumeScheduled=!0,api$2.nextTick(le,k,I))}function le(k,I){w("resume",I.reading),I.reading||k.read(0),I.resumeScheduled=!1,k.emit("resume"),U(k),I.flowing&&!I.reading&&k.read(0)}re.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function U(k){var I=k._readableState;for(w("flow",I.flowing);I.flowing&&k.read()!==null;);}re.prototype.wrap=function(k){var I=this,te=this._readableState,ee=!1;k.on("end",function(){if(w("wrapped end"),te.decoder&&!te.ended){var Y=te.decoder.end();Y&&Y.length&&I.push(Y)}I.push(null)}),k.on("data",function(Y){if(w("wrapped data"),te.decoder&&(Y=te.decoder.write(Y)),!(te.objectMode&&Y==null)&&!(!te.objectMode&&(!Y||!Y.length))){var X=I.push(Y);X||(ee=!0,k.pause())}});for(var fe in k)this[fe]===void 0&&typeof k[fe]=="function"&&(this[fe]=function(X){return function(){return k[X].apply(k,arguments)}}(fe));for(var J=0;J=I.length?(I.decoder?te=I.buffer.join(""):I.buffer.length===1?te=I.buffer.first():te=I.buffer.concat(I.length),I.buffer.clear()):te=I.buffer.consume(k,I.decoder),te}function Z(k){var I=k._readableState;w("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,api$2.nextTick(ie,I,k))}function ie(k,I){if(w("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,I.readable=!1,I.emit("end"),k.autoDestroy)){var te=I._writableState;(!te||te.autoDestroy&&te.finished)&&I.destroy()}}typeof Symbol=="function"&&(re.from=function(k,I){return V===void 0&&(V=requireFromBrowser$3()),V(re,k,I)});function se(k,I){for(var te=0,ee=k.length;te0;return destroyer$3(d,w,_,function(S){l||(l=S),S&&a.forEach(call$2),!w&&(a.forEach(call$2),o(l))})});return t.reduce(pipe$2)}var pipeline_1$3=pipeline$2;(function(e,t){t=e.exports=require_stream_readable$4(),t.Stream=t,t.Readable=t,t.Writable=require_stream_writable$4(),t.Duplex=require_stream_duplex$4(),t.Transform=_stream_transform$4,t.PassThrough=_stream_passthrough$4,t.finished=endOfStream$4,t.pipeline=pipeline_1$3})(readableBrowser$3,readableBrowser$3.exports);var readableBrowserExports$3=readableBrowser$3.exports;const xtend$2=immutable,Readable=readableBrowserExports$3.Readable,streamsOpts={objectMode:!0},defaultStoreOptions={clean:!0};function Store$3(e){if(!(this instanceof Store$3))return new Store$3(e);this.options=e||{},this.options=xtend$2(defaultStoreOptions,e),this._inflights=new Map}Store$3.prototype.put=function(e,t){return this._inflights.set(e.messageId,e),t&&t(),this};Store$3.prototype.createStream=function(){const e=new Readable(streamsOpts),t=[];let n=!1,o=0;return this._inflights.forEach(function(l,a){t.push(l)}),e._read=function(){!n&&othis.max?!1:(this.aliasToTopic[t]=e,this.length=Object.keys(this.aliasToTopic).length,!0)};TopicAliasRecv$1.prototype.getTopicByAlias=function(e){return this.aliasToTopic[e]};TopicAliasRecv$1.prototype.clear=function(){this.aliasToTopic={}};var topicAliasRecv=TopicAliasRecv$1,iterator,hasRequiredIterator;function requireIterator(){return hasRequiredIterator||(hasRequiredIterator=1,iterator=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),iterator}var yallist=Yallist$1;Yallist$1.Node=Node$1;Yallist$1.create=Yallist$1;function Yallist$1(e){var t=this;if(t instanceof Yallist$1||(t=new Yallist$1),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(l){t.push(l)});else if(arguments.length>0)for(var n=0,o=arguments.length;n1)n=t;else if(this.head)o=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;o!==null;l++)n=e(n,o.value,l),o=o.next;return n};Yallist$1.prototype.reduceReverse=function(e,t){var n,o=this.tail;if(arguments.length>1)n=t;else if(this.tail)o=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;o!==null;l--)n=e(n,o.value,l),o=o.prev;return n};Yallist$1.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};Yallist$1.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};Yallist$1.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new Yallist$1;if(tthis.length&&(t=this.length);for(var o=0,l=this.head;l!==null&&othis.length&&(t=this.length);for(var o=this.length,l=this.tail;l!==null&&o>t;o--)l=l.prev;for(;l!==null&&o>e;o--,l=l.prev)n.push(l.value);return n};Yallist$1.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var o=0,l=this.head;l!==null&&o1;class LRUCache{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[MAX]=t.max||1/0;const n=t.length||naiveLength;if(this[LENGTH_CALCULATOR]=typeof n!="function"?naiveLength:n,this[ALLOW_STALE]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[MAX_AGE]=t.maxAge||0,this[DISPOSE]=t.dispose,this[NO_DISPOSE_ON_SET]=t.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[MAX]=t||1/0,trim(this)}get max(){return this[MAX]}set allowStale(t){this[ALLOW_STALE]=!!t}get allowStale(){return this[ALLOW_STALE]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=t,trim(this)}get maxAge(){return this[MAX_AGE]}set lengthCalculator(t){typeof t!="function"&&(t=naiveLength),t!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=t,this[LENGTH$1]=0,this[LRU_LIST].forEach(n=>{n.length=this[LENGTH_CALCULATOR](n.value,n.key),this[LENGTH$1]+=n.length})),trim(this)}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH$1]}get itemCount(){return this[LRU_LIST].length}rforEach(t,n){n=n||this;for(let o=this[LRU_LIST].tail;o!==null;){const l=o.prev;forEachStep(this,t,o,n),o=l}}forEach(t,n){n=n||this;for(let o=this[LRU_LIST].head;o!==null;){const l=o.next;forEachStep(this,t,o,n),o=l}}keys(){return this[LRU_LIST].toArray().map(t=>t.key)}values(){return this[LRU_LIST].toArray().map(t=>t.value)}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach(t=>this[DISPOSE](t.key,t.value)),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH$1]=0}dump(){return this[LRU_LIST].map(t=>isStale(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[LRU_LIST]}set(t,n,o){if(o=o||this[MAX_AGE],o&&typeof o!="number")throw new TypeError("maxAge must be a number");const l=o?Date.now():0,a=this[LENGTH_CALCULATOR](n,t);if(this[CACHE].has(t)){if(a>this[MAX])return del(this,this[CACHE].get(t)),!1;const w=this[CACHE].get(t).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](t,w.value)),w.now=l,w.maxAge=o,w.value=n,this[LENGTH$1]+=a-w.length,w.length=a,this.get(t),trim(this),!0}const d=new Entry(t,n,a,l,o);return d.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](t,n),!1):(this[LENGTH$1]+=d.length,this[LRU_LIST].unshift(d),this[CACHE].set(t,this[LRU_LIST].head),trim(this),!0)}has(t){if(!this[CACHE].has(t))return!1;const n=this[CACHE].get(t).value;return!isStale(this,n)}get(t){return get(this,t,!0)}peek(t){return get(this,t,!1)}pop(){const t=this[LRU_LIST].tail;return t?(del(this,t),t.value):null}del(t){del(this,this[CACHE].get(t))}load(t){this.reset();const n=Date.now();for(let o=t.length-1;o>=0;o--){const l=t[o],a=l.e||0;if(a===0)this.set(l.k,l.v);else{const d=a-n;d>0&&this.set(l.k,l.v,d)}}}prune(){this[CACHE].forEach((t,n)=>get(this,n,!1))}}const get=(e,t,n)=>{const o=e[CACHE].get(t);if(o){const l=o.value;if(isStale(e,l)){if(del(e,o),!e[ALLOW_STALE])return}else n&&(e[UPDATE_AGE_ON_GET]&&(o.value.now=Date.now()),e[LRU_LIST].unshiftNode(o));return l.value}},isStale=(e,t)=>{if(!t||!t.maxAge&&!e[MAX_AGE])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[MAX_AGE]&&n>e[MAX_AGE]},trim=e=>{if(e[LENGTH$1]>e[MAX])for(let t=e[LRU_LIST].tail;e[LENGTH$1]>e[MAX]&&t!==null;){const n=t.prev;del(e,t),t=n}},del=(e,t)=>{if(t){const n=t.value;e[DISPOSE]&&e[DISPOSE](n.key,n.value),e[LENGTH$1]-=n.length,e[CACHE].delete(n.key),e[LRU_LIST].removeNode(t)}};class Entry{constructor(t,n,o,l,a){this.key=t,this.value=n,this.length=o,this.now=l,this.maxAge=a||0}}const forEachStep=(e,t,n,o)=>{let l=n.value;isStale(e,l)&&(del(e,n),e[ALLOW_STALE]||(l=void 0)),l&&t.call(o,l.value,l.key,e)};var lruCache=LRUCache,numberAllocator$1={},__extends$g=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),ContainerIterator=function(){function e(t){t===void 0&&(t=0),this.iteratorType=t}return e.prototype.equals=function(t){return this.o===t.o},e}(),Base$6=function(){function e(){this.M=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this.M},enumerable:!1,configurable:!0}),e.prototype.size=function(){return this.M},e.prototype.empty=function(){return this.M===0},e}(),Container=function(e){__extends$g(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Base$6),__extends$f=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Stack=function(e){__extends$f(t,e);function t(n){n===void 0&&(n=[]);var o=e.call(this)||this;o.nt=[];var l=o;return n.forEach(function(a){l.push(a)}),o}return t.prototype.clear=function(){this.M=0,this.nt=[]},t.prototype.push=function(n){return this.nt.push(n),this.M+=1,this.M},t.prototype.pop=function(){if(this.M!==0)return this.M-=1,this.nt.pop()},t.prototype.top=function(){return this.nt[this.M-1]},t}(Base$6);const Stack$1=Stack;var __extends$e=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Queue=function(e){__extends$e(t,e);function t(n){n===void 0&&(n=[]);var o=e.call(this)||this;o.A=0,o.tt=[];var l=o;return n.forEach(function(a){l.push(a)}),o}return t.prototype.clear=function(){this.tt=[],this.M=this.A=0},t.prototype.push=function(n){var o=this.tt.length;if(this.A/o>.5&&this.A+this.M>=o&&o>4096){for(var l=this.M,a=0;a0)&&!(l=o.next()).done;)a.push(l.value)}catch(y){d={error:y}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(d)throw d.error}}return a},__spreadArray$2=globalThis&&globalThis.D||function(e,t,n){if(n||arguments.length===2)for(var o=0,l=t.length,a;oS?-1:_>1,w=a.M-1>>1;w>=0;--w)a.ri(w,y);return a}return t.prototype.ti=function(n){for(var o=this.ii[n];n>0;){var l=n-1>>1,a=this.ii[l];if(this.$(a,o)<=0)break;this.ii[n]=a,n=l}this.ii[n]=o},t.prototype.ri=function(n,o){for(var l=this.ii[n];n0&&(a=d,y=this.ii[d]),this.$(y,l)>=0)break;this.ii[n]=y,n=a}this.ii[n]=l},t.prototype.clear=function(){this.M=0,this.ii.length=0},t.prototype.push=function(n){this.ii.push(n),this.ti(this.M),this.M+=1},t.prototype.pop=function(){if(this.M!==0){var n=this.ii[0],o=this.ii.pop();return this.M-=1,this.M&&(this.ii[0]=o,this.ri(0,this.M>>1)),n}},t.prototype.top=function(){return this.ii[0]},t.prototype.find=function(n){return this.ii.indexOf(n)>=0},t.prototype.remove=function(n){var o=this.ii.indexOf(n);return o<0?!1:(o===0?this.pop():o===this.M-1?(this.ii.pop(),this.M-=1):(this.ii.splice(o,1,this.ii.pop()),this.M-=1,this.ti(o),this.ri(o,this.M>>1)),!0)},t.prototype.updateItem=function(n){var o=this.ii.indexOf(n);return o<0?!1:(this.ti(o),this.ri(o,this.M>>1),!0)},t.prototype.toArray=function(){return __spreadArray$2([],__read$3(this.ii),!1)},t}(Base$6);const PriorityQueue$1=PriorityQueue;var __extends$c=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),SequentialContainer=function(e){__extends$c(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Container);const SequentialContainer$1=SequentialContainer;function throwIteratorAccessError(){throw new RangeError("Iterator access denied!")}var __extends$b=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),RandomIterator=function(e){__extends$b(t,e);function t(n,o){var l=e.call(this,o)||this;return l.o=n,l.iteratorType===0?(l.pre=function(){return this.o===0&&throwIteratorAccessError(),this.o-=1,this},l.next=function(){return this.o===this.container.size()&&throwIteratorAccessError(),this.o+=1,this}):(l.pre=function(){return this.o===this.container.size()-1&&throwIteratorAccessError(),this.o+=1,this},l.next=function(){return this.o===-1&&throwIteratorAccessError(),this.o-=1,this}),l}return Object.defineProperty(t.prototype,"pointer",{get:function(){return this.container.getElementByPos(this.o)},set:function(n){this.container.setElementByPos(this.o,n)},enumerable:!1,configurable:!0}),t}(ContainerIterator),__extends$a=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),__generator$6=globalThis&&globalThis.i||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(_){return function(S){return w([_,S])}}function w(_){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,l&&(a=_[0]&2?l.return:_[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,_[1])).done)return a;switch(l=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return n.label++,{value:_[1],done:!1};case 5:n.label++,l=_[1],_=[0];continue;case 7:_=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]0)&&!(l=o.next()).done;)a.push(l.value)}catch(y){d={error:y}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(d)throw d.error}}return a},__spreadArray$1=globalThis&&globalThis.D||function(e,t,n){if(n||arguments.length===2)for(var o=0,l=t.length,a;o=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},VectorIterator=function(e){__extends$a(t,e);function t(n,o,l){var a=e.call(this,n,l)||this;return a.container=o,a}return t.prototype.copy=function(){return new t(this.o,this.container,this.iteratorType)},t}(RandomIterator),Vector=function(e){__extends$a(t,e);function t(n,o){n===void 0&&(n=[]),o===void 0&&(o=!0);var l=e.call(this)||this;if(Array.isArray(n))l.J=o?__spreadArray$1([],__read$2(n),!1):n,l.M=n.length;else{l.J=[];var a=l;n.forEach(function(d){a.pushBack(d)})}return l}return t.prototype.clear=function(){this.M=0,this.J.length=0},t.prototype.begin=function(){return new VectorIterator(0,this)},t.prototype.end=function(){return new VectorIterator(this.M,this)},t.prototype.rBegin=function(){return new VectorIterator(this.M-1,this,1)},t.prototype.rEnd=function(){return new VectorIterator(-1,this,1)},t.prototype.front=function(){return this.J[0]},t.prototype.back=function(){return this.J[this.M-1]},t.prototype.getElementByPos=function(n){if(n<0||n>this.M-1)throw new RangeError;return this.J[n]},t.prototype.eraseElementByPos=function(n){if(n<0||n>this.M-1)throw new RangeError;return this.J.splice(n,1),this.M-=1,this.M},t.prototype.eraseElementByValue=function(n){for(var o=0,l=0;lthis.M-1)throw new RangeError;this.J[n]=o},t.prototype.insert=function(n,o,l){var a;if(l===void 0&&(l=1),n<0||n>this.M)throw new RangeError;return(a=this.J).splice.apply(a,__spreadArray$1([n,0],__read$2(new Array(l).fill(o)),!1)),this.M+=l,this.M},t.prototype.find=function(n){for(var o=0;o0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]this.M-1)throw new RangeError;for(var o=this.H;n--;)o=o.m;return o.p},t.prototype.eraseElementByPos=function(n){if(n<0||n>this.M-1)throw new RangeError;for(var o=this.H;n--;)o=o.m;return this.G(o),this.M},t.prototype.eraseElementByValue=function(n){for(var o=this.H;o!==this.h;)o.p===n&&this.G(o),o=o.m;return this.M},t.prototype.eraseElementByIterator=function(n){var o=n.o;return o===this.h&&throwIteratorAccessError(),n=n.next(),this.G(o),n},t.prototype.pushBack=function(n){return this.F(n,this.l),this.M},t.prototype.popBack=function(){if(this.M!==0){var n=this.l.p;return this.G(this.l),n}},t.prototype.pushFront=function(n){return this.F(n,this.h),this.M},t.prototype.popFront=function(){if(this.M!==0){var n=this.H.p;return this.G(this.H),n}},t.prototype.setElementByPos=function(n,o){if(n<0||n>this.M-1)throw new RangeError;for(var l=this.H;n--;)l=l.m;l.p=o},t.prototype.insert=function(n,o,l){if(l===void 0&&(l=1),n<0||n>this.M)throw new RangeError;if(l<=0)return this.M;if(n===0)for(;l--;)this.pushFront(o);else if(n===this.M)for(;l--;)this.pushBack(o);else{for(var a=this.H,d=1;d0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]0)&&!(l=o.next()).done;)a.push(l.value)}catch(y){d={error:y}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(d)throw d.error}}return a},__spreadArray=globalThis&&globalThis.D||function(e,t,n){if(n||arguments.length===2)for(var o=0,l=t.length,a;o>1)-(y>>1),l.S=l.k=l.B-a%l.B>>1;var w=l;return n.forEach(function(_){w.pushBack(_)}),l}return t.prototype.O=function(){for(var n=[],o=Math.max(this.C>>1,1),l=0;l>1},t.prototype.begin=function(){return new DequeIterator(0,this)},t.prototype.end=function(){return new DequeIterator(this.M,this)},t.prototype.rBegin=function(){return new DequeIterator(this.M-1,this,1)},t.prototype.rEnd=function(){return new DequeIterator(-1,this,1)},t.prototype.front=function(){if(this.M!==0)return this.j[this.A][this.S]},t.prototype.back=function(){if(this.M!==0)return this.j[this.R][this.k]},t.prototype.pushBack=function(n){return this.M&&(this.k0?this.k-=1:this.R>0?(this.R-=1,this.k=this.B-1):(this.R=this.C-1,this.k=this.B-1)),this.M-=1,n}},t.prototype.pushFront=function(n){return this.M&&(this.S>0?this.S-=1:this.A>0?(this.A-=1,this.S=this.B-1):(this.A=this.C-1,this.S=this.B-1),this.A===this.R&&this.S===this.k&&this.O()),this.M+=1,this.j[this.A][this.S]=n,this.M},t.prototype.popFront=function(){if(this.M!==0){var n=this.j[this.A][this.S];return this.M!==1&&(this.Sthis.M-1)throw new RangeError;var o=this.T(n),l=o.curNodeBucketIndex,a=o.curNodePointerIndex;return this.j[l][a]},t.prototype.setElementByPos=function(n,o){if(n<0||n>this.M-1)throw new RangeError;var l=this.T(n),a=l.curNodeBucketIndex,d=l.curNodePointerIndex;this.j[a][d]=o},t.prototype.insert=function(n,o,l){if(l===void 0&&(l=1),n<0||n>this.M)throw new RangeError;if(n===0)for(;l--;)this.pushFront(o);else if(n===this.M)for(;l--;)this.pushBack(o);else{for(var a=[],d=n;dthis.M-1)throw new RangeError;if(n===0)this.popFront();else if(n===this.M-1)this.popBack();else{for(var o=[],l=n+1;ln;)this.popBack();return this.M},t.prototype.sort=function(n){for(var o=[],l=0;l0)&&!(l=o.next()).done;)a.push(l.value)}catch(y){d={error:y}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(d)throw d.error}}return a},__values$2=globalThis&&globalThis.V||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},TreeContainer=function(e){__extends$6(t,e);function t(n,o){n===void 0&&(n=function(a,d){return ad?1:0}),o===void 0&&(o=!1);var l=e.call(this)||this;return l.W=void 0,l.$=n,o?(l.re=TreeNodeEnableIndex,l.v=function(a,d,y){var w=this.se(a,d,y);if(w){for(var _=w.rr;_!==this.h;)_.tr+=1,_=_.rr;var S=this.fe(w);if(S){var E=S,C=E.parentNode,B=E.grandParent,L=E.curNode;C.ie(),B.ie(),L.ie()}}return this.M},l.G=function(a){for(var d=this.he(a);d!==this.h;)d.tr-=1,d=d.rr}):(l.re=TreeNode,l.v=function(a,d,y){var w=this.se(a,d,y);return w&&this.fe(w),this.M},l.G=l.he),l.h=new l.re,l}return t.prototype.U=function(n,o){for(var l=this.h;n;){var a=this.$(n.u,o);if(a<0)n=n.N;else if(a>0)l=n,n=n.K;else return n}return l},t.prototype.X=function(n,o){for(var l=this.h;n;){var a=this.$(n.u,o);a<=0?n=n.N:(l=n,n=n.K)}return l},t.prototype.Y=function(n,o){for(var l=this.h;n;){var a=this.$(n.u,o);if(a<0)l=n,n=n.N;else if(a>0)n=n.K;else return n}return l},t.prototype.Z=function(n,o){for(var l=this.h;n;){var a=this.$(n.u,o);a<0?(l=n,n=n.N):n=n.K}return l},t.prototype.ue=function(n){for(;;){var o=n.rr;if(o===this.h)return;if(n.ee===1){n.ee=0;return}if(n===o.K){var l=o.N;if(l.ee===1)l.ee=0,o.ee=1,o===this.W?this.W=o.ne():o.ne();else if(l.N&&l.N.ee===1){l.ee=o.ee,o.ee=0,l.N.ee=0,o===this.W?this.W=o.ne():o.ne();return}else l.K&&l.K.ee===1?(l.ee=1,l.K.ee=0,l.te()):(l.ee=1,n=o)}else{var l=o.K;if(l.ee===1)l.ee=0,o.ee=1,o===this.W?this.W=o.te():o.te();else if(l.K&&l.K.ee===1){l.ee=o.ee,o.ee=0,l.K.ee=0,o===this.W?this.W=o.te():o.te();return}else l.N&&l.N.ee===1?(l.ee=1,l.N.ee=0,l.ne()):(l.ee=1,n=o)}}},t.prototype.he=function(n){var o,l;if(this.M===1)return this.clear(),this.h;for(var a=n;a.K||a.N;){if(a.N)for(a=a.N;a.K;)a=a.K;else a=a.K;o=__read([a.u,n.u],2),n.u=o[0],a.u=o[1],l=__read([a.p,n.p],2),n.p=l[0],a.p=l[1],n=a}this.h.K===a?this.h.K=a.rr:this.h.N===a&&(this.h.N=a.rr),this.ue(a);var d=a.rr;return a===d.K?d.K=void 0:d.N=void 0,this.M-=1,this.W.ee=0,d},t.prototype.ae=function(n,o){if(n===void 0)return!1;var l=this.ae(n.K,o);return l||o(n)?!0:this.ae(n.N,o)},t.prototype.fe=function(n){for(;;){var o=n.rr;if(o.ee===0)return;var l=o.rr;if(o===l.K){var a=l.N;if(a&&a.ee===1){if(a.ee=o.ee=0,l===this.W)return;l.ee=1,n=l;continue}else if(n===o.N){if(n.ee=0,n.K&&(n.K.rr=o),n.N&&(n.N.rr=l),o.N=n.K,l.K=n.N,n.K=o,n.N=l,l===this.W)this.W=n,this.h.rr=n;else{var d=l.rr;d.K===l?d.K=n:d.N=n}return n.rr=l.rr,o.rr=n,l.rr=n,l.ee=1,{parentNode:o,grandParent:l,curNode:n}}else o.ee=0,l===this.W?this.W=l.te():l.te(),l.ee=1}else{var a=l.K;if(a&&a.ee===1){if(a.ee=o.ee=0,l===this.W)return;l.ee=1,n=l;continue}else if(n===o.K){if(n.ee=0,n.K&&(n.K.rr=l),n.N&&(n.N.rr=o),l.N=n.K,o.K=n.N,n.K=l,n.N=o,l===this.W)this.W=n,this.h.rr=n;else{var d=l.rr;d.K===l?d.K=n:d.N=n}return n.rr=l.rr,o.rr=n,l.rr=n,l.ee=1,{parentNode:o,grandParent:l,curNode:n}}else o.ee=0,l===this.W?this.W=l.ne():l.ne(),l.ee=1}return}},t.prototype.se=function(n,o,l){if(this.W===void 0){this.M+=1,this.W=new this.re(n,o),this.W.ee=0,this.W.rr=this.h,this.h.rr=this.W,this.h.K=this.W,this.h.N=this.W;return}var a,d=this.h.K,y=this.$(d.u,n);if(y===0){d.p=o;return}else if(y>0)d.K=new this.re(n,o),d.K.rr=d,a=d.K,this.h.K=a;else{var w=this.h.N,_=this.$(w.u,n);if(_===0){w.p=o;return}else if(_<0)w.N=new this.re(n,o),w.N.rr=w,a=w.N,this.h.N=a;else{if(l!==void 0){var S=l.o;if(S!==this.h){var E=this.$(S.u,n);if(E===0){S.p=o;return}else if(E>0){var C=S.L(),B=this.$(C.u,n);if(B===0){C.p=o;return}else B<0&&(a=new this.re(n,o),C.N===void 0?(C.N=a,a.rr=C):(S.K=a,a.rr=S))}}}if(a===void 0)for(a=this.W;;){var L=this.$(a.u,n);if(L>0){if(a.K===void 0){a.K=new this.re(n,o),a.K.rr=a,a=a.K;break}a=a.K}else if(L<0){if(a.N===void 0){a.N=new this.re(n,o),a.N.rr=a,a=a.N;break}a=a.N}else{a.p=o;return}}}}return this.M+=1,a},t.prototype.g=function(n,o){for(;n;){var l=this.$(n.u,o);if(l<0)n=n.N;else if(l>0)n=n.K;else return n}return n||this.h},t.prototype.clear=function(){this.M=0,this.W=void 0,this.h.rr=void 0,this.h.K=this.h.N=void 0},t.prototype.updateKeyByIterator=function(n,o){var l=n.o;if(l===this.h&&throwIteratorAccessError(),this.M===1)return l.u=o,!0;if(l===this.h.K)return this.$(l.m().u,o)>0?(l.u=o,!0):!1;if(l===this.h.N)return this.$(l.L().u,o)<0?(l.u=o,!0):!1;var a=l.L().u;if(this.$(a,o)>=0)return!1;var d=l.m().u;return this.$(d,o)<=0?!1:(l.u=o,!0)},t.prototype.eraseElementByPos=function(n){if(n<0||n>this.M-1)throw new RangeError;var o=0,l=this;return this.ae(this.W,function(a){return n===o?(l.G(a),!0):(o+=1,!1)}),this.M},t.prototype.eraseElementByKey=function(n){if(this.M===0)return!1;var o=this.g(this.W,n);return o===this.h?!1:(this.G(o),!0)},t.prototype.eraseElementByIterator=function(n){var o=n.o;o===this.h&&throwIteratorAccessError();var l=o.N===void 0,a=n.iteratorType===0;return a?l&&n.next():(!l||o.K===void 0)&&n.next(),this.G(o),n},t.prototype.forEach=function(n){var o,l,a=0;try{for(var d=__values$2(this),y=d.next();!y.done;y=d.next()){var w=y.value;n(w,a++,this)}}catch(_){o={error:_}}finally{try{y&&!y.done&&(l=d.return)&&l.call(d)}finally{if(o)throw o.error}}},t.prototype.getElementByPos=function(n){var o,l;if(n<0||n>this.M-1)throw new RangeError;var a,d=0;try{for(var y=__values$2(this),w=y.next();!w.done;w=y.next()){var _=w.value;if(d===n){a=_;break}d+=1}}catch(S){o={error:S}}finally{try{w&&!w.done&&(l=y.return)&&l.call(y)}finally{if(o)throw o.error}}return a},t.prototype.getHeight=function(){if(this.M===0)return 0;var n=function(o){return o?Math.max(n(o.K),n(o.N))+1:0};return n(this.W)},t}(Container);const TreeContainer$1=TreeContainer;var __extends$5=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),TreeIterator=function(e){__extends$5(t,e);function t(n,o,l){var a=e.call(this,l)||this;return a.o=n,a.h=o,a.iteratorType===0?(a.pre=function(){return this.o===this.h.K&&throwIteratorAccessError(),this.o=this.o.L(),this},a.next=function(){return this.o===this.h&&throwIteratorAccessError(),this.o=this.o.m(),this}):(a.pre=function(){return this.o===this.h.N&&throwIteratorAccessError(),this.o=this.o.m(),this},a.next=function(){return this.o===this.h&&throwIteratorAccessError(),this.o=this.o.L(),this}),a}return Object.defineProperty(t.prototype,"index",{get:function(){var n=this.o,o=this.h.rr;if(n===this.h)return o?o.tr-1:0;var l=0;for(n.K&&(l+=n.K.tr);n!==o;){var a=n.rr;n===a.N&&(l+=1,a.K&&(l+=a.K.tr)),n=a}return l},enumerable:!1,configurable:!0}),t}(ContainerIterator);const TreeIterator$1=TreeIterator;var __extends$4=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),__generator$3=globalThis&&globalThis.i||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(_){return function(S){return w([_,S])}}function w(_){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,l&&(a=_[0]&2?l.return:_[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,_[1])).done)return a;switch(l=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return n.label++,{value:_[1],done:!1};case 5:n.label++,l=_[1],_=[0];continue;case 7:_=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},OrderedSetIterator=function(e){__extends$4(t,e);function t(n,o,l,a){var d=e.call(this,n,o,a)||this;return d.container=l,d}return Object.defineProperty(t.prototype,"pointer",{get:function(){return this.o===this.h&&throwIteratorAccessError(),this.o.u},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(TreeIterator$1),OrderedSet=function(e){__extends$4(t,e);function t(n,o,l){n===void 0&&(n=[]);var a=e.call(this,o,l)||this,d=a;return n.forEach(function(y){d.insert(y)}),a}return t.prototype.P=function(n){return __generator$3(this,function(o){switch(o.label){case 0:return n===void 0?[2]:[5,__values$1(this.P(n.K))];case 1:return o.sent(),[4,n.u];case 2:return o.sent(),[5,__values$1(this.P(n.N))];case 3:return o.sent(),[2]}})},t.prototype.begin=function(){return new OrderedSetIterator(this.h.K||this.h,this.h,this)},t.prototype.end=function(){return new OrderedSetIterator(this.h,this.h,this)},t.prototype.rBegin=function(){return new OrderedSetIterator(this.h.N||this.h,this.h,this,1)},t.prototype.rEnd=function(){return new OrderedSetIterator(this.h,this.h,this,1)},t.prototype.front=function(){return this.h.K?this.h.K.u:void 0},t.prototype.back=function(){return this.h.N?this.h.N.u:void 0},t.prototype.insert=function(n,o){return this.v(n,void 0,o)},t.prototype.find=function(n){var o=this.g(this.W,n);return new OrderedSetIterator(o,this.h,this)},t.prototype.lowerBound=function(n){var o=this.U(this.W,n);return new OrderedSetIterator(o,this.h,this)},t.prototype.upperBound=function(n){var o=this.X(this.W,n);return new OrderedSetIterator(o,this.h,this)},t.prototype.reverseLowerBound=function(n){var o=this.Y(this.W,n);return new OrderedSetIterator(o,this.h,this)},t.prototype.reverseUpperBound=function(n){var o=this.Z(this.W,n);return new OrderedSetIterator(o,this.h,this)},t.prototype.union=function(n){var o=this;return n.forEach(function(l){o.insert(l)}),this.M},t.prototype[Symbol.iterator]=function(){return this.P(this.W)},t}(TreeContainer$1);const OrderedSet$1=OrderedSet;var __extends$3=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),__generator$2=globalThis&&globalThis.i||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(_){return function(S){return w([_,S])}}function w(_){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,l&&(a=_[0]&2?l.return:_[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,_[1])).done)return a;switch(l=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return n.label++,{value:_[1],done:!1};case 5:n.label++,l=_[1],_=[0];continue;case 7:_=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},OrderedMapIterator=function(e){__extends$3(t,e);function t(n,o,l,a){var d=e.call(this,n,o,a)||this;return d.container=l,d}return Object.defineProperty(t.prototype,"pointer",{get:function(){this.o===this.h&&throwIteratorAccessError();var n=this;return new Proxy([],{get:function(o,l){if(l==="0")return n.o.u;if(l==="1")return n.o.p},set:function(o,l,a){if(l!=="1")throw new TypeError("props must be 1");return n.o.p=a,!0}})},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(TreeIterator$1),OrderedMap=function(e){__extends$3(t,e);function t(n,o,l){n===void 0&&(n=[]);var a=e.call(this,o,l)||this,d=a;return n.forEach(function(y){d.setElement(y[0],y[1])}),a}return t.prototype.P=function(n){return __generator$2(this,function(o){switch(o.label){case 0:return n===void 0?[2]:[5,__values(this.P(n.K))];case 1:return o.sent(),[4,[n.u,n.p]];case 2:return o.sent(),[5,__values(this.P(n.N))];case 3:return o.sent(),[2]}})},t.prototype.begin=function(){return new OrderedMapIterator(this.h.K||this.h,this.h,this)},t.prototype.end=function(){return new OrderedMapIterator(this.h,this.h,this)},t.prototype.rBegin=function(){return new OrderedMapIterator(this.h.N||this.h,this.h,this,1)},t.prototype.rEnd=function(){return new OrderedMapIterator(this.h,this.h,this,1)},t.prototype.front=function(){if(this.M!==0){var n=this.h.K;return[n.u,n.p]}},t.prototype.back=function(){if(this.M!==0){var n=this.h.N;return[n.u,n.p]}},t.prototype.lowerBound=function(n){var o=this.U(this.W,n);return new OrderedMapIterator(o,this.h,this)},t.prototype.upperBound=function(n){var o=this.X(this.W,n);return new OrderedMapIterator(o,this.h,this)},t.prototype.reverseLowerBound=function(n){var o=this.Y(this.W,n);return new OrderedMapIterator(o,this.h,this)},t.prototype.reverseUpperBound=function(n){var o=this.Z(this.W,n);return new OrderedMapIterator(o,this.h,this)},t.prototype.setElement=function(n,o,l){return this.v(n,o,l)},t.prototype.find=function(n){var o=this.g(this.W,n);return new OrderedMapIterator(o,this.h,this)},t.prototype.getElementByKey=function(n){var o=this.g(this.W,n);return o.p},t.prototype.union=function(n){var o=this;return n.forEach(function(l){o.setElement(l[0],l[1])}),this.M},t.prototype[Symbol.iterator]=function(){return this.P(this.W)},t}(TreeContainer$1);const OrderedMap$1=OrderedMap;function checkObject(e){var t=typeof e;return t==="object"&&e!==null||t==="function"}var __extends$2=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),HashContainerIterator=function(e){__extends$2(t,e);function t(n,o,l){var a=e.call(this,l)||this;return a.o=n,a.h=o,a.iteratorType===0?(a.pre=function(){return this.o.L===this.h&&throwIteratorAccessError(),this.o=this.o.L,this},a.next=function(){return this.o===this.h&&throwIteratorAccessError(),this.o=this.o.m,this}):(a.pre=function(){return this.o.m===this.h&&throwIteratorAccessError(),this.o=this.o.m,this},a.next=function(){return this.o===this.h&&throwIteratorAccessError(),this.o=this.o.L,this}),a}return t}(ContainerIterator),HashContainer=function(e){__extends$2(t,e);function t(){var n=e.call(this)||this;return n._=[],n.I={},n.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(n.I,null),n.h={},n.h.L=n.h.m=n.H=n.l=n.h,n}return t.prototype.G=function(n){var o=n.L,l=n.m;o.m=l,l.L=o,n===this.H&&(this.H=l),n===this.l&&(this.l=o),this.M-=1},t.prototype.v=function(n,o,l){l===void 0&&(l=checkObject(n));var a;if(l){var d=n[this.HASH_TAG];if(d!==void 0)return this._[d].p=o,this.M;Object.defineProperty(n,this.HASH_TAG,{value:this._.length,configurable:!0}),a={u:n,p:o,L:this.l,m:this.h},this._.push(a)}else{var y=this.I[n];if(y)return y.p=o,this.M;a={u:n,p:o,L:this.l,m:this.h},this.I[n]=a}return this.M===0?(this.H=a,this.h.m=a):this.l.m=a,this.l=a,this.h.L=a,++this.M},t.prototype.g=function(n,o){if(o===void 0&&(o=checkObject(n)),o){var l=n[this.HASH_TAG];return l===void 0?this.h:this._[l]}else return this.I[n]||this.h},t.prototype.clear=function(){var n=this.HASH_TAG;this._.forEach(function(o){delete o.u[n]}),this._=[],this.I={},Object.setPrototypeOf(this.I,null),this.M=0,this.H=this.l=this.h.L=this.h.m=this.h},t.prototype.eraseElementByKey=function(n,o){var l;if(o===void 0&&(o=checkObject(n)),o){var a=n[this.HASH_TAG];if(a===void 0)return!1;delete n[this.HASH_TAG],l=this._[a],delete this._[a]}else{if(l=this.I[n],l===void 0)return!1;delete this.I[n]}return this.G(l),!0},t.prototype.eraseElementByIterator=function(n){var o=n.o;return o===this.h&&throwIteratorAccessError(),this.G(o),n.next()},t.prototype.eraseElementByPos=function(n){if(n<0||n>this.M-1)throw new RangeError;for(var o=this.H;n--;)o=o.m;return this.G(o),this.M},t}(Container),__extends$1=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),__generator$1=globalThis&&globalThis.i||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(_){return function(S){return w([_,S])}}function w(_){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,l&&(a=_[0]&2?l.return:_[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,_[1])).done)return a;switch(l=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return n.label++,{value:_[1],done:!1};case 5:n.label++,l=_[1],_=[0];continue;case 7:_=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]this.M-1)throw new RangeError;for(var o=this.H;n--;)o=o.m;return o.u},t.prototype.find=function(n,o){var l=this.g(n,o);return new HashSetIterator(l,this.h,this)},t.prototype.forEach=function(n){for(var o=0,l=this.H;l!==this.h;)n(l.u,o++,this),l=l.m},t.prototype[Symbol.iterator]=function(){return(function(){var n;return __generator$1(this,function(o){switch(o.label){case 0:n=this.H,o.label=1;case 1:return n===this.h?[3,3]:[4,n.u];case 2:return o.sent(),n=n.m,[3,1];case 3:return[2]}})}).bind(this)()},t}(HashContainer);const HashSet$1=HashSet;var __extends=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),__generator=globalThis&&globalThis.i||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(_){return function(S){return w([_,S])}}function w(_){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,l&&(a=_[0]&2?l.return:_[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,_[1])).done)return a;switch(l=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return n.label++,{value:_[1],done:!1};case 5:n.label++,l=_[1],_=[0];continue;case 7:_=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]this.M-1)throw new RangeError;for(var o=this.H;n--;)o=o.m;return[o.u,o.p]},t.prototype.find=function(n,o){var l=this.g(n,o);return new HashMapIterator(l,this.h,this)},t.prototype.forEach=function(n){for(var o=0,l=this.H;l!==this.h;)n([l.u,l.p],o++,this),l=l.m},t.prototype[Symbol.iterator]=function(){return(function(){var n;return __generator(this,function(o){switch(o.label){case 0:n=this.H,o.label=1;case 1:return n===this.h?[3,3]:[4,[n.u,n.p]];case 2:return o.sent(),n=n.m,[3,1];case 3:return[2]}})}).bind(this)()},t}(HashContainer);const HashMap$1=HashMap,esm=Object.freeze(Object.defineProperty({__proto__:null,Deque:Deque$1,HashMap:HashMap$1,HashSet:HashSet$1,LinkList:LinkList$1,OrderedMap:OrderedMap$1,OrderedSet:OrderedSet$1,PriorityQueue:PriorityQueue$1,Queue:Queue$1,Stack:Stack$1,Vector:Vector$1},Symbol.toStringTag,{value:"Module"})),require$$0$4=getAugmentedNamespace(esm);var browser$c={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var e=1e3,t=e*60,n=t*60,o=n*24,l=o*7,a=o*365.25;ms=function(S,E){E=E||{};var C=typeof S;if(C==="string"&&S.length>0)return d(S);if(C==="number"&&isFinite(S))return E.long?w(S):y(S);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(S))};function d(S){if(S=String(S),!(S.length>100)){var E=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(E){var C=parseFloat(E[1]),B=(E[2]||"ms").toLowerCase();switch(B){case"years":case"year":case"yrs":case"yr":case"y":return C*a;case"weeks":case"week":case"w":return C*l;case"days":case"day":case"d":return C*o;case"hours":case"hour":case"hrs":case"hr":case"h":return C*n;case"minutes":case"minute":case"mins":case"min":case"m":return C*t;case"seconds":case"second":case"secs":case"sec":case"s":return C*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return C;default:return}}}}function y(S){var E=Math.abs(S);return E>=o?Math.round(S/o)+"d":E>=n?Math.round(S/n)+"h":E>=t?Math.round(S/t)+"m":E>=e?Math.round(S/e)+"s":S+"ms"}function w(S){var E=Math.abs(S);return E>=o?_(S,E,o,"day"):E>=n?_(S,E,n,"hour"):E>=t?_(S,E,t,"minute"):E>=e?_(S,E,e,"second"):S+" ms"}function _(S,E,C,B){var L=E>=C*1.5;return Math.round(S/C)+" "+B+(L?"s":"")}return ms}function setup(e){n.debug=n,n.default=n,n.coerce=w,n.disable=d,n.enable=l,n.enabled=y,n.humanize=requireMs(),n.destroy=_,Object.keys(e).forEach(S=>{n[S]=e[S]}),n.names=[],n.skips=[],n.formatters={};function t(S){let E=0;for(let C=0;C{if(ae==="%%")return"%";V++;const ue=n.formatters[ce];if(typeof ue=="function"){const re=q[V];ae=ue.call(H,re),q.splice(V,1),V--}return ae}),n.formatArgs.call(H,q),(H.log||n.log).apply(H,q)}return F.namespace=S,F.useColors=n.useColors(),F.color=n.selectColor(S),F.extend=o,F.destroy=n.destroy,Object.defineProperty(F,"enabled",{enumerable:!0,configurable:!1,get:()=>C!==null?C:(B!==n.namespaces&&(B=n.namespaces,L=n.enabled(S)),L),set:q=>{C=q}}),typeof n.init=="function"&&n.init(F),F}function o(S,E){const C=n(this.namespace+(typeof E>"u"?":":E)+S);return C.log=this.log,C}function l(S){n.save(S),n.namespaces=S,n.names=[],n.skips=[];const E=(typeof S=="string"?S:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const C of E)C[0]==="-"?n.skips.push(C.slice(1)):n.names.push(C)}function a(S,E){let C=0,B=0,L=-1,F=0;for(;C"-"+E)].join(",");return n.enable(""),S}function y(S){for(const E of n.skips)if(a(S,E))return!1;for(const E of n.names)if(a(S,E))return!0;return!1}function w(S){return S instanceof Error?S.stack||S.message:S}function _(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var common$7=setup;(function(e,t){t.formatArgs=o,t.save=l,t.load=a,t.useColors=n,t.storage=d(),t.destroy=(()=>{let w=!1;return()=>{w||(w=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let w;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(w=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(w[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(w){if(w[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+w[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const _="color: "+this.color;w.splice(1,0,_,"color: inherit");let S=0,E=0;w[0].replace(/%[a-zA-Z%]/g,C=>{C!=="%%"&&(S++,C==="%c"&&(E=S))}),w.splice(E,0,_)}t.log=console.debug||console.log||(()=>{});function l(w){try{w?t.storage.setItem("debug",w):t.storage.removeItem("debug")}catch{}}function a(){let w;try{w=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!w&&typeof api$2<"u"&&"env"in api$2&&(w={}.DEBUG),w}function d(){try{return localStorage}catch{}}e.exports=common$7(t);const{formatters:y}=e.exports;y.j=function(w){try{return JSON.stringify(w)}catch(_){return"[UnexpectedJSONParseError]: "+_.message}}})(browser$c,browser$c.exports);var browserExports$1=browser$c.exports;const SortedSet=require$$0$4.OrderedSet,debugTrace=browserExports$1("number-allocator:trace"),debugError=browserExports$1("number-allocator:error");function Interval(e,t){this.low=e,this.high=t}Interval.prototype.equals=function(e){return this.low===e.low&&this.high===e.high};Interval.prototype.compare=function(e){return this.lown.compare(o)),debugTrace("Create"),this.clear()}NumberAllocator$2.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low};NumberAllocator$2.prototype.alloc=function(){if(this.ss.size()===0)return debugTrace("alloc():empty"),null;const e=this.ss.begin(),t=e.pointer.low,n=e.pointer.high,o=t;return o+1<=n?this.ss.updateKeyByIterator(e,new Interval(t+1,n)):this.ss.eraseElementByPos(0),debugTrace("alloc():"+o),o};NumberAllocator$2.prototype.use=function(e){const t=new Interval(e,e),n=this.ss.lowerBound(t);if(!n.equals(this.ss.end())){const o=n.pointer.low,l=n.pointer.high;return n.pointer.equals(t)?(this.ss.eraseElementByIterator(n),debugTrace("use():"+e),!0):o>e?!1:o===e?(this.ss.updateKeyByIterator(n,new Interval(o+1,l)),debugTrace("use():"+e),!0):l===e?(this.ss.updateKeyByIterator(n,new Interval(o,l-1)),debugTrace("use():"+e),!0):(this.ss.updateKeyByIterator(n,new Interval(e+1,l)),this.ss.insert(new Interval(o,e-1)),debugTrace("use():"+e),!0)}return debugTrace("use():failed"),!1};NumberAllocator$2.prototype.free=function(e){if(ethis.max){debugError("free():"+e+" is out of range");return}const t=new Interval(e,e),n=this.ss.upperBound(t);if(n.equals(this.ss.end())){if(n.equals(this.ss.begin())){this.ss.insert(t);return}n.pre();const o=n.pointer.high;n.pointer.high+1===e?this.ss.updateKeyByIterator(n,new Interval(o,e)):this.ss.insert(t)}else if(n.equals(this.ss.begin()))if(e+1===n.pointer.low){const o=n.pointer.high;this.ss.updateKeyByIterator(n,new Interval(e,o))}else this.ss.insert(t);else{const o=n.pointer.low,l=n.pointer.high;n.pre();const a=n.pointer.low;n.pointer.high+1===e?e+1===o?(this.ss.eraseElementByIterator(n),this.ss.updateKeyByIterator(n,new Interval(a,l))):this.ss.updateKeyByIterator(n,new Interval(a,e)):e+1===o?(this.ss.eraseElementByIterator(n.next()),this.ss.insert(new Interval(e,l))):this.ss.insert(t)}debugTrace("free():"+e)};NumberAllocator$2.prototype.clear=function(){debugTrace("clear()"),this.ss.clear(),this.ss.insert(new Interval(this.min,this.max))};NumberAllocator$2.prototype.intervalCount=function(){return this.ss.size()};NumberAllocator$2.prototype.dump=function(){console.log("length:"+this.ss.size());for(const e of this.ss)console.log(e)};var numberAllocator=NumberAllocator$2;const NumberAllocator$1=numberAllocator;numberAllocator$1.NumberAllocator=NumberAllocator$1;const LruMap=lruCache,NumberAllocator=numberAllocator$1.NumberAllocator;function TopicAliasSend$1(e){if(!(this instanceof TopicAliasSend$1))return new TopicAliasSend$1(e);e>0&&(this.aliasToTopic=new LruMap({max:e}),this.topicToAlias={},this.numberAllocator=new NumberAllocator(1,e),this.max=e,this.length=0)}TopicAliasSend$1.prototype.put=function(e,t){if(t===0||t>this.max)return!1;const n=this.aliasToTopic.get(t);return n&&delete this.topicToAlias[n],this.aliasToTopic.set(t,e),this.topicToAlias[e]=t,this.numberAllocator.use(t),this.length=this.aliasToTopic.length,!0};TopicAliasSend$1.prototype.getTopicByAlias=function(e){return this.aliasToTopic.get(e)};TopicAliasSend$1.prototype.getAliasByTopic=function(e){const t=this.topicToAlias[e];return typeof t<"u"&&this.aliasToTopic.get(t),t};TopicAliasSend$1.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0};TopicAliasSend$1.prototype.getLruAlias=function(){const e=this.numberAllocator.firstVacant();return e||this.aliasToTopic.keys()[this.aliasToTopic.length-1]};var topicAliasSend=TopicAliasSend$1,mqtt$1={},bl$1={exports:{}},readableBrowser$2={exports:{}},streamBrowser$3=eventsExports.EventEmitter,buffer_list$2,hasRequiredBuffer_list$2;function requireBuffer_list$2(){if(hasRequiredBuffer_list$2)return buffer_list$2;hasRequiredBuffer_list$2=1;function e(L,F){var q=Object.keys(L);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(L);F&&(H=H.filter(function(D){return Object.getOwnPropertyDescriptor(L,D).enumerable})),q.push.apply(q,H)}return q}function t(L){for(var F=1;F0?this.tail.next=H:this.head=H,this.tail=H,++this.length}},{key:"unshift",value:function(q){var H={data:q,next:this.head};this.length===0&&(this.tail=H),this.head=H,++this.length}},{key:"shift",value:function(){if(this.length!==0){var q=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(q){if(this.length===0)return"";for(var H=this.head,D=""+H.data;H=H.next;)D+=q+H.data;return D}},{key:"concat",value:function(q){if(this.length===0)return _.alloc(0);for(var H=_.allocUnsafe(q>>>0),D=this.head,j=0;D;)B(D.data,H,j),j+=D.data.length,D=D.next;return H}},{key:"consume",value:function(q,H){var D;return qV.length?V.length:q;if(Q===V.length?j+=V:j+=V.slice(0,q),q-=Q,q===0){Q===V.length?(++D,H.next?this.head=H.next:this.head=this.tail=null):(this.head=H,H.data=V.slice(Q));break}++D}return this.length-=D,j}},{key:"_getBuffer",value:function(q){var H=_.allocUnsafe(q),D=this.head,j=1;for(D.data.copy(H),q-=D.data.length;D=D.next;){var V=D.data,Q=q>V.length?V.length:q;if(V.copy(H,H.length-q,0,Q),q-=Q,q===0){Q===V.length?(++j,D.next?this.head=D.next:this.head=this.tail=null):(this.head=D,D.data=V.slice(Q));break}++j}return this.length-=j,H}},{key:C,value:function(q,H){return E(this,t(t({},H),{},{depth:0,customInspect:!1}))}}]),L}(),buffer_list$2}function destroy$3(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return o||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,api$2.nextTick(emitErrorNT$2,this,e)):api$2.nextTick(emitErrorNT$2,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?n._writableState?n._writableState.errorEmitted?api$2.nextTick(emitCloseNT$1,n):(n._writableState.errorEmitted=!0,api$2.nextTick(emitErrorAndCloseNT$1,n,a)):api$2.nextTick(emitErrorAndCloseNT$1,n,a):t?(api$2.nextTick(emitCloseNT$1,n),t(a)):api$2.nextTick(emitCloseNT$1,n)}),this)}function emitErrorAndCloseNT$1(e,t){emitErrorNT$2(e,t),emitCloseNT$1(e)}function emitCloseNT$1(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function undestroy$2(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT$2(e,t){e.emit("error",t)}function errorOrDestroy$1(e,t){var n=e._readableState,o=e._writableState;n&&n.autoDestroy||o&&o.autoDestroy?e.destroy(t):e.emit("error",t)}var destroy_1$3={destroy:destroy$3,undestroy:undestroy$2,errorOrDestroy:errorOrDestroy$1},errorsBrowser$2={};function _inheritsLoose$1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var codes$1={};function createErrorType$1(e,t,n){n||(n=Error);function o(a,d,y){return typeof t=="string"?t:t(a,d,y)}var l=function(a){_inheritsLoose$1(d,a);function d(y,w,_){return a.call(this,o(y,w,_))||this}return d}(n);l.prototype.name=n.name,l.prototype.code=e,codes$1[e]=l}function oneOf$1(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(o){return String(o)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:n===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function startsWith$1(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function endsWith$1(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function includes$1(e,t,n){return typeof n!="number"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}createErrorType$1("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);createErrorType$1("ERR_INVALID_ARG_TYPE",function(e,t,n){var o;typeof t=="string"&&startsWith$1(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be";var l;if(endsWith$1(e," argument"))l="The ".concat(e," ").concat(o," ").concat(oneOf$1(t,"type"));else{var a=includes$1(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(a," ").concat(o," ").concat(oneOf$1(t,"type"))}return l+=". Received type ".concat(typeof n),l},TypeError);createErrorType$1("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType$1("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});createErrorType$1("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType$1("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});createErrorType$1("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType$1("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType$1("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType$1("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType$1("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);createErrorType$1("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser$2.codes=codes$1;var ERR_INVALID_OPT_VALUE$1=errorsBrowser$2.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom$1(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function getHighWaterMark$1(e,t,n,o){var l=highWaterMarkFrom$1(t,o,n);if(l!=null){if(!(isFinite(l)&&Math.floor(l)===l)||l<0){var a=o?n:"highWaterMark";throw new ERR_INVALID_OPT_VALUE$1(a,l)}return Math.floor(l)}return e.objectMode?16:16*1024}var state$2={getHighWaterMark:getHighWaterMark$1},_stream_writable$3,hasRequired_stream_writable$3;function require_stream_writable$3(){if(hasRequired_stream_writable$3)return _stream_writable$3;hasRequired_stream_writable$3=1,_stream_writable$3=ue;function e(U){var P=this;this.next=null,this.entry=null,this.finish=function(){le(P,U)}}var t;ue.WritableState=ae;var n={deprecate:browser$d},o=streamBrowser$3,l=buffer$2.Buffer,a=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d(U){return l.from(U)}function y(U){return l.isBuffer(U)||U instanceof a}var w=destroy_1$3,_=state$2,S=_.getHighWaterMark,E=errorsBrowser$2.codes,C=E.ERR_INVALID_ARG_TYPE,B=E.ERR_METHOD_NOT_IMPLEMENTED,L=E.ERR_MULTIPLE_CALLBACK,F=E.ERR_STREAM_CANNOT_PIPE,q=E.ERR_STREAM_DESTROYED,H=E.ERR_STREAM_NULL_VALUES,D=E.ERR_STREAM_WRITE_AFTER_END,j=E.ERR_UNKNOWN_ENCODING,V=w.errorOrDestroy;inherits_browserExports(ue,o);function Q(){}function ae(U,P,Z){t=t||require_stream_duplex$3(),U=U||{},typeof Z!="boolean"&&(Z=P instanceof t),this.objectMode=!!U.objectMode,Z&&(this.objectMode=this.objectMode||!!U.writableObjectMode),this.highWaterMark=S(this,U,"writableHighWaterMark",Z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=U.decodeStrings===!1;this.decodeStrings=!ie,this.defaultEncoding=U.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){M(P,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}ae.prototype.getBuffer=function(){for(var P=this.bufferedRequest,Z=[];P;)Z.push(P),P=P.next;return Z},function(){try{Object.defineProperty(ae.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ce;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ce=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(P){return ce.call(this,P)?!0:this!==ue?!1:P&&P._writableState instanceof ae}})):ce=function(P){return P instanceof this};function ue(U){t=t||require_stream_duplex$3();var P=this instanceof t;if(!P&&!ce.call(ue,this))return new ue(U);this._writableState=new ae(U,this,P),this.writable=!0,U&&(typeof U.write=="function"&&(this._write=U.write),typeof U.writev=="function"&&(this._writev=U.writev),typeof U.destroy=="function"&&(this._destroy=U.destroy),typeof U.final=="function"&&(this._final=U.final)),o.call(this)}ue.prototype.pipe=function(){V(this,new F)};function re(U,P){var Z=new D;V(U,Z),api$2.nextTick(P,Z)}function pe(U,P,Z,ie){var se;return Z===null?se=new H:typeof Z!="string"&&!P.objectMode&&(se=new C("chunk",["string","Buffer"],Z)),se?(V(U,se),api$2.nextTick(ie,se),!1):!0}ue.prototype.write=function(U,P,Z){var ie=this._writableState,se=!1,k=!ie.objectMode&&y(U);return k&&!l.isBuffer(U)&&(U=d(U)),typeof P=="function"&&(Z=P,P=null),k?P="buffer":P||(P=ie.defaultEncoding),typeof Z!="function"&&(Z=Q),ie.ending?re(this,Z):(k||pe(this,ie,U,Z))&&(ie.pendingcb++,se=u(this,ie,k,U,P,Z)),se},ue.prototype.cork=function(){this._writableState.corked++},ue.prototype.uncork=function(){var U=this._writableState;U.corked&&(U.corked--,!U.writing&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&$(this,U))},ue.prototype.setDefaultEncoding=function(P){if(typeof P=="string"&&(P=P.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((P+"").toLowerCase())>-1))throw new j(P);return this._writableState.defaultEncoding=P,this},Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function T(U,P,Z){return!U.objectMode&&U.decodeStrings!==!1&&typeof P=="string"&&(P=l.from(P,Z)),P}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function u(U,P,Z,ie,se,k){if(!Z){var I=T(P,ie,se);ie!==I&&(Z=!0,se="buffer",ie=I)}var te=P.objectMode?1:ie.length;P.length+=te;var ee=P.length0)if(typeof I!="string"&&!J.objectMode&&Object.getPrototypeOf(I)!==o.prototype&&(I=a(I)),ee)J.endEmitted?Q(k,new H):T(k,J,I,!0);else if(J.ended)Q(k,new F);else{if(J.destroyed)return!1;J.reading=!1,J.decoder&&!te?(I=J.decoder.write(I),J.objectMode||I.length!==0?T(k,J,I,!1):$(k,J)):T(k,J,I,!1)}else ee||(J.reading=!1,$(k,J))}return!J.ended&&(J.length=v?k=v:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function b(k,I){return k<=0||I.length===0&&I.ended?0:I.objectMode?1:k!==k?I.flowing&&I.length?I.buffer.head.data.length:I.length:(k>I.highWaterMark&&(I.highWaterMark=m(k)),k<=I.length?k:I.ended?I.length:(I.needReadable=!0,0))}re.prototype.read=function(k){w("read",k),k=parseInt(k,10);var I=this._readableState,te=k;if(k!==0&&(I.emittedReadable=!1),k===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return w("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?Z(this):A(this),null;if(k=b(k,I),k===0&&I.ended)return I.length===0&&Z(this),null;var ee=I.needReadable;w("need readable",ee),(I.length===0||I.length-k0?fe=P(k,I):fe=null,fe===null?(I.needReadable=I.length<=I.highWaterMark,k=0):(I.length-=k,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),te!==k&&I.ended&&Z(this)),fe!==null&&this.emit("data",fe),fe};function M(k,I){if(w("onEofChunk"),!I.ended){if(I.decoder){var te=I.decoder.end();te&&te.length&&(I.buffer.push(te),I.length+=I.objectMode?1:te.length)}I.ended=!0,I.sync?A(k):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,O(k)))}}function A(k){var I=k._readableState;w("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(w("emitReadable",I.flowing),I.emittedReadable=!0,api$2.nextTick(O,k))}function O(k){var I=k._readableState;w("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(k.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,U(k)}function $(k,I){I.readingMore||(I.readingMore=!0,api$2.nextTick(c,k,I))}function c(k,I){for(;!I.reading&&!I.ended&&(I.length1&&se(ee.pipes,k)!==-1)&&!me&&(w("false write response, pause",ee.awaitDrain),ee.awaitDrain++),te.pause())}function Re(Se){w("onerror",Se),qe(),k.removeListener("error",Re),t(k,"error")===0&&Q(k,Se)}ce(k,"error",Re);function _e(){k.removeListener("finish",we),qe()}k.once("close",_e);function we(){w("onfinish"),k.removeListener("close",_e),qe()}k.once("finish",we);function qe(){w("unpipe"),te.unpipe(k)}return k.emit("pipe",te),ee.flowing||(w("pipe resume"),te.resume()),k};function x(k){return function(){var te=k._readableState;w("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&t(k,"data")&&(te.flowing=!0,U(k))}}re.prototype.unpipe=function(k){var I=this._readableState,te={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return k&&k!==I.pipes?this:(k||(k=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,k&&k.emit("unpipe",this,te),this);if(!k){var ee=I.pipes,fe=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var J=0;J0,ee.flowing!==!1&&this.resume()):k==="readable"&&!ee.endEmitted&&!ee.readableListening&&(ee.readableListening=ee.needReadable=!0,ee.flowing=!1,ee.emittedReadable=!1,w("on readable",ee.length,ee.reading),ee.length?A(this):ee.reading||api$2.nextTick(z,this)),te},re.prototype.addListener=re.prototype.on,re.prototype.removeListener=function(k,I){var te=n.prototype.removeListener.call(this,k,I);return k==="readable"&&api$2.nextTick(N,this),te},re.prototype.removeAllListeners=function(k){var I=n.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&api$2.nextTick(N,this),I};function N(k){var I=k._readableState;I.readableListening=k.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:k.listenerCount("data")>0&&k.resume()}function z(k){w("readable nexttick read 0"),k.read(0)}re.prototype.resume=function(){var k=this._readableState;return k.flowing||(w("resume"),k.flowing=!k.readableListening,oe(this,k)),k.paused=!1,this};function oe(k,I){I.resumeScheduled||(I.resumeScheduled=!0,api$2.nextTick(le,k,I))}function le(k,I){w("resume",I.reading),I.reading||k.read(0),I.resumeScheduled=!1,k.emit("resume"),U(k),I.flowing&&!I.reading&&k.read(0)}re.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function U(k){var I=k._readableState;for(w("flow",I.flowing);I.flowing&&k.read()!==null;);}re.prototype.wrap=function(k){var I=this,te=this._readableState,ee=!1;k.on("end",function(){if(w("wrapped end"),te.decoder&&!te.ended){var Y=te.decoder.end();Y&&Y.length&&I.push(Y)}I.push(null)}),k.on("data",function(Y){if(w("wrapped data"),te.decoder&&(Y=te.decoder.write(Y)),!(te.objectMode&&Y==null)&&!(!te.objectMode&&(!Y||!Y.length))){var X=I.push(Y);X||(ee=!0,k.pause())}});for(var fe in k)this[fe]===void 0&&typeof k[fe]=="function"&&(this[fe]=function(X){return function(){return k[X].apply(k,arguments)}}(fe));for(var J=0;J=I.length?(I.decoder?te=I.buffer.join(""):I.buffer.length===1?te=I.buffer.first():te=I.buffer.concat(I.length),I.buffer.clear()):te=I.buffer.consume(k,I.decoder),te}function Z(k){var I=k._readableState;w("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,api$2.nextTick(ie,I,k))}function ie(k,I){if(w("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,I.readable=!1,I.emit("end"),k.autoDestroy)){var te=I._writableState;(!te||te.autoDestroy&&te.finished)&&I.destroy()}}typeof Symbol=="function"&&(re.from=function(k,I){return V===void 0&&(V=requireFromBrowser$2()),V(re,k,I)});function se(k,I){for(var te=0,ee=k.length;te0;return destroyer$2(d,w,_,function(S){l||(l=S),S&&a.forEach(call$1),!w&&(a.forEach(call$1),o(l))})});return t.reduce(pipe$1)}var pipeline_1$2=pipeline$1;(function(e,t){t=e.exports=require_stream_readable$3(),t.Stream=t,t.Readable=t,t.Writable=require_stream_writable$3(),t.Duplex=require_stream_duplex$3(),t.Transform=_stream_transform$3,t.PassThrough=_stream_passthrough$3,t.finished=endOfStream$3,t.pipeline=pipeline_1$2})(readableBrowser$2,readableBrowser$2.exports);var readableBrowserExports$2=readableBrowser$2.exports;const{Buffer:Buffer$D}=buffer$2,symbol=Symbol.for("BufferList");function BufferList$2(e){if(!(this instanceof BufferList$2))return new BufferList$2(e);BufferList$2._init.call(this,e)}BufferList$2._init=function(t){Object.defineProperty(this,symbol,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};BufferList$2.prototype._new=function(t){return new BufferList$2(t)};BufferList$2.prototype._offset=function(t){if(t===0)return[0,0];let n=0;for(let o=0;othis.length||t<0)return;const n=this._offset(t);return this._bufs[n[0]][n[1]]};BufferList$2.prototype.slice=function(t,n){return typeof t=="number"&&t<0&&(t+=this.length),typeof n=="number"&&n<0&&(n+=this.length),this.copy(null,0,t,n)};BufferList$2.prototype.copy=function(t,n,o,l){if((typeof o!="number"||o<0)&&(o=0),(typeof l!="number"||l>this.length)&&(l=this.length),o>=this.length||l<=0)return t||Buffer$D.alloc(0);const a=!!t,d=this._offset(o),y=l-o;let w=y,_=a&&n||0,S=d[1];if(o===0&&l===this.length){if(!a)return this._bufs.length===1?this._bufs[0]:Buffer$D.concat(this._bufs,this.length);for(let E=0;EC)this._bufs[E].copy(t,_,S),_+=C;else{this._bufs[E].copy(t,_,S,S+w),_+=C;break}w-=C,S&&(S=0)}return t.length>_?t.slice(0,_):t};BufferList$2.prototype.shallowSlice=function(t,n){if(t=t||0,n=typeof n!="number"?this.length:n,t<0&&(t+=this.length),n<0&&(n+=this.length),t===n)return this._new();const o=this._offset(t),l=this._offset(n),a=this._bufs.slice(o[0],l[0]+1);return l[1]===0?a.pop():a[a.length-1]=a[a.length-1].slice(0,l[1]),o[1]!==0&&(a[0]=a[0].slice(o[1])),this._new(a)};BufferList$2.prototype.toString=function(t,n,o){return this.slice(n,o).toString(t)};BufferList$2.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};BufferList$2.prototype.duplicate=function(){const t=this._new();for(let n=0;nthis.length?this.length:t;const o=this._offset(t);let l=o[0],a=o[1];for(;l=e.length){const w=d.indexOf(e,a);if(w!==-1)return this._reverseOffset([l,w]);a=d.length-e.length+1}else{const w=this._reverseOffset([l,a]);if(this._match(w,e))return w;a++}a=0}return-1};BufferList$2.prototype._match=function(e,t){if(this.length-e[0,1].map(a=>[0,1].map(d=>{const y=buffer$2.Buffer.alloc(1);return y.writeUInt8(t.codes[o]<buffer$2.Buffer.from([o])),t.EMPTY={pingreq:buffer$2.Buffer.from([t.codes.pingreq<<4,0]),pingresp:buffer$2.Buffer.from([t.codes.pingresp<<4,0]),disconnect:buffer$2.Buffer.from([t.codes.disconnect<<4,0])}})(constants$5);var constantsExports=constants$5.exports;const bl=blExports,EventEmitter$2=eventsExports,Packet=packet,constants$4=constantsExports,debug$4=browserExports$1("mqtt-packet:parser");class Parser extends EventEmitter$2{constructor(){super(),this.parser=this.constructor.parser}static parser(t){return this instanceof Parser?(this.settings=t||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new Parser().parser(t)}_resetState(){debug$4("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new Packet,this.error=null,this._list=bl(),this._stateCounter=0}parse(t){for(this.error&&this._resetState(),this._list.append(t),debug$4("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,debug$4("parse: state complete. _stateCounter is now: %d",this._stateCounter),debug$4("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return debug$4("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const t=this._list.readUInt8(0);return this.packet.cmd=constants$4.types[t>>constants$4.CMD_SHIFT],this.packet.retain=(t&constants$4.RETAIN_MASK)!==0,this.packet.qos=t>>constants$4.QOS_SHIFT&constants$4.QOS_MASK,this.packet.dup=(t&constants$4.DUP_MASK)!==0,debug$4("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const t=this._parseVarByteNum(!0);return t&&(this.packet.length=t.value,this._list.consume(t.bytes)),debug$4("_parseLength %d",t.value),!!t}_parsePayload(){debug$4("_parsePayload: payload %O",this._list);let t=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}t=!0}return debug$4("_parsePayload complete result: %s",t),t}_parseConnect(){debug$4("_parseConnect");let t,n,o,l;const a={},d=this.packet,y=this._parseString();if(y===null)return this._emitError(new Error("Cannot parse protocolId"));if(y!=="MQTT"&&y!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(d.protocolId=y,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(d.protocolVersion=this._list.readUInt8(this._pos),d.protocolVersion>=128&&(d.bridgeMode=!0,d.protocolVersion=d.protocolVersion-128),d.protocolVersion!==3&&d.protocolVersion!==4&&d.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(a.username=this._list.readUInt8(this._pos)&constants$4.USERNAME_MASK,a.password=this._list.readUInt8(this._pos)&constants$4.PASSWORD_MASK,a.will=this._list.readUInt8(this._pos)&constants$4.WILL_FLAG_MASK,a.will&&(d.will={},d.will.retain=(this._list.readUInt8(this._pos)&constants$4.WILL_RETAIN_MASK)!==0,d.will.qos=(this._list.readUInt8(this._pos)&constants$4.WILL_QOS_MASK)>>constants$4.WILL_QOS_SHIFT),d.clean=(this._list.readUInt8(this._pos)&constants$4.CLEAN_SESSION_MASK)!==0,this._pos++,d.keepalive=this._parseNum(),d.keepalive===-1)return this._emitError(new Error("Packet too short"));if(d.protocolVersion===5){const _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(d.properties=_)}const w=this._parseString();if(w===null)return this._emitError(new Error("Packet too short"));if(d.clientId=w,debug$4("_parseConnect: packet.clientId: %s",d.clientId),a.will){if(d.protocolVersion===5){const _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(d.will.properties=_)}if(t=this._parseString(),t===null)return this._emitError(new Error("Cannot parse will topic"));if(d.will.topic=t,debug$4("_parseConnect: packet.will.topic: %s",d.will.topic),n=this._parseBuffer(),n===null)return this._emitError(new Error("Cannot parse will payload"));d.will.payload=n,debug$4("_parseConnect: packet.will.paylaod: %s",d.will.payload)}if(a.username){if(l=this._parseString(),l===null)return this._emitError(new Error("Cannot parse username"));d.username=l,debug$4("_parseConnect: packet.username: %s",d.username)}if(a.password){if(o=this._parseBuffer(),o===null)return this._emitError(new Error("Cannot parse password"));d.password=o}return this.settings=d,debug$4("_parseConnect: complete"),d}_parseConnack(){debug$4("_parseConnack");const t=this.packet;if(this._list.length<1)return null;if(t.sessionPresent=!!(this._list.readUInt8(this._pos++)&constants$4.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?t.reasonCode=this._list.readUInt8(this._pos++):t.reasonCode=0;else{if(this._list.length<2)return null;t.returnCode=this._list.readUInt8(this._pos++)}if(t.returnCode===-1||t.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(t.properties=n)}debug$4("_parseConnack: complete")}_parsePublish(){debug$4("_parsePublish");const t=this.packet;if(t.topic=this._parseString(),t.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(t.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(t.properties=n)}t.payload=this._list.slice(this._pos,t.length),debug$4("_parsePublish: payload from buffer list: %o",t.payload)}}_parseSubscribe(){debug$4("_parseSubscribe");const t=this.packet;let n,o,l,a,d,y,w;if(t.qos!==1)return this._emitError(new Error("Wrong subscribe header"));if(t.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(t.properties=_)}for(;this._pos=t.length)return this._emitError(new Error("Malformed Subscribe Payload"));o=this._parseByte(),l=o&constants$4.SUBSCRIBE_OPTIONS_QOS_MASK,y=(o>>constants$4.SUBSCRIBE_OPTIONS_NL_SHIFT&constants$4.SUBSCRIBE_OPTIONS_NL_MASK)!==0,d=(o>>constants$4.SUBSCRIBE_OPTIONS_RAP_SHIFT&constants$4.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,a=o>>constants$4.SUBSCRIBE_OPTIONS_RH_SHIFT&constants$4.SUBSCRIBE_OPTIONS_RH_MASK,w={topic:n,qos:l},this.settings.protocolVersion===5?(w.nl=y,w.rap=d,w.rh=a):this.settings.bridgeMode&&(w.rh=0,w.rap=!0,w.nl=!0),debug$4("_parseSubscribe: push subscription `%s` to subscription",w),t.subscriptions.push(w)}}}_parseSuback(){debug$4("_parseSuback");const t=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(t.properties=n)}for(;this._pos2?(t.reasonCode=this._parseByte(),debug$4("_parseConfirmation: packet.reasonCode `%d`",t.reasonCode)):t.reasonCode=0,t.length>3)){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(t.properties=n)}return!0}_parseDisconnect(){const t=this.packet;if(debug$4("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?t.reasonCode=this._parseByte():t.reasonCode=0;const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(t.properties=n)}return debug$4("_parseDisconnect result: true"),!0}_parseAuth(){debug$4("_parseAuth");const t=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));t.reasonCode=this._parseByte();const n=this._parseProperties();return Object.getOwnPropertyNames(n).length&&(t.properties=n),debug$4("_parseAuth: result: true"),!0}_parseMessageId(){const t=this.packet;return t.messageId=this._parseNum(),t.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(debug$4("_parseMessageId: packet.messageId %d",t.messageId),!0)}_parseString(t){const n=this._parseNum(),o=n+this._pos;if(n===-1||o>this._list.length||o>this.packet.length)return null;const l=this._list.toString("utf8",this._pos,o);return this._pos+=n,debug$4("_parseString: result: %s",l),l}_parseStringPair(){return debug$4("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const t=this._parseNum(),n=t+this._pos;if(t===-1||n>this._list.length||n>this.packet.length)return null;const o=this._list.slice(this._pos,n);return this._pos+=t,debug$4("_parseBuffer: result: %o",o),o}_parseNum(){if(this._list.length-this._pos<2)return-1;const t=this._list.readUInt16BE(this._pos);return this._pos+=2,debug$4("_parseNum: result: %s",t),t}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const t=this._list.readUInt32BE(this._pos);return this._pos+=4,debug$4("_parse4ByteNum: result: %s",t),t}_parseVarByteNum(t){debug$4("_parseVarByteNum");const n=4;let o=0,l=1,a=0,d=!1,y;const w=this._pos?this._pos:0;for(;o=o&&this._emitError(new Error("Invalid variable byte integer")),w&&(this._pos+=o),d=d?t?{bytes:o,value:a}:a:!1,debug$4("_parseVarByteNum: result: %o",d),d}_parseByte(){let t;return this._pos>8,0),t.writeUInt8(e&255,0+1),t}function generateCache$1(){for(let e=0;e0&&(n=n|128),l.writeUInt8(n,o++);while(e>0&&o<4);return e>0&&(o=0),SubOk?l.subarray(0,o):l.slice(0,o)}function generate4ByteBuffer$1(e){const t=buffer$2.Buffer.allocUnsafe(4);return t.writeUInt32BE(e,0),t}var numbers$1={cache,generateCache:generateCache$1,generateNumber:generateBuffer,genBufVariableByteInt:genBufVariableByteInt$1,generate4ByteBuffer:generate4ByteBuffer$1},processNextickArgs={exports:{}};typeof api$2>"u"||!api$2.version||api$2.version.indexOf("v0.")===0||api$2.version.indexOf("v1.")===0&&api$2.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick:nextTick$3}:processNextickArgs.exports=api$2;function nextTick$3(e,t,n,o){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var l=arguments.length,a,d;switch(l){case 0:case 1:return api$2.nextTick(e);case 2:return api$2.nextTick(function(){e.call(null,t)});case 3:return api$2.nextTick(function(){e.call(null,t,n)});case 4:return api$2.nextTick(function(){e.call(null,t,n,o)});default:for(a=new Array(l-1),d=0;d=4)&&(_||y))B+=buffer$2.Buffer.byteLength(_)+2;else{if(a<4)return t.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(y*1===0)return t.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof w!="number"||w<0||w>65535||w%1!==0)return t.emit("error",new Error("Invalid keepalive")),!1;if(B+=2,B+=1,a===5){var L=getProperties(t,C);if(!L)return!1;B+=L.length}if(d){if(typeof d!="object")return t.emit("error",new Error("Invalid will")),!1;if(!d.topic||typeof d.topic!="string")return t.emit("error",new Error("Invalid will topic")),!1;if(B+=buffer$2.Buffer.byteLength(d.topic)+2,B+=2,d.payload)if(d.payload.length>=0)typeof d.payload=="string"?B+=buffer$2.Buffer.byteLength(d.payload):B+=d.payload.length;else return t.emit("error",new Error("Invalid will payload")),!1;var F={};if(a===5){if(F=getProperties(t,d.properties),!F)return!1;B+=F.length}}let q=!1;if(S!=null)if(isStringOrBuffer(S))q=!0,B+=buffer$2.Buffer.byteLength(S)+2;else return t.emit("error",new Error("Invalid username")),!1;if(E!=null){if(!q)return t.emit("error",new Error("Username is required to use password")),!1;if(isStringOrBuffer(E))B+=byteLength(E)+2;else return t.emit("error",new Error("Invalid password")),!1}t.write(protocol.CONNECT_HEADER),writeVarByteInt(t,B),writeStringOrBuffer(t,l),o.bridgeMode&&(a+=128),t.write(a===131?protocol.VERSION131:a===132?protocol.VERSION132:a===4?protocol.VERSION4:a===5?protocol.VERSION5:protocol.VERSION3);let H=0;return H|=S!=null?protocol.USERNAME_MASK:0,H|=E!=null?protocol.PASSWORD_MASK:0,H|=d&&d.retain?protocol.WILL_RETAIN_MASK:0,H|=d&&d.qos?d.qos<0&&writeNumber(t,_),C!=null&&C.write(),debug$3("publish: payload: %o",w),t.write(w)}function confirmation(e,t,n){const o=n?n.protocolVersion:4,l=e||{},a=l.cmd||"puback",d=l.messageId,y=l.dup&&a==="pubrel"?protocol.DUP_MASK:0;let w=0;const _=l.reasonCode,S=l.properties;let E=o===5?3:2;if(a==="pubrel"&&(w=1),typeof d!="number")return t.emit("error",new Error("Invalid messageId")),!1;let C=null;if(o===5&&typeof S=="object"){if(C=getPropertiesByMaximumPacketSize(t,S,n,E),!C)return!1;E+=C.length}return t.write(protocol.ACKS[a][w][y][0]),writeVarByteInt(t,E),writeNumber(t,d),o===5&&t.write(buffer$2.Buffer.from([_])),C!==null&&C.write(),!0}function subscribe(e,t,n){debug$3("subscribe: packet: ");const o=n?n.protocolVersion:4,l=e||{},a=l.dup?protocol.DUP_MASK:0,d=l.messageId,y=l.subscriptions,w=l.properties;let _=0;if(typeof d!="number")return t.emit("error",new Error("Invalid messageId")),!1;_+=2;let S=null;if(o===5){if(S=getProperties(t,w),!S)return!1;_+=S.length}if(typeof y=="object"&&y.length)for(let C=0;C2)return t.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}_+=buffer$2.Buffer.byteLength(B)+2+1}else return t.emit("error",new Error("Invalid subscriptions")),!1;debug$3("subscribe: writing to stream: %o",protocol.SUBSCRIBE_HEADER),t.write(protocol.SUBSCRIBE_HEADER[1][a?1:0][0]),writeVarByteInt(t,_),writeNumber(t,d),S!==null&&S.write();let E=!0;for(const C of y){const B=C.topic,L=C.qos,F=+C.nl,q=+C.rap,H=C.rh;let D;writeString(t,B),D=protocol.SUBSCRIBE_OPTIONS_QOS[L],o===5&&(D|=F?protocol.SUBSCRIBE_OPTIONS_NL:0,D|=q?protocol.SUBSCRIBE_OPTIONS_RAP:0,D|=H?protocol.SUBSCRIBE_OPTIONS_RH[H]:0),E=t.write(buffer$2.Buffer.from([D]))}return E}function suback(e,t,n){const o=n?n.protocolVersion:4,l=e||{},a=l.messageId,d=l.granted,y=l.properties;let w=0;if(typeof a!="number")return t.emit("error",new Error("Invalid messageId")),!1;if(w+=2,typeof d=="object"&&d.length)for(let S=0;Sprotocol.VARBYTEINT_MAX)return e.emit("error",new Error(`Invalid variable byte integer: ${t}`)),!1;let n=varByteIntCache[t];return n||(n=genBufVariableByteInt(t),t<16384&&(varByteIntCache[t]=n)),debug$3("writeVarByteInt: writing to stream: %o",n),e.write(n)}function writeString(e,t){const n=buffer$2.Buffer.byteLength(t);return writeNumber(e,n),debug$3("writeString: %s",t),e.write(t,"utf8")}function writeStringPair(e,t,n){writeString(e,t),writeString(e,n)}function writeNumberCached(e,t){return debug$3("writeNumberCached: number: %d",t),debug$3("writeNumberCached: %o",numCache[t]),e.write(numCache[t])}function writeNumberGenerated(e,t){const n=generateNumber(t);return debug$3("writeNumberGenerated: %o",n),e.write(n)}function write4ByteNumber(e,t){const n=generate4ByteBuffer(t);return debug$3("write4ByteNumber: %o",n),e.write(n)}function writeStringOrBuffer(e,t){typeof t=="string"?writeString(e,t):t?(writeNumber(e,t.length),e.write(t)):writeNumber(e,0)}function getProperties(e,t){if(typeof t!="object"||t.length!=null)return{length:1,write(){writeProperties(e,{},0)}};let n=0;function o(a,d){const y=protocol.propertiesTypes[a];let w=0;switch(y){case"byte":{if(typeof d!="boolean")return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+1;break}case"int8":{if(typeof d!="number"||d<0||d>255)return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+1;break}case"binary":{if(d&&d===null)return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+buffer$2.Buffer.byteLength(d)+2;break}case"int16":{if(typeof d!="number"||d<0||d>65535)return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+2;break}case"int32":{if(typeof d!="number"||d<0||d>4294967295)return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+4;break}case"var":{if(typeof d!="number"||d<0||d>268435455)return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+buffer$2.Buffer.byteLength(genBufVariableByteInt(d));break}case"string":{if(typeof d!="string")return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+2+buffer$2.Buffer.byteLength(d.toString());break}case"pair":{if(typeof d!="object")return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=Object.getOwnPropertyNames(d).reduce((_,S)=>{const E=d[S];return Array.isArray(E)?_+=E.reduce((C,B)=>(C+=1+2+buffer$2.Buffer.byteLength(S.toString())+2+buffer$2.Buffer.byteLength(B.toString()),C),0):_+=1+2+buffer$2.Buffer.byteLength(S.toString())+2+buffer$2.Buffer.byteLength(d[S].toString()),_},0);break}default:return e.emit("error",new Error(`Invalid property ${a}: ${d}`)),!1}return w}if(t)for(const a in t){let d=0,y=0;const w=t[a];if(Array.isArray(w))for(let _=0;_a;){const y=l.shift();if(y&&t[y])delete t[y],d=getProperties(e,t);else return!1}return d}function writeProperty(e,t,n){switch(protocol.propertiesTypes[t]){case"byte":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),e.write(buffer$2.Buffer.from([+n]));break}case"int8":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),e.write(buffer$2.Buffer.from([n]));break}case"binary":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),writeStringOrBuffer(e,n);break}case"int16":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),writeNumber(e,n);break}case"int32":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),write4ByteNumber(e,n);break}case"var":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),writeVarByteInt(e,n);break}case"string":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),writeString(e,n);break}case"pair":{Object.getOwnPropertyNames(n).forEach(l=>{const a=n[l];Array.isArray(a)?a.forEach(d=>{e.write(buffer$2.Buffer.from([protocol.properties[t]])),writeStringPair(e,l.toString(),d.toString())}):(e.write(buffer$2.Buffer.from([protocol.properties[t]])),writeStringPair(e,l.toString(),a.toString()))});break}default:return e.emit("error",new Error(`Invalid property ${t} value: ${n}`)),!1}}function writeProperties(e,t,n){writeVarByteInt(e,n);for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&t[o]!==null){const l=t[o];if(Array.isArray(l))for(let a=0;a0){e=new Array(arguments.length-2);for(var t=0;tnew Date(d)),t.set(Map,(d,y)=>new Map(o(Array.from(d),y))),t.set(Set,(d,y)=>new Set(o(Array.from(d),y))),e.constructorHandlers)for(const d of e.constructorHandlers)t.set(d[0],d[1]);let n=null;return e.proto?a:l;function o(d,y){const w=Object.keys(d),_=new Array(w.length);for(let S=0;Snew Date(w)),o.set(Map,(w,_)=>new Map(a(Array.from(w),_))),o.set(Set,(w,_)=>new Set(a(Array.from(w),_))),e.constructorHandlers)for(const w of e.constructorHandlers)o.set(w[0],w[1]);let l=null;return e.proto?y:d;function a(w,_){const S=Object.keys(w),E=new Array(S.length);for(let C=0;C"u")return new Error("Unregistered Topic Alias");if(o=e.topicAliasSend.getTopicByAlias(n),typeof o>"u")return new Error("Unregistered Topic Alias");t.topic=o}n&&delete t.properties.topicAlias}function sendPacket(e,t,n){debug$2("sendPacket :: packet: %O",t),debug$2("sendPacket :: emitting `packetsend`"),e.emit("packetsend",t),debug$2("sendPacket :: writing to stream");const o=mqttPacket.writeToStream(t,e.stream,e.options);debug$2("sendPacket :: writeToStream result %s",o),!o&&n&&n!==nop?(debug$2("sendPacket :: handle events on `drain` once through callback."),e.stream.once("drain",n)):n&&(debug$2("sendPacket :: invoking cb"),n())}function flush(e){e&&(debug$2("flush: queue exists? %b",!!e),Object.keys(e).forEach(function(t){typeof e[t].cb=="function"&&(e[t].cb(new Error("Connection closed")),delete e[t])}))}function flushVolatile(e){e&&(debug$2("flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(e).forEach(function(t){e[t].volatile&&typeof e[t].cb=="function"&&(e[t].cb(new Error("Connection closed")),delete e[t])}))}function storeAndSend(e,t,n,o){debug$2("storeAndSend :: store packet with cmd %s to outgoingStore",t.cmd);let l=t,a;if(l.cmd==="publish"&&(l=clone$1(t),a=removeTopicAliasAndRecoverTopicName(e,l),a))return n&&n(a);e.outgoingStore.put(l,function(y){if(y)return n&&n(y);o(),sendPacket(e,t,n)})}function nop(e){debug$2("nop ::",e)}function MqttClient$1(e,t){let n;const o=this;if(!(this instanceof MqttClient$1))return new MqttClient$1(e,t);this.options=t||{};for(n in defaultConnectOptions)typeof this.options[n]>"u"?this.options[n]=defaultConnectOptions[n]:this.options[n]=t[n];debug$2("MqttClient :: options.protocol",t.protocol),debug$2("MqttClient :: options.protocolVersion",t.protocolVersion),debug$2("MqttClient :: options.username",t.username),debug$2("MqttClient :: options.keepalive",t.keepalive),debug$2("MqttClient :: options.reconnectPeriod",t.reconnectPeriod),debug$2("MqttClient :: options.rejectUnauthorized",t.rejectUnauthorized),debug$2("MqttClient :: options.topicAliasMaximum",t.topicAliasMaximum),this.options.clientId=typeof t.clientId=="string"?t.clientId:defaultId(),debug$2("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=t.protocolVersion===5&&t.customHandleAcks?t.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=e,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new DefaultMessageIdProvider:this.options.messageIdProvider,this.outgoingStore=t.outgoingStore||new Store$2,this.incomingStore=t.incomingStore||new Store$2,this.queueQoSZero=t.queueQoSZero===void 0?!0:t.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,t.topicAliasMaximum>0&&(t.topicAliasMaximum>65535?debug$2("MqttClient :: options.topicAliasMaximum is out of range"):this.topicAliasRecv=new TopicAliasRecv(t.topicAliasMaximum)),this.on("connect",function(){const l=this.queue;function a(){const d=l.shift();debug$2("deliver :: entry %o",d);let y=null;if(!d){o._resubscribe();return}y=d.packet,debug$2("deliver :: call _sendPacket for %o",y);let w=!0;y.messageId&&y.messageId!==0&&(o.messageIdProvider.register(y.messageId)||(w=!1)),w?o._sendPacket(y,function(_){d.cb&&d.cb(_),a()}):(debug$2("messageId: %d has already used. The message is skipped and removed.",y.messageId),a())}debug$2("connect :: sending queued packets"),a()}),this.on("close",function(){debug$2("close :: connected set to `false`"),this.connected=!1,debug$2("close :: clearing connackTimer"),clearTimeout(this.connackTimer),debug$2("close :: clearing ping timer"),o.pingTimer!==null&&(o.pingTimer.clear(),o.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),debug$2("close :: calling _setupReconnect"),this._setupReconnect()}),EventEmitter.call(this),debug$2("MqttClient :: setting up stream"),this._setupStream()}inherits$u(MqttClient$1,EventEmitter);MqttClient$1.prototype._setupStream=function(){const e=this,t=new Writable,n=mqttPacket.parser(this.options);let o=null;const l=[];debug$2("_setupStream :: calling method to clear reconnect"),this._clearReconnect(),debug$2("_setupStream :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),n.on("packet",function(_){debug$2("parser :: on packet push to packets array."),l.push(_)});function a(){if(l.length)nextTick$1(d);else{const _=o;o=null,_()}}function d(){debug$2("work :: getting next packet in queue");const _=l.shift();if(_)debug$2("work :: packet pulled from queue"),e._handlePacket(_,a);else{debug$2("work :: no packets in queue");const S=o;o=null,debug$2("work :: done flag is %s",!!S),S&&S()}}t._write=function(_,S,E){o=E,debug$2("writable stream :: parsing buffer"),n.parse(_),d()};function y(_){debug$2("streamErrorHandler :: error",_.message),_.code?(debug$2("streamErrorHandler :: emitting error"),e.emit("error",_)):nop(_)}debug$2("_setupStream :: pipe stream to writable stream"),this.stream.pipe(t),this.stream.on("error",y),this.stream.on("close",function(){debug$2("(%s)stream :: on close",e.options.clientId),flushVolatile(e.outgoing),debug$2("stream: emit close to MqttClient"),e.emit("close")}),debug$2("_setupStream: sending packet `connect`");const w=Object.create(this.options);if(w.cmd="connect",this.topicAliasRecv&&(w.properties||(w.properties={}),this.topicAliasRecv&&(w.properties.topicAliasMaximum=this.topicAliasRecv.max)),sendPacket(this,w),n.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return e.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){const _=xtend$1({cmd:"auth",reasonCode:0},this.options.authPacket);sendPacket(this,_)}}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(function(){debug$2("!!connectTimeout hit!! Calling _cleanUp with force `true`"),e._cleanUp(!0)},this.options.connectTimeout)};MqttClient$1.prototype._handlePacket=function(e,t){const n=this.options;if(n.protocolVersion===5&&n.properties&&n.properties.maximumPacketSize&&n.properties.maximumPacketSize0||!y())&&this._storeProcessingQueue.push({invoke:y,cbStorePut:n.cbStorePut,callback:o}),this};MqttClient$1.prototype.subscribe=function(){const e=this,t=new Array(arguments.length);for(let E=0;E0){const F={qos:L.qos};y===5&&(F.nl=L.nl||!1,F.rap=L.rap||!1,F.rh=L.rh||0,F.properties=L.properties),e._resubscribeTopics[L.topic]=F,B.push(L.topic)}}),e.messageIdToTopic[C.messageId]=B}return e.outgoing[C.messageId]={volatile:!0,cb:function(B,L){if(!B){const F=L.granted;for(let q=0;q0||!S())&&this._storeProcessingQueue.push({invoke:S,callback:a}),this};MqttClient$1.prototype.unsubscribe=function(){const e=this,t=new Array(arguments.length);for(let y=0;y0||!d())&&this._storeProcessingQueue.push({invoke:d,callback:o}),this};MqttClient$1.prototype.end=function(e,t,n){const o=this;debug$2("end :: (%s)",this.options.clientId),(e==null||typeof e!="boolean")&&(n=t||nop,t=e,e=!1,typeof t!="object"&&(n=t,t=null,typeof n!="function"&&(n=nop))),typeof t!="object"&&(n=t,t=null),debug$2("end :: cb? %s",!!n),n=n||nop;function l(){debug$2("end :: closeStores: closing incoming and outgoing stores"),o.disconnected=!0,o.incomingStore.close(function(d){o.outgoingStore.close(function(y){if(debug$2("end :: closeStores: emitting end"),o.emit("end"),n){const w=d||y;debug$2("end :: closeStores: invoking callback with args"),n(w)}})}),o._deferredReconnect&&o._deferredReconnect()}function a(){debug$2("end :: (%s) :: finish :: calling _cleanUp with force %s",o.options.clientId,e),o._cleanUp(e,()=>{debug$2("end :: finish :: calling process.nextTick on closeStores"),nextTick$1(l.bind(o))},t)}return this.disconnecting?(n(),this):(this._clearReconnect(),this.disconnecting=!0,!e&&Object.keys(this.outgoing).length>0?(debug$2("end :: (%s) :: calling finish in 10ms once outgoing is empty",o.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,a,10))):(debug$2("end :: (%s) :: immediately calling finish",o.options.clientId),a()),this)};MqttClient$1.prototype.removeOutgoingMessage=function(e){const t=this.outgoing[e]?this.outgoing[e].cb:null;return delete this.outgoing[e],this.outgoingStore.del({messageId:e},function(){t(new Error("Message removed"))}),this};MqttClient$1.prototype.reconnect=function(e){debug$2("client reconnect");const t=this,n=function(){e?(t.options.incomingStore=e.incomingStore,t.options.outgoingStore=e.outgoingStore):(t.options.incomingStore=null,t.options.outgoingStore=null),t.incomingStore=t.options.incomingStore||new Store$2,t.outgoingStore=t.options.outgoingStore||new Store$2,t.disconnecting=!1,t.disconnected=!1,t._deferredReconnect=null,t._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=n:n(),this};MqttClient$1.prototype._reconnect=function(){debug$2("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this._setupStream()}),debug$2("client already connected. disconnecting first.")):(debug$2("_reconnect: calling _setupStream"),this._setupStream())};MqttClient$1.prototype._setupReconnect=function(){const e=this;!e.disconnecting&&!e.reconnectTimer&&e.options.reconnectPeriod>0?(this.reconnecting||(debug$2("_setupReconnect :: emit `offline` state"),this.emit("offline"),debug$2("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),debug$2("_setupReconnect :: setting reconnectTimer for %d ms",e.options.reconnectPeriod),e.reconnectTimer=setInterval(function(){debug$2("reconnectTimer :: reconnect triggered!"),e._reconnect()},e.options.reconnectPeriod)):debug$2("_setupReconnect :: doing nothing...")};MqttClient$1.prototype._clearReconnect=function(){debug$2("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)};MqttClient$1.prototype._cleanUp=function(e,t){const n=arguments[2];if(t&&(debug$2("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",t)),debug$2("_cleanUp :: forced? %s",e),e)this.options.reconnectPeriod===0&&this.options.clean&&flush(this.outgoing),debug$2("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const o=xtend$1({cmd:"disconnect"},n);debug$2("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(o,setImmediate$1.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(debug$2("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this.pingTimer!==null&&(debug$2("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),t&&!this.connected&&(debug$2("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",t),t())};MqttClient$1.prototype._sendPacket=function(e,t,n){debug$2("_sendPacket :: (%s) :: start",this.options.clientId),n=n||nop,t=t||nop;const o=applyTopicAlias(this,e);if(o){t(o);return}if(!this.connected){if(e.cmd==="auth"){this._shiftPingInterval(),sendPacket(this,e,t);return}debug$2("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(e,t,n);return}switch(this._shiftPingInterval(),e.cmd){case"publish":break;case"pubrel":storeAndSend(this,e,t,n);return;default:sendPacket(this,e,t);return}switch(e.qos){case 2:case 1:storeAndSend(this,e,t,n);break;case 0:default:sendPacket(this,e,t);break}debug$2("_sendPacket :: (%s) :: end",this.options.clientId)};MqttClient$1.prototype._storePacket=function(e,t,n){debug$2("_storePacket :: packet: %o",e),debug$2("_storePacket :: cb? %s",!!t),n=n||nop;let o=e;if(o.cmd==="publish"){o=clone$1(e);const l=removeTopicAliasAndRecoverTopicName(this,o);if(l)return t&&t(l)}(o.qos||0)===0&&this.queueQoSZero||o.cmd!=="publish"?this.queue.push({packet:o,cb:t}):o.qos>0?(t=this.outgoing[o.messageId]?this.outgoing[o.messageId].cb:null,this.outgoingStore.put(o,function(l){if(l)return t&&t(l);n()})):t&&t(new Error("No connection to broker"))};MqttClient$1.prototype._setupPingTimer=function(){debug$2("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive);const e=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=reInterval(function(){e._checkPing()},this.options.keepalive*1e3))};MqttClient$1.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(this.options.keepalive*1e3)};MqttClient$1.prototype._checkPing=function(){debug$2("_checkPing :: checking ping..."),this.pingResp?(debug$2("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(debug$2("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))};MqttClient$1.prototype._handlePingresp=function(){this.pingResp=!0};MqttClient$1.prototype._handleConnack=function(e){debug$2("_handleConnack");const t=this.options,o=t.protocolVersion===5?e.reasonCode:e.returnCode;if(clearTimeout(this.connackTimer),delete this.topicAliasSend,e.properties){if(e.properties.topicAliasMaximum){if(e.properties.topicAliasMaximum>65535){this.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}e.properties.topicAliasMaximum>0&&(this.topicAliasSend=new TopicAliasSend(e.properties.topicAliasMaximum))}e.properties.serverKeepAlive&&t.keepalive&&(t.keepalive=e.properties.serverKeepAlive,this._shiftPingInterval()),e.properties.maximumPacketSize&&(t.properties||(t.properties={}),t.properties.maximumPacketSize=e.properties.maximumPacketSize)}if(o===0)this.reconnecting=!1,this._onConnect(e);else if(o>0){const l=new Error("Connection refused: "+errors[o]);l.code=o,this.emit("error",l)}};MqttClient$1.prototype._handleAuth=function(e){const n=this.options.protocolVersion,o=n===5?e.reasonCode:e.returnCode;if(n!==5){const a=new Error("Protocol error: Auth packets are only supported in MQTT 5. Your version:"+n);a.code=o,this.emit("error",a);return}const l=this;this.handleAuth(e,function(a,d){if(a){l.emit("error",a);return}if(o===24)l.reconnecting=!1,l._sendPacket(d);else{const y=new Error("Connection refused: "+errors[o]);a.code=o,l.emit("error",y)}})};MqttClient$1.prototype.handleAuth=function(e,t){t()};MqttClient$1.prototype._handlePublish=function(e,t){debug$2("_handlePublish: packet %o",e),t=typeof t<"u"?t:nop;let n=e.topic.toString();const o=e.payload,l=e.qos,a=e.messageId,d=this,y=this.options,w=[0,16,128,131,135,144,145,151,153];if(this.options.protocolVersion===5){let _;if(e.properties&&(_=e.properties.topicAlias),typeof _<"u")if(n.length===0)if(_>0&&_<=65535){const S=this.topicAliasRecv.getTopicByAlias(_);if(S)n=S,debug$2("_handlePublish :: topic complemented by alias. topic: %s - alias: %d",n,_);else{debug$2("_handlePublish :: unregistered topic alias. alias: %d",_),this.emit("error",new Error("Received unregistered Topic Alias"));return}}else{debug$2("_handlePublish :: topic alias out of range. alias: %d",_),this.emit("error",new Error("Received Topic Alias is out of range"));return}else if(this.topicAliasRecv.put(n,_))debug$2("_handlePublish :: registered topic: %s - alias: %d",n,_);else{debug$2("_handlePublish :: topic alias out of range. alias: %d",_),this.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(debug$2("_handlePublish: qos %d",l),l){case 2:{y.customHandleAcks(n,o,e,function(_,S){if(_ instanceof Error||(S=_,_=null),_)return d.emit("error",_);if(w.indexOf(S)===-1)return d.emit("error",new Error("Wrong reason code for pubrec"));S?d._sendPacket({cmd:"pubrec",messageId:a,reasonCode:S},t):d.incomingStore.put(e,function(){d._sendPacket({cmd:"pubrec",messageId:a},t)})});break}case 1:{y.customHandleAcks(n,o,e,function(_,S){if(_ instanceof Error||(S=_,_=null),_)return d.emit("error",_);if(w.indexOf(S)===-1)return d.emit("error",new Error("Wrong reason code for puback"));S||d.emit("message",n,o,e),d.handleMessage(e,function(E){if(E)return t&&t(E);d._sendPacket({cmd:"puback",messageId:a,reasonCode:S},t)})});break}case 0:this.emit("message",n,o,e),this.handleMessage(e,t);break;default:debug$2("_handlePublish: unknown QoS. Doing nothing.");break}};MqttClient$1.prototype.handleMessage=function(e,t){t()};MqttClient$1.prototype._handleAck=function(e){const t=e.messageId,n=e.cmd;let o=null;const l=this.outgoing[t]?this.outgoing[t].cb:null,a=this;let d;if(!l){debug$2("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(debug$2("_handleAck :: packet type",n),n){case"pubcomp":case"puback":{const y=e.reasonCode;y&&y>0&&y!==16&&(d=new Error("Publish error: "+errors[y]),d.code=y,l(d,e)),delete this.outgoing[t],this.outgoingStore.del(e,l),this.messageIdProvider.deallocate(t),this._invokeStoreProcessingQueue();break}case"pubrec":{o={cmd:"pubrel",qos:2,messageId:t};const y=e.reasonCode;y&&y>0&&y!==16?(d=new Error("Publish error: "+errors[y]),d.code=y,l(d,e)):this._sendPacket(o);break}case"suback":{delete this.outgoing[t],this.messageIdProvider.deallocate(t);for(let y=0;y0)if(this.options.resubscribe)if(this.options.protocolVersion===5){debug$2("_resubscribe: protocolVersion 5");for(let t=0;t0){const e=this._storeProcessingQueue[0];if(e&&e.invoke())return this._storeProcessingQueue.shift(),!0}return!1};MqttClient$1.prototype._invokeAllStoreProcessingQueue=function(){for(;this._invokeStoreProcessingQueue(););};MqttClient$1.prototype._flushStoreProcessingQueue=function(){for(const e of this._storeProcessingQueue)e.cbStorePut&&e.cbStorePut(new Error("Connection closed")),e.callback&&e.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)};var client=MqttClient$1,punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports;(function(e,t){(function(n){var o=t&&!t.nodeType&&t,l=e&&!e.nodeType&&e,a=typeof commonjsGlobal=="object"&&commonjsGlobal;(a.global===a||a.window===a||a.self===a)&&(n=a);var d,y=2147483647,w=36,_=1,S=26,E=38,C=700,B=72,L=128,F="-",q=/^xn--/,H=/[^\x20-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V=w-_,Q=Math.floor,ae=String.fromCharCode,ce;function ue(c){throw new RangeError(j[c])}function re(c,x){for(var N=c.length,z=[];N--;)z[N]=x(c[N]);return z}function pe(c,x){var N=c.split("@"),z="";N.length>1&&(z=N[0]+"@",c=N[1]),c=c.replace(D,".");var oe=c.split("."),le=re(oe,x).join(".");return z+le}function T(c){for(var x=[],N=0,z=c.length,oe,le;N=55296&&oe<=56319&&N65535&&(x-=65536,N+=ae(x>>>10&1023|55296),x=56320|x&1023),N+=ae(x),N}).join("")}function v(c){return c-48<10?c-22:c-65<26?c-65:c-97<26?c-97:w}function m(c,x){return c+22+75*(c<26)-((x!=0)<<5)}function b(c,x,N){var z=0;for(c=N?Q(c/C):c>>1,c+=Q(c/x);c>V*S>>1;z+=w)c=Q(c/V);return Q(z+(V+1)*c/(c+E))}function M(c){var x=[],N=c.length,z,oe=0,le=L,U=B,P,Z,ie,se,k,I,te,ee,fe;for(P=c.lastIndexOf(F),P<0&&(P=0),Z=0;Z=128&&ue("not-basic"),x.push(c.charCodeAt(Z));for(ie=P>0?P+1:0;ie=N&&ue("invalid-input"),te=v(c.charCodeAt(ie++)),(te>=w||te>Q((y-oe)/k))&&ue("overflow"),oe+=te*k,ee=I<=U?_:I>=U+S?S:I-U,!(teQ(y/fe)&&ue("overflow"),k*=fe;z=x.length+1,U=b(oe-se,z,se==0),Q(oe/z)>y-le&&ue("overflow"),le+=Q(oe/z),oe%=z,x.splice(oe++,0,le)}return u(x)}function A(c){var x,N,z,oe,le,U,P,Z,ie,se,k,I=[],te,ee,fe,J;for(c=T(c),te=c.length,x=L,N=0,le=B,U=0;U=x&&kQ((y-N)/ee)&&ue("overflow"),N+=(P-x)*ee,x=P,U=0;Uy&&ue("overflow"),k==x){for(Z=N,ie=w;se=ie<=le?_:ie>=le+S?S:ie-le,!(Z-1e3&&e<1e3||$test.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var o=e<0?-$floor(-e):$floor(e);if(o!==e){var l=String(o),a=$slice.call(t,l.length+1);return $replace.call(l,n,"$&_")+"."+$replace.call($replace.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(t,n,"$&_")}var utilInspect=require$$0$2,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol$3(inspectCustom)?inspectCustom:null,quotes={__proto__:null,double:'"',single:"'"},quoteREs={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},objectInspect=function e(t,n,o,l){var a=n||{};if(has$3(a,"quoteStyle")&&!has$3(quotes,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=has$3(a,"customInspect")?a.customInspect:!0;if(typeof d!="boolean"&&d!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return inspectString(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var w=String(t);return y?addNumericSeparator(t,w):w}if(typeof t=="bigint"){var _=String(t)+"n";return y?addNumericSeparator(t,_):_}var S=typeof a.depth>"u"?5:a.depth;if(typeof o>"u"&&(o=0),o>=S&&S>0&&typeof t=="object")return isArray$8(t)?"[Array]":"[Object]";var E=getIndent(a,o);if(typeof l>"u")l=[];else if(indexOf(l,t)>=0)return"[Circular]";function C(v,m,b){if(m&&(l=$arrSlice.call(l),l.push(m)),b){var M={depth:a.depth};return has$3(a,"quoteStyle")&&(M.quoteStyle=a.quoteStyle),e(v,M,o+1,l)}return e(v,a,o+1,l)}if(typeof t=="function"&&!isRegExp$2(t)){var B=nameOf(t),L=arrObjKeys(t,C);return"[Function"+(B?": "+B:" (anonymous)")+"]"+(L.length>0?" { "+$join.call(L,", ")+" }":"")}if(isSymbol$3(t)){var F=hasShammedSymbols?$replace.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(t);return typeof t=="object"&&!hasShammedSymbols?markBoxed(F):F}if(isElement(t)){for(var q="<"+$toLowerCase.call(String(t.nodeName)),H=t.attributes||[],D=0;D",q}if(isArray$8(t)){if(t.length===0)return"[]";var j=arrObjKeys(t,C);return E&&!singleLineValues(j)?"["+indentedJoin(j,E)+"]":"[ "+$join.call(j,", ")+" ]"}if(isError$1(t)){var V=arrObjKeys(t,C);return!("cause"in Error.prototype)&&"cause"in t&&!isEnumerable.call(t,"cause")?"{ ["+String(t)+"] "+$join.call($concat.call("[cause]: "+C(t.cause),V),", ")+" }":V.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+$join.call(V,", ")+" }"}if(typeof t=="object"&&d){if(inspectSymbol&&typeof t[inspectSymbol]=="function"&&utilInspect)return utilInspect(t,{depth:S-o});if(d!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(isMap(t)){var Q=[];return mapForEach&&mapForEach.call(t,function(v,m){Q.push(C(m,t,!0)+" => "+C(v,t))}),collectionOf("Map",mapSize.call(t),Q,E)}if(isSet(t)){var ae=[];return setForEach&&setForEach.call(t,function(v){ae.push(C(v,t))}),collectionOf("Set",setSize.call(t),ae,E)}if(isWeakMap(t))return weakCollectionOf("WeakMap");if(isWeakSet(t))return weakCollectionOf("WeakSet");if(isWeakRef(t))return weakCollectionOf("WeakRef");if(isNumber$1(t))return markBoxed(C(Number(t)));if(isBigInt(t))return markBoxed(C(bigIntValueOf.call(t)));if(isBoolean$1(t))return markBoxed(booleanValueOf.call(t));if(isString$1(t))return markBoxed(C(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof commonjsGlobal<"u"&&t===commonjsGlobal)return"{ [object globalThis] }";if(!isDate$1(t)&&!isRegExp$2(t)){var ce=arrObjKeys(t,C),ue=gPO?gPO(t)===Object.prototype:t instanceof Object||t.constructor===Object,re=t instanceof Object?"":"null prototype",pe=!ue&&toStringTag&&Object(t)===t&&toStringTag in t?$slice.call(toStr(t),8,-1):re?"Object":"",T=ue||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",u=T+(pe||re?"["+$join.call($concat.call([],pe||[],re||[]),": ")+"] ":"");return ce.length===0?u+"{}":E?u+"{"+indentedJoin(ce,E)+"}":u+"{ "+$join.call(ce,", ")+" }"}return String(t)};function wrapQuotes(e,t,n){var o=n.quoteStyle||t,l=quotes[o];return l+e+l}function quote(e){return $replace.call(String(e),/"/g,""")}function canTrustToString(e){return!toStringTag||!(typeof e=="object"&&(toStringTag in e||typeof e[toStringTag]<"u"))}function isArray$8(e){return toStr(e)==="[object Array]"&&canTrustToString(e)}function isDate$1(e){return toStr(e)==="[object Date]"&&canTrustToString(e)}function isRegExp$2(e){return toStr(e)==="[object RegExp]"&&canTrustToString(e)}function isError$1(e){return toStr(e)==="[object Error]"&&canTrustToString(e)}function isString$1(e){return toStr(e)==="[object String]"&&canTrustToString(e)}function isNumber$1(e){return toStr(e)==="[object Number]"&&canTrustToString(e)}function isBoolean$1(e){return toStr(e)==="[object Boolean]"&&canTrustToString(e)}function isSymbol$3(e){if(hasShammedSymbols)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!symToString)return!1;try{return symToString.call(e),!0}catch{}return!1}function isBigInt(e){if(!e||typeof e!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(e),!0}catch{}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(e){return e in this};function has$3(e,t){return hasOwn.call(e,t)}function toStr(e){return objectToString$3.call(e)}function nameOf(e){if(e.name)return e.name;var t=$match.call(functionToString.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function indexOf(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return inspectString($slice.call(e,0,t.maxStringLength),t)+o}var l=quoteREs[t.quoteStyle||"single"];l.lastIndex=0;var a=$replace.call($replace.call(e,l,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(a,"single",t)}function lowbyte(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+$toUpperCase.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,n,o){var l=o?indentedJoin(n,o):$join.call(n,", ");return e+" ("+t+") {"+l+"}"}function singleLineValues(e){for(var t=0;t"u"}e.isPrimitive=v,e.isBuffer=isBufferBrowser;function m(N){return Object.prototype.toString.call(N)}function b(N){return N<10?"0"+N.toString(10):N.toString(10)}var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var N=new Date,z=[b(N.getHours()),b(N.getMinutes()),b(N.getSeconds())].join(":");return[N.getDate(),M[N.getMonth()],z].join(" ")}e.log=function(){console.log("%s - %s",A(),e.format.apply(e,arguments))},e.inherits=inherits_browserExports,e._extend=function(N,z){if(!z||!re(z))return N;for(var oe=Object.keys(z),le=oe.length;le--;)N[oe[le]]=z[oe[le]];return N};function O(N,z){return Object.prototype.hasOwnProperty.call(N,z)}var $=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(z){if(typeof z!="function")throw new TypeError('The "original" argument must be of type Function');if($&&z[$]){var oe=z[$];if(typeof oe!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(oe,$,{value:oe,enumerable:!1,writable:!1,configurable:!0}),oe}function oe(){for(var le,U,P=new Promise(function(se,k){le=se,U=k}),Z=[],ie=0;ie0?this.tail.next=H:this.head=H,this.tail=H,++this.length}},{key:"unshift",value:function(q){var H={data:q,next:this.head};this.length===0&&(this.tail=H),this.head=H,++this.length}},{key:"shift",value:function(){if(this.length!==0){var q=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(q){if(this.length===0)return"";for(var H=this.head,D=""+H.data;H=H.next;)D+=q+H.data;return D}},{key:"concat",value:function(q){if(this.length===0)return _.alloc(0);for(var H=_.allocUnsafe(q>>>0),D=this.head,j=0;D;)B(D.data,H,j),j+=D.data.length,D=D.next;return H}},{key:"consume",value:function(q,H){var D;return qV.length?V.length:q;if(Q===V.length?j+=V:j+=V.slice(0,q),q-=Q,q===0){Q===V.length?(++D,H.next?this.head=H.next:this.head=this.tail=null):(this.head=H,H.data=V.slice(Q));break}++D}return this.length-=D,j}},{key:"_getBuffer",value:function(q){var H=_.allocUnsafe(q),D=this.head,j=1;for(D.data.copy(H),q-=D.data.length;D=D.next;){var V=D.data,Q=q>V.length?V.length:q;if(V.copy(H,H.length-q,0,Q),q-=Q,q===0){Q===V.length?(++j,D.next?this.head=D.next:this.head=this.tail=null):(this.head=D,D.data=V.slice(Q));break}++j}return this.length-=j,H}},{key:C,value:function(q,H){return E(this,t(t({},H),{},{depth:0,customInspect:!1}))}}]),L}(),buffer_list$3}function destroy$4(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return o||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,api$2.nextTick(emitErrorNT$3,this,e)):api$2.nextTick(emitErrorNT$3,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?n._writableState?n._writableState.errorEmitted?api$2.nextTick(emitCloseNT$2,n):(n._writableState.errorEmitted=!0,api$2.nextTick(emitErrorAndCloseNT$2,n,a)):api$2.nextTick(emitErrorAndCloseNT$2,n,a):t?(api$2.nextTick(emitCloseNT$2,n),t(a)):api$2.nextTick(emitCloseNT$2,n)}),this)}function emitErrorAndCloseNT$2(e,t){emitErrorNT$3(e,t),emitCloseNT$2(e)}function emitCloseNT$2(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function undestroy$3(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT$3(e,t){e.emit("error",t)}function errorOrDestroy$2(e,t){var n=e._readableState,o=e._writableState;n&&n.autoDestroy||o&&o.autoDestroy?e.destroy(t):e.emit("error",t)}var destroy_1$4={destroy:destroy$4,undestroy:undestroy$3,errorOrDestroy:errorOrDestroy$2},errorsBrowser$3={};function _inheritsLoose$2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var codes$2={};function createErrorType$2(e,t,n){n||(n=Error);function o(a,d,y){return typeof t=="string"?t:t(a,d,y)}var l=function(a){_inheritsLoose$2(d,a);function d(y,w,_){return a.call(this,o(y,w,_))||this}return d}(n);l.prototype.name=n.name,l.prototype.code=e,codes$2[e]=l}function oneOf$2(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(o){return String(o)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:n===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function startsWith$2(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function endsWith$2(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function includes$2(e,t,n){return typeof n!="number"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}createErrorType$2("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);createErrorType$2("ERR_INVALID_ARG_TYPE",function(e,t,n){var o;typeof t=="string"&&startsWith$2(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be";var l;if(endsWith$2(e," argument"))l="The ".concat(e," ").concat(o," ").concat(oneOf$2(t,"type"));else{var a=includes$2(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(a," ").concat(o," ").concat(oneOf$2(t,"type"))}return l+=". Received type ".concat(typeof n),l},TypeError);createErrorType$2("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType$2("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});createErrorType$2("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType$2("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});createErrorType$2("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType$2("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType$2("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType$2("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType$2("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);createErrorType$2("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser$3.codes=codes$2;var ERR_INVALID_OPT_VALUE$2=errorsBrowser$3.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom$2(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function getHighWaterMark$2(e,t,n,o){var l=highWaterMarkFrom$2(t,o,n);if(l!=null){if(!(isFinite(l)&&Math.floor(l)===l)||l<0){var a=o?n:"highWaterMark";throw new ERR_INVALID_OPT_VALUE$2(a,l)}return Math.floor(l)}return e.objectMode?16:16*1024}var state$3={getHighWaterMark:getHighWaterMark$2},browser$d=deprecate;function deprecate(e,t){if(config("noDeprecation"))return e;var n=!1;function o(){if(!n){if(config("throwDeprecation"))throw new Error(t);config("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return o}function config(e){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var t=commonjsGlobal.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var _stream_writable$4,hasRequired_stream_writable$4;function require_stream_writable$4(){if(hasRequired_stream_writable$4)return _stream_writable$4;hasRequired_stream_writable$4=1,_stream_writable$4=ue;function e(U){var P=this;this.next=null,this.entry=null,this.finish=function(){le(P,U)}}var t;ue.WritableState=ae;var n={deprecate:browser$d},o=streamBrowser$4,l=buffer$2.Buffer,a=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d(U){return l.from(U)}function y(U){return l.isBuffer(U)||U instanceof a}var w=destroy_1$4,_=state$3,S=_.getHighWaterMark,E=errorsBrowser$3.codes,C=E.ERR_INVALID_ARG_TYPE,B=E.ERR_METHOD_NOT_IMPLEMENTED,L=E.ERR_MULTIPLE_CALLBACK,F=E.ERR_STREAM_CANNOT_PIPE,q=E.ERR_STREAM_DESTROYED,H=E.ERR_STREAM_NULL_VALUES,D=E.ERR_STREAM_WRITE_AFTER_END,j=E.ERR_UNKNOWN_ENCODING,V=w.errorOrDestroy;inherits_browserExports(ue,o);function Q(){}function ae(U,P,Z){t=t||require_stream_duplex$4(),U=U||{},typeof Z!="boolean"&&(Z=P instanceof t),this.objectMode=!!U.objectMode,Z&&(this.objectMode=this.objectMode||!!U.writableObjectMode),this.highWaterMark=S(this,U,"writableHighWaterMark",Z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=U.decodeStrings===!1;this.decodeStrings=!ie,this.defaultEncoding=U.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){M(P,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}ae.prototype.getBuffer=function(){for(var P=this.bufferedRequest,Z=[];P;)Z.push(P),P=P.next;return Z},function(){try{Object.defineProperty(ae.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ce;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ce=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(P){return ce.call(this,P)?!0:this!==ue?!1:P&&P._writableState instanceof ae}})):ce=function(P){return P instanceof this};function ue(U){t=t||require_stream_duplex$4();var P=this instanceof t;if(!P&&!ce.call(ue,this))return new ue(U);this._writableState=new ae(U,this,P),this.writable=!0,U&&(typeof U.write=="function"&&(this._write=U.write),typeof U.writev=="function"&&(this._writev=U.writev),typeof U.destroy=="function"&&(this._destroy=U.destroy),typeof U.final=="function"&&(this._final=U.final)),o.call(this)}ue.prototype.pipe=function(){V(this,new F)};function re(U,P){var Z=new D;V(U,Z),api$2.nextTick(P,Z)}function pe(U,P,Z,ie){var se;return Z===null?se=new H:typeof Z!="string"&&!P.objectMode&&(se=new C("chunk",["string","Buffer"],Z)),se?(V(U,se),api$2.nextTick(ie,se),!1):!0}ue.prototype.write=function(U,P,Z){var ie=this._writableState,se=!1,k=!ie.objectMode&&y(U);return k&&!l.isBuffer(U)&&(U=d(U)),typeof P=="function"&&(Z=P,P=null),k?P="buffer":P||(P=ie.defaultEncoding),typeof Z!="function"&&(Z=Q),ie.ending?re(this,Z):(k||pe(this,ie,U,Z))&&(ie.pendingcb++,se=u(this,ie,k,U,P,Z)),se},ue.prototype.cork=function(){this._writableState.corked++},ue.prototype.uncork=function(){var U=this._writableState;U.corked&&(U.corked--,!U.writing&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&$(this,U))},ue.prototype.setDefaultEncoding=function(P){if(typeof P=="string"&&(P=P.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((P+"").toLowerCase())>-1))throw new j(P);return this._writableState.defaultEncoding=P,this},Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function T(U,P,Z){return!U.objectMode&&U.decodeStrings!==!1&&typeof P=="string"&&(P=l.from(P,Z)),P}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function u(U,P,Z,ie,se,k){if(!Z){var I=T(P,ie,se);ie!==I&&(Z=!0,se="buffer",ie=I)}var te=P.objectMode?1:ie.length;P.length+=te;var ee=P.length */var hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(e,t){var n=buffer$2,o=n.Buffer;function l(d,y){for(var w in d)y[w]=d[w]}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(l(n,t),t.Buffer=a);function a(d,y,w){return o(d,y,w)}a.prototype=Object.create(o.prototype),l(o,a),a.from=function(d,y,w){if(typeof d=="number")throw new TypeError("Argument must not be a number");return o(d,y,w)},a.alloc=function(d,y,w){if(typeof d!="number")throw new TypeError("Argument must be a number");var _=o(d);return y!==void 0?typeof w=="string"?_.fill(y,w):_.fill(y):_.fill(0),_},a.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return o(d)},a.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(d)}}(safeBuffer$2,safeBuffer$2.exports)),safeBuffer$2.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var e=requireSafeBuffer().Buffer,t=e.isEncoding||function(H){switch(H=""+H,H&&H.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(H){if(!H)return"utf8";for(var D;;)switch(H){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return H;default:if(D)return;H=(""+H).toLowerCase(),D=!0}}function o(H){var D=n(H);if(typeof D!="string"&&(e.isEncoding===t||!t(H)))throw new Error("Unknown encoding: "+H);return D||H}string_decoder.StringDecoder=l;function l(H){this.encoding=o(H);var D;switch(this.encoding){case"utf16le":this.text=E,this.end=C,D=4;break;case"utf8":this.fillLast=w,D=4;break;case"base64":this.text=B,this.end=L,D=3;break;default:this.write=F,this.end=q;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(D)}l.prototype.write=function(H){if(H.length===0)return"";var D,j;if(this.lastNeed){if(D=this.fillLast(H),D===void 0)return"";j=this.lastNeed,this.lastNeed=0}else j=0;return j>5===6?2:H>>4===14?3:H>>3===30?4:H>>6===2?-1:-2}function d(H,D,j){var V=D.length-1;if(V=0?(Q>0&&(H.lastNeed=Q-1),Q):--V=0?(Q>0&&(H.lastNeed=Q-2),Q):--V=0?(Q>0&&(Q===2?Q=0:H.lastNeed=Q-3),Q):0))}function y(H,D,j){if((D[0]&192)!==128)return H.lastNeed=0,"�";if(H.lastNeed>1&&D.length>1){if((D[1]&192)!==128)return H.lastNeed=1,"�";if(H.lastNeed>2&&D.length>2&&(D[2]&192)!==128)return H.lastNeed=2,"�"}}function w(H){var D=this.lastTotal-this.lastNeed,j=y(this,H);if(j!==void 0)return j;if(this.lastNeed<=H.length)return H.copy(this.lastChar,D,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);H.copy(this.lastChar,D,0,H.length),this.lastNeed-=H.length}function _(H,D){var j=d(this,H,D);if(!this.lastNeed)return H.toString("utf8",D);this.lastTotal=j;var V=H.length-(j-this.lastNeed);return H.copy(this.lastChar,0,V),H.toString("utf8",D,V)}function S(H){var D=H&&H.length?this.write(H):"";return this.lastNeed?D+"�":D}function E(H,D){if((H.length-D)%2===0){var j=H.toString("utf16le",D);if(j){var V=j.charCodeAt(j.length-1);if(V>=55296&&V<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=H[H.length-2],this.lastChar[1]=H[H.length-1],j.slice(0,-1)}return j}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=H[H.length-1],H.toString("utf16le",D,H.length-1)}function C(H){var D=H&&H.length?this.write(H):"";if(this.lastNeed){var j=this.lastTotal-this.lastNeed;return D+this.lastChar.toString("utf16le",0,j)}return D}function B(H,D){var j=(H.length-D)%3;return j===0?H.toString("base64",D):(this.lastNeed=3-j,this.lastTotal=3,j===1?this.lastChar[0]=H[H.length-1]:(this.lastChar[0]=H[H.length-2],this.lastChar[1]=H[H.length-1]),H.toString("base64",D,H.length-j))}function L(H){var D=H&&H.length?this.write(H):"";return this.lastNeed?D+this.lastChar.toString("base64",0,3-this.lastNeed):D}function F(H){return H.toString(this.encoding)}function q(H){return H&&H.length?this.write(H):""}return string_decoder}var ERR_STREAM_PREMATURE_CLOSE$2=errorsBrowser$3.codes.ERR_STREAM_PREMATURE_CLOSE;function once$8(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,o=new Array(n),l=0;l0)if(typeof I!="string"&&!J.objectMode&&Object.getPrototypeOf(I)!==o.prototype&&(I=a(I)),ee)J.endEmitted?Q(k,new H):T(k,J,I,!0);else if(J.ended)Q(k,new F);else{if(J.destroyed)return!1;J.reading=!1,J.decoder&&!te?(I=J.decoder.write(I),J.objectMode||I.length!==0?T(k,J,I,!1):$(k,J)):T(k,J,I,!1)}else ee||(J.reading=!1,$(k,J))}return!J.ended&&(J.length=v?k=v:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function b(k,I){return k<=0||I.length===0&&I.ended?0:I.objectMode?1:k!==k?I.flowing&&I.length?I.buffer.head.data.length:I.length:(k>I.highWaterMark&&(I.highWaterMark=m(k)),k<=I.length?k:I.ended?I.length:(I.needReadable=!0,0))}re.prototype.read=function(k){w("read",k),k=parseInt(k,10);var I=this._readableState,te=k;if(k!==0&&(I.emittedReadable=!1),k===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return w("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?Z(this):A(this),null;if(k=b(k,I),k===0&&I.ended)return I.length===0&&Z(this),null;var ee=I.needReadable;w("need readable",ee),(I.length===0||I.length-k0?fe=P(k,I):fe=null,fe===null?(I.needReadable=I.length<=I.highWaterMark,k=0):(I.length-=k,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),te!==k&&I.ended&&Z(this)),fe!==null&&this.emit("data",fe),fe};function M(k,I){if(w("onEofChunk"),!I.ended){if(I.decoder){var te=I.decoder.end();te&&te.length&&(I.buffer.push(te),I.length+=I.objectMode?1:te.length)}I.ended=!0,I.sync?A(k):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,O(k)))}}function A(k){var I=k._readableState;w("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(w("emitReadable",I.flowing),I.emittedReadable=!0,api$2.nextTick(O,k))}function O(k){var I=k._readableState;w("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(k.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,U(k)}function $(k,I){I.readingMore||(I.readingMore=!0,api$2.nextTick(c,k,I))}function c(k,I){for(;!I.reading&&!I.ended&&(I.length1&&se(ee.pipes,k)!==-1)&&!me&&(w("false write response, pause",ee.awaitDrain),ee.awaitDrain++),te.pause())}function Re(Se){w("onerror",Se),qe(),k.removeListener("error",Re),t(k,"error")===0&&Q(k,Se)}ce(k,"error",Re);function _e(){k.removeListener("finish",we),qe()}k.once("close",_e);function we(){w("onfinish"),k.removeListener("close",_e),qe()}k.once("finish",we);function qe(){w("unpipe"),te.unpipe(k)}return k.emit("pipe",te),ee.flowing||(w("pipe resume"),te.resume()),k};function x(k){return function(){var te=k._readableState;w("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&t(k,"data")&&(te.flowing=!0,U(k))}}re.prototype.unpipe=function(k){var I=this._readableState,te={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return k&&k!==I.pipes?this:(k||(k=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,k&&k.emit("unpipe",this,te),this);if(!k){var ee=I.pipes,fe=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var J=0;J0,ee.flowing!==!1&&this.resume()):k==="readable"&&!ee.endEmitted&&!ee.readableListening&&(ee.readableListening=ee.needReadable=!0,ee.flowing=!1,ee.emittedReadable=!1,w("on readable",ee.length,ee.reading),ee.length?A(this):ee.reading||api$2.nextTick(z,this)),te},re.prototype.addListener=re.prototype.on,re.prototype.removeListener=function(k,I){var te=n.prototype.removeListener.call(this,k,I);return k==="readable"&&api$2.nextTick(N,this),te},re.prototype.removeAllListeners=function(k){var I=n.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&api$2.nextTick(N,this),I};function N(k){var I=k._readableState;I.readableListening=k.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:k.listenerCount("data")>0&&k.resume()}function z(k){w("readable nexttick read 0"),k.read(0)}re.prototype.resume=function(){var k=this._readableState;return k.flowing||(w("resume"),k.flowing=!k.readableListening,oe(this,k)),k.paused=!1,this};function oe(k,I){I.resumeScheduled||(I.resumeScheduled=!0,api$2.nextTick(le,k,I))}function le(k,I){w("resume",I.reading),I.reading||k.read(0),I.resumeScheduled=!1,k.emit("resume"),U(k),I.flowing&&!I.reading&&k.read(0)}re.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function U(k){var I=k._readableState;for(w("flow",I.flowing);I.flowing&&k.read()!==null;);}re.prototype.wrap=function(k){var I=this,te=this._readableState,ee=!1;k.on("end",function(){if(w("wrapped end"),te.decoder&&!te.ended){var Y=te.decoder.end();Y&&Y.length&&I.push(Y)}I.push(null)}),k.on("data",function(Y){if(w("wrapped data"),te.decoder&&(Y=te.decoder.write(Y)),!(te.objectMode&&Y==null)&&!(!te.objectMode&&(!Y||!Y.length))){var X=I.push(Y);X||(ee=!0,k.pause())}});for(var fe in k)this[fe]===void 0&&typeof k[fe]=="function"&&(this[fe]=function(X){return function(){return k[X].apply(k,arguments)}}(fe));for(var J=0;J=I.length?(I.decoder?te=I.buffer.join(""):I.buffer.length===1?te=I.buffer.first():te=I.buffer.concat(I.length),I.buffer.clear()):te=I.buffer.consume(k,I.decoder),te}function Z(k){var I=k._readableState;w("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,api$2.nextTick(ie,I,k))}function ie(k,I){if(w("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,I.readable=!1,I.emit("end"),k.autoDestroy)){var te=I._writableState;(!te||te.autoDestroy&&te.finished)&&I.destroy()}}typeof Symbol=="function"&&(re.from=function(k,I){return V===void 0&&(V=requireFromBrowser$3()),V(re,k,I)});function se(k,I){for(var te=0,ee=k.length;te0;return destroyer$3(d,w,_,function(S){l||(l=S),S&&a.forEach(call$2),!w&&(a.forEach(call$2),o(l))})});return t.reduce(pipe$2)}var pipeline_1$3=pipeline$2;(function(e,t){t=e.exports=require_stream_readable$4(),t.Stream=t,t.Readable=t,t.Writable=require_stream_writable$4(),t.Duplex=require_stream_duplex$4(),t.Transform=_stream_transform$4,t.PassThrough=_stream_passthrough$4,t.finished=endOfStream$4,t.pipeline=pipeline_1$3})(readableBrowser$3,readableBrowser$3.exports);var readableBrowserExports$3=readableBrowser$3.exports;const xtend$2=immutable,Readable=readableBrowserExports$3.Readable,streamsOpts={objectMode:!0},defaultStoreOptions={clean:!0};function Store$3(e){if(!(this instanceof Store$3))return new Store$3(e);this.options=e||{},this.options=xtend$2(defaultStoreOptions,e),this._inflights=new Map}Store$3.prototype.put=function(e,t){return this._inflights.set(e.messageId,e),t&&t(),this};Store$3.prototype.createStream=function(){const e=new Readable(streamsOpts),t=[];let n=!1,o=0;return this._inflights.forEach(function(l,a){t.push(l)}),e._read=function(){!n&&othis.max?!1:(this.aliasToTopic[t]=e,this.length=Object.keys(this.aliasToTopic).length,!0)};TopicAliasRecv$1.prototype.getTopicByAlias=function(e){return this.aliasToTopic[e]};TopicAliasRecv$1.prototype.clear=function(){this.aliasToTopic={}};var topicAliasRecv=TopicAliasRecv$1,iterator,hasRequiredIterator;function requireIterator(){return hasRequiredIterator||(hasRequiredIterator=1,iterator=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),iterator}var yallist=Yallist$1;Yallist$1.Node=Node$1;Yallist$1.create=Yallist$1;function Yallist$1(e){var t=this;if(t instanceof Yallist$1||(t=new Yallist$1),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(l){t.push(l)});else if(arguments.length>0)for(var n=0,o=arguments.length;n1)n=t;else if(this.head)o=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;o!==null;l++)n=e(n,o.value,l),o=o.next;return n};Yallist$1.prototype.reduceReverse=function(e,t){var n,o=this.tail;if(arguments.length>1)n=t;else if(this.tail)o=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;o!==null;l--)n=e(n,o.value,l),o=o.prev;return n};Yallist$1.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};Yallist$1.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};Yallist$1.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new Yallist$1;if(tthis.length&&(t=this.length);for(var o=0,l=this.head;l!==null&&othis.length&&(t=this.length);for(var o=this.length,l=this.tail;l!==null&&o>t;o--)l=l.prev;for(;l!==null&&o>e;o--,l=l.prev)n.push(l.value);return n};Yallist$1.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var o=0,l=this.head;l!==null&&o1;class LRUCache{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[MAX]=t.max||1/0;const n=t.length||naiveLength;if(this[LENGTH_CALCULATOR]=typeof n!="function"?naiveLength:n,this[ALLOW_STALE]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[MAX_AGE]=t.maxAge||0,this[DISPOSE]=t.dispose,this[NO_DISPOSE_ON_SET]=t.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[MAX]=t||1/0,trim(this)}get max(){return this[MAX]}set allowStale(t){this[ALLOW_STALE]=!!t}get allowStale(){return this[ALLOW_STALE]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=t,trim(this)}get maxAge(){return this[MAX_AGE]}set lengthCalculator(t){typeof t!="function"&&(t=naiveLength),t!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=t,this[LENGTH$1]=0,this[LRU_LIST].forEach(n=>{n.length=this[LENGTH_CALCULATOR](n.value,n.key),this[LENGTH$1]+=n.length})),trim(this)}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH$1]}get itemCount(){return this[LRU_LIST].length}rforEach(t,n){n=n||this;for(let o=this[LRU_LIST].tail;o!==null;){const l=o.prev;forEachStep(this,t,o,n),o=l}}forEach(t,n){n=n||this;for(let o=this[LRU_LIST].head;o!==null;){const l=o.next;forEachStep(this,t,o,n),o=l}}keys(){return this[LRU_LIST].toArray().map(t=>t.key)}values(){return this[LRU_LIST].toArray().map(t=>t.value)}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach(t=>this[DISPOSE](t.key,t.value)),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH$1]=0}dump(){return this[LRU_LIST].map(t=>isStale(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[LRU_LIST]}set(t,n,o){if(o=o||this[MAX_AGE],o&&typeof o!="number")throw new TypeError("maxAge must be a number");const l=o?Date.now():0,a=this[LENGTH_CALCULATOR](n,t);if(this[CACHE].has(t)){if(a>this[MAX])return del(this,this[CACHE].get(t)),!1;const w=this[CACHE].get(t).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](t,w.value)),w.now=l,w.maxAge=o,w.value=n,this[LENGTH$1]+=a-w.length,w.length=a,this.get(t),trim(this),!0}const d=new Entry(t,n,a,l,o);return d.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](t,n),!1):(this[LENGTH$1]+=d.length,this[LRU_LIST].unshift(d),this[CACHE].set(t,this[LRU_LIST].head),trim(this),!0)}has(t){if(!this[CACHE].has(t))return!1;const n=this[CACHE].get(t).value;return!isStale(this,n)}get(t){return get(this,t,!0)}peek(t){return get(this,t,!1)}pop(){const t=this[LRU_LIST].tail;return t?(del(this,t),t.value):null}del(t){del(this,this[CACHE].get(t))}load(t){this.reset();const n=Date.now();for(let o=t.length-1;o>=0;o--){const l=t[o],a=l.e||0;if(a===0)this.set(l.k,l.v);else{const d=a-n;d>0&&this.set(l.k,l.v,d)}}}prune(){this[CACHE].forEach((t,n)=>get(this,n,!1))}}const get=(e,t,n)=>{const o=e[CACHE].get(t);if(o){const l=o.value;if(isStale(e,l)){if(del(e,o),!e[ALLOW_STALE])return}else n&&(e[UPDATE_AGE_ON_GET]&&(o.value.now=Date.now()),e[LRU_LIST].unshiftNode(o));return l.value}},isStale=(e,t)=>{if(!t||!t.maxAge&&!e[MAX_AGE])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[MAX_AGE]&&n>e[MAX_AGE]},trim=e=>{if(e[LENGTH$1]>e[MAX])for(let t=e[LRU_LIST].tail;e[LENGTH$1]>e[MAX]&&t!==null;){const n=t.prev;del(e,t),t=n}},del=(e,t)=>{if(t){const n=t.value;e[DISPOSE]&&e[DISPOSE](n.key,n.value),e[LENGTH$1]-=n.length,e[CACHE].delete(n.key),e[LRU_LIST].removeNode(t)}};class Entry{constructor(t,n,o,l,a){this.key=t,this.value=n,this.length=o,this.now=l,this.maxAge=a||0}}const forEachStep=(e,t,n,o)=>{let l=n.value;isStale(e,l)&&(del(e,n),e[ALLOW_STALE]||(l=void 0)),l&&t.call(o,l.value,l.key,e)};var lruCache=LRUCache,numberAllocator$1={},__extends$g=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),ContainerIterator=function(){function e(t){t===void 0&&(t=0),this.iteratorType=t}return e.prototype.equals=function(t){return this.o===t.o},e}(),Base$6=function(){function e(){this.M=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this.M},enumerable:!1,configurable:!0}),e.prototype.size=function(){return this.M},e.prototype.empty=function(){return this.M===0},e}(),Container=function(e){__extends$g(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Base$6),__extends$f=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Stack=function(e){__extends$f(t,e);function t(n){n===void 0&&(n=[]);var o=e.call(this)||this;o.nt=[];var l=o;return n.forEach(function(a){l.push(a)}),o}return t.prototype.clear=function(){this.M=0,this.nt=[]},t.prototype.push=function(n){return this.nt.push(n),this.M+=1,this.M},t.prototype.pop=function(){if(this.M!==0)return this.M-=1,this.nt.pop()},t.prototype.top=function(){return this.nt[this.M-1]},t}(Base$6);const Stack$1=Stack;var __extends$e=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Queue=function(e){__extends$e(t,e);function t(n){n===void 0&&(n=[]);var o=e.call(this)||this;o.A=0,o.tt=[];var l=o;return n.forEach(function(a){l.push(a)}),o}return t.prototype.clear=function(){this.tt=[],this.M=this.A=0},t.prototype.push=function(n){var o=this.tt.length;if(this.A/o>.5&&this.A+this.M>=o&&o>4096){for(var l=this.M,a=0;a0)&&!(l=o.next()).done;)a.push(l.value)}catch(y){d={error:y}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(d)throw d.error}}return a},__spreadArray$2=globalThis&&globalThis.D||function(e,t,n){if(n||arguments.length===2)for(var o=0,l=t.length,a;oS?-1:_>1,w=a.M-1>>1;w>=0;--w)a.ri(w,y);return a}return t.prototype.ti=function(n){for(var o=this.ii[n];n>0;){var l=n-1>>1,a=this.ii[l];if(this.$(a,o)<=0)break;this.ii[n]=a,n=l}this.ii[n]=o},t.prototype.ri=function(n,o){for(var l=this.ii[n];n0&&(a=d,y=this.ii[d]),this.$(y,l)>=0)break;this.ii[n]=y,n=a}this.ii[n]=l},t.prototype.clear=function(){this.M=0,this.ii.length=0},t.prototype.push=function(n){this.ii.push(n),this.ti(this.M),this.M+=1},t.prototype.pop=function(){if(this.M!==0){var n=this.ii[0],o=this.ii.pop();return this.M-=1,this.M&&(this.ii[0]=o,this.ri(0,this.M>>1)),n}},t.prototype.top=function(){return this.ii[0]},t.prototype.find=function(n){return this.ii.indexOf(n)>=0},t.prototype.remove=function(n){var o=this.ii.indexOf(n);return o<0?!1:(o===0?this.pop():o===this.M-1?(this.ii.pop(),this.M-=1):(this.ii.splice(o,1,this.ii.pop()),this.M-=1,this.ti(o),this.ri(o,this.M>>1)),!0)},t.prototype.updateItem=function(n){var o=this.ii.indexOf(n);return o<0?!1:(this.ti(o),this.ri(o,this.M>>1),!0)},t.prototype.toArray=function(){return __spreadArray$2([],__read$3(this.ii),!1)},t}(Base$6);const PriorityQueue$1=PriorityQueue;var __extends$c=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),SequentialContainer=function(e){__extends$c(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Container);const SequentialContainer$1=SequentialContainer;function throwIteratorAccessError(){throw new RangeError("Iterator access denied!")}var __extends$b=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),RandomIterator=function(e){__extends$b(t,e);function t(n,o){var l=e.call(this,o)||this;return l.o=n,l.iteratorType===0?(l.pre=function(){return this.o===0&&throwIteratorAccessError(),this.o-=1,this},l.next=function(){return this.o===this.container.size()&&throwIteratorAccessError(),this.o+=1,this}):(l.pre=function(){return this.o===this.container.size()-1&&throwIteratorAccessError(),this.o+=1,this},l.next=function(){return this.o===-1&&throwIteratorAccessError(),this.o-=1,this}),l}return Object.defineProperty(t.prototype,"pointer",{get:function(){return this.container.getElementByPos(this.o)},set:function(n){this.container.setElementByPos(this.o,n)},enumerable:!1,configurable:!0}),t}(ContainerIterator),__extends$a=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),__generator$6=globalThis&&globalThis.i||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(_){return function(S){return w([_,S])}}function w(_){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,l&&(a=_[0]&2?l.return:_[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,_[1])).done)return a;switch(l=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return n.label++,{value:_[1],done:!1};case 5:n.label++,l=_[1],_=[0];continue;case 7:_=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]0)&&!(l=o.next()).done;)a.push(l.value)}catch(y){d={error:y}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(d)throw d.error}}return a},__spreadArray$1=globalThis&&globalThis.D||function(e,t,n){if(n||arguments.length===2)for(var o=0,l=t.length,a;o=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},VectorIterator=function(e){__extends$a(t,e);function t(n,o,l){var a=e.call(this,n,l)||this;return a.container=o,a}return t.prototype.copy=function(){return new t(this.o,this.container,this.iteratorType)},t}(RandomIterator),Vector=function(e){__extends$a(t,e);function t(n,o){n===void 0&&(n=[]),o===void 0&&(o=!0);var l=e.call(this)||this;if(Array.isArray(n))l.J=o?__spreadArray$1([],__read$2(n),!1):n,l.M=n.length;else{l.J=[];var a=l;n.forEach(function(d){a.pushBack(d)})}return l}return t.prototype.clear=function(){this.M=0,this.J.length=0},t.prototype.begin=function(){return new VectorIterator(0,this)},t.prototype.end=function(){return new VectorIterator(this.M,this)},t.prototype.rBegin=function(){return new VectorIterator(this.M-1,this,1)},t.prototype.rEnd=function(){return new VectorIterator(-1,this,1)},t.prototype.front=function(){return this.J[0]},t.prototype.back=function(){return this.J[this.M-1]},t.prototype.getElementByPos=function(n){if(n<0||n>this.M-1)throw new RangeError;return this.J[n]},t.prototype.eraseElementByPos=function(n){if(n<0||n>this.M-1)throw new RangeError;return this.J.splice(n,1),this.M-=1,this.M},t.prototype.eraseElementByValue=function(n){for(var o=0,l=0;lthis.M-1)throw new RangeError;this.J[n]=o},t.prototype.insert=function(n,o,l){var a;if(l===void 0&&(l=1),n<0||n>this.M)throw new RangeError;return(a=this.J).splice.apply(a,__spreadArray$1([n,0],__read$2(new Array(l).fill(o)),!1)),this.M+=l,this.M},t.prototype.find=function(n){for(var o=0;o0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]this.M-1)throw new RangeError;for(var o=this.H;n--;)o=o.m;return o.p},t.prototype.eraseElementByPos=function(n){if(n<0||n>this.M-1)throw new RangeError;for(var o=this.H;n--;)o=o.m;return this.G(o),this.M},t.prototype.eraseElementByValue=function(n){for(var o=this.H;o!==this.h;)o.p===n&&this.G(o),o=o.m;return this.M},t.prototype.eraseElementByIterator=function(n){var o=n.o;return o===this.h&&throwIteratorAccessError(),n=n.next(),this.G(o),n},t.prototype.pushBack=function(n){return this.F(n,this.l),this.M},t.prototype.popBack=function(){if(this.M!==0){var n=this.l.p;return this.G(this.l),n}},t.prototype.pushFront=function(n){return this.F(n,this.h),this.M},t.prototype.popFront=function(){if(this.M!==0){var n=this.H.p;return this.G(this.H),n}},t.prototype.setElementByPos=function(n,o){if(n<0||n>this.M-1)throw new RangeError;for(var l=this.H;n--;)l=l.m;l.p=o},t.prototype.insert=function(n,o,l){if(l===void 0&&(l=1),n<0||n>this.M)throw new RangeError;if(l<=0)return this.M;if(n===0)for(;l--;)this.pushFront(o);else if(n===this.M)for(;l--;)this.pushBack(o);else{for(var a=this.H,d=1;d0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]0)&&!(l=o.next()).done;)a.push(l.value)}catch(y){d={error:y}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(d)throw d.error}}return a},__spreadArray=globalThis&&globalThis.D||function(e,t,n){if(n||arguments.length===2)for(var o=0,l=t.length,a;o>1)-(y>>1),l.S=l.k=l.B-a%l.B>>1;var w=l;return n.forEach(function(_){w.pushBack(_)}),l}return t.prototype.O=function(){for(var n=[],o=Math.max(this.C>>1,1),l=0;l>1},t.prototype.begin=function(){return new DequeIterator(0,this)},t.prototype.end=function(){return new DequeIterator(this.M,this)},t.prototype.rBegin=function(){return new DequeIterator(this.M-1,this,1)},t.prototype.rEnd=function(){return new DequeIterator(-1,this,1)},t.prototype.front=function(){if(this.M!==0)return this.j[this.A][this.S]},t.prototype.back=function(){if(this.M!==0)return this.j[this.R][this.k]},t.prototype.pushBack=function(n){return this.M&&(this.k0?this.k-=1:this.R>0?(this.R-=1,this.k=this.B-1):(this.R=this.C-1,this.k=this.B-1)),this.M-=1,n}},t.prototype.pushFront=function(n){return this.M&&(this.S>0?this.S-=1:this.A>0?(this.A-=1,this.S=this.B-1):(this.A=this.C-1,this.S=this.B-1),this.A===this.R&&this.S===this.k&&this.O()),this.M+=1,this.j[this.A][this.S]=n,this.M},t.prototype.popFront=function(){if(this.M!==0){var n=this.j[this.A][this.S];return this.M!==1&&(this.Sthis.M-1)throw new RangeError;var o=this.T(n),l=o.curNodeBucketIndex,a=o.curNodePointerIndex;return this.j[l][a]},t.prototype.setElementByPos=function(n,o){if(n<0||n>this.M-1)throw new RangeError;var l=this.T(n),a=l.curNodeBucketIndex,d=l.curNodePointerIndex;this.j[a][d]=o},t.prototype.insert=function(n,o,l){if(l===void 0&&(l=1),n<0||n>this.M)throw new RangeError;if(n===0)for(;l--;)this.pushFront(o);else if(n===this.M)for(;l--;)this.pushBack(o);else{for(var a=[],d=n;dthis.M-1)throw new RangeError;if(n===0)this.popFront();else if(n===this.M-1)this.popBack();else{for(var o=[],l=n+1;ln;)this.popBack();return this.M},t.prototype.sort=function(n){for(var o=[],l=0;l0)&&!(l=o.next()).done;)a.push(l.value)}catch(y){d={error:y}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(d)throw d.error}}return a},__values$2=globalThis&&globalThis.V||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},TreeContainer=function(e){__extends$6(t,e);function t(n,o){n===void 0&&(n=function(a,d){return ad?1:0}),o===void 0&&(o=!1);var l=e.call(this)||this;return l.W=void 0,l.$=n,o?(l.re=TreeNodeEnableIndex,l.v=function(a,d,y){var w=this.se(a,d,y);if(w){for(var _=w.rr;_!==this.h;)_.tr+=1,_=_.rr;var S=this.fe(w);if(S){var E=S,C=E.parentNode,B=E.grandParent,L=E.curNode;C.ie(),B.ie(),L.ie()}}return this.M},l.G=function(a){for(var d=this.he(a);d!==this.h;)d.tr-=1,d=d.rr}):(l.re=TreeNode,l.v=function(a,d,y){var w=this.se(a,d,y);return w&&this.fe(w),this.M},l.G=l.he),l.h=new l.re,l}return t.prototype.U=function(n,o){for(var l=this.h;n;){var a=this.$(n.u,o);if(a<0)n=n.N;else if(a>0)l=n,n=n.K;else return n}return l},t.prototype.X=function(n,o){for(var l=this.h;n;){var a=this.$(n.u,o);a<=0?n=n.N:(l=n,n=n.K)}return l},t.prototype.Y=function(n,o){for(var l=this.h;n;){var a=this.$(n.u,o);if(a<0)l=n,n=n.N;else if(a>0)n=n.K;else return n}return l},t.prototype.Z=function(n,o){for(var l=this.h;n;){var a=this.$(n.u,o);a<0?(l=n,n=n.N):n=n.K}return l},t.prototype.ue=function(n){for(;;){var o=n.rr;if(o===this.h)return;if(n.ee===1){n.ee=0;return}if(n===o.K){var l=o.N;if(l.ee===1)l.ee=0,o.ee=1,o===this.W?this.W=o.ne():o.ne();else if(l.N&&l.N.ee===1){l.ee=o.ee,o.ee=0,l.N.ee=0,o===this.W?this.W=o.ne():o.ne();return}else l.K&&l.K.ee===1?(l.ee=1,l.K.ee=0,l.te()):(l.ee=1,n=o)}else{var l=o.K;if(l.ee===1)l.ee=0,o.ee=1,o===this.W?this.W=o.te():o.te();else if(l.K&&l.K.ee===1){l.ee=o.ee,o.ee=0,l.K.ee=0,o===this.W?this.W=o.te():o.te();return}else l.N&&l.N.ee===1?(l.ee=1,l.N.ee=0,l.ne()):(l.ee=1,n=o)}}},t.prototype.he=function(n){var o,l;if(this.M===1)return this.clear(),this.h;for(var a=n;a.K||a.N;){if(a.N)for(a=a.N;a.K;)a=a.K;else a=a.K;o=__read([a.u,n.u],2),n.u=o[0],a.u=o[1],l=__read([a.p,n.p],2),n.p=l[0],a.p=l[1],n=a}this.h.K===a?this.h.K=a.rr:this.h.N===a&&(this.h.N=a.rr),this.ue(a);var d=a.rr;return a===d.K?d.K=void 0:d.N=void 0,this.M-=1,this.W.ee=0,d},t.prototype.ae=function(n,o){if(n===void 0)return!1;var l=this.ae(n.K,o);return l||o(n)?!0:this.ae(n.N,o)},t.prototype.fe=function(n){for(;;){var o=n.rr;if(o.ee===0)return;var l=o.rr;if(o===l.K){var a=l.N;if(a&&a.ee===1){if(a.ee=o.ee=0,l===this.W)return;l.ee=1,n=l;continue}else if(n===o.N){if(n.ee=0,n.K&&(n.K.rr=o),n.N&&(n.N.rr=l),o.N=n.K,l.K=n.N,n.K=o,n.N=l,l===this.W)this.W=n,this.h.rr=n;else{var d=l.rr;d.K===l?d.K=n:d.N=n}return n.rr=l.rr,o.rr=n,l.rr=n,l.ee=1,{parentNode:o,grandParent:l,curNode:n}}else o.ee=0,l===this.W?this.W=l.te():l.te(),l.ee=1}else{var a=l.K;if(a&&a.ee===1){if(a.ee=o.ee=0,l===this.W)return;l.ee=1,n=l;continue}else if(n===o.K){if(n.ee=0,n.K&&(n.K.rr=l),n.N&&(n.N.rr=o),l.N=n.K,o.K=n.N,n.K=l,n.N=o,l===this.W)this.W=n,this.h.rr=n;else{var d=l.rr;d.K===l?d.K=n:d.N=n}return n.rr=l.rr,o.rr=n,l.rr=n,l.ee=1,{parentNode:o,grandParent:l,curNode:n}}else o.ee=0,l===this.W?this.W=l.ne():l.ne(),l.ee=1}return}},t.prototype.se=function(n,o,l){if(this.W===void 0){this.M+=1,this.W=new this.re(n,o),this.W.ee=0,this.W.rr=this.h,this.h.rr=this.W,this.h.K=this.W,this.h.N=this.W;return}var a,d=this.h.K,y=this.$(d.u,n);if(y===0){d.p=o;return}else if(y>0)d.K=new this.re(n,o),d.K.rr=d,a=d.K,this.h.K=a;else{var w=this.h.N,_=this.$(w.u,n);if(_===0){w.p=o;return}else if(_<0)w.N=new this.re(n,o),w.N.rr=w,a=w.N,this.h.N=a;else{if(l!==void 0){var S=l.o;if(S!==this.h){var E=this.$(S.u,n);if(E===0){S.p=o;return}else if(E>0){var C=S.L(),B=this.$(C.u,n);if(B===0){C.p=o;return}else B<0&&(a=new this.re(n,o),C.N===void 0?(C.N=a,a.rr=C):(S.K=a,a.rr=S))}}}if(a===void 0)for(a=this.W;;){var L=this.$(a.u,n);if(L>0){if(a.K===void 0){a.K=new this.re(n,o),a.K.rr=a,a=a.K;break}a=a.K}else if(L<0){if(a.N===void 0){a.N=new this.re(n,o),a.N.rr=a,a=a.N;break}a=a.N}else{a.p=o;return}}}}return this.M+=1,a},t.prototype.g=function(n,o){for(;n;){var l=this.$(n.u,o);if(l<0)n=n.N;else if(l>0)n=n.K;else return n}return n||this.h},t.prototype.clear=function(){this.M=0,this.W=void 0,this.h.rr=void 0,this.h.K=this.h.N=void 0},t.prototype.updateKeyByIterator=function(n,o){var l=n.o;if(l===this.h&&throwIteratorAccessError(),this.M===1)return l.u=o,!0;if(l===this.h.K)return this.$(l.m().u,o)>0?(l.u=o,!0):!1;if(l===this.h.N)return this.$(l.L().u,o)<0?(l.u=o,!0):!1;var a=l.L().u;if(this.$(a,o)>=0)return!1;var d=l.m().u;return this.$(d,o)<=0?!1:(l.u=o,!0)},t.prototype.eraseElementByPos=function(n){if(n<0||n>this.M-1)throw new RangeError;var o=0,l=this;return this.ae(this.W,function(a){return n===o?(l.G(a),!0):(o+=1,!1)}),this.M},t.prototype.eraseElementByKey=function(n){if(this.M===0)return!1;var o=this.g(this.W,n);return o===this.h?!1:(this.G(o),!0)},t.prototype.eraseElementByIterator=function(n){var o=n.o;o===this.h&&throwIteratorAccessError();var l=o.N===void 0,a=n.iteratorType===0;return a?l&&n.next():(!l||o.K===void 0)&&n.next(),this.G(o),n},t.prototype.forEach=function(n){var o,l,a=0;try{for(var d=__values$2(this),y=d.next();!y.done;y=d.next()){var w=y.value;n(w,a++,this)}}catch(_){o={error:_}}finally{try{y&&!y.done&&(l=d.return)&&l.call(d)}finally{if(o)throw o.error}}},t.prototype.getElementByPos=function(n){var o,l;if(n<0||n>this.M-1)throw new RangeError;var a,d=0;try{for(var y=__values$2(this),w=y.next();!w.done;w=y.next()){var _=w.value;if(d===n){a=_;break}d+=1}}catch(S){o={error:S}}finally{try{w&&!w.done&&(l=y.return)&&l.call(y)}finally{if(o)throw o.error}}return a},t.prototype.getHeight=function(){if(this.M===0)return 0;var n=function(o){return o?Math.max(n(o.K),n(o.N))+1:0};return n(this.W)},t}(Container);const TreeContainer$1=TreeContainer;var __extends$5=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),TreeIterator=function(e){__extends$5(t,e);function t(n,o,l){var a=e.call(this,l)||this;return a.o=n,a.h=o,a.iteratorType===0?(a.pre=function(){return this.o===this.h.K&&throwIteratorAccessError(),this.o=this.o.L(),this},a.next=function(){return this.o===this.h&&throwIteratorAccessError(),this.o=this.o.m(),this}):(a.pre=function(){return this.o===this.h.N&&throwIteratorAccessError(),this.o=this.o.m(),this},a.next=function(){return this.o===this.h&&throwIteratorAccessError(),this.o=this.o.L(),this}),a}return Object.defineProperty(t.prototype,"index",{get:function(){var n=this.o,o=this.h.rr;if(n===this.h)return o?o.tr-1:0;var l=0;for(n.K&&(l+=n.K.tr);n!==o;){var a=n.rr;n===a.N&&(l+=1,a.K&&(l+=a.K.tr)),n=a}return l},enumerable:!1,configurable:!0}),t}(ContainerIterator);const TreeIterator$1=TreeIterator;var __extends$4=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),__generator$3=globalThis&&globalThis.i||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(_){return function(S){return w([_,S])}}function w(_){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,l&&(a=_[0]&2?l.return:_[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,_[1])).done)return a;switch(l=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return n.label++,{value:_[1],done:!1};case 5:n.label++,l=_[1],_=[0];continue;case 7:_=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},OrderedSetIterator=function(e){__extends$4(t,e);function t(n,o,l,a){var d=e.call(this,n,o,a)||this;return d.container=l,d}return Object.defineProperty(t.prototype,"pointer",{get:function(){return this.o===this.h&&throwIteratorAccessError(),this.o.u},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(TreeIterator$1),OrderedSet=function(e){__extends$4(t,e);function t(n,o,l){n===void 0&&(n=[]);var a=e.call(this,o,l)||this,d=a;return n.forEach(function(y){d.insert(y)}),a}return t.prototype.P=function(n){return __generator$3(this,function(o){switch(o.label){case 0:return n===void 0?[2]:[5,__values$1(this.P(n.K))];case 1:return o.sent(),[4,n.u];case 2:return o.sent(),[5,__values$1(this.P(n.N))];case 3:return o.sent(),[2]}})},t.prototype.begin=function(){return new OrderedSetIterator(this.h.K||this.h,this.h,this)},t.prototype.end=function(){return new OrderedSetIterator(this.h,this.h,this)},t.prototype.rBegin=function(){return new OrderedSetIterator(this.h.N||this.h,this.h,this,1)},t.prototype.rEnd=function(){return new OrderedSetIterator(this.h,this.h,this,1)},t.prototype.front=function(){return this.h.K?this.h.K.u:void 0},t.prototype.back=function(){return this.h.N?this.h.N.u:void 0},t.prototype.insert=function(n,o){return this.v(n,void 0,o)},t.prototype.find=function(n){var o=this.g(this.W,n);return new OrderedSetIterator(o,this.h,this)},t.prototype.lowerBound=function(n){var o=this.U(this.W,n);return new OrderedSetIterator(o,this.h,this)},t.prototype.upperBound=function(n){var o=this.X(this.W,n);return new OrderedSetIterator(o,this.h,this)},t.prototype.reverseLowerBound=function(n){var o=this.Y(this.W,n);return new OrderedSetIterator(o,this.h,this)},t.prototype.reverseUpperBound=function(n){var o=this.Z(this.W,n);return new OrderedSetIterator(o,this.h,this)},t.prototype.union=function(n){var o=this;return n.forEach(function(l){o.insert(l)}),this.M},t.prototype[Symbol.iterator]=function(){return this.P(this.W)},t}(TreeContainer$1);const OrderedSet$1=OrderedSet;var __extends$3=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),__generator$2=globalThis&&globalThis.i||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(_){return function(S){return w([_,S])}}function w(_){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,l&&(a=_[0]&2?l.return:_[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,_[1])).done)return a;switch(l=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return n.label++,{value:_[1],done:!1};case 5:n.label++,l=_[1],_=[0];continue;case 7:_=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},OrderedMapIterator=function(e){__extends$3(t,e);function t(n,o,l,a){var d=e.call(this,n,o,a)||this;return d.container=l,d}return Object.defineProperty(t.prototype,"pointer",{get:function(){this.o===this.h&&throwIteratorAccessError();var n=this;return new Proxy([],{get:function(o,l){if(l==="0")return n.o.u;if(l==="1")return n.o.p},set:function(o,l,a){if(l!=="1")throw new TypeError("props must be 1");return n.o.p=a,!0}})},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(TreeIterator$1),OrderedMap=function(e){__extends$3(t,e);function t(n,o,l){n===void 0&&(n=[]);var a=e.call(this,o,l)||this,d=a;return n.forEach(function(y){d.setElement(y[0],y[1])}),a}return t.prototype.P=function(n){return __generator$2(this,function(o){switch(o.label){case 0:return n===void 0?[2]:[5,__values(this.P(n.K))];case 1:return o.sent(),[4,[n.u,n.p]];case 2:return o.sent(),[5,__values(this.P(n.N))];case 3:return o.sent(),[2]}})},t.prototype.begin=function(){return new OrderedMapIterator(this.h.K||this.h,this.h,this)},t.prototype.end=function(){return new OrderedMapIterator(this.h,this.h,this)},t.prototype.rBegin=function(){return new OrderedMapIterator(this.h.N||this.h,this.h,this,1)},t.prototype.rEnd=function(){return new OrderedMapIterator(this.h,this.h,this,1)},t.prototype.front=function(){if(this.M!==0){var n=this.h.K;return[n.u,n.p]}},t.prototype.back=function(){if(this.M!==0){var n=this.h.N;return[n.u,n.p]}},t.prototype.lowerBound=function(n){var o=this.U(this.W,n);return new OrderedMapIterator(o,this.h,this)},t.prototype.upperBound=function(n){var o=this.X(this.W,n);return new OrderedMapIterator(o,this.h,this)},t.prototype.reverseLowerBound=function(n){var o=this.Y(this.W,n);return new OrderedMapIterator(o,this.h,this)},t.prototype.reverseUpperBound=function(n){var o=this.Z(this.W,n);return new OrderedMapIterator(o,this.h,this)},t.prototype.setElement=function(n,o,l){return this.v(n,o,l)},t.prototype.find=function(n){var o=this.g(this.W,n);return new OrderedMapIterator(o,this.h,this)},t.prototype.getElementByKey=function(n){var o=this.g(this.W,n);return o.p},t.prototype.union=function(n){var o=this;return n.forEach(function(l){o.setElement(l[0],l[1])}),this.M},t.prototype[Symbol.iterator]=function(){return this.P(this.W)},t}(TreeContainer$1);const OrderedMap$1=OrderedMap;function checkObject(e){var t=typeof e;return t==="object"&&e!==null||t==="function"}var __extends$2=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),HashContainerIterator=function(e){__extends$2(t,e);function t(n,o,l){var a=e.call(this,l)||this;return a.o=n,a.h=o,a.iteratorType===0?(a.pre=function(){return this.o.L===this.h&&throwIteratorAccessError(),this.o=this.o.L,this},a.next=function(){return this.o===this.h&&throwIteratorAccessError(),this.o=this.o.m,this}):(a.pre=function(){return this.o.m===this.h&&throwIteratorAccessError(),this.o=this.o.m,this},a.next=function(){return this.o===this.h&&throwIteratorAccessError(),this.o=this.o.L,this}),a}return t}(ContainerIterator),HashContainer=function(e){__extends$2(t,e);function t(){var n=e.call(this)||this;return n._=[],n.I={},n.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(n.I,null),n.h={},n.h.L=n.h.m=n.H=n.l=n.h,n}return t.prototype.G=function(n){var o=n.L,l=n.m;o.m=l,l.L=o,n===this.H&&(this.H=l),n===this.l&&(this.l=o),this.M-=1},t.prototype.v=function(n,o,l){l===void 0&&(l=checkObject(n));var a;if(l){var d=n[this.HASH_TAG];if(d!==void 0)return this._[d].p=o,this.M;Object.defineProperty(n,this.HASH_TAG,{value:this._.length,configurable:!0}),a={u:n,p:o,L:this.l,m:this.h},this._.push(a)}else{var y=this.I[n];if(y)return y.p=o,this.M;a={u:n,p:o,L:this.l,m:this.h},this.I[n]=a}return this.M===0?(this.H=a,this.h.m=a):this.l.m=a,this.l=a,this.h.L=a,++this.M},t.prototype.g=function(n,o){if(o===void 0&&(o=checkObject(n)),o){var l=n[this.HASH_TAG];return l===void 0?this.h:this._[l]}else return this.I[n]||this.h},t.prototype.clear=function(){var n=this.HASH_TAG;this._.forEach(function(o){delete o.u[n]}),this._=[],this.I={},Object.setPrototypeOf(this.I,null),this.M=0,this.H=this.l=this.h.L=this.h.m=this.h},t.prototype.eraseElementByKey=function(n,o){var l;if(o===void 0&&(o=checkObject(n)),o){var a=n[this.HASH_TAG];if(a===void 0)return!1;delete n[this.HASH_TAG],l=this._[a],delete this._[a]}else{if(l=this.I[n],l===void 0)return!1;delete this.I[n]}return this.G(l),!0},t.prototype.eraseElementByIterator=function(n){var o=n.o;return o===this.h&&throwIteratorAccessError(),this.G(o),n.next()},t.prototype.eraseElementByPos=function(n){if(n<0||n>this.M-1)throw new RangeError;for(var o=this.H;n--;)o=o.m;return this.G(o),this.M},t}(Container),__extends$1=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),__generator$1=globalThis&&globalThis.i||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(_){return function(S){return w([_,S])}}function w(_){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,l&&(a=_[0]&2?l.return:_[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,_[1])).done)return a;switch(l=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return n.label++,{value:_[1],done:!1};case 5:n.label++,l=_[1],_=[0];continue;case 7:_=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]this.M-1)throw new RangeError;for(var o=this.H;n--;)o=o.m;return o.u},t.prototype.find=function(n,o){var l=this.g(n,o);return new HashSetIterator(l,this.h,this)},t.prototype.forEach=function(n){for(var o=0,l=this.H;l!==this.h;)n(l.u,o++,this),l=l.m},t.prototype[Symbol.iterator]=function(){return(function(){var n;return __generator$1(this,function(o){switch(o.label){case 0:n=this.H,o.label=1;case 1:return n===this.h?[3,3]:[4,n.u];case 2:return o.sent(),n=n.m,[3,1];case 3:return[2]}})}).bind(this)()},t}(HashContainer);const HashSet$1=HashSet;var __extends=globalThis&&globalThis.t||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),__generator=globalThis&&globalThis.i||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(_){return function(S){return w([_,S])}}function w(_){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,l&&(a=_[0]&2?l.return:_[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,_[1])).done)return a;switch(l=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return n.label++,{value:_[1],done:!1};case 5:n.label++,l=_[1],_=[0];continue;case 7:_=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]this.M-1)throw new RangeError;for(var o=this.H;n--;)o=o.m;return[o.u,o.p]},t.prototype.find=function(n,o){var l=this.g(n,o);return new HashMapIterator(l,this.h,this)},t.prototype.forEach=function(n){for(var o=0,l=this.H;l!==this.h;)n([l.u,l.p],o++,this),l=l.m},t.prototype[Symbol.iterator]=function(){return(function(){var n;return __generator(this,function(o){switch(o.label){case 0:n=this.H,o.label=1;case 1:return n===this.h?[3,3]:[4,[n.u,n.p]];case 2:return o.sent(),n=n.m,[3,1];case 3:return[2]}})}).bind(this)()},t}(HashContainer);const HashMap$1=HashMap,esm=Object.freeze(Object.defineProperty({__proto__:null,Deque:Deque$1,HashMap:HashMap$1,HashSet:HashSet$1,LinkList:LinkList$1,OrderedMap:OrderedMap$1,OrderedSet:OrderedSet$1,PriorityQueue:PriorityQueue$1,Queue:Queue$1,Stack:Stack$1,Vector:Vector$1},Symbol.toStringTag,{value:"Module"})),require$$0$4=getAugmentedNamespace(esm);var browser$c={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var e=1e3,t=e*60,n=t*60,o=n*24,l=o*7,a=o*365.25;ms=function(S,E){E=E||{};var C=typeof S;if(C==="string"&&S.length>0)return d(S);if(C==="number"&&isFinite(S))return E.long?w(S):y(S);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(S))};function d(S){if(S=String(S),!(S.length>100)){var E=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(E){var C=parseFloat(E[1]),B=(E[2]||"ms").toLowerCase();switch(B){case"years":case"year":case"yrs":case"yr":case"y":return C*a;case"weeks":case"week":case"w":return C*l;case"days":case"day":case"d":return C*o;case"hours":case"hour":case"hrs":case"hr":case"h":return C*n;case"minutes":case"minute":case"mins":case"min":case"m":return C*t;case"seconds":case"second":case"secs":case"sec":case"s":return C*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return C;default:return}}}}function y(S){var E=Math.abs(S);return E>=o?Math.round(S/o)+"d":E>=n?Math.round(S/n)+"h":E>=t?Math.round(S/t)+"m":E>=e?Math.round(S/e)+"s":S+"ms"}function w(S){var E=Math.abs(S);return E>=o?_(S,E,o,"day"):E>=n?_(S,E,n,"hour"):E>=t?_(S,E,t,"minute"):E>=e?_(S,E,e,"second"):S+" ms"}function _(S,E,C,B){var L=E>=C*1.5;return Math.round(S/C)+" "+B+(L?"s":"")}return ms}function setup(e){n.debug=n,n.default=n,n.coerce=w,n.disable=d,n.enable=l,n.enabled=y,n.humanize=requireMs(),n.destroy=_,Object.keys(e).forEach(S=>{n[S]=e[S]}),n.names=[],n.skips=[],n.formatters={};function t(S){let E=0;for(let C=0;C{if(ae==="%%")return"%";V++;const ue=n.formatters[ce];if(typeof ue=="function"){const re=q[V];ae=ue.call(H,re),q.splice(V,1),V--}return ae}),n.formatArgs.call(H,q),(H.log||n.log).apply(H,q)}return F.namespace=S,F.useColors=n.useColors(),F.color=n.selectColor(S),F.extend=o,F.destroy=n.destroy,Object.defineProperty(F,"enabled",{enumerable:!0,configurable:!1,get:()=>C!==null?C:(B!==n.namespaces&&(B=n.namespaces,L=n.enabled(S)),L),set:q=>{C=q}}),typeof n.init=="function"&&n.init(F),F}function o(S,E){const C=n(this.namespace+(typeof E>"u"?":":E)+S);return C.log=this.log,C}function l(S){n.save(S),n.namespaces=S,n.names=[],n.skips=[];const E=(typeof S=="string"?S:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const C of E)C[0]==="-"?n.skips.push(C.slice(1)):n.names.push(C)}function a(S,E){let C=0,B=0,L=-1,F=0;for(;C"-"+E)].join(",");return n.enable(""),S}function y(S){for(const E of n.skips)if(a(S,E))return!1;for(const E of n.names)if(a(S,E))return!0;return!1}function w(S){return S instanceof Error?S.stack||S.message:S}function _(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var common$7=setup;(function(e,t){t.formatArgs=o,t.save=l,t.load=a,t.useColors=n,t.storage=d(),t.destroy=(()=>{let w=!1;return()=>{w||(w=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let w;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(w=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(w[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(w){if(w[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+w[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const _="color: "+this.color;w.splice(1,0,_,"color: inherit");let S=0,E=0;w[0].replace(/%[a-zA-Z%]/g,C=>{C!=="%%"&&(S++,C==="%c"&&(E=S))}),w.splice(E,0,_)}t.log=console.debug||console.log||(()=>{});function l(w){try{w?t.storage.setItem("debug",w):t.storage.removeItem("debug")}catch{}}function a(){let w;try{w=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!w&&typeof api$2<"u"&&"env"in api$2&&(w={}.DEBUG),w}function d(){try{return localStorage}catch{}}e.exports=common$7(t);const{formatters:y}=e.exports;y.j=function(w){try{return JSON.stringify(w)}catch(_){return"[UnexpectedJSONParseError]: "+_.message}}})(browser$c,browser$c.exports);var browserExports$1=browser$c.exports;const SortedSet=require$$0$4.OrderedSet,debugTrace=browserExports$1("number-allocator:trace"),debugError=browserExports$1("number-allocator:error");function Interval(e,t){this.low=e,this.high=t}Interval.prototype.equals=function(e){return this.low===e.low&&this.high===e.high};Interval.prototype.compare=function(e){return this.lown.compare(o)),debugTrace("Create"),this.clear()}NumberAllocator$2.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low};NumberAllocator$2.prototype.alloc=function(){if(this.ss.size()===0)return debugTrace("alloc():empty"),null;const e=this.ss.begin(),t=e.pointer.low,n=e.pointer.high,o=t;return o+1<=n?this.ss.updateKeyByIterator(e,new Interval(t+1,n)):this.ss.eraseElementByPos(0),debugTrace("alloc():"+o),o};NumberAllocator$2.prototype.use=function(e){const t=new Interval(e,e),n=this.ss.lowerBound(t);if(!n.equals(this.ss.end())){const o=n.pointer.low,l=n.pointer.high;return n.pointer.equals(t)?(this.ss.eraseElementByIterator(n),debugTrace("use():"+e),!0):o>e?!1:o===e?(this.ss.updateKeyByIterator(n,new Interval(o+1,l)),debugTrace("use():"+e),!0):l===e?(this.ss.updateKeyByIterator(n,new Interval(o,l-1)),debugTrace("use():"+e),!0):(this.ss.updateKeyByIterator(n,new Interval(e+1,l)),this.ss.insert(new Interval(o,e-1)),debugTrace("use():"+e),!0)}return debugTrace("use():failed"),!1};NumberAllocator$2.prototype.free=function(e){if(ethis.max){debugError("free():"+e+" is out of range");return}const t=new Interval(e,e),n=this.ss.upperBound(t);if(n.equals(this.ss.end())){if(n.equals(this.ss.begin())){this.ss.insert(t);return}n.pre();const o=n.pointer.high;n.pointer.high+1===e?this.ss.updateKeyByIterator(n,new Interval(o,e)):this.ss.insert(t)}else if(n.equals(this.ss.begin()))if(e+1===n.pointer.low){const o=n.pointer.high;this.ss.updateKeyByIterator(n,new Interval(e,o))}else this.ss.insert(t);else{const o=n.pointer.low,l=n.pointer.high;n.pre();const a=n.pointer.low;n.pointer.high+1===e?e+1===o?(this.ss.eraseElementByIterator(n),this.ss.updateKeyByIterator(n,new Interval(a,l))):this.ss.updateKeyByIterator(n,new Interval(a,e)):e+1===o?(this.ss.eraseElementByIterator(n.next()),this.ss.insert(new Interval(e,l))):this.ss.insert(t)}debugTrace("free():"+e)};NumberAllocator$2.prototype.clear=function(){debugTrace("clear()"),this.ss.clear(),this.ss.insert(new Interval(this.min,this.max))};NumberAllocator$2.prototype.intervalCount=function(){return this.ss.size()};NumberAllocator$2.prototype.dump=function(){console.log("length:"+this.ss.size());for(const e of this.ss)console.log(e)};var numberAllocator=NumberAllocator$2;const NumberAllocator$1=numberAllocator;numberAllocator$1.NumberAllocator=NumberAllocator$1;const LruMap=lruCache,NumberAllocator=numberAllocator$1.NumberAllocator;function TopicAliasSend$1(e){if(!(this instanceof TopicAliasSend$1))return new TopicAliasSend$1(e);e>0&&(this.aliasToTopic=new LruMap({max:e}),this.topicToAlias={},this.numberAllocator=new NumberAllocator(1,e),this.max=e,this.length=0)}TopicAliasSend$1.prototype.put=function(e,t){if(t===0||t>this.max)return!1;const n=this.aliasToTopic.get(t);return n&&delete this.topicToAlias[n],this.aliasToTopic.set(t,e),this.topicToAlias[e]=t,this.numberAllocator.use(t),this.length=this.aliasToTopic.length,!0};TopicAliasSend$1.prototype.getTopicByAlias=function(e){return this.aliasToTopic.get(e)};TopicAliasSend$1.prototype.getAliasByTopic=function(e){const t=this.topicToAlias[e];return typeof t<"u"&&this.aliasToTopic.get(t),t};TopicAliasSend$1.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0};TopicAliasSend$1.prototype.getLruAlias=function(){const e=this.numberAllocator.firstVacant();return e||this.aliasToTopic.keys()[this.aliasToTopic.length-1]};var topicAliasSend=TopicAliasSend$1,mqtt$1={},bl$1={exports:{}},readableBrowser$2={exports:{}},streamBrowser$3=eventsExports.EventEmitter,buffer_list$2,hasRequiredBuffer_list$2;function requireBuffer_list$2(){if(hasRequiredBuffer_list$2)return buffer_list$2;hasRequiredBuffer_list$2=1;function e(L,F){var q=Object.keys(L);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(L);F&&(H=H.filter(function(D){return Object.getOwnPropertyDescriptor(L,D).enumerable})),q.push.apply(q,H)}return q}function t(L){for(var F=1;F0?this.tail.next=H:this.head=H,this.tail=H,++this.length}},{key:"unshift",value:function(q){var H={data:q,next:this.head};this.length===0&&(this.tail=H),this.head=H,++this.length}},{key:"shift",value:function(){if(this.length!==0){var q=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(q){if(this.length===0)return"";for(var H=this.head,D=""+H.data;H=H.next;)D+=q+H.data;return D}},{key:"concat",value:function(q){if(this.length===0)return _.alloc(0);for(var H=_.allocUnsafe(q>>>0),D=this.head,j=0;D;)B(D.data,H,j),j+=D.data.length,D=D.next;return H}},{key:"consume",value:function(q,H){var D;return qV.length?V.length:q;if(Q===V.length?j+=V:j+=V.slice(0,q),q-=Q,q===0){Q===V.length?(++D,H.next?this.head=H.next:this.head=this.tail=null):(this.head=H,H.data=V.slice(Q));break}++D}return this.length-=D,j}},{key:"_getBuffer",value:function(q){var H=_.allocUnsafe(q),D=this.head,j=1;for(D.data.copy(H),q-=D.data.length;D=D.next;){var V=D.data,Q=q>V.length?V.length:q;if(V.copy(H,H.length-q,0,Q),q-=Q,q===0){Q===V.length?(++j,D.next?this.head=D.next:this.head=this.tail=null):(this.head=D,D.data=V.slice(Q));break}++j}return this.length-=j,H}},{key:C,value:function(q,H){return E(this,t(t({},H),{},{depth:0,customInspect:!1}))}}]),L}(),buffer_list$2}function destroy$3(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return o||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,api$2.nextTick(emitErrorNT$2,this,e)):api$2.nextTick(emitErrorNT$2,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?n._writableState?n._writableState.errorEmitted?api$2.nextTick(emitCloseNT$1,n):(n._writableState.errorEmitted=!0,api$2.nextTick(emitErrorAndCloseNT$1,n,a)):api$2.nextTick(emitErrorAndCloseNT$1,n,a):t?(api$2.nextTick(emitCloseNT$1,n),t(a)):api$2.nextTick(emitCloseNT$1,n)}),this)}function emitErrorAndCloseNT$1(e,t){emitErrorNT$2(e,t),emitCloseNT$1(e)}function emitCloseNT$1(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function undestroy$2(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT$2(e,t){e.emit("error",t)}function errorOrDestroy$1(e,t){var n=e._readableState,o=e._writableState;n&&n.autoDestroy||o&&o.autoDestroy?e.destroy(t):e.emit("error",t)}var destroy_1$3={destroy:destroy$3,undestroy:undestroy$2,errorOrDestroy:errorOrDestroy$1},errorsBrowser$2={};function _inheritsLoose$1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var codes$1={};function createErrorType$1(e,t,n){n||(n=Error);function o(a,d,y){return typeof t=="string"?t:t(a,d,y)}var l=function(a){_inheritsLoose$1(d,a);function d(y,w,_){return a.call(this,o(y,w,_))||this}return d}(n);l.prototype.name=n.name,l.prototype.code=e,codes$1[e]=l}function oneOf$1(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(o){return String(o)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:n===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function startsWith$1(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function endsWith$1(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function includes$1(e,t,n){return typeof n!="number"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}createErrorType$1("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);createErrorType$1("ERR_INVALID_ARG_TYPE",function(e,t,n){var o;typeof t=="string"&&startsWith$1(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be";var l;if(endsWith$1(e," argument"))l="The ".concat(e," ").concat(o," ").concat(oneOf$1(t,"type"));else{var a=includes$1(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(a," ").concat(o," ").concat(oneOf$1(t,"type"))}return l+=". Received type ".concat(typeof n),l},TypeError);createErrorType$1("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType$1("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});createErrorType$1("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType$1("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});createErrorType$1("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType$1("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType$1("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType$1("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType$1("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);createErrorType$1("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser$2.codes=codes$1;var ERR_INVALID_OPT_VALUE$1=errorsBrowser$2.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom$1(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function getHighWaterMark$1(e,t,n,o){var l=highWaterMarkFrom$1(t,o,n);if(l!=null){if(!(isFinite(l)&&Math.floor(l)===l)||l<0){var a=o?n:"highWaterMark";throw new ERR_INVALID_OPT_VALUE$1(a,l)}return Math.floor(l)}return e.objectMode?16:16*1024}var state$2={getHighWaterMark:getHighWaterMark$1},_stream_writable$3,hasRequired_stream_writable$3;function require_stream_writable$3(){if(hasRequired_stream_writable$3)return _stream_writable$3;hasRequired_stream_writable$3=1,_stream_writable$3=ue;function e(U){var P=this;this.next=null,this.entry=null,this.finish=function(){le(P,U)}}var t;ue.WritableState=ae;var n={deprecate:browser$d},o=streamBrowser$3,l=buffer$2.Buffer,a=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d(U){return l.from(U)}function y(U){return l.isBuffer(U)||U instanceof a}var w=destroy_1$3,_=state$2,S=_.getHighWaterMark,E=errorsBrowser$2.codes,C=E.ERR_INVALID_ARG_TYPE,B=E.ERR_METHOD_NOT_IMPLEMENTED,L=E.ERR_MULTIPLE_CALLBACK,F=E.ERR_STREAM_CANNOT_PIPE,q=E.ERR_STREAM_DESTROYED,H=E.ERR_STREAM_NULL_VALUES,D=E.ERR_STREAM_WRITE_AFTER_END,j=E.ERR_UNKNOWN_ENCODING,V=w.errorOrDestroy;inherits_browserExports(ue,o);function Q(){}function ae(U,P,Z){t=t||require_stream_duplex$3(),U=U||{},typeof Z!="boolean"&&(Z=P instanceof t),this.objectMode=!!U.objectMode,Z&&(this.objectMode=this.objectMode||!!U.writableObjectMode),this.highWaterMark=S(this,U,"writableHighWaterMark",Z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=U.decodeStrings===!1;this.decodeStrings=!ie,this.defaultEncoding=U.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){M(P,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}ae.prototype.getBuffer=function(){for(var P=this.bufferedRequest,Z=[];P;)Z.push(P),P=P.next;return Z},function(){try{Object.defineProperty(ae.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ce;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ce=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(P){return ce.call(this,P)?!0:this!==ue?!1:P&&P._writableState instanceof ae}})):ce=function(P){return P instanceof this};function ue(U){t=t||require_stream_duplex$3();var P=this instanceof t;if(!P&&!ce.call(ue,this))return new ue(U);this._writableState=new ae(U,this,P),this.writable=!0,U&&(typeof U.write=="function"&&(this._write=U.write),typeof U.writev=="function"&&(this._writev=U.writev),typeof U.destroy=="function"&&(this._destroy=U.destroy),typeof U.final=="function"&&(this._final=U.final)),o.call(this)}ue.prototype.pipe=function(){V(this,new F)};function re(U,P){var Z=new D;V(U,Z),api$2.nextTick(P,Z)}function pe(U,P,Z,ie){var se;return Z===null?se=new H:typeof Z!="string"&&!P.objectMode&&(se=new C("chunk",["string","Buffer"],Z)),se?(V(U,se),api$2.nextTick(ie,se),!1):!0}ue.prototype.write=function(U,P,Z){var ie=this._writableState,se=!1,k=!ie.objectMode&&y(U);return k&&!l.isBuffer(U)&&(U=d(U)),typeof P=="function"&&(Z=P,P=null),k?P="buffer":P||(P=ie.defaultEncoding),typeof Z!="function"&&(Z=Q),ie.ending?re(this,Z):(k||pe(this,ie,U,Z))&&(ie.pendingcb++,se=u(this,ie,k,U,P,Z)),se},ue.prototype.cork=function(){this._writableState.corked++},ue.prototype.uncork=function(){var U=this._writableState;U.corked&&(U.corked--,!U.writing&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&$(this,U))},ue.prototype.setDefaultEncoding=function(P){if(typeof P=="string"&&(P=P.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((P+"").toLowerCase())>-1))throw new j(P);return this._writableState.defaultEncoding=P,this},Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function T(U,P,Z){return!U.objectMode&&U.decodeStrings!==!1&&typeof P=="string"&&(P=l.from(P,Z)),P}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function u(U,P,Z,ie,se,k){if(!Z){var I=T(P,ie,se);ie!==I&&(Z=!0,se="buffer",ie=I)}var te=P.objectMode?1:ie.length;P.length+=te;var ee=P.length0)if(typeof I!="string"&&!J.objectMode&&Object.getPrototypeOf(I)!==o.prototype&&(I=a(I)),ee)J.endEmitted?Q(k,new H):T(k,J,I,!0);else if(J.ended)Q(k,new F);else{if(J.destroyed)return!1;J.reading=!1,J.decoder&&!te?(I=J.decoder.write(I),J.objectMode||I.length!==0?T(k,J,I,!1):$(k,J)):T(k,J,I,!1)}else ee||(J.reading=!1,$(k,J))}return!J.ended&&(J.length=v?k=v:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function b(k,I){return k<=0||I.length===0&&I.ended?0:I.objectMode?1:k!==k?I.flowing&&I.length?I.buffer.head.data.length:I.length:(k>I.highWaterMark&&(I.highWaterMark=m(k)),k<=I.length?k:I.ended?I.length:(I.needReadable=!0,0))}re.prototype.read=function(k){w("read",k),k=parseInt(k,10);var I=this._readableState,te=k;if(k!==0&&(I.emittedReadable=!1),k===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return w("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?Z(this):A(this),null;if(k=b(k,I),k===0&&I.ended)return I.length===0&&Z(this),null;var ee=I.needReadable;w("need readable",ee),(I.length===0||I.length-k0?fe=P(k,I):fe=null,fe===null?(I.needReadable=I.length<=I.highWaterMark,k=0):(I.length-=k,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),te!==k&&I.ended&&Z(this)),fe!==null&&this.emit("data",fe),fe};function M(k,I){if(w("onEofChunk"),!I.ended){if(I.decoder){var te=I.decoder.end();te&&te.length&&(I.buffer.push(te),I.length+=I.objectMode?1:te.length)}I.ended=!0,I.sync?A(k):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,O(k)))}}function A(k){var I=k._readableState;w("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(w("emitReadable",I.flowing),I.emittedReadable=!0,api$2.nextTick(O,k))}function O(k){var I=k._readableState;w("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(k.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,U(k)}function $(k,I){I.readingMore||(I.readingMore=!0,api$2.nextTick(c,k,I))}function c(k,I){for(;!I.reading&&!I.ended&&(I.length1&&se(ee.pipes,k)!==-1)&&!me&&(w("false write response, pause",ee.awaitDrain),ee.awaitDrain++),te.pause())}function Re(Se){w("onerror",Se),qe(),k.removeListener("error",Re),t(k,"error")===0&&Q(k,Se)}ce(k,"error",Re);function _e(){k.removeListener("finish",we),qe()}k.once("close",_e);function we(){w("onfinish"),k.removeListener("close",_e),qe()}k.once("finish",we);function qe(){w("unpipe"),te.unpipe(k)}return k.emit("pipe",te),ee.flowing||(w("pipe resume"),te.resume()),k};function x(k){return function(){var te=k._readableState;w("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&t(k,"data")&&(te.flowing=!0,U(k))}}re.prototype.unpipe=function(k){var I=this._readableState,te={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return k&&k!==I.pipes?this:(k||(k=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,k&&k.emit("unpipe",this,te),this);if(!k){var ee=I.pipes,fe=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var J=0;J0,ee.flowing!==!1&&this.resume()):k==="readable"&&!ee.endEmitted&&!ee.readableListening&&(ee.readableListening=ee.needReadable=!0,ee.flowing=!1,ee.emittedReadable=!1,w("on readable",ee.length,ee.reading),ee.length?A(this):ee.reading||api$2.nextTick(z,this)),te},re.prototype.addListener=re.prototype.on,re.prototype.removeListener=function(k,I){var te=n.prototype.removeListener.call(this,k,I);return k==="readable"&&api$2.nextTick(N,this),te},re.prototype.removeAllListeners=function(k){var I=n.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&api$2.nextTick(N,this),I};function N(k){var I=k._readableState;I.readableListening=k.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:k.listenerCount("data")>0&&k.resume()}function z(k){w("readable nexttick read 0"),k.read(0)}re.prototype.resume=function(){var k=this._readableState;return k.flowing||(w("resume"),k.flowing=!k.readableListening,oe(this,k)),k.paused=!1,this};function oe(k,I){I.resumeScheduled||(I.resumeScheduled=!0,api$2.nextTick(le,k,I))}function le(k,I){w("resume",I.reading),I.reading||k.read(0),I.resumeScheduled=!1,k.emit("resume"),U(k),I.flowing&&!I.reading&&k.read(0)}re.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function U(k){var I=k._readableState;for(w("flow",I.flowing);I.flowing&&k.read()!==null;);}re.prototype.wrap=function(k){var I=this,te=this._readableState,ee=!1;k.on("end",function(){if(w("wrapped end"),te.decoder&&!te.ended){var Y=te.decoder.end();Y&&Y.length&&I.push(Y)}I.push(null)}),k.on("data",function(Y){if(w("wrapped data"),te.decoder&&(Y=te.decoder.write(Y)),!(te.objectMode&&Y==null)&&!(!te.objectMode&&(!Y||!Y.length))){var X=I.push(Y);X||(ee=!0,k.pause())}});for(var fe in k)this[fe]===void 0&&typeof k[fe]=="function"&&(this[fe]=function(X){return function(){return k[X].apply(k,arguments)}}(fe));for(var J=0;J=I.length?(I.decoder?te=I.buffer.join(""):I.buffer.length===1?te=I.buffer.first():te=I.buffer.concat(I.length),I.buffer.clear()):te=I.buffer.consume(k,I.decoder),te}function Z(k){var I=k._readableState;w("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,api$2.nextTick(ie,I,k))}function ie(k,I){if(w("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,I.readable=!1,I.emit("end"),k.autoDestroy)){var te=I._writableState;(!te||te.autoDestroy&&te.finished)&&I.destroy()}}typeof Symbol=="function"&&(re.from=function(k,I){return V===void 0&&(V=requireFromBrowser$2()),V(re,k,I)});function se(k,I){for(var te=0,ee=k.length;te0;return destroyer$2(d,w,_,function(S){l||(l=S),S&&a.forEach(call$1),!w&&(a.forEach(call$1),o(l))})});return t.reduce(pipe$1)}var pipeline_1$2=pipeline$1;(function(e,t){t=e.exports=require_stream_readable$3(),t.Stream=t,t.Readable=t,t.Writable=require_stream_writable$3(),t.Duplex=require_stream_duplex$3(),t.Transform=_stream_transform$3,t.PassThrough=_stream_passthrough$3,t.finished=endOfStream$3,t.pipeline=pipeline_1$2})(readableBrowser$2,readableBrowser$2.exports);var readableBrowserExports$2=readableBrowser$2.exports;const{Buffer:Buffer$D}=buffer$2,symbol=Symbol.for("BufferList");function BufferList$2(e){if(!(this instanceof BufferList$2))return new BufferList$2(e);BufferList$2._init.call(this,e)}BufferList$2._init=function(t){Object.defineProperty(this,symbol,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};BufferList$2.prototype._new=function(t){return new BufferList$2(t)};BufferList$2.prototype._offset=function(t){if(t===0)return[0,0];let n=0;for(let o=0;othis.length||t<0)return;const n=this._offset(t);return this._bufs[n[0]][n[1]]};BufferList$2.prototype.slice=function(t,n){return typeof t=="number"&&t<0&&(t+=this.length),typeof n=="number"&&n<0&&(n+=this.length),this.copy(null,0,t,n)};BufferList$2.prototype.copy=function(t,n,o,l){if((typeof o!="number"||o<0)&&(o=0),(typeof l!="number"||l>this.length)&&(l=this.length),o>=this.length||l<=0)return t||Buffer$D.alloc(0);const a=!!t,d=this._offset(o),y=l-o;let w=y,_=a&&n||0,S=d[1];if(o===0&&l===this.length){if(!a)return this._bufs.length===1?this._bufs[0]:Buffer$D.concat(this._bufs,this.length);for(let E=0;EC)this._bufs[E].copy(t,_,S),_+=C;else{this._bufs[E].copy(t,_,S,S+w),_+=C;break}w-=C,S&&(S=0)}return t.length>_?t.slice(0,_):t};BufferList$2.prototype.shallowSlice=function(t,n){if(t=t||0,n=typeof n!="number"?this.length:n,t<0&&(t+=this.length),n<0&&(n+=this.length),t===n)return this._new();const o=this._offset(t),l=this._offset(n),a=this._bufs.slice(o[0],l[0]+1);return l[1]===0?a.pop():a[a.length-1]=a[a.length-1].slice(0,l[1]),o[1]!==0&&(a[0]=a[0].slice(o[1])),this._new(a)};BufferList$2.prototype.toString=function(t,n,o){return this.slice(n,o).toString(t)};BufferList$2.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};BufferList$2.prototype.duplicate=function(){const t=this._new();for(let n=0;nthis.length?this.length:t;const o=this._offset(t);let l=o[0],a=o[1];for(;l=e.length){const w=d.indexOf(e,a);if(w!==-1)return this._reverseOffset([l,w]);a=d.length-e.length+1}else{const w=this._reverseOffset([l,a]);if(this._match(w,e))return w;a++}a=0}return-1};BufferList$2.prototype._match=function(e,t){if(this.length-e[0,1].map(a=>[0,1].map(d=>{const y=buffer$2.Buffer.alloc(1);return y.writeUInt8(t.codes[o]<buffer$2.Buffer.from([o])),t.EMPTY={pingreq:buffer$2.Buffer.from([t.codes.pingreq<<4,0]),pingresp:buffer$2.Buffer.from([t.codes.pingresp<<4,0]),disconnect:buffer$2.Buffer.from([t.codes.disconnect<<4,0])}})(constants$5);var constantsExports=constants$5.exports;const bl=blExports,EventEmitter$2=eventsExports,Packet=packet,constants$4=constantsExports,debug$4=browserExports$1("mqtt-packet:parser");class Parser extends EventEmitter$2{constructor(){super(),this.parser=this.constructor.parser}static parser(t){return this instanceof Parser?(this.settings=t||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new Parser().parser(t)}_resetState(){debug$4("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new Packet,this.error=null,this._list=bl(),this._stateCounter=0}parse(t){for(this.error&&this._resetState(),this._list.append(t),debug$4("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,debug$4("parse: state complete. _stateCounter is now: %d",this._stateCounter),debug$4("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return debug$4("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const t=this._list.readUInt8(0);return this.packet.cmd=constants$4.types[t>>constants$4.CMD_SHIFT],this.packet.retain=(t&constants$4.RETAIN_MASK)!==0,this.packet.qos=t>>constants$4.QOS_SHIFT&constants$4.QOS_MASK,this.packet.dup=(t&constants$4.DUP_MASK)!==0,debug$4("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const t=this._parseVarByteNum(!0);return t&&(this.packet.length=t.value,this._list.consume(t.bytes)),debug$4("_parseLength %d",t.value),!!t}_parsePayload(){debug$4("_parsePayload: payload %O",this._list);let t=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}t=!0}return debug$4("_parsePayload complete result: %s",t),t}_parseConnect(){debug$4("_parseConnect");let t,n,o,l;const a={},d=this.packet,y=this._parseString();if(y===null)return this._emitError(new Error("Cannot parse protocolId"));if(y!=="MQTT"&&y!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(d.protocolId=y,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(d.protocolVersion=this._list.readUInt8(this._pos),d.protocolVersion>=128&&(d.bridgeMode=!0,d.protocolVersion=d.protocolVersion-128),d.protocolVersion!==3&&d.protocolVersion!==4&&d.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(a.username=this._list.readUInt8(this._pos)&constants$4.USERNAME_MASK,a.password=this._list.readUInt8(this._pos)&constants$4.PASSWORD_MASK,a.will=this._list.readUInt8(this._pos)&constants$4.WILL_FLAG_MASK,a.will&&(d.will={},d.will.retain=(this._list.readUInt8(this._pos)&constants$4.WILL_RETAIN_MASK)!==0,d.will.qos=(this._list.readUInt8(this._pos)&constants$4.WILL_QOS_MASK)>>constants$4.WILL_QOS_SHIFT),d.clean=(this._list.readUInt8(this._pos)&constants$4.CLEAN_SESSION_MASK)!==0,this._pos++,d.keepalive=this._parseNum(),d.keepalive===-1)return this._emitError(new Error("Packet too short"));if(d.protocolVersion===5){const _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(d.properties=_)}const w=this._parseString();if(w===null)return this._emitError(new Error("Packet too short"));if(d.clientId=w,debug$4("_parseConnect: packet.clientId: %s",d.clientId),a.will){if(d.protocolVersion===5){const _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(d.will.properties=_)}if(t=this._parseString(),t===null)return this._emitError(new Error("Cannot parse will topic"));if(d.will.topic=t,debug$4("_parseConnect: packet.will.topic: %s",d.will.topic),n=this._parseBuffer(),n===null)return this._emitError(new Error("Cannot parse will payload"));d.will.payload=n,debug$4("_parseConnect: packet.will.paylaod: %s",d.will.payload)}if(a.username){if(l=this._parseString(),l===null)return this._emitError(new Error("Cannot parse username"));d.username=l,debug$4("_parseConnect: packet.username: %s",d.username)}if(a.password){if(o=this._parseBuffer(),o===null)return this._emitError(new Error("Cannot parse password"));d.password=o}return this.settings=d,debug$4("_parseConnect: complete"),d}_parseConnack(){debug$4("_parseConnack");const t=this.packet;if(this._list.length<1)return null;if(t.sessionPresent=!!(this._list.readUInt8(this._pos++)&constants$4.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?t.reasonCode=this._list.readUInt8(this._pos++):t.reasonCode=0;else{if(this._list.length<2)return null;t.returnCode=this._list.readUInt8(this._pos++)}if(t.returnCode===-1||t.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(t.properties=n)}debug$4("_parseConnack: complete")}_parsePublish(){debug$4("_parsePublish");const t=this.packet;if(t.topic=this._parseString(),t.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(t.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(t.properties=n)}t.payload=this._list.slice(this._pos,t.length),debug$4("_parsePublish: payload from buffer list: %o",t.payload)}}_parseSubscribe(){debug$4("_parseSubscribe");const t=this.packet;let n,o,l,a,d,y,w;if(t.qos!==1)return this._emitError(new Error("Wrong subscribe header"));if(t.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(t.properties=_)}for(;this._pos=t.length)return this._emitError(new Error("Malformed Subscribe Payload"));o=this._parseByte(),l=o&constants$4.SUBSCRIBE_OPTIONS_QOS_MASK,y=(o>>constants$4.SUBSCRIBE_OPTIONS_NL_SHIFT&constants$4.SUBSCRIBE_OPTIONS_NL_MASK)!==0,d=(o>>constants$4.SUBSCRIBE_OPTIONS_RAP_SHIFT&constants$4.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,a=o>>constants$4.SUBSCRIBE_OPTIONS_RH_SHIFT&constants$4.SUBSCRIBE_OPTIONS_RH_MASK,w={topic:n,qos:l},this.settings.protocolVersion===5?(w.nl=y,w.rap=d,w.rh=a):this.settings.bridgeMode&&(w.rh=0,w.rap=!0,w.nl=!0),debug$4("_parseSubscribe: push subscription `%s` to subscription",w),t.subscriptions.push(w)}}}_parseSuback(){debug$4("_parseSuback");const t=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(t.properties=n)}for(;this._pos2?(t.reasonCode=this._parseByte(),debug$4("_parseConfirmation: packet.reasonCode `%d`",t.reasonCode)):t.reasonCode=0,t.length>3)){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(t.properties=n)}return!0}_parseDisconnect(){const t=this.packet;if(debug$4("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?t.reasonCode=this._parseByte():t.reasonCode=0;const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(t.properties=n)}return debug$4("_parseDisconnect result: true"),!0}_parseAuth(){debug$4("_parseAuth");const t=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));t.reasonCode=this._parseByte();const n=this._parseProperties();return Object.getOwnPropertyNames(n).length&&(t.properties=n),debug$4("_parseAuth: result: true"),!0}_parseMessageId(){const t=this.packet;return t.messageId=this._parseNum(),t.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(debug$4("_parseMessageId: packet.messageId %d",t.messageId),!0)}_parseString(t){const n=this._parseNum(),o=n+this._pos;if(n===-1||o>this._list.length||o>this.packet.length)return null;const l=this._list.toString("utf8",this._pos,o);return this._pos+=n,debug$4("_parseString: result: %s",l),l}_parseStringPair(){return debug$4("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const t=this._parseNum(),n=t+this._pos;if(t===-1||n>this._list.length||n>this.packet.length)return null;const o=this._list.slice(this._pos,n);return this._pos+=t,debug$4("_parseBuffer: result: %o",o),o}_parseNum(){if(this._list.length-this._pos<2)return-1;const t=this._list.readUInt16BE(this._pos);return this._pos+=2,debug$4("_parseNum: result: %s",t),t}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const t=this._list.readUInt32BE(this._pos);return this._pos+=4,debug$4("_parse4ByteNum: result: %s",t),t}_parseVarByteNum(t){debug$4("_parseVarByteNum");const n=4;let o=0,l=1,a=0,d=!1,y;const w=this._pos?this._pos:0;for(;o=o&&this._emitError(new Error("Invalid variable byte integer")),w&&(this._pos+=o),d=d?t?{bytes:o,value:a}:a:!1,debug$4("_parseVarByteNum: result: %o",d),d}_parseByte(){let t;return this._pos>8,0),t.writeUInt8(e&255,0+1),t}function generateCache$1(){for(let e=0;e0&&(n=n|128),l.writeUInt8(n,o++);while(e>0&&o<4);return e>0&&(o=0),SubOk?l.subarray(0,o):l.slice(0,o)}function generate4ByteBuffer$1(e){const t=buffer$2.Buffer.allocUnsafe(4);return t.writeUInt32BE(e,0),t}var numbers$1={cache,generateCache:generateCache$1,generateNumber:generateBuffer,genBufVariableByteInt:genBufVariableByteInt$1,generate4ByteBuffer:generate4ByteBuffer$1},processNextickArgs={exports:{}};typeof api$2>"u"||!api$2.version||api$2.version.indexOf("v0.")===0||api$2.version.indexOf("v1.")===0&&api$2.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick:nextTick$3}:processNextickArgs.exports=api$2;function nextTick$3(e,t,n,o){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var l=arguments.length,a,d;switch(l){case 0:case 1:return api$2.nextTick(e);case 2:return api$2.nextTick(function(){e.call(null,t)});case 3:return api$2.nextTick(function(){e.call(null,t,n)});case 4:return api$2.nextTick(function(){e.call(null,t,n,o)});default:for(a=new Array(l-1),d=0;d=4)&&(_||y))B+=buffer$2.Buffer.byteLength(_)+2;else{if(a<4)return t.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(y*1===0)return t.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof w!="number"||w<0||w>65535||w%1!==0)return t.emit("error",new Error("Invalid keepalive")),!1;if(B+=2,B+=1,a===5){var L=getProperties(t,C);if(!L)return!1;B+=L.length}if(d){if(typeof d!="object")return t.emit("error",new Error("Invalid will")),!1;if(!d.topic||typeof d.topic!="string")return t.emit("error",new Error("Invalid will topic")),!1;if(B+=buffer$2.Buffer.byteLength(d.topic)+2,B+=2,d.payload)if(d.payload.length>=0)typeof d.payload=="string"?B+=buffer$2.Buffer.byteLength(d.payload):B+=d.payload.length;else return t.emit("error",new Error("Invalid will payload")),!1;var F={};if(a===5){if(F=getProperties(t,d.properties),!F)return!1;B+=F.length}}let q=!1;if(S!=null)if(isStringOrBuffer(S))q=!0,B+=buffer$2.Buffer.byteLength(S)+2;else return t.emit("error",new Error("Invalid username")),!1;if(E!=null){if(!q)return t.emit("error",new Error("Username is required to use password")),!1;if(isStringOrBuffer(E))B+=byteLength(E)+2;else return t.emit("error",new Error("Invalid password")),!1}t.write(protocol.CONNECT_HEADER),writeVarByteInt(t,B),writeStringOrBuffer(t,l),o.bridgeMode&&(a+=128),t.write(a===131?protocol.VERSION131:a===132?protocol.VERSION132:a===4?protocol.VERSION4:a===5?protocol.VERSION5:protocol.VERSION3);let H=0;return H|=S!=null?protocol.USERNAME_MASK:0,H|=E!=null?protocol.PASSWORD_MASK:0,H|=d&&d.retain?protocol.WILL_RETAIN_MASK:0,H|=d&&d.qos?d.qos<0&&writeNumber(t,_),C!=null&&C.write(),debug$3("publish: payload: %o",w),t.write(w)}function confirmation(e,t,n){const o=n?n.protocolVersion:4,l=e||{},a=l.cmd||"puback",d=l.messageId,y=l.dup&&a==="pubrel"?protocol.DUP_MASK:0;let w=0;const _=l.reasonCode,S=l.properties;let E=o===5?3:2;if(a==="pubrel"&&(w=1),typeof d!="number")return t.emit("error",new Error("Invalid messageId")),!1;let C=null;if(o===5&&typeof S=="object"){if(C=getPropertiesByMaximumPacketSize(t,S,n,E),!C)return!1;E+=C.length}return t.write(protocol.ACKS[a][w][y][0]),writeVarByteInt(t,E),writeNumber(t,d),o===5&&t.write(buffer$2.Buffer.from([_])),C!==null&&C.write(),!0}function subscribe(e,t,n){debug$3("subscribe: packet: ");const o=n?n.protocolVersion:4,l=e||{},a=l.dup?protocol.DUP_MASK:0,d=l.messageId,y=l.subscriptions,w=l.properties;let _=0;if(typeof d!="number")return t.emit("error",new Error("Invalid messageId")),!1;_+=2;let S=null;if(o===5){if(S=getProperties(t,w),!S)return!1;_+=S.length}if(typeof y=="object"&&y.length)for(let C=0;C2)return t.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}_+=buffer$2.Buffer.byteLength(B)+2+1}else return t.emit("error",new Error("Invalid subscriptions")),!1;debug$3("subscribe: writing to stream: %o",protocol.SUBSCRIBE_HEADER),t.write(protocol.SUBSCRIBE_HEADER[1][a?1:0][0]),writeVarByteInt(t,_),writeNumber(t,d),S!==null&&S.write();let E=!0;for(const C of y){const B=C.topic,L=C.qos,F=+C.nl,q=+C.rap,H=C.rh;let D;writeString(t,B),D=protocol.SUBSCRIBE_OPTIONS_QOS[L],o===5&&(D|=F?protocol.SUBSCRIBE_OPTIONS_NL:0,D|=q?protocol.SUBSCRIBE_OPTIONS_RAP:0,D|=H?protocol.SUBSCRIBE_OPTIONS_RH[H]:0),E=t.write(buffer$2.Buffer.from([D]))}return E}function suback(e,t,n){const o=n?n.protocolVersion:4,l=e||{},a=l.messageId,d=l.granted,y=l.properties;let w=0;if(typeof a!="number")return t.emit("error",new Error("Invalid messageId")),!1;if(w+=2,typeof d=="object"&&d.length)for(let S=0;Sprotocol.VARBYTEINT_MAX)return e.emit("error",new Error(`Invalid variable byte integer: ${t}`)),!1;let n=varByteIntCache[t];return n||(n=genBufVariableByteInt(t),t<16384&&(varByteIntCache[t]=n)),debug$3("writeVarByteInt: writing to stream: %o",n),e.write(n)}function writeString(e,t){const n=buffer$2.Buffer.byteLength(t);return writeNumber(e,n),debug$3("writeString: %s",t),e.write(t,"utf8")}function writeStringPair(e,t,n){writeString(e,t),writeString(e,n)}function writeNumberCached(e,t){return debug$3("writeNumberCached: number: %d",t),debug$3("writeNumberCached: %o",numCache[t]),e.write(numCache[t])}function writeNumberGenerated(e,t){const n=generateNumber(t);return debug$3("writeNumberGenerated: %o",n),e.write(n)}function write4ByteNumber(e,t){const n=generate4ByteBuffer(t);return debug$3("write4ByteNumber: %o",n),e.write(n)}function writeStringOrBuffer(e,t){typeof t=="string"?writeString(e,t):t?(writeNumber(e,t.length),e.write(t)):writeNumber(e,0)}function getProperties(e,t){if(typeof t!="object"||t.length!=null)return{length:1,write(){writeProperties(e,{},0)}};let n=0;function o(a,d){const y=protocol.propertiesTypes[a];let w=0;switch(y){case"byte":{if(typeof d!="boolean")return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+1;break}case"int8":{if(typeof d!="number"||d<0||d>255)return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+1;break}case"binary":{if(d&&d===null)return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+buffer$2.Buffer.byteLength(d)+2;break}case"int16":{if(typeof d!="number"||d<0||d>65535)return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+2;break}case"int32":{if(typeof d!="number"||d<0||d>4294967295)return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+4;break}case"var":{if(typeof d!="number"||d<0||d>268435455)return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+buffer$2.Buffer.byteLength(genBufVariableByteInt(d));break}case"string":{if(typeof d!="string")return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=1+2+buffer$2.Buffer.byteLength(d.toString());break}case"pair":{if(typeof d!="object")return e.emit("error",new Error(`Invalid ${a}: ${d}`)),!1;w+=Object.getOwnPropertyNames(d).reduce((_,S)=>{const E=d[S];return Array.isArray(E)?_+=E.reduce((C,B)=>(C+=1+2+buffer$2.Buffer.byteLength(S.toString())+2+buffer$2.Buffer.byteLength(B.toString()),C),0):_+=1+2+buffer$2.Buffer.byteLength(S.toString())+2+buffer$2.Buffer.byteLength(d[S].toString()),_},0);break}default:return e.emit("error",new Error(`Invalid property ${a}: ${d}`)),!1}return w}if(t)for(const a in t){let d=0,y=0;const w=t[a];if(Array.isArray(w))for(let _=0;_a;){const y=l.shift();if(y&&t[y])delete t[y],d=getProperties(e,t);else return!1}return d}function writeProperty(e,t,n){switch(protocol.propertiesTypes[t]){case"byte":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),e.write(buffer$2.Buffer.from([+n]));break}case"int8":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),e.write(buffer$2.Buffer.from([n]));break}case"binary":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),writeStringOrBuffer(e,n);break}case"int16":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),writeNumber(e,n);break}case"int32":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),write4ByteNumber(e,n);break}case"var":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),writeVarByteInt(e,n);break}case"string":{e.write(buffer$2.Buffer.from([protocol.properties[t]])),writeString(e,n);break}case"pair":{Object.getOwnPropertyNames(n).forEach(l=>{const a=n[l];Array.isArray(a)?a.forEach(d=>{e.write(buffer$2.Buffer.from([protocol.properties[t]])),writeStringPair(e,l.toString(),d.toString())}):(e.write(buffer$2.Buffer.from([protocol.properties[t]])),writeStringPair(e,l.toString(),a.toString()))});break}default:return e.emit("error",new Error(`Invalid property ${t} value: ${n}`)),!1}}function writeProperties(e,t,n){writeVarByteInt(e,n);for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&t[o]!==null){const l=t[o];if(Array.isArray(l))for(let a=0;a0){e=new Array(arguments.length-2);for(var t=0;tnew Date(d)),t.set(Map,(d,y)=>new Map(o(Array.from(d),y))),t.set(Set,(d,y)=>new Set(o(Array.from(d),y))),e.constructorHandlers)for(const d of e.constructorHandlers)t.set(d[0],d[1]);let n=null;return e.proto?a:l;function o(d,y){const w=Object.keys(d),_=new Array(w.length);for(let S=0;Snew Date(w)),o.set(Map,(w,_)=>new Map(a(Array.from(w),_))),o.set(Set,(w,_)=>new Set(a(Array.from(w),_))),e.constructorHandlers)for(const w of e.constructorHandlers)o.set(w[0],w[1]);let l=null;return e.proto?y:d;function a(w,_){const S=Object.keys(w),E=new Array(S.length);for(let C=0;C"u")return new Error("Unregistered Topic Alias");if(o=e.topicAliasSend.getTopicByAlias(n),typeof o>"u")return new Error("Unregistered Topic Alias");t.topic=o}n&&delete t.properties.topicAlias}function sendPacket(e,t,n){debug$2("sendPacket :: packet: %O",t),debug$2("sendPacket :: emitting `packetsend`"),e.emit("packetsend",t),debug$2("sendPacket :: writing to stream");const o=mqttPacket.writeToStream(t,e.stream,e.options);debug$2("sendPacket :: writeToStream result %s",o),!o&&n&&n!==nop?(debug$2("sendPacket :: handle events on `drain` once through callback."),e.stream.once("drain",n)):n&&(debug$2("sendPacket :: invoking cb"),n())}function flush(e){e&&(debug$2("flush: queue exists? %b",!!e),Object.keys(e).forEach(function(t){typeof e[t].cb=="function"&&(e[t].cb(new Error("Connection closed")),delete e[t])}))}function flushVolatile(e){e&&(debug$2("flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(e).forEach(function(t){e[t].volatile&&typeof e[t].cb=="function"&&(e[t].cb(new Error("Connection closed")),delete e[t])}))}function storeAndSend(e,t,n,o){debug$2("storeAndSend :: store packet with cmd %s to outgoingStore",t.cmd);let l=t,a;if(l.cmd==="publish"&&(l=clone$1(t),a=removeTopicAliasAndRecoverTopicName(e,l),a))return n&&n(a);e.outgoingStore.put(l,function(y){if(y)return n&&n(y);o(),sendPacket(e,t,n)})}function nop(e){debug$2("nop ::",e)}function MqttClient$1(e,t){let n;const o=this;if(!(this instanceof MqttClient$1))return new MqttClient$1(e,t);this.options=t||{};for(n in defaultConnectOptions)typeof this.options[n]>"u"?this.options[n]=defaultConnectOptions[n]:this.options[n]=t[n];debug$2("MqttClient :: options.protocol",t.protocol),debug$2("MqttClient :: options.protocolVersion",t.protocolVersion),debug$2("MqttClient :: options.username",t.username),debug$2("MqttClient :: options.keepalive",t.keepalive),debug$2("MqttClient :: options.reconnectPeriod",t.reconnectPeriod),debug$2("MqttClient :: options.rejectUnauthorized",t.rejectUnauthorized),debug$2("MqttClient :: options.topicAliasMaximum",t.topicAliasMaximum),this.options.clientId=typeof t.clientId=="string"?t.clientId:defaultId(),debug$2("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=t.protocolVersion===5&&t.customHandleAcks?t.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=e,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new DefaultMessageIdProvider:this.options.messageIdProvider,this.outgoingStore=t.outgoingStore||new Store$2,this.incomingStore=t.incomingStore||new Store$2,this.queueQoSZero=t.queueQoSZero===void 0?!0:t.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,t.topicAliasMaximum>0&&(t.topicAliasMaximum>65535?debug$2("MqttClient :: options.topicAliasMaximum is out of range"):this.topicAliasRecv=new TopicAliasRecv(t.topicAliasMaximum)),this.on("connect",function(){const l=this.queue;function a(){const d=l.shift();debug$2("deliver :: entry %o",d);let y=null;if(!d){o._resubscribe();return}y=d.packet,debug$2("deliver :: call _sendPacket for %o",y);let w=!0;y.messageId&&y.messageId!==0&&(o.messageIdProvider.register(y.messageId)||(w=!1)),w?o._sendPacket(y,function(_){d.cb&&d.cb(_),a()}):(debug$2("messageId: %d has already used. The message is skipped and removed.",y.messageId),a())}debug$2("connect :: sending queued packets"),a()}),this.on("close",function(){debug$2("close :: connected set to `false`"),this.connected=!1,debug$2("close :: clearing connackTimer"),clearTimeout(this.connackTimer),debug$2("close :: clearing ping timer"),o.pingTimer!==null&&(o.pingTimer.clear(),o.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),debug$2("close :: calling _setupReconnect"),this._setupReconnect()}),EventEmitter.call(this),debug$2("MqttClient :: setting up stream"),this._setupStream()}inherits$u(MqttClient$1,EventEmitter);MqttClient$1.prototype._setupStream=function(){const e=this,t=new Writable,n=mqttPacket.parser(this.options);let o=null;const l=[];debug$2("_setupStream :: calling method to clear reconnect"),this._clearReconnect(),debug$2("_setupStream :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),n.on("packet",function(_){debug$2("parser :: on packet push to packets array."),l.push(_)});function a(){if(l.length)nextTick$1(d);else{const _=o;o=null,_()}}function d(){debug$2("work :: getting next packet in queue");const _=l.shift();if(_)debug$2("work :: packet pulled from queue"),e._handlePacket(_,a);else{debug$2("work :: no packets in queue");const S=o;o=null,debug$2("work :: done flag is %s",!!S),S&&S()}}t._write=function(_,S,E){o=E,debug$2("writable stream :: parsing buffer"),n.parse(_),d()};function y(_){debug$2("streamErrorHandler :: error",_.message),_.code?(debug$2("streamErrorHandler :: emitting error"),e.emit("error",_)):nop(_)}debug$2("_setupStream :: pipe stream to writable stream"),this.stream.pipe(t),this.stream.on("error",y),this.stream.on("close",function(){debug$2("(%s)stream :: on close",e.options.clientId),flushVolatile(e.outgoing),debug$2("stream: emit close to MqttClient"),e.emit("close")}),debug$2("_setupStream: sending packet `connect`");const w=Object.create(this.options);if(w.cmd="connect",this.topicAliasRecv&&(w.properties||(w.properties={}),this.topicAliasRecv&&(w.properties.topicAliasMaximum=this.topicAliasRecv.max)),sendPacket(this,w),n.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return e.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){const _=xtend$1({cmd:"auth",reasonCode:0},this.options.authPacket);sendPacket(this,_)}}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(function(){debug$2("!!connectTimeout hit!! Calling _cleanUp with force `true`"),e._cleanUp(!0)},this.options.connectTimeout)};MqttClient$1.prototype._handlePacket=function(e,t){const n=this.options;if(n.protocolVersion===5&&n.properties&&n.properties.maximumPacketSize&&n.properties.maximumPacketSize0||!y())&&this._storeProcessingQueue.push({invoke:y,cbStorePut:n.cbStorePut,callback:o}),this};MqttClient$1.prototype.subscribe=function(){const e=this,t=new Array(arguments.length);for(let E=0;E0){const F={qos:L.qos};y===5&&(F.nl=L.nl||!1,F.rap=L.rap||!1,F.rh=L.rh||0,F.properties=L.properties),e._resubscribeTopics[L.topic]=F,B.push(L.topic)}}),e.messageIdToTopic[C.messageId]=B}return e.outgoing[C.messageId]={volatile:!0,cb:function(B,L){if(!B){const F=L.granted;for(let q=0;q0||!S())&&this._storeProcessingQueue.push({invoke:S,callback:a}),this};MqttClient$1.prototype.unsubscribe=function(){const e=this,t=new Array(arguments.length);for(let y=0;y0||!d())&&this._storeProcessingQueue.push({invoke:d,callback:o}),this};MqttClient$1.prototype.end=function(e,t,n){const o=this;debug$2("end :: (%s)",this.options.clientId),(e==null||typeof e!="boolean")&&(n=t||nop,t=e,e=!1,typeof t!="object"&&(n=t,t=null,typeof n!="function"&&(n=nop))),typeof t!="object"&&(n=t,t=null),debug$2("end :: cb? %s",!!n),n=n||nop;function l(){debug$2("end :: closeStores: closing incoming and outgoing stores"),o.disconnected=!0,o.incomingStore.close(function(d){o.outgoingStore.close(function(y){if(debug$2("end :: closeStores: emitting end"),o.emit("end"),n){const w=d||y;debug$2("end :: closeStores: invoking callback with args"),n(w)}})}),o._deferredReconnect&&o._deferredReconnect()}function a(){debug$2("end :: (%s) :: finish :: calling _cleanUp with force %s",o.options.clientId,e),o._cleanUp(e,()=>{debug$2("end :: finish :: calling process.nextTick on closeStores"),nextTick$1(l.bind(o))},t)}return this.disconnecting?(n(),this):(this._clearReconnect(),this.disconnecting=!0,!e&&Object.keys(this.outgoing).length>0?(debug$2("end :: (%s) :: calling finish in 10ms once outgoing is empty",o.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,a,10))):(debug$2("end :: (%s) :: immediately calling finish",o.options.clientId),a()),this)};MqttClient$1.prototype.removeOutgoingMessage=function(e){const t=this.outgoing[e]?this.outgoing[e].cb:null;return delete this.outgoing[e],this.outgoingStore.del({messageId:e},function(){t(new Error("Message removed"))}),this};MqttClient$1.prototype.reconnect=function(e){debug$2("client reconnect");const t=this,n=function(){e?(t.options.incomingStore=e.incomingStore,t.options.outgoingStore=e.outgoingStore):(t.options.incomingStore=null,t.options.outgoingStore=null),t.incomingStore=t.options.incomingStore||new Store$2,t.outgoingStore=t.options.outgoingStore||new Store$2,t.disconnecting=!1,t.disconnected=!1,t._deferredReconnect=null,t._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=n:n(),this};MqttClient$1.prototype._reconnect=function(){debug$2("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this._setupStream()}),debug$2("client already connected. disconnecting first.")):(debug$2("_reconnect: calling _setupStream"),this._setupStream())};MqttClient$1.prototype._setupReconnect=function(){const e=this;!e.disconnecting&&!e.reconnectTimer&&e.options.reconnectPeriod>0?(this.reconnecting||(debug$2("_setupReconnect :: emit `offline` state"),this.emit("offline"),debug$2("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),debug$2("_setupReconnect :: setting reconnectTimer for %d ms",e.options.reconnectPeriod),e.reconnectTimer=setInterval(function(){debug$2("reconnectTimer :: reconnect triggered!"),e._reconnect()},e.options.reconnectPeriod)):debug$2("_setupReconnect :: doing nothing...")};MqttClient$1.prototype._clearReconnect=function(){debug$2("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)};MqttClient$1.prototype._cleanUp=function(e,t){const n=arguments[2];if(t&&(debug$2("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",t)),debug$2("_cleanUp :: forced? %s",e),e)this.options.reconnectPeriod===0&&this.options.clean&&flush(this.outgoing),debug$2("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const o=xtend$1({cmd:"disconnect"},n);debug$2("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(o,setImmediate$1.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(debug$2("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this.pingTimer!==null&&(debug$2("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),t&&!this.connected&&(debug$2("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",t),t())};MqttClient$1.prototype._sendPacket=function(e,t,n){debug$2("_sendPacket :: (%s) :: start",this.options.clientId),n=n||nop,t=t||nop;const o=applyTopicAlias(this,e);if(o){t(o);return}if(!this.connected){if(e.cmd==="auth"){this._shiftPingInterval(),sendPacket(this,e,t);return}debug$2("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(e,t,n);return}switch(this._shiftPingInterval(),e.cmd){case"publish":break;case"pubrel":storeAndSend(this,e,t,n);return;default:sendPacket(this,e,t);return}switch(e.qos){case 2:case 1:storeAndSend(this,e,t,n);break;case 0:default:sendPacket(this,e,t);break}debug$2("_sendPacket :: (%s) :: end",this.options.clientId)};MqttClient$1.prototype._storePacket=function(e,t,n){debug$2("_storePacket :: packet: %o",e),debug$2("_storePacket :: cb? %s",!!t),n=n||nop;let o=e;if(o.cmd==="publish"){o=clone$1(e);const l=removeTopicAliasAndRecoverTopicName(this,o);if(l)return t&&t(l)}(o.qos||0)===0&&this.queueQoSZero||o.cmd!=="publish"?this.queue.push({packet:o,cb:t}):o.qos>0?(t=this.outgoing[o.messageId]?this.outgoing[o.messageId].cb:null,this.outgoingStore.put(o,function(l){if(l)return t&&t(l);n()})):t&&t(new Error("No connection to broker"))};MqttClient$1.prototype._setupPingTimer=function(){debug$2("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive);const e=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=reInterval(function(){e._checkPing()},this.options.keepalive*1e3))};MqttClient$1.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(this.options.keepalive*1e3)};MqttClient$1.prototype._checkPing=function(){debug$2("_checkPing :: checking ping..."),this.pingResp?(debug$2("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(debug$2("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))};MqttClient$1.prototype._handlePingresp=function(){this.pingResp=!0};MqttClient$1.prototype._handleConnack=function(e){debug$2("_handleConnack");const t=this.options,o=t.protocolVersion===5?e.reasonCode:e.returnCode;if(clearTimeout(this.connackTimer),delete this.topicAliasSend,e.properties){if(e.properties.topicAliasMaximum){if(e.properties.topicAliasMaximum>65535){this.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}e.properties.topicAliasMaximum>0&&(this.topicAliasSend=new TopicAliasSend(e.properties.topicAliasMaximum))}e.properties.serverKeepAlive&&t.keepalive&&(t.keepalive=e.properties.serverKeepAlive,this._shiftPingInterval()),e.properties.maximumPacketSize&&(t.properties||(t.properties={}),t.properties.maximumPacketSize=e.properties.maximumPacketSize)}if(o===0)this.reconnecting=!1,this._onConnect(e);else if(o>0){const l=new Error("Connection refused: "+errors[o]);l.code=o,this.emit("error",l)}};MqttClient$1.prototype._handleAuth=function(e){const n=this.options.protocolVersion,o=n===5?e.reasonCode:e.returnCode;if(n!==5){const a=new Error("Protocol error: Auth packets are only supported in MQTT 5. Your version:"+n);a.code=o,this.emit("error",a);return}const l=this;this.handleAuth(e,function(a,d){if(a){l.emit("error",a);return}if(o===24)l.reconnecting=!1,l._sendPacket(d);else{const y=new Error("Connection refused: "+errors[o]);a.code=o,l.emit("error",y)}})};MqttClient$1.prototype.handleAuth=function(e,t){t()};MqttClient$1.prototype._handlePublish=function(e,t){debug$2("_handlePublish: packet %o",e),t=typeof t<"u"?t:nop;let n=e.topic.toString();const o=e.payload,l=e.qos,a=e.messageId,d=this,y=this.options,w=[0,16,128,131,135,144,145,151,153];if(this.options.protocolVersion===5){let _;if(e.properties&&(_=e.properties.topicAlias),typeof _<"u")if(n.length===0)if(_>0&&_<=65535){const S=this.topicAliasRecv.getTopicByAlias(_);if(S)n=S,debug$2("_handlePublish :: topic complemented by alias. topic: %s - alias: %d",n,_);else{debug$2("_handlePublish :: unregistered topic alias. alias: %d",_),this.emit("error",new Error("Received unregistered Topic Alias"));return}}else{debug$2("_handlePublish :: topic alias out of range. alias: %d",_),this.emit("error",new Error("Received Topic Alias is out of range"));return}else if(this.topicAliasRecv.put(n,_))debug$2("_handlePublish :: registered topic: %s - alias: %d",n,_);else{debug$2("_handlePublish :: topic alias out of range. alias: %d",_),this.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(debug$2("_handlePublish: qos %d",l),l){case 2:{y.customHandleAcks(n,o,e,function(_,S){if(_ instanceof Error||(S=_,_=null),_)return d.emit("error",_);if(w.indexOf(S)===-1)return d.emit("error",new Error("Wrong reason code for pubrec"));S?d._sendPacket({cmd:"pubrec",messageId:a,reasonCode:S},t):d.incomingStore.put(e,function(){d._sendPacket({cmd:"pubrec",messageId:a},t)})});break}case 1:{y.customHandleAcks(n,o,e,function(_,S){if(_ instanceof Error||(S=_,_=null),_)return d.emit("error",_);if(w.indexOf(S)===-1)return d.emit("error",new Error("Wrong reason code for puback"));S||d.emit("message",n,o,e),d.handleMessage(e,function(E){if(E)return t&&t(E);d._sendPacket({cmd:"puback",messageId:a,reasonCode:S},t)})});break}case 0:this.emit("message",n,o,e),this.handleMessage(e,t);break;default:debug$2("_handlePublish: unknown QoS. Doing nothing.");break}};MqttClient$1.prototype.handleMessage=function(e,t){t()};MqttClient$1.prototype._handleAck=function(e){const t=e.messageId,n=e.cmd;let o=null;const l=this.outgoing[t]?this.outgoing[t].cb:null,a=this;let d;if(!l){debug$2("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(debug$2("_handleAck :: packet type",n),n){case"pubcomp":case"puback":{const y=e.reasonCode;y&&y>0&&y!==16&&(d=new Error("Publish error: "+errors[y]),d.code=y,l(d,e)),delete this.outgoing[t],this.outgoingStore.del(e,l),this.messageIdProvider.deallocate(t),this._invokeStoreProcessingQueue();break}case"pubrec":{o={cmd:"pubrel",qos:2,messageId:t};const y=e.reasonCode;y&&y>0&&y!==16?(d=new Error("Publish error: "+errors[y]),d.code=y,l(d,e)):this._sendPacket(o);break}case"suback":{delete this.outgoing[t],this.messageIdProvider.deallocate(t);for(let y=0;y0)if(this.options.resubscribe)if(this.options.protocolVersion===5){debug$2("_resubscribe: protocolVersion 5");for(let t=0;t0){const e=this._storeProcessingQueue[0];if(e&&e.invoke())return this._storeProcessingQueue.shift(),!0}return!1};MqttClient$1.prototype._invokeAllStoreProcessingQueue=function(){for(;this._invokeStoreProcessingQueue(););};MqttClient$1.prototype._flushStoreProcessingQueue=function(){for(const e of this._storeProcessingQueue)e.cbStorePut&&e.cbStorePut(new Error("Connection closed")),e.callback&&e.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)};var client=MqttClient$1,punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports;(function(e,t){(function(n){var o=t&&!t.nodeType&&t,l=e&&!e.nodeType&&e,a=typeof commonjsGlobal=="object"&&commonjsGlobal;(a.global===a||a.window===a||a.self===a)&&(n=a);var d,y=2147483647,w=36,_=1,S=26,E=38,C=700,B=72,L=128,F="-",q=/^xn--/,H=/[^\x20-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V=w-_,Q=Math.floor,ae=String.fromCharCode,ce;function ue(c){throw new RangeError(j[c])}function re(c,x){for(var N=c.length,z=[];N--;)z[N]=x(c[N]);return z}function pe(c,x){var N=c.split("@"),z="";N.length>1&&(z=N[0]+"@",c=N[1]),c=c.replace(D,".");var oe=c.split("."),le=re(oe,x).join(".");return z+le}function T(c){for(var x=[],N=0,z=c.length,oe,le;N=55296&&oe<=56319&&N65535&&(x-=65536,N+=ae(x>>>10&1023|55296),x=56320|x&1023),N+=ae(x),N}).join("")}function v(c){return c-48<10?c-22:c-65<26?c-65:c-97<26?c-97:w}function m(c,x){return c+22+75*(c<26)-((x!=0)<<5)}function b(c,x,N){var z=0;for(c=N?Q(c/C):c>>1,c+=Q(c/x);c>V*S>>1;z+=w)c=Q(c/V);return Q(z+(V+1)*c/(c+E))}function M(c){var x=[],N=c.length,z,oe=0,le=L,U=B,P,Z,ie,se,k,I,te,ee,fe;for(P=c.lastIndexOf(F),P<0&&(P=0),Z=0;Z=128&&ue("not-basic"),x.push(c.charCodeAt(Z));for(ie=P>0?P+1:0;ie=N&&ue("invalid-input"),te=v(c.charCodeAt(ie++)),(te>=w||te>Q((y-oe)/k))&&ue("overflow"),oe+=te*k,ee=I<=U?_:I>=U+S?S:I-U,!(teQ(y/fe)&&ue("overflow"),k*=fe;z=x.length+1,U=b(oe-se,z,se==0),Q(oe/z)>y-le&&ue("overflow"),le+=Q(oe/z),oe%=z,x.splice(oe++,0,le)}return u(x)}function A(c){var x,N,z,oe,le,U,P,Z,ie,se,k,I=[],te,ee,fe,J;for(c=T(c),te=c.length,x=L,N=0,le=B,U=0;U=x&&kQ((y-N)/ee)&&ue("overflow"),N+=(P-x)*ee,x=P,U=0;Uy&&ue("overflow"),k==x){for(Z=N,ie=w;se=ie<=le?_:ie>=le+S?S:ie-le,!(Z-1e3&&e<1e3||$test.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var o=e<0?-$floor(-e):$floor(e);if(o!==e){var l=String(o),a=$slice.call(t,l.length+1);return $replace.call(l,n,"$&_")+"."+$replace.call($replace.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(t,n,"$&_")}var utilInspect=require$$0$2,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol$3(inspectCustom)?inspectCustom:null,quotes={__proto__:null,double:'"',single:"'"},quoteREs={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},objectInspect=function e(t,n,o,l){var a=n||{};if(has$3(a,"quoteStyle")&&!has$3(quotes,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=has$3(a,"customInspect")?a.customInspect:!0;if(typeof d!="boolean"&&d!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return inspectString(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var w=String(t);return y?addNumericSeparator(t,w):w}if(typeof t=="bigint"){var _=String(t)+"n";return y?addNumericSeparator(t,_):_}var S=typeof a.depth>"u"?5:a.depth;if(typeof o>"u"&&(o=0),o>=S&&S>0&&typeof t=="object")return isArray$8(t)?"[Array]":"[Object]";var E=getIndent(a,o);if(typeof l>"u")l=[];else if(indexOf(l,t)>=0)return"[Circular]";function C(v,m,b){if(m&&(l=$arrSlice.call(l),l.push(m)),b){var M={depth:a.depth};return has$3(a,"quoteStyle")&&(M.quoteStyle=a.quoteStyle),e(v,M,o+1,l)}return e(v,a,o+1,l)}if(typeof t=="function"&&!isRegExp$2(t)){var B=nameOf(t),L=arrObjKeys(t,C);return"[Function"+(B?": "+B:" (anonymous)")+"]"+(L.length>0?" { "+$join.call(L,", ")+" }":"")}if(isSymbol$3(t)){var F=hasShammedSymbols?$replace.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(t);return typeof t=="object"&&!hasShammedSymbols?markBoxed(F):F}if(isElement(t)){for(var q="<"+$toLowerCase.call(String(t.nodeName)),H=t.attributes||[],D=0;D",q}if(isArray$8(t)){if(t.length===0)return"[]";var j=arrObjKeys(t,C);return E&&!singleLineValues(j)?"["+indentedJoin(j,E)+"]":"[ "+$join.call(j,", ")+" ]"}if(isError$1(t)){var V=arrObjKeys(t,C);return!("cause"in Error.prototype)&&"cause"in t&&!isEnumerable.call(t,"cause")?"{ ["+String(t)+"] "+$join.call($concat.call("[cause]: "+C(t.cause),V),", ")+" }":V.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+$join.call(V,", ")+" }"}if(typeof t=="object"&&d){if(inspectSymbol&&typeof t[inspectSymbol]=="function"&&utilInspect)return utilInspect(t,{depth:S-o});if(d!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(isMap(t)){var Q=[];return mapForEach&&mapForEach.call(t,function(v,m){Q.push(C(m,t,!0)+" => "+C(v,t))}),collectionOf("Map",mapSize.call(t),Q,E)}if(isSet(t)){var ae=[];return setForEach&&setForEach.call(t,function(v){ae.push(C(v,t))}),collectionOf("Set",setSize.call(t),ae,E)}if(isWeakMap(t))return weakCollectionOf("WeakMap");if(isWeakSet(t))return weakCollectionOf("WeakSet");if(isWeakRef(t))return weakCollectionOf("WeakRef");if(isNumber$1(t))return markBoxed(C(Number(t)));if(isBigInt(t))return markBoxed(C(bigIntValueOf.call(t)));if(isBoolean$1(t))return markBoxed(booleanValueOf.call(t));if(isString$1(t))return markBoxed(C(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof commonjsGlobal<"u"&&t===commonjsGlobal)return"{ [object globalThis] }";if(!isDate$1(t)&&!isRegExp$2(t)){var ce=arrObjKeys(t,C),ue=gPO?gPO(t)===Object.prototype:t instanceof Object||t.constructor===Object,re=t instanceof Object?"":"null prototype",pe=!ue&&toStringTag&&Object(t)===t&&toStringTag in t?$slice.call(toStr(t),8,-1):re?"Object":"",T=ue||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",u=T+(pe||re?"["+$join.call($concat.call([],pe||[],re||[]),": ")+"] ":"");return ce.length===0?u+"{}":E?u+"{"+indentedJoin(ce,E)+"}":u+"{ "+$join.call(ce,", ")+" }"}return String(t)};function wrapQuotes(e,t,n){var o=n.quoteStyle||t,l=quotes[o];return l+e+l}function quote(e){return $replace.call(String(e),/"/g,""")}function canTrustToString(e){return!toStringTag||!(typeof e=="object"&&(toStringTag in e||typeof e[toStringTag]<"u"))}function isArray$8(e){return toStr(e)==="[object Array]"&&canTrustToString(e)}function isDate$1(e){return toStr(e)==="[object Date]"&&canTrustToString(e)}function isRegExp$2(e){return toStr(e)==="[object RegExp]"&&canTrustToString(e)}function isError$1(e){return toStr(e)==="[object Error]"&&canTrustToString(e)}function isString$1(e){return toStr(e)==="[object String]"&&canTrustToString(e)}function isNumber$1(e){return toStr(e)==="[object Number]"&&canTrustToString(e)}function isBoolean$1(e){return toStr(e)==="[object Boolean]"&&canTrustToString(e)}function isSymbol$3(e){if(hasShammedSymbols)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!symToString)return!1;try{return symToString.call(e),!0}catch{}return!1}function isBigInt(e){if(!e||typeof e!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(e),!0}catch{}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(e){return e in this};function has$3(e,t){return hasOwn.call(e,t)}function toStr(e){return objectToString$3.call(e)}function nameOf(e){if(e.name)return e.name;var t=$match.call(functionToString.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function indexOf(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return inspectString($slice.call(e,0,t.maxStringLength),t)+o}var l=quoteREs[t.quoteStyle||"single"];l.lastIndex=0;var a=$replace.call($replace.call(e,l,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(a,"single",t)}function lowbyte(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+$toUpperCase.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,n,o){var l=o?indentedJoin(n,o):$join.call(n,", ");return e+" ("+t+") {"+l+"}"}function singleLineValues(e){for(var t=0;t=0)return!1;return!0}function getIndent(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=$join.call(Array(e.indent+1)," ");else return null;return{base:n,prev:$join.call(Array(t+1),n)}}function indentedJoin(e,t){if(e.length===0)return"";var n=` `+t.prev+t.base;return n+$join.call(e,","+n)+` `+t.prev}function arrObjKeys(e,t){var n=isArray$8(e),o=[];if(n){o.length=e.length;for(var l=0;l1;){var n=t.pop(),o=n.obj[n.prop];if(isArray$7(o)){for(var l=[],a=0;a=limit?d.slice(w,w+limit):d,S=[],E=0;E<_.length;++E){var C=_.charCodeAt(E);if(C===45||C===46||C===95||C===126||C>=48&&C<=57||C>=65&&C<=90||C>=97&&C<=122||a===formats$2.RFC1738&&(C===40||C===41)){S[S.length]=_.charAt(E);continue}if(C<128){S[S.length]=hexTable[C];continue}if(C<2048){S[S.length]=hexTable[192|C>>6]+hexTable[128|C&63];continue}if(C<55296||C>=57344){S[S.length]=hexTable[224|C>>12]+hexTable[128|C>>6&63]+hexTable[128|C&63];continue}E+=1,C=65536+((C&1023)<<10|_.charCodeAt(E)&1023),S[S.length]=hexTable[240|C>>18]+hexTable[128|C>>12&63]+hexTable[128|C>>6&63]+hexTable[128|C&63]}y+=S.join("")}return y},compact=function(t){for(var n=[{obj:{o:t},prop:"o"}],o=[],l=0;l"u"&&(Q=0)}if(typeof S=="function"?j=S(n,j):j instanceof Date?j=B(j):o==="comma"&&isArray$6(j)&&(j=utils$p.maybeMap(j,function(c){return c instanceof Date?B(c):c})),j===null){if(d)return _&&!q?_(n,defaults$1.encoder,H,"key",L):n;j=""}if(isNonNullishPrimitive(j)||utils$p.isBuffer(j)){if(_){var ue=q?n:_(n,defaults$1.encoder,H,"key",L);return[F(ue)+"="+F(_(j,defaults$1.encoder,H,"value",L))]}return[F(n)+"="+F(String(j))]}var re=[];if(typeof j>"u")return re;var pe;if(o==="comma"&&isArray$6(j))q&&_&&(j=utils$p.maybeMap(j,_)),pe=[{value:j.length>0?j.join(",")||null:void 0}];else if(isArray$6(S))pe=S;else{var T=Object.keys(j);pe=E?T.sort(E):T}var u=w?String(n).replace(/\./g,"%2E"):String(n),v=l&&isArray$6(j)&&j.length===1?u+"[]":u;if(a&&isArray$6(j)&&j.length===0)return v+"[]";for(var m=0;m"u"?t.encodeDotInKeys===!0?!0:defaults$1.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:y,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:defaults$1.allowEmptyArrays,arrayFormat:d,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:defaults$1.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?defaults$1.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:defaults$1.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:defaults$1.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:defaults$1.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:a,format:o,formatter:l,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:defaults$1.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:defaults$1.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:defaults$1.strictNullHandling}},stringify_1=function(e,t){var n=e,o=normalizeStringifyOptions(t),l,a;typeof o.filter=="function"?(a=o.filter,n=a("",n)):isArray$6(o.filter)&&(a=o.filter,l=a);var d=[];if(typeof n!="object"||n===null)return"";var y=arrayPrefixGenerators[o.arrayFormat],w=y==="comma"&&o.commaRoundTrip;l||(l=Object.keys(n)),o.sort&&l.sort(o.sort);for(var _=getSideChannel(),S=0;S0?L+B:""},utils$o=utils$q,has=Object.prototype.hasOwnProperty,isArray$5=Array.isArray,defaults={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils$o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},parseArrayValue=function(e,t,n){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(t,n){var o={__proto__:null},l=n.ignoreQueryPrefix?t.replace(/^\?/,""):t;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=n.parameterLimit===1/0?void 0:n.parameterLimit,d=l.split(n.delimiter,n.throwOnLimitExceeded?a+1:a);if(n.throwOnLimitExceeded&&d.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var y=-1,w,_=n.charset;if(n.charsetSentinel)for(w=0;w-1&&(L=isArray$5(L)?[L]:L);var F=has.call(o,B);F&&n.duplicates==="combine"?o[B]=utils$o.combine(o[B],L):(!F||n.duplicates==="last")&&(o[B]=L)}return o},parseObject=function(e,t,n,o){var l=0;if(e.length>0&&e[e.length-1]==="[]"){var a=e.slice(0,-1).join("");l=Array.isArray(t)&&t[a]?t[a].length:0}for(var d=o?t:parseArrayValue(t,n,l),y=e.length-1;y>=0;--y){var w,_=e[y];if(_==="[]"&&n.parseArrays)w=n.allowEmptyArrays&&(d===""||n.strictNullHandling&&d===null)?[]:utils$o.combine([],d);else{w=n.plainObjects?{__proto__:null}:{};var S=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,E=n.decodeDotInKeys?S.replace(/%2E/g,"."):S,C=parseInt(E,10);!n.parseArrays&&E===""?w={0:d}:!isNaN(C)&&_!==E&&String(C)===E&&C>=0&&n.parseArrays&&C<=n.arrayLimit?(w=[],w[C]=d):E!=="__proto__"&&(w[E]=d)}d=w}return d},parseKeys$3=function(t,n,o,l){if(t){var a=o.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,d=/(\[[^[\]]*])/,y=/(\[[^[\]]*])/g,w=o.depth>0&&d.exec(a),_=w?a.slice(0,w.index):a,S=[];if(_){if(!o.plainObjects&&has.call(Object.prototype,_)&&!o.allowPrototypes)return;S.push(_)}for(var E=0;o.depth>0&&(w=y.exec(a))!==null&&E"u"?defaults.charset:t.charset,o=typeof t.duplicates>"u"?defaults.duplicates:t.duplicates;if(o!=="combine"&&o!=="first"&&o!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var l=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:defaults.allowDots:!!t.allowDots;return{allowDots:l,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:defaults.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:defaults.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:defaults.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:defaults.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:defaults.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:defaults.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:defaults.decoder,delimiter:typeof t.delimiter=="string"||utils$o.isRegExp(t.delimiter)?t.delimiter:defaults.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:defaults.depth,duplicates:o,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:defaults.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:defaults.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:defaults.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:defaults.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}},parse$2=function(e,t){var n=normalizeParseOptions(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?{__proto__:null}:{};for(var o=typeof e=="string"?parseValues(e,n):e,l=n.plainObjects?{__proto__:null}:{},a=Object.keys(o),d=0;d",'"',"`"," ","\r",` @@ -131,10 +131,10 @@ ${JSON.stringify(se,null,2)} `)&&(re="(?: "+re+")",T=" "+T,pe++),V=new RegExp("^(?:"+re+")",ue)),L&&(V=new RegExp("^"+re+"$(?!\\s)",ue)),C&&(j=D.lastIndex),Q=_.call(ce?V:D,T),ce?Q?(Q.input=Q.input.slice(pe),Q[0]=Q[0].slice(pe),Q.index=D.lastIndex,D.lastIndex+=Q[0].length):D.lastIndex=0:C&&Q&&(D.lastIndex=D.global?Q.index+Q[0].length:j),L&&Q&&Q.length>1&&S.call(Q[0],V,function(){for(ae=1;ae=51||!w(function(){var re=[];return re[D]=!1,re.concat()[0]!==re}),ae=F("concat"),ce=function(re){if(!S(re))return!1;var pe=re[D];return pe!==void 0?!!pe:_(re)},ue=!Q||!ae;y({target:"Array",proto:!0,forced:ue},{concat:function(pe){var T=E(this),u=L(T,0),v=0,m,b,M,A,O;for(m=-1,M=arguments.length;mj)throw TypeError(V);for(b=0;b=j)throw TypeError(V);B(u,v++,O)}return u.length=v,u}})},"9bdd":function(l,a,d){var y=d("825a");l.exports=function(w,_,S,E){try{return E?_(y(S)[0],S[1]):_(S)}catch(B){var C=w.return;throw C!==void 0&&y(C.call(w)),B}}},"9bf2":function(l,a,d){var y=d("83ab"),w=d("0cfb"),_=d("825a"),S=d("c04e"),E=Object.defineProperty;a.f=y?E:function(B,L,F){if(_(B),L=S(L,!0),_(F),w)try{return E(B,L,F)}catch{}if("get"in F||"set"in F)throw TypeError("Accessors not supported");return"value"in F&&(B[L]=F.value),B}},"9ed3":function(l,a,d){var y=d("ae93").IteratorPrototype,w=d("7c73"),_=d("5c6c"),S=d("d44e"),E=d("3f8c"),C=function(){return this};l.exports=function(B,L,F){var q=L+" Iterator";return B.prototype=w(y,{next:_(1,F)}),S(B,q,!1,!0),E[q]=C,B}},"9f7f":function(l,a,d){var y=d("d039");function w(_,S){return RegExp(_,S)}a.UNSUPPORTED_Y=y(function(){var _=w("a","y");return _.lastIndex=2,_.exec("abcd")!=null}),a.BROKEN_CARET=y(function(){var _=w("^r","gy");return _.lastIndex=2,_.exec("str")!=null})},a2bf:function(l,a,d){var y=d("e8b5"),w=d("50c4"),_=d("0366"),S=function(E,C,B,L,F,q,H,D){for(var j=F,V=0,Q=H?_(H,D,3):!1,ae;V0&&y(ae))j=S(E,C,ae,w(ae.length),j,q-1)-1;else{if(j>=9007199254740991)throw TypeError("Exceed the acceptable array length");E[j]=ae}j++}V++}return j};l.exports=S},a352:function(l,a){l.exports=o},a434:function(l,a,d){var y=d("23e7"),w=d("23cb"),_=d("a691"),S=d("50c4"),E=d("7b0b"),C=d("65f0"),B=d("8418"),L=d("1dde"),F=d("ae40"),q=L("splice"),H=F("splice",{ACCESSORS:!0,0:0,1:2}),D=Math.max,j=Math.min,V=9007199254740991,Q="Maximum allowed length exceeded";y({target:"Array",proto:!0,forced:!q||!H},{splice:function(ce,ue){var re=E(this),pe=S(re.length),T=w(ce,pe),u=arguments.length,v,m,b,M,A,O;if(u===0?v=m=0:u===1?(v=0,m=pe-T):(v=u-2,m=j(D(_(ue),0),pe-T)),pe+v-m>V)throw TypeError(Q);for(b=C(re,m),M=0;Mpe-m+v;M--)delete re[M-1]}else if(v>m)for(M=pe-m;M>T;M--)A=M+m-1,O=M+v-1,A in re?re[O]=re[A]:delete re[O];for(M=0;Mje;)Be.push(arguments[je++]);if(nt=Ce,!(!H(Ce)&&xe===void 0||Me(xe)))return q(Ce)||(Ce=function(Ne,Ve){if(typeof nt=="function"&&(Ve=nt.call(this,Ne,Ve)),!Me(Ve))return Ve}),Be[1]=Ce,fe.apply(null,Be)}})}ee[ie][se]||b(ee[ie],se,ee[ie].valueOf),oe(ee,Z),$[P]=!0},a630:function(l,a,d){var y=d("23e7"),w=d("4df4"),_=d("1c7e"),S=!_(function(E){Array.from(E)});y({target:"Array",stat:!0,forced:S},{from:w})},a640:function(l,a,d){var y=d("d039");l.exports=function(w,_){var S=[][w];return!!S&&y(function(){S.call(null,_||function(){throw 1},1)})}},a691:function(l,a){var d=Math.ceil,y=Math.floor;l.exports=function(w){return isNaN(w=+w)?0:(w>0?y:d)(w)}},ab13:function(l,a,d){var y=d("b622"),w=y("match");l.exports=function(_){var S=/./;try{"/./"[_](S)}catch{try{return S[w]=!1,"/./"[_](S)}catch{}}return!1}},ac1f:function(l,a,d){var y=d("23e7"),w=d("9263");y({target:"RegExp",proto:!0,forced:/./.exec!==w},{exec:w})},ad6d:function(l,a,d){var y=d("825a");l.exports=function(){var w=y(this),_="";return w.global&&(_+="g"),w.ignoreCase&&(_+="i"),w.multiline&&(_+="m"),w.dotAll&&(_+="s"),w.unicode&&(_+="u"),w.sticky&&(_+="y"),_}},ae40:function(l,a,d){var y=d("83ab"),w=d("d039"),_=d("5135"),S=Object.defineProperty,E={},C=function(B){throw B};l.exports=function(B,L){if(_(E,B))return E[B];L||(L={});var F=[][B],q=_(L,"ACCESSORS")?L.ACCESSORS:!1,H=_(L,0)?L[0]:C,D=_(L,1)?L[1]:void 0;return E[B]=!!F&&!w(function(){if(q&&!y)return!0;var j={length:-1};q?S(j,1,{enumerable:!0,get:C}):j[1]=1,F.call(j,H,D)})}},ae93:function(l,a,d){var y=d("e163"),w=d("9112"),_=d("5135"),S=d("b622"),E=d("c430"),C=S("iterator"),B=!1,L=function(){return this},F,q,H;[].keys&&(H=[].keys(),"next"in H?(q=y(y(H)),q!==Object.prototype&&(F=q)):B=!0),F==null&&(F={}),!E&&!_(F,C)&&w(F,C,L),l.exports={IteratorPrototype:F,BUGGY_SAFARI_ITERATORS:B}},b041:function(l,a,d){var y=d("00ee"),w=d("f5df");l.exports=y?{}.toString:function(){return"[object "+w(this)+"]"}},b0c0:function(l,a,d){var y=d("83ab"),w=d("9bf2").f,_=Function.prototype,S=_.toString,E=/^\s*function ([^ (]*)/,C="name";y&&!(C in _)&&w(_,C,{configurable:!0,get:function(){try{return S.call(this).match(E)[1]}catch{return""}}})},b622:function(l,a,d){var y=d("da84"),w=d("5692"),_=d("5135"),S=d("90e3"),E=d("4930"),C=d("fdbf"),B=w("wks"),L=y.Symbol,F=C?L:L&&L.withoutSetter||S;l.exports=function(q){return _(B,q)||(E&&_(L,q)?B[q]=L[q]:B[q]=F("Symbol."+q)),B[q]}},b64b:function(l,a,d){var y=d("23e7"),w=d("7b0b"),_=d("df75"),S=d("d039"),E=S(function(){_(1)});y({target:"Object",stat:!0,forced:E},{keys:function(B){return _(w(B))}})},b727:function(l,a,d){var y=d("0366"),w=d("44ad"),_=d("7b0b"),S=d("50c4"),E=d("65f0"),C=[].push,B=function(L){var F=L==1,q=L==2,H=L==3,D=L==4,j=L==6,V=L==5||j;return function(Q,ae,ce,ue){for(var re=_(Q),pe=w(re),T=y(ae,ce,3),u=S(pe.length),v=0,m=ue||E,b=F?m(Q,u):q?m(Q,0):void 0,M,A;u>v;v++)if((V||v in pe)&&(M=pe[v],A=T(M,v,re),L)){if(F)b[v]=A;else if(A)switch(L){case 3:return!0;case 5:return M;case 6:return v;case 2:C.call(b,M)}else if(D)return!1}return j?-1:H||D?D:b}};l.exports={forEach:B(0),map:B(1),filter:B(2),some:B(3),every:B(4),find:B(5),findIndex:B(6)}},c04e:function(l,a,d){var y=d("861d");l.exports=function(w,_){if(!y(w))return w;var S,E;if(_&&typeof(S=w.toString)=="function"&&!y(E=S.call(w))||typeof(S=w.valueOf)=="function"&&!y(E=S.call(w))||!_&&typeof(S=w.toString)=="function"&&!y(E=S.call(w)))return E;throw TypeError("Can't convert object to primitive value")}},c430:function(l,a){l.exports=!1},c6b6:function(l,a){var d={}.toString;l.exports=function(y){return d.call(y).slice(8,-1)}},c6cd:function(l,a,d){var y=d("da84"),w=d("ce4e"),_="__core-js_shared__",S=y[_]||w(_,{});l.exports=S},c740:function(l,a,d){var y=d("23e7"),w=d("b727").findIndex,_=d("44d2"),S=d("ae40"),E="findIndex",C=!0,B=S(E);E in[]&&Array(1)[E](function(){C=!1}),y({target:"Array",proto:!0,forced:C||!B},{findIndex:function(F){return w(this,F,arguments.length>1?arguments[1]:void 0)}}),_(E)},c8ba:function(l,a){var d;d=function(){return this}();try{d=d||new Function("return this")()}catch{typeof window=="object"&&(d=window)}l.exports=d},c975:function(l,a,d){var y=d("23e7"),w=d("4d64").indexOf,_=d("a640"),S=d("ae40"),E=[].indexOf,C=!!E&&1/[1].indexOf(1,-0)<0,B=_("indexOf"),L=S("indexOf",{ACCESSORS:!0,1:0});y({target:"Array",proto:!0,forced:C||!B||!L},{indexOf:function(q){return C?E.apply(this,arguments)||0:w(this,q,arguments.length>1?arguments[1]:void 0)}})},ca84:function(l,a,d){var y=d("5135"),w=d("fc6a"),_=d("4d64").indexOf,S=d("d012");l.exports=function(E,C){var B=w(E),L=0,F=[],q;for(q in B)!y(S,q)&&y(B,q)&&F.push(q);for(;C.length>L;)y(B,q=C[L++])&&(~_(F,q)||F.push(q));return F}},caad:function(l,a,d){var y=d("23e7"),w=d("4d64").includes,_=d("44d2"),S=d("ae40"),E=S("indexOf",{ACCESSORS:!0,1:0});y({target:"Array",proto:!0,forced:!E},{includes:function(B){return w(this,B,arguments.length>1?arguments[1]:void 0)}}),_("includes")},cc12:function(l,a,d){var y=d("da84"),w=d("861d"),_=y.document,S=w(_)&&w(_.createElement);l.exports=function(E){return S?_.createElement(E):{}}},ce4e:function(l,a,d){var y=d("da84"),w=d("9112");l.exports=function(_,S){try{w(y,_,S)}catch{y[_]=S}return S}},d012:function(l,a){l.exports={}},d039:function(l,a){l.exports=function(d){try{return!!d()}catch{return!0}}},d066:function(l,a,d){var y=d("428f"),w=d("da84"),_=function(S){return typeof S=="function"?S:void 0};l.exports=function(S,E){return arguments.length<2?_(y[S])||_(w[S]):y[S]&&y[S][E]||w[S]&&w[S][E]}},d1e7:function(l,a,d){var y={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,_=w&&!y.call({1:2},1);a.f=_?function(E){var C=w(this,E);return!!C&&C.enumerable}:y},d28b:function(l,a,d){var y=d("746f");y("iterator")},d2bb:function(l,a,d){var y=d("825a"),w=d("3bbe");l.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var _=!1,S={},E;try{E=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,E.call(S,[]),_=S instanceof Array}catch{}return function(B,L){return y(B),w(L),_?E.call(B,L):B.__proto__=L,B}}():void 0)},d3b7:function(l,a,d){var y=d("00ee"),w=d("6eeb"),_=d("b041");y||w(Object.prototype,"toString",_,{unsafe:!0})},d44e:function(l,a,d){var y=d("9bf2").f,w=d("5135"),_=d("b622"),S=_("toStringTag");l.exports=function(E,C,B){E&&!w(E=B?E:E.prototype,S)&&y(E,S,{configurable:!0,value:C})}},d58f:function(l,a,d){var y=d("1c0b"),w=d("7b0b"),_=d("44ad"),S=d("50c4"),E=function(C){return function(B,L,F,q){y(L);var H=w(B),D=_(H),j=S(H.length),V=C?j-1:0,Q=C?-1:1;if(F<2)for(;;){if(V in D){q=D[V],V+=Q;break}if(V+=Q,C?V<0:j<=V)throw TypeError("Reduce of empty array with no initial value")}for(;C?V>=0:j>V;V+=Q)V in D&&(q=L(q,D[V],V,H));return q}};l.exports={left:E(!1),right:E(!0)}},d784:function(l,a,d){d("ac1f");var y=d("6eeb"),w=d("d039"),_=d("b622"),S=d("9263"),E=d("9112"),C=_("species"),B=!w(function(){var D=/./;return D.exec=function(){var j=[];return j.groups={a:"7"},j},"".replace(D,"$")!=="7"}),L=function(){return"a".replace(/./,"$0")==="$0"}(),F=_("replace"),q=function(){return/./[F]?/./[F]("a","$0")==="":!1}(),H=!w(function(){var D=/(?:)/,j=D.exec;D.exec=function(){return j.apply(this,arguments)};var V="ab".split(D);return V.length!==2||V[0]!=="a"||V[1]!=="b"});l.exports=function(D,j,V,Q){var ae=_(D),ce=!w(function(){var v={};return v[ae]=function(){return 7},""[D](v)!=7}),ue=ce&&!w(function(){var v=!1,m=/a/;return D==="split"&&(m={},m.constructor={},m.constructor[C]=function(){return m},m.flags="",m[ae]=/./[ae]),m.exec=function(){return v=!0,null},m[ae](""),!v});if(!ce||!ue||D==="replace"&&!(B&&L&&!q)||D==="split"&&!H){var re=/./[ae],pe=V(ae,""[D],function(v,m,b,M,A){return m.exec===S?ce&&!A?{done:!0,value:re.call(m,b,M)}:{done:!0,value:v.call(b,m,M)}:{done:!1}},{REPLACE_KEEPS_$0:L,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:q}),T=pe[0],u=pe[1];y(String.prototype,D,T),y(RegExp.prototype,ae,j==2?function(v,m){return u.call(v,this,m)}:function(v){return u.call(v,this)})}Q&&E(RegExp.prototype[ae],"sham",!0)}},d81d:function(l,a,d){var y=d("23e7"),w=d("b727").map,_=d("1dde"),S=d("ae40"),E=_("map"),C=S("map");y({target:"Array",proto:!0,forced:!E||!C},{map:function(L){return w(this,L,arguments.length>1?arguments[1]:void 0)}})},da84:function(l,a,d){(function(y){var w=function(_){return _&&_.Math==Math&&_};l.exports=w(typeof globalThis=="object"&&globalThis)||w(typeof window=="object"&&window)||w(typeof self=="object"&&self)||w(typeof y=="object"&&y)||Function("return this")()}).call(this,d("c8ba"))},dbb4:function(l,a,d){var y=d("23e7"),w=d("83ab"),_=d("56ef"),S=d("fc6a"),E=d("06cf"),C=d("8418");y({target:"Object",stat:!0,sham:!w},{getOwnPropertyDescriptors:function(L){for(var F=S(L),q=E.f,H=_(F),D={},j=0,V,Q;H.length>j;)Q=q(F,V=H[j++]),Q!==void 0&&C(D,V,Q);return D}})},dbf1:function(l,a,d){(function(y){d.d(a,"a",function(){return _});function w(){return typeof window<"u"?window.console:y.console}var _=w()}).call(this,d("c8ba"))},ddb0:function(l,a,d){var y=d("da84"),w=d("fdbc"),_=d("e260"),S=d("9112"),E=d("b622"),C=E("iterator"),B=E("toStringTag"),L=_.values;for(var F in w){var q=y[F],H=q&&q.prototype;if(H){if(H[C]!==L)try{S(H,C,L)}catch{H[C]=L}if(H[B]||S(H,B,F),w[F]){for(var D in _)if(H[D]!==_[D])try{S(H,D,_[D])}catch{H[D]=_[D]}}}}},df75:function(l,a,d){var y=d("ca84"),w=d("7839");l.exports=Object.keys||function(S){return y(S,w)}},e01a:function(l,a,d){var y=d("23e7"),w=d("83ab"),_=d("da84"),S=d("5135"),E=d("861d"),C=d("9bf2").f,B=d("e893"),L=_.Symbol;if(w&&typeof L=="function"&&(!("description"in L.prototype)||L().description!==void 0)){var F={},q=function(){var ae=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),ce=this instanceof q?new L(ae):ae===void 0?L():L(ae);return ae===""&&(F[ce]=!0),ce};B(q,L);var H=q.prototype=L.prototype;H.constructor=q;var D=H.toString,j=String(L("test"))=="Symbol(test)",V=/^Symbol\((.*)\)[^)]+$/;C(H,"description",{configurable:!0,get:function(){var ae=E(this)?this.valueOf():this,ce=D.call(ae);if(S(F,ae))return"";var ue=j?ce.slice(7,-1):ce.replace(V,"$1");return ue===""?void 0:ue}}),y({global:!0,forced:!0},{Symbol:q})}},e163:function(l,a,d){var y=d("5135"),w=d("7b0b"),_=d("f772"),S=d("e177"),E=_("IE_PROTO"),C=Object.prototype;l.exports=S?Object.getPrototypeOf:function(B){return B=w(B),y(B,E)?B[E]:typeof B.constructor=="function"&&B instanceof B.constructor?B.constructor.prototype:B instanceof Object?C:null}},e177:function(l,a,d){var y=d("d039");l.exports=!y(function(){function w(){}return w.prototype.constructor=null,Object.getPrototypeOf(new w)!==w.prototype})},e260:function(l,a,d){var y=d("fc6a"),w=d("44d2"),_=d("3f8c"),S=d("69f3"),E=d("7dd0"),C="Array Iterator",B=S.set,L=S.getterFor(C);l.exports=E(Array,"Array",function(F,q){B(this,{type:C,target:y(F),index:0,kind:q})},function(){var F=L(this),q=F.target,H=F.kind,D=F.index++;return!q||D>=q.length?(F.target=void 0,{value:void 0,done:!0}):H=="keys"?{value:D,done:!1}:H=="values"?{value:q[D],done:!1}:{value:[D,q[D]],done:!1}},"values"),_.Arguments=_.Array,w("keys"),w("values"),w("entries")},e439:function(l,a,d){var y=d("23e7"),w=d("d039"),_=d("fc6a"),S=d("06cf").f,E=d("83ab"),C=w(function(){S(1)}),B=!E||C;y({target:"Object",stat:!0,forced:B,sham:!E},{getOwnPropertyDescriptor:function(F,q){return S(_(F),q)}})},e538:function(l,a,d){var y=d("b622");a.f=y},e893:function(l,a,d){var y=d("5135"),w=d("56ef"),_=d("06cf"),S=d("9bf2");l.exports=function(E,C){for(var B=w(C),L=S.f,F=_.f,q=0;q"u"||!(Symbol.iterator in Object(Me)))){var be=[],Pe=!0,$e=!1,Te=void 0;try{for(var Je=Me[Symbol.iterator](),Oe;!(Pe=(Oe=Je.next()).done)&&(be.push(Oe.value),!(ve&&be.length===ve));Pe=!0);}catch(Ie){$e=!0,Te=Ie}finally{try{!Pe&&Je.return!=null&&Je.return()}finally{if($e)throw Te}}return be}}d("a630"),d("fb6a"),d("b0c0"),d("25f0");function F(Me,ve){(ve==null||ve>Me.length)&&(ve=Me.length);for(var be=0,Pe=new Array(ve);be=0;)e[t]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),extra_dbits=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(e,t,n,o,l){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=o,this.max_length=l,this.has_stree=e&&e.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const d_code=e=>e<256?_dist_code[e]:_dist_code[256+(e>>>7)],put_short=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},send_bits=(e,t,n)=>{e.bi_valid>Buf_size-n?(e.bi_buf|=t<>Buf_size-e.bi_valid,e.bi_valid+=n-Buf_size):(e.bi_buf|=t<{send_bits(e,n[t*2],n[t*2+1])},bi_reverse=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},bi_flush=e=>{e.bi_valid===16?(put_short(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},gen_bitlen=(e,t)=>{const n=t.dyn_tree,o=t.max_code,l=t.stat_desc.static_tree,a=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,y=t.stat_desc.extra_base,w=t.stat_desc.max_length;let _,S,E,C,B,L,F=0;for(C=0;C<=MAX_BITS$1;C++)e.bl_count[C]=0;for(n[e.heap[e.heap_max]*2+1]=0,_=e.heap_max+1;_w&&(C=w,F++),n[S*2+1]=C,!(S>o)&&(e.bl_count[C]++,B=0,S>=y&&(B=d[S-y]),L=n[S*2],e.opt_len+=L*(C+B),a&&(e.static_len+=L*(l[S*2+1]+B)));if(F!==0){do{for(C=w-1;e.bl_count[C]===0;)C--;e.bl_count[C]--,e.bl_count[C+1]+=2,e.bl_count[w]--,F-=2}while(F>0);for(C=w;C!==0;C--)for(S=e.bl_count[C];S!==0;)E=e.heap[--_],!(E>o)&&(n[E*2+1]!==C&&(e.opt_len+=(C-n[E*2+1])*n[E*2],n[E*2+1]=C),S--)}},gen_codes=(e,t,n)=>{const o=new Array(MAX_BITS$1+1);let l=0,a,d;for(a=1;a<=MAX_BITS$1;a++)l=l+n[a-1]<<1,o[a]=l;for(d=0;d<=t;d++){let y=e[d*2+1];y!==0&&(e[d*2]=bi_reverse(o[y]++,y))}},tr_static_init=()=>{let e,t,n,o,l;const a=new Array(MAX_BITS$1+1);for(n=0,o=0;o>=7;o{let t;for(t=0;t{e.bi_valid>8?put_short(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},smaller=(e,t,n,o)=>{const l=t*2,a=n*2;return e[l]{const o=e.heap[n];let l=n<<1;for(;l<=e.heap_len&&(l{let o,l,a=0,d,y;if(e.sym_next!==0)do o=e.pending_buf[e.sym_buf+a++]&255,o+=(e.pending_buf[e.sym_buf+a++]&255)<<8,l=e.pending_buf[e.sym_buf+a++],o===0?send_code(e,l,t):(d=_length_code[l],send_code(e,d+LITERALS$1+1,t),y=extra_lbits[d],y!==0&&(l-=base_length[d],send_bits(e,l,y)),o--,d=d_code(o),send_code(e,d,n),y=extra_dbits[d],y!==0&&(o-=base_dist[d],send_bits(e,o,y)));while(a{const n=t.dyn_tree,o=t.stat_desc.static_tree,l=t.stat_desc.has_stree,a=t.stat_desc.elems;let d,y,w=-1,_;for(e.heap_len=0,e.heap_max=HEAP_SIZE$1,d=0;d>1;d>=1;d--)pqdownheap(e,n,d);_=a;do d=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pqdownheap(e,n,1),y=e.heap[1],e.heap[--e.heap_max]=d,e.heap[--e.heap_max]=y,n[_*2]=n[d*2]+n[y*2],e.depth[_]=(e.depth[d]>=e.depth[y]?e.depth[d]:e.depth[y])+1,n[d*2+1]=n[y*2+1]=_,e.heap[1]=_++,pqdownheap(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],gen_bitlen(e,t),gen_codes(n,w,e.bl_count)},scan_tree=(e,t,n)=>{let o,l=-1,a,d=t[0*2+1],y=0,w=7,_=4;for(d===0&&(w=138,_=3),t[(n+1)*2+1]=65535,o=0;o<=n;o++)a=d,d=t[(o+1)*2+1],!(++y{let o,l=-1,a,d=t[0*2+1],y=0,w=7,_=4;for(d===0&&(w=138,_=3),o=0;o<=n;o++)if(a=d,d=t[(o+1)*2+1],!(++y{let t;for(scan_tree(e,e.dyn_ltree,e.l_desc.max_code),scan_tree(e,e.dyn_dtree,e.d_desc.max_code),build_tree(e,e.bl_desc),t=BL_CODES$1-1;t>=3&&e.bl_tree[bl_order[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},send_all_trees=(e,t,n,o)=>{let l;for(send_bits(e,t-257,5),send_bits(e,n-1,5),send_bits(e,o-4,4),l=0;l{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Z_BINARY;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Z_TEXT;for(n=32;n{static_init_done||(tr_static_init(),static_init_done=!0),e.l_desc=new TreeDesc(e.dyn_ltree,static_l_desc),e.d_desc=new TreeDesc(e.dyn_dtree,static_d_desc),e.bl_desc=new TreeDesc(e.bl_tree,static_bl_desc),e.bi_buf=0,e.bi_valid=0,init_block(e)},_tr_stored_block$1=(e,t,n,o)=>{send_bits(e,(STORED_BLOCK<<1)+(o?1:0),3),bi_windup(e),put_short(e,n),put_short(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},_tr_align$1=e=>{send_bits(e,STATIC_TREES<<1,3),send_code(e,END_BLOCK,static_ltree),bi_flush(e)},_tr_flush_block$1=(e,t,n,o)=>{let l,a,d=0;e.level>0?(e.strm.data_type===Z_UNKNOWN$1&&(e.strm.data_type=detect_data_type(e)),build_tree(e,e.l_desc),build_tree(e,e.d_desc),d=build_bl_tree(e),l=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=l&&(l=a)):l=a=n+5,n+4<=l&&t!==-1?_tr_stored_block$1(e,t,n,o):e.strategy===Z_FIXED$1||a===l?(send_bits(e,(STATIC_TREES<<1)+(o?1:0),3),compress_block(e,static_ltree,static_dtree)):(send_bits(e,(DYN_TREES<<1)+(o?1:0),3),send_all_trees(e,e.l_desc.max_code+1,e.d_desc.max_code+1,d+1),compress_block(e,e.dyn_ltree,e.dyn_dtree)),init_block(e),o&&bi_windup(e)},_tr_tally$1=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(_length_code[n]+LITERALS$1+1)*2]++,e.dyn_dtree[d_code(t)*2]++),e.sym_next===e.sym_end);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(e,t,n,o)=>{let l=e&65535|0,a=e>>>16&65535|0,d=0;for(;n!==0;){d=n>2e3?2e3:n,n-=d;do l=l+t[o++]|0,a=a+l|0;while(--d);l%=65521,a%=65521}return l|a<<16|0};var adler32_1=adler32;const makeTable=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var o=0;o<8;o++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},crcTable=new Uint32Array(makeTable()),crc32=(e,t,n,o)=>{const l=crcTable,a=o+n;e^=-1;for(let d=o;d>>8^l[(e^t[d])&255];return e^-1};var crc32_1=crc32,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,GZIP_STATE=57,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(e,t)=>(e.msg=messages[t],t),rank=e=>e*2-(e>4?9:0),zero=e=>{let t=e.length;for(;--t>=0;)e[t]=0},slide_hash=e=>{let t,n,o,l=e.w_size;t=e.hash_size,o=t;do n=e.head[--o],e.head[o]=n>=l?n-l:0;while(--t);t=l,o=t;do n=e.prev[--o],e.prev[o]=n>=l?n-l:0;while(--t)};let HASH_ZLIB=(e,t,n)=>(t<{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},flush_block_only=(e,t)=>{_tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,flush_pending(e.strm)},put_byte=(e,t)=>{e.pending_buf[e.pending++]=t},putShortMSB=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},read_buf=(e,t,n,o)=>{let l=e.avail_in;return l>o&&(l=o),l===0?0:(e.avail_in-=l,t.set(e.input.subarray(e.next_in,e.next_in+l),n),e.state.wrap===1?e.adler=adler32_1(e.adler,t,l,n):e.state.wrap===2&&(e.adler=crc32_1(e.adler,t,l,n)),e.next_in+=l,e.total_in+=l,l)},longest_match=(e,t)=>{let n=e.max_chain_length,o=e.strstart,l,a,d=e.prev_length,y=e.nice_match;const w=e.strstart>e.w_size-MIN_LOOKAHEAD?e.strstart-(e.w_size-MIN_LOOKAHEAD):0,_=e.window,S=e.w_mask,E=e.prev,C=e.strstart+MAX_MATCH;let B=_[o+d-1],L=_[o+d];e.prev_length>=e.good_match&&(n>>=2),y>e.lookahead&&(y=e.lookahead);do if(l=t,!(_[l+d]!==L||_[l+d-1]!==B||_[l]!==_[o]||_[++l]!==_[o+1])){o+=2,l++;do;while(_[++o]===_[++l]&&_[++o]===_[++l]&&_[++o]===_[++l]&&_[++o]===_[++l]&&_[++o]===_[++l]&&_[++o]===_[++l]&&_[++o]===_[++l]&&_[++o]===_[++l]&&od){if(e.match_start=t,d=a,a>=y)break;B=_[o+d-1],L=_[o+d]}}while((t=E[t&S])>w&&--n!==0);return d<=e.lookahead?d:e.lookahead},fill_window=e=>{const t=e.w_size;let n,o,l;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-MIN_LOOKAHEAD)&&(e.window.set(e.window.subarray(t,t+t-o),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),slide_hash(e),o+=t),e.strm.avail_in===0)break;if(n=read_buf(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=MIN_MATCH)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=HASH(e,e.ins_h,e.window[l+1]);e.insert&&(e.ins_h=HASH(e,e.ins_h,e.window[l+MIN_MATCH-1]),e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,o,l,a,d=0,y=e.strm.avail_in;do{if(o=65535,a=e.bi_valid+42>>3,e.strm.avail_outl+e.strm.avail_in&&(o=l+e.strm.avail_in),o>a&&(o=a),o>8,e.pending_buf[e.pending-2]=~o,e.pending_buf[e.pending-1]=~o>>8,flush_pending(e.strm),l&&(l>o&&(l=o),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+l),e.strm.next_out),e.strm.next_out+=l,e.strm.avail_out-=l,e.strm.total_out+=l,e.block_start+=l,o-=l),o&&(read_buf(e.strm,e.strm.output,e.strm.next_out,o),e.strm.next_out+=o,e.strm.avail_out-=o,e.strm.total_out+=o)}while(d===0);return y-=e.strm.avail_in,y&&(y>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=y&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-y,e.strm.next_in),e.strstart),e.strstart+=y,e.insert+=y>e.w_size-e.insert?e.w_size-e.insert:y),e.block_start=e.strstart),e.high_watera&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(read_buf(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,n=a>e.w_size?e.w_size:a,l=e.strstart-e.block_start,(l>=n||(l||t===Z_FINISH$3)&&t!==Z_NO_FLUSH$2&&e.strm.avail_in===0&&l<=a)&&(o=l>a?a:l,d=t===Z_FINISH$3&&e.strm.avail_in===0&&o===l?1:0,_tr_stored_block(e,e.block_start,o,d),e.block_start+=o,flush_pending(e.strm)),d?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(e,t)=>{let n,o;for(;;){if(e.lookahead=MIN_MATCH&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-MIN_LOOKAHEAD&&(e.match_length=longest_match(e,n)),e.match_length>=MIN_MATCH)if(o=_tr_tally(e,e.strstart-e.match_start,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=MIN_MATCH){e.match_length--;do e.strstart++,e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+1]);else o=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(o&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=e.strstart{let n,o,l;for(;;){if(e.lookahead=MIN_MATCH&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=MIN_MATCH-1,n!==0&&e.prev_length4096)&&(e.match_length=MIN_MATCH-1)),e.prev_length>=MIN_MATCH&&e.match_length<=e.prev_length){l=e.strstart+e.lookahead-MIN_MATCH,o=_tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-MIN_MATCH),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=l&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=MIN_MATCH-1,e.strstart++,o&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}else if(e.match_available){if(o=_tr_tally(e,0,e.window[e.strstart-1]),o&&flush_block_only(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return BS_NEED_MORE}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(o=_tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,o,l,a;const d=e.window;for(;;){if(e.lookahead<=MAX_MATCH){if(fill_window(e),e.lookahead<=MAX_MATCH&&t===Z_NO_FLUSH$2)return BS_NEED_MORE;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=MIN_MATCH&&e.strstart>0&&(l=e.strstart-1,o=d[l],o===d[++l]&&o===d[++l]&&o===d[++l])){a=e.strstart+MAX_MATCH;do;while(o===d[++l]&&o===d[++l]&&o===d[++l]&&o===d[++l]&&o===d[++l]&&o===d[++l]&&o===d[++l]&&o===d[++l]&&le.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=MIN_MATCH?(n=_tr_tally(e,1,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=0,t===Z_FINISH$3?(flush_block_only(e,!0),e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):e.sym_next&&(flush_block_only(e,!1),e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(fill_window(e),e.lookahead===0)){if(t===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(e.match_length=0,n=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=0,t===Z_FINISH$3?(flush_block_only(e,!0),e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):e.sym_next&&(flush_block_only(e,!1),e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(e,t,n,o,l){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=o,this.func=l}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=e=>{e.window_size=2*e.w_size,zero(e.head),e.max_lazy_match=configuration_table[e.level].max_lazy,e.good_match=configuration_table[e.level].good_length,e.nice_match=configuration_table[e.level].nice_length,e.max_chain_length=configuration_table[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=MIN_MATCH-1,e.match_available=0,e.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateStateCheck=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==INIT_STATE&&t.status!==GZIP_STATE&&t.status!==EXTRA_STATE&&t.status!==NAME_STATE&&t.status!==COMMENT_STATE&&t.status!==HCRC_STATE&&t.status!==BUSY_STATE&&t.status!==FINISH_STATE?1:0},deflateResetKeep=e=>{if(deflateStateCheck(e))return err(e,Z_STREAM_ERROR$2);e.total_in=e.total_out=0,e.data_type=Z_UNKNOWN;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?GZIP_STATE:t.wrap?INIT_STATE:BUSY_STATE,e.adler=t.wrap===2?0:1,t.last_flush=-2,_tr_init(t),Z_OK$3},deflateReset=e=>{const t=deflateResetKeep(e);return t===Z_OK$3&&lm_init(e.state),t},deflateSetHeader=(e,t)=>deflateStateCheck(e)||e.state.wrap!==2?Z_STREAM_ERROR$2:(e.state.gzhead=t,Z_OK$3),deflateInit2=(e,t,n,o,l,a)=>{if(!e)return Z_STREAM_ERROR$2;let d=1;if(t===Z_DEFAULT_COMPRESSION$1&&(t=6),o<0?(d=0,o=-o):o>15&&(d=2,o-=16),l<1||l>MAX_MEM_LEVEL||n!==Z_DEFLATED$2||o<8||o>15||t<0||t>9||a<0||a>Z_FIXED||o===8&&d!==1)return err(e,Z_STREAM_ERROR$2);o===8&&(o=9);const y=new DeflateState;return e.state=y,y.strm=e,y.status=INIT_STATE,y.wrap=d,y.gzhead=null,y.w_bits=o,y.w_size=1<deflateInit2(e,t,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(e,t)=>{if(deflateStateCheck(e)||t>Z_BLOCK$1||t<0)return e?err(e,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===FINISH_STATE&&t!==Z_FINISH$3)return err(e,e.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const o=n.last_flush;if(n.last_flush=t,n.pending!==0){if(flush_pending(e),e.avail_out===0)return n.last_flush=-1,Z_OK$3}else if(e.avail_in===0&&rank(t)<=rank(o)&&t!==Z_FINISH$3)return err(e,Z_BUF_ERROR$1);if(n.status===FINISH_STATE&&e.avail_in!==0)return err(e,Z_BUF_ERROR$1);if(n.status===INIT_STATE&&n.wrap===0&&(n.status=BUSY_STATE),n.status===INIT_STATE){let l=Z_DEFLATED$2+(n.w_bits-8<<4)<<8,a=-1;if(n.strategy>=Z_HUFFMAN_ONLY||n.level<2?a=0:n.level<6?a=1:n.level===6?a=2:a=3,l|=a<<6,n.strstart!==0&&(l|=PRESET_DICT),l+=31-l%31,putShortMSB(n,l),n.strstart!==0&&(putShortMSB(n,e.adler>>>16),putShortMSB(n,e.adler&65535)),e.adler=1,n.status=BUSY_STATE,flush_pending(e),n.pending!==0)return n.last_flush=-1,Z_OK$3}if(n.status===GZIP_STATE){if(e.adler=0,put_byte(n,31),put_byte(n,139),put_byte(n,8),n.gzhead)put_byte(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),put_byte(n,n.gzhead.time&255),put_byte(n,n.gzhead.time>>8&255),put_byte(n,n.gzhead.time>>16&255),put_byte(n,n.gzhead.time>>24&255),put_byte(n,n.level===9?2:n.strategy>=Z_HUFFMAN_ONLY||n.level<2?4:0),put_byte(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(put_byte(n,n.gzhead.extra.length&255),put_byte(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=crc32_1(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=EXTRA_STATE;else if(put_byte(n,0),put_byte(n,0),put_byte(n,0),put_byte(n,0),put_byte(n,0),put_byte(n,n.level===9?2:n.strategy>=Z_HUFFMAN_ONLY||n.level<2?4:0),put_byte(n,OS_CODE),n.status=BUSY_STATE,flush_pending(e),n.pending!==0)return n.last_flush=-1,Z_OK$3}if(n.status===EXTRA_STATE){if(n.gzhead.extra){let l=n.pending,a=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+a>n.pending_buf_size;){let y=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+y),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>l&&(e.adler=crc32_1(e.adler,n.pending_buf,n.pending-l,l)),n.gzindex+=y,flush_pending(e),n.pending!==0)return n.last_flush=-1,Z_OK$3;l=0,a-=y}let d=new Uint8Array(n.gzhead.extra);n.pending_buf.set(d.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending+=a,n.gzhead.hcrc&&n.pending>l&&(e.adler=crc32_1(e.adler,n.pending_buf,n.pending-l,l)),n.gzindex=0}n.status=NAME_STATE}if(n.status===NAME_STATE){if(n.gzhead.name){let l=n.pending,a;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>l&&(e.adler=crc32_1(e.adler,n.pending_buf,n.pending-l,l)),flush_pending(e),n.pending!==0)return n.last_flush=-1,Z_OK$3;l=0}n.gzindexl&&(e.adler=crc32_1(e.adler,n.pending_buf,n.pending-l,l)),n.gzindex=0}n.status=COMMENT_STATE}if(n.status===COMMENT_STATE){if(n.gzhead.comment){let l=n.pending,a;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>l&&(e.adler=crc32_1(e.adler,n.pending_buf,n.pending-l,l)),flush_pending(e),n.pending!==0)return n.last_flush=-1,Z_OK$3;l=0}n.gzindexl&&(e.adler=crc32_1(e.adler,n.pending_buf,n.pending-l,l))}n.status=HCRC_STATE}if(n.status===HCRC_STATE){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(flush_pending(e),n.pending!==0))return n.last_flush=-1,Z_OK$3;put_byte(n,e.adler&255),put_byte(n,e.adler>>8&255),e.adler=0}if(n.status=BUSY_STATE,flush_pending(e),n.pending!==0)return n.last_flush=-1,Z_OK$3}if(e.avail_in!==0||n.lookahead!==0||t!==Z_NO_FLUSH$2&&n.status!==FINISH_STATE){let l=n.level===0?deflate_stored(n,t):n.strategy===Z_HUFFMAN_ONLY?deflate_huff(n,t):n.strategy===Z_RLE?deflate_rle(n,t):configuration_table[n.level].func(n,t);if((l===BS_FINISH_STARTED||l===BS_FINISH_DONE)&&(n.status=FINISH_STATE),l===BS_NEED_MORE||l===BS_FINISH_STARTED)return e.avail_out===0&&(n.last_flush=-1),Z_OK$3;if(l===BS_BLOCK_DONE&&(t===Z_PARTIAL_FLUSH?_tr_align(n):t!==Z_BLOCK$1&&(_tr_stored_block(n,0,0,!1),t===Z_FULL_FLUSH$1&&(zero(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),flush_pending(e),e.avail_out===0))return n.last_flush=-1,Z_OK$3}return t!==Z_FINISH$3?Z_OK$3:n.wrap<=0?Z_STREAM_END$3:(n.wrap===2?(put_byte(n,e.adler&255),put_byte(n,e.adler>>8&255),put_byte(n,e.adler>>16&255),put_byte(n,e.adler>>24&255),put_byte(n,e.total_in&255),put_byte(n,e.total_in>>8&255),put_byte(n,e.total_in>>16&255),put_byte(n,e.total_in>>24&255)):(putShortMSB(n,e.adler>>>16),putShortMSB(n,e.adler&65535)),flush_pending(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=e=>{if(deflateStateCheck(e))return Z_STREAM_ERROR$2;const t=e.state.status;return e.state=null,t===BUSY_STATE?err(e,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(e,t)=>{let n=t.length;if(deflateStateCheck(e))return Z_STREAM_ERROR$2;const o=e.state,l=o.wrap;if(l===2||l===1&&o.status!==INIT_STATE||o.lookahead)return Z_STREAM_ERROR$2;if(l===1&&(e.adler=adler32_1(e.adler,t,n,0)),o.wrap=0,n>=o.w_size){l===0&&(zero(o.head),o.strstart=0,o.block_start=0,o.insert=0);let w=new Uint8Array(o.w_size);w.set(t.subarray(n-o.w_size,n),0),t=w,n=o.w_size}const a=e.avail_in,d=e.next_in,y=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,fill_window(o);o.lookahead>=MIN_MATCH;){let w=o.strstart,_=o.lookahead-(MIN_MATCH-1);do o.ins_h=HASH(o,o.ins_h,o.window[w+MIN_MATCH-1]),o.prev[w&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=w,w++;while(--_);o.strstart=w,o.lookahead=MIN_MATCH-1,fill_window(o)}return o.strstart+=o.lookahead,o.block_start=o.strstart,o.insert=o.lookahead,o.lookahead=0,o.match_length=o.prev_length=MIN_MATCH-1,o.match_available=0,e.next_in=d,e.input=y,e.avail_in=a,o.wrap=l,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var assign=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const o in n)_has(n,o)&&(e[o]=n[o])}}return e},flattenChunks=e=>{let t=0;for(let o=0,l=e.length;o=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,o,l,a,d=e.length,y=0;for(l=0;l>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t};const buf2binstring=(e,t)=>{if(t<65534&&e.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let o=0;o{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let o,l;const a=new Array(n*2);for(l=0,o=0;o4){a[l++]=65533,o+=y-1;continue}for(d&=y===2?31:y===3?15:7;y>1&&o1){a[l++]=65533;continue}d<65536?a[l++]=d:(d-=65536,a[l++]=55296|d>>10&1023,a[l++]=56320|d&1023)}return buf2binstring(a,l)},utf8border=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+_utf8len[e[n]]>t?n:t},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const toString$1$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(e){this.options=common$6.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let n=deflate_1$2.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Z_OK$2)throw new Error(messages[n]);if(t.header&&deflate_1$2.deflateSetHeader(this.strm,t.header),t.dictionary){let o;if(typeof t.dictionary=="string"?o=strings.string2buf(t.dictionary):toString$1$1.call(t.dictionary)==="[object ArrayBuffer]"?o=new Uint8Array(t.dictionary):o=t.dictionary,n=deflate_1$2.deflateSetDictionary(this.strm,o),n!==Z_OK$2)throw new Error(messages[n]);this._dict_set=!0}}Deflate$1.prototype.push=function(e,t){const n=this.strm,o=this.options.chunkSize;let l,a;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof e=="string"?n.input=strings.string2buf(e):toString$1$1.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(o),n.next_out=0,n.avail_out=o),(a===Z_SYNC_FLUSH||a===Z_FULL_FLUSH)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(l=deflate_1$2.deflate(n,a),l===Z_STREAM_END$2)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),l=deflate_1$2.deflateEnd(this.strm),this.onEnd(l),this.ended=!0,l===Z_OK$2;if(n.avail_out===0){this.onData(n.output);continue}if(a>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(e){this.chunks.push(e)};Deflate$1.prototype.onEnd=function(e){e===Z_OK$2&&(this.result=common$6.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function deflate$1(e,t){const n=new Deflate$1(t);if(n.push(e,!0),n.err)throw n.msg||messages[n.err];return n.result}function deflateRaw$1(e,t){return t=t||{},t.raw=!0,deflate$1(e,t)}function gzip$1(e,t){return t=t||{},t.gzip=!0,deflate$1(e,t)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,constants$1=constants$2,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1,constants:constants$1};const BAD$1=16209,TYPE$1=16191;var inffast=function(t,n){let o,l,a,d,y,w,_,S,E,C,B,L,F,q,H,D,j,V,Q,ae,ce,ue,re,pe;const T=t.state;o=t.next_in,re=t.input,l=o+(t.avail_in-5),a=t.next_out,pe=t.output,d=a-(n-t.avail_out),y=a+(t.avail_out-257),w=T.dmax,_=T.wsize,S=T.whave,E=T.wnext,C=T.window,B=T.hold,L=T.bits,F=T.lencode,q=T.distcode,H=(1<>>24,B>>>=V,L-=V,V=j>>>16&255,V===0)pe[a++]=j&65535;else if(V&16){Q=j&65535,V&=15,V&&(L>>=V,L-=V),L<15&&(B+=re[o++]<>>24,B>>>=V,L-=V,V=j>>>16&255,V&16){if(ae=j&65535,V&=15,Lw){t.msg="invalid distance too far back",T.mode=BAD$1;break e}if(B>>>=V,L-=V,V=a-d,ae>V){if(V=ae-V,V>S&&T.sane){t.msg="invalid distance too far back",T.mode=BAD$1;break e}if(ce=0,ue=C,E===0){if(ce+=_-V,V2;)pe[a++]=ue[ce++],pe[a++]=ue[ce++],pe[a++]=ue[ce++],Q-=3;Q&&(pe[a++]=ue[ce++],Q>1&&(pe[a++]=ue[ce++]))}else{ce=a-ae;do pe[a++]=pe[ce++],pe[a++]=pe[ce++],pe[a++]=pe[ce++],Q-=3;while(Q>2);Q&&(pe[a++]=pe[ce++],Q>1&&(pe[a++]=pe[ce++]))}}else if(V&64){t.msg="invalid distance code",T.mode=BAD$1;break e}else{j=q[(j&65535)+(B&(1<>3,o-=Q,L-=Q<<3,B&=(1<{const w=y.bits;let _=0,S=0,E=0,C=0,B=0,L=0,F=0,q=0,H=0,D=0,j,V,Q,ae,ce,ue=null,re;const pe=new Uint16Array(MAXBITS+1),T=new Uint16Array(MAXBITS+1);let u=null,v,m,b;for(_=0;_<=MAXBITS;_++)pe[_]=0;for(S=0;S=1&&pe[C]===0;C--);if(B>C&&(B=C),C===0)return l[a++]=1<<24|64<<16|0,l[a++]=1<<24|64<<16|0,y.bits=1,0;for(E=1;E0&&(e===CODES$1||C!==1))return-1;for(T[1]=0,_=1;_ENOUGH_LENS$1||e===DISTS$1&&H>ENOUGH_DISTS$1)return 1;for(;;){v=_-F,d[S]+1=re?(m=u[d[S]-re],b=ue[d[S]-re]):(m=32+64,b=0),j=1<<_-F,V=1<>F)+V]=v<<24|m<<16|b|0;while(V!==0);for(j=1<<_-1;D&j;)j>>=1;if(j!==0?(D&=j-1,D+=j):D=0,S++,--pe[_]===0){if(_===C)break;_=t[n+d[S]]}if(_>B&&(D&ae)!==Q){for(F===0&&(F=B),ce+=E,L=_-F,q=1<ENOUGH_LENS$1||e===DISTS$1&&H>ENOUGH_DISTS$1)return 1;Q=D&ae,l[Q]=B<<24|L<<16|ce-a|0}}return D!==0&&(l[ce+D]=_-F<<24|64<<16|0),y.bits=B,0};var inftrees=inflate_table;const CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$2,HEAD=16180,FLAGS=16181,TIME=16182,OS=16183,EXLEN=16184,EXTRA=16185,NAME=16186,COMMENT=16187,HCRC=16188,DICTID=16189,DICT=16190,TYPE=16191,TYPEDO=16192,STORED=16193,COPY_=16194,COPY=16195,TABLE=16196,LENLENS=16197,CODELENS=16198,LEN_=16199,LEN=16200,LENEXT=16201,DIST=16202,DISTEXT=16203,MATCH=16204,LIT=16205,CHECK=16206,LENGTH=16207,DONE=16208,BAD=16209,MEM=16210,SYNC=16211,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function InflateState(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateStateCheck=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeSYNC?1:0},inflateResetKeep=e=>{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=HEAD,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(ENOUGH_LENS),t.distcode=t.distdyn=new Int32Array(ENOUGH_DISTS),t.sane=1,t.back=-1,Z_OK$1},inflateReset=e=>{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,inflateResetKeep(e)},inflateReset2=(e,t)=>{let n;if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const o=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Z_STREAM_ERROR$1:(o.window!==null&&o.wbits!==t&&(o.window=null),o.wrap=n,o.wbits=t,inflateReset(e))},inflateInit2=(e,t)=>{if(!e)return Z_STREAM_ERROR$1;const n=new InflateState;e.state=n,n.strm=e,n.window=null,n.mode=HEAD;const o=inflateReset2(e,t);return o!==Z_OK$1&&(e.state=null),o},inflateInit=e=>inflateInit2(e,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=e=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(inftrees(LENS,e.lens,0,288,lenfix,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;inftrees(DISTS,e.lens,0,32,distfix,0,e.work,{bits:5}),virgin=!1}e.lencode=lenfix,e.lenbits=9,e.distcode=distfix,e.distbits=5},updatewindow=(e,t,n,o)=>{let l;const a=e.state;return a.window===null&&(a.wsize=1<=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(l=a.wsize-a.wnext,l>o&&(l=o),a.window.set(t.subarray(n-o,n-o+l),a.wnext),o-=l,o?(a.window.set(t.subarray(n-o,n),0),a.wnext=o,a.whave=a.wsize):(a.wnext+=l,a.wnext===a.wsize&&(a.wnext=0),a.whave{let n,o,l,a,d,y,w,_,S,E,C,B,L,F,q=0,H,D,j,V,Q,ae,ce,ue;const re=new Uint8Array(4);let pe,T;const u=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(e)||!e.output||!e.input&&e.avail_in!==0)return Z_STREAM_ERROR$1;n=e.state,n.mode===TYPE&&(n.mode=TYPEDO),d=e.next_out,l=e.output,w=e.avail_out,a=e.next_in,o=e.input,y=e.avail_in,_=n.hold,S=n.bits,E=y,C=w,ue=Z_OK$1;e:for(;;)switch(n.mode){case HEAD:if(n.wrap===0){n.mode=TYPEDO;break}for(;S<16;){if(y===0)break e;y--,_+=o[a++]<>>8&255,n.check=crc32_1(n.check,re,2,0),_=0,S=0,n.mode=FLAGS;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((_&255)<<8)+(_>>8))%31){e.msg="incorrect header check",n.mode=BAD;break}if((_&15)!==Z_DEFLATED){e.msg="unknown compression method",n.mode=BAD;break}if(_>>>=4,S-=4,ce=(_&15)+8,n.wbits===0&&(n.wbits=ce),ce>15||ce>n.wbits){e.msg="invalid window size",n.mode=BAD;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(re[0]=_&255,re[1]=_>>>8&255,n.check=crc32_1(n.check,re,2,0)),_=0,S=0,n.mode=TIME;case TIME:for(;S<32;){if(y===0)break e;y--,_+=o[a++]<>>8&255,re[2]=_>>>16&255,re[3]=_>>>24&255,n.check=crc32_1(n.check,re,4,0)),_=0,S=0,n.mode=OS;case OS:for(;S<16;){if(y===0)break e;y--,_+=o[a++]<>8),n.flags&512&&n.wrap&4&&(re[0]=_&255,re[1]=_>>>8&255,n.check=crc32_1(n.check,re,2,0)),_=0,S=0,n.mode=EXLEN;case EXLEN:if(n.flags&1024){for(;S<16;){if(y===0)break e;y--,_+=o[a++]<>>8&255,n.check=crc32_1(n.check,re,2,0)),_=0,S=0}else n.head&&(n.head.extra=null);n.mode=EXTRA;case EXTRA:if(n.flags&1024&&(B=n.length,B>y&&(B=y),B&&(n.head&&(ce=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(o.subarray(a,a+B),ce)),n.flags&512&&n.wrap&4&&(n.check=crc32_1(n.check,o,B,a)),y-=B,a+=B,n.length-=B),n.length))break e;n.length=0,n.mode=NAME;case NAME:if(n.flags&2048){if(y===0)break e;B=0;do ce=o[a+B++],n.head&&ce&&n.length<65536&&(n.head.name+=String.fromCharCode(ce));while(ce&&B>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=TYPE;break;case DICTID:for(;S<32;){if(y===0)break e;y--,_+=o[a++]<>>=S&7,S-=S&7,n.mode=CHECK;break}for(;S<3;){if(y===0)break e;y--,_+=o[a++]<>>=1,S-=1,_&3){case 0:n.mode=STORED;break;case 1:if(fixedtables(n),n.mode=LEN_,t===Z_TREES){_>>>=2,S-=2;break e}break;case 2:n.mode=TABLE;break;case 3:e.msg="invalid block type",n.mode=BAD}_>>>=2,S-=2;break;case STORED:for(_>>>=S&7,S-=S&7;S<32;){if(y===0)break e;y--,_+=o[a++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=BAD;break}if(n.length=_&65535,_=0,S=0,n.mode=COPY_,t===Z_TREES)break e;case COPY_:n.mode=COPY;case COPY:if(B=n.length,B){if(B>y&&(B=y),B>w&&(B=w),B===0)break e;l.set(o.subarray(a,a+B),d),y-=B,a+=B,w-=B,d+=B,n.length-=B;break}n.mode=TYPE;break;case TABLE:for(;S<14;){if(y===0)break e;y--,_+=o[a++]<>>=5,S-=5,n.ndist=(_&31)+1,_>>>=5,S-=5,n.ncode=(_&15)+4,_>>>=4,S-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=BAD;break}n.have=0,n.mode=LENLENS;case LENLENS:for(;n.have>>=3,S-=3}for(;n.have<19;)n.lens[u[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,pe={bits:n.lenbits},ue=inftrees(CODES,n.lens,0,19,n.lencode,0,n.work,pe),n.lenbits=pe.bits,ue){e.msg="invalid code lengths set",n.mode=BAD;break}n.have=0,n.mode=CODELENS;case CODELENS:for(;n.have>>24,D=q>>>16&255,j=q&65535,!(H<=S);){if(y===0)break e;y--,_+=o[a++]<>>=H,S-=H,n.lens[n.have++]=j;else{if(j===16){for(T=H+2;S>>=H,S-=H,n.have===0){e.msg="invalid bit length repeat",n.mode=BAD;break}ce=n.lens[n.have-1],B=3+(_&3),_>>>=2,S-=2}else if(j===17){for(T=H+3;S>>=H,S-=H,ce=0,B=3+(_&7),_>>>=3,S-=3}else{for(T=H+7;S>>=H,S-=H,ce=0,B=11+(_&127),_>>>=7,S-=7}if(n.have+B>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=BAD;break}for(;B--;)n.lens[n.have++]=ce}}if(n.mode===BAD)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=BAD;break}if(n.lenbits=9,pe={bits:n.lenbits},ue=inftrees(LENS,n.lens,0,n.nlen,n.lencode,0,n.work,pe),n.lenbits=pe.bits,ue){e.msg="invalid literal/lengths set",n.mode=BAD;break}if(n.distbits=6,n.distcode=n.distdyn,pe={bits:n.distbits},ue=inftrees(DISTS,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,pe),n.distbits=pe.bits,ue){e.msg="invalid distances set",n.mode=BAD;break}if(n.mode=LEN_,t===Z_TREES)break e;case LEN_:n.mode=LEN;case LEN:if(y>=6&&w>=258){e.next_out=d,e.avail_out=w,e.next_in=a,e.avail_in=y,n.hold=_,n.bits=S,inffast(e,C),d=e.next_out,l=e.output,w=e.avail_out,a=e.next_in,o=e.input,y=e.avail_in,_=n.hold,S=n.bits,n.mode===TYPE&&(n.back=-1);break}for(n.back=0;q=n.lencode[_&(1<>>24,D=q>>>16&255,j=q&65535,!(H<=S);){if(y===0)break e;y--,_+=o[a++]<>V)],H=q>>>24,D=q>>>16&255,j=q&65535,!(V+H<=S);){if(y===0)break e;y--,_+=o[a++]<>>=V,S-=V,n.back+=V}if(_>>>=H,S-=H,n.back+=H,n.length=j,D===0){n.mode=LIT;break}if(D&32){n.back=-1,n.mode=TYPE;break}if(D&64){e.msg="invalid literal/length code",n.mode=BAD;break}n.extra=D&15,n.mode=LENEXT;case LENEXT:if(n.extra){for(T=n.extra;S>>=n.extra,S-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=DIST;case DIST:for(;q=n.distcode[_&(1<>>24,D=q>>>16&255,j=q&65535,!(H<=S);){if(y===0)break e;y--,_+=o[a++]<>V)],H=q>>>24,D=q>>>16&255,j=q&65535,!(V+H<=S);){if(y===0)break e;y--,_+=o[a++]<>>=V,S-=V,n.back+=V}if(_>>>=H,S-=H,n.back+=H,D&64){e.msg="invalid distance code",n.mode=BAD;break}n.offset=j,n.extra=D&15,n.mode=DISTEXT;case DISTEXT:if(n.extra){for(T=n.extra;S>>=n.extra,S-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=BAD;break}n.mode=MATCH;case MATCH:if(w===0)break e;if(B=C-w,n.offset>B){if(B=n.offset-B,B>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=BAD;break}B>n.wnext?(B-=n.wnext,L=n.wsize-B):L=n.wnext-B,B>n.length&&(B=n.length),F=n.window}else F=l,L=d-n.offset,B=n.length;B>w&&(B=w),w-=B,n.length-=B;do l[d++]=F[L++];while(--B);n.length===0&&(n.mode=LEN);break;case LIT:if(w===0)break e;l[d++]=n.length,w--,n.mode=LEN;break;case CHECK:if(n.wrap){for(;S<32;){if(y===0)break e;y--,_|=o[a++]<{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;let t=e.state;return t.window&&(t.window=null),e.state=null,Z_OK$1},inflateGetHeader=(e,t)=>{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,Z_OK$1):Z_STREAM_ERROR$1},inflateSetDictionary=(e,t)=>{const n=t.length;let o,l,a;return inflateStateCheck(e)||(o=e.state,o.wrap!==0&&o.mode!==DICT)?Z_STREAM_ERROR$1:o.mode===DICT&&(l=1,l=adler32_1(l,t,n,0),l!==o.check)?Z_DATA_ERROR$1:(a=updatewindow(e,t,n,n),a?(o.mode=MEM,Z_MEM_ERROR$1):(o.havedict=1,Z_OK$1))};var inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo};function GZheader(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader;const toString$2=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$2;function Inflate$1(e){this.options=common$6.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let n=inflate_1$2.inflateInit2(this.strm,t.windowBits);if(n!==Z_OK)throw new Error(messages[n]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=strings.string2buf(t.dictionary):toString$2.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=inflate_1$2.inflateSetDictionary(this.strm,t.dictionary),n!==Z_OK)))throw new Error(messages[n])}Inflate$1.prototype.push=function(e,t){const n=this.strm,o=this.options.chunkSize,l=this.options.dictionary;let a,d,y;if(this.ended)return!1;for(t===~~t?d=t:d=t===!0?Z_FINISH:Z_NO_FLUSH,toString$2.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(o),n.next_out=0,n.avail_out=o),a=inflate_1$2.inflate(n,d),a===Z_NEED_DICT&&l&&(a=inflate_1$2.inflateSetDictionary(n,l),a===Z_OK?a=inflate_1$2.inflate(n,d):a===Z_DATA_ERROR&&(a=Z_NEED_DICT));n.avail_in>0&&a===Z_STREAM_END&&n.state.wrap>0&&e[n.next_in]!==0;)inflate_1$2.inflateReset(n),a=inflate_1$2.inflate(n,d);switch(a){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(a),this.ended=!0,!1}if(y=n.avail_out,n.next_out&&(n.avail_out===0||a===Z_STREAM_END))if(this.options.to==="string"){let w=strings.utf8border(n.output,n.next_out),_=n.next_out-w,S=strings.buf2string(n.output,w);n.next_out=_,n.avail_out=o-_,_&&n.output.set(n.output.subarray(w,w+_),0),this.onData(S)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===Z_OK&&y===0)){if(a===Z_STREAM_END)return a=inflate_1$2.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(e){this.chunks.push(e)};Inflate$1.prototype.onEnd=function(e){e===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common$6.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function inflate$1(e,t){const n=new Inflate$1(t);if(n.push(e),n.err)throw n.msg||messages[n.err];return n.result}function inflateRaw$1(e,t){return t=t||{},t.raw=!0,inflate$1(e,t)}var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflateRaw_1$1=inflateRaw$1,ungzip$1=inflate$1,constants$3=constants$2,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2,inflateRaw:inflateRaw_1$1,ungzip:ungzip$1,constants:constants$3};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1,{Inflate,inflate,inflateRaw,ungzip}=inflate_1$1;var Deflate_1=Deflate,deflate_1=deflate,deflateRaw_1=deflateRaw,gzip_1=gzip,Inflate_1=Inflate,inflate_1=inflate,inflateRaw_1=inflateRaw,ungzip_1=ungzip,constants_1=constants$2,pako={Deflate:Deflate_1,deflate:deflate_1,deflateRaw:deflateRaw_1,gzip:gzip_1,Inflate:Inflate_1,inflate:inflate_1,inflateRaw:inflateRaw_1,ungzip:ungzip_1,constants:constants_1},urlsafeBase64$1={};urlsafeBase64$1.version="1.0.0";urlsafeBase64$1.encode=function(t){return t.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")};urlsafeBase64$1.decode=function(t){return t+=Array(5-t.length%4).join("="),t=t.replace(/\-/g,"+").replace(/\_/g,"/"),new buffer$2.Buffer(t,"base64")};urlsafeBase64$1.validate=function(t){return/^[A-Za-z0-9\-_]+$/.test(t)};var urlsafeBase64=urlsafeBase64$1,cryptoBrowserify={},browser$a={exports:{}},MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser$1(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$B=safeBufferExports$1.Buffer,crypto$2=commonjsGlobal.crypto||commonjsGlobal.msCrypto;crypto$2&&crypto$2.getRandomValues?browser$a.exports=randomBytes$2:browser$a.exports=oldBrowser$1;function randomBytes$2(e,t){if(e>MAX_UINT32)throw new RangeError("requested too many random bytes");var n=Buffer$B.allocUnsafe(e);if(e>0)if(e>MAX_BYTES)for(var o=0;o0?this.tail.next=H:this.head=H,this.tail=H,++this.length}},{key:"unshift",value:function(q){var H={data:q,next:this.head};this.length===0&&(this.tail=H),this.head=H,++this.length}},{key:"shift",value:function(){if(this.length!==0){var q=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(q){if(this.length===0)return"";for(var H=this.head,D=""+H.data;H=H.next;)D+=q+H.data;return D}},{key:"concat",value:function(q){if(this.length===0)return _.alloc(0);for(var H=_.allocUnsafe(q>>>0),D=this.head,j=0;D;)B(D.data,H,j),j+=D.data.length,D=D.next;return H}},{key:"consume",value:function(q,H){var D;return qV.length?V.length:q;if(Q===V.length?j+=V:j+=V.slice(0,q),q-=Q,q===0){Q===V.length?(++D,H.next?this.head=H.next:this.head=this.tail=null):(this.head=H,H.data=V.slice(Q));break}++D}return this.length-=D,j}},{key:"_getBuffer",value:function(q){var H=_.allocUnsafe(q),D=this.head,j=1;for(D.data.copy(H),q-=D.data.length;D=D.next;){var V=D.data,Q=q>V.length?V.length:q;if(V.copy(H,H.length-q,0,Q),q-=Q,q===0){Q===V.length?(++j,D.next?this.head=D.next:this.head=this.tail=null):(this.head=D,D.data=V.slice(Q));break}++j}return this.length-=j,H}},{key:C,value:function(q,H){return E(this,t(t({},H),{},{depth:0,customInspect:!1}))}}]),L}(),buffer_list}var destroy_1$1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1$1;hasRequiredDestroy=1;function e(d,y){var w=this,_=this._readableState&&this._readableState.destroyed,S=this._writableState&&this._writableState.destroyed;return _||S?(y?y(d):d&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,api$2.nextTick(l,this,d)):api$2.nextTick(l,this,d)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(d||null,function(E){!y&&E?w._writableState?w._writableState.errorEmitted?api$2.nextTick(n,w):(w._writableState.errorEmitted=!0,api$2.nextTick(t,w,E)):api$2.nextTick(t,w,E):y?(api$2.nextTick(n,w),y(E)):api$2.nextTick(n,w)}),this)}function t(d,y){l(d,y),n(d)}function n(d){d._writableState&&!d._writableState.emitClose||d._readableState&&!d._readableState.emitClose||d.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(d,y){d.emit("error",y)}function a(d,y){var w=d._readableState,_=d._writableState;w&&w.autoDestroy||_&&_.autoDestroy?d.destroy(y):d.emit("error",y)}return destroy_1$1={destroy:e,undestroy:o,errorOrDestroy:a},destroy_1$1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function e(y,w){y.prototype=Object.create(w.prototype),y.prototype.constructor=y,y.__proto__=w}var t={};function n(y,w,_){_||(_=Error);function S(C,B,L){return typeof w=="string"?w:w(C,B,L)}var E=function(C){e(B,C);function B(L,F,q){return C.call(this,S(L,F,q))||this}return B}(_);E.prototype.name=_.name,E.prototype.code=y,t[y]=E}function o(y,w){if(Array.isArray(y)){var _=y.length;return y=y.map(function(S){return String(S)}),_>2?"one of ".concat(w," ").concat(y.slice(0,_-1).join(", "),", or ")+y[_-1]:_===2?"one of ".concat(w," ").concat(y[0]," or ").concat(y[1]):"of ".concat(w," ").concat(y[0])}else return"of ".concat(w," ").concat(String(y))}function l(y,w,_){return y.substr(!_||_<0?0:+_,w.length)===w}function a(y,w,_){return(_===void 0||_>y.length)&&(_=y.length),y.substring(_-w.length,_)===w}function d(y,w,_){return typeof _!="number"&&(_=0),_+w.length>y.length?!1:y.indexOf(w,_)!==-1}return n("ERR_INVALID_OPT_VALUE",function(y,w){return'The value "'+w+'" is invalid for option "'+y+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(y,w,_){var S;typeof w=="string"&&l(w,"not ")?(S="must not be",w=w.replace(/^not /,"")):S="must be";var E;if(a(y," argument"))E="The ".concat(y," ").concat(S," ").concat(o(w,"type"));else{var C=d(y,".")?"property":"argument";E='The "'.concat(y,'" ').concat(C," ").concat(S," ").concat(o(w,"type"))}return E+=". Received type ".concat(typeof _),E},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(y){return"The "+y+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(y){return"Cannot call "+y+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(y){return"Unknown encoding: "+y},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=t,errorsBrowser}var state,hasRequiredState;function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var e=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function t(o,l,a){return o.highWaterMark!=null?o.highWaterMark:l?o[a]:null}function n(o,l,a,d){var y=t(l,d,a);if(y!=null){if(!(isFinite(y)&&Math.floor(y)===y)||y<0){var w=d?a:"highWaterMark";throw new e(w,y)}return Math.floor(y)}return o.objectMode?16:16*1024}return state={getHighWaterMark:n},state}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=ue;function e(U){var P=this;this.next=null,this.entry=null,this.finish=function(){le(P,U)}}var t;ue.WritableState=ae;var n={deprecate:browser$d},o=requireStreamBrowser(),l=buffer$2.Buffer,a=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d(U){return l.from(U)}function y(U){return l.isBuffer(U)||U instanceof a}var w=requireDestroy(),_=requireState(),S=_.getHighWaterMark,E=requireErrorsBrowser().codes,C=E.ERR_INVALID_ARG_TYPE,B=E.ERR_METHOD_NOT_IMPLEMENTED,L=E.ERR_MULTIPLE_CALLBACK,F=E.ERR_STREAM_CANNOT_PIPE,q=E.ERR_STREAM_DESTROYED,H=E.ERR_STREAM_NULL_VALUES,D=E.ERR_STREAM_WRITE_AFTER_END,j=E.ERR_UNKNOWN_ENCODING,V=w.errorOrDestroy;inherits_browserExports(ue,o);function Q(){}function ae(U,P,Z){t=t||require_stream_duplex$1(),U=U||{},typeof Z!="boolean"&&(Z=P instanceof t),this.objectMode=!!U.objectMode,Z&&(this.objectMode=this.objectMode||!!U.writableObjectMode),this.highWaterMark=S(this,U,"writableHighWaterMark",Z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=U.decodeStrings===!1;this.decodeStrings=!ie,this.defaultEncoding=U.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){M(P,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}ae.prototype.getBuffer=function(){for(var P=this.bufferedRequest,Z=[];P;)Z.push(P),P=P.next;return Z},function(){try{Object.defineProperty(ae.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ce;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ce=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(P){return ce.call(this,P)?!0:this!==ue?!1:P&&P._writableState instanceof ae}})):ce=function(P){return P instanceof this};function ue(U){t=t||require_stream_duplex$1();var P=this instanceof t;if(!P&&!ce.call(ue,this))return new ue(U);this._writableState=new ae(U,this,P),this.writable=!0,U&&(typeof U.write=="function"&&(this._write=U.write),typeof U.writev=="function"&&(this._writev=U.writev),typeof U.destroy=="function"&&(this._destroy=U.destroy),typeof U.final=="function"&&(this._final=U.final)),o.call(this)}ue.prototype.pipe=function(){V(this,new F)};function re(U,P){var Z=new D;V(U,Z),api$2.nextTick(P,Z)}function pe(U,P,Z,ie){var se;return Z===null?se=new H:typeof Z!="string"&&!P.objectMode&&(se=new C("chunk",["string","Buffer"],Z)),se?(V(U,se),api$2.nextTick(ie,se),!1):!0}ue.prototype.write=function(U,P,Z){var ie=this._writableState,se=!1,k=!ie.objectMode&&y(U);return k&&!l.isBuffer(U)&&(U=d(U)),typeof P=="function"&&(Z=P,P=null),k?P="buffer":P||(P=ie.defaultEncoding),typeof Z!="function"&&(Z=Q),ie.ending?re(this,Z):(k||pe(this,ie,U,Z))&&(ie.pendingcb++,se=u(this,ie,k,U,P,Z)),se},ue.prototype.cork=function(){this._writableState.corked++},ue.prototype.uncork=function(){var U=this._writableState;U.corked&&(U.corked--,!U.writing&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&$(this,U))},ue.prototype.setDefaultEncoding=function(P){if(typeof P=="string"&&(P=P.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((P+"").toLowerCase())>-1))throw new j(P);return this._writableState.defaultEncoding=P,this},Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function T(U,P,Z){return!U.objectMode&&U.decodeStrings!==!1&&typeof P=="string"&&(P=l.from(P,Z)),P}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function u(U,P,Z,ie,se,k){if(!Z){var I=T(P,ie,se);ie!==I&&(Z=!0,se="buffer",ie=I)}var te=P.objectMode?1:ie.length;P.length+=te;var ee=P.length0)if(typeof I!="string"&&!J.objectMode&&Object.getPrototypeOf(I)!==o.prototype&&(I=a(I)),ee)J.endEmitted?Q(k,new H):T(k,J,I,!0);else if(J.ended)Q(k,new F);else{if(J.destroyed)return!1;J.reading=!1,J.decoder&&!te?(I=J.decoder.write(I),J.objectMode||I.length!==0?T(k,J,I,!1):$(k,J)):T(k,J,I,!1)}else ee||(J.reading=!1,$(k,J))}return!J.ended&&(J.length=v?k=v:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function b(k,I){return k<=0||I.length===0&&I.ended?0:I.objectMode?1:k!==k?I.flowing&&I.length?I.buffer.head.data.length:I.length:(k>I.highWaterMark&&(I.highWaterMark=m(k)),k<=I.length?k:I.ended?I.length:(I.needReadable=!0,0))}re.prototype.read=function(k){w("read",k),k=parseInt(k,10);var I=this._readableState,te=k;if(k!==0&&(I.emittedReadable=!1),k===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return w("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?Z(this):A(this),null;if(k=b(k,I),k===0&&I.ended)return I.length===0&&Z(this),null;var ee=I.needReadable;w("need readable",ee),(I.length===0||I.length-k0?fe=P(k,I):fe=null,fe===null?(I.needReadable=I.length<=I.highWaterMark,k=0):(I.length-=k,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),te!==k&&I.ended&&Z(this)),fe!==null&&this.emit("data",fe),fe};function M(k,I){if(w("onEofChunk"),!I.ended){if(I.decoder){var te=I.decoder.end();te&&te.length&&(I.buffer.push(te),I.length+=I.objectMode?1:te.length)}I.ended=!0,I.sync?A(k):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,O(k)))}}function A(k){var I=k._readableState;w("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(w("emitReadable",I.flowing),I.emittedReadable=!0,api$2.nextTick(O,k))}function O(k){var I=k._readableState;w("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(k.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,U(k)}function $(k,I){I.readingMore||(I.readingMore=!0,api$2.nextTick(c,k,I))}function c(k,I){for(;!I.reading&&!I.ended&&(I.length1&&se(ee.pipes,k)!==-1)&&!me&&(w("false write response, pause",ee.awaitDrain),ee.awaitDrain++),te.pause())}function Re(Se){w("onerror",Se),qe(),k.removeListener("error",Re),t(k,"error")===0&&Q(k,Se)}ce(k,"error",Re);function _e(){k.removeListener("finish",we),qe()}k.once("close",_e);function we(){w("onfinish"),k.removeListener("close",_e),qe()}k.once("finish",we);function qe(){w("unpipe"),te.unpipe(k)}return k.emit("pipe",te),ee.flowing||(w("pipe resume"),te.resume()),k};function x(k){return function(){var te=k._readableState;w("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&t(k,"data")&&(te.flowing=!0,U(k))}}re.prototype.unpipe=function(k){var I=this._readableState,te={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return k&&k!==I.pipes?this:(k||(k=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,k&&k.emit("unpipe",this,te),this);if(!k){var ee=I.pipes,fe=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var J=0;J0,ee.flowing!==!1&&this.resume()):k==="readable"&&!ee.endEmitted&&!ee.readableListening&&(ee.readableListening=ee.needReadable=!0,ee.flowing=!1,ee.emittedReadable=!1,w("on readable",ee.length,ee.reading),ee.length?A(this):ee.reading||api$2.nextTick(z,this)),te},re.prototype.addListener=re.prototype.on,re.prototype.removeListener=function(k,I){var te=n.prototype.removeListener.call(this,k,I);return k==="readable"&&api$2.nextTick(N,this),te},re.prototype.removeAllListeners=function(k){var I=n.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&api$2.nextTick(N,this),I};function N(k){var I=k._readableState;I.readableListening=k.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:k.listenerCount("data")>0&&k.resume()}function z(k){w("readable nexttick read 0"),k.read(0)}re.prototype.resume=function(){var k=this._readableState;return k.flowing||(w("resume"),k.flowing=!k.readableListening,oe(this,k)),k.paused=!1,this};function oe(k,I){I.resumeScheduled||(I.resumeScheduled=!0,api$2.nextTick(le,k,I))}function le(k,I){w("resume",I.reading),I.reading||k.read(0),I.resumeScheduled=!1,k.emit("resume"),U(k),I.flowing&&!I.reading&&k.read(0)}re.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function U(k){var I=k._readableState;for(w("flow",I.flowing);I.flowing&&k.read()!==null;);}re.prototype.wrap=function(k){var I=this,te=this._readableState,ee=!1;k.on("end",function(){if(w("wrapped end"),te.decoder&&!te.ended){var Y=te.decoder.end();Y&&Y.length&&I.push(Y)}I.push(null)}),k.on("data",function(Y){if(w("wrapped data"),te.decoder&&(Y=te.decoder.write(Y)),!(te.objectMode&&Y==null)&&!(!te.objectMode&&(!Y||!Y.length))){var X=I.push(Y);X||(ee=!0,k.pause())}});for(var fe in k)this[fe]===void 0&&typeof k[fe]=="function"&&(this[fe]=function(X){return function(){return k[X].apply(k,arguments)}}(fe));for(var J=0;J=I.length?(I.decoder?te=I.buffer.join(""):I.buffer.length===1?te=I.buffer.first():te=I.buffer.concat(I.length),I.buffer.clear()):te=I.buffer.consume(k,I.decoder),te}function Z(k){var I=k._readableState;w("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,api$2.nextTick(ie,I,k))}function ie(k,I){if(w("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,I.readable=!1,I.emit("end"),k.autoDestroy)){var te=I._writableState;(!te||te.autoDestroy&&te.finished)&&I.destroy()}}typeof Symbol=="function"&&(re.from=function(k,I){return V===void 0&&(V=requireFromBrowser()),V(re,k,I)});function se(k,I){for(var te=0,ee=k.length;te0;return y(D,V,Q,function(ae){q||(q=ae),ae&&H.forEach(w),!V&&(H.forEach(w),F(q))})});return B.reduce(_)}return pipeline_1=E,pipeline_1}var streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$s=inherits_browserExports;inherits$s(Stream,EE);Stream.Readable=require_stream_readable$1();Stream.Writable=require_stream_writable$1();Stream.Duplex=require_stream_duplex$1();Stream.Transform=require_stream_transform();Stream.PassThrough=require_stream_passthrough();Stream.finished=requireEndOfStream();Stream.pipeline=requirePipeline();Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(e,t){var n=this;function o(S){e.writable&&e.write(S)===!1&&n.pause&&n.pause()}n.on("data",o);function l(){n.readable&&n.resume&&n.resume()}e.on("drain",l),!e._isStdio&&(!t||t.end!==!1)&&(n.on("end",d),n.on("close",y));var a=!1;function d(){a||(a=!0,e.end())}function y(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function w(S){if(_(),EE.listenerCount(this,"error")===0)throw S}n.on("error",w),e.on("error",w);function _(){n.removeListener("data",o),e.removeListener("drain",l),n.removeListener("end",d),n.removeListener("close",y),n.removeListener("error",w),e.removeListener("error",w),n.removeListener("end",_),n.removeListener("close",_),e.removeListener("close",_)}return n.on("end",_),n.on("close",_),e.on("close",_),e.emit("pipe",n),e};var Buffer$A=safeBufferExports$1.Buffer,Transform$8=streamBrowserify.Transform,inherits$r=inherits_browserExports;function HashBase$4(e){Transform$8.call(this),this._block=Buffer$A.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$r(HashBase$4,Transform$8);HashBase$4.prototype._transform=function(e,t,n){var o=null;try{this.update(e,t)}catch(l){o=l}n(o)};HashBase$4.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(n){t=n}e(t)};var useUint8Array$3=typeof Uint8Array<"u",useArrayBuffer$3=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Buffer$A.prototype instanceof Uint8Array||Buffer$A.TYPED_ARRAY_SUPPORT);function toBuffer$6(e,t){if(e instanceof Buffer$A)return e;if(typeof e=="string")return Buffer$A.from(e,t);if(useArrayBuffer$3&&ArrayBuffer.isView(e)){if(e.byteLength===0)return Buffer$A.alloc(0);var n=Buffer$A.from(e.buffer,e.byteOffset,e.byteLength);if(n.byteLength===e.byteLength)return n}if(useUint8Array$3&&e instanceof Uint8Array||Buffer$A.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return Buffer$A.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}HashBase$4.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");e=toBuffer$6(e,t);for(var n=this._block,o=0;this._blockOffset+e.length-o>=this._blockSize;){for(var l=this._blockOffset;l0;++a)this._length[a]+=d,d=this._length[a]/4294967296|0,d>0&&(this._length[a]-=4294967296*d);return this};HashBase$4.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$4.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t};HashBase$4.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase$1=HashBase$4,inherits$q=inherits_browserExports,HashBase$3=hashBase$1,Buffer$z=safeBufferExports$1.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$3.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$q(MD5$3,HashBase$3);MD5$3.prototype._update=function(){for(var e=ARRAY16$1,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var n=this._a,o=this._b,l=this._c,a=this._d;n=fnF(n,o,l,a,e[0],3614090360,7),a=fnF(a,n,o,l,e[1],3905402710,12),l=fnF(l,a,n,o,e[2],606105819,17),o=fnF(o,l,a,n,e[3],3250441966,22),n=fnF(n,o,l,a,e[4],4118548399,7),a=fnF(a,n,o,l,e[5],1200080426,12),l=fnF(l,a,n,o,e[6],2821735955,17),o=fnF(o,l,a,n,e[7],4249261313,22),n=fnF(n,o,l,a,e[8],1770035416,7),a=fnF(a,n,o,l,e[9],2336552879,12),l=fnF(l,a,n,o,e[10],4294925233,17),o=fnF(o,l,a,n,e[11],2304563134,22),n=fnF(n,o,l,a,e[12],1804603682,7),a=fnF(a,n,o,l,e[13],4254626195,12),l=fnF(l,a,n,o,e[14],2792965006,17),o=fnF(o,l,a,n,e[15],1236535329,22),n=fnG(n,o,l,a,e[1],4129170786,5),a=fnG(a,n,o,l,e[6],3225465664,9),l=fnG(l,a,n,o,e[11],643717713,14),o=fnG(o,l,a,n,e[0],3921069994,20),n=fnG(n,o,l,a,e[5],3593408605,5),a=fnG(a,n,o,l,e[10],38016083,9),l=fnG(l,a,n,o,e[15],3634488961,14),o=fnG(o,l,a,n,e[4],3889429448,20),n=fnG(n,o,l,a,e[9],568446438,5),a=fnG(a,n,o,l,e[14],3275163606,9),l=fnG(l,a,n,o,e[3],4107603335,14),o=fnG(o,l,a,n,e[8],1163531501,20),n=fnG(n,o,l,a,e[13],2850285829,5),a=fnG(a,n,o,l,e[2],4243563512,9),l=fnG(l,a,n,o,e[7],1735328473,14),o=fnG(o,l,a,n,e[12],2368359562,20),n=fnH(n,o,l,a,e[5],4294588738,4),a=fnH(a,n,o,l,e[8],2272392833,11),l=fnH(l,a,n,o,e[11],1839030562,16),o=fnH(o,l,a,n,e[14],4259657740,23),n=fnH(n,o,l,a,e[1],2763975236,4),a=fnH(a,n,o,l,e[4],1272893353,11),l=fnH(l,a,n,o,e[7],4139469664,16),o=fnH(o,l,a,n,e[10],3200236656,23),n=fnH(n,o,l,a,e[13],681279174,4),a=fnH(a,n,o,l,e[0],3936430074,11),l=fnH(l,a,n,o,e[3],3572445317,16),o=fnH(o,l,a,n,e[6],76029189,23),n=fnH(n,o,l,a,e[9],3654602809,4),a=fnH(a,n,o,l,e[12],3873151461,11),l=fnH(l,a,n,o,e[15],530742520,16),o=fnH(o,l,a,n,e[2],3299628645,23),n=fnI(n,o,l,a,e[0],4096336452,6),a=fnI(a,n,o,l,e[7],1126891415,10),l=fnI(l,a,n,o,e[14],2878612391,15),o=fnI(o,l,a,n,e[5],4237533241,21),n=fnI(n,o,l,a,e[12],1700485571,6),a=fnI(a,n,o,l,e[3],2399980690,10),l=fnI(l,a,n,o,e[10],4293915773,15),o=fnI(o,l,a,n,e[1],2240044497,21),n=fnI(n,o,l,a,e[8],1873313359,6),a=fnI(a,n,o,l,e[15],4264355552,10),l=fnI(l,a,n,o,e[6],2734768916,15),o=fnI(o,l,a,n,e[13],1309151649,21),n=fnI(n,o,l,a,e[4],4149444226,6),a=fnI(a,n,o,l,e[11],3174756917,10),l=fnI(l,a,n,o,e[2],718787259,15),o=fnI(o,l,a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+o|0,this._c=this._c+l|0,this._d=this._d+a|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Buffer$z.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function rotl$2(e,t){return e<>>32-t}function fnF(e,t,n,o,l,a,d){return rotl$2(e+(t&n|~t&o)+l+a|0,d)+t|0}function fnG(e,t,n,o,l,a,d){return rotl$2(e+(t&o|n&~o)+l+a|0,d)+t|0}function fnH(e,t,n,o,l,a,d){return rotl$2(e+(t^n^o)+l+a|0,d)+t|0}function fnI(e,t,n,o,l,a,d){return rotl$2(e+(n^(t|~o))+l+a|0,d)+t|0}var md5_js=MD5$3,Buffer$y=buffer$2.Buffer,inherits$p=inherits_browserExports,HashBase$2=hashBase$1,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$5(){HashBase$2.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$p(RIPEMD160$5,HashBase$2);RIPEMD160$5.prototype._update=function(){for(var e=ARRAY16,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var n=this._a|0,o=this._b|0,l=this._c|0,a=this._d|0,d=this._e|0,y=this._a|0,w=this._b|0,_=this._c|0,S=this._d|0,E=this._e|0,C=0;C<80;C+=1){var B,L;C<16?(B=fn1$1(n,o,l,a,d,e[zl[C]],hl[0],sl[C]),L=fn5$1(y,w,_,S,E,e[zr[C]],hr[0],sr[C])):C<32?(B=fn2$1(n,o,l,a,d,e[zl[C]],hl[1],sl[C]),L=fn4$1(y,w,_,S,E,e[zr[C]],hr[1],sr[C])):C<48?(B=fn3$1(n,o,l,a,d,e[zl[C]],hl[2],sl[C]),L=fn3$1(y,w,_,S,E,e[zr[C]],hr[2],sr[C])):C<64?(B=fn4$1(n,o,l,a,d,e[zl[C]],hl[3],sl[C]),L=fn2$1(y,w,_,S,E,e[zr[C]],hr[3],sr[C])):(B=fn5$1(n,o,l,a,d,e[zl[C]],hl[4],sl[C]),L=fn1$1(y,w,_,S,E,e[zr[C]],hr[4],sr[C])),n=d,d=a,a=rotl$1(l,10),l=o,o=B,y=E,E=S,S=rotl$1(_,10),_=w,w=L}var F=this._b+l+S|0;this._b=this._c+a+E|0,this._c=this._d+d+y|0,this._d=this._e+n+w|0,this._e=this._a+o+_|0,this._a=F};RIPEMD160$5.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Buffer$y.alloc?Buffer$y.alloc(20):new Buffer$y(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};function rotl$1(e,t){return e<>>32-t}function fn1$1(e,t,n,o,l,a,d,y){return rotl$1(e+(t^n^o)+a+d|0,y)+l|0}function fn2$1(e,t,n,o,l,a,d,y){return rotl$1(e+(t&n|~t&o)+a+d|0,y)+l|0}function fn3$1(e,t,n,o,l,a,d,y){return rotl$1(e+((t|~n)^o)+a+d|0,y)+l|0}function fn4$1(e,t,n,o,l,a,d,y){return rotl$1(e+(t&o|n&~o)+a+d|0,y)+l|0}function fn5$1(e,t,n,o,l,a,d,y){return rotl$1(e+(t^(n|~o))+a+d|0,y)+l|0}var ripemd160$1=RIPEMD160$5,sha_js={exports:{}},toString$1={}.toString,isarray$1=Array.isArray||function(e){return toString$1.call(e)=="[object Array]"},$TypeError=type,callBound=callBound$8,$typedArrayBuffer=callBound("TypedArray.prototype.buffer",!0),isTypedArray=isTypedArray$1,typedArrayBuffer$1=$typedArrayBuffer||function(t){if(!isTypedArray(t))throw new $TypeError("Not a Typed Array");return t.buffer},Buffer$x=safeBufferExports$1.Buffer,isArray$1=isarray$1,typedArrayBuffer=typedArrayBuffer$1,isView$1=ArrayBuffer.isView||function(t){try{return typedArrayBuffer(t),!0}catch{return!1}},useUint8Array$2=typeof Uint8Array<"u",useArrayBuffer$2=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",useFromArrayBuffer=useArrayBuffer$2&&(Buffer$x.prototype instanceof Uint8Array||Buffer$x.TYPED_ARRAY_SUPPORT),toBuffer$5=function(t,n){if(t instanceof Buffer$x)return t;if(typeof t=="string")return Buffer$x.from(t,n);if(useArrayBuffer$2&&isView$1(t)){if(t.byteLength===0)return Buffer$x.alloc(0);if(useFromArrayBuffer){var o=Buffer$x.from(t.buffer,t.byteOffset,t.byteLength);if(o.byteLength===t.byteLength)return o}var l=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),a=Buffer$x.from(l);if(a.length===t.byteLength)return a}if(useUint8Array$2&&t instanceof Uint8Array)return Buffer$x.from(t);var d=isArray$1(t);if(d)for(var y=0;y255||~~w!==w)throw new RangeError("Array items must be numbers in the range 0-255.")}if(d||Buffer$x.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Buffer$x.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Buffer$w=safeBufferExports$1.Buffer,toBuffer$4=toBuffer$5;function Hash$7(e,t){this._block=Buffer$w.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Hash$7.prototype.update=function(e,t){e=toBuffer$4(e,t||"utf8");for(var n=this._block,o=this._blockSize,l=e.length,a=this._len,d=0;d=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=this._len*8;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var o=(n&4294967295)>>>0,l=(n-o)/4294967296;this._block.writeUInt32BE(l,this._blockSize-8),this._block.writeUInt32BE(o,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a};Hash$7.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$3=Hash$7,inherits$o=inherits_browserExports,Hash$6=hash$3,Buffer$v=safeBufferExports$1.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$6.call(this,64,56)}inherits$o(Sha,Hash$6);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(e){return e<<5|e>>>27}function rotl30$1(e){return e<<30|e>>>2}function ft$1(e,t,n,o){return e===0?t&n|~t&o:e===2?t&n|t&o|n&o:t^n^o}Sha.prototype._update=function(e){for(var t=this._w,n=this._a|0,o=this._b|0,l=this._c|0,a=this._d|0,d=this._e|0,y=0;y<16;++y)t[y]=e.readInt32BE(y*4);for(;y<80;++y)t[y]=t[y-3]^t[y-8]^t[y-14]^t[y-16];for(var w=0;w<80;++w){var _=~~(w/20),S=rotl5$1(n)+ft$1(_,o,l,a)+d+t[w]+K$4[_]|0;d=a,a=l,l=rotl30$1(o),o=n,n=S}this._a=n+this._a|0,this._b=o+this._b|0,this._c=l+this._c|0,this._d=a+this._d|0,this._e=d+this._e|0};Sha.prototype._hash=function(){var e=Buffer$v.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var sha$4=Sha,inherits$n=inherits_browserExports,Hash$5=hash$3,Buffer$u=safeBufferExports$1.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$5.call(this,64,56)}inherits$n(Sha1,Hash$5);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(e){return e<<1|e>>>31}function rotl5(e){return e<<5|e>>>27}function rotl30(e){return e<<30|e>>>2}function ft(e,t,n,o){return e===0?t&n|~t&o:e===2?t&n|t&o|n&o:t^n^o}Sha1.prototype._update=function(e){for(var t=this._w,n=this._a|0,o=this._b|0,l=this._c|0,a=this._d|0,d=this._e|0,y=0;y<16;++y)t[y]=e.readInt32BE(y*4);for(;y<80;++y)t[y]=rotl1(t[y-3]^t[y-8]^t[y-14]^t[y-16]);for(var w=0;w<80;++w){var _=~~(w/20),S=rotl5(n)+ft(_,o,l,a)+d+t[w]+K$3[_]|0;d=a,a=l,l=rotl30(o),o=n,n=S}this._a=n+this._a|0,this._b=o+this._b|0,this._c=l+this._c|0,this._d=a+this._d|0,this._e=d+this._e|0};Sha1.prototype._hash=function(){var e=Buffer$u.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var sha1=Sha1,inherits$m=inherits_browserExports,Hash$4=hash$3,Buffer$t=safeBufferExports$1.Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$4.call(this,64,56)}inherits$m(Sha256$1,Hash$4);Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(e,t,n){return n^e&(t^n)}function maj$1(e,t,n){return e&t|n&(e|t)}function sigma0$1(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function sigma1$1(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function gamma0(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function gamma1(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Sha256$1.prototype._update=function(e){for(var t=this._w,n=this._a|0,o=this._b|0,l=this._c|0,a=this._d|0,d=this._e|0,y=this._f|0,w=this._g|0,_=this._h|0,S=0;S<16;++S)t[S]=e.readInt32BE(S*4);for(;S<64;++S)t[S]=gamma1(t[S-2])+t[S-7]+gamma0(t[S-15])+t[S-16]|0;for(var E=0;E<64;++E){var C=_+sigma1$1(d)+ch(d,y,w)+K$2[E]+t[E]|0,B=sigma0$1(n)+maj$1(n,o,l)|0;_=w,w=y,y=d,d=a+C|0,a=l,l=o,o=n,n=C+B|0}this._a=n+this._a|0,this._b=o+this._b|0,this._c=l+this._c|0,this._d=a+this._d|0,this._e=d+this._e|0,this._f=y+this._f|0,this._g=w+this._g|0,this._h=_+this._h|0};Sha256$1.prototype._hash=function(){var e=Buffer$t.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var sha256$1=Sha256$1,inherits$l=inherits_browserExports,Sha256=sha256$1,Hash$3=hash$3,Buffer$s=safeBufferExports$1.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$3.call(this,64,56)}inherits$l(Sha224,Sha256);Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sha224.prototype._hash=function(){var e=Buffer$s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var sha224$1=Sha224,inherits$k=inherits_browserExports,Hash$2=hash$3,Buffer$r=safeBufferExports$1.Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$2.call(this,128,112)}inherits$k(Sha512,Hash$2);Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(e,t,n){return n^e&(t^n)}function maj(e,t,n){return e&t|n&(e|t)}function sigma0(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function sigma1(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Gamma0(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Gamma0l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Gamma1(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Gamma1l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function getCarry(e,t){return e>>>0>>0?1:0}Sha512.prototype._update=function(e){for(var t=this._w,n=this._ah|0,o=this._bh|0,l=this._ch|0,a=this._dh|0,d=this._eh|0,y=this._fh|0,w=this._gh|0,_=this._hh|0,S=this._al|0,E=this._bl|0,C=this._cl|0,B=this._dl|0,L=this._el|0,F=this._fl|0,q=this._gl|0,H=this._hl|0,D=0;D<32;D+=2)t[D]=e.readInt32BE(D*4),t[D+1]=e.readInt32BE(D*4+4);for(;D<160;D+=2){var j=t[D-30],V=t[D-15*2+1],Q=Gamma0(j,V),ae=Gamma0l(V,j);j=t[D-2*2],V=t[D-2*2+1];var ce=Gamma1(j,V),ue=Gamma1l(V,j),re=t[D-7*2],pe=t[D-7*2+1],T=t[D-16*2],u=t[D-16*2+1],v=ae+pe|0,m=Q+re+getCarry(v,ae)|0;v=v+ue|0,m=m+ce+getCarry(v,ue)|0,v=v+u|0,m=m+T+getCarry(v,u)|0,t[D]=m,t[D+1]=v}for(var b=0;b<160;b+=2){m=t[b],v=t[b+1];var M=maj(n,o,l),A=maj(S,E,C),O=sigma0(n,S),$=sigma0(S,n),c=sigma1(d,L),x=sigma1(L,d),N=K$1[b],z=K$1[b+1],oe=Ch(d,y,w),le=Ch(L,F,q),U=H+x|0,P=_+c+getCarry(U,H)|0;U=U+le|0,P=P+oe+getCarry(U,le)|0,U=U+z|0,P=P+N+getCarry(U,z)|0,U=U+v|0,P=P+m+getCarry(U,v)|0;var Z=$+A|0,ie=O+M+getCarry(Z,$)|0;_=w,H=q,w=y,q=F,y=d,F=L,L=B+U|0,d=a+P+getCarry(L,B)|0,a=l,B=C,l=o,C=E,o=n,E=S,S=U+Z|0,n=P+ie+getCarry(S,U)|0}this._al=this._al+S|0,this._bl=this._bl+E|0,this._cl=this._cl+C|0,this._dl=this._dl+B|0,this._el=this._el+L|0,this._fl=this._fl+F|0,this._gl=this._gl+q|0,this._hl=this._hl+H|0,this._ah=this._ah+n+getCarry(this._al,S)|0,this._bh=this._bh+o+getCarry(this._bl,E)|0,this._ch=this._ch+l+getCarry(this._cl,C)|0,this._dh=this._dh+a+getCarry(this._dl,B)|0,this._eh=this._eh+d+getCarry(this._el,L)|0,this._fh=this._fh+y+getCarry(this._fl,F)|0,this._gh=this._gh+w+getCarry(this._gl,q)|0,this._hh=this._hh+_+getCarry(this._hl,H)|0};Sha512.prototype._hash=function(){var e=Buffer$r.allocUnsafe(64);function t(n,o,l){e.writeInt32BE(n,l),e.writeInt32BE(o,l+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var sha512$1=Sha512,inherits$j=inherits_browserExports,SHA512$2=sha512$1,Hash$1=hash$3,Buffer$q=safeBufferExports$1.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$1.call(this,128,112)}inherits$j(Sha384,SHA512$2);Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sha384.prototype._hash=function(){var e=Buffer$q.allocUnsafe(48);function t(n,o,l){e.writeInt32BE(n,l),e.writeInt32BE(o,l+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var sha384$1=Sha384;(function(e){e.exports=function(n){var o=n.toLowerCase(),l=e.exports[o];if(!l)throw new Error(o+" is not supported (we accept pull requests)");return new l},e.exports.sha=sha$4,e.exports.sha1=sha1,e.exports.sha224=sha224$1,e.exports.sha256=sha256$1,e.exports.sha384=sha384$1,e.exports.sha512=sha512$1})(sha_js);var sha_jsExports=sha_js.exports,Buffer$p=safeBufferExports$1.Buffer,Transform$7=streamBrowserify.Transform,StringDecoder=requireString_decoder().StringDecoder,inherits$i=inherits_browserExports;function CipherBase$1(e){Transform$7.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$i(CipherBase$1,Transform$7);var useUint8Array$1=typeof Uint8Array<"u",useArrayBuffer$1=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Buffer$p.prototype instanceof Uint8Array||Buffer$p.TYPED_ARRAY_SUPPORT);function toBuffer$3(e,t){if(e instanceof Buffer$p)return e;if(typeof e=="string")return Buffer$p.from(e,t);if(useArrayBuffer$1&&ArrayBuffer.isView(e)){if(e.byteLength===0)return Buffer$p.alloc(0);var n=Buffer$p.from(e.buffer,e.byteOffset,e.byteLength);if(n.byteLength===e.byteLength)return n}if(useUint8Array$1&&e instanceof Uint8Array||Buffer$p.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return Buffer$p.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}CipherBase$1.prototype.update=function(e,t,n){var o=toBuffer$3(e,t),l=this._update(o);return this.hashMode?this:(n&&(l=this._toString(l,n)),l)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(e,t,n){var o;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(l){o=l}finally{n(o)}};CipherBase$1.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(n){t=n}e(t)};CipherBase$1.prototype._finalOrDigest=function(e){var t=this.__final()||Buffer$p.alloc(0);return e&&(t=this._toString(t,e,!0)),t};CipherBase$1.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new StringDecoder(t),this._encoding=t),this._encoding!==t)throw new Error("can’t switch encodings");var o=this._decoder.write(e);return n&&(o+=this._decoder.end()),o};var cipherBase=CipherBase$1,inherits$h=inherits_browserExports,MD5$2=md5_js,RIPEMD160$4=ripemd160$1,sha$3=sha_jsExports,Base$5=cipherBase;function Hash(e){Base$5.call(this,"digest"),this._hash=e}inherits$h(Hash,Base$5);Hash.prototype._update=function(e){this._hash.update(e)};Hash.prototype._final=function(){return this._hash.digest()};var browser$9=function(t){return t=t.toLowerCase(),t==="md5"?new MD5$2:t==="rmd160"||t==="ripemd160"?new RIPEMD160$4:new Hash(sha$3(t))},inherits$g=inherits_browserExports,Buffer$o=safeBufferExports$1.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$o.alloc(128),blocksize=64;function Hmac$3(e,t){Base$4.call(this,"digest"),typeof t=="string"&&(t=Buffer$o.from(t)),this._alg=e,this._key=t,t.length>blocksize?t=e(t):t.lengthn){var o=e==="rmd160"?new RIPEMD160$3:sha$2(e);t=o.update(t).digest()}else t.lengthMAX_ALLOC||t!==t)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal.process&&commonjsGlobal.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var pVersionMajor=parseInt(api$2.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,intSize=4,zeroBuffer=new buffer$2.Buffer(intSize);zeroBuffer.fill(0);var charSize=8,hashSize=16;function toArray$2(e){if(e.length%intSize!==0){var t=e.length+(intSize-e.length%intSize);e=buffer$2.Buffer.concat([e,zeroBuffer],t)}for(var n=new Array(e.length>>>2),o=0,l=0;o>5]|=128<>>9<<4)+14]=t;for(var n=1732584193,o=-271733879,l=-1732584194,a=271733878,d=0;d>16)+(t>>16)+(n>>16);return o<<16|n&65535}function bit_rol(e,t){return e<>>32-t}var md5$1=function(t){return makeHash(t,core_md5)},Transform$6=streamBrowserify.Transform,inherits$e=inherits_browserExports;function HashBase$1(e){Transform$6.call(this),this._block=new buffer$2.Buffer(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$e(HashBase$1,Transform$6);HashBase$1.prototype._transform=function(e,t,n){var o=null;try{t!=="buffer"&&(e=new buffer$2.Buffer(e,t)),this.update(e)}catch(l){o=l}n(o)};HashBase$1.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(n){t=n}e(t)};HashBase$1.prototype.update=function(e,t){if(!buffer$2.Buffer.isBuffer(e)&&typeof e!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");buffer$2.Buffer.isBuffer(e)||(e=new buffer$2.Buffer(e,t||"binary"));for(var n=this._block,o=0;this._blockOffset+e.length-o>=this._blockSize;){for(var l=this._blockOffset;l0;++a)this._length[a]+=d,d=this._length[a]/4294967296|0,d>0&&(this._length[a]-=4294967296*d);return this};HashBase$1.prototype._update=function(e){throw new Error("_update is not implemented")};HashBase$1.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return e!==void 0&&(t=t.toString(e)),t};HashBase$1.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$1,inherits$d=inherits_browserExports,HashBase=hashBase;function RIPEMD160$2(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$d(RIPEMD160$2,HashBase);RIPEMD160$2.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var n=this._a,o=this._b,l=this._c,a=this._d,d=this._e;n=fn1(n,o,l,a,d,e[0],0,11),l=rotl(l,10),d=fn1(d,n,o,l,a,e[1],0,14),o=rotl(o,10),a=fn1(a,d,n,o,l,e[2],0,15),n=rotl(n,10),l=fn1(l,a,d,n,o,e[3],0,12),d=rotl(d,10),o=fn1(o,l,a,d,n,e[4],0,5),a=rotl(a,10),n=fn1(n,o,l,a,d,e[5],0,8),l=rotl(l,10),d=fn1(d,n,o,l,a,e[6],0,7),o=rotl(o,10),a=fn1(a,d,n,o,l,e[7],0,9),n=rotl(n,10),l=fn1(l,a,d,n,o,e[8],0,11),d=rotl(d,10),o=fn1(o,l,a,d,n,e[9],0,13),a=rotl(a,10),n=fn1(n,o,l,a,d,e[10],0,14),l=rotl(l,10),d=fn1(d,n,o,l,a,e[11],0,15),o=rotl(o,10),a=fn1(a,d,n,o,l,e[12],0,6),n=rotl(n,10),l=fn1(l,a,d,n,o,e[13],0,7),d=rotl(d,10),o=fn1(o,l,a,d,n,e[14],0,9),a=rotl(a,10),n=fn1(n,o,l,a,d,e[15],0,8),l=rotl(l,10),d=fn2(d,n,o,l,a,e[7],1518500249,7),o=rotl(o,10),a=fn2(a,d,n,o,l,e[4],1518500249,6),n=rotl(n,10),l=fn2(l,a,d,n,o,e[13],1518500249,8),d=rotl(d,10),o=fn2(o,l,a,d,n,e[1],1518500249,13),a=rotl(a,10),n=fn2(n,o,l,a,d,e[10],1518500249,11),l=rotl(l,10),d=fn2(d,n,o,l,a,e[6],1518500249,9),o=rotl(o,10),a=fn2(a,d,n,o,l,e[15],1518500249,7),n=rotl(n,10),l=fn2(l,a,d,n,o,e[3],1518500249,15),d=rotl(d,10),o=fn2(o,l,a,d,n,e[12],1518500249,7),a=rotl(a,10),n=fn2(n,o,l,a,d,e[0],1518500249,12),l=rotl(l,10),d=fn2(d,n,o,l,a,e[9],1518500249,15),o=rotl(o,10),a=fn2(a,d,n,o,l,e[5],1518500249,9),n=rotl(n,10),l=fn2(l,a,d,n,o,e[2],1518500249,11),d=rotl(d,10),o=fn2(o,l,a,d,n,e[14],1518500249,7),a=rotl(a,10),n=fn2(n,o,l,a,d,e[11],1518500249,13),l=rotl(l,10),d=fn2(d,n,o,l,a,e[8],1518500249,12),o=rotl(o,10),a=fn3(a,d,n,o,l,e[3],1859775393,11),n=rotl(n,10),l=fn3(l,a,d,n,o,e[10],1859775393,13),d=rotl(d,10),o=fn3(o,l,a,d,n,e[14],1859775393,6),a=rotl(a,10),n=fn3(n,o,l,a,d,e[4],1859775393,7),l=rotl(l,10),d=fn3(d,n,o,l,a,e[9],1859775393,14),o=rotl(o,10),a=fn3(a,d,n,o,l,e[15],1859775393,9),n=rotl(n,10),l=fn3(l,a,d,n,o,e[8],1859775393,13),d=rotl(d,10),o=fn3(o,l,a,d,n,e[1],1859775393,15),a=rotl(a,10),n=fn3(n,o,l,a,d,e[2],1859775393,14),l=rotl(l,10),d=fn3(d,n,o,l,a,e[7],1859775393,8),o=rotl(o,10),a=fn3(a,d,n,o,l,e[0],1859775393,13),n=rotl(n,10),l=fn3(l,a,d,n,o,e[6],1859775393,6),d=rotl(d,10),o=fn3(o,l,a,d,n,e[13],1859775393,5),a=rotl(a,10),n=fn3(n,o,l,a,d,e[11],1859775393,12),l=rotl(l,10),d=fn3(d,n,o,l,a,e[5],1859775393,7),o=rotl(o,10),a=fn3(a,d,n,o,l,e[12],1859775393,5),n=rotl(n,10),l=fn4(l,a,d,n,o,e[1],2400959708,11),d=rotl(d,10),o=fn4(o,l,a,d,n,e[9],2400959708,12),a=rotl(a,10),n=fn4(n,o,l,a,d,e[11],2400959708,14),l=rotl(l,10),d=fn4(d,n,o,l,a,e[10],2400959708,15),o=rotl(o,10),a=fn4(a,d,n,o,l,e[0],2400959708,14),n=rotl(n,10),l=fn4(l,a,d,n,o,e[8],2400959708,15),d=rotl(d,10),o=fn4(o,l,a,d,n,e[12],2400959708,9),a=rotl(a,10),n=fn4(n,o,l,a,d,e[4],2400959708,8),l=rotl(l,10),d=fn4(d,n,o,l,a,e[13],2400959708,9),o=rotl(o,10),a=fn4(a,d,n,o,l,e[3],2400959708,14),n=rotl(n,10),l=fn4(l,a,d,n,o,e[7],2400959708,5),d=rotl(d,10),o=fn4(o,l,a,d,n,e[15],2400959708,6),a=rotl(a,10),n=fn4(n,o,l,a,d,e[14],2400959708,8),l=rotl(l,10),d=fn4(d,n,o,l,a,e[5],2400959708,6),o=rotl(o,10),a=fn4(a,d,n,o,l,e[6],2400959708,5),n=rotl(n,10),l=fn4(l,a,d,n,o,e[2],2400959708,12),d=rotl(d,10),o=fn5(o,l,a,d,n,e[4],2840853838,9),a=rotl(a,10),n=fn5(n,o,l,a,d,e[0],2840853838,15),l=rotl(l,10),d=fn5(d,n,o,l,a,e[5],2840853838,5),o=rotl(o,10),a=fn5(a,d,n,o,l,e[9],2840853838,11),n=rotl(n,10),l=fn5(l,a,d,n,o,e[7],2840853838,6),d=rotl(d,10),o=fn5(o,l,a,d,n,e[12],2840853838,8),a=rotl(a,10),n=fn5(n,o,l,a,d,e[2],2840853838,13),l=rotl(l,10),d=fn5(d,n,o,l,a,e[10],2840853838,12),o=rotl(o,10),a=fn5(a,d,n,o,l,e[14],2840853838,5),n=rotl(n,10),l=fn5(l,a,d,n,o,e[1],2840853838,12),d=rotl(d,10),o=fn5(o,l,a,d,n,e[3],2840853838,13),a=rotl(a,10),n=fn5(n,o,l,a,d,e[8],2840853838,14),l=rotl(l,10),d=fn5(d,n,o,l,a,e[11],2840853838,11),o=rotl(o,10),a=fn5(a,d,n,o,l,e[6],2840853838,8),n=rotl(n,10),l=fn5(l,a,d,n,o,e[15],2840853838,5),d=rotl(d,10),o=fn5(o,l,a,d,n,e[13],2840853838,6),a=rotl(a,10);var y=this._a,w=this._b,_=this._c,S=this._d,E=this._e;y=fn5(y,w,_,S,E,e[5],1352829926,8),_=rotl(_,10),E=fn5(E,y,w,_,S,e[14],1352829926,9),w=rotl(w,10),S=fn5(S,E,y,w,_,e[7],1352829926,9),y=rotl(y,10),_=fn5(_,S,E,y,w,e[0],1352829926,11),E=rotl(E,10),w=fn5(w,_,S,E,y,e[9],1352829926,13),S=rotl(S,10),y=fn5(y,w,_,S,E,e[2],1352829926,15),_=rotl(_,10),E=fn5(E,y,w,_,S,e[11],1352829926,15),w=rotl(w,10),S=fn5(S,E,y,w,_,e[4],1352829926,5),y=rotl(y,10),_=fn5(_,S,E,y,w,e[13],1352829926,7),E=rotl(E,10),w=fn5(w,_,S,E,y,e[6],1352829926,7),S=rotl(S,10),y=fn5(y,w,_,S,E,e[15],1352829926,8),_=rotl(_,10),E=fn5(E,y,w,_,S,e[8],1352829926,11),w=rotl(w,10),S=fn5(S,E,y,w,_,e[1],1352829926,14),y=rotl(y,10),_=fn5(_,S,E,y,w,e[10],1352829926,14),E=rotl(E,10),w=fn5(w,_,S,E,y,e[3],1352829926,12),S=rotl(S,10),y=fn5(y,w,_,S,E,e[12],1352829926,6),_=rotl(_,10),E=fn4(E,y,w,_,S,e[6],1548603684,9),w=rotl(w,10),S=fn4(S,E,y,w,_,e[11],1548603684,13),y=rotl(y,10),_=fn4(_,S,E,y,w,e[3],1548603684,15),E=rotl(E,10),w=fn4(w,_,S,E,y,e[7],1548603684,7),S=rotl(S,10),y=fn4(y,w,_,S,E,e[0],1548603684,12),_=rotl(_,10),E=fn4(E,y,w,_,S,e[13],1548603684,8),w=rotl(w,10),S=fn4(S,E,y,w,_,e[5],1548603684,9),y=rotl(y,10),_=fn4(_,S,E,y,w,e[10],1548603684,11),E=rotl(E,10),w=fn4(w,_,S,E,y,e[14],1548603684,7),S=rotl(S,10),y=fn4(y,w,_,S,E,e[15],1548603684,7),_=rotl(_,10),E=fn4(E,y,w,_,S,e[8],1548603684,12),w=rotl(w,10),S=fn4(S,E,y,w,_,e[12],1548603684,7),y=rotl(y,10),_=fn4(_,S,E,y,w,e[4],1548603684,6),E=rotl(E,10),w=fn4(w,_,S,E,y,e[9],1548603684,15),S=rotl(S,10),y=fn4(y,w,_,S,E,e[1],1548603684,13),_=rotl(_,10),E=fn4(E,y,w,_,S,e[2],1548603684,11),w=rotl(w,10),S=fn3(S,E,y,w,_,e[15],1836072691,9),y=rotl(y,10),_=fn3(_,S,E,y,w,e[5],1836072691,7),E=rotl(E,10),w=fn3(w,_,S,E,y,e[1],1836072691,15),S=rotl(S,10),y=fn3(y,w,_,S,E,e[3],1836072691,11),_=rotl(_,10),E=fn3(E,y,w,_,S,e[7],1836072691,8),w=rotl(w,10),S=fn3(S,E,y,w,_,e[14],1836072691,6),y=rotl(y,10),_=fn3(_,S,E,y,w,e[6],1836072691,6),E=rotl(E,10),w=fn3(w,_,S,E,y,e[9],1836072691,14),S=rotl(S,10),y=fn3(y,w,_,S,E,e[11],1836072691,12),_=rotl(_,10),E=fn3(E,y,w,_,S,e[8],1836072691,13),w=rotl(w,10),S=fn3(S,E,y,w,_,e[12],1836072691,5),y=rotl(y,10),_=fn3(_,S,E,y,w,e[2],1836072691,14),E=rotl(E,10),w=fn3(w,_,S,E,y,e[10],1836072691,13),S=rotl(S,10),y=fn3(y,w,_,S,E,e[0],1836072691,13),_=rotl(_,10),E=fn3(E,y,w,_,S,e[4],1836072691,7),w=rotl(w,10),S=fn3(S,E,y,w,_,e[13],1836072691,5),y=rotl(y,10),_=fn2(_,S,E,y,w,e[8],2053994217,15),E=rotl(E,10),w=fn2(w,_,S,E,y,e[6],2053994217,5),S=rotl(S,10),y=fn2(y,w,_,S,E,e[4],2053994217,8),_=rotl(_,10),E=fn2(E,y,w,_,S,e[1],2053994217,11),w=rotl(w,10),S=fn2(S,E,y,w,_,e[3],2053994217,14),y=rotl(y,10),_=fn2(_,S,E,y,w,e[11],2053994217,14),E=rotl(E,10),w=fn2(w,_,S,E,y,e[15],2053994217,6),S=rotl(S,10),y=fn2(y,w,_,S,E,e[0],2053994217,14),_=rotl(_,10),E=fn2(E,y,w,_,S,e[5],2053994217,6),w=rotl(w,10),S=fn2(S,E,y,w,_,e[12],2053994217,9),y=rotl(y,10),_=fn2(_,S,E,y,w,e[2],2053994217,12),E=rotl(E,10),w=fn2(w,_,S,E,y,e[13],2053994217,9),S=rotl(S,10),y=fn2(y,w,_,S,E,e[9],2053994217,12),_=rotl(_,10),E=fn2(E,y,w,_,S,e[7],2053994217,5),w=rotl(w,10),S=fn2(S,E,y,w,_,e[10],2053994217,15),y=rotl(y,10),_=fn2(_,S,E,y,w,e[14],2053994217,8),E=rotl(E,10),w=fn1(w,_,S,E,y,e[12],0,8),S=rotl(S,10),y=fn1(y,w,_,S,E,e[15],0,5),_=rotl(_,10),E=fn1(E,y,w,_,S,e[10],0,12),w=rotl(w,10),S=fn1(S,E,y,w,_,e[4],0,9),y=rotl(y,10),_=fn1(_,S,E,y,w,e[1],0,12),E=rotl(E,10),w=fn1(w,_,S,E,y,e[5],0,5),S=rotl(S,10),y=fn1(y,w,_,S,E,e[8],0,14),_=rotl(_,10),E=fn1(E,y,w,_,S,e[7],0,6),w=rotl(w,10),S=fn1(S,E,y,w,_,e[6],0,8),y=rotl(y,10),_=fn1(_,S,E,y,w,e[2],0,13),E=rotl(E,10),w=fn1(w,_,S,E,y,e[13],0,6),S=rotl(S,10),y=fn1(y,w,_,S,E,e[14],0,5),_=rotl(_,10),E=fn1(E,y,w,_,S,e[0],0,15),w=rotl(w,10),S=fn1(S,E,y,w,_,e[3],0,13),y=rotl(y,10),_=fn1(_,S,E,y,w,e[9],0,11),E=rotl(E,10),w=fn1(w,_,S,E,y,e[11],0,11),S=rotl(S,10);var C=this._b+l+S|0;this._b=this._c+a+E|0,this._c=this._d+d+y|0,this._d=this._e+n+w|0,this._e=this._a+o+_|0,this._a=C};RIPEMD160$2.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new buffer$2.Buffer(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};function rotl(e,t){return e<>>32-t}function fn1(e,t,n,o,l,a,d,y){return rotl(e+(t^n^o)+a+d|0,y)+l|0}function fn2(e,t,n,o,l,a,d,y){return rotl(e+(t&n|~t&o)+a+d|0,y)+l|0}function fn3(e,t,n,o,l,a,d,y){return rotl(e+((t|~n)^o)+a+d|0,y)+l|0}function fn4(e,t,n,o,l,a,d,y){return rotl(e+(t&o|n&~o)+a+d|0,y)+l|0}function fn5(e,t,n,o,l,a,d,y){return rotl(e+(t^(n|~o))+a+d|0,y)+l|0}var ripemd160=RIPEMD160$2,Buffer$m=safeBufferExports$1.Buffer,toBuffer$2=toBuffer$5,useUint8Array=typeof Uint8Array<"u",useArrayBuffer=useUint8Array&&typeof ArrayBuffer<"u",isView=useArrayBuffer&&ArrayBuffer.isView,toBuffer_1=function(e,t,n){if(typeof e=="string"||Buffer$m.isBuffer(e)||useUint8Array&&e instanceof Uint8Array||isView&&isView(e))return toBuffer$2(e,t);throw new TypeError(n+" must be a string, a Buffer, a Uint8Array, or a DataView")},md5=md5$1,RIPEMD160$1=ripemd160,sha$1=sha_jsExports,Buffer$l=safeBufferExports$1.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$1=toBuffer_1,ZEROS=Buffer$l.alloc(128),sizes={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},mapping={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function rmd160Func(e){return new RIPEMD160$1().update(e).digest()}function getDigest(e){function t(n){return sha$1(e).update(n).digest()}return e==="rmd160"||e==="ripemd160"?rmd160Func:e==="md5"?md5:t}function Hmac$1(e,t,n){var o=getDigest(e),l=e==="sha512"||e==="sha384"?128:64;t.length>l?t=o(t):t.length>>0};utils$n.writeUInt32BE=function(t,n,o){t[0+o]=n>>>24,t[1+o]=n>>>16&255,t[2+o]=n>>>8&255,t[3+o]=n&255};utils$n.ip=function(t,n,o,l){for(var a=0,d=0,y=6;y>=0;y-=2){for(var w=0;w<=24;w+=8)a<<=1,a|=n>>>w+y&1;for(var w=0;w<=24;w+=8)a<<=1,a|=t>>>w+y&1}for(var y=6;y>=0;y-=2){for(var w=1;w<=25;w+=8)d<<=1,d|=n>>>w+y&1;for(var w=1;w<=25;w+=8)d<<=1,d|=t>>>w+y&1}o[l+0]=a>>>0,o[l+1]=d>>>0};utils$n.rip=function(t,n,o,l){for(var a=0,d=0,y=0;y<4;y++)for(var w=24;w>=0;w-=8)a<<=1,a|=n>>>w+y&1,a<<=1,a|=t>>>w+y&1;for(var y=4;y<8;y++)for(var w=24;w>=0;w-=8)d<<=1,d|=n>>>w+y&1,d<<=1,d|=t>>>w+y&1;o[l+0]=a>>>0,o[l+1]=d>>>0};utils$n.pc1=function(t,n,o,l){for(var a=0,d=0,y=7;y>=5;y--){for(var w=0;w<=24;w+=8)a<<=1,a|=n>>w+y&1;for(var w=0;w<=24;w+=8)a<<=1,a|=t>>w+y&1}for(var w=0;w<=24;w+=8)a<<=1,a|=n>>w+y&1;for(var y=1;y<=3;y++){for(var w=0;w<=24;w+=8)d<<=1,d|=n>>w+y&1;for(var w=0;w<=24;w+=8)d<<=1,d|=t>>w+y&1}for(var w=0;w<=24;w+=8)d<<=1,d|=t>>w+y&1;o[l+0]=a>>>0,o[l+1]=d>>>0};utils$n.r28shl=function(t,n){return t<>>28-n};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$n.pc2=function(t,n,o,l){for(var a=0,d=0,y=pc2table.length>>>1,w=0;w>>pc2table[w]&1;for(var w=y;w>>pc2table[w]&1;o[l+0]=a>>>0,o[l+1]=d>>>0};utils$n.expand=function(t,n,o){var l=0,a=0;l=(t&1)<<5|t>>>27;for(var d=23;d>=15;d-=4)l<<=6,l|=t>>>d&63;for(var d=11;d>=3;d-=4)a|=t>>>d&63,a<<=6;a|=(t&31)<<1|t>>>31,n[o+0]=l>>>0,n[o+1]=a>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$n.substitute=function(t,n){for(var o=0,l=0;l<4;l++){var a=t>>>18-l*6&63,d=sTable[l*64+a];o<<=4,o|=d}for(var l=0;l<4;l++){var a=n>>>18-l*6&63,d=sTable[4*64+l*64+a];o<<=4,o|=d}return o>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$n.permute=function(t){for(var n=0,o=0;o>>permuteTable[o]&1;return n>>>0};utils$n.padSplit=function(t,n,o){for(var l=t.toString(2);l.length0;l--)n+=this._buffer(t,n),o+=this._flushBuffer(a,o);return n+=this._buffer(t,n),a};Cipher$3.prototype.final=function(t){var n;t&&(n=this.update(t));var o;return this.type==="encrypt"?o=this._finalEncrypt():o=this._finalDecrypt(),n?n.concat(o):o};Cipher$3.prototype._pad=function(t,n){if(n===0)return!1;for(;n>>1];o=utils$m.r28shl(o,d),l=utils$m.r28shl(l,d),utils$m.pc2(o,l,t.keys,a)}};DES$3.prototype._update=function(t,n,o,l){var a=this._desState,d=utils$m.readUInt32BE(t,n),y=utils$m.readUInt32BE(t,n+4);utils$m.ip(d,y,a.tmp,0),d=a.tmp[0],y=a.tmp[1],this.type==="encrypt"?this._encrypt(a,d,y,a.tmp,0):this._decrypt(a,d,y,a.tmp,0),d=a.tmp[0],y=a.tmp[1],utils$m.writeUInt32BE(o,d,l),utils$m.writeUInt32BE(o,y,l+4)};DES$3.prototype._pad=function(t,n){if(this.padding===!1)return!1;for(var o=t.length-n,l=n;l>>0,d=B}utils$m.rip(y,d,l,a)};DES$3.prototype._decrypt=function(t,n,o,l,a){for(var d=o,y=n,w=t.keys.length-2;w>=0;w-=2){var _=t.keys[w],S=t.keys[w+1];utils$m.expand(d,t.tmp,0),_^=t.tmp[0],S^=t.tmp[1];var E=utils$m.substitute(_,S),C=utils$m.permute(E),B=d;d=(y^C)>>>0,y=B}utils$m.rip(d,y,l,a)};var cbc$1={},assert$f=minimalisticAssert,inherits$b=inherits_browserExports,proto={};function CBCState(e){assert$f.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t>l%8,e._prev=shiftIn(e._prev,n?y:w);return d}function shiftIn(e,t){var n=e.length,o=-1,l=Buffer$g.allocUnsafe(e.length);for(e=Buffer$g.concat([e,Buffer$g.from([t])]);++o>7;return l}cfb1.encrypt=function(e,t,n){for(var o=t.length,l=Buffer$g.allocUnsafe(o),a=-1;++a>>24]^d[S>>>16&255]^y[E>>>8&255]^w[C&255]^t[H++],L=a[S>>>24]^d[E>>>16&255]^y[C>>>8&255]^w[_&255]^t[H++],F=a[E>>>24]^d[C>>>16&255]^y[_>>>8&255]^w[S&255]^t[H++],q=a[C>>>24]^d[_>>>16&255]^y[S>>>8&255]^w[E&255]^t[H++],_=B,S=L,E=F,C=q;return B=(o[_>>>24]<<24|o[S>>>16&255]<<16|o[E>>>8&255]<<8|o[C&255])^t[H++],L=(o[S>>>24]<<24|o[E>>>16&255]<<16|o[C>>>8&255]<<8|o[_&255])^t[H++],F=(o[E>>>24]<<24|o[C>>>16&255]<<16|o[_>>>8&255]<<8|o[S&255])^t[H++],q=(o[C>>>24]<<24|o[_>>>16&255]<<16|o[S>>>8&255]<<8|o[E&255])^t[H++],B=B>>>0,L=L>>>0,F=F>>>0,q=q>>>0,[B,L,F,q]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var e=new Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var n=[],o=[],l=[[],[],[],[]],a=[[],[],[],[]],d=0,y=0,w=0;w<256;++w){var _=y^y<<1^y<<2^y<<3^y<<4;_=_>>>8^_&255^99,n[d]=_,o[_]=d;var S=e[d],E=e[S],C=e[E],B=e[_]*257^_*16843008;l[0][d]=B<<24|B>>>8,l[1][d]=B<<16|B>>>16,l[2][d]=B<<8|B>>>24,l[3][d]=B,B=C*16843009^E*65537^S*257^d*16843008,a[0][_]=B<<24|B>>>8,a[1][_]=B<<16|B>>>16,a[2][_]=B<<8|B>>>24,a[3][_]=B,d===0?d=y=1:(d=S^e[e[e[C^S]]],y^=e[e[y]])}return{SBOX:n,INV_SBOX:o,SUB_MIX:l,INV_SUB_MIX:a}}();function AES(e){this._key=asUInt32Array(e),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,o=(n+1)*4,l=[],a=0;a>>24,d=G.SBOX[d>>>24]<<24|G.SBOX[d>>>16&255]<<16|G.SBOX[d>>>8&255]<<8|G.SBOX[d&255],d^=RCON[a/t|0]<<24):t>6&&a%t===4&&(d=G.SBOX[d>>>24]<<24|G.SBOX[d>>>16&255]<<16|G.SBOX[d>>>8&255]<<8|G.SBOX[d&255]),l[a]=l[a-t]^d}for(var y=[],w=0;w>>24]]^G.INV_SUB_MIX[1][G.SBOX[S>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[S>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[S&255]]}this._nRounds=n,this._keySchedule=l,this._invKeySchedule=y};AES.prototype.encryptBlockRaw=function(e){return e=asUInt32Array(e),cryptBlock(e,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=Buffer$e.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n};AES.prototype.decryptBlock=function(e){e=asUInt32Array(e);var t=e[1];e[1]=e[3],e[3]=t;var n=cryptBlock(e,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),o=Buffer$e.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$d=safeBufferExports$1.Buffer,ZEROES=Buffer$d.alloc(16,0);function toArray$1(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function fromArray(e){var t=Buffer$d.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function GHASH$1(e){this.h=e,this.state=Buffer$d.alloc(16,0),this.cache=Buffer$d.allocUnsafe(0)}GHASH$1.prototype.ghash=function(e){for(var t=-1;++t0;n--)e[n]=e[n]>>>1|(e[n-1]&1)<<31;e[0]=e[0]>>>1,l&&(e[0]=e[0]^225<<24)}this.state=fromArray(t)};GHASH$1.prototype.update=function(e){this.cache=Buffer$d.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)};GHASH$1.prototype.final=function(e,t){return this.cache.length&&this.ghash(Buffer$d.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,e,0,t])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$c=safeBufferExports$1.Buffer,Transform$5=cipherBase,inherits$8=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(e,t){var n=0;e.length!==t.length&&n++;for(var o=Math.min(e.length,t.length),l=0;l0||o>0;){var w=new MD5;w.update(y),w.update(e),t&&w.update(t),y=w.digest();var _=0;if(l>0){var S=a.length-l;_=Math.min(l,y.length),y.copy(a,S,0,_),l-=_}if(_0){var E=d.length-o,C=Math.min(o,y.length-_);y.copy(d,E,_,_+C),o-=C}}return y.fill(0),{key:a,iv:d}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$9=safeBufferExports$1.Buffer,StreamCipher$1=streamCipher,Transform$3=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$6=inherits_browserExports;function Cipher(e,t,n){Transform$3.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(t),this._prev=Buffer$9.from(n),this._mode=e,this._autopadding=!0}inherits$6(Cipher,Transform$3);Cipher.prototype._update=function(e){this._cache.add(e);for(var t,n,o=[];t=this._cache.get();)n=this._mode.encrypt(this,t),o.push(n);return Buffer$9.concat(o)};var PADDING=Buffer$9.alloc(16,16);Cipher.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cipher.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function Splitter$1(){this.cache=Buffer$9.allocUnsafe(0)}Splitter$1.prototype.add=function(e){this.cache=Buffer$9.concat([this.cache,e])};Splitter$1.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null};Splitter$1.prototype.flush=function(){for(var e=16-this.cache.length,t=Buffer$9.allocUnsafe(e),n=-1;++n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null};Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var n=-1;++n0?u:v},a.min=function(u,v){return u.cmp(v)<0?u:v},a.prototype._init=function(u,v,m){if(typeof u=="number")return this._initNumber(u,v,m);if(typeof u=="object")return this._initArray(u,v,m);v==="hex"&&(v=16),o(v===(v|0)&&v>=2&&v<=36),u=u.toString().replace(/\s+/g,"");var b=0;u[0]==="-"&&(b++,this.negative=1),b=0;b-=3)A=u[b]|u[b-1]<<8|u[b-2]<<16,this.words[M]|=A<>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);else if(m==="le")for(b=0,M=0;b>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);return this.strip()};function y(T,u){var v=T.charCodeAt(u);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function w(T,u,v){var m=y(T,v);return v-1>=u&&(m|=y(T,v-1)<<4),m}a.prototype._parseHex=function(u,v,m){this.length=Math.ceil((u.length-v)/6),this.words=new Array(this.length);for(var b=0;b=v;b-=2)O=w(u,v,b)<=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8;else{var $=u.length-v;for(b=$%2===0?v+1:v;b=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8}this.strip()};function _(T,u,v,m){for(var b=0,M=Math.min(T.length,v),A=u;A=49?b+=O-49+10:O>=17?b+=O-17+10:b+=O}return b}a.prototype._parseBase=function(u,v,m){this.words=[0],this.length=1;for(var b=0,M=1;M<=67108863;M*=v)b++;b--,M=M/v|0;for(var A=u.length-m,O=A%b,$=Math.min(A,A-O)+m,c=0,x=m;x<$;x+=b)c=_(u,x,x+b,v),this.imuln(M),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(O!==0){var N=1;for(c=_(u,x,u.length,v),x=0;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(u,v){u=u||10,v=v|0||1;var m;if(u===16||u==="hex"){m="";for(var b=0,M=0,A=0;A>>24-b&16777215,b+=2,b>=26&&(b-=26,A--),M!==0||A!==this.length-1?m=S[6-$.length]+$+m:m=$+m}for(M!==0&&(m=M.toString(16)+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var c=E[u],x=C[u];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var z=N.modn(x).toString(u);N=N.idivn(x),N.isZero()?m=z+m:m=S[c-z.length]+z+m}for(this.isZero()&&(m="0"+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(u,v){return o(typeof d<"u"),this.toArrayLike(d,u,v)},a.prototype.toArray=function(u,v){return this.toArrayLike(Array,u,v)},a.prototype.toArrayLike=function(u,v,m){var b=this.byteLength(),M=m||Math.max(1,b);o(b<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0"),this.strip();var A=v==="le",O=new u(M),$,c,x=this.clone();if(A){for(c=0;!x.isZero();c++)$=x.andln(255),x.iushrn(8),O[c]=$;for(;c=4096&&(m+=13,v>>>=13),v>=64&&(m+=7,v>>>=7),v>=8&&(m+=4,v>>>=4),v>=2&&(m+=2,v>>>=2),m+v},a.prototype._zeroBits=function(u){if(u===0)return 26;var v=u,m=0;return v&8191||(m+=13,v>>>=13),v&127||(m+=7,v>>>=7),v&15||(m+=4,v>>>=4),v&3||(m+=2,v>>>=2),v&1||m++,m},a.prototype.bitLength=function(){var u=this.words[this.length-1],v=this._countBits(u);return(this.length-1)*26+v};function B(T){for(var u=new Array(T.bitLength()),v=0;v>>b}return u}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,v=0;vu.length?this.clone().ior(u):u.clone().ior(this)},a.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},a.prototype.iuand=function(u){var v;this.length>u.length?v=u:v=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},a.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},a.prototype.iuxor=function(u){var v,m;this.length>u.length?(v=this,m=u):(v=u,m=this);for(var b=0;bu.length?this.clone().ixor(u):u.clone().ixor(this)},a.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},a.prototype.inotn=function(u){o(typeof u=="number"&&u>=0);var v=Math.ceil(u/26)|0,m=u%26;this._expand(v),m>0&&v--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this.strip()},a.prototype.notn=function(u){return this.clone().inotn(u)},a.prototype.setn=function(u,v){o(typeof u=="number"&&u>=0);var m=u/26|0,b=u%26;return this._expand(m+1),v?this.words[m]=this.words[m]|1<u.length?(m=this,b=u):(m=u,b=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Au.length?this.clone().iadd(u):u.clone().iadd(this)},a.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var v=this.iadd(u);return u.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,M;m>0?(b=this,M=u):(b=u,M=this);for(var A=0,O=0;O>26,this.words[O]=v&67108863;for(;A!==0&&O>26,this.words[O]=v&67108863;if(A===0&&O>>26,N=$&67108863,z=Math.min(c,u.length-1),oe=Math.max(0,c-T.length+1);oe<=z;oe++){var le=c-oe|0;b=T.words[le]|0,M=u.words[oe]|0,A=b*M+N,x+=A/67108864|0,N=A&67108863}v.words[c]=N|0,$=x|0}return $!==0?v.words[c]=$|0:v.length--,v.strip()}var F=function(u,v,m){var b=u.words,M=v.words,A=m.words,O=0,$,c,x,N=b[0]|0,z=N&8191,oe=N>>>13,le=b[1]|0,U=le&8191,P=le>>>13,Z=b[2]|0,ie=Z&8191,se=Z>>>13,k=b[3]|0,I=k&8191,te=k>>>13,ee=b[4]|0,fe=ee&8191,J=ee>>>13,Y=b[5]|0,X=Y&8191,ne=Y>>>13,me=b[6]|0,he=me&8191,ge=me>>>13,Re=b[7]|0,_e=Re&8191,we=Re>>>13,qe=b[8]|0,Se=qe&8191,Ae=qe>>>13,Me=b[9]|0,ve=Me&8191,be=Me>>>13,Pe=M[0]|0,$e=Pe&8191,Te=Pe>>>13,Je=M[1]|0,Oe=Je&8191,Ie=Je>>>13,Ye=M[2]|0,xe=Ye&8191,Ce=Ye>>>13,Qe=M[3]|0,Be=Qe&8191,je=Qe>>>13,nt=M[4]|0,Ne=nt&8191,Ve=nt>>>13,ot=M[5]|0,He=ot&8191,We=ot>>>13,st=M[6]|0,ke=st&8191,Ge=st>>>13,lt=M[7]|0,Le=lt&8191,Ke=lt>>>13,ut=M[8]|0,De=ut&8191,Ze=ut>>>13,at=M[9]|0,Fe=at&8191,ze=at>>>13;m.negative=u.negative^v.negative,m.length=19,$=Math.imul(z,$e),c=Math.imul(z,Te),c=c+Math.imul(oe,$e)|0,x=Math.imul(oe,Te);var it=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(it>>>26)|0,it&=67108863,$=Math.imul(U,$e),c=Math.imul(U,Te),c=c+Math.imul(P,$e)|0,x=Math.imul(P,Te),$=$+Math.imul(z,Oe)|0,c=c+Math.imul(z,Ie)|0,c=c+Math.imul(oe,Oe)|0,x=x+Math.imul(oe,Ie)|0;var rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,$=Math.imul(ie,$e),c=Math.imul(ie,Te),c=c+Math.imul(se,$e)|0,x=Math.imul(se,Te),$=$+Math.imul(U,Oe)|0,c=c+Math.imul(U,Ie)|0,c=c+Math.imul(P,Oe)|0,x=x+Math.imul(P,Ie)|0,$=$+Math.imul(z,xe)|0,c=c+Math.imul(z,Ce)|0,c=c+Math.imul(oe,xe)|0,x=x+Math.imul(oe,Ce)|0;var mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,$=Math.imul(I,$e),c=Math.imul(I,Te),c=c+Math.imul(te,$e)|0,x=Math.imul(te,Te),$=$+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Ie)|0,c=c+Math.imul(se,Oe)|0,x=x+Math.imul(se,Ie)|0,$=$+Math.imul(U,xe)|0,c=c+Math.imul(U,Ce)|0,c=c+Math.imul(P,xe)|0,x=x+Math.imul(P,Ce)|0,$=$+Math.imul(z,Be)|0,c=c+Math.imul(z,je)|0,c=c+Math.imul(oe,Be)|0,x=x+Math.imul(oe,je)|0;var bt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,$=Math.imul(fe,$e),c=Math.imul(fe,Te),c=c+Math.imul(J,$e)|0,x=Math.imul(J,Te),$=$+Math.imul(I,Oe)|0,c=c+Math.imul(I,Ie)|0,c=c+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ie)|0,$=$+Math.imul(ie,xe)|0,c=c+Math.imul(ie,Ce)|0,c=c+Math.imul(se,xe)|0,x=x+Math.imul(se,Ce)|0,$=$+Math.imul(U,Be)|0,c=c+Math.imul(U,je)|0,c=c+Math.imul(P,Be)|0,x=x+Math.imul(P,je)|0,$=$+Math.imul(z,Ne)|0,c=c+Math.imul(z,Ve)|0,c=c+Math.imul(oe,Ne)|0,x=x+Math.imul(oe,Ve)|0;var wt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,$=Math.imul(X,$e),c=Math.imul(X,Te),c=c+Math.imul(ne,$e)|0,x=Math.imul(ne,Te),$=$+Math.imul(fe,Oe)|0,c=c+Math.imul(fe,Ie)|0,c=c+Math.imul(J,Oe)|0,x=x+Math.imul(J,Ie)|0,$=$+Math.imul(I,xe)|0,c=c+Math.imul(I,Ce)|0,c=c+Math.imul(te,xe)|0,x=x+Math.imul(te,Ce)|0,$=$+Math.imul(ie,Be)|0,c=c+Math.imul(ie,je)|0,c=c+Math.imul(se,Be)|0,x=x+Math.imul(se,je)|0,$=$+Math.imul(U,Ne)|0,c=c+Math.imul(U,Ve)|0,c=c+Math.imul(P,Ne)|0,x=x+Math.imul(P,Ve)|0,$=$+Math.imul(z,He)|0,c=c+Math.imul(z,We)|0,c=c+Math.imul(oe,He)|0,x=x+Math.imul(oe,We)|0;var St=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(he,$e),c=Math.imul(he,Te),c=c+Math.imul(ge,$e)|0,x=Math.imul(ge,Te),$=$+Math.imul(X,Oe)|0,c=c+Math.imul(X,Ie)|0,c=c+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,Ie)|0,$=$+Math.imul(fe,xe)|0,c=c+Math.imul(fe,Ce)|0,c=c+Math.imul(J,xe)|0,x=x+Math.imul(J,Ce)|0,$=$+Math.imul(I,Be)|0,c=c+Math.imul(I,je)|0,c=c+Math.imul(te,Be)|0,x=x+Math.imul(te,je)|0,$=$+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(se,Ne)|0,x=x+Math.imul(se,Ve)|0,$=$+Math.imul(U,He)|0,c=c+Math.imul(U,We)|0,c=c+Math.imul(P,He)|0,x=x+Math.imul(P,We)|0,$=$+Math.imul(z,ke)|0,c=c+Math.imul(z,Ge)|0,c=c+Math.imul(oe,ke)|0,x=x+Math.imul(oe,Ge)|0;var $t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+($t>>>26)|0,$t&=67108863,$=Math.imul(_e,$e),c=Math.imul(_e,Te),c=c+Math.imul(we,$e)|0,x=Math.imul(we,Te),$=$+Math.imul(he,Oe)|0,c=c+Math.imul(he,Ie)|0,c=c+Math.imul(ge,Oe)|0,x=x+Math.imul(ge,Ie)|0,$=$+Math.imul(X,xe)|0,c=c+Math.imul(X,Ce)|0,c=c+Math.imul(ne,xe)|0,x=x+Math.imul(ne,Ce)|0,$=$+Math.imul(fe,Be)|0,c=c+Math.imul(fe,je)|0,c=c+Math.imul(J,Be)|0,x=x+Math.imul(J,je)|0,$=$+Math.imul(I,Ne)|0,c=c+Math.imul(I,Ve)|0,c=c+Math.imul(te,Ne)|0,x=x+Math.imul(te,Ve)|0,$=$+Math.imul(ie,He)|0,c=c+Math.imul(ie,We)|0,c=c+Math.imul(se,He)|0,x=x+Math.imul(se,We)|0,$=$+Math.imul(U,ke)|0,c=c+Math.imul(U,Ge)|0,c=c+Math.imul(P,ke)|0,x=x+Math.imul(P,Ge)|0,$=$+Math.imul(z,Le)|0,c=c+Math.imul(z,Ke)|0,c=c+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Ke)|0;var At=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(At>>>26)|0,At&=67108863,$=Math.imul(Se,$e),c=Math.imul(Se,Te),c=c+Math.imul(Ae,$e)|0,x=Math.imul(Ae,Te),$=$+Math.imul(_e,Oe)|0,c=c+Math.imul(_e,Ie)|0,c=c+Math.imul(we,Oe)|0,x=x+Math.imul(we,Ie)|0,$=$+Math.imul(he,xe)|0,c=c+Math.imul(he,Ce)|0,c=c+Math.imul(ge,xe)|0,x=x+Math.imul(ge,Ce)|0,$=$+Math.imul(X,Be)|0,c=c+Math.imul(X,je)|0,c=c+Math.imul(ne,Be)|0,x=x+Math.imul(ne,je)|0,$=$+Math.imul(fe,Ne)|0,c=c+Math.imul(fe,Ve)|0,c=c+Math.imul(J,Ne)|0,x=x+Math.imul(J,Ve)|0,$=$+Math.imul(I,He)|0,c=c+Math.imul(I,We)|0,c=c+Math.imul(te,He)|0,x=x+Math.imul(te,We)|0,$=$+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Ge)|0,c=c+Math.imul(se,ke)|0,x=x+Math.imul(se,Ge)|0,$=$+Math.imul(U,Le)|0,c=c+Math.imul(U,Ke)|0,c=c+Math.imul(P,Le)|0,x=x+Math.imul(P,Ke)|0,$=$+Math.imul(z,De)|0,c=c+Math.imul(z,Ze)|0,c=c+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ze)|0;var Rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,$=Math.imul(ve,$e),c=Math.imul(ve,Te),c=c+Math.imul(be,$e)|0,x=Math.imul(be,Te),$=$+Math.imul(Se,Oe)|0,c=c+Math.imul(Se,Ie)|0,c=c+Math.imul(Ae,Oe)|0,x=x+Math.imul(Ae,Ie)|0,$=$+Math.imul(_e,xe)|0,c=c+Math.imul(_e,Ce)|0,c=c+Math.imul(we,xe)|0,x=x+Math.imul(we,Ce)|0,$=$+Math.imul(he,Be)|0,c=c+Math.imul(he,je)|0,c=c+Math.imul(ge,Be)|0,x=x+Math.imul(ge,je)|0,$=$+Math.imul(X,Ne)|0,c=c+Math.imul(X,Ve)|0,c=c+Math.imul(ne,Ne)|0,x=x+Math.imul(ne,Ve)|0,$=$+Math.imul(fe,He)|0,c=c+Math.imul(fe,We)|0,c=c+Math.imul(J,He)|0,x=x+Math.imul(J,We)|0,$=$+Math.imul(I,ke)|0,c=c+Math.imul(I,Ge)|0,c=c+Math.imul(te,ke)|0,x=x+Math.imul(te,Ge)|0,$=$+Math.imul(ie,Le)|0,c=c+Math.imul(ie,Ke)|0,c=c+Math.imul(se,Le)|0,x=x+Math.imul(se,Ke)|0,$=$+Math.imul(U,De)|0,c=c+Math.imul(U,Ze)|0,c=c+Math.imul(P,De)|0,x=x+Math.imul(P,Ze)|0,$=$+Math.imul(z,Fe)|0,c=c+Math.imul(z,ze)|0,c=c+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,ze)|0;var Mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,$=Math.imul(ve,Oe),c=Math.imul(ve,Ie),c=c+Math.imul(be,Oe)|0,x=Math.imul(be,Ie),$=$+Math.imul(Se,xe)|0,c=c+Math.imul(Se,Ce)|0,c=c+Math.imul(Ae,xe)|0,x=x+Math.imul(Ae,Ce)|0,$=$+Math.imul(_e,Be)|0,c=c+Math.imul(_e,je)|0,c=c+Math.imul(we,Be)|0,x=x+Math.imul(we,je)|0,$=$+Math.imul(he,Ne)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(ge,Ne)|0,x=x+Math.imul(ge,Ve)|0,$=$+Math.imul(X,He)|0,c=c+Math.imul(X,We)|0,c=c+Math.imul(ne,He)|0,x=x+Math.imul(ne,We)|0,$=$+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(J,ke)|0,x=x+Math.imul(J,Ge)|0,$=$+Math.imul(I,Le)|0,c=c+Math.imul(I,Ke)|0,c=c+Math.imul(te,Le)|0,x=x+Math.imul(te,Ke)|0,$=$+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ze)|0,c=c+Math.imul(se,De)|0,x=x+Math.imul(se,Ze)|0,$=$+Math.imul(U,Fe)|0,c=c+Math.imul(U,ze)|0,c=c+Math.imul(P,Fe)|0,x=x+Math.imul(P,ze)|0;var ht=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,$=Math.imul(ve,xe),c=Math.imul(ve,Ce),c=c+Math.imul(be,xe)|0,x=Math.imul(be,Ce),$=$+Math.imul(Se,Be)|0,c=c+Math.imul(Se,je)|0,c=c+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,je)|0,$=$+Math.imul(_e,Ne)|0,c=c+Math.imul(_e,Ve)|0,c=c+Math.imul(we,Ne)|0,x=x+Math.imul(we,Ve)|0,$=$+Math.imul(he,He)|0,c=c+Math.imul(he,We)|0,c=c+Math.imul(ge,He)|0,x=x+Math.imul(ge,We)|0,$=$+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Ge)|0,$=$+Math.imul(fe,Le)|0,c=c+Math.imul(fe,Ke)|0,c=c+Math.imul(J,Le)|0,x=x+Math.imul(J,Ke)|0,$=$+Math.imul(I,De)|0,c=c+Math.imul(I,Ze)|0,c=c+Math.imul(te,De)|0,x=x+Math.imul(te,Ze)|0,$=$+Math.imul(ie,Fe)|0,c=c+Math.imul(ie,ze)|0,c=c+Math.imul(se,Fe)|0,x=x+Math.imul(se,ze)|0;var yt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,$=Math.imul(ve,Be),c=Math.imul(ve,je),c=c+Math.imul(be,Be)|0,x=Math.imul(be,je),$=$+Math.imul(Se,Ne)|0,c=c+Math.imul(Se,Ve)|0,c=c+Math.imul(Ae,Ne)|0,x=x+Math.imul(Ae,Ve)|0,$=$+Math.imul(_e,He)|0,c=c+Math.imul(_e,We)|0,c=c+Math.imul(we,He)|0,x=x+Math.imul(we,We)|0,$=$+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(ge,ke)|0,x=x+Math.imul(ge,Ge)|0,$=$+Math.imul(X,Le)|0,c=c+Math.imul(X,Ke)|0,c=c+Math.imul(ne,Le)|0,x=x+Math.imul(ne,Ke)|0,$=$+Math.imul(fe,De)|0,c=c+Math.imul(fe,Ze)|0,c=c+Math.imul(J,De)|0,x=x+Math.imul(J,Ze)|0,$=$+Math.imul(I,Fe)|0,c=c+Math.imul(I,ze)|0,c=c+Math.imul(te,Fe)|0,x=x+Math.imul(te,ze)|0;var gt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(ve,Ne),c=Math.imul(ve,Ve),c=c+Math.imul(be,Ne)|0,x=Math.imul(be,Ve),$=$+Math.imul(Se,He)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Ae,He)|0,x=x+Math.imul(Ae,We)|0,$=$+Math.imul(_e,ke)|0,c=c+Math.imul(_e,Ge)|0,c=c+Math.imul(we,ke)|0,x=x+Math.imul(we,Ge)|0,$=$+Math.imul(he,Le)|0,c=c+Math.imul(he,Ke)|0,c=c+Math.imul(ge,Le)|0,x=x+Math.imul(ge,Ke)|0,$=$+Math.imul(X,De)|0,c=c+Math.imul(X,Ze)|0,c=c+Math.imul(ne,De)|0,x=x+Math.imul(ne,Ze)|0,$=$+Math.imul(fe,Fe)|0,c=c+Math.imul(fe,ze)|0,c=c+Math.imul(J,Fe)|0,x=x+Math.imul(J,ze)|0;var dt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,$=Math.imul(ve,He),c=Math.imul(ve,We),c=c+Math.imul(be,He)|0,x=Math.imul(be,We),$=$+Math.imul(Se,ke)|0,c=c+Math.imul(Se,Ge)|0,c=c+Math.imul(Ae,ke)|0,x=x+Math.imul(Ae,Ge)|0,$=$+Math.imul(_e,Le)|0,c=c+Math.imul(_e,Ke)|0,c=c+Math.imul(we,Le)|0,x=x+Math.imul(we,Ke)|0,$=$+Math.imul(he,De)|0,c=c+Math.imul(he,Ze)|0,c=c+Math.imul(ge,De)|0,x=x+Math.imul(ge,Ze)|0,$=$+Math.imul(X,Fe)|0,c=c+Math.imul(X,ze)|0,c=c+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,ze)|0;var _t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,$=Math.imul(ve,ke),c=Math.imul(ve,Ge),c=c+Math.imul(be,ke)|0,x=Math.imul(be,Ge),$=$+Math.imul(Se,Le)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Ae,Le)|0,x=x+Math.imul(Ae,Ke)|0,$=$+Math.imul(_e,De)|0,c=c+Math.imul(_e,Ze)|0,c=c+Math.imul(we,De)|0,x=x+Math.imul(we,Ze)|0,$=$+Math.imul(he,Fe)|0,c=c+Math.imul(he,ze)|0,c=c+Math.imul(ge,Fe)|0,x=x+Math.imul(ge,ze)|0;var ct=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ct>>>26)|0,ct&=67108863,$=Math.imul(ve,Le),c=Math.imul(ve,Ke),c=c+Math.imul(be,Le)|0,x=Math.imul(be,Ke),$=$+Math.imul(Se,De)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Ae,De)|0,x=x+Math.imul(Ae,Ze)|0,$=$+Math.imul(_e,Fe)|0,c=c+Math.imul(_e,ze)|0,c=c+Math.imul(we,Fe)|0,x=x+Math.imul(we,ze)|0;var pt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(ve,De),c=Math.imul(ve,Ze),c=c+Math.imul(be,De)|0,x=Math.imul(be,Ze),$=$+Math.imul(Se,Fe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,ze)|0;var Et=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,$=Math.imul(ve,Fe),c=Math.imul(ve,ze),c=c+Math.imul(be,Fe)|0,x=Math.imul(be,ze);var xt=(O+$|0)+((c&8191)<<13)|0;return O=(x+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,A[0]=it,A[1]=rt,A[2]=mt,A[3]=bt,A[4]=wt,A[5]=St,A[6]=$t,A[7]=At,A[8]=Rt,A[9]=Mt,A[10]=ht,A[11]=yt,A[12]=gt,A[13]=dt,A[14]=_t,A[15]=ct,A[16]=pt,A[17]=Et,A[18]=xt,O!==0&&(A[19]=O,m.length++),m};Math.imul||(F=L);function q(T,u,v){v.negative=u.negative^T.negative,v.length=T.length+u.length;for(var m=0,b=0,M=0;M>>26)|0,b+=A>>>26,A&=67108863}v.words[M]=O,m=A,A=b}return m!==0?v.words[M]=m:v.length--,v.strip()}function H(T,u,v){var m=new D;return m.mulp(T,u,v)}a.prototype.mulTo=function(u,v){var m,b=this.length+u.length;return this.length===10&&u.length===10?m=F(this,u,v):b<63?m=L(this,u,v):b<1024?m=q(this,u,v):m=H(this,u,v),m};function D(T,u){this.x=T,this.y=u}D.prototype.makeRBT=function(u){for(var v=new Array(u),m=a.prototype._countBits(u)-1,b=0;b>=1;return b},D.prototype.permute=function(u,v,m,b,M,A){for(var O=0;O>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*v;A>=26,v+=b/67108864|0,v+=M>>>26,this.words[m]=M&67108863}return v!==0&&(this.words[m]=v,this.length++),this.length=u===0?1:this.length,this},a.prototype.muln=function(u){return this.clone().imuln(u)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(u){var v=B(u);if(v.length===0)return new a(1);for(var m=this,b=0;b=0);var v=u%26,m=(u-v)/26,b=67108863>>>26-v<<26-v,M;if(v!==0){var A=0;for(M=0;M>>26-v}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var b;v?b=(v-v%26)/26:b=0;var M=u%26,A=Math.min((u-M)/26,this.length),O=67108863^67108863>>>M<A)for(this.length-=A,c=0;c=0&&(x!==0||c>=b);c--){var N=this.words[c]|0;this.words[c]=x<<26-M|N>>>M,x=N&O}return $&&x!==0&&($.words[$.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(u,v,m){return o(this.negative===0),this.iushrn(u,v,m)},a.prototype.shln=function(u){return this.clone().ishln(u)},a.prototype.ushln=function(u){return this.clone().iushln(u)},a.prototype.shrn=function(u){return this.clone().ishrn(u)},a.prototype.ushrn=function(u){return this.clone().iushrn(u)},a.prototype.testn=function(u){o(typeof u=="number"&&u>=0);var v=u%26,m=(u-v)/26,b=1<=0);var v=u%26,m=(u-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(v!==0&&m++,this.length=Math.min(m,this.length),v!==0){var b=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(u){if(o(typeof u=="number"),o(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-($/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(O===0)return this.strip();for(o(O===-1),O=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(u,v){var m=this.length-u.length,b=this.clone(),M=u,A=M.words[M.length-1]|0,O=this._countBits(A);m=26-O,m!==0&&(M=M.ushln(m),b.iushln(m),A=M.words[M.length-1]|0);var $=b.length-M.length,c;if(v!=="mod"){c=new a(null),c.length=$+1,c.words=new Array(c.length);for(var x=0;x=0;z--){var oe=(b.words[M.length+z]|0)*67108864+(b.words[M.length+z-1]|0);for(oe=Math.min(oe/A|0,67108863),b._ishlnsubmul(M,oe,z);b.negative!==0;)oe--,b.negative=0,b._ishlnsubmul(M,1,z),b.isZero()||(b.negative^=1);c&&(c.words[z]=oe)}return c&&c.strip(),b.strip(),v!=="div"&&m!==0&&b.iushrn(m),{div:c||null,mod:b}},a.prototype.divmod=function(u,v,m){if(o(!u.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,M,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,v),v!=="mod"&&(b=A.div.neg()),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(u)),{div:b,mod:M}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),v),v!=="mod"&&(b=A.div.neg()),{div:b,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),v),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(u)),{div:A.div,mod:M}):u.length>this.length||this.cmp(u)<0?{div:new a(0),mod:this}:u.length===1?v==="div"?{div:this.divn(u.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new a(this.modn(u.words[0]))}:this._wordDiv(u,v)},a.prototype.div=function(u){return this.divmod(u,"div",!1).div},a.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},a.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},a.prototype.divRound=function(u){var v=this.divmod(u);if(v.mod.isZero())return v.div;var m=v.div.negative!==0?v.mod.isub(u):v.mod,b=u.ushrn(1),M=u.andln(1),A=m.cmp(b);return A<0||M===1&&A===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modn=function(u){o(u<=67108863);for(var v=(1<<26)%u,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%u;return m},a.prototype.idivn=function(u){o(u<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/u|0,v=b%u}return this.strip()},a.prototype.divn=function(u){return this.clone().idivn(u)},a.prototype.egcd=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=new a(0),O=new a(1),$=0;v.isEven()&&m.isEven();)v.iushrn(1),m.iushrn(1),++$;for(var c=m.clone(),x=v.clone();!v.isZero();){for(var N=0,z=1;!(v.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(v.iushrn(N);N-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(c),M.isub(x)),b.iushrn(1),M.iushrn(1);for(var oe=0,le=1;!(m.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(m.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(c),O.isub(x)),A.iushrn(1),O.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(A),M.isub(O)):(m.isub(v),A.isub(b),O.isub(M))}return{a:A,b:O,gcd:m.iushln($)}},a.prototype._invmp=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=m.clone();v.cmpn(1)>0&&m.cmpn(1)>0;){for(var O=0,$=1;!(v.words[0]&$)&&O<26;++O,$<<=1);if(O>0)for(v.iushrn(O);O-- >0;)b.isOdd()&&b.iadd(A),b.iushrn(1);for(var c=0,x=1;!(m.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(m.iushrn(c);c-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(M)):(m.isub(v),M.isub(b))}var N;return v.cmpn(1)===0?N=b:N=M,N.cmpn(0)<0&&N.iadd(u),N},a.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var v=this.clone(),m=u.clone();v.negative=0,m.negative=0;for(var b=0;v.isEven()&&m.isEven();b++)v.iushrn(1),m.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=v.cmp(m);if(M<0){var A=v;v=m,m=A}else if(M===0||m.cmpn(1)===0)break;v.isub(m)}while(!0);return m.iushln(b)},a.prototype.invm=function(u){return this.egcd(u).a.umod(u)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(u){return this.words[0]&u},a.prototype.bincn=function(u){o(typeof u=="number");var v=u%26,m=(u-v)/26,b=1<>>26,O&=67108863,this.words[A]=O}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(u){var v=u<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var m;if(this.length>1)m=1;else{v&&(u=-u),o(u<=67108863,"Number is too big");var b=this.words[0]|0;m=b===u?0:bu.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,M=u.words[m]|0;if(b!==M){bM&&(v=1);break}}return v},a.prototype.gtn=function(u){return this.cmpn(u)===1},a.prototype.gt=function(u){return this.cmp(u)===1},a.prototype.gten=function(u){return this.cmpn(u)>=0},a.prototype.gte=function(u){return this.cmp(u)>=0},a.prototype.ltn=function(u){return this.cmpn(u)===-1},a.prototype.lt=function(u){return this.cmp(u)===-1},a.prototype.lten=function(u){return this.cmpn(u)<=0},a.prototype.lte=function(u){return this.cmp(u)<=0},a.prototype.eqn=function(u){return this.cmpn(u)===0},a.prototype.eq=function(u){return this.cmp(u)===0},a.red=function(u){return new re(u)},a.prototype.toRed=function(u){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(u){return this.red=u,this},a.prototype.forceRed=function(u){return o(!this.red,"Already a number in reduction context"),this._forceRed(u)},a.prototype.redAdd=function(u){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},a.prototype.redIAdd=function(u){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},a.prototype.redSub=function(u){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},a.prototype.redISub=function(u){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},a.prototype.redShl=function(u){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},a.prototype.redMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},a.prototype.redIMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(u){return o(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var j={k256:null,p224:null,p192:null,p25519:null};function V(T,u){this.name=T,this.p=new a(u,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var u=new a(null);return u.words=new Array(Math.ceil(this.n/13)),u},V.prototype.ireduce=function(u){var v=u,m;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),m=v.bitLength();while(m>this.n);var b=m0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},V.prototype.split=function(u,v){u.iushrn(this.n,0,v)},V.prototype.imulK=function(u){return u.imul(this.k)};function Q(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Q,V),Q.prototype.split=function(u,v){for(var m=4194303,b=Math.min(u.length,9),M=0;M>>22,A=O}A>>>=22,u.words[M-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},Q.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var v=0,m=0;m>>=26,u.words[m]=M,v=b}return v!==0&&(u.words[u.length++]=v),u},a._prime=function(u){if(j[u])return j[u];var v;if(u==="k256")v=new Q;else if(u==="p224")v=new ae;else if(u==="p192")v=new ce;else if(u==="p25519")v=new ue;else throw new Error("Unknown prime "+u);return j[u]=v,v};function re(T){if(typeof T=="string"){var u=a._prime(T);this.m=u.p,this.prime=u}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}re.prototype._verify1=function(u){o(u.negative===0,"red works only with positives"),o(u.red,"red works only with red numbers")},re.prototype._verify2=function(u,v){o((u.negative|v.negative)===0,"red works only with positives"),o(u.red&&u.red===v.red,"red works only with red numbers")},re.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},re.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},re.prototype.add=function(u,v){this._verify2(u,v);var m=u.add(v);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},re.prototype.iadd=function(u,v){this._verify2(u,v);var m=u.iadd(v);return m.cmp(this.m)>=0&&m.isub(this.m),m},re.prototype.sub=function(u,v){this._verify2(u,v);var m=u.sub(v);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},re.prototype.isub=function(u,v){this._verify2(u,v);var m=u.isub(v);return m.cmpn(0)<0&&m.iadd(this.m),m},re.prototype.shl=function(u,v){return this._verify1(u),this.imod(u.ushln(v))},re.prototype.imul=function(u,v){return this._verify2(u,v),this.imod(u.imul(v))},re.prototype.mul=function(u,v){return this._verify2(u,v),this.imod(u.mul(v))},re.prototype.isqr=function(u){return this.imul(u,u.clone())},re.prototype.sqr=function(u){return this.mul(u,u)},re.prototype.sqrt=function(u){if(u.isZero())return u.clone();var v=this.m.andln(3);if(o(v%2===1),v===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(u,m)}for(var b=this.m.subn(1),M=0;!b.isZero()&&b.andln(1)===0;)M++,b.iushrn(1);o(!b.isZero());var A=new a(1).toRed(this),O=A.redNeg(),$=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);this.pow(c,$).cmp(O)!==0;)c.redIAdd(O);for(var x=this.pow(c,b),N=this.pow(u,b.addn(1).iushrn(1)),z=this.pow(u,b),oe=M;z.cmp(A)!==0;){for(var le=z,U=0;le.cmp(A)!==0;U++)le=le.redSqr();o(U=0;M--){for(var x=v.words[M],N=c-1;N>=0;N--){var z=x>>N&1;if(A!==b[0]&&(A=this.sqr(A)),z===0&&O===0){$=0;continue}O<<=1,O|=z,$++,!($!==m&&(M!==0||N!==0))&&(A=this.mul(A,b[O]),$=0,O=0)}c=26}return A},re.prototype.convertTo=function(u){var v=u.umod(this.m);return v===u?v.clone():v},re.prototype.convertFrom=function(u){var v=u.clone();return v.red=null,v},a.mont=function(u){return new pe(u)};function pe(T){re.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(pe,re),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var v=this.imod(u.mul(this.rinv));return v.red=null,v},pe.prototype.imul=function(u,v){if(u.isZero()||v.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,v){if(u.isZero()||v.isZero())return new a(0)._forceRed(this);var m=u.mul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var v=this.imod(u._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(e,commonjsGlobal)})(bn$6);var bnExports$6=bn$6.exports,bn$5={exports:{}};bn$5.exports;(function(e){(function(t,n){function o(T,u){if(!T)throw new Error(u||"Assertion failed")}function l(T,u){T.super_=u;var v=function(){};v.prototype=u.prototype,T.prototype=new v,T.prototype.constructor=T}function a(T,u,v){if(a.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((u==="le"||u==="be")&&(v=u,u=10),this._init(T||0,u||10,v||"be"))}typeof t=="object"?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=buffer$2.Buffer}catch{}a.isBN=function(u){return u instanceof a?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===a.wordSize&&Array.isArray(u.words)},a.max=function(u,v){return u.cmp(v)>0?u:v},a.min=function(u,v){return u.cmp(v)<0?u:v},a.prototype._init=function(u,v,m){if(typeof u=="number")return this._initNumber(u,v,m);if(typeof u=="object")return this._initArray(u,v,m);v==="hex"&&(v=16),o(v===(v|0)&&v>=2&&v<=36),u=u.toString().replace(/\s+/g,"");var b=0;u[0]==="-"&&(b++,this.negative=1),b=0;b-=3)A=u[b]|u[b-1]<<8|u[b-2]<<16,this.words[M]|=A<>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);else if(m==="le")for(b=0,M=0;b>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);return this.strip()};function y(T,u){var v=T.charCodeAt(u);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function w(T,u,v){var m=y(T,v);return v-1>=u&&(m|=y(T,v-1)<<4),m}a.prototype._parseHex=function(u,v,m){this.length=Math.ceil((u.length-v)/6),this.words=new Array(this.length);for(var b=0;b=v;b-=2)O=w(u,v,b)<=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8;else{var $=u.length-v;for(b=$%2===0?v+1:v;b=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8}this.strip()};function _(T,u,v,m){for(var b=0,M=Math.min(T.length,v),A=u;A=49?b+=O-49+10:O>=17?b+=O-17+10:b+=O}return b}a.prototype._parseBase=function(u,v,m){this.words=[0],this.length=1;for(var b=0,M=1;M<=67108863;M*=v)b++;b--,M=M/v|0;for(var A=u.length-m,O=A%b,$=Math.min(A,A-O)+m,c=0,x=m;x<$;x+=b)c=_(u,x,x+b,v),this.imuln(M),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(O!==0){var N=1;for(c=_(u,x,u.length,v),x=0;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(u,v){u=u||10,v=v|0||1;var m;if(u===16||u==="hex"){m="";for(var b=0,M=0,A=0;A>>24-b&16777215,b+=2,b>=26&&(b-=26,A--),M!==0||A!==this.length-1?m=S[6-$.length]+$+m:m=$+m}for(M!==0&&(m=M.toString(16)+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var c=E[u],x=C[u];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var z=N.modn(x).toString(u);N=N.idivn(x),N.isZero()?m=z+m:m=S[c-z.length]+z+m}for(this.isZero()&&(m="0"+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(u,v){return o(typeof d<"u"),this.toArrayLike(d,u,v)},a.prototype.toArray=function(u,v){return this.toArrayLike(Array,u,v)},a.prototype.toArrayLike=function(u,v,m){var b=this.byteLength(),M=m||Math.max(1,b);o(b<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0"),this.strip();var A=v==="le",O=new u(M),$,c,x=this.clone();if(A){for(c=0;!x.isZero();c++)$=x.andln(255),x.iushrn(8),O[c]=$;for(;c=4096&&(m+=13,v>>>=13),v>=64&&(m+=7,v>>>=7),v>=8&&(m+=4,v>>>=4),v>=2&&(m+=2,v>>>=2),m+v},a.prototype._zeroBits=function(u){if(u===0)return 26;var v=u,m=0;return v&8191||(m+=13,v>>>=13),v&127||(m+=7,v>>>=7),v&15||(m+=4,v>>>=4),v&3||(m+=2,v>>>=2),v&1||m++,m},a.prototype.bitLength=function(){var u=this.words[this.length-1],v=this._countBits(u);return(this.length-1)*26+v};function B(T){for(var u=new Array(T.bitLength()),v=0;v>>b}return u}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,v=0;vu.length?this.clone().ior(u):u.clone().ior(this)},a.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},a.prototype.iuand=function(u){var v;this.length>u.length?v=u:v=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},a.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},a.prototype.iuxor=function(u){var v,m;this.length>u.length?(v=this,m=u):(v=u,m=this);for(var b=0;bu.length?this.clone().ixor(u):u.clone().ixor(this)},a.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},a.prototype.inotn=function(u){o(typeof u=="number"&&u>=0);var v=Math.ceil(u/26)|0,m=u%26;this._expand(v),m>0&&v--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this.strip()},a.prototype.notn=function(u){return this.clone().inotn(u)},a.prototype.setn=function(u,v){o(typeof u=="number"&&u>=0);var m=u/26|0,b=u%26;return this._expand(m+1),v?this.words[m]=this.words[m]|1<u.length?(m=this,b=u):(m=u,b=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Au.length?this.clone().iadd(u):u.clone().iadd(this)},a.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var v=this.iadd(u);return u.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,M;m>0?(b=this,M=u):(b=u,M=this);for(var A=0,O=0;O>26,this.words[O]=v&67108863;for(;A!==0&&O>26,this.words[O]=v&67108863;if(A===0&&O>>26,N=$&67108863,z=Math.min(c,u.length-1),oe=Math.max(0,c-T.length+1);oe<=z;oe++){var le=c-oe|0;b=T.words[le]|0,M=u.words[oe]|0,A=b*M+N,x+=A/67108864|0,N=A&67108863}v.words[c]=N|0,$=x|0}return $!==0?v.words[c]=$|0:v.length--,v.strip()}var F=function(u,v,m){var b=u.words,M=v.words,A=m.words,O=0,$,c,x,N=b[0]|0,z=N&8191,oe=N>>>13,le=b[1]|0,U=le&8191,P=le>>>13,Z=b[2]|0,ie=Z&8191,se=Z>>>13,k=b[3]|0,I=k&8191,te=k>>>13,ee=b[4]|0,fe=ee&8191,J=ee>>>13,Y=b[5]|0,X=Y&8191,ne=Y>>>13,me=b[6]|0,he=me&8191,ge=me>>>13,Re=b[7]|0,_e=Re&8191,we=Re>>>13,qe=b[8]|0,Se=qe&8191,Ae=qe>>>13,Me=b[9]|0,ve=Me&8191,be=Me>>>13,Pe=M[0]|0,$e=Pe&8191,Te=Pe>>>13,Je=M[1]|0,Oe=Je&8191,Ie=Je>>>13,Ye=M[2]|0,xe=Ye&8191,Ce=Ye>>>13,Qe=M[3]|0,Be=Qe&8191,je=Qe>>>13,nt=M[4]|0,Ne=nt&8191,Ve=nt>>>13,ot=M[5]|0,He=ot&8191,We=ot>>>13,st=M[6]|0,ke=st&8191,Ge=st>>>13,lt=M[7]|0,Le=lt&8191,Ke=lt>>>13,ut=M[8]|0,De=ut&8191,Ze=ut>>>13,at=M[9]|0,Fe=at&8191,ze=at>>>13;m.negative=u.negative^v.negative,m.length=19,$=Math.imul(z,$e),c=Math.imul(z,Te),c=c+Math.imul(oe,$e)|0,x=Math.imul(oe,Te);var it=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(it>>>26)|0,it&=67108863,$=Math.imul(U,$e),c=Math.imul(U,Te),c=c+Math.imul(P,$e)|0,x=Math.imul(P,Te),$=$+Math.imul(z,Oe)|0,c=c+Math.imul(z,Ie)|0,c=c+Math.imul(oe,Oe)|0,x=x+Math.imul(oe,Ie)|0;var rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,$=Math.imul(ie,$e),c=Math.imul(ie,Te),c=c+Math.imul(se,$e)|0,x=Math.imul(se,Te),$=$+Math.imul(U,Oe)|0,c=c+Math.imul(U,Ie)|0,c=c+Math.imul(P,Oe)|0,x=x+Math.imul(P,Ie)|0,$=$+Math.imul(z,xe)|0,c=c+Math.imul(z,Ce)|0,c=c+Math.imul(oe,xe)|0,x=x+Math.imul(oe,Ce)|0;var mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,$=Math.imul(I,$e),c=Math.imul(I,Te),c=c+Math.imul(te,$e)|0,x=Math.imul(te,Te),$=$+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Ie)|0,c=c+Math.imul(se,Oe)|0,x=x+Math.imul(se,Ie)|0,$=$+Math.imul(U,xe)|0,c=c+Math.imul(U,Ce)|0,c=c+Math.imul(P,xe)|0,x=x+Math.imul(P,Ce)|0,$=$+Math.imul(z,Be)|0,c=c+Math.imul(z,je)|0,c=c+Math.imul(oe,Be)|0,x=x+Math.imul(oe,je)|0;var bt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,$=Math.imul(fe,$e),c=Math.imul(fe,Te),c=c+Math.imul(J,$e)|0,x=Math.imul(J,Te),$=$+Math.imul(I,Oe)|0,c=c+Math.imul(I,Ie)|0,c=c+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ie)|0,$=$+Math.imul(ie,xe)|0,c=c+Math.imul(ie,Ce)|0,c=c+Math.imul(se,xe)|0,x=x+Math.imul(se,Ce)|0,$=$+Math.imul(U,Be)|0,c=c+Math.imul(U,je)|0,c=c+Math.imul(P,Be)|0,x=x+Math.imul(P,je)|0,$=$+Math.imul(z,Ne)|0,c=c+Math.imul(z,Ve)|0,c=c+Math.imul(oe,Ne)|0,x=x+Math.imul(oe,Ve)|0;var wt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,$=Math.imul(X,$e),c=Math.imul(X,Te),c=c+Math.imul(ne,$e)|0,x=Math.imul(ne,Te),$=$+Math.imul(fe,Oe)|0,c=c+Math.imul(fe,Ie)|0,c=c+Math.imul(J,Oe)|0,x=x+Math.imul(J,Ie)|0,$=$+Math.imul(I,xe)|0,c=c+Math.imul(I,Ce)|0,c=c+Math.imul(te,xe)|0,x=x+Math.imul(te,Ce)|0,$=$+Math.imul(ie,Be)|0,c=c+Math.imul(ie,je)|0,c=c+Math.imul(se,Be)|0,x=x+Math.imul(se,je)|0,$=$+Math.imul(U,Ne)|0,c=c+Math.imul(U,Ve)|0,c=c+Math.imul(P,Ne)|0,x=x+Math.imul(P,Ve)|0,$=$+Math.imul(z,He)|0,c=c+Math.imul(z,We)|0,c=c+Math.imul(oe,He)|0,x=x+Math.imul(oe,We)|0;var St=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(he,$e),c=Math.imul(he,Te),c=c+Math.imul(ge,$e)|0,x=Math.imul(ge,Te),$=$+Math.imul(X,Oe)|0,c=c+Math.imul(X,Ie)|0,c=c+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,Ie)|0,$=$+Math.imul(fe,xe)|0,c=c+Math.imul(fe,Ce)|0,c=c+Math.imul(J,xe)|0,x=x+Math.imul(J,Ce)|0,$=$+Math.imul(I,Be)|0,c=c+Math.imul(I,je)|0,c=c+Math.imul(te,Be)|0,x=x+Math.imul(te,je)|0,$=$+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(se,Ne)|0,x=x+Math.imul(se,Ve)|0,$=$+Math.imul(U,He)|0,c=c+Math.imul(U,We)|0,c=c+Math.imul(P,He)|0,x=x+Math.imul(P,We)|0,$=$+Math.imul(z,ke)|0,c=c+Math.imul(z,Ge)|0,c=c+Math.imul(oe,ke)|0,x=x+Math.imul(oe,Ge)|0;var $t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+($t>>>26)|0,$t&=67108863,$=Math.imul(_e,$e),c=Math.imul(_e,Te),c=c+Math.imul(we,$e)|0,x=Math.imul(we,Te),$=$+Math.imul(he,Oe)|0,c=c+Math.imul(he,Ie)|0,c=c+Math.imul(ge,Oe)|0,x=x+Math.imul(ge,Ie)|0,$=$+Math.imul(X,xe)|0,c=c+Math.imul(X,Ce)|0,c=c+Math.imul(ne,xe)|0,x=x+Math.imul(ne,Ce)|0,$=$+Math.imul(fe,Be)|0,c=c+Math.imul(fe,je)|0,c=c+Math.imul(J,Be)|0,x=x+Math.imul(J,je)|0,$=$+Math.imul(I,Ne)|0,c=c+Math.imul(I,Ve)|0,c=c+Math.imul(te,Ne)|0,x=x+Math.imul(te,Ve)|0,$=$+Math.imul(ie,He)|0,c=c+Math.imul(ie,We)|0,c=c+Math.imul(se,He)|0,x=x+Math.imul(se,We)|0,$=$+Math.imul(U,ke)|0,c=c+Math.imul(U,Ge)|0,c=c+Math.imul(P,ke)|0,x=x+Math.imul(P,Ge)|0,$=$+Math.imul(z,Le)|0,c=c+Math.imul(z,Ke)|0,c=c+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Ke)|0;var At=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(At>>>26)|0,At&=67108863,$=Math.imul(Se,$e),c=Math.imul(Se,Te),c=c+Math.imul(Ae,$e)|0,x=Math.imul(Ae,Te),$=$+Math.imul(_e,Oe)|0,c=c+Math.imul(_e,Ie)|0,c=c+Math.imul(we,Oe)|0,x=x+Math.imul(we,Ie)|0,$=$+Math.imul(he,xe)|0,c=c+Math.imul(he,Ce)|0,c=c+Math.imul(ge,xe)|0,x=x+Math.imul(ge,Ce)|0,$=$+Math.imul(X,Be)|0,c=c+Math.imul(X,je)|0,c=c+Math.imul(ne,Be)|0,x=x+Math.imul(ne,je)|0,$=$+Math.imul(fe,Ne)|0,c=c+Math.imul(fe,Ve)|0,c=c+Math.imul(J,Ne)|0,x=x+Math.imul(J,Ve)|0,$=$+Math.imul(I,He)|0,c=c+Math.imul(I,We)|0,c=c+Math.imul(te,He)|0,x=x+Math.imul(te,We)|0,$=$+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Ge)|0,c=c+Math.imul(se,ke)|0,x=x+Math.imul(se,Ge)|0,$=$+Math.imul(U,Le)|0,c=c+Math.imul(U,Ke)|0,c=c+Math.imul(P,Le)|0,x=x+Math.imul(P,Ke)|0,$=$+Math.imul(z,De)|0,c=c+Math.imul(z,Ze)|0,c=c+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ze)|0;var Rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,$=Math.imul(ve,$e),c=Math.imul(ve,Te),c=c+Math.imul(be,$e)|0,x=Math.imul(be,Te),$=$+Math.imul(Se,Oe)|0,c=c+Math.imul(Se,Ie)|0,c=c+Math.imul(Ae,Oe)|0,x=x+Math.imul(Ae,Ie)|0,$=$+Math.imul(_e,xe)|0,c=c+Math.imul(_e,Ce)|0,c=c+Math.imul(we,xe)|0,x=x+Math.imul(we,Ce)|0,$=$+Math.imul(he,Be)|0,c=c+Math.imul(he,je)|0,c=c+Math.imul(ge,Be)|0,x=x+Math.imul(ge,je)|0,$=$+Math.imul(X,Ne)|0,c=c+Math.imul(X,Ve)|0,c=c+Math.imul(ne,Ne)|0,x=x+Math.imul(ne,Ve)|0,$=$+Math.imul(fe,He)|0,c=c+Math.imul(fe,We)|0,c=c+Math.imul(J,He)|0,x=x+Math.imul(J,We)|0,$=$+Math.imul(I,ke)|0,c=c+Math.imul(I,Ge)|0,c=c+Math.imul(te,ke)|0,x=x+Math.imul(te,Ge)|0,$=$+Math.imul(ie,Le)|0,c=c+Math.imul(ie,Ke)|0,c=c+Math.imul(se,Le)|0,x=x+Math.imul(se,Ke)|0,$=$+Math.imul(U,De)|0,c=c+Math.imul(U,Ze)|0,c=c+Math.imul(P,De)|0,x=x+Math.imul(P,Ze)|0,$=$+Math.imul(z,Fe)|0,c=c+Math.imul(z,ze)|0,c=c+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,ze)|0;var Mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,$=Math.imul(ve,Oe),c=Math.imul(ve,Ie),c=c+Math.imul(be,Oe)|0,x=Math.imul(be,Ie),$=$+Math.imul(Se,xe)|0,c=c+Math.imul(Se,Ce)|0,c=c+Math.imul(Ae,xe)|0,x=x+Math.imul(Ae,Ce)|0,$=$+Math.imul(_e,Be)|0,c=c+Math.imul(_e,je)|0,c=c+Math.imul(we,Be)|0,x=x+Math.imul(we,je)|0,$=$+Math.imul(he,Ne)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(ge,Ne)|0,x=x+Math.imul(ge,Ve)|0,$=$+Math.imul(X,He)|0,c=c+Math.imul(X,We)|0,c=c+Math.imul(ne,He)|0,x=x+Math.imul(ne,We)|0,$=$+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(J,ke)|0,x=x+Math.imul(J,Ge)|0,$=$+Math.imul(I,Le)|0,c=c+Math.imul(I,Ke)|0,c=c+Math.imul(te,Le)|0,x=x+Math.imul(te,Ke)|0,$=$+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ze)|0,c=c+Math.imul(se,De)|0,x=x+Math.imul(se,Ze)|0,$=$+Math.imul(U,Fe)|0,c=c+Math.imul(U,ze)|0,c=c+Math.imul(P,Fe)|0,x=x+Math.imul(P,ze)|0;var ht=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,$=Math.imul(ve,xe),c=Math.imul(ve,Ce),c=c+Math.imul(be,xe)|0,x=Math.imul(be,Ce),$=$+Math.imul(Se,Be)|0,c=c+Math.imul(Se,je)|0,c=c+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,je)|0,$=$+Math.imul(_e,Ne)|0,c=c+Math.imul(_e,Ve)|0,c=c+Math.imul(we,Ne)|0,x=x+Math.imul(we,Ve)|0,$=$+Math.imul(he,He)|0,c=c+Math.imul(he,We)|0,c=c+Math.imul(ge,He)|0,x=x+Math.imul(ge,We)|0,$=$+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Ge)|0,$=$+Math.imul(fe,Le)|0,c=c+Math.imul(fe,Ke)|0,c=c+Math.imul(J,Le)|0,x=x+Math.imul(J,Ke)|0,$=$+Math.imul(I,De)|0,c=c+Math.imul(I,Ze)|0,c=c+Math.imul(te,De)|0,x=x+Math.imul(te,Ze)|0,$=$+Math.imul(ie,Fe)|0,c=c+Math.imul(ie,ze)|0,c=c+Math.imul(se,Fe)|0,x=x+Math.imul(se,ze)|0;var yt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,$=Math.imul(ve,Be),c=Math.imul(ve,je),c=c+Math.imul(be,Be)|0,x=Math.imul(be,je),$=$+Math.imul(Se,Ne)|0,c=c+Math.imul(Se,Ve)|0,c=c+Math.imul(Ae,Ne)|0,x=x+Math.imul(Ae,Ve)|0,$=$+Math.imul(_e,He)|0,c=c+Math.imul(_e,We)|0,c=c+Math.imul(we,He)|0,x=x+Math.imul(we,We)|0,$=$+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(ge,ke)|0,x=x+Math.imul(ge,Ge)|0,$=$+Math.imul(X,Le)|0,c=c+Math.imul(X,Ke)|0,c=c+Math.imul(ne,Le)|0,x=x+Math.imul(ne,Ke)|0,$=$+Math.imul(fe,De)|0,c=c+Math.imul(fe,Ze)|0,c=c+Math.imul(J,De)|0,x=x+Math.imul(J,Ze)|0,$=$+Math.imul(I,Fe)|0,c=c+Math.imul(I,ze)|0,c=c+Math.imul(te,Fe)|0,x=x+Math.imul(te,ze)|0;var gt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(ve,Ne),c=Math.imul(ve,Ve),c=c+Math.imul(be,Ne)|0,x=Math.imul(be,Ve),$=$+Math.imul(Se,He)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Ae,He)|0,x=x+Math.imul(Ae,We)|0,$=$+Math.imul(_e,ke)|0,c=c+Math.imul(_e,Ge)|0,c=c+Math.imul(we,ke)|0,x=x+Math.imul(we,Ge)|0,$=$+Math.imul(he,Le)|0,c=c+Math.imul(he,Ke)|0,c=c+Math.imul(ge,Le)|0,x=x+Math.imul(ge,Ke)|0,$=$+Math.imul(X,De)|0,c=c+Math.imul(X,Ze)|0,c=c+Math.imul(ne,De)|0,x=x+Math.imul(ne,Ze)|0,$=$+Math.imul(fe,Fe)|0,c=c+Math.imul(fe,ze)|0,c=c+Math.imul(J,Fe)|0,x=x+Math.imul(J,ze)|0;var dt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,$=Math.imul(ve,He),c=Math.imul(ve,We),c=c+Math.imul(be,He)|0,x=Math.imul(be,We),$=$+Math.imul(Se,ke)|0,c=c+Math.imul(Se,Ge)|0,c=c+Math.imul(Ae,ke)|0,x=x+Math.imul(Ae,Ge)|0,$=$+Math.imul(_e,Le)|0,c=c+Math.imul(_e,Ke)|0,c=c+Math.imul(we,Le)|0,x=x+Math.imul(we,Ke)|0,$=$+Math.imul(he,De)|0,c=c+Math.imul(he,Ze)|0,c=c+Math.imul(ge,De)|0,x=x+Math.imul(ge,Ze)|0,$=$+Math.imul(X,Fe)|0,c=c+Math.imul(X,ze)|0,c=c+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,ze)|0;var _t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,$=Math.imul(ve,ke),c=Math.imul(ve,Ge),c=c+Math.imul(be,ke)|0,x=Math.imul(be,Ge),$=$+Math.imul(Se,Le)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Ae,Le)|0,x=x+Math.imul(Ae,Ke)|0,$=$+Math.imul(_e,De)|0,c=c+Math.imul(_e,Ze)|0,c=c+Math.imul(we,De)|0,x=x+Math.imul(we,Ze)|0,$=$+Math.imul(he,Fe)|0,c=c+Math.imul(he,ze)|0,c=c+Math.imul(ge,Fe)|0,x=x+Math.imul(ge,ze)|0;var ct=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ct>>>26)|0,ct&=67108863,$=Math.imul(ve,Le),c=Math.imul(ve,Ke),c=c+Math.imul(be,Le)|0,x=Math.imul(be,Ke),$=$+Math.imul(Se,De)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Ae,De)|0,x=x+Math.imul(Ae,Ze)|0,$=$+Math.imul(_e,Fe)|0,c=c+Math.imul(_e,ze)|0,c=c+Math.imul(we,Fe)|0,x=x+Math.imul(we,ze)|0;var pt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(ve,De),c=Math.imul(ve,Ze),c=c+Math.imul(be,De)|0,x=Math.imul(be,Ze),$=$+Math.imul(Se,Fe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,ze)|0;var Et=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,$=Math.imul(ve,Fe),c=Math.imul(ve,ze),c=c+Math.imul(be,Fe)|0,x=Math.imul(be,ze);var xt=(O+$|0)+((c&8191)<<13)|0;return O=(x+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,A[0]=it,A[1]=rt,A[2]=mt,A[3]=bt,A[4]=wt,A[5]=St,A[6]=$t,A[7]=At,A[8]=Rt,A[9]=Mt,A[10]=ht,A[11]=yt,A[12]=gt,A[13]=dt,A[14]=_t,A[15]=ct,A[16]=pt,A[17]=Et,A[18]=xt,O!==0&&(A[19]=O,m.length++),m};Math.imul||(F=L);function q(T,u,v){v.negative=u.negative^T.negative,v.length=T.length+u.length;for(var m=0,b=0,M=0;M>>26)|0,b+=A>>>26,A&=67108863}v.words[M]=O,m=A,A=b}return m!==0?v.words[M]=m:v.length--,v.strip()}function H(T,u,v){var m=new D;return m.mulp(T,u,v)}a.prototype.mulTo=function(u,v){var m,b=this.length+u.length;return this.length===10&&u.length===10?m=F(this,u,v):b<63?m=L(this,u,v):b<1024?m=q(this,u,v):m=H(this,u,v),m};function D(T,u){this.x=T,this.y=u}D.prototype.makeRBT=function(u){for(var v=new Array(u),m=a.prototype._countBits(u)-1,b=0;b>=1;return b},D.prototype.permute=function(u,v,m,b,M,A){for(var O=0;O>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*v;A>=26,v+=b/67108864|0,v+=M>>>26,this.words[m]=M&67108863}return v!==0&&(this.words[m]=v,this.length++),this.length=u===0?1:this.length,this},a.prototype.muln=function(u){return this.clone().imuln(u)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(u){var v=B(u);if(v.length===0)return new a(1);for(var m=this,b=0;b=0);var v=u%26,m=(u-v)/26,b=67108863>>>26-v<<26-v,M;if(v!==0){var A=0;for(M=0;M>>26-v}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var b;v?b=(v-v%26)/26:b=0;var M=u%26,A=Math.min((u-M)/26,this.length),O=67108863^67108863>>>M<A)for(this.length-=A,c=0;c=0&&(x!==0||c>=b);c--){var N=this.words[c]|0;this.words[c]=x<<26-M|N>>>M,x=N&O}return $&&x!==0&&($.words[$.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(u,v,m){return o(this.negative===0),this.iushrn(u,v,m)},a.prototype.shln=function(u){return this.clone().ishln(u)},a.prototype.ushln=function(u){return this.clone().iushln(u)},a.prototype.shrn=function(u){return this.clone().ishrn(u)},a.prototype.ushrn=function(u){return this.clone().iushrn(u)},a.prototype.testn=function(u){o(typeof u=="number"&&u>=0);var v=u%26,m=(u-v)/26,b=1<=0);var v=u%26,m=(u-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(v!==0&&m++,this.length=Math.min(m,this.length),v!==0){var b=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(u){if(o(typeof u=="number"),o(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-($/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(O===0)return this.strip();for(o(O===-1),O=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(u,v){var m=this.length-u.length,b=this.clone(),M=u,A=M.words[M.length-1]|0,O=this._countBits(A);m=26-O,m!==0&&(M=M.ushln(m),b.iushln(m),A=M.words[M.length-1]|0);var $=b.length-M.length,c;if(v!=="mod"){c=new a(null),c.length=$+1,c.words=new Array(c.length);for(var x=0;x=0;z--){var oe=(b.words[M.length+z]|0)*67108864+(b.words[M.length+z-1]|0);for(oe=Math.min(oe/A|0,67108863),b._ishlnsubmul(M,oe,z);b.negative!==0;)oe--,b.negative=0,b._ishlnsubmul(M,1,z),b.isZero()||(b.negative^=1);c&&(c.words[z]=oe)}return c&&c.strip(),b.strip(),v!=="div"&&m!==0&&b.iushrn(m),{div:c||null,mod:b}},a.prototype.divmod=function(u,v,m){if(o(!u.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,M,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,v),v!=="mod"&&(b=A.div.neg()),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(u)),{div:b,mod:M}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),v),v!=="mod"&&(b=A.div.neg()),{div:b,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),v),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(u)),{div:A.div,mod:M}):u.length>this.length||this.cmp(u)<0?{div:new a(0),mod:this}:u.length===1?v==="div"?{div:this.divn(u.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new a(this.modn(u.words[0]))}:this._wordDiv(u,v)},a.prototype.div=function(u){return this.divmod(u,"div",!1).div},a.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},a.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},a.prototype.divRound=function(u){var v=this.divmod(u);if(v.mod.isZero())return v.div;var m=v.div.negative!==0?v.mod.isub(u):v.mod,b=u.ushrn(1),M=u.andln(1),A=m.cmp(b);return A<0||M===1&&A===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modn=function(u){o(u<=67108863);for(var v=(1<<26)%u,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%u;return m},a.prototype.idivn=function(u){o(u<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/u|0,v=b%u}return this.strip()},a.prototype.divn=function(u){return this.clone().idivn(u)},a.prototype.egcd=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=new a(0),O=new a(1),$=0;v.isEven()&&m.isEven();)v.iushrn(1),m.iushrn(1),++$;for(var c=m.clone(),x=v.clone();!v.isZero();){for(var N=0,z=1;!(v.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(v.iushrn(N);N-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(c),M.isub(x)),b.iushrn(1),M.iushrn(1);for(var oe=0,le=1;!(m.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(m.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(c),O.isub(x)),A.iushrn(1),O.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(A),M.isub(O)):(m.isub(v),A.isub(b),O.isub(M))}return{a:A,b:O,gcd:m.iushln($)}},a.prototype._invmp=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=m.clone();v.cmpn(1)>0&&m.cmpn(1)>0;){for(var O=0,$=1;!(v.words[0]&$)&&O<26;++O,$<<=1);if(O>0)for(v.iushrn(O);O-- >0;)b.isOdd()&&b.iadd(A),b.iushrn(1);for(var c=0,x=1;!(m.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(m.iushrn(c);c-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(M)):(m.isub(v),M.isub(b))}var N;return v.cmpn(1)===0?N=b:N=M,N.cmpn(0)<0&&N.iadd(u),N},a.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var v=this.clone(),m=u.clone();v.negative=0,m.negative=0;for(var b=0;v.isEven()&&m.isEven();b++)v.iushrn(1),m.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=v.cmp(m);if(M<0){var A=v;v=m,m=A}else if(M===0||m.cmpn(1)===0)break;v.isub(m)}while(!0);return m.iushln(b)},a.prototype.invm=function(u){return this.egcd(u).a.umod(u)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(u){return this.words[0]&u},a.prototype.bincn=function(u){o(typeof u=="number");var v=u%26,m=(u-v)/26,b=1<>>26,O&=67108863,this.words[A]=O}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(u){var v=u<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var m;if(this.length>1)m=1;else{v&&(u=-u),o(u<=67108863,"Number is too big");var b=this.words[0]|0;m=b===u?0:bu.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,M=u.words[m]|0;if(b!==M){bM&&(v=1);break}}return v},a.prototype.gtn=function(u){return this.cmpn(u)===1},a.prototype.gt=function(u){return this.cmp(u)===1},a.prototype.gten=function(u){return this.cmpn(u)>=0},a.prototype.gte=function(u){return this.cmp(u)>=0},a.prototype.ltn=function(u){return this.cmpn(u)===-1},a.prototype.lt=function(u){return this.cmp(u)===-1},a.prototype.lten=function(u){return this.cmpn(u)<=0},a.prototype.lte=function(u){return this.cmp(u)<=0},a.prototype.eqn=function(u){return this.cmpn(u)===0},a.prototype.eq=function(u){return this.cmp(u)===0},a.red=function(u){return new re(u)},a.prototype.toRed=function(u){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(u){return this.red=u,this},a.prototype.forceRed=function(u){return o(!this.red,"Already a number in reduction context"),this._forceRed(u)},a.prototype.redAdd=function(u){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},a.prototype.redIAdd=function(u){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},a.prototype.redSub=function(u){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},a.prototype.redISub=function(u){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},a.prototype.redShl=function(u){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},a.prototype.redMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},a.prototype.redIMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(u){return o(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var j={k256:null,p224:null,p192:null,p25519:null};function V(T,u){this.name=T,this.p=new a(u,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var u=new a(null);return u.words=new Array(Math.ceil(this.n/13)),u},V.prototype.ireduce=function(u){var v=u,m;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),m=v.bitLength();while(m>this.n);var b=m0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},V.prototype.split=function(u,v){u.iushrn(this.n,0,v)},V.prototype.imulK=function(u){return u.imul(this.k)};function Q(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Q,V),Q.prototype.split=function(u,v){for(var m=4194303,b=Math.min(u.length,9),M=0;M>>22,A=O}A>>>=22,u.words[M-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},Q.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var v=0,m=0;m>>=26,u.words[m]=M,v=b}return v!==0&&(u.words[u.length++]=v),u},a._prime=function(u){if(j[u])return j[u];var v;if(u==="k256")v=new Q;else if(u==="p224")v=new ae;else if(u==="p192")v=new ce;else if(u==="p25519")v=new ue;else throw new Error("Unknown prime "+u);return j[u]=v,v};function re(T){if(typeof T=="string"){var u=a._prime(T);this.m=u.p,this.prime=u}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}re.prototype._verify1=function(u){o(u.negative===0,"red works only with positives"),o(u.red,"red works only with red numbers")},re.prototype._verify2=function(u,v){o((u.negative|v.negative)===0,"red works only with positives"),o(u.red&&u.red===v.red,"red works only with red numbers")},re.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},re.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},re.prototype.add=function(u,v){this._verify2(u,v);var m=u.add(v);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},re.prototype.iadd=function(u,v){this._verify2(u,v);var m=u.iadd(v);return m.cmp(this.m)>=0&&m.isub(this.m),m},re.prototype.sub=function(u,v){this._verify2(u,v);var m=u.sub(v);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},re.prototype.isub=function(u,v){this._verify2(u,v);var m=u.isub(v);return m.cmpn(0)<0&&m.iadd(this.m),m},re.prototype.shl=function(u,v){return this._verify1(u),this.imod(u.ushln(v))},re.prototype.imul=function(u,v){return this._verify2(u,v),this.imod(u.imul(v))},re.prototype.mul=function(u,v){return this._verify2(u,v),this.imod(u.mul(v))},re.prototype.isqr=function(u){return this.imul(u,u.clone())},re.prototype.sqr=function(u){return this.mul(u,u)},re.prototype.sqrt=function(u){if(u.isZero())return u.clone();var v=this.m.andln(3);if(o(v%2===1),v===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(u,m)}for(var b=this.m.subn(1),M=0;!b.isZero()&&b.andln(1)===0;)M++,b.iushrn(1);o(!b.isZero());var A=new a(1).toRed(this),O=A.redNeg(),$=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);this.pow(c,$).cmp(O)!==0;)c.redIAdd(O);for(var x=this.pow(c,b),N=this.pow(u,b.addn(1).iushrn(1)),z=this.pow(u,b),oe=M;z.cmp(A)!==0;){for(var le=z,U=0;le.cmp(A)!==0;U++)le=le.redSqr();o(U=0;M--){for(var x=v.words[M],N=c-1;N>=0;N--){var z=x>>N&1;if(A!==b[0]&&(A=this.sqr(A)),z===0&&O===0){$=0;continue}O<<=1,O|=z,$++,!($!==m&&(M!==0||N!==0))&&(A=this.mul(A,b[O]),$=0,O=0)}c=26}return A},re.prototype.convertTo=function(u){var v=u.umod(this.m);return v===u?v.clone():v},re.prototype.convertFrom=function(u){var v=u.clone();return v.red=null,v},a.mont=function(u){return new pe(u)};function pe(T){re.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(pe,re),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var v=this.imod(u.mul(this.rinv));return v.red=null,v},pe.prototype.imul=function(u,v){if(u.isZero()||v.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,v){if(u.isZero()||v.isZero())return new a(0)._forceRed(this);var m=u.mul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var v=this.imod(u._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(e,commonjsGlobal)})(bn$5);var bnExports$5=bn$5.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var e;brorand.exports=function(l){return e||(e=new t(null)),e.generate(l)};function t(o){this.rand=o}if(brorand.exports.Rand=t,t.prototype.generate=function(l){return this._rand(l)},t.prototype._rand=function(l){if(this.rand.getBytes)return this.rand.getBytes(l);for(var a=new Uint8Array(l),d=0;d=0);return y},n.prototype._randrange=function(l,a){var d=a.sub(l);return l.add(this._randbelow(d))},n.prototype.test=function(l,a,d){var y=l.bitLength(),w=e.mont(l),_=new e(1).toRed(w);a||(a=Math.max(1,y/48|0));for(var S=l.subn(1),E=0;!S.testn(E);E++);for(var C=l.shrn(E),B=S.toRed(w),L=!0;a>0;a--){var F=this._randrange(new e(2),S);d&&d(F);var q=F.toRed(w).redPow(C);if(!(q.cmp(_)===0||q.cmp(B)===0)){for(var H=1;H0;a--){var B=this._randrange(new e(2),_),L=l.gcd(B);if(L.cmpn(1)!==0)return L;var F=B.toRed(y).redPow(E);if(!(F.cmp(w)===0||F.cmp(C)===0)){for(var q=1;qH;)j.ishrn(1);if(j.isEven()&&j.iadd(a),j.testn(1)||j.iadd(d),D.cmp(d)){if(!D.cmp(y))for(;j.mod(w).cmp(_);)j.iadd(E)}else for(;j.mod(n).cmp(S);)j.iadd(E);if(V=j.shrn(1),L(V)&&L(j)&&F(V)&&F(j)&&l.test(V)&&l.test(j))return j}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var e=bnExports$6,t=requireMr(),n=new t,o=new e(24),l=new e(11),a=new e(10),d=new e(3),y=new e(7),w=requireGeneratePrime(),_=browserExports;dh=L;function S(q,H){return H=H||"utf8",buffer$2.Buffer.isBuffer(q)||(q=new buffer$2.Buffer(q,H)),this._pub=new e(q),this}function E(q,H){return H=H||"utf8",buffer$2.Buffer.isBuffer(q)||(q=new buffer$2.Buffer(q,H)),this._priv=new e(q),this}var C={};function B(q,H){var D=H.toString("hex"),j=[D,q.toString(16)].join("_");if(j in C)return C[j];var V=0;if(q.isEven()||!w.simpleSieve||!w.fermatTest(q)||!n.test(q))return V+=1,D==="02"||D==="05"?V+=8:V+=4,C[j]=V,V;n.test(q.shrn(1))||(V+=2);var Q;switch(D){case"02":q.mod(o).cmp(l)&&(V+=8);break;case"05":Q=q.mod(a),Q.cmp(d)&&Q.cmp(y)&&(V+=8);break;default:V+=4}return C[j]=V,V}function L(q,H,D){this.setGenerator(H),this.__prime=new e(q),this._prime=e.mont(this.__prime),this._primeLen=q.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,D?(this.setPublicKey=S,this.setPrivateKey=E):this._primeCode=8}Object.defineProperty(L.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=B(this.__prime,this.__gen)),this._primeCode}}),L.prototype.generateKeys=function(){return this._priv||(this._priv=new e(_(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},L.prototype.computeSecret=function(q){q=new e(q),q=q.toRed(this._prime);var H=q.redPow(this._priv).fromRed(),D=new buffer$2.Buffer(H.toArray()),j=this.getPrime();if(D.length"u"}util$2.isPrimitive=isPrimitive;util$2.isBuffer=buffer$2.Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(e){function t(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}var n=safeBufferExports.Buffer,o=util$3;function l(a,d,y){a.copy(d,y)}e.exports=function(){function a(){t(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(y){var w={data:y,next:null};this.length>0?this.tail.next=w:this.head=w,this.tail=w,++this.length},a.prototype.unshift=function(y){var w={data:y,next:this.head};this.length===0&&(this.tail=w),this.head=w,++this.length},a.prototype.shift=function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(y){if(this.length===0)return"";for(var w=this.head,_=""+w.data;w=w.next;)_+=y+w.data;return _},a.prototype.concat=function(y){if(this.length===0)return n.alloc(0);for(var w=n.allocUnsafe(y>>>0),_=this.head,S=0;_;)l(_.data,w,S),S+=_.data.length,_=_.next;return w},a}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var a=o.inspect({length:this.length});return this.constructor.name+" "+a})}(BufferList)),BufferList.exports}var pna=processNextickArgsExports;function destroy(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return o||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,this,e)):pna.nextTick(emitErrorNT,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,n,a)):pna.nextTick(emitErrorNT,n,a):t&&t(a)}),this)}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(e,t){e.emit("error",t)}var destroy_1={destroy,undestroy},_stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var e=processNextickArgsExports;_stream_writable=F;function t(A){var O=this;this.next=null,this.entry=null,this.finish=function(){M(O,A)}}var n=!api$2.browser&&["v0.10","v0.9."].indexOf(api$2.version.slice(0,5))>-1?setImmediate:e.nextTick,o;F.WritableState=B;var l=Object.create(util$2);l.inherits=inherits_browserExports;var a={deprecate:browser$d},d=streamBrowser,y=safeBufferExports.Buffer,w=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _(A){return y.from(A)}function S(A){return y.isBuffer(A)||A instanceof w}var E=destroy_1;l.inherits(F,d);function C(){}function B(A,O){o=o||require_stream_duplex(),A=A||{};var $=O instanceof o;this.objectMode=!!A.objectMode,$&&(this.objectMode=this.objectMode||!!A.writableObjectMode);var c=A.highWaterMark,x=A.writableHighWaterMark,N=this.objectMode?16:16*1024;c||c===0?this.highWaterMark=c:$&&(x||x===0)?this.highWaterMark=x:this.highWaterMark=N,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var z=A.decodeStrings===!1;this.decodeStrings=!z,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){ce(O,oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}B.prototype.getBuffer=function(){for(var O=this.bufferedRequest,$=[];O;)$.push(O),O=O.next;return $},function(){try{Object.defineProperty(B.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var L;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(A){return L.call(this,A)?!0:this!==F?!1:A&&A._writableState instanceof B}})):L=function(A){return A instanceof this};function F(A){if(o=o||require_stream_duplex(),!L.call(F,this)&&!(this instanceof o))return new F(A);this._writableState=new B(A,this),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),d.call(this)}F.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function q(A,O){var $=new Error("write after end");A.emit("error",$),e.nextTick(O,$)}function H(A,O,$,c){var x=!0,N=!1;return $===null?N=new TypeError("May not write null values to stream"):typeof $!="string"&&$!==void 0&&!O.objectMode&&(N=new TypeError("Invalid non-string/buffer chunk")),N&&(A.emit("error",N),e.nextTick(c,N),x=!1),x}F.prototype.write=function(A,O,$){var c=this._writableState,x=!1,N=!c.objectMode&&S(A);return N&&!y.isBuffer(A)&&(A=_(A)),typeof O=="function"&&($=O,O=null),N?O="buffer":O||(O=c.defaultEncoding),typeof $!="function"&&($=C),c.ended?q(this,$):(N||H(this,c,A,$))&&(c.pendingcb++,x=j(this,c,N,A,O,$)),x},F.prototype.cork=function(){var A=this._writableState;A.corked++},F.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&pe(this,A))},F.prototype.setDefaultEncoding=function(O){if(typeof O=="string"&&(O=O.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((O+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+O);return this._writableState.defaultEncoding=O,this};function D(A,O,$){return!A.objectMode&&A.decodeStrings!==!1&&typeof O=="string"&&(O=y.from(O,$)),O}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function j(A,O,$,c,x,N){if(!$){var z=D(O,c,x);c!==z&&($=!0,x="buffer",c=z)}var oe=O.objectMode?1:c.length;O.length+=oe;var le=O.length0?(typeof Z!="string"&&!I.objectMode&&Object.getPrototypeOf(Z)!==a.prototype&&(Z=y(Z)),se?I.endEmitted?P.emit("error",new Error("stream.unshift() after end event")):V(P,I,Z,!0):I.ended?P.emit("error",new Error("stream.push() after EOF")):(I.reading=!1,I.decoder&&!ie?(Z=I.decoder.write(Z),I.objectMode||Z.length!==0?V(P,I,Z,!1):v(P,I)):V(P,I,Z,!1))):se||(I.reading=!1)}return ae(I)}function V(P,Z,ie,se){Z.flowing&&Z.length===0&&!Z.sync?(P.emit("data",ie),P.read(0)):(Z.length+=Z.objectMode?1:ie.length,se?Z.buffer.unshift(ie):Z.buffer.push(ie),Z.needReadable&&T(P)),v(P,Z)}function Q(P,Z){var ie;return!w(Z)&&typeof Z!="string"&&Z!==void 0&&!P.objectMode&&(ie=new TypeError("Invalid non-string/buffer chunk")),ie}function ae(P){return!P.ended&&(P.needReadable||P.length=ce?P=ce:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function re(P,Z){return P<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:P!==P?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(P>Z.highWaterMark&&(Z.highWaterMark=ue(P)),P<=Z.length?P:Z.ended?Z.length:(Z.needReadable=!0,0))}D.prototype.read=function(P){E("read",P),P=parseInt(P,10);var Z=this._readableState,ie=P;if(P!==0&&(Z.emittedReadable=!1),P===0&&Z.needReadable&&(Z.length>=Z.highWaterMark||Z.ended))return E("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?oe(this):T(this),null;if(P=re(P,Z),P===0&&Z.ended)return Z.length===0&&oe(this),null;var se=Z.needReadable;E("need readable",se),(Z.length===0||Z.length-P0?k=c(P,Z):k=null,k===null?(Z.needReadable=!0,P=0):Z.length-=P,Z.length===0&&(Z.ended||(Z.needReadable=!0),ie!==P&&Z.ended&&oe(this)),k!==null&&this.emit("data",k),k};function pe(P,Z){if(!Z.ended){if(Z.decoder){var ie=Z.decoder.end();ie&&ie.length&&(Z.buffer.push(ie),Z.length+=Z.objectMode?1:ie.length)}Z.ended=!0,T(P)}}function T(P){var Z=P._readableState;Z.needReadable=!1,Z.emittedReadable||(E("emitReadable",Z.flowing),Z.emittedReadable=!0,Z.sync?e.nextTick(u,P):u(P))}function u(P){E("emit readable"),P.emit("readable"),$(P)}function v(P,Z){Z.readingMore||(Z.readingMore=!0,e.nextTick(m,P,Z))}function m(P,Z){for(var ie=Z.length;!Z.reading&&!Z.flowing&&!Z.ended&&Z.length1&&U(se.pipes,P)!==-1)&&!J&&(E("false write response, pause",se.awaitDrain),se.awaitDrain++,X=!0),ie.pause())}function me(_e){E("onerror",_e),Re(),P.removeListener("error",me),o(P,"error")===0&&P.emit("error",_e)}q(P,"error",me);function he(){P.removeListener("finish",ge),Re()}P.once("close",he);function ge(){E("onfinish"),P.removeListener("close",he),Re()}P.once("finish",ge);function Re(){E("unpipe"),ie.unpipe(P)}return P.emit("pipe",ie),se.flowing||(E("pipe resume"),ie.resume()),P};function b(P){return function(){var Z=P._readableState;E("pipeOnDrain",Z.awaitDrain),Z.awaitDrain&&Z.awaitDrain--,Z.awaitDrain===0&&o(P,"data")&&(Z.flowing=!0,$(P))}}D.prototype.unpipe=function(P){var Z=this._readableState,ie={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return P&&P!==Z.pipes?this:(P||(P=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,P&&P.emit("unpipe",this,ie),this);if(!P){var se=Z.pipes,k=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var I=0;I=Z.length?(Z.decoder?ie=Z.buffer.join(""):Z.buffer.length===1?ie=Z.buffer.head.data:ie=Z.buffer.concat(Z.length),Z.buffer.clear()):ie=x(P,Z.buffer,Z.decoder),ie}function x(P,Z,ie){var se;return PI.length?I.length:P;if(te===I.length?k+=I:k+=I.slice(0,P),P-=te,P===0){te===I.length?(++se,ie.next?Z.head=ie.next:Z.head=Z.tail=null):(Z.head=ie,ie.data=I.slice(te));break}++se}return Z.length-=se,k}function z(P,Z){var ie=a.allocUnsafe(P),se=Z.head,k=1;for(se.data.copy(ie),P-=se.data.length;se=se.next;){var I=se.data,te=P>I.length?I.length:P;if(I.copy(ie,ie.length-P,0,te),P-=te,P===0){te===I.length?(++k,se.next?Z.head=se.next:Z.head=Z.tail=null):(Z.head=se,se.data=I.slice(te));break}++k}return Z.length-=k,ie}function oe(P){var Z=P._readableState;if(Z.length>0)throw new Error('"endReadable()" called on non-empty stream');Z.endEmitted||(Z.ended=!0,e.nextTick(le,Z,P))}function le(P,Z){!P.endEmitted&&P.length===0&&(P.endEmitted=!0,Z.readable=!1,Z.emit("end"))}function U(P,Z){for(var ie=0,se=P.length;ie0?m:b},a.min=function(m,b){return m.cmp(b)<0?m:b},a.prototype._init=function(m,b,M){if(typeof m=="number")return this._initNumber(m,b,M);if(typeof m=="object")return this._initArray(m,b,M);b==="hex"&&(b=16),o(b===(b|0)&&b>=2&&b<=36),m=m.toString().replace(/\s+/g,"");var A=0;m[0]==="-"&&(A++,this.negative=1),A=0;A-=3)$=m[A]|m[A-1]<<8|m[A-2]<<16,this.words[O]|=$<>>26-c&67108863,c+=24,c>=26&&(c-=26,O++);else if(M==="le")for(A=0,O=0;A>>26-c&67108863,c+=24,c>=26&&(c-=26,O++);return this._strip()};function y(v,m){var b=v.charCodeAt(m);if(b>=48&&b<=57)return b-48;if(b>=65&&b<=70)return b-55;if(b>=97&&b<=102)return b-87;o(!1,"Invalid character in "+v)}function w(v,m,b){var M=y(v,b);return b-1>=m&&(M|=y(v,b-1)<<4),M}a.prototype._parseHex=function(m,b,M){this.length=Math.ceil((m.length-b)/6),this.words=new Array(this.length);for(var A=0;A=b;A-=2)c=w(m,b,A)<=18?(O-=18,$+=1,this.words[$]|=c>>>26):O+=8;else{var x=m.length-b;for(A=x%2===0?b+1:b;A=18?(O-=18,$+=1,this.words[$]|=c>>>26):O+=8}this._strip()};function _(v,m,b,M){for(var A=0,O=0,$=Math.min(v.length,b),c=m;c<$;c++){var x=v.charCodeAt(c)-48;A*=M,x>=49?O=x-49+10:x>=17?O=x-17+10:O=x,o(x>=0&&O1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=E}catch{a.prototype.inspect=E}else a.prototype.inspect=E;function E(){return(this.red?""}var C=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],B=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],L=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(m,b){m=m||10,b=b|0||1;var M;if(m===16||m==="hex"){M="";for(var A=0,O=0,$=0;$>>24-A&16777215,A+=2,A>=26&&(A-=26,$--),O!==0||$!==this.length-1?M=C[6-x.length]+x+M:M=x+M}for(O!==0&&(M=O.toString(16)+M);M.length%b!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}if(m===(m|0)&&m>=2&&m<=36){var N=B[m],z=L[m];M="";var oe=this.clone();for(oe.negative=0;!oe.isZero();){var le=oe.modrn(z).toString(m);oe=oe.idivn(z),oe.isZero()?M=le+M:M=C[N-le.length]+le+M}for(this.isZero()&&(M="0"+M);M.length%b!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var m=this.words[0];return this.length===2?m+=this.words[1]*67108864:this.length===3&&this.words[2]===1?m+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-m:m},a.prototype.toJSON=function(){return this.toString(16,2)},d&&(a.prototype.toBuffer=function(m,b){return this.toArrayLike(d,m,b)}),a.prototype.toArray=function(m,b){return this.toArrayLike(Array,m,b)};var F=function(m,b){return m.allocUnsafe?m.allocUnsafe(b):new m(b)};a.prototype.toArrayLike=function(m,b,M){this._strip();var A=this.byteLength(),O=M||Math.max(1,A);o(A<=O,"byte array longer than desired length"),o(O>0,"Requested array length <= 0");var $=F(m,O),c=b==="le"?"LE":"BE";return this["_toArrayLike"+c]($,A),$},a.prototype._toArrayLikeLE=function(m,b){for(var M=0,A=0,O=0,$=0;O>8&255),M>16&255),$===6?(M>24&255),A=0,$=0):(A=c>>>24,$+=2)}if(M=0&&(m[M--]=c>>8&255),M>=0&&(m[M--]=c>>16&255),$===6?(M>=0&&(m[M--]=c>>24&255),A=0,$=0):(A=c>>>24,$+=2)}if(M>=0)for(m[M--]=A;M>=0;)m[M--]=0},Math.clz32?a.prototype._countBits=function(m){return 32-Math.clz32(m)}:a.prototype._countBits=function(m){var b=m,M=0;return b>=4096&&(M+=13,b>>>=13),b>=64&&(M+=7,b>>>=7),b>=8&&(M+=4,b>>>=4),b>=2&&(M+=2,b>>>=2),M+b},a.prototype._zeroBits=function(m){if(m===0)return 26;var b=m,M=0;return b&8191||(M+=13,b>>>=13),b&127||(M+=7,b>>>=7),b&15||(M+=4,b>>>=4),b&3||(M+=2,b>>>=2),b&1||M++,M},a.prototype.bitLength=function(){var m=this.words[this.length-1],b=this._countBits(m);return(this.length-1)*26+b};function q(v){for(var m=new Array(v.bitLength()),b=0;b>>A&1}return m}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,b=0;bm.length?this.clone().ior(m):m.clone().ior(this)},a.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},a.prototype.iuand=function(m){var b;this.length>m.length?b=m:b=this;for(var M=0;Mm.length?this.clone().iand(m):m.clone().iand(this)},a.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},a.prototype.iuxor=function(m){var b,M;this.length>m.length?(b=this,M=m):(b=m,M=this);for(var A=0;Am.length?this.clone().ixor(m):m.clone().ixor(this)},a.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},a.prototype.inotn=function(m){o(typeof m=="number"&&m>=0);var b=Math.ceil(m/26)|0,M=m%26;this._expand(b),M>0&&b--;for(var A=0;A0&&(this.words[A]=~this.words[A]&67108863>>26-M),this._strip()},a.prototype.notn=function(m){return this.clone().inotn(m)},a.prototype.setn=function(m,b){o(typeof m=="number"&&m>=0);var M=m/26|0,A=m%26;return this._expand(M+1),b?this.words[M]=this.words[M]|1<m.length?(M=this,A=m):(M=m,A=this);for(var O=0,$=0;$>>26;for(;O!==0&&$>>26;if(this.length=M.length,O!==0)this.words[this.length]=O,this.length++;else if(M!==this)for(;$m.length?this.clone().iadd(m):m.clone().iadd(this)},a.prototype.isub=function(m){if(m.negative!==0){m.negative=0;var b=this.iadd(m);return m.negative=1,b._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var M=this.cmp(m);if(M===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,O;M>0?(A=this,O=m):(A=m,O=this);for(var $=0,c=0;c>26,this.words[c]=b&67108863;for(;$!==0&&c>26,this.words[c]=b&67108863;if($===0&&c>>26,oe=x&67108863,le=Math.min(N,m.length-1),U=Math.max(0,N-v.length+1);U<=le;U++){var P=N-U|0;A=v.words[P]|0,O=m.words[U]|0,$=A*O+oe,z+=$/67108864|0,oe=$&67108863}b.words[N]=oe|0,x=z|0}return x!==0?b.words[N]=x|0:b.length--,b._strip()}var D=function(m,b,M){var A=m.words,O=b.words,$=M.words,c=0,x,N,z,oe=A[0]|0,le=oe&8191,U=oe>>>13,P=A[1]|0,Z=P&8191,ie=P>>>13,se=A[2]|0,k=se&8191,I=se>>>13,te=A[3]|0,ee=te&8191,fe=te>>>13,J=A[4]|0,Y=J&8191,X=J>>>13,ne=A[5]|0,me=ne&8191,he=ne>>>13,ge=A[6]|0,Re=ge&8191,_e=ge>>>13,we=A[7]|0,qe=we&8191,Se=we>>>13,Ae=A[8]|0,Me=Ae&8191,ve=Ae>>>13,be=A[9]|0,Pe=be&8191,$e=be>>>13,Te=O[0]|0,Je=Te&8191,Oe=Te>>>13,Ie=O[1]|0,Ye=Ie&8191,xe=Ie>>>13,Ce=O[2]|0,Qe=Ce&8191,Be=Ce>>>13,je=O[3]|0,nt=je&8191,Ne=je>>>13,Ve=O[4]|0,ot=Ve&8191,He=Ve>>>13,We=O[5]|0,st=We&8191,ke=We>>>13,Ge=O[6]|0,lt=Ge&8191,Le=Ge>>>13,Ke=O[7]|0,ut=Ke&8191,De=Ke>>>13,Ze=O[8]|0,at=Ze&8191,Fe=Ze>>>13,ze=O[9]|0,it=ze&8191,rt=ze>>>13;M.negative=m.negative^b.negative,M.length=19,x=Math.imul(le,Je),N=Math.imul(le,Oe),N=N+Math.imul(U,Je)|0,z=Math.imul(U,Oe);var mt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(Z,Je),N=Math.imul(Z,Oe),N=N+Math.imul(ie,Je)|0,z=Math.imul(ie,Oe),x=x+Math.imul(le,Ye)|0,N=N+Math.imul(le,xe)|0,N=N+Math.imul(U,Ye)|0,z=z+Math.imul(U,xe)|0;var bt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(bt>>>26)|0,bt&=67108863,x=Math.imul(k,Je),N=Math.imul(k,Oe),N=N+Math.imul(I,Je)|0,z=Math.imul(I,Oe),x=x+Math.imul(Z,Ye)|0,N=N+Math.imul(Z,xe)|0,N=N+Math.imul(ie,Ye)|0,z=z+Math.imul(ie,xe)|0,x=x+Math.imul(le,Qe)|0,N=N+Math.imul(le,Be)|0,N=N+Math.imul(U,Qe)|0,z=z+Math.imul(U,Be)|0;var wt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ee,Je),N=Math.imul(ee,Oe),N=N+Math.imul(fe,Je)|0,z=Math.imul(fe,Oe),x=x+Math.imul(k,Ye)|0,N=N+Math.imul(k,xe)|0,N=N+Math.imul(I,Ye)|0,z=z+Math.imul(I,xe)|0,x=x+Math.imul(Z,Qe)|0,N=N+Math.imul(Z,Be)|0,N=N+Math.imul(ie,Qe)|0,z=z+Math.imul(ie,Be)|0,x=x+Math.imul(le,nt)|0,N=N+Math.imul(le,Ne)|0,N=N+Math.imul(U,nt)|0,z=z+Math.imul(U,Ne)|0;var St=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(Y,Je),N=Math.imul(Y,Oe),N=N+Math.imul(X,Je)|0,z=Math.imul(X,Oe),x=x+Math.imul(ee,Ye)|0,N=N+Math.imul(ee,xe)|0,N=N+Math.imul(fe,Ye)|0,z=z+Math.imul(fe,xe)|0,x=x+Math.imul(k,Qe)|0,N=N+Math.imul(k,Be)|0,N=N+Math.imul(I,Qe)|0,z=z+Math.imul(I,Be)|0,x=x+Math.imul(Z,nt)|0,N=N+Math.imul(Z,Ne)|0,N=N+Math.imul(ie,nt)|0,z=z+Math.imul(ie,Ne)|0,x=x+Math.imul(le,ot)|0,N=N+Math.imul(le,He)|0,N=N+Math.imul(U,ot)|0,z=z+Math.imul(U,He)|0;var $t=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+($t>>>26)|0,$t&=67108863,x=Math.imul(me,Je),N=Math.imul(me,Oe),N=N+Math.imul(he,Je)|0,z=Math.imul(he,Oe),x=x+Math.imul(Y,Ye)|0,N=N+Math.imul(Y,xe)|0,N=N+Math.imul(X,Ye)|0,z=z+Math.imul(X,xe)|0,x=x+Math.imul(ee,Qe)|0,N=N+Math.imul(ee,Be)|0,N=N+Math.imul(fe,Qe)|0,z=z+Math.imul(fe,Be)|0,x=x+Math.imul(k,nt)|0,N=N+Math.imul(k,Ne)|0,N=N+Math.imul(I,nt)|0,z=z+Math.imul(I,Ne)|0,x=x+Math.imul(Z,ot)|0,N=N+Math.imul(Z,He)|0,N=N+Math.imul(ie,ot)|0,z=z+Math.imul(ie,He)|0,x=x+Math.imul(le,st)|0,N=N+Math.imul(le,ke)|0,N=N+Math.imul(U,st)|0,z=z+Math.imul(U,ke)|0;var At=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(At>>>26)|0,At&=67108863,x=Math.imul(Re,Je),N=Math.imul(Re,Oe),N=N+Math.imul(_e,Je)|0,z=Math.imul(_e,Oe),x=x+Math.imul(me,Ye)|0,N=N+Math.imul(me,xe)|0,N=N+Math.imul(he,Ye)|0,z=z+Math.imul(he,xe)|0,x=x+Math.imul(Y,Qe)|0,N=N+Math.imul(Y,Be)|0,N=N+Math.imul(X,Qe)|0,z=z+Math.imul(X,Be)|0,x=x+Math.imul(ee,nt)|0,N=N+Math.imul(ee,Ne)|0,N=N+Math.imul(fe,nt)|0,z=z+Math.imul(fe,Ne)|0,x=x+Math.imul(k,ot)|0,N=N+Math.imul(k,He)|0,N=N+Math.imul(I,ot)|0,z=z+Math.imul(I,He)|0,x=x+Math.imul(Z,st)|0,N=N+Math.imul(Z,ke)|0,N=N+Math.imul(ie,st)|0,z=z+Math.imul(ie,ke)|0,x=x+Math.imul(le,lt)|0,N=N+Math.imul(le,Le)|0,N=N+Math.imul(U,lt)|0,z=z+Math.imul(U,Le)|0;var Rt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,x=Math.imul(qe,Je),N=Math.imul(qe,Oe),N=N+Math.imul(Se,Je)|0,z=Math.imul(Se,Oe),x=x+Math.imul(Re,Ye)|0,N=N+Math.imul(Re,xe)|0,N=N+Math.imul(_e,Ye)|0,z=z+Math.imul(_e,xe)|0,x=x+Math.imul(me,Qe)|0,N=N+Math.imul(me,Be)|0,N=N+Math.imul(he,Qe)|0,z=z+Math.imul(he,Be)|0,x=x+Math.imul(Y,nt)|0,N=N+Math.imul(Y,Ne)|0,N=N+Math.imul(X,nt)|0,z=z+Math.imul(X,Ne)|0,x=x+Math.imul(ee,ot)|0,N=N+Math.imul(ee,He)|0,N=N+Math.imul(fe,ot)|0,z=z+Math.imul(fe,He)|0,x=x+Math.imul(k,st)|0,N=N+Math.imul(k,ke)|0,N=N+Math.imul(I,st)|0,z=z+Math.imul(I,ke)|0,x=x+Math.imul(Z,lt)|0,N=N+Math.imul(Z,Le)|0,N=N+Math.imul(ie,lt)|0,z=z+Math.imul(ie,Le)|0,x=x+Math.imul(le,ut)|0,N=N+Math.imul(le,De)|0,N=N+Math.imul(U,ut)|0,z=z+Math.imul(U,De)|0;var Mt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,x=Math.imul(Me,Je),N=Math.imul(Me,Oe),N=N+Math.imul(ve,Je)|0,z=Math.imul(ve,Oe),x=x+Math.imul(qe,Ye)|0,N=N+Math.imul(qe,xe)|0,N=N+Math.imul(Se,Ye)|0,z=z+Math.imul(Se,xe)|0,x=x+Math.imul(Re,Qe)|0,N=N+Math.imul(Re,Be)|0,N=N+Math.imul(_e,Qe)|0,z=z+Math.imul(_e,Be)|0,x=x+Math.imul(me,nt)|0,N=N+Math.imul(me,Ne)|0,N=N+Math.imul(he,nt)|0,z=z+Math.imul(he,Ne)|0,x=x+Math.imul(Y,ot)|0,N=N+Math.imul(Y,He)|0,N=N+Math.imul(X,ot)|0,z=z+Math.imul(X,He)|0,x=x+Math.imul(ee,st)|0,N=N+Math.imul(ee,ke)|0,N=N+Math.imul(fe,st)|0,z=z+Math.imul(fe,ke)|0,x=x+Math.imul(k,lt)|0,N=N+Math.imul(k,Le)|0,N=N+Math.imul(I,lt)|0,z=z+Math.imul(I,Le)|0,x=x+Math.imul(Z,ut)|0,N=N+Math.imul(Z,De)|0,N=N+Math.imul(ie,ut)|0,z=z+Math.imul(ie,De)|0,x=x+Math.imul(le,at)|0,N=N+Math.imul(le,Fe)|0,N=N+Math.imul(U,at)|0,z=z+Math.imul(U,Fe)|0;var ht=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(ht>>>26)|0,ht&=67108863,x=Math.imul(Pe,Je),N=Math.imul(Pe,Oe),N=N+Math.imul($e,Je)|0,z=Math.imul($e,Oe),x=x+Math.imul(Me,Ye)|0,N=N+Math.imul(Me,xe)|0,N=N+Math.imul(ve,Ye)|0,z=z+Math.imul(ve,xe)|0,x=x+Math.imul(qe,Qe)|0,N=N+Math.imul(qe,Be)|0,N=N+Math.imul(Se,Qe)|0,z=z+Math.imul(Se,Be)|0,x=x+Math.imul(Re,nt)|0,N=N+Math.imul(Re,Ne)|0,N=N+Math.imul(_e,nt)|0,z=z+Math.imul(_e,Ne)|0,x=x+Math.imul(me,ot)|0,N=N+Math.imul(me,He)|0,N=N+Math.imul(he,ot)|0,z=z+Math.imul(he,He)|0,x=x+Math.imul(Y,st)|0,N=N+Math.imul(Y,ke)|0,N=N+Math.imul(X,st)|0,z=z+Math.imul(X,ke)|0,x=x+Math.imul(ee,lt)|0,N=N+Math.imul(ee,Le)|0,N=N+Math.imul(fe,lt)|0,z=z+Math.imul(fe,Le)|0,x=x+Math.imul(k,ut)|0,N=N+Math.imul(k,De)|0,N=N+Math.imul(I,ut)|0,z=z+Math.imul(I,De)|0,x=x+Math.imul(Z,at)|0,N=N+Math.imul(Z,Fe)|0,N=N+Math.imul(ie,at)|0,z=z+Math.imul(ie,Fe)|0,x=x+Math.imul(le,it)|0,N=N+Math.imul(le,rt)|0,N=N+Math.imul(U,it)|0,z=z+Math.imul(U,rt)|0;var yt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(Pe,Ye),N=Math.imul(Pe,xe),N=N+Math.imul($e,Ye)|0,z=Math.imul($e,xe),x=x+Math.imul(Me,Qe)|0,N=N+Math.imul(Me,Be)|0,N=N+Math.imul(ve,Qe)|0,z=z+Math.imul(ve,Be)|0,x=x+Math.imul(qe,nt)|0,N=N+Math.imul(qe,Ne)|0,N=N+Math.imul(Se,nt)|0,z=z+Math.imul(Se,Ne)|0,x=x+Math.imul(Re,ot)|0,N=N+Math.imul(Re,He)|0,N=N+Math.imul(_e,ot)|0,z=z+Math.imul(_e,He)|0,x=x+Math.imul(me,st)|0,N=N+Math.imul(me,ke)|0,N=N+Math.imul(he,st)|0,z=z+Math.imul(he,ke)|0,x=x+Math.imul(Y,lt)|0,N=N+Math.imul(Y,Le)|0,N=N+Math.imul(X,lt)|0,z=z+Math.imul(X,Le)|0,x=x+Math.imul(ee,ut)|0,N=N+Math.imul(ee,De)|0,N=N+Math.imul(fe,ut)|0,z=z+Math.imul(fe,De)|0,x=x+Math.imul(k,at)|0,N=N+Math.imul(k,Fe)|0,N=N+Math.imul(I,at)|0,z=z+Math.imul(I,Fe)|0,x=x+Math.imul(Z,it)|0,N=N+Math.imul(Z,rt)|0,N=N+Math.imul(ie,it)|0,z=z+Math.imul(ie,rt)|0;var gt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(gt>>>26)|0,gt&=67108863,x=Math.imul(Pe,Qe),N=Math.imul(Pe,Be),N=N+Math.imul($e,Qe)|0,z=Math.imul($e,Be),x=x+Math.imul(Me,nt)|0,N=N+Math.imul(Me,Ne)|0,N=N+Math.imul(ve,nt)|0,z=z+Math.imul(ve,Ne)|0,x=x+Math.imul(qe,ot)|0,N=N+Math.imul(qe,He)|0,N=N+Math.imul(Se,ot)|0,z=z+Math.imul(Se,He)|0,x=x+Math.imul(Re,st)|0,N=N+Math.imul(Re,ke)|0,N=N+Math.imul(_e,st)|0,z=z+Math.imul(_e,ke)|0,x=x+Math.imul(me,lt)|0,N=N+Math.imul(me,Le)|0,N=N+Math.imul(he,lt)|0,z=z+Math.imul(he,Le)|0,x=x+Math.imul(Y,ut)|0,N=N+Math.imul(Y,De)|0,N=N+Math.imul(X,ut)|0,z=z+Math.imul(X,De)|0,x=x+Math.imul(ee,at)|0,N=N+Math.imul(ee,Fe)|0,N=N+Math.imul(fe,at)|0,z=z+Math.imul(fe,Fe)|0,x=x+Math.imul(k,it)|0,N=N+Math.imul(k,rt)|0,N=N+Math.imul(I,it)|0,z=z+Math.imul(I,rt)|0;var dt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(dt>>>26)|0,dt&=67108863,x=Math.imul(Pe,nt),N=Math.imul(Pe,Ne),N=N+Math.imul($e,nt)|0,z=Math.imul($e,Ne),x=x+Math.imul(Me,ot)|0,N=N+Math.imul(Me,He)|0,N=N+Math.imul(ve,ot)|0,z=z+Math.imul(ve,He)|0,x=x+Math.imul(qe,st)|0,N=N+Math.imul(qe,ke)|0,N=N+Math.imul(Se,st)|0,z=z+Math.imul(Se,ke)|0,x=x+Math.imul(Re,lt)|0,N=N+Math.imul(Re,Le)|0,N=N+Math.imul(_e,lt)|0,z=z+Math.imul(_e,Le)|0,x=x+Math.imul(me,ut)|0,N=N+Math.imul(me,De)|0,N=N+Math.imul(he,ut)|0,z=z+Math.imul(he,De)|0,x=x+Math.imul(Y,at)|0,N=N+Math.imul(Y,Fe)|0,N=N+Math.imul(X,at)|0,z=z+Math.imul(X,Fe)|0,x=x+Math.imul(ee,it)|0,N=N+Math.imul(ee,rt)|0,N=N+Math.imul(fe,it)|0,z=z+Math.imul(fe,rt)|0;var _t=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(Pe,ot),N=Math.imul(Pe,He),N=N+Math.imul($e,ot)|0,z=Math.imul($e,He),x=x+Math.imul(Me,st)|0,N=N+Math.imul(Me,ke)|0,N=N+Math.imul(ve,st)|0,z=z+Math.imul(ve,ke)|0,x=x+Math.imul(qe,lt)|0,N=N+Math.imul(qe,Le)|0,N=N+Math.imul(Se,lt)|0,z=z+Math.imul(Se,Le)|0,x=x+Math.imul(Re,ut)|0,N=N+Math.imul(Re,De)|0,N=N+Math.imul(_e,ut)|0,z=z+Math.imul(_e,De)|0,x=x+Math.imul(me,at)|0,N=N+Math.imul(me,Fe)|0,N=N+Math.imul(he,at)|0,z=z+Math.imul(he,Fe)|0,x=x+Math.imul(Y,it)|0,N=N+Math.imul(Y,rt)|0,N=N+Math.imul(X,it)|0,z=z+Math.imul(X,rt)|0;var ct=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(ct>>>26)|0,ct&=67108863,x=Math.imul(Pe,st),N=Math.imul(Pe,ke),N=N+Math.imul($e,st)|0,z=Math.imul($e,ke),x=x+Math.imul(Me,lt)|0,N=N+Math.imul(Me,Le)|0,N=N+Math.imul(ve,lt)|0,z=z+Math.imul(ve,Le)|0,x=x+Math.imul(qe,ut)|0,N=N+Math.imul(qe,De)|0,N=N+Math.imul(Se,ut)|0,z=z+Math.imul(Se,De)|0,x=x+Math.imul(Re,at)|0,N=N+Math.imul(Re,Fe)|0,N=N+Math.imul(_e,at)|0,z=z+Math.imul(_e,Fe)|0,x=x+Math.imul(me,it)|0,N=N+Math.imul(me,rt)|0,N=N+Math.imul(he,it)|0,z=z+Math.imul(he,rt)|0;var pt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(pt>>>26)|0,pt&=67108863,x=Math.imul(Pe,lt),N=Math.imul(Pe,Le),N=N+Math.imul($e,lt)|0,z=Math.imul($e,Le),x=x+Math.imul(Me,ut)|0,N=N+Math.imul(Me,De)|0,N=N+Math.imul(ve,ut)|0,z=z+Math.imul(ve,De)|0,x=x+Math.imul(qe,at)|0,N=N+Math.imul(qe,Fe)|0,N=N+Math.imul(Se,at)|0,z=z+Math.imul(Se,Fe)|0,x=x+Math.imul(Re,it)|0,N=N+Math.imul(Re,rt)|0,N=N+Math.imul(_e,it)|0,z=z+Math.imul(_e,rt)|0;var Et=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(Et>>>26)|0,Et&=67108863,x=Math.imul(Pe,ut),N=Math.imul(Pe,De),N=N+Math.imul($e,ut)|0,z=Math.imul($e,De),x=x+Math.imul(Me,at)|0,N=N+Math.imul(Me,Fe)|0,N=N+Math.imul(ve,at)|0,z=z+Math.imul(ve,Fe)|0,x=x+Math.imul(qe,it)|0,N=N+Math.imul(qe,rt)|0,N=N+Math.imul(Se,it)|0,z=z+Math.imul(Se,rt)|0;var xt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(xt>>>26)|0,xt&=67108863,x=Math.imul(Pe,at),N=Math.imul(Pe,Fe),N=N+Math.imul($e,at)|0,z=Math.imul($e,Fe),x=x+Math.imul(Me,it)|0,N=N+Math.imul(Me,rt)|0,N=N+Math.imul(ve,it)|0,z=z+Math.imul(ve,rt)|0;var kt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(Pe,it),N=Math.imul(Pe,rt),N=N+Math.imul($e,it)|0,z=Math.imul($e,rt);var Ot=(c+x|0)+((N&8191)<<13)|0;return c=(z+(N>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,$[0]=mt,$[1]=bt,$[2]=wt,$[3]=St,$[4]=$t,$[5]=At,$[6]=Rt,$[7]=Mt,$[8]=ht,$[9]=yt,$[10]=gt,$[11]=dt,$[12]=_t,$[13]=ct,$[14]=pt,$[15]=Et,$[16]=xt,$[17]=kt,$[18]=Ot,c!==0&&($[19]=c,M.length++),M};Math.imul||(D=H);function j(v,m,b){b.negative=m.negative^v.negative,b.length=v.length+m.length;for(var M=0,A=0,O=0;O>>26)|0,A+=$>>>26,$&=67108863}b.words[O]=c,M=$,$=A}return M!==0?b.words[O]=M:b.length--,b._strip()}function V(v,m,b){return j(v,m,b)}a.prototype.mulTo=function(m,b){var M,A=this.length+m.length;return this.length===10&&m.length===10?M=D(this,m,b):A<63?M=H(this,m,b):A<1024?M=j(this,m,b):M=V(this,m,b),M},a.prototype.mul=function(m){var b=new a(null);return b.words=new Array(this.length+m.length),this.mulTo(m,b)},a.prototype.mulf=function(m){var b=new a(null);return b.words=new Array(this.length+m.length),V(this,m,b)},a.prototype.imul=function(m){return this.clone().mulTo(m,this)},a.prototype.imuln=function(m){var b=m<0;b&&(m=-m),o(typeof m=="number"),o(m<67108864);for(var M=0,A=0;A>=26,M+=O/67108864|0,M+=$>>>26,this.words[A]=$&67108863}return M!==0&&(this.words[A]=M,this.length++),this.length=m===0?1:this.length,b?this.ineg():this},a.prototype.muln=function(m){return this.clone().imuln(m)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(m){var b=q(m);if(b.length===0)return new a(1);for(var M=this,A=0;A=0);var b=m%26,M=(m-b)/26,A=67108863>>>26-b<<26-b,O;if(b!==0){var $=0;for(O=0;O>>26-b}$&&(this.words[O]=$,this.length++)}if(M!==0){for(O=this.length-1;O>=0;O--)this.words[O+M]=this.words[O];for(O=0;O=0);var A;b?A=(b-b%26)/26:A=0;var O=m%26,$=Math.min((m-O)/26,this.length),c=67108863^67108863>>>O<$)for(this.length-=$,N=0;N=0&&(z!==0||N>=A);N--){var oe=this.words[N]|0;this.words[N]=z<<26-O|oe>>>O,z=oe&c}return x&&z!==0&&(x.words[x.length++]=z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(m,b,M){return o(this.negative===0),this.iushrn(m,b,M)},a.prototype.shln=function(m){return this.clone().ishln(m)},a.prototype.ushln=function(m){return this.clone().iushln(m)},a.prototype.shrn=function(m){return this.clone().ishrn(m)},a.prototype.ushrn=function(m){return this.clone().iushrn(m)},a.prototype.testn=function(m){o(typeof m=="number"&&m>=0);var b=m%26,M=(m-b)/26,A=1<=0);var b=m%26,M=(m-b)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=M)return this;if(b!==0&&M++,this.length=Math.min(M,this.length),b!==0){var A=67108863^67108863>>>b<=67108864;b++)this.words[b]-=67108864,b===this.length-1?this.words[b+1]=1:this.words[b+1]++;return this.length=Math.max(this.length,b+1),this},a.prototype.isubn=function(m){if(o(typeof m=="number"),o(m<67108864),m<0)return this.iaddn(-m);if(this.negative!==0)return this.negative=0,this.iaddn(m),this.negative=1,this;if(this.words[0]-=m,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var b=0;b>26)-(x/67108864|0),this.words[O+M]=$&67108863}for(;O>26,this.words[O+M]=$&67108863;if(c===0)return this._strip();for(o(c===-1),c=0,O=0;O>26,this.words[O]=$&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(m,b){var M=this.length-m.length,A=this.clone(),O=m,$=O.words[O.length-1]|0,c=this._countBits($);M=26-c,M!==0&&(O=O.ushln(M),A.iushln(M),$=O.words[O.length-1]|0);var x=A.length-O.length,N;if(b!=="mod"){N=new a(null),N.length=x+1,N.words=new Array(N.length);for(var z=0;z=0;le--){var U=(A.words[O.length+le]|0)*67108864+(A.words[O.length+le-1]|0);for(U=Math.min(U/$|0,67108863),A._ishlnsubmul(O,U,le);A.negative!==0;)U--,A.negative=0,A._ishlnsubmul(O,1,le),A.isZero()||(A.negative^=1);N&&(N.words[le]=U)}return N&&N._strip(),A._strip(),b!=="div"&&M!==0&&A.iushrn(M),{div:N||null,mod:A}},a.prototype.divmod=function(m,b,M){if(o(!m.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var A,O,$;return this.negative!==0&&m.negative===0?($=this.neg().divmod(m,b),b!=="mod"&&(A=$.div.neg()),b!=="div"&&(O=$.mod.neg(),M&&O.negative!==0&&O.iadd(m)),{div:A,mod:O}):this.negative===0&&m.negative!==0?($=this.divmod(m.neg(),b),b!=="mod"&&(A=$.div.neg()),{div:A,mod:$.mod}):this.negative&m.negative?($=this.neg().divmod(m.neg(),b),b!=="div"&&(O=$.mod.neg(),M&&O.negative!==0&&O.isub(m)),{div:$.div,mod:O}):m.length>this.length||this.cmp(m)<0?{div:new a(0),mod:this}:m.length===1?b==="div"?{div:this.divn(m.words[0]),mod:null}:b==="mod"?{div:null,mod:new a(this.modrn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new a(this.modrn(m.words[0]))}:this._wordDiv(m,b)},a.prototype.div=function(m){return this.divmod(m,"div",!1).div},a.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},a.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},a.prototype.divRound=function(m){var b=this.divmod(m);if(b.mod.isZero())return b.div;var M=b.div.negative!==0?b.mod.isub(m):b.mod,A=m.ushrn(1),O=m.andln(1),$=M.cmp(A);return $<0||O===1&&$===0?b.div:b.div.negative!==0?b.div.isubn(1):b.div.iaddn(1)},a.prototype.modrn=function(m){var b=m<0;b&&(m=-m),o(m<=67108863);for(var M=(1<<26)%m,A=0,O=this.length-1;O>=0;O--)A=(M*A+(this.words[O]|0))%m;return b?-A:A},a.prototype.modn=function(m){return this.modrn(m)},a.prototype.idivn=function(m){var b=m<0;b&&(m=-m),o(m<=67108863);for(var M=0,A=this.length-1;A>=0;A--){var O=(this.words[A]|0)+M*67108864;this.words[A]=O/m|0,M=O%m}return this._strip(),b?this.ineg():this},a.prototype.divn=function(m){return this.clone().idivn(m)},a.prototype.egcd=function(m){o(m.negative===0),o(!m.isZero());var b=this,M=m.clone();b.negative!==0?b=b.umod(m):b=b.clone();for(var A=new a(1),O=new a(0),$=new a(0),c=new a(1),x=0;b.isEven()&&M.isEven();)b.iushrn(1),M.iushrn(1),++x;for(var N=M.clone(),z=b.clone();!b.isZero();){for(var oe=0,le=1;!(b.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(b.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(N),O.isub(z)),A.iushrn(1),O.iushrn(1);for(var U=0,P=1;!(M.words[0]&P)&&U<26;++U,P<<=1);if(U>0)for(M.iushrn(U);U-- >0;)($.isOdd()||c.isOdd())&&($.iadd(N),c.isub(z)),$.iushrn(1),c.iushrn(1);b.cmp(M)>=0?(b.isub(M),A.isub($),O.isub(c)):(M.isub(b),$.isub(A),c.isub(O))}return{a:$,b:c,gcd:M.iushln(x)}},a.prototype._invmp=function(m){o(m.negative===0),o(!m.isZero());var b=this,M=m.clone();b.negative!==0?b=b.umod(m):b=b.clone();for(var A=new a(1),O=new a(0),$=M.clone();b.cmpn(1)>0&&M.cmpn(1)>0;){for(var c=0,x=1;!(b.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(b.iushrn(c);c-- >0;)A.isOdd()&&A.iadd($),A.iushrn(1);for(var N=0,z=1;!(M.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(M.iushrn(N);N-- >0;)O.isOdd()&&O.iadd($),O.iushrn(1);b.cmp(M)>=0?(b.isub(M),A.isub(O)):(M.isub(b),O.isub(A))}var oe;return b.cmpn(1)===0?oe=A:oe=O,oe.cmpn(0)<0&&oe.iadd(m),oe},a.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var b=this.clone(),M=m.clone();b.negative=0,M.negative=0;for(var A=0;b.isEven()&&M.isEven();A++)b.iushrn(1),M.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;M.isEven();)M.iushrn(1);var O=b.cmp(M);if(O<0){var $=b;b=M,M=$}else if(O===0||M.cmpn(1)===0)break;b.isub(M)}while(!0);return M.iushln(A)},a.prototype.invm=function(m){return this.egcd(m).a.umod(m)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(m){return this.words[0]&m},a.prototype.bincn=function(m){o(typeof m=="number");var b=m%26,M=(m-b)/26,A=1<>>26,c&=67108863,this.words[$]=c}return O!==0&&(this.words[$]=O,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(m){var b=m<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;this._strip();var M;if(this.length>1)M=1;else{b&&(m=-m),o(m<=67108863,"Number is too big");var A=this.words[0]|0;M=A===m?0:Am.length)return 1;if(this.length=0;M--){var A=this.words[M]|0,O=m.words[M]|0;if(A!==O){AO&&(b=1);break}}return b},a.prototype.gtn=function(m){return this.cmpn(m)===1},a.prototype.gt=function(m){return this.cmp(m)===1},a.prototype.gten=function(m){return this.cmpn(m)>=0},a.prototype.gte=function(m){return this.cmp(m)>=0},a.prototype.ltn=function(m){return this.cmpn(m)===-1},a.prototype.lt=function(m){return this.cmp(m)===-1},a.prototype.lten=function(m){return this.cmpn(m)<=0},a.prototype.lte=function(m){return this.cmp(m)<=0},a.prototype.eqn=function(m){return this.cmpn(m)===0},a.prototype.eq=function(m){return this.cmp(m)===0},a.red=function(m){return new T(m)},a.prototype.toRed=function(m){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),m.convertTo(this)._forceRed(m)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(m){return this.red=m,this},a.prototype.forceRed=function(m){return o(!this.red,"Already a number in reduction context"),this._forceRed(m)},a.prototype.redAdd=function(m){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},a.prototype.redIAdd=function(m){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},a.prototype.redSub=function(m){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},a.prototype.redISub=function(m){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},a.prototype.redShl=function(m){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},a.prototype.redMul=function(m){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},a.prototype.redIMul=function(m){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(m){return o(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var Q={k256:null,p224:null,p192:null,p25519:null};function ae(v,m){this.name=v,this.p=new a(m,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ae.prototype._tmp=function(){var m=new a(null);return m.words=new Array(Math.ceil(this.n/13)),m},ae.prototype.ireduce=function(m){var b=m,M;do this.split(b,this.tmp),b=this.imulK(b),b=b.iadd(this.tmp),M=b.bitLength();while(M>this.n);var A=M0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},ae.prototype.split=function(m,b){m.iushrn(this.n,0,b)},ae.prototype.imulK=function(m){return m.imul(this.k)};function ce(){ae.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(ce,ae),ce.prototype.split=function(m,b){for(var M=4194303,A=Math.min(m.length,9),O=0;O>>22,$=c}$>>>=22,m.words[O-10]=$,$===0&&m.length>10?m.length-=10:m.length-=9},ce.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var b=0,M=0;M>>=26,m.words[M]=O,b=A}return b!==0&&(m.words[m.length++]=b),m},a._prime=function(m){if(Q[m])return Q[m];var b;if(m==="k256")b=new ce;else if(m==="p224")b=new ue;else if(m==="p192")b=new re;else if(m==="p25519")b=new pe;else throw new Error("Unknown prime "+m);return Q[m]=b,b};function T(v){if(typeof v=="string"){var m=a._prime(v);this.m=m.p,this.prime=m}else o(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}T.prototype._verify1=function(m){o(m.negative===0,"red works only with positives"),o(m.red,"red works only with red numbers")},T.prototype._verify2=function(m,b){o((m.negative|b.negative)===0,"red works only with positives"),o(m.red&&m.red===b.red,"red works only with red numbers")},T.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):(S(m,m.umod(this.m)._forceRed(this)),m)},T.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},T.prototype.add=function(m,b){this._verify2(m,b);var M=m.add(b);return M.cmp(this.m)>=0&&M.isub(this.m),M._forceRed(this)},T.prototype.iadd=function(m,b){this._verify2(m,b);var M=m.iadd(b);return M.cmp(this.m)>=0&&M.isub(this.m),M},T.prototype.sub=function(m,b){this._verify2(m,b);var M=m.sub(b);return M.cmpn(0)<0&&M.iadd(this.m),M._forceRed(this)},T.prototype.isub=function(m,b){this._verify2(m,b);var M=m.isub(b);return M.cmpn(0)<0&&M.iadd(this.m),M},T.prototype.shl=function(m,b){return this._verify1(m),this.imod(m.ushln(b))},T.prototype.imul=function(m,b){return this._verify2(m,b),this.imod(m.imul(b))},T.prototype.mul=function(m,b){return this._verify2(m,b),this.imod(m.mul(b))},T.prototype.isqr=function(m){return this.imul(m,m.clone())},T.prototype.sqr=function(m){return this.mul(m,m)},T.prototype.sqrt=function(m){if(m.isZero())return m.clone();var b=this.m.andln(3);if(o(b%2===1),b===3){var M=this.m.add(new a(1)).iushrn(2);return this.pow(m,M)}for(var A=this.m.subn(1),O=0;!A.isZero()&&A.andln(1)===0;)O++,A.iushrn(1);o(!A.isZero());var $=new a(1).toRed(this),c=$.redNeg(),x=this.m.subn(1).iushrn(1),N=this.m.bitLength();for(N=new a(2*N*N).toRed(this);this.pow(N,x).cmp(c)!==0;)N.redIAdd(c);for(var z=this.pow(N,A),oe=this.pow(m,A.addn(1).iushrn(1)),le=this.pow(m,A),U=O;le.cmp($)!==0;){for(var P=le,Z=0;P.cmp($)!==0;Z++)P=P.redSqr();o(Z=0;O--){for(var z=b.words[O],oe=N-1;oe>=0;oe--){var le=z>>oe&1;if($!==A[0]&&($=this.sqr($)),le===0&&c===0){x=0;continue}c<<=1,c|=le,x++,!(x!==M&&(O!==0||oe!==0))&&($=this.mul($,A[c]),x=0,c=0)}N=26}return $},T.prototype.convertTo=function(m){var b=m.umod(this.m);return b===m?b.clone():b},T.prototype.convertFrom=function(m){var b=m.clone();return b.red=null,b},a.mont=function(m){return new u(m)};function u(v){T.call(this,v),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(u,T),u.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},u.prototype.convertFrom=function(m){var b=this.imod(m.mul(this.rinv));return b.red=null,b},u.prototype.imul=function(m,b){if(m.isZero()||b.isZero())return m.words[0]=0,m.length=1,m;var M=m.imul(b),A=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),O=M.isub(A).iushrn(this.shift),$=O;return O.cmp(this.m)>=0?$=O.isub(this.m):O.cmpn(0)<0&&($=O.iadd(this.m)),$._forceRed(this)},u.prototype.mul=function(m,b){if(m.isZero()||b.isZero())return new a(0)._forceRed(this);var M=m.mul(b),A=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),O=M.isub(A).iushrn(this.shift),$=O;return O.cmp(this.m)>=0?$=O.isub(this.m):O.cmpn(0)<0&&($=O.iadd(this.m)),$._forceRed(this)},u.prototype.invm=function(m){var b=this.imod(m._invmp(this.m).mul(this.r2));return b._forceRed(this)}})(e,commonjsGlobal)})(bn$4);var bnExports$4=bn$4.exports,BN$a=bnExports$4,randomBytes$1=browserExports,Buffer$7=safeBufferExports$1.Buffer;function getr(e){var t=e.modulus.byteLength(),n;do n=new BN$a(randomBytes$1(t));while(n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2));return n}function blind(e){var t=getr(e),n=t.toRed(BN$a.mont(e.modulus)).redPow(new BN$a(e.publicExponent)).fromRed();return{blinder:n,unblinder:t.invm(e.modulus)}}function crt$2(e,t){var n=blind(t),o=t.modulus.byteLength(),l=new BN$a(e).mul(n.blinder).umod(t.modulus),a=l.toRed(BN$a.mont(t.prime1)),d=l.toRed(BN$a.mont(t.prime2)),y=t.coefficient,w=t.prime1,_=t.prime2,S=a.redPow(t.exponent1).fromRed(),E=d.redPow(t.exponent2).fromRed(),C=S.isub(E).imul(y).umod(w).imul(_);return E.iadd(C).imul(n.unblinder).umod(t.modulus).toArrayLike(Buffer$7,"be",o)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic={};const name="elliptic",version="6.6.1",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny ",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$l={},bn$3={exports:{}};bn$3.exports;(function(e){(function(t,n){function o(T,u){if(!T)throw new Error(u||"Assertion failed")}function l(T,u){T.super_=u;var v=function(){};v.prototype=u.prototype,T.prototype=new v,T.prototype.constructor=T}function a(T,u,v){if(a.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((u==="le"||u==="be")&&(v=u,u=10),this._init(T||0,u||10,v||"be"))}typeof t=="object"?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=buffer$2.Buffer}catch{}a.isBN=function(u){return u instanceof a?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===a.wordSize&&Array.isArray(u.words)},a.max=function(u,v){return u.cmp(v)>0?u:v},a.min=function(u,v){return u.cmp(v)<0?u:v},a.prototype._init=function(u,v,m){if(typeof u=="number")return this._initNumber(u,v,m);if(typeof u=="object")return this._initArray(u,v,m);v==="hex"&&(v=16),o(v===(v|0)&&v>=2&&v<=36),u=u.toString().replace(/\s+/g,"");var b=0;u[0]==="-"&&(b++,this.negative=1),b=0;b-=3)A=u[b]|u[b-1]<<8|u[b-2]<<16,this.words[M]|=A<>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);else if(m==="le")for(b=0,M=0;b>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);return this.strip()};function y(T,u){var v=T.charCodeAt(u);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function w(T,u,v){var m=y(T,v);return v-1>=u&&(m|=y(T,v-1)<<4),m}a.prototype._parseHex=function(u,v,m){this.length=Math.ceil((u.length-v)/6),this.words=new Array(this.length);for(var b=0;b=v;b-=2)O=w(u,v,b)<=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8;else{var $=u.length-v;for(b=$%2===0?v+1:v;b=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8}this.strip()};function _(T,u,v,m){for(var b=0,M=Math.min(T.length,v),A=u;A=49?b+=O-49+10:O>=17?b+=O-17+10:b+=O}return b}a.prototype._parseBase=function(u,v,m){this.words=[0],this.length=1;for(var b=0,M=1;M<=67108863;M*=v)b++;b--,M=M/v|0;for(var A=u.length-m,O=A%b,$=Math.min(A,A-O)+m,c=0,x=m;x<$;x+=b)c=_(u,x,x+b,v),this.imuln(M),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(O!==0){var N=1;for(c=_(u,x,u.length,v),x=0;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(u,v){u=u||10,v=v|0||1;var m;if(u===16||u==="hex"){m="";for(var b=0,M=0,A=0;A>>24-b&16777215,b+=2,b>=26&&(b-=26,A--),M!==0||A!==this.length-1?m=S[6-$.length]+$+m:m=$+m}for(M!==0&&(m=M.toString(16)+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var c=E[u],x=C[u];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var z=N.modn(x).toString(u);N=N.idivn(x),N.isZero()?m=z+m:m=S[c-z.length]+z+m}for(this.isZero()&&(m="0"+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(u,v){return o(typeof d<"u"),this.toArrayLike(d,u,v)},a.prototype.toArray=function(u,v){return this.toArrayLike(Array,u,v)},a.prototype.toArrayLike=function(u,v,m){var b=this.byteLength(),M=m||Math.max(1,b);o(b<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0"),this.strip();var A=v==="le",O=new u(M),$,c,x=this.clone();if(A){for(c=0;!x.isZero();c++)$=x.andln(255),x.iushrn(8),O[c]=$;for(;c=4096&&(m+=13,v>>>=13),v>=64&&(m+=7,v>>>=7),v>=8&&(m+=4,v>>>=4),v>=2&&(m+=2,v>>>=2),m+v},a.prototype._zeroBits=function(u){if(u===0)return 26;var v=u,m=0;return v&8191||(m+=13,v>>>=13),v&127||(m+=7,v>>>=7),v&15||(m+=4,v>>>=4),v&3||(m+=2,v>>>=2),v&1||m++,m},a.prototype.bitLength=function(){var u=this.words[this.length-1],v=this._countBits(u);return(this.length-1)*26+v};function B(T){for(var u=new Array(T.bitLength()),v=0;v>>b}return u}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,v=0;vu.length?this.clone().ior(u):u.clone().ior(this)},a.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},a.prototype.iuand=function(u){var v;this.length>u.length?v=u:v=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},a.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},a.prototype.iuxor=function(u){var v,m;this.length>u.length?(v=this,m=u):(v=u,m=this);for(var b=0;bu.length?this.clone().ixor(u):u.clone().ixor(this)},a.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},a.prototype.inotn=function(u){o(typeof u=="number"&&u>=0);var v=Math.ceil(u/26)|0,m=u%26;this._expand(v),m>0&&v--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this.strip()},a.prototype.notn=function(u){return this.clone().inotn(u)},a.prototype.setn=function(u,v){o(typeof u=="number"&&u>=0);var m=u/26|0,b=u%26;return this._expand(m+1),v?this.words[m]=this.words[m]|1<u.length?(m=this,b=u):(m=u,b=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Au.length?this.clone().iadd(u):u.clone().iadd(this)},a.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var v=this.iadd(u);return u.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,M;m>0?(b=this,M=u):(b=u,M=this);for(var A=0,O=0;O>26,this.words[O]=v&67108863;for(;A!==0&&O>26,this.words[O]=v&67108863;if(A===0&&O>>26,N=$&67108863,z=Math.min(c,u.length-1),oe=Math.max(0,c-T.length+1);oe<=z;oe++){var le=c-oe|0;b=T.words[le]|0,M=u.words[oe]|0,A=b*M+N,x+=A/67108864|0,N=A&67108863}v.words[c]=N|0,$=x|0}return $!==0?v.words[c]=$|0:v.length--,v.strip()}var F=function(u,v,m){var b=u.words,M=v.words,A=m.words,O=0,$,c,x,N=b[0]|0,z=N&8191,oe=N>>>13,le=b[1]|0,U=le&8191,P=le>>>13,Z=b[2]|0,ie=Z&8191,se=Z>>>13,k=b[3]|0,I=k&8191,te=k>>>13,ee=b[4]|0,fe=ee&8191,J=ee>>>13,Y=b[5]|0,X=Y&8191,ne=Y>>>13,me=b[6]|0,he=me&8191,ge=me>>>13,Re=b[7]|0,_e=Re&8191,we=Re>>>13,qe=b[8]|0,Se=qe&8191,Ae=qe>>>13,Me=b[9]|0,ve=Me&8191,be=Me>>>13,Pe=M[0]|0,$e=Pe&8191,Te=Pe>>>13,Je=M[1]|0,Oe=Je&8191,Ie=Je>>>13,Ye=M[2]|0,xe=Ye&8191,Ce=Ye>>>13,Qe=M[3]|0,Be=Qe&8191,je=Qe>>>13,nt=M[4]|0,Ne=nt&8191,Ve=nt>>>13,ot=M[5]|0,He=ot&8191,We=ot>>>13,st=M[6]|0,ke=st&8191,Ge=st>>>13,lt=M[7]|0,Le=lt&8191,Ke=lt>>>13,ut=M[8]|0,De=ut&8191,Ze=ut>>>13,at=M[9]|0,Fe=at&8191,ze=at>>>13;m.negative=u.negative^v.negative,m.length=19,$=Math.imul(z,$e),c=Math.imul(z,Te),c=c+Math.imul(oe,$e)|0,x=Math.imul(oe,Te);var it=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(it>>>26)|0,it&=67108863,$=Math.imul(U,$e),c=Math.imul(U,Te),c=c+Math.imul(P,$e)|0,x=Math.imul(P,Te),$=$+Math.imul(z,Oe)|0,c=c+Math.imul(z,Ie)|0,c=c+Math.imul(oe,Oe)|0,x=x+Math.imul(oe,Ie)|0;var rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,$=Math.imul(ie,$e),c=Math.imul(ie,Te),c=c+Math.imul(se,$e)|0,x=Math.imul(se,Te),$=$+Math.imul(U,Oe)|0,c=c+Math.imul(U,Ie)|0,c=c+Math.imul(P,Oe)|0,x=x+Math.imul(P,Ie)|0,$=$+Math.imul(z,xe)|0,c=c+Math.imul(z,Ce)|0,c=c+Math.imul(oe,xe)|0,x=x+Math.imul(oe,Ce)|0;var mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,$=Math.imul(I,$e),c=Math.imul(I,Te),c=c+Math.imul(te,$e)|0,x=Math.imul(te,Te),$=$+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Ie)|0,c=c+Math.imul(se,Oe)|0,x=x+Math.imul(se,Ie)|0,$=$+Math.imul(U,xe)|0,c=c+Math.imul(U,Ce)|0,c=c+Math.imul(P,xe)|0,x=x+Math.imul(P,Ce)|0,$=$+Math.imul(z,Be)|0,c=c+Math.imul(z,je)|0,c=c+Math.imul(oe,Be)|0,x=x+Math.imul(oe,je)|0;var bt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,$=Math.imul(fe,$e),c=Math.imul(fe,Te),c=c+Math.imul(J,$e)|0,x=Math.imul(J,Te),$=$+Math.imul(I,Oe)|0,c=c+Math.imul(I,Ie)|0,c=c+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ie)|0,$=$+Math.imul(ie,xe)|0,c=c+Math.imul(ie,Ce)|0,c=c+Math.imul(se,xe)|0,x=x+Math.imul(se,Ce)|0,$=$+Math.imul(U,Be)|0,c=c+Math.imul(U,je)|0,c=c+Math.imul(P,Be)|0,x=x+Math.imul(P,je)|0,$=$+Math.imul(z,Ne)|0,c=c+Math.imul(z,Ve)|0,c=c+Math.imul(oe,Ne)|0,x=x+Math.imul(oe,Ve)|0;var wt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,$=Math.imul(X,$e),c=Math.imul(X,Te),c=c+Math.imul(ne,$e)|0,x=Math.imul(ne,Te),$=$+Math.imul(fe,Oe)|0,c=c+Math.imul(fe,Ie)|0,c=c+Math.imul(J,Oe)|0,x=x+Math.imul(J,Ie)|0,$=$+Math.imul(I,xe)|0,c=c+Math.imul(I,Ce)|0,c=c+Math.imul(te,xe)|0,x=x+Math.imul(te,Ce)|0,$=$+Math.imul(ie,Be)|0,c=c+Math.imul(ie,je)|0,c=c+Math.imul(se,Be)|0,x=x+Math.imul(se,je)|0,$=$+Math.imul(U,Ne)|0,c=c+Math.imul(U,Ve)|0,c=c+Math.imul(P,Ne)|0,x=x+Math.imul(P,Ve)|0,$=$+Math.imul(z,He)|0,c=c+Math.imul(z,We)|0,c=c+Math.imul(oe,He)|0,x=x+Math.imul(oe,We)|0;var St=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(he,$e),c=Math.imul(he,Te),c=c+Math.imul(ge,$e)|0,x=Math.imul(ge,Te),$=$+Math.imul(X,Oe)|0,c=c+Math.imul(X,Ie)|0,c=c+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,Ie)|0,$=$+Math.imul(fe,xe)|0,c=c+Math.imul(fe,Ce)|0,c=c+Math.imul(J,xe)|0,x=x+Math.imul(J,Ce)|0,$=$+Math.imul(I,Be)|0,c=c+Math.imul(I,je)|0,c=c+Math.imul(te,Be)|0,x=x+Math.imul(te,je)|0,$=$+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(se,Ne)|0,x=x+Math.imul(se,Ve)|0,$=$+Math.imul(U,He)|0,c=c+Math.imul(U,We)|0,c=c+Math.imul(P,He)|0,x=x+Math.imul(P,We)|0,$=$+Math.imul(z,ke)|0,c=c+Math.imul(z,Ge)|0,c=c+Math.imul(oe,ke)|0,x=x+Math.imul(oe,Ge)|0;var $t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+($t>>>26)|0,$t&=67108863,$=Math.imul(_e,$e),c=Math.imul(_e,Te),c=c+Math.imul(we,$e)|0,x=Math.imul(we,Te),$=$+Math.imul(he,Oe)|0,c=c+Math.imul(he,Ie)|0,c=c+Math.imul(ge,Oe)|0,x=x+Math.imul(ge,Ie)|0,$=$+Math.imul(X,xe)|0,c=c+Math.imul(X,Ce)|0,c=c+Math.imul(ne,xe)|0,x=x+Math.imul(ne,Ce)|0,$=$+Math.imul(fe,Be)|0,c=c+Math.imul(fe,je)|0,c=c+Math.imul(J,Be)|0,x=x+Math.imul(J,je)|0,$=$+Math.imul(I,Ne)|0,c=c+Math.imul(I,Ve)|0,c=c+Math.imul(te,Ne)|0,x=x+Math.imul(te,Ve)|0,$=$+Math.imul(ie,He)|0,c=c+Math.imul(ie,We)|0,c=c+Math.imul(se,He)|0,x=x+Math.imul(se,We)|0,$=$+Math.imul(U,ke)|0,c=c+Math.imul(U,Ge)|0,c=c+Math.imul(P,ke)|0,x=x+Math.imul(P,Ge)|0,$=$+Math.imul(z,Le)|0,c=c+Math.imul(z,Ke)|0,c=c+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Ke)|0;var At=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(At>>>26)|0,At&=67108863,$=Math.imul(Se,$e),c=Math.imul(Se,Te),c=c+Math.imul(Ae,$e)|0,x=Math.imul(Ae,Te),$=$+Math.imul(_e,Oe)|0,c=c+Math.imul(_e,Ie)|0,c=c+Math.imul(we,Oe)|0,x=x+Math.imul(we,Ie)|0,$=$+Math.imul(he,xe)|0,c=c+Math.imul(he,Ce)|0,c=c+Math.imul(ge,xe)|0,x=x+Math.imul(ge,Ce)|0,$=$+Math.imul(X,Be)|0,c=c+Math.imul(X,je)|0,c=c+Math.imul(ne,Be)|0,x=x+Math.imul(ne,je)|0,$=$+Math.imul(fe,Ne)|0,c=c+Math.imul(fe,Ve)|0,c=c+Math.imul(J,Ne)|0,x=x+Math.imul(J,Ve)|0,$=$+Math.imul(I,He)|0,c=c+Math.imul(I,We)|0,c=c+Math.imul(te,He)|0,x=x+Math.imul(te,We)|0,$=$+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Ge)|0,c=c+Math.imul(se,ke)|0,x=x+Math.imul(se,Ge)|0,$=$+Math.imul(U,Le)|0,c=c+Math.imul(U,Ke)|0,c=c+Math.imul(P,Le)|0,x=x+Math.imul(P,Ke)|0,$=$+Math.imul(z,De)|0,c=c+Math.imul(z,Ze)|0,c=c+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ze)|0;var Rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,$=Math.imul(ve,$e),c=Math.imul(ve,Te),c=c+Math.imul(be,$e)|0,x=Math.imul(be,Te),$=$+Math.imul(Se,Oe)|0,c=c+Math.imul(Se,Ie)|0,c=c+Math.imul(Ae,Oe)|0,x=x+Math.imul(Ae,Ie)|0,$=$+Math.imul(_e,xe)|0,c=c+Math.imul(_e,Ce)|0,c=c+Math.imul(we,xe)|0,x=x+Math.imul(we,Ce)|0,$=$+Math.imul(he,Be)|0,c=c+Math.imul(he,je)|0,c=c+Math.imul(ge,Be)|0,x=x+Math.imul(ge,je)|0,$=$+Math.imul(X,Ne)|0,c=c+Math.imul(X,Ve)|0,c=c+Math.imul(ne,Ne)|0,x=x+Math.imul(ne,Ve)|0,$=$+Math.imul(fe,He)|0,c=c+Math.imul(fe,We)|0,c=c+Math.imul(J,He)|0,x=x+Math.imul(J,We)|0,$=$+Math.imul(I,ke)|0,c=c+Math.imul(I,Ge)|0,c=c+Math.imul(te,ke)|0,x=x+Math.imul(te,Ge)|0,$=$+Math.imul(ie,Le)|0,c=c+Math.imul(ie,Ke)|0,c=c+Math.imul(se,Le)|0,x=x+Math.imul(se,Ke)|0,$=$+Math.imul(U,De)|0,c=c+Math.imul(U,Ze)|0,c=c+Math.imul(P,De)|0,x=x+Math.imul(P,Ze)|0,$=$+Math.imul(z,Fe)|0,c=c+Math.imul(z,ze)|0,c=c+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,ze)|0;var Mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,$=Math.imul(ve,Oe),c=Math.imul(ve,Ie),c=c+Math.imul(be,Oe)|0,x=Math.imul(be,Ie),$=$+Math.imul(Se,xe)|0,c=c+Math.imul(Se,Ce)|0,c=c+Math.imul(Ae,xe)|0,x=x+Math.imul(Ae,Ce)|0,$=$+Math.imul(_e,Be)|0,c=c+Math.imul(_e,je)|0,c=c+Math.imul(we,Be)|0,x=x+Math.imul(we,je)|0,$=$+Math.imul(he,Ne)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(ge,Ne)|0,x=x+Math.imul(ge,Ve)|0,$=$+Math.imul(X,He)|0,c=c+Math.imul(X,We)|0,c=c+Math.imul(ne,He)|0,x=x+Math.imul(ne,We)|0,$=$+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(J,ke)|0,x=x+Math.imul(J,Ge)|0,$=$+Math.imul(I,Le)|0,c=c+Math.imul(I,Ke)|0,c=c+Math.imul(te,Le)|0,x=x+Math.imul(te,Ke)|0,$=$+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ze)|0,c=c+Math.imul(se,De)|0,x=x+Math.imul(se,Ze)|0,$=$+Math.imul(U,Fe)|0,c=c+Math.imul(U,ze)|0,c=c+Math.imul(P,Fe)|0,x=x+Math.imul(P,ze)|0;var ht=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,$=Math.imul(ve,xe),c=Math.imul(ve,Ce),c=c+Math.imul(be,xe)|0,x=Math.imul(be,Ce),$=$+Math.imul(Se,Be)|0,c=c+Math.imul(Se,je)|0,c=c+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,je)|0,$=$+Math.imul(_e,Ne)|0,c=c+Math.imul(_e,Ve)|0,c=c+Math.imul(we,Ne)|0,x=x+Math.imul(we,Ve)|0,$=$+Math.imul(he,He)|0,c=c+Math.imul(he,We)|0,c=c+Math.imul(ge,He)|0,x=x+Math.imul(ge,We)|0,$=$+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Ge)|0,$=$+Math.imul(fe,Le)|0,c=c+Math.imul(fe,Ke)|0,c=c+Math.imul(J,Le)|0,x=x+Math.imul(J,Ke)|0,$=$+Math.imul(I,De)|0,c=c+Math.imul(I,Ze)|0,c=c+Math.imul(te,De)|0,x=x+Math.imul(te,Ze)|0,$=$+Math.imul(ie,Fe)|0,c=c+Math.imul(ie,ze)|0,c=c+Math.imul(se,Fe)|0,x=x+Math.imul(se,ze)|0;var yt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,$=Math.imul(ve,Be),c=Math.imul(ve,je),c=c+Math.imul(be,Be)|0,x=Math.imul(be,je),$=$+Math.imul(Se,Ne)|0,c=c+Math.imul(Se,Ve)|0,c=c+Math.imul(Ae,Ne)|0,x=x+Math.imul(Ae,Ve)|0,$=$+Math.imul(_e,He)|0,c=c+Math.imul(_e,We)|0,c=c+Math.imul(we,He)|0,x=x+Math.imul(we,We)|0,$=$+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(ge,ke)|0,x=x+Math.imul(ge,Ge)|0,$=$+Math.imul(X,Le)|0,c=c+Math.imul(X,Ke)|0,c=c+Math.imul(ne,Le)|0,x=x+Math.imul(ne,Ke)|0,$=$+Math.imul(fe,De)|0,c=c+Math.imul(fe,Ze)|0,c=c+Math.imul(J,De)|0,x=x+Math.imul(J,Ze)|0,$=$+Math.imul(I,Fe)|0,c=c+Math.imul(I,ze)|0,c=c+Math.imul(te,Fe)|0,x=x+Math.imul(te,ze)|0;var gt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(ve,Ne),c=Math.imul(ve,Ve),c=c+Math.imul(be,Ne)|0,x=Math.imul(be,Ve),$=$+Math.imul(Se,He)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Ae,He)|0,x=x+Math.imul(Ae,We)|0,$=$+Math.imul(_e,ke)|0,c=c+Math.imul(_e,Ge)|0,c=c+Math.imul(we,ke)|0,x=x+Math.imul(we,Ge)|0,$=$+Math.imul(he,Le)|0,c=c+Math.imul(he,Ke)|0,c=c+Math.imul(ge,Le)|0,x=x+Math.imul(ge,Ke)|0,$=$+Math.imul(X,De)|0,c=c+Math.imul(X,Ze)|0,c=c+Math.imul(ne,De)|0,x=x+Math.imul(ne,Ze)|0,$=$+Math.imul(fe,Fe)|0,c=c+Math.imul(fe,ze)|0,c=c+Math.imul(J,Fe)|0,x=x+Math.imul(J,ze)|0;var dt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,$=Math.imul(ve,He),c=Math.imul(ve,We),c=c+Math.imul(be,He)|0,x=Math.imul(be,We),$=$+Math.imul(Se,ke)|0,c=c+Math.imul(Se,Ge)|0,c=c+Math.imul(Ae,ke)|0,x=x+Math.imul(Ae,Ge)|0,$=$+Math.imul(_e,Le)|0,c=c+Math.imul(_e,Ke)|0,c=c+Math.imul(we,Le)|0,x=x+Math.imul(we,Ke)|0,$=$+Math.imul(he,De)|0,c=c+Math.imul(he,Ze)|0,c=c+Math.imul(ge,De)|0,x=x+Math.imul(ge,Ze)|0,$=$+Math.imul(X,Fe)|0,c=c+Math.imul(X,ze)|0,c=c+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,ze)|0;var _t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,$=Math.imul(ve,ke),c=Math.imul(ve,Ge),c=c+Math.imul(be,ke)|0,x=Math.imul(be,Ge),$=$+Math.imul(Se,Le)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Ae,Le)|0,x=x+Math.imul(Ae,Ke)|0,$=$+Math.imul(_e,De)|0,c=c+Math.imul(_e,Ze)|0,c=c+Math.imul(we,De)|0,x=x+Math.imul(we,Ze)|0,$=$+Math.imul(he,Fe)|0,c=c+Math.imul(he,ze)|0,c=c+Math.imul(ge,Fe)|0,x=x+Math.imul(ge,ze)|0;var ct=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ct>>>26)|0,ct&=67108863,$=Math.imul(ve,Le),c=Math.imul(ve,Ke),c=c+Math.imul(be,Le)|0,x=Math.imul(be,Ke),$=$+Math.imul(Se,De)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Ae,De)|0,x=x+Math.imul(Ae,Ze)|0,$=$+Math.imul(_e,Fe)|0,c=c+Math.imul(_e,ze)|0,c=c+Math.imul(we,Fe)|0,x=x+Math.imul(we,ze)|0;var pt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(ve,De),c=Math.imul(ve,Ze),c=c+Math.imul(be,De)|0,x=Math.imul(be,Ze),$=$+Math.imul(Se,Fe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,ze)|0;var Et=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,$=Math.imul(ve,Fe),c=Math.imul(ve,ze),c=c+Math.imul(be,Fe)|0,x=Math.imul(be,ze);var xt=(O+$|0)+((c&8191)<<13)|0;return O=(x+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,A[0]=it,A[1]=rt,A[2]=mt,A[3]=bt,A[4]=wt,A[5]=St,A[6]=$t,A[7]=At,A[8]=Rt,A[9]=Mt,A[10]=ht,A[11]=yt,A[12]=gt,A[13]=dt,A[14]=_t,A[15]=ct,A[16]=pt,A[17]=Et,A[18]=xt,O!==0&&(A[19]=O,m.length++),m};Math.imul||(F=L);function q(T,u,v){v.negative=u.negative^T.negative,v.length=T.length+u.length;for(var m=0,b=0,M=0;M>>26)|0,b+=A>>>26,A&=67108863}v.words[M]=O,m=A,A=b}return m!==0?v.words[M]=m:v.length--,v.strip()}function H(T,u,v){var m=new D;return m.mulp(T,u,v)}a.prototype.mulTo=function(u,v){var m,b=this.length+u.length;return this.length===10&&u.length===10?m=F(this,u,v):b<63?m=L(this,u,v):b<1024?m=q(this,u,v):m=H(this,u,v),m};function D(T,u){this.x=T,this.y=u}D.prototype.makeRBT=function(u){for(var v=new Array(u),m=a.prototype._countBits(u)-1,b=0;b>=1;return b},D.prototype.permute=function(u,v,m,b,M,A){for(var O=0;O>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*v;A>=26,v+=b/67108864|0,v+=M>>>26,this.words[m]=M&67108863}return v!==0&&(this.words[m]=v,this.length++),this.length=u===0?1:this.length,this},a.prototype.muln=function(u){return this.clone().imuln(u)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(u){var v=B(u);if(v.length===0)return new a(1);for(var m=this,b=0;b=0);var v=u%26,m=(u-v)/26,b=67108863>>>26-v<<26-v,M;if(v!==0){var A=0;for(M=0;M>>26-v}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var b;v?b=(v-v%26)/26:b=0;var M=u%26,A=Math.min((u-M)/26,this.length),O=67108863^67108863>>>M<A)for(this.length-=A,c=0;c=0&&(x!==0||c>=b);c--){var N=this.words[c]|0;this.words[c]=x<<26-M|N>>>M,x=N&O}return $&&x!==0&&($.words[$.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(u,v,m){return o(this.negative===0),this.iushrn(u,v,m)},a.prototype.shln=function(u){return this.clone().ishln(u)},a.prototype.ushln=function(u){return this.clone().iushln(u)},a.prototype.shrn=function(u){return this.clone().ishrn(u)},a.prototype.ushrn=function(u){return this.clone().iushrn(u)},a.prototype.testn=function(u){o(typeof u=="number"&&u>=0);var v=u%26,m=(u-v)/26,b=1<=0);var v=u%26,m=(u-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(v!==0&&m++,this.length=Math.min(m,this.length),v!==0){var b=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(u){if(o(typeof u=="number"),o(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-($/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(O===0)return this.strip();for(o(O===-1),O=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(u,v){var m=this.length-u.length,b=this.clone(),M=u,A=M.words[M.length-1]|0,O=this._countBits(A);m=26-O,m!==0&&(M=M.ushln(m),b.iushln(m),A=M.words[M.length-1]|0);var $=b.length-M.length,c;if(v!=="mod"){c=new a(null),c.length=$+1,c.words=new Array(c.length);for(var x=0;x=0;z--){var oe=(b.words[M.length+z]|0)*67108864+(b.words[M.length+z-1]|0);for(oe=Math.min(oe/A|0,67108863),b._ishlnsubmul(M,oe,z);b.negative!==0;)oe--,b.negative=0,b._ishlnsubmul(M,1,z),b.isZero()||(b.negative^=1);c&&(c.words[z]=oe)}return c&&c.strip(),b.strip(),v!=="div"&&m!==0&&b.iushrn(m),{div:c||null,mod:b}},a.prototype.divmod=function(u,v,m){if(o(!u.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,M,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,v),v!=="mod"&&(b=A.div.neg()),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(u)),{div:b,mod:M}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),v),v!=="mod"&&(b=A.div.neg()),{div:b,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),v),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(u)),{div:A.div,mod:M}):u.length>this.length||this.cmp(u)<0?{div:new a(0),mod:this}:u.length===1?v==="div"?{div:this.divn(u.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new a(this.modn(u.words[0]))}:this._wordDiv(u,v)},a.prototype.div=function(u){return this.divmod(u,"div",!1).div},a.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},a.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},a.prototype.divRound=function(u){var v=this.divmod(u);if(v.mod.isZero())return v.div;var m=v.div.negative!==0?v.mod.isub(u):v.mod,b=u.ushrn(1),M=u.andln(1),A=m.cmp(b);return A<0||M===1&&A===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modn=function(u){o(u<=67108863);for(var v=(1<<26)%u,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%u;return m},a.prototype.idivn=function(u){o(u<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/u|0,v=b%u}return this.strip()},a.prototype.divn=function(u){return this.clone().idivn(u)},a.prototype.egcd=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=new a(0),O=new a(1),$=0;v.isEven()&&m.isEven();)v.iushrn(1),m.iushrn(1),++$;for(var c=m.clone(),x=v.clone();!v.isZero();){for(var N=0,z=1;!(v.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(v.iushrn(N);N-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(c),M.isub(x)),b.iushrn(1),M.iushrn(1);for(var oe=0,le=1;!(m.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(m.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(c),O.isub(x)),A.iushrn(1),O.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(A),M.isub(O)):(m.isub(v),A.isub(b),O.isub(M))}return{a:A,b:O,gcd:m.iushln($)}},a.prototype._invmp=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=m.clone();v.cmpn(1)>0&&m.cmpn(1)>0;){for(var O=0,$=1;!(v.words[0]&$)&&O<26;++O,$<<=1);if(O>0)for(v.iushrn(O);O-- >0;)b.isOdd()&&b.iadd(A),b.iushrn(1);for(var c=0,x=1;!(m.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(m.iushrn(c);c-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(M)):(m.isub(v),M.isub(b))}var N;return v.cmpn(1)===0?N=b:N=M,N.cmpn(0)<0&&N.iadd(u),N},a.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var v=this.clone(),m=u.clone();v.negative=0,m.negative=0;for(var b=0;v.isEven()&&m.isEven();b++)v.iushrn(1),m.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=v.cmp(m);if(M<0){var A=v;v=m,m=A}else if(M===0||m.cmpn(1)===0)break;v.isub(m)}while(!0);return m.iushln(b)},a.prototype.invm=function(u){return this.egcd(u).a.umod(u)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(u){return this.words[0]&u},a.prototype.bincn=function(u){o(typeof u=="number");var v=u%26,m=(u-v)/26,b=1<>>26,O&=67108863,this.words[A]=O}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(u){var v=u<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var m;if(this.length>1)m=1;else{v&&(u=-u),o(u<=67108863,"Number is too big");var b=this.words[0]|0;m=b===u?0:bu.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,M=u.words[m]|0;if(b!==M){bM&&(v=1);break}}return v},a.prototype.gtn=function(u){return this.cmpn(u)===1},a.prototype.gt=function(u){return this.cmp(u)===1},a.prototype.gten=function(u){return this.cmpn(u)>=0},a.prototype.gte=function(u){return this.cmp(u)>=0},a.prototype.ltn=function(u){return this.cmpn(u)===-1},a.prototype.lt=function(u){return this.cmp(u)===-1},a.prototype.lten=function(u){return this.cmpn(u)<=0},a.prototype.lte=function(u){return this.cmp(u)<=0},a.prototype.eqn=function(u){return this.cmpn(u)===0},a.prototype.eq=function(u){return this.cmp(u)===0},a.red=function(u){return new re(u)},a.prototype.toRed=function(u){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(u){return this.red=u,this},a.prototype.forceRed=function(u){return o(!this.red,"Already a number in reduction context"),this._forceRed(u)},a.prototype.redAdd=function(u){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},a.prototype.redIAdd=function(u){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},a.prototype.redSub=function(u){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},a.prototype.redISub=function(u){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},a.prototype.redShl=function(u){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},a.prototype.redMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},a.prototype.redIMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(u){return o(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var j={k256:null,p224:null,p192:null,p25519:null};function V(T,u){this.name=T,this.p=new a(u,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var u=new a(null);return u.words=new Array(Math.ceil(this.n/13)),u},V.prototype.ireduce=function(u){var v=u,m;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),m=v.bitLength();while(m>this.n);var b=m0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},V.prototype.split=function(u,v){u.iushrn(this.n,0,v)},V.prototype.imulK=function(u){return u.imul(this.k)};function Q(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Q,V),Q.prototype.split=function(u,v){for(var m=4194303,b=Math.min(u.length,9),M=0;M>>22,A=O}A>>>=22,u.words[M-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},Q.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var v=0,m=0;m>>=26,u.words[m]=M,v=b}return v!==0&&(u.words[u.length++]=v),u},a._prime=function(u){if(j[u])return j[u];var v;if(u==="k256")v=new Q;else if(u==="p224")v=new ae;else if(u==="p192")v=new ce;else if(u==="p25519")v=new ue;else throw new Error("Unknown prime "+u);return j[u]=v,v};function re(T){if(typeof T=="string"){var u=a._prime(T);this.m=u.p,this.prime=u}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}re.prototype._verify1=function(u){o(u.negative===0,"red works only with positives"),o(u.red,"red works only with red numbers")},re.prototype._verify2=function(u,v){o((u.negative|v.negative)===0,"red works only with positives"),o(u.red&&u.red===v.red,"red works only with red numbers")},re.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},re.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},re.prototype.add=function(u,v){this._verify2(u,v);var m=u.add(v);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},re.prototype.iadd=function(u,v){this._verify2(u,v);var m=u.iadd(v);return m.cmp(this.m)>=0&&m.isub(this.m),m},re.prototype.sub=function(u,v){this._verify2(u,v);var m=u.sub(v);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},re.prototype.isub=function(u,v){this._verify2(u,v);var m=u.isub(v);return m.cmpn(0)<0&&m.iadd(this.m),m},re.prototype.shl=function(u,v){return this._verify1(u),this.imod(u.ushln(v))},re.prototype.imul=function(u,v){return this._verify2(u,v),this.imod(u.imul(v))},re.prototype.mul=function(u,v){return this._verify2(u,v),this.imod(u.mul(v))},re.prototype.isqr=function(u){return this.imul(u,u.clone())},re.prototype.sqr=function(u){return this.mul(u,u)},re.prototype.sqrt=function(u){if(u.isZero())return u.clone();var v=this.m.andln(3);if(o(v%2===1),v===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(u,m)}for(var b=this.m.subn(1),M=0;!b.isZero()&&b.andln(1)===0;)M++,b.iushrn(1);o(!b.isZero());var A=new a(1).toRed(this),O=A.redNeg(),$=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);this.pow(c,$).cmp(O)!==0;)c.redIAdd(O);for(var x=this.pow(c,b),N=this.pow(u,b.addn(1).iushrn(1)),z=this.pow(u,b),oe=M;z.cmp(A)!==0;){for(var le=z,U=0;le.cmp(A)!==0;U++)le=le.redSqr();o(U=0;M--){for(var x=v.words[M],N=c-1;N>=0;N--){var z=x>>N&1;if(A!==b[0]&&(A=this.sqr(A)),z===0&&O===0){$=0;continue}O<<=1,O|=z,$++,!($!==m&&(M!==0||N!==0))&&(A=this.mul(A,b[O]),$=0,O=0)}c=26}return A},re.prototype.convertTo=function(u){var v=u.umod(this.m);return v===u?v.clone():v},re.prototype.convertFrom=function(u){var v=u.clone();return v.red=null,v},a.mont=function(u){return new pe(u)};function pe(T){re.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(pe,re),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var v=this.imod(u.mul(this.rinv));return v.red=null,v},pe.prototype.imul=function(u,v){if(u.isZero()||v.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,v){if(u.isZero()||v.isZero())return new a(0)._forceRed(this);var m=u.mul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var v=this.imod(u._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(e,commonjsGlobal)})(bn$3);var bnExports$3=bn$3.exports,utils$k={};(function(e){var t=e;function n(a,d){if(Array.isArray(a))return a.slice();if(!a)return[];var y=[];if(typeof a!="string"){for(var w=0;w>8,E=_&255;S?y.push(S,E):y.push(E)}return y}t.toArray=n;function o(a){return a.length===1?"0"+a:a}t.zero2=o;function l(a){for(var d="",y=0;y(F>>1)-1?H=(F>>1)-D:H=D,q.isubn(H)):H=0,B[L]=H,q.iushrn(1)}return B}t.getNAF=a;function d(S,E){var C=[[],[]];S=S.clone(),E=E.clone();for(var B=0,L=0,F;S.cmpn(-B)>0||E.cmpn(-L)>0;){var q=S.andln(3)+B&3,H=E.andln(3)+L&3;q===3&&(q=-1),H===3&&(H=-1);var D;q&1?(F=S.andln(7)+B&7,(F===3||F===5)&&H===2?D=-q:D=q):D=0,C[0].push(D);var j;H&1?(F=E.andln(7)+L&7,(F===3||F===5)&&q===2?j=-H:j=H):j=0,C[1].push(j),2*B===D+1&&(B=1-B),2*L===j+1&&(L=1-L),S.iushrn(1),E.iushrn(1)}return C}t.getJSF=d;function y(S,E,C){var B="_"+E;S.prototype[E]=function(){return this[B]!==void 0?this[B]:this[B]=C.call(this)}}t.cachedProperty=y;function w(S){return typeof S=="string"?t.toArray(S,"hex"):S}t.parseBytes=w;function _(S){return new n(S,"hex","le")}t.intFromLE=_})(utils$l);var curve={},BN$9=bnExports$3,utils$j=utils$l,getNAF=utils$j.getNAF,getJSF=utils$j.getJSF,assert$d=utils$j.assert;function BaseCurve(e,t){this.type=e,this.p=new BN$9(t.p,16),this.red=t.prime?BN$9.red(t.prime):BN$9.mont(this.p),this.zero=new BN$9(0).toRed(this.red),this.one=new BN$9(1).toRed(this.red),this.two=new BN$9(2).toRed(this.red),this.n=t.n&&new BN$9(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$1=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function(t,n){assert$d(t.precomputed);var o=t._getDoubles(),l=getNAF(n,1,this._bitLength),a=(1<=y;_--)w=(w<<1)+l[_];d.push(w)}for(var S=this.jpoint(null,null,null),E=this.jpoint(null,null,null),C=a;C>0;C--){for(y=0;y=0;w--){for(var _=0;w>=0&&d[w]===0;w--)_++;if(w>=0&&_++,y=y.dblp(_),w<0)break;var S=d[w];assert$d(S!==0),t.type==="affine"?S>0?y=y.mixedAdd(a[S-1>>1]):y=y.mixedAdd(a[-S-1>>1].neg()):S>0?y=y.add(a[S-1>>1]):y=y.add(a[-S-1>>1].neg())}return t.type==="affine"?y.toP():y};BaseCurve.prototype._wnafMulAdd=function(t,n,o,l,a){var d=this._wnafT1,y=this._wnafT2,w=this._wnafT3,_=0,S,E,C;for(S=0;S=1;S-=2){var L=S-1,F=S;if(d[L]!==1||d[F]!==1){w[L]=getNAF(o[L],d[L],this._bitLength),w[F]=getNAF(o[F],d[F],this._bitLength),_=Math.max(w[L].length,_),_=Math.max(w[F].length,_);continue}var q=[n[L],null,null,n[F]];n[L].y.cmp(n[F].y)===0?(q[1]=n[L].add(n[F]),q[2]=n[L].toJ().mixedAdd(n[F].neg())):n[L].y.cmp(n[F].y.redNeg())===0?(q[1]=n[L].toJ().mixedAdd(n[F]),q[2]=n[L].add(n[F].neg())):(q[1]=n[L].toJ().mixedAdd(n[F]),q[2]=n[L].toJ().mixedAdd(n[F].neg()));var H=[-3,-1,-5,-7,0,7,5,1,3],D=getJSF(o[L],o[F]);for(_=Math.max(D[0].length,_),w[L]=new Array(_),w[F]=new Array(_),E=0;E<_;E++){var j=D[0][E]|0,V=D[1][E]|0;w[L][E]=H[(j+1)*3+(V+1)],w[F][E]=0,y[L]=q}}var Q=this.jpoint(null,null,null),ae=this._wnafT4;for(S=_;S>=0;S--){for(var ce=0;S>=0;){var ue=!0;for(E=0;E=0&&ce++,Q=Q.dblp(ce),S<0)break;for(E=0;E0?C=y[E][re-1>>1]:re<0&&(C=y[E][-re-1>>1].neg()),C.type==="affine"?Q=Q.mixedAdd(C):Q=Q.add(C))}}for(S=0;S=Math.ceil((t.bitLength()+1)/n.step):!1};BasePoint.prototype._getDoubles=function(t,n){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var o=[this],l=this,a=0;a=0&&(B=_,L=S),E.negative&&(E=E.neg(),C=C.neg()),B.negative&&(B=B.neg(),L=L.neg()),[{a:E,b:C},{a:B,b:L}]};ShortCurve.prototype._endoSplit=function(t){var n=this.endo.basis,o=n[0],l=n[1],a=l.b.mul(t).divRound(this.n),d=o.b.neg().mul(t).divRound(this.n),y=a.mul(o.a),w=d.mul(l.a),_=a.mul(o.b),S=d.mul(l.b),E=t.sub(y).sub(w),C=_.add(S).neg();return{k1:E,k2:C}};ShortCurve.prototype.pointFromX=function(t,n){t=new BN$8(t,16),t.red||(t=t.toRed(this.red));var o=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),l=o.redSqrt();if(l.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");var a=l.fromRed().isOdd();return(n&&!a||!n&&a)&&(l=l.redNeg()),this.point(t,l)};ShortCurve.prototype.validate=function(t){if(t.inf)return!0;var n=t.x,o=t.y,l=this.a.redMul(n),a=n.redSqr().redMul(n).redIAdd(l).redIAdd(this.b);return o.redSqr().redISub(a).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function(t,n,o){for(var l=this._endoWnafT1,a=this._endoWnafT2,d=0;d":""};Point$2.prototype.isInfinity=function(){return this.inf};Point$2.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var n=this.y.redSub(t.y);n.cmpn(0)!==0&&(n=n.redMul(this.x.redSub(t.x).redInvm()));var o=n.redSqr().redISub(this.x).redISub(t.x),l=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,l)};Point$2.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var n=this.curve.a,o=this.x.redSqr(),l=t.redInvm(),a=o.redAdd(o).redIAdd(o).redIAdd(n).redMul(l),d=a.redSqr().redISub(this.x.redAdd(this.x)),y=a.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,y)};Point$2.prototype.getX=function(){return this.x.fromRed()};Point$2.prototype.getY=function(){return this.y.fromRed()};Point$2.prototype.mul=function(t){return t=new BN$8(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};Point$2.prototype.mulAdd=function(t,n,o){var l=[this,n],a=[t,o];return this.curve.endo?this.curve._endoWnafMulAdd(l,a):this.curve._wnafMulAdd(1,l,a,2)};Point$2.prototype.jmulAdd=function(t,n,o){var l=[this,n],a=[t,o];return this.curve.endo?this.curve._endoWnafMulAdd(l,a,!0):this.curve._wnafMulAdd(1,l,a,2,!0)};Point$2.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};Point$2.prototype.neg=function(t){if(this.inf)return this;var n=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var o=this.precomputed,l=function(a){return a.neg()};n.precomputed={naf:o.naf&&{wnd:o.naf.wnd,points:o.naf.points.map(l)},doubles:o.doubles&&{step:o.doubles.step,points:o.doubles.points.map(l)}}}return n};Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function JPoint(e,t,n,o){Base$2.BasePoint.call(this,e,"jacobian"),t===null&&n===null&&o===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$8(0)):(this.x=new BN$8(t,16),this.y=new BN$8(n,16),this.z=new BN$8(o,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$4(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function(t,n,o){return new JPoint(this,t,n,o)};JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),n=t.redSqr(),o=this.x.redMul(n),l=this.y.redMul(n).redMul(t);return this.curve.point(o,l)};JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var n=t.z.redSqr(),o=this.z.redSqr(),l=this.x.redMul(n),a=t.x.redMul(o),d=this.y.redMul(n.redMul(t.z)),y=t.y.redMul(o.redMul(this.z)),w=l.redSub(a),_=d.redSub(y);if(w.cmpn(0)===0)return _.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var S=w.redSqr(),E=S.redMul(w),C=l.redMul(S),B=_.redSqr().redIAdd(E).redISub(C).redISub(C),L=_.redMul(C.redISub(B)).redISub(d.redMul(E)),F=this.z.redMul(t.z).redMul(w);return this.curve.jpoint(B,L,F)};JPoint.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var n=this.z.redSqr(),o=this.x,l=t.x.redMul(n),a=this.y,d=t.y.redMul(n).redMul(this.z),y=o.redSub(l),w=a.redSub(d);if(y.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var _=y.redSqr(),S=_.redMul(y),E=o.redMul(_),C=w.redSqr().redIAdd(S).redISub(E).redISub(E),B=w.redMul(E.redISub(C)).redISub(a.redMul(S)),L=this.z.redMul(y);return this.curve.jpoint(C,B,L)};JPoint.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var n;if(this.curve.zeroA||this.curve.threeA){var o=this;for(n=0;n=0)return!1;if(o.redIAdd(a),this.x.cmp(o)===0)return!0}};JPoint.prototype.inspect=function(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$7=bnExports$3,inherits$3=inherits_browserExports,Base$1=base$1,utils$h=utils$l;function MontCurve(e){Base$1.call(this,"mont",e),this.a=new BN$7(e.a,16).toRed(this.red),this.b=new BN$7(e.b,16).toRed(this.red),this.i4=new BN$7(4).toRed(this.red).redInvm(),this.two=new BN$7(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$3(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(t){var n=t.normalize().x,o=n.redSqr(),l=o.redMul(n).redAdd(o.redMul(this.a)).redAdd(n),a=l.redSqrt();return a.redSqr().cmp(l)===0};function Point$1(e,t,n){Base$1.BasePoint.call(this,e,"projective"),t===null&&n===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$7(t,16),this.z=new BN$7(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$3(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function(t,n){return this.point(utils$h.toArray(t,n),1)};MontCurve.prototype.point=function(t,n){return new Point$1(this,t,n)};MontCurve.prototype.pointFromJSON=function(t){return Point$1.fromJSON(this,t)};Point$1.prototype.precompute=function(){};Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function(t,n){return new Point$1(t,n[0],n[1]||t.one)};Point$1.prototype.inspect=function(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function(){var t=this.x.redAdd(this.z),n=t.redSqr(),o=this.x.redSub(this.z),l=o.redSqr(),a=n.redSub(l),d=n.redMul(l),y=a.redMul(l.redAdd(this.curve.a24.redMul(a)));return this.curve.point(d,y)};Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function(t,n){var o=this.x.redAdd(this.z),l=this.x.redSub(this.z),a=t.x.redAdd(t.z),d=t.x.redSub(t.z),y=d.redMul(o),w=a.redMul(l),_=n.z.redMul(y.redAdd(w).redSqr()),S=n.x.redMul(y.redISub(w).redSqr());return this.curve.point(_,S)};Point$1.prototype.mul=function(t){for(var n=t.clone(),o=this,l=this.curve.point(null,null),a=this,d=[];n.cmpn(0)!==0;n.iushrn(1))d.push(n.andln(1));for(var y=d.length-1;y>=0;y--)d[y]===0?(o=o.diffAdd(l,a),l=l.dbl()):(l=o.diffAdd(l,a),o=o.dbl());return l};Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function(t){return this.getX().cmp(t.getX())===0};Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$g=utils$l,BN$6=bnExports$3,inherits$2=inherits_browserExports,Base=base$1,assert$b=utils$g.assert;function EdwardsCurve(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",e),this.a=new BN$6(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$6(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$6(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$b(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}inherits$2(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)};EdwardsCurve.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)};EdwardsCurve.prototype.jpoint=function(t,n,o,l){return this.point(t,n,o,l)};EdwardsCurve.prototype.pointFromX=function(t,n){t=new BN$6(t,16),t.red||(t=t.toRed(this.red));var o=t.redSqr(),l=this.c2.redSub(this.a.redMul(o)),a=this.one.redSub(this.c2.redMul(this.d).redMul(o)),d=l.redMul(a.redInvm()),y=d.redSqrt();if(y.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var w=y.fromRed().isOdd();return(n&&!w||!n&&w)&&(y=y.redNeg()),this.point(t,y)};EdwardsCurve.prototype.pointFromY=function(t,n){t=new BN$6(t,16),t.red||(t=t.toRed(this.red));var o=t.redSqr(),l=o.redSub(this.c2),a=o.redMul(this.d).redMul(this.c2).redSub(this.a),d=l.redMul(a.redInvm());if(d.cmp(this.zero)===0){if(n)throw new Error("invalid point");return this.point(this.zero,t)}var y=d.redSqrt();if(y.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");return y.fromRed().isOdd()!==n&&(y=y.redNeg()),this.point(y,t)};EdwardsCurve.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var n=t.x.redSqr(),o=t.y.redSqr(),l=n.redMul(this.a).redAdd(o),a=this.c2.redMul(this.one.redAdd(this.d.redMul(n).redMul(o)));return l.cmp(a)===0};function Point(e,t,n,o,l){Base.BasePoint.call(this,e,"projective"),t===null&&n===null&&o===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$6(t,16),this.y=new BN$6(n,16),this.z=o?new BN$6(o,16):this.curve.one,this.t=l&&new BN$6(l,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$2(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function(t){return Point.fromJSON(this,t)};EdwardsCurve.prototype.point=function(t,n,o,l){return new Point(this,t,n,o,l)};Point.fromJSON=function(t,n){return new Point(t,n[0],n[1],n[2])};Point.prototype.inspect=function(){return this.isInfinity()?"":""};Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function(){var t=this.x.redSqr(),n=this.y.redSqr(),o=this.z.redSqr();o=o.redIAdd(o);var l=this.curve._mulA(t),a=this.x.redAdd(this.y).redSqr().redISub(t).redISub(n),d=l.redAdd(n),y=d.redSub(o),w=l.redSub(n),_=a.redMul(y),S=d.redMul(w),E=a.redMul(w),C=y.redMul(d);return this.curve.point(_,S,C,E)};Point.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr(),l,a,d,y,w,_;if(this.curve.twisted){y=this.curve._mulA(n);var S=y.redAdd(o);this.zOne?(l=t.redSub(n).redSub(o).redMul(S.redSub(this.curve.two)),a=S.redMul(y.redSub(o)),d=S.redSqr().redSub(S).redSub(S)):(w=this.z.redSqr(),_=S.redSub(w).redISub(w),l=t.redSub(n).redISub(o).redMul(_),a=S.redMul(y.redSub(o)),d=S.redMul(_))}else y=n.redAdd(o),w=this.curve._mulC(this.z).redSqr(),_=y.redSub(w).redSub(w),l=this.curve._mulC(t.redISub(y)).redMul(_),a=this.curve._mulC(y).redMul(n.redISub(o)),d=y.redMul(_);return this.curve.point(l,a,d)};Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function(t){var n=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),o=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),l=this.t.redMul(this.curve.dd).redMul(t.t),a=this.z.redMul(t.z.redAdd(t.z)),d=o.redSub(n),y=a.redSub(l),w=a.redAdd(l),_=o.redAdd(n),S=d.redMul(y),E=w.redMul(_),C=d.redMul(_),B=y.redMul(w);return this.curve.point(S,E,B,C)};Point.prototype._projAdd=function(t){var n=this.z.redMul(t.z),o=n.redSqr(),l=this.x.redMul(t.x),a=this.y.redMul(t.y),d=this.curve.d.redMul(l).redMul(a),y=o.redSub(d),w=o.redAdd(d),_=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(l).redISub(a),S=n.redMul(y).redMul(_),E,C;return this.curve.twisted?(E=n.redMul(w).redMul(a.redSub(this.curve._mulA(l))),C=y.redMul(w)):(E=n.redMul(w).redMul(a.redSub(l)),C=this.curve._mulC(y).redMul(w)),this.curve.point(S,E,C)};Point.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)};Point.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)};Point.prototype.mulAdd=function(t,n,o){return this.curve._wnafMulAdd(1,[this,n],[t,o],2,!1)};Point.prototype.jmulAdd=function(t,n,o){return this.curve._wnafMulAdd(1,[this,n],[t,o],2,!0)};Point.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0};Point.prototype.eqXToP=function(t){var n=t.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(n)===0)return!0;for(var o=t.clone(),l=this.curve.redN.redMul(this.z);;){if(o.iadd(this.curve.n),o.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(l),this.x.cmp(n)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function(e){var t=e;t.base=base$1,t.short=short,t.mont=mont,t.edwards=edwards})(curve);var curves$1={},hash$2={},utils$f={},assert$a=minimalisticAssert,inherits$1=inherits_browserExports;utils$f.inherits=inherits$1;function isSurrogatePair(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function toArray(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),l=0;l>6|192,n[o++]=a&63|128):isSurrogatePair(e,l)?(a=65536+((a&1023)<<10)+(e.charCodeAt(++l)&1023),n[o++]=a>>18|240,n[o++]=a>>12&63|128,n[o++]=a>>6&63|128,n[o++]=a&63|128):(n[o++]=a>>12|224,n[o++]=a>>6&63|128,n[o++]=a&63|128)}else for(l=0;l>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}utils$f.htonl=htonl;function toHex32(e,t){for(var n="",o=0;o>>0}return a}utils$f.join32=join32;function split32(e,t){for(var n=new Array(e.length*4),o=0,l=0;o>>24,n[l+1]=a>>>16&255,n[l+2]=a>>>8&255,n[l+3]=a&255):(n[l+3]=a>>>24,n[l+2]=a>>>16&255,n[l+1]=a>>>8&255,n[l]=a&255)}return n}utils$f.split32=split32;function rotr32$1(e,t){return e>>>t|e<<32-t}utils$f.rotr32=rotr32$1;function rotl32$2(e,t){return e<>>32-t}utils$f.rotl32=rotl32$2;function sum32$3(e,t){return e+t>>>0}utils$f.sum32=sum32$3;function sum32_3$1(e,t,n){return e+t+n>>>0}utils$f.sum32_3=sum32_3$1;function sum32_4$2(e,t,n,o){return e+t+n+o>>>0}utils$f.sum32_4=sum32_4$2;function sum32_5$2(e,t,n,o,l){return e+t+n+o+l>>>0}utils$f.sum32_5=sum32_5$2;function sum64$1(e,t,n,o){var l=e[t],a=e[t+1],d=o+a>>>0,y=(d>>0,e[t+1]=d}utils$f.sum64=sum64$1;function sum64_hi$1(e,t,n,o){var l=t+o>>>0,a=(l>>0}utils$f.sum64_hi=sum64_hi$1;function sum64_lo$1(e,t,n,o){var l=t+o;return l>>>0}utils$f.sum64_lo=sum64_lo$1;function sum64_4_hi$1(e,t,n,o,l,a,d,y){var w=0,_=t;_=_+o>>>0,w+=_>>0,w+=_>>0,w+=_>>0}utils$f.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(e,t,n,o,l,a,d,y){var w=t+o+a+y;return w>>>0}utils$f.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(e,t,n,o,l,a,d,y,w,_){var S=0,E=t;E=E+o>>>0,S+=E>>0,S+=E>>0,S+=E>>0,S+=E<_?1:0;var C=e+n+l+d+w+S;return C>>>0}utils$f.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(e,t,n,o,l,a,d,y,w,_){var S=t+o+a+y+_;return S>>>0}utils$f.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(e,t,n){var o=t<<32-n|e>>>n;return o>>>0}utils$f.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(e,t,n){var o=e<<32-n|t>>>n;return o>>>0}utils$f.rotr64_lo=rotr64_lo$1;function shr64_hi$1(e,t,n){return e>>>n}utils$f.shr64_hi=shr64_hi$1;function shr64_lo$1(e,t,n){var o=e<<32-n|t>>>n;return o>>>0}utils$f.shr64_lo=shr64_lo$1;var common$5={},utils$e=utils$f,assert$9=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$5.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(t,n){if(t=utils$e.toArray(t,n),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var o=t.length%this._delta8;this.pending=t.slice(t.length-o,t.length),this.pending.length===0&&(this.pending=null),t=utils$e.join32(t,0,t.length-o,this.endian);for(var l=0;l>>24&255,l[a++]=t>>>16&255,l[a++]=t>>>8&255,l[a++]=t&255}else for(l[a++]=t&255,l[a++]=t>>>8&255,l[a++]=t>>>16&255,l[a++]=t>>>24&255,l[a++]=0,l[a++]=0,l[a++]=0,l[a++]=0,d=8;d>>3}common$4.g0_256=g0_256$1;function g1_256$1(e){return rotr32(e,17)^rotr32(e,19)^e>>>10}common$4.g1_256=g1_256$1;var utils$c=utils$f,common$3=common$5,shaCommon$1=common$4,rotl32$1=utils$c.rotl32,sum32$2=utils$c.sum32,sum32_5$1=utils$c.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$3.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$c.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512;SHA1.outSize=160;SHA1.hmacStrength=80;SHA1.padLength=64;SHA1.prototype._update=function(t,n){for(var o=this.W,l=0;l<16;l++)o[l]=t[n+l];for(;lthis.blockSize&&(t=new this.Hash().update(t).digest()),assert$6(t.length<=this.blockSize);for(var n=t.length;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,o)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(t,n,o){var l=t.concat(n).concat(o);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(o||[])),this._reseed=1};HmacDRBG.prototype.generate=function(t,n,o,l){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof n!="string"&&(l=o,o=n,n=null),o&&(o=utils$5.toArray(o,l||"hex"),this._update(o));for(var a=[];a.length"};var BN$4=bnExports$3,utils$3=utils$l,assert$3=utils$3.assert;function Signature$2(e,t){if(e instanceof Signature$2)return e;this._importDER(e,t)||(assert$3(e.r&&e.s,"Signature without r or s"),this.r=new BN$4(e.r,16),this.s=new BN$4(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var signature$1=Signature$2;function Position(){this.place=0}function getLength(e,t){var n=e[t.place++];if(!(n&128))return n;var o=n&15;if(o===0||o>4||e[t.place]===0)return!1;for(var l=0,a=0,d=t.place;a>>=0;return l<=127?!1:(t.place=d,l)}function rmPadding(e){for(var t=0,n=e.length-1;!e[t]&&!(e[t+1]&128)&&t>>3);for(e.push(n|128);--n;)e.push(t>>>(n<<3)&255);e.push(t)}Signature$2.prototype.toDER=function(t){var n=this.r.toArray(),o=this.s.toArray();for(n[0]&128&&(n=[0].concat(n)),o[0]&128&&(o=[0].concat(o)),n=rmPadding(n),o=rmPadding(o);!o[0]&&!(o[1]&128);)o=o.slice(1);var l=[2];constructLength(l,n.length),l=l.concat(n),l.push(2),constructLength(l,o.length);var a=l.concat(o),d=[48];return constructLength(d,a.length),d=d.concat(a),utils$3.encode(d,t)};var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var e=bnExports$3,t=hmacDrbg,n=utils$l,o=curves$1,l=requireBrorand(),a=n.assert,d=key$1,y=signature$1;function w(_){if(!(this instanceof w))return new w(_);typeof _=="string"&&(a(Object.prototype.hasOwnProperty.call(o,_),"Unknown curve "+_),_=o[_]),_ instanceof o.PresetCurve&&(_={curve:_}),this.curve=_.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=_.curve.g,this.g.precompute(_.curve.n.bitLength()+1),this.hash=_.hash||_.curve.hash}return ec=w,w.prototype.keyPair=function(S){return new d(this,S)},w.prototype.keyFromPrivate=function(S,E){return d.fromPrivate(this,S,E)},w.prototype.keyFromPublic=function(S,E){return d.fromPublic(this,S,E)},w.prototype.genKeyPair=function(S){S||(S={});for(var E=new t({hash:this.hash,pers:S.pers,persEnc:S.persEnc||"utf8",entropy:S.entropy||l(this.hash.hmacStrength),entropyEnc:S.entropy&&S.entropyEnc||"utf8",nonce:this.n.toArray()}),C=this.n.byteLength(),B=this.n.sub(new e(2));;){var L=new e(E.generate(C));if(!(L.cmp(B)>0))return L.iaddn(1),this.keyFromPrivate(L)}},w.prototype._truncateToN=function(S,E,C){var B;if(e.isBN(S)||typeof S=="number")S=new e(S,16),B=S.byteLength();else if(typeof S=="object")B=S.length,S=new e(S,16);else{var L=S.toString();B=L.length+1>>>1,S=new e(L,16)}typeof C!="number"&&(C=B*8);var F=C-this.n.bitLength();return F>0&&(S=S.ushrn(F)),!E&&S.cmp(this.n)>=0?S.sub(this.n):S},w.prototype.sign=function(S,E,C,B){if(typeof C=="object"&&(B=C,C=null),B||(B={}),typeof S!="string"&&typeof S!="number"&&!e.isBN(S)){a(typeof S=="object"&&S&&typeof S.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),a(S.length>>>0===S.length);for(var L=0;L=0)){var ae=this.g.mul(Q);if(!ae.isInfinity()){var ce=ae.getX(),ue=ce.umod(this.n);if(ue.cmpn(0)!==0){var re=Q.invm(this.n).mul(ue.mul(E.getPrivate()).iadd(S));if(re=re.umod(this.n),re.cmpn(0)!==0){var pe=(ae.getY().isOdd()?1:0)|(ce.cmp(ue)!==0?2:0);return B.canonical&&re.cmp(this.nh)>0&&(re=this.n.sub(re),pe^=1),new y({r:ue,s:re,recoveryParam:pe})}}}}}},w.prototype.verify=function(S,E,C,B,L){L||(L={}),S=this._truncateToN(S,!1,L.msgBitLength),C=this.keyFromPublic(C,B),E=new y(E,"hex");var F=E.r,q=E.s;if(F.cmpn(1)<0||F.cmp(this.n)>=0||q.cmpn(1)<0||q.cmp(this.n)>=0)return!1;var H=q.invm(this.n),D=H.mul(S).umod(this.n),j=H.mul(F).umod(this.n),V;return this.curve._maxwellTrick?(V=this.g.jmulAdd(D,C.getPublic(),j),V.isInfinity()?!1:V.eqXToP(F)):(V=this.g.mulAdd(D,C.getPublic(),j),V.isInfinity()?!1:V.getX().umod(this.n).cmp(F)===0)},w.prototype.recoverPubKey=function(_,S,E,C){a((3&E)===E,"The recovery param is more than two bits"),S=new y(S,C);var B=this.n,L=new e(_),F=S.r,q=S.s,H=E&1,D=E>>1;if(F.cmp(this.curve.p.umod(this.curve.n))>=0&&D)throw new Error("Unable to find sencond key candinate");D?F=this.curve.pointFromX(F.add(this.curve.n),H):F=this.curve.pointFromX(F,H);var j=S.r.invm(B),V=B.sub(L).mul(j).umod(B),Q=q.mul(j).umod(B);return this.g.mulAdd(V,F,Q)},w.prototype.getKeyRecoveryParam=function(_,S,E,C){if(S=new y(S,C),S.recoveryParam!==null)return S.recoveryParam;for(var B=0;B<4;B++){var L;try{L=this.recoverPubKey(_,S,B)}catch{continue}if(L.eq(E))return B}throw new Error("Unable to find valid recovery factor")},ec}var utils$2=utils$l,assert$2=utils$2.assert,parseBytes$2=utils$2.parseBytes,cachedProperty$1=utils$2.cachedProperty;function KeyPair$1(e,t){this.eddsa=e,this._secret=parseBytes$2(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=parseBytes$2(t.pub)}KeyPair$1.fromPublic=function(t,n){return n instanceof KeyPair$1?n:new KeyPair$1(t,{pub:n})};KeyPair$1.fromSecret=function(t,n){return n instanceof KeyPair$1?n:new KeyPair$1(t,{secret:n})};KeyPair$1.prototype.secret=function(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function(){var t=this.eddsa,n=this.hash(),o=t.encodingLength-1,l=n.slice(0,t.encodingLength);return l[0]&=248,l[o]&=127,l[o]|=64,l});cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function(t){return assert$2(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)};KeyPair$1.prototype.verify=function(t,n){return this.eddsa.verify(t,n,this)};KeyPair$1.prototype.getSecret=function(t){return assert$2(this._secret,"KeyPair is public only"),utils$2.encode(this.secret(),t)};KeyPair$1.prototype.getPublic=function(t){return utils$2.encode(this.pubBytes(),t)};var key=KeyPair$1,BN$3=bnExports$3,utils$1=utils$l,assert$1=utils$1.assert,cachedProperty=utils$1.cachedProperty,parseBytes$1=utils$1.parseBytes;function Signature$1(e,t){this.eddsa=e,typeof t!="object"&&(t=parseBytes$1(t)),Array.isArray(t)&&(assert$1(t.length===e.encodingLength*2,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),assert$1(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof BN$3&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function(){return utils$1.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash=hash$2,curves=curves$1,utils=utils$l,assert=utils.assert,parseBytes=utils.parseBytes,KeyPair=key,Signature=signature;function EDDSA(e){if(assert(e==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(e);e=curves[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=hash.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function(t,n){t=parseBytes(t);var o=this.keyFromSecret(n),l=this.hashInt(o.messagePrefix(),t),a=this.g.mul(l),d=this.encodePoint(a),y=this.hashInt(d,o.pubBytes(),t).mul(o.priv()),w=l.add(y).umod(this.curve.n);return this.makeSignature({R:a,S:w,Rencoded:d})};EDDSA.prototype.verify=function(t,n,o){if(t=parseBytes(t),n=this.makeSignature(n),n.S().gte(n.eddsa.curve.n)||n.S().isNeg())return!1;var l=this.keyFromPublic(o),a=this.hashInt(n.Rencoded(),l.pubBytes(),t),d=this.g.mul(n.S()),y=n.R().add(l.pub().mul(a));return y.eq(d)};EDDSA.prototype.hashInt=function(){for(var t=this.hash(),n=0;n0?u:v},a.min=function(u,v){return u.cmp(v)<0?u:v},a.prototype._init=function(u,v,m){if(typeof u=="number")return this._initNumber(u,v,m);if(typeof u=="object")return this._initArray(u,v,m);v==="hex"&&(v=16),o(v===(v|0)&&v>=2&&v<=36),u=u.toString().replace(/\s+/g,"");var b=0;u[0]==="-"&&(b++,this.negative=1),b=0;b-=3)A=u[b]|u[b-1]<<8|u[b-2]<<16,this.words[M]|=A<>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);else if(m==="le")for(b=0,M=0;b>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);return this.strip()};function y(T,u){var v=T.charCodeAt(u);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function w(T,u,v){var m=y(T,v);return v-1>=u&&(m|=y(T,v-1)<<4),m}a.prototype._parseHex=function(u,v,m){this.length=Math.ceil((u.length-v)/6),this.words=new Array(this.length);for(var b=0;b=v;b-=2)O=w(u,v,b)<=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8;else{var $=u.length-v;for(b=$%2===0?v+1:v;b=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8}this.strip()};function _(T,u,v,m){for(var b=0,M=Math.min(T.length,v),A=u;A=49?b+=O-49+10:O>=17?b+=O-17+10:b+=O}return b}a.prototype._parseBase=function(u,v,m){this.words=[0],this.length=1;for(var b=0,M=1;M<=67108863;M*=v)b++;b--,M=M/v|0;for(var A=u.length-m,O=A%b,$=Math.min(A,A-O)+m,c=0,x=m;x<$;x+=b)c=_(u,x,x+b,v),this.imuln(M),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(O!==0){var N=1;for(c=_(u,x,u.length,v),x=0;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(u,v){u=u||10,v=v|0||1;var m;if(u===16||u==="hex"){m="";for(var b=0,M=0,A=0;A>>24-b&16777215,b+=2,b>=26&&(b-=26,A--),M!==0||A!==this.length-1?m=S[6-$.length]+$+m:m=$+m}for(M!==0&&(m=M.toString(16)+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var c=E[u],x=C[u];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var z=N.modn(x).toString(u);N=N.idivn(x),N.isZero()?m=z+m:m=S[c-z.length]+z+m}for(this.isZero()&&(m="0"+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(u,v){return o(typeof d<"u"),this.toArrayLike(d,u,v)},a.prototype.toArray=function(u,v){return this.toArrayLike(Array,u,v)},a.prototype.toArrayLike=function(u,v,m){var b=this.byteLength(),M=m||Math.max(1,b);o(b<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0"),this.strip();var A=v==="le",O=new u(M),$,c,x=this.clone();if(A){for(c=0;!x.isZero();c++)$=x.andln(255),x.iushrn(8),O[c]=$;for(;c=4096&&(m+=13,v>>>=13),v>=64&&(m+=7,v>>>=7),v>=8&&(m+=4,v>>>=4),v>=2&&(m+=2,v>>>=2),m+v},a.prototype._zeroBits=function(u){if(u===0)return 26;var v=u,m=0;return v&8191||(m+=13,v>>>=13),v&127||(m+=7,v>>>=7),v&15||(m+=4,v>>>=4),v&3||(m+=2,v>>>=2),v&1||m++,m},a.prototype.bitLength=function(){var u=this.words[this.length-1],v=this._countBits(u);return(this.length-1)*26+v};function B(T){for(var u=new Array(T.bitLength()),v=0;v>>b}return u}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,v=0;vu.length?this.clone().ior(u):u.clone().ior(this)},a.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},a.prototype.iuand=function(u){var v;this.length>u.length?v=u:v=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},a.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},a.prototype.iuxor=function(u){var v,m;this.length>u.length?(v=this,m=u):(v=u,m=this);for(var b=0;bu.length?this.clone().ixor(u):u.clone().ixor(this)},a.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},a.prototype.inotn=function(u){o(typeof u=="number"&&u>=0);var v=Math.ceil(u/26)|0,m=u%26;this._expand(v),m>0&&v--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this.strip()},a.prototype.notn=function(u){return this.clone().inotn(u)},a.prototype.setn=function(u,v){o(typeof u=="number"&&u>=0);var m=u/26|0,b=u%26;return this._expand(m+1),v?this.words[m]=this.words[m]|1<u.length?(m=this,b=u):(m=u,b=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Au.length?this.clone().iadd(u):u.clone().iadd(this)},a.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var v=this.iadd(u);return u.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,M;m>0?(b=this,M=u):(b=u,M=this);for(var A=0,O=0;O>26,this.words[O]=v&67108863;for(;A!==0&&O>26,this.words[O]=v&67108863;if(A===0&&O>>26,N=$&67108863,z=Math.min(c,u.length-1),oe=Math.max(0,c-T.length+1);oe<=z;oe++){var le=c-oe|0;b=T.words[le]|0,M=u.words[oe]|0,A=b*M+N,x+=A/67108864|0,N=A&67108863}v.words[c]=N|0,$=x|0}return $!==0?v.words[c]=$|0:v.length--,v.strip()}var F=function(u,v,m){var b=u.words,M=v.words,A=m.words,O=0,$,c,x,N=b[0]|0,z=N&8191,oe=N>>>13,le=b[1]|0,U=le&8191,P=le>>>13,Z=b[2]|0,ie=Z&8191,se=Z>>>13,k=b[3]|0,I=k&8191,te=k>>>13,ee=b[4]|0,fe=ee&8191,J=ee>>>13,Y=b[5]|0,X=Y&8191,ne=Y>>>13,me=b[6]|0,he=me&8191,ge=me>>>13,Re=b[7]|0,_e=Re&8191,we=Re>>>13,qe=b[8]|0,Se=qe&8191,Ae=qe>>>13,Me=b[9]|0,ve=Me&8191,be=Me>>>13,Pe=M[0]|0,$e=Pe&8191,Te=Pe>>>13,Je=M[1]|0,Oe=Je&8191,Ie=Je>>>13,Ye=M[2]|0,xe=Ye&8191,Ce=Ye>>>13,Qe=M[3]|0,Be=Qe&8191,je=Qe>>>13,nt=M[4]|0,Ne=nt&8191,Ve=nt>>>13,ot=M[5]|0,He=ot&8191,We=ot>>>13,st=M[6]|0,ke=st&8191,Ge=st>>>13,lt=M[7]|0,Le=lt&8191,Ke=lt>>>13,ut=M[8]|0,De=ut&8191,Ze=ut>>>13,at=M[9]|0,Fe=at&8191,ze=at>>>13;m.negative=u.negative^v.negative,m.length=19,$=Math.imul(z,$e),c=Math.imul(z,Te),c=c+Math.imul(oe,$e)|0,x=Math.imul(oe,Te);var it=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(it>>>26)|0,it&=67108863,$=Math.imul(U,$e),c=Math.imul(U,Te),c=c+Math.imul(P,$e)|0,x=Math.imul(P,Te),$=$+Math.imul(z,Oe)|0,c=c+Math.imul(z,Ie)|0,c=c+Math.imul(oe,Oe)|0,x=x+Math.imul(oe,Ie)|0;var rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,$=Math.imul(ie,$e),c=Math.imul(ie,Te),c=c+Math.imul(se,$e)|0,x=Math.imul(se,Te),$=$+Math.imul(U,Oe)|0,c=c+Math.imul(U,Ie)|0,c=c+Math.imul(P,Oe)|0,x=x+Math.imul(P,Ie)|0,$=$+Math.imul(z,xe)|0,c=c+Math.imul(z,Ce)|0,c=c+Math.imul(oe,xe)|0,x=x+Math.imul(oe,Ce)|0;var mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,$=Math.imul(I,$e),c=Math.imul(I,Te),c=c+Math.imul(te,$e)|0,x=Math.imul(te,Te),$=$+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Ie)|0,c=c+Math.imul(se,Oe)|0,x=x+Math.imul(se,Ie)|0,$=$+Math.imul(U,xe)|0,c=c+Math.imul(U,Ce)|0,c=c+Math.imul(P,xe)|0,x=x+Math.imul(P,Ce)|0,$=$+Math.imul(z,Be)|0,c=c+Math.imul(z,je)|0,c=c+Math.imul(oe,Be)|0,x=x+Math.imul(oe,je)|0;var bt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,$=Math.imul(fe,$e),c=Math.imul(fe,Te),c=c+Math.imul(J,$e)|0,x=Math.imul(J,Te),$=$+Math.imul(I,Oe)|0,c=c+Math.imul(I,Ie)|0,c=c+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ie)|0,$=$+Math.imul(ie,xe)|0,c=c+Math.imul(ie,Ce)|0,c=c+Math.imul(se,xe)|0,x=x+Math.imul(se,Ce)|0,$=$+Math.imul(U,Be)|0,c=c+Math.imul(U,je)|0,c=c+Math.imul(P,Be)|0,x=x+Math.imul(P,je)|0,$=$+Math.imul(z,Ne)|0,c=c+Math.imul(z,Ve)|0,c=c+Math.imul(oe,Ne)|0,x=x+Math.imul(oe,Ve)|0;var wt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,$=Math.imul(X,$e),c=Math.imul(X,Te),c=c+Math.imul(ne,$e)|0,x=Math.imul(ne,Te),$=$+Math.imul(fe,Oe)|0,c=c+Math.imul(fe,Ie)|0,c=c+Math.imul(J,Oe)|0,x=x+Math.imul(J,Ie)|0,$=$+Math.imul(I,xe)|0,c=c+Math.imul(I,Ce)|0,c=c+Math.imul(te,xe)|0,x=x+Math.imul(te,Ce)|0,$=$+Math.imul(ie,Be)|0,c=c+Math.imul(ie,je)|0,c=c+Math.imul(se,Be)|0,x=x+Math.imul(se,je)|0,$=$+Math.imul(U,Ne)|0,c=c+Math.imul(U,Ve)|0,c=c+Math.imul(P,Ne)|0,x=x+Math.imul(P,Ve)|0,$=$+Math.imul(z,He)|0,c=c+Math.imul(z,We)|0,c=c+Math.imul(oe,He)|0,x=x+Math.imul(oe,We)|0;var St=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(he,$e),c=Math.imul(he,Te),c=c+Math.imul(ge,$e)|0,x=Math.imul(ge,Te),$=$+Math.imul(X,Oe)|0,c=c+Math.imul(X,Ie)|0,c=c+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,Ie)|0,$=$+Math.imul(fe,xe)|0,c=c+Math.imul(fe,Ce)|0,c=c+Math.imul(J,xe)|0,x=x+Math.imul(J,Ce)|0,$=$+Math.imul(I,Be)|0,c=c+Math.imul(I,je)|0,c=c+Math.imul(te,Be)|0,x=x+Math.imul(te,je)|0,$=$+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(se,Ne)|0,x=x+Math.imul(se,Ve)|0,$=$+Math.imul(U,He)|0,c=c+Math.imul(U,We)|0,c=c+Math.imul(P,He)|0,x=x+Math.imul(P,We)|0,$=$+Math.imul(z,ke)|0,c=c+Math.imul(z,Ge)|0,c=c+Math.imul(oe,ke)|0,x=x+Math.imul(oe,Ge)|0;var $t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+($t>>>26)|0,$t&=67108863,$=Math.imul(_e,$e),c=Math.imul(_e,Te),c=c+Math.imul(we,$e)|0,x=Math.imul(we,Te),$=$+Math.imul(he,Oe)|0,c=c+Math.imul(he,Ie)|0,c=c+Math.imul(ge,Oe)|0,x=x+Math.imul(ge,Ie)|0,$=$+Math.imul(X,xe)|0,c=c+Math.imul(X,Ce)|0,c=c+Math.imul(ne,xe)|0,x=x+Math.imul(ne,Ce)|0,$=$+Math.imul(fe,Be)|0,c=c+Math.imul(fe,je)|0,c=c+Math.imul(J,Be)|0,x=x+Math.imul(J,je)|0,$=$+Math.imul(I,Ne)|0,c=c+Math.imul(I,Ve)|0,c=c+Math.imul(te,Ne)|0,x=x+Math.imul(te,Ve)|0,$=$+Math.imul(ie,He)|0,c=c+Math.imul(ie,We)|0,c=c+Math.imul(se,He)|0,x=x+Math.imul(se,We)|0,$=$+Math.imul(U,ke)|0,c=c+Math.imul(U,Ge)|0,c=c+Math.imul(P,ke)|0,x=x+Math.imul(P,Ge)|0,$=$+Math.imul(z,Le)|0,c=c+Math.imul(z,Ke)|0,c=c+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Ke)|0;var At=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(At>>>26)|0,At&=67108863,$=Math.imul(Se,$e),c=Math.imul(Se,Te),c=c+Math.imul(Ae,$e)|0,x=Math.imul(Ae,Te),$=$+Math.imul(_e,Oe)|0,c=c+Math.imul(_e,Ie)|0,c=c+Math.imul(we,Oe)|0,x=x+Math.imul(we,Ie)|0,$=$+Math.imul(he,xe)|0,c=c+Math.imul(he,Ce)|0,c=c+Math.imul(ge,xe)|0,x=x+Math.imul(ge,Ce)|0,$=$+Math.imul(X,Be)|0,c=c+Math.imul(X,je)|0,c=c+Math.imul(ne,Be)|0,x=x+Math.imul(ne,je)|0,$=$+Math.imul(fe,Ne)|0,c=c+Math.imul(fe,Ve)|0,c=c+Math.imul(J,Ne)|0,x=x+Math.imul(J,Ve)|0,$=$+Math.imul(I,He)|0,c=c+Math.imul(I,We)|0,c=c+Math.imul(te,He)|0,x=x+Math.imul(te,We)|0,$=$+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Ge)|0,c=c+Math.imul(se,ke)|0,x=x+Math.imul(se,Ge)|0,$=$+Math.imul(U,Le)|0,c=c+Math.imul(U,Ke)|0,c=c+Math.imul(P,Le)|0,x=x+Math.imul(P,Ke)|0,$=$+Math.imul(z,De)|0,c=c+Math.imul(z,Ze)|0,c=c+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ze)|0;var Rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,$=Math.imul(ve,$e),c=Math.imul(ve,Te),c=c+Math.imul(be,$e)|0,x=Math.imul(be,Te),$=$+Math.imul(Se,Oe)|0,c=c+Math.imul(Se,Ie)|0,c=c+Math.imul(Ae,Oe)|0,x=x+Math.imul(Ae,Ie)|0,$=$+Math.imul(_e,xe)|0,c=c+Math.imul(_e,Ce)|0,c=c+Math.imul(we,xe)|0,x=x+Math.imul(we,Ce)|0,$=$+Math.imul(he,Be)|0,c=c+Math.imul(he,je)|0,c=c+Math.imul(ge,Be)|0,x=x+Math.imul(ge,je)|0,$=$+Math.imul(X,Ne)|0,c=c+Math.imul(X,Ve)|0,c=c+Math.imul(ne,Ne)|0,x=x+Math.imul(ne,Ve)|0,$=$+Math.imul(fe,He)|0,c=c+Math.imul(fe,We)|0,c=c+Math.imul(J,He)|0,x=x+Math.imul(J,We)|0,$=$+Math.imul(I,ke)|0,c=c+Math.imul(I,Ge)|0,c=c+Math.imul(te,ke)|0,x=x+Math.imul(te,Ge)|0,$=$+Math.imul(ie,Le)|0,c=c+Math.imul(ie,Ke)|0,c=c+Math.imul(se,Le)|0,x=x+Math.imul(se,Ke)|0,$=$+Math.imul(U,De)|0,c=c+Math.imul(U,Ze)|0,c=c+Math.imul(P,De)|0,x=x+Math.imul(P,Ze)|0,$=$+Math.imul(z,Fe)|0,c=c+Math.imul(z,ze)|0,c=c+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,ze)|0;var Mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,$=Math.imul(ve,Oe),c=Math.imul(ve,Ie),c=c+Math.imul(be,Oe)|0,x=Math.imul(be,Ie),$=$+Math.imul(Se,xe)|0,c=c+Math.imul(Se,Ce)|0,c=c+Math.imul(Ae,xe)|0,x=x+Math.imul(Ae,Ce)|0,$=$+Math.imul(_e,Be)|0,c=c+Math.imul(_e,je)|0,c=c+Math.imul(we,Be)|0,x=x+Math.imul(we,je)|0,$=$+Math.imul(he,Ne)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(ge,Ne)|0,x=x+Math.imul(ge,Ve)|0,$=$+Math.imul(X,He)|0,c=c+Math.imul(X,We)|0,c=c+Math.imul(ne,He)|0,x=x+Math.imul(ne,We)|0,$=$+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(J,ke)|0,x=x+Math.imul(J,Ge)|0,$=$+Math.imul(I,Le)|0,c=c+Math.imul(I,Ke)|0,c=c+Math.imul(te,Le)|0,x=x+Math.imul(te,Ke)|0,$=$+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ze)|0,c=c+Math.imul(se,De)|0,x=x+Math.imul(se,Ze)|0,$=$+Math.imul(U,Fe)|0,c=c+Math.imul(U,ze)|0,c=c+Math.imul(P,Fe)|0,x=x+Math.imul(P,ze)|0;var ht=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,$=Math.imul(ve,xe),c=Math.imul(ve,Ce),c=c+Math.imul(be,xe)|0,x=Math.imul(be,Ce),$=$+Math.imul(Se,Be)|0,c=c+Math.imul(Se,je)|0,c=c+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,je)|0,$=$+Math.imul(_e,Ne)|0,c=c+Math.imul(_e,Ve)|0,c=c+Math.imul(we,Ne)|0,x=x+Math.imul(we,Ve)|0,$=$+Math.imul(he,He)|0,c=c+Math.imul(he,We)|0,c=c+Math.imul(ge,He)|0,x=x+Math.imul(ge,We)|0,$=$+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Ge)|0,$=$+Math.imul(fe,Le)|0,c=c+Math.imul(fe,Ke)|0,c=c+Math.imul(J,Le)|0,x=x+Math.imul(J,Ke)|0,$=$+Math.imul(I,De)|0,c=c+Math.imul(I,Ze)|0,c=c+Math.imul(te,De)|0,x=x+Math.imul(te,Ze)|0,$=$+Math.imul(ie,Fe)|0,c=c+Math.imul(ie,ze)|0,c=c+Math.imul(se,Fe)|0,x=x+Math.imul(se,ze)|0;var yt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,$=Math.imul(ve,Be),c=Math.imul(ve,je),c=c+Math.imul(be,Be)|0,x=Math.imul(be,je),$=$+Math.imul(Se,Ne)|0,c=c+Math.imul(Se,Ve)|0,c=c+Math.imul(Ae,Ne)|0,x=x+Math.imul(Ae,Ve)|0,$=$+Math.imul(_e,He)|0,c=c+Math.imul(_e,We)|0,c=c+Math.imul(we,He)|0,x=x+Math.imul(we,We)|0,$=$+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(ge,ke)|0,x=x+Math.imul(ge,Ge)|0,$=$+Math.imul(X,Le)|0,c=c+Math.imul(X,Ke)|0,c=c+Math.imul(ne,Le)|0,x=x+Math.imul(ne,Ke)|0,$=$+Math.imul(fe,De)|0,c=c+Math.imul(fe,Ze)|0,c=c+Math.imul(J,De)|0,x=x+Math.imul(J,Ze)|0,$=$+Math.imul(I,Fe)|0,c=c+Math.imul(I,ze)|0,c=c+Math.imul(te,Fe)|0,x=x+Math.imul(te,ze)|0;var gt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(ve,Ne),c=Math.imul(ve,Ve),c=c+Math.imul(be,Ne)|0,x=Math.imul(be,Ve),$=$+Math.imul(Se,He)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Ae,He)|0,x=x+Math.imul(Ae,We)|0,$=$+Math.imul(_e,ke)|0,c=c+Math.imul(_e,Ge)|0,c=c+Math.imul(we,ke)|0,x=x+Math.imul(we,Ge)|0,$=$+Math.imul(he,Le)|0,c=c+Math.imul(he,Ke)|0,c=c+Math.imul(ge,Le)|0,x=x+Math.imul(ge,Ke)|0,$=$+Math.imul(X,De)|0,c=c+Math.imul(X,Ze)|0,c=c+Math.imul(ne,De)|0,x=x+Math.imul(ne,Ze)|0,$=$+Math.imul(fe,Fe)|0,c=c+Math.imul(fe,ze)|0,c=c+Math.imul(J,Fe)|0,x=x+Math.imul(J,ze)|0;var dt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,$=Math.imul(ve,He),c=Math.imul(ve,We),c=c+Math.imul(be,He)|0,x=Math.imul(be,We),$=$+Math.imul(Se,ke)|0,c=c+Math.imul(Se,Ge)|0,c=c+Math.imul(Ae,ke)|0,x=x+Math.imul(Ae,Ge)|0,$=$+Math.imul(_e,Le)|0,c=c+Math.imul(_e,Ke)|0,c=c+Math.imul(we,Le)|0,x=x+Math.imul(we,Ke)|0,$=$+Math.imul(he,De)|0,c=c+Math.imul(he,Ze)|0,c=c+Math.imul(ge,De)|0,x=x+Math.imul(ge,Ze)|0,$=$+Math.imul(X,Fe)|0,c=c+Math.imul(X,ze)|0,c=c+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,ze)|0;var _t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,$=Math.imul(ve,ke),c=Math.imul(ve,Ge),c=c+Math.imul(be,ke)|0,x=Math.imul(be,Ge),$=$+Math.imul(Se,Le)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Ae,Le)|0,x=x+Math.imul(Ae,Ke)|0,$=$+Math.imul(_e,De)|0,c=c+Math.imul(_e,Ze)|0,c=c+Math.imul(we,De)|0,x=x+Math.imul(we,Ze)|0,$=$+Math.imul(he,Fe)|0,c=c+Math.imul(he,ze)|0,c=c+Math.imul(ge,Fe)|0,x=x+Math.imul(ge,ze)|0;var ct=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ct>>>26)|0,ct&=67108863,$=Math.imul(ve,Le),c=Math.imul(ve,Ke),c=c+Math.imul(be,Le)|0,x=Math.imul(be,Ke),$=$+Math.imul(Se,De)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Ae,De)|0,x=x+Math.imul(Ae,Ze)|0,$=$+Math.imul(_e,Fe)|0,c=c+Math.imul(_e,ze)|0,c=c+Math.imul(we,Fe)|0,x=x+Math.imul(we,ze)|0;var pt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(ve,De),c=Math.imul(ve,Ze),c=c+Math.imul(be,De)|0,x=Math.imul(be,Ze),$=$+Math.imul(Se,Fe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,ze)|0;var Et=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,$=Math.imul(ve,Fe),c=Math.imul(ve,ze),c=c+Math.imul(be,Fe)|0,x=Math.imul(be,ze);var xt=(O+$|0)+((c&8191)<<13)|0;return O=(x+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,A[0]=it,A[1]=rt,A[2]=mt,A[3]=bt,A[4]=wt,A[5]=St,A[6]=$t,A[7]=At,A[8]=Rt,A[9]=Mt,A[10]=ht,A[11]=yt,A[12]=gt,A[13]=dt,A[14]=_t,A[15]=ct,A[16]=pt,A[17]=Et,A[18]=xt,O!==0&&(A[19]=O,m.length++),m};Math.imul||(F=L);function q(T,u,v){v.negative=u.negative^T.negative,v.length=T.length+u.length;for(var m=0,b=0,M=0;M>>26)|0,b+=A>>>26,A&=67108863}v.words[M]=O,m=A,A=b}return m!==0?v.words[M]=m:v.length--,v.strip()}function H(T,u,v){var m=new D;return m.mulp(T,u,v)}a.prototype.mulTo=function(u,v){var m,b=this.length+u.length;return this.length===10&&u.length===10?m=F(this,u,v):b<63?m=L(this,u,v):b<1024?m=q(this,u,v):m=H(this,u,v),m};function D(T,u){this.x=T,this.y=u}D.prototype.makeRBT=function(u){for(var v=new Array(u),m=a.prototype._countBits(u)-1,b=0;b>=1;return b},D.prototype.permute=function(u,v,m,b,M,A){for(var O=0;O>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*v;A>=26,v+=b/67108864|0,v+=M>>>26,this.words[m]=M&67108863}return v!==0&&(this.words[m]=v,this.length++),this.length=u===0?1:this.length,this},a.prototype.muln=function(u){return this.clone().imuln(u)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(u){var v=B(u);if(v.length===0)return new a(1);for(var m=this,b=0;b=0);var v=u%26,m=(u-v)/26,b=67108863>>>26-v<<26-v,M;if(v!==0){var A=0;for(M=0;M>>26-v}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var b;v?b=(v-v%26)/26:b=0;var M=u%26,A=Math.min((u-M)/26,this.length),O=67108863^67108863>>>M<A)for(this.length-=A,c=0;c=0&&(x!==0||c>=b);c--){var N=this.words[c]|0;this.words[c]=x<<26-M|N>>>M,x=N&O}return $&&x!==0&&($.words[$.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(u,v,m){return o(this.negative===0),this.iushrn(u,v,m)},a.prototype.shln=function(u){return this.clone().ishln(u)},a.prototype.ushln=function(u){return this.clone().iushln(u)},a.prototype.shrn=function(u){return this.clone().ishrn(u)},a.prototype.ushrn=function(u){return this.clone().iushrn(u)},a.prototype.testn=function(u){o(typeof u=="number"&&u>=0);var v=u%26,m=(u-v)/26,b=1<=0);var v=u%26,m=(u-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(v!==0&&m++,this.length=Math.min(m,this.length),v!==0){var b=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(u){if(o(typeof u=="number"),o(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-($/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(O===0)return this.strip();for(o(O===-1),O=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(u,v){var m=this.length-u.length,b=this.clone(),M=u,A=M.words[M.length-1]|0,O=this._countBits(A);m=26-O,m!==0&&(M=M.ushln(m),b.iushln(m),A=M.words[M.length-1]|0);var $=b.length-M.length,c;if(v!=="mod"){c=new a(null),c.length=$+1,c.words=new Array(c.length);for(var x=0;x=0;z--){var oe=(b.words[M.length+z]|0)*67108864+(b.words[M.length+z-1]|0);for(oe=Math.min(oe/A|0,67108863),b._ishlnsubmul(M,oe,z);b.negative!==0;)oe--,b.negative=0,b._ishlnsubmul(M,1,z),b.isZero()||(b.negative^=1);c&&(c.words[z]=oe)}return c&&c.strip(),b.strip(),v!=="div"&&m!==0&&b.iushrn(m),{div:c||null,mod:b}},a.prototype.divmod=function(u,v,m){if(o(!u.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,M,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,v),v!=="mod"&&(b=A.div.neg()),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(u)),{div:b,mod:M}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),v),v!=="mod"&&(b=A.div.neg()),{div:b,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),v),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(u)),{div:A.div,mod:M}):u.length>this.length||this.cmp(u)<0?{div:new a(0),mod:this}:u.length===1?v==="div"?{div:this.divn(u.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new a(this.modn(u.words[0]))}:this._wordDiv(u,v)},a.prototype.div=function(u){return this.divmod(u,"div",!1).div},a.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},a.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},a.prototype.divRound=function(u){var v=this.divmod(u);if(v.mod.isZero())return v.div;var m=v.div.negative!==0?v.mod.isub(u):v.mod,b=u.ushrn(1),M=u.andln(1),A=m.cmp(b);return A<0||M===1&&A===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modn=function(u){o(u<=67108863);for(var v=(1<<26)%u,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%u;return m},a.prototype.idivn=function(u){o(u<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/u|0,v=b%u}return this.strip()},a.prototype.divn=function(u){return this.clone().idivn(u)},a.prototype.egcd=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=new a(0),O=new a(1),$=0;v.isEven()&&m.isEven();)v.iushrn(1),m.iushrn(1),++$;for(var c=m.clone(),x=v.clone();!v.isZero();){for(var N=0,z=1;!(v.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(v.iushrn(N);N-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(c),M.isub(x)),b.iushrn(1),M.iushrn(1);for(var oe=0,le=1;!(m.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(m.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(c),O.isub(x)),A.iushrn(1),O.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(A),M.isub(O)):(m.isub(v),A.isub(b),O.isub(M))}return{a:A,b:O,gcd:m.iushln($)}},a.prototype._invmp=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=m.clone();v.cmpn(1)>0&&m.cmpn(1)>0;){for(var O=0,$=1;!(v.words[0]&$)&&O<26;++O,$<<=1);if(O>0)for(v.iushrn(O);O-- >0;)b.isOdd()&&b.iadd(A),b.iushrn(1);for(var c=0,x=1;!(m.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(m.iushrn(c);c-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(M)):(m.isub(v),M.isub(b))}var N;return v.cmpn(1)===0?N=b:N=M,N.cmpn(0)<0&&N.iadd(u),N},a.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var v=this.clone(),m=u.clone();v.negative=0,m.negative=0;for(var b=0;v.isEven()&&m.isEven();b++)v.iushrn(1),m.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=v.cmp(m);if(M<0){var A=v;v=m,m=A}else if(M===0||m.cmpn(1)===0)break;v.isub(m)}while(!0);return m.iushln(b)},a.prototype.invm=function(u){return this.egcd(u).a.umod(u)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(u){return this.words[0]&u},a.prototype.bincn=function(u){o(typeof u=="number");var v=u%26,m=(u-v)/26,b=1<>>26,O&=67108863,this.words[A]=O}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(u){var v=u<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var m;if(this.length>1)m=1;else{v&&(u=-u),o(u<=67108863,"Number is too big");var b=this.words[0]|0;m=b===u?0:bu.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,M=u.words[m]|0;if(b!==M){bM&&(v=1);break}}return v},a.prototype.gtn=function(u){return this.cmpn(u)===1},a.prototype.gt=function(u){return this.cmp(u)===1},a.prototype.gten=function(u){return this.cmpn(u)>=0},a.prototype.gte=function(u){return this.cmp(u)>=0},a.prototype.ltn=function(u){return this.cmpn(u)===-1},a.prototype.lt=function(u){return this.cmp(u)===-1},a.prototype.lten=function(u){return this.cmpn(u)<=0},a.prototype.lte=function(u){return this.cmp(u)<=0},a.prototype.eqn=function(u){return this.cmpn(u)===0},a.prototype.eq=function(u){return this.cmp(u)===0},a.red=function(u){return new re(u)},a.prototype.toRed=function(u){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(u){return this.red=u,this},a.prototype.forceRed=function(u){return o(!this.red,"Already a number in reduction context"),this._forceRed(u)},a.prototype.redAdd=function(u){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},a.prototype.redIAdd=function(u){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},a.prototype.redSub=function(u){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},a.prototype.redISub=function(u){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},a.prototype.redShl=function(u){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},a.prototype.redMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},a.prototype.redIMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(u){return o(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var j={k256:null,p224:null,p192:null,p25519:null};function V(T,u){this.name=T,this.p=new a(u,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var u=new a(null);return u.words=new Array(Math.ceil(this.n/13)),u},V.prototype.ireduce=function(u){var v=u,m;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),m=v.bitLength();while(m>this.n);var b=m0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},V.prototype.split=function(u,v){u.iushrn(this.n,0,v)},V.prototype.imulK=function(u){return u.imul(this.k)};function Q(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Q,V),Q.prototype.split=function(u,v){for(var m=4194303,b=Math.min(u.length,9),M=0;M>>22,A=O}A>>>=22,u.words[M-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},Q.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var v=0,m=0;m>>=26,u.words[m]=M,v=b}return v!==0&&(u.words[u.length++]=v),u},a._prime=function(u){if(j[u])return j[u];var v;if(u==="k256")v=new Q;else if(u==="p224")v=new ae;else if(u==="p192")v=new ce;else if(u==="p25519")v=new ue;else throw new Error("Unknown prime "+u);return j[u]=v,v};function re(T){if(typeof T=="string"){var u=a._prime(T);this.m=u.p,this.prime=u}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}re.prototype._verify1=function(u){o(u.negative===0,"red works only with positives"),o(u.red,"red works only with red numbers")},re.prototype._verify2=function(u,v){o((u.negative|v.negative)===0,"red works only with positives"),o(u.red&&u.red===v.red,"red works only with red numbers")},re.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},re.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},re.prototype.add=function(u,v){this._verify2(u,v);var m=u.add(v);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},re.prototype.iadd=function(u,v){this._verify2(u,v);var m=u.iadd(v);return m.cmp(this.m)>=0&&m.isub(this.m),m},re.prototype.sub=function(u,v){this._verify2(u,v);var m=u.sub(v);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},re.prototype.isub=function(u,v){this._verify2(u,v);var m=u.isub(v);return m.cmpn(0)<0&&m.iadd(this.m),m},re.prototype.shl=function(u,v){return this._verify1(u),this.imod(u.ushln(v))},re.prototype.imul=function(u,v){return this._verify2(u,v),this.imod(u.imul(v))},re.prototype.mul=function(u,v){return this._verify2(u,v),this.imod(u.mul(v))},re.prototype.isqr=function(u){return this.imul(u,u.clone())},re.prototype.sqr=function(u){return this.mul(u,u)},re.prototype.sqrt=function(u){if(u.isZero())return u.clone();var v=this.m.andln(3);if(o(v%2===1),v===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(u,m)}for(var b=this.m.subn(1),M=0;!b.isZero()&&b.andln(1)===0;)M++,b.iushrn(1);o(!b.isZero());var A=new a(1).toRed(this),O=A.redNeg(),$=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);this.pow(c,$).cmp(O)!==0;)c.redIAdd(O);for(var x=this.pow(c,b),N=this.pow(u,b.addn(1).iushrn(1)),z=this.pow(u,b),oe=M;z.cmp(A)!==0;){for(var le=z,U=0;le.cmp(A)!==0;U++)le=le.redSqr();o(U=0;M--){for(var x=v.words[M],N=c-1;N>=0;N--){var z=x>>N&1;if(A!==b[0]&&(A=this.sqr(A)),z===0&&O===0){$=0;continue}O<<=1,O|=z,$++,!($!==m&&(M!==0||N!==0))&&(A=this.mul(A,b[O]),$=0,O=0)}c=26}return A},re.prototype.convertTo=function(u){var v=u.umod(this.m);return v===u?v.clone():v},re.prototype.convertFrom=function(u){var v=u.clone();return v.red=null,v},a.mont=function(u){return new pe(u)};function pe(T){re.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(pe,re),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var v=this.imod(u.mul(this.rinv));return v.red=null,v},pe.prototype.imul=function(u,v){if(u.isZero()||v.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,v){if(u.isZero()||v.isZero())return new a(0)._forceRed(this);var m=u.mul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var v=this.imod(u._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(e,commonjsGlobal)})(bn$2);var bnExports$2=bn$2.exports,api={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;nMAX_UINT32)throw new RangeError("requested too many random bytes");var n=Buffer$B.allocUnsafe(e);if(e>0)if(e>MAX_BYTES)for(var o=0;o0?this.tail.next=H:this.head=H,this.tail=H,++this.length}},{key:"unshift",value:function(q){var H={data:q,next:this.head};this.length===0&&(this.tail=H),this.head=H,++this.length}},{key:"shift",value:function(){if(this.length!==0){var q=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(q){if(this.length===0)return"";for(var H=this.head,D=""+H.data;H=H.next;)D+=q+H.data;return D}},{key:"concat",value:function(q){if(this.length===0)return _.alloc(0);for(var H=_.allocUnsafe(q>>>0),D=this.head,j=0;D;)B(D.data,H,j),j+=D.data.length,D=D.next;return H}},{key:"consume",value:function(q,H){var D;return qV.length?V.length:q;if(Q===V.length?j+=V:j+=V.slice(0,q),q-=Q,q===0){Q===V.length?(++D,H.next?this.head=H.next:this.head=this.tail=null):(this.head=H,H.data=V.slice(Q));break}++D}return this.length-=D,j}},{key:"_getBuffer",value:function(q){var H=_.allocUnsafe(q),D=this.head,j=1;for(D.data.copy(H),q-=D.data.length;D=D.next;){var V=D.data,Q=q>V.length?V.length:q;if(V.copy(H,H.length-q,0,Q),q-=Q,q===0){Q===V.length?(++j,D.next?this.head=D.next:this.head=this.tail=null):(this.head=D,D.data=V.slice(Q));break}++j}return this.length-=j,H}},{key:C,value:function(q,H){return E(this,t(t({},H),{},{depth:0,customInspect:!1}))}}]),L}(),buffer_list}var destroy_1$1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1$1;hasRequiredDestroy=1;function e(d,y){var w=this,_=this._readableState&&this._readableState.destroyed,S=this._writableState&&this._writableState.destroyed;return _||S?(y?y(d):d&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,api$2.nextTick(l,this,d)):api$2.nextTick(l,this,d)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(d||null,function(E){!y&&E?w._writableState?w._writableState.errorEmitted?api$2.nextTick(n,w):(w._writableState.errorEmitted=!0,api$2.nextTick(t,w,E)):api$2.nextTick(t,w,E):y?(api$2.nextTick(n,w),y(E)):api$2.nextTick(n,w)}),this)}function t(d,y){l(d,y),n(d)}function n(d){d._writableState&&!d._writableState.emitClose||d._readableState&&!d._readableState.emitClose||d.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(d,y){d.emit("error",y)}function a(d,y){var w=d._readableState,_=d._writableState;w&&w.autoDestroy||_&&_.autoDestroy?d.destroy(y):d.emit("error",y)}return destroy_1$1={destroy:e,undestroy:o,errorOrDestroy:a},destroy_1$1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function e(y,w){y.prototype=Object.create(w.prototype),y.prototype.constructor=y,y.__proto__=w}var t={};function n(y,w,_){_||(_=Error);function S(C,B,L){return typeof w=="string"?w:w(C,B,L)}var E=function(C){e(B,C);function B(L,F,q){return C.call(this,S(L,F,q))||this}return B}(_);E.prototype.name=_.name,E.prototype.code=y,t[y]=E}function o(y,w){if(Array.isArray(y)){var _=y.length;return y=y.map(function(S){return String(S)}),_>2?"one of ".concat(w," ").concat(y.slice(0,_-1).join(", "),", or ")+y[_-1]:_===2?"one of ".concat(w," ").concat(y[0]," or ").concat(y[1]):"of ".concat(w," ").concat(y[0])}else return"of ".concat(w," ").concat(String(y))}function l(y,w,_){return y.substr(!_||_<0?0:+_,w.length)===w}function a(y,w,_){return(_===void 0||_>y.length)&&(_=y.length),y.substring(_-w.length,_)===w}function d(y,w,_){return typeof _!="number"&&(_=0),_+w.length>y.length?!1:y.indexOf(w,_)!==-1}return n("ERR_INVALID_OPT_VALUE",function(y,w){return'The value "'+w+'" is invalid for option "'+y+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(y,w,_){var S;typeof w=="string"&&l(w,"not ")?(S="must not be",w=w.replace(/^not /,"")):S="must be";var E;if(a(y," argument"))E="The ".concat(y," ").concat(S," ").concat(o(w,"type"));else{var C=d(y,".")?"property":"argument";E='The "'.concat(y,'" ').concat(C," ").concat(S," ").concat(o(w,"type"))}return E+=". Received type ".concat(typeof _),E},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(y){return"The "+y+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(y){return"Cannot call "+y+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(y){return"Unknown encoding: "+y},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=t,errorsBrowser}var state,hasRequiredState;function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var e=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function t(o,l,a){return o.highWaterMark!=null?o.highWaterMark:l?o[a]:null}function n(o,l,a,d){var y=t(l,d,a);if(y!=null){if(!(isFinite(y)&&Math.floor(y)===y)||y<0){var w=d?a:"highWaterMark";throw new e(w,y)}return Math.floor(y)}return o.objectMode?16:16*1024}return state={getHighWaterMark:n},state}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=ue;function e(U){var P=this;this.next=null,this.entry=null,this.finish=function(){le(P,U)}}var t;ue.WritableState=ae;var n={deprecate:browser$d},o=requireStreamBrowser(),l=buffer$2.Buffer,a=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d(U){return l.from(U)}function y(U){return l.isBuffer(U)||U instanceof a}var w=requireDestroy(),_=requireState(),S=_.getHighWaterMark,E=requireErrorsBrowser().codes,C=E.ERR_INVALID_ARG_TYPE,B=E.ERR_METHOD_NOT_IMPLEMENTED,L=E.ERR_MULTIPLE_CALLBACK,F=E.ERR_STREAM_CANNOT_PIPE,q=E.ERR_STREAM_DESTROYED,H=E.ERR_STREAM_NULL_VALUES,D=E.ERR_STREAM_WRITE_AFTER_END,j=E.ERR_UNKNOWN_ENCODING,V=w.errorOrDestroy;inherits_browserExports(ue,o);function Q(){}function ae(U,P,Z){t=t||require_stream_duplex$1(),U=U||{},typeof Z!="boolean"&&(Z=P instanceof t),this.objectMode=!!U.objectMode,Z&&(this.objectMode=this.objectMode||!!U.writableObjectMode),this.highWaterMark=S(this,U,"writableHighWaterMark",Z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=U.decodeStrings===!1;this.decodeStrings=!ie,this.defaultEncoding=U.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){M(P,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}ae.prototype.getBuffer=function(){for(var P=this.bufferedRequest,Z=[];P;)Z.push(P),P=P.next;return Z},function(){try{Object.defineProperty(ae.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ce;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ce=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(P){return ce.call(this,P)?!0:this!==ue?!1:P&&P._writableState instanceof ae}})):ce=function(P){return P instanceof this};function ue(U){t=t||require_stream_duplex$1();var P=this instanceof t;if(!P&&!ce.call(ue,this))return new ue(U);this._writableState=new ae(U,this,P),this.writable=!0,U&&(typeof U.write=="function"&&(this._write=U.write),typeof U.writev=="function"&&(this._writev=U.writev),typeof U.destroy=="function"&&(this._destroy=U.destroy),typeof U.final=="function"&&(this._final=U.final)),o.call(this)}ue.prototype.pipe=function(){V(this,new F)};function re(U,P){var Z=new D;V(U,Z),api$2.nextTick(P,Z)}function pe(U,P,Z,ie){var se;return Z===null?se=new H:typeof Z!="string"&&!P.objectMode&&(se=new C("chunk",["string","Buffer"],Z)),se?(V(U,se),api$2.nextTick(ie,se),!1):!0}ue.prototype.write=function(U,P,Z){var ie=this._writableState,se=!1,k=!ie.objectMode&&y(U);return k&&!l.isBuffer(U)&&(U=d(U)),typeof P=="function"&&(Z=P,P=null),k?P="buffer":P||(P=ie.defaultEncoding),typeof Z!="function"&&(Z=Q),ie.ending?re(this,Z):(k||pe(this,ie,U,Z))&&(ie.pendingcb++,se=u(this,ie,k,U,P,Z)),se},ue.prototype.cork=function(){this._writableState.corked++},ue.prototype.uncork=function(){var U=this._writableState;U.corked&&(U.corked--,!U.writing&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&$(this,U))},ue.prototype.setDefaultEncoding=function(P){if(typeof P=="string"&&(P=P.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((P+"").toLowerCase())>-1))throw new j(P);return this._writableState.defaultEncoding=P,this},Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function T(U,P,Z){return!U.objectMode&&U.decodeStrings!==!1&&typeof P=="string"&&(P=l.from(P,Z)),P}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function u(U,P,Z,ie,se,k){if(!Z){var I=T(P,ie,se);ie!==I&&(Z=!0,se="buffer",ie=I)}var te=P.objectMode?1:ie.length;P.length+=te;var ee=P.length0)if(typeof I!="string"&&!J.objectMode&&Object.getPrototypeOf(I)!==o.prototype&&(I=a(I)),ee)J.endEmitted?Q(k,new H):T(k,J,I,!0);else if(J.ended)Q(k,new F);else{if(J.destroyed)return!1;J.reading=!1,J.decoder&&!te?(I=J.decoder.write(I),J.objectMode||I.length!==0?T(k,J,I,!1):$(k,J)):T(k,J,I,!1)}else ee||(J.reading=!1,$(k,J))}return!J.ended&&(J.length=v?k=v:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function b(k,I){return k<=0||I.length===0&&I.ended?0:I.objectMode?1:k!==k?I.flowing&&I.length?I.buffer.head.data.length:I.length:(k>I.highWaterMark&&(I.highWaterMark=m(k)),k<=I.length?k:I.ended?I.length:(I.needReadable=!0,0))}re.prototype.read=function(k){w("read",k),k=parseInt(k,10);var I=this._readableState,te=k;if(k!==0&&(I.emittedReadable=!1),k===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return w("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?Z(this):A(this),null;if(k=b(k,I),k===0&&I.ended)return I.length===0&&Z(this),null;var ee=I.needReadable;w("need readable",ee),(I.length===0||I.length-k0?fe=P(k,I):fe=null,fe===null?(I.needReadable=I.length<=I.highWaterMark,k=0):(I.length-=k,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),te!==k&&I.ended&&Z(this)),fe!==null&&this.emit("data",fe),fe};function M(k,I){if(w("onEofChunk"),!I.ended){if(I.decoder){var te=I.decoder.end();te&&te.length&&(I.buffer.push(te),I.length+=I.objectMode?1:te.length)}I.ended=!0,I.sync?A(k):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,O(k)))}}function A(k){var I=k._readableState;w("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(w("emitReadable",I.flowing),I.emittedReadable=!0,api$2.nextTick(O,k))}function O(k){var I=k._readableState;w("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(k.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,U(k)}function $(k,I){I.readingMore||(I.readingMore=!0,api$2.nextTick(c,k,I))}function c(k,I){for(;!I.reading&&!I.ended&&(I.length1&&se(ee.pipes,k)!==-1)&&!me&&(w("false write response, pause",ee.awaitDrain),ee.awaitDrain++),te.pause())}function Re(Se){w("onerror",Se),qe(),k.removeListener("error",Re),t(k,"error")===0&&Q(k,Se)}ce(k,"error",Re);function _e(){k.removeListener("finish",we),qe()}k.once("close",_e);function we(){w("onfinish"),k.removeListener("close",_e),qe()}k.once("finish",we);function qe(){w("unpipe"),te.unpipe(k)}return k.emit("pipe",te),ee.flowing||(w("pipe resume"),te.resume()),k};function x(k){return function(){var te=k._readableState;w("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&t(k,"data")&&(te.flowing=!0,U(k))}}re.prototype.unpipe=function(k){var I=this._readableState,te={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return k&&k!==I.pipes?this:(k||(k=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,k&&k.emit("unpipe",this,te),this);if(!k){var ee=I.pipes,fe=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var J=0;J0,ee.flowing!==!1&&this.resume()):k==="readable"&&!ee.endEmitted&&!ee.readableListening&&(ee.readableListening=ee.needReadable=!0,ee.flowing=!1,ee.emittedReadable=!1,w("on readable",ee.length,ee.reading),ee.length?A(this):ee.reading||api$2.nextTick(z,this)),te},re.prototype.addListener=re.prototype.on,re.prototype.removeListener=function(k,I){var te=n.prototype.removeListener.call(this,k,I);return k==="readable"&&api$2.nextTick(N,this),te},re.prototype.removeAllListeners=function(k){var I=n.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&api$2.nextTick(N,this),I};function N(k){var I=k._readableState;I.readableListening=k.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:k.listenerCount("data")>0&&k.resume()}function z(k){w("readable nexttick read 0"),k.read(0)}re.prototype.resume=function(){var k=this._readableState;return k.flowing||(w("resume"),k.flowing=!k.readableListening,oe(this,k)),k.paused=!1,this};function oe(k,I){I.resumeScheduled||(I.resumeScheduled=!0,api$2.nextTick(le,k,I))}function le(k,I){w("resume",I.reading),I.reading||k.read(0),I.resumeScheduled=!1,k.emit("resume"),U(k),I.flowing&&!I.reading&&k.read(0)}re.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function U(k){var I=k._readableState;for(w("flow",I.flowing);I.flowing&&k.read()!==null;);}re.prototype.wrap=function(k){var I=this,te=this._readableState,ee=!1;k.on("end",function(){if(w("wrapped end"),te.decoder&&!te.ended){var Y=te.decoder.end();Y&&Y.length&&I.push(Y)}I.push(null)}),k.on("data",function(Y){if(w("wrapped data"),te.decoder&&(Y=te.decoder.write(Y)),!(te.objectMode&&Y==null)&&!(!te.objectMode&&(!Y||!Y.length))){var X=I.push(Y);X||(ee=!0,k.pause())}});for(var fe in k)this[fe]===void 0&&typeof k[fe]=="function"&&(this[fe]=function(X){return function(){return k[X].apply(k,arguments)}}(fe));for(var J=0;J=I.length?(I.decoder?te=I.buffer.join(""):I.buffer.length===1?te=I.buffer.first():te=I.buffer.concat(I.length),I.buffer.clear()):te=I.buffer.consume(k,I.decoder),te}function Z(k){var I=k._readableState;w("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,api$2.nextTick(ie,I,k))}function ie(k,I){if(w("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,I.readable=!1,I.emit("end"),k.autoDestroy)){var te=I._writableState;(!te||te.autoDestroy&&te.finished)&&I.destroy()}}typeof Symbol=="function"&&(re.from=function(k,I){return V===void 0&&(V=requireFromBrowser()),V(re,k,I)});function se(k,I){for(var te=0,ee=k.length;te0;return y(D,V,Q,function(ae){q||(q=ae),ae&&H.forEach(w),!V&&(H.forEach(w),F(q))})});return B.reduce(_)}return pipeline_1=E,pipeline_1}var streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$s=inherits_browserExports;inherits$s(Stream,EE);Stream.Readable=require_stream_readable$1();Stream.Writable=require_stream_writable$1();Stream.Duplex=require_stream_duplex$1();Stream.Transform=require_stream_transform();Stream.PassThrough=require_stream_passthrough();Stream.finished=requireEndOfStream();Stream.pipeline=requirePipeline();Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(e,t){var n=this;function o(S){e.writable&&e.write(S)===!1&&n.pause&&n.pause()}n.on("data",o);function l(){n.readable&&n.resume&&n.resume()}e.on("drain",l),!e._isStdio&&(!t||t.end!==!1)&&(n.on("end",d),n.on("close",y));var a=!1;function d(){a||(a=!0,e.end())}function y(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function w(S){if(_(),EE.listenerCount(this,"error")===0)throw S}n.on("error",w),e.on("error",w);function _(){n.removeListener("data",o),e.removeListener("drain",l),n.removeListener("end",d),n.removeListener("close",y),n.removeListener("error",w),e.removeListener("error",w),n.removeListener("end",_),n.removeListener("close",_),e.removeListener("close",_)}return n.on("end",_),n.on("close",_),e.on("close",_),e.emit("pipe",n),e};var Buffer$A=requireSafeBuffer().Buffer,Transform$8=streamBrowserify.Transform,inherits$r=inherits_browserExports;function HashBase$4(e){Transform$8.call(this),this._block=Buffer$A.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$r(HashBase$4,Transform$8);HashBase$4.prototype._transform=function(e,t,n){var o=null;try{this.update(e,t)}catch(l){o=l}n(o)};HashBase$4.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(n){t=n}e(t)};var useUint8Array$3=typeof Uint8Array<"u",useArrayBuffer$3=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Buffer$A.prototype instanceof Uint8Array||Buffer$A.TYPED_ARRAY_SUPPORT);function toBuffer$6(e,t){if(e instanceof Buffer$A)return e;if(typeof e=="string")return Buffer$A.from(e,t);if(useArrayBuffer$3&&ArrayBuffer.isView(e)){if(e.byteLength===0)return Buffer$A.alloc(0);var n=Buffer$A.from(e.buffer,e.byteOffset,e.byteLength);if(n.byteLength===e.byteLength)return n}if(useUint8Array$3&&e instanceof Uint8Array||Buffer$A.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return Buffer$A.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}HashBase$4.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");e=toBuffer$6(e,t);for(var n=this._block,o=0;this._blockOffset+e.length-o>=this._blockSize;){for(var l=this._blockOffset;l0;++a)this._length[a]+=d,d=this._length[a]/4294967296|0,d>0&&(this._length[a]-=4294967296*d);return this};HashBase$4.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$4.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t};HashBase$4.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase$1=HashBase$4,inherits$q=inherits_browserExports,HashBase$3=hashBase$1,Buffer$z=requireSafeBuffer().Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$3.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$q(MD5$3,HashBase$3);MD5$3.prototype._update=function(){for(var e=ARRAY16$1,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var n=this._a,o=this._b,l=this._c,a=this._d;n=fnF(n,o,l,a,e[0],3614090360,7),a=fnF(a,n,o,l,e[1],3905402710,12),l=fnF(l,a,n,o,e[2],606105819,17),o=fnF(o,l,a,n,e[3],3250441966,22),n=fnF(n,o,l,a,e[4],4118548399,7),a=fnF(a,n,o,l,e[5],1200080426,12),l=fnF(l,a,n,o,e[6],2821735955,17),o=fnF(o,l,a,n,e[7],4249261313,22),n=fnF(n,o,l,a,e[8],1770035416,7),a=fnF(a,n,o,l,e[9],2336552879,12),l=fnF(l,a,n,o,e[10],4294925233,17),o=fnF(o,l,a,n,e[11],2304563134,22),n=fnF(n,o,l,a,e[12],1804603682,7),a=fnF(a,n,o,l,e[13],4254626195,12),l=fnF(l,a,n,o,e[14],2792965006,17),o=fnF(o,l,a,n,e[15],1236535329,22),n=fnG(n,o,l,a,e[1],4129170786,5),a=fnG(a,n,o,l,e[6],3225465664,9),l=fnG(l,a,n,o,e[11],643717713,14),o=fnG(o,l,a,n,e[0],3921069994,20),n=fnG(n,o,l,a,e[5],3593408605,5),a=fnG(a,n,o,l,e[10],38016083,9),l=fnG(l,a,n,o,e[15],3634488961,14),o=fnG(o,l,a,n,e[4],3889429448,20),n=fnG(n,o,l,a,e[9],568446438,5),a=fnG(a,n,o,l,e[14],3275163606,9),l=fnG(l,a,n,o,e[3],4107603335,14),o=fnG(o,l,a,n,e[8],1163531501,20),n=fnG(n,o,l,a,e[13],2850285829,5),a=fnG(a,n,o,l,e[2],4243563512,9),l=fnG(l,a,n,o,e[7],1735328473,14),o=fnG(o,l,a,n,e[12],2368359562,20),n=fnH(n,o,l,a,e[5],4294588738,4),a=fnH(a,n,o,l,e[8],2272392833,11),l=fnH(l,a,n,o,e[11],1839030562,16),o=fnH(o,l,a,n,e[14],4259657740,23),n=fnH(n,o,l,a,e[1],2763975236,4),a=fnH(a,n,o,l,e[4],1272893353,11),l=fnH(l,a,n,o,e[7],4139469664,16),o=fnH(o,l,a,n,e[10],3200236656,23),n=fnH(n,o,l,a,e[13],681279174,4),a=fnH(a,n,o,l,e[0],3936430074,11),l=fnH(l,a,n,o,e[3],3572445317,16),o=fnH(o,l,a,n,e[6],76029189,23),n=fnH(n,o,l,a,e[9],3654602809,4),a=fnH(a,n,o,l,e[12],3873151461,11),l=fnH(l,a,n,o,e[15],530742520,16),o=fnH(o,l,a,n,e[2],3299628645,23),n=fnI(n,o,l,a,e[0],4096336452,6),a=fnI(a,n,o,l,e[7],1126891415,10),l=fnI(l,a,n,o,e[14],2878612391,15),o=fnI(o,l,a,n,e[5],4237533241,21),n=fnI(n,o,l,a,e[12],1700485571,6),a=fnI(a,n,o,l,e[3],2399980690,10),l=fnI(l,a,n,o,e[10],4293915773,15),o=fnI(o,l,a,n,e[1],2240044497,21),n=fnI(n,o,l,a,e[8],1873313359,6),a=fnI(a,n,o,l,e[15],4264355552,10),l=fnI(l,a,n,o,e[6],2734768916,15),o=fnI(o,l,a,n,e[13],1309151649,21),n=fnI(n,o,l,a,e[4],4149444226,6),a=fnI(a,n,o,l,e[11],3174756917,10),l=fnI(l,a,n,o,e[2],718787259,15),o=fnI(o,l,a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+o|0,this._c=this._c+l|0,this._d=this._d+a|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Buffer$z.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function rotl$2(e,t){return e<>>32-t}function fnF(e,t,n,o,l,a,d){return rotl$2(e+(t&n|~t&o)+l+a|0,d)+t|0}function fnG(e,t,n,o,l,a,d){return rotl$2(e+(t&o|n&~o)+l+a|0,d)+t|0}function fnH(e,t,n,o,l,a,d){return rotl$2(e+(t^n^o)+l+a|0,d)+t|0}function fnI(e,t,n,o,l,a,d){return rotl$2(e+(n^(t|~o))+l+a|0,d)+t|0}var md5_js=MD5$3,Buffer$y=buffer$2.Buffer,inherits$p=inherits_browserExports,HashBase$2=hashBase$1,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$5(){HashBase$2.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$p(RIPEMD160$5,HashBase$2);RIPEMD160$5.prototype._update=function(){for(var e=ARRAY16,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var n=this._a|0,o=this._b|0,l=this._c|0,a=this._d|0,d=this._e|0,y=this._a|0,w=this._b|0,_=this._c|0,S=this._d|0,E=this._e|0,C=0;C<80;C+=1){var B,L;C<16?(B=fn1$1(n,o,l,a,d,e[zl[C]],hl[0],sl[C]),L=fn5$1(y,w,_,S,E,e[zr[C]],hr[0],sr[C])):C<32?(B=fn2$1(n,o,l,a,d,e[zl[C]],hl[1],sl[C]),L=fn4$1(y,w,_,S,E,e[zr[C]],hr[1],sr[C])):C<48?(B=fn3$1(n,o,l,a,d,e[zl[C]],hl[2],sl[C]),L=fn3$1(y,w,_,S,E,e[zr[C]],hr[2],sr[C])):C<64?(B=fn4$1(n,o,l,a,d,e[zl[C]],hl[3],sl[C]),L=fn2$1(y,w,_,S,E,e[zr[C]],hr[3],sr[C])):(B=fn5$1(n,o,l,a,d,e[zl[C]],hl[4],sl[C]),L=fn1$1(y,w,_,S,E,e[zr[C]],hr[4],sr[C])),n=d,d=a,a=rotl$1(l,10),l=o,o=B,y=E,E=S,S=rotl$1(_,10),_=w,w=L}var F=this._b+l+S|0;this._b=this._c+a+E|0,this._c=this._d+d+y|0,this._d=this._e+n+w|0,this._e=this._a+o+_|0,this._a=F};RIPEMD160$5.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Buffer$y.alloc?Buffer$y.alloc(20):new Buffer$y(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};function rotl$1(e,t){return e<>>32-t}function fn1$1(e,t,n,o,l,a,d,y){return rotl$1(e+(t^n^o)+a+d|0,y)+l|0}function fn2$1(e,t,n,o,l,a,d,y){return rotl$1(e+(t&n|~t&o)+a+d|0,y)+l|0}function fn3$1(e,t,n,o,l,a,d,y){return rotl$1(e+((t|~n)^o)+a+d|0,y)+l|0}function fn4$1(e,t,n,o,l,a,d,y){return rotl$1(e+(t&o|n&~o)+a+d|0,y)+l|0}function fn5$1(e,t,n,o,l,a,d,y){return rotl$1(e+(t^(n|~o))+a+d|0,y)+l|0}var ripemd160$1=RIPEMD160$5,sha_js={exports:{}},toString$1={}.toString,isarray$1=Array.isArray||function(e){return toString$1.call(e)=="[object Array]"},$TypeError=type,callBound=callBound$8,$typedArrayBuffer=callBound("TypedArray.prototype.buffer",!0),isTypedArray=isTypedArray$1,typedArrayBuffer$1=$typedArrayBuffer||function(t){if(!isTypedArray(t))throw new $TypeError("Not a Typed Array");return t.buffer},Buffer$x=requireSafeBuffer().Buffer,isArray$1=isarray$1,typedArrayBuffer=typedArrayBuffer$1,isView$1=ArrayBuffer.isView||function(t){try{return typedArrayBuffer(t),!0}catch{return!1}},useUint8Array$2=typeof Uint8Array<"u",useArrayBuffer$2=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",useFromArrayBuffer=useArrayBuffer$2&&(Buffer$x.prototype instanceof Uint8Array||Buffer$x.TYPED_ARRAY_SUPPORT),toBuffer$5=function(t,n){if(t instanceof Buffer$x)return t;if(typeof t=="string")return Buffer$x.from(t,n);if(useArrayBuffer$2&&isView$1(t)){if(t.byteLength===0)return Buffer$x.alloc(0);if(useFromArrayBuffer){var o=Buffer$x.from(t.buffer,t.byteOffset,t.byteLength);if(o.byteLength===t.byteLength)return o}var l=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),a=Buffer$x.from(l);if(a.length===t.byteLength)return a}if(useUint8Array$2&&t instanceof Uint8Array)return Buffer$x.from(t);var d=isArray$1(t);if(d)for(var y=0;y255||~~w!==w)throw new RangeError("Array items must be numbers in the range 0-255.")}if(d||Buffer$x.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Buffer$x.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Buffer$w=requireSafeBuffer().Buffer,toBuffer$4=toBuffer$5;function Hash$7(e,t){this._block=Buffer$w.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Hash$7.prototype.update=function(e,t){e=toBuffer$4(e,t||"utf8");for(var n=this._block,o=this._blockSize,l=e.length,a=this._len,d=0;d=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=this._len*8;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var o=(n&4294967295)>>>0,l=(n-o)/4294967296;this._block.writeUInt32BE(l,this._blockSize-8),this._block.writeUInt32BE(o,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a};Hash$7.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$3=Hash$7,inherits$o=inherits_browserExports,Hash$6=hash$3,Buffer$v=requireSafeBuffer().Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$6.call(this,64,56)}inherits$o(Sha,Hash$6);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(e){return e<<5|e>>>27}function rotl30$1(e){return e<<30|e>>>2}function ft$1(e,t,n,o){return e===0?t&n|~t&o:e===2?t&n|t&o|n&o:t^n^o}Sha.prototype._update=function(e){for(var t=this._w,n=this._a|0,o=this._b|0,l=this._c|0,a=this._d|0,d=this._e|0,y=0;y<16;++y)t[y]=e.readInt32BE(y*4);for(;y<80;++y)t[y]=t[y-3]^t[y-8]^t[y-14]^t[y-16];for(var w=0;w<80;++w){var _=~~(w/20),S=rotl5$1(n)+ft$1(_,o,l,a)+d+t[w]+K$4[_]|0;d=a,a=l,l=rotl30$1(o),o=n,n=S}this._a=n+this._a|0,this._b=o+this._b|0,this._c=l+this._c|0,this._d=a+this._d|0,this._e=d+this._e|0};Sha.prototype._hash=function(){var e=Buffer$v.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var sha$4=Sha,inherits$n=inherits_browserExports,Hash$5=hash$3,Buffer$u=requireSafeBuffer().Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$5.call(this,64,56)}inherits$n(Sha1,Hash$5);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(e){return e<<1|e>>>31}function rotl5(e){return e<<5|e>>>27}function rotl30(e){return e<<30|e>>>2}function ft(e,t,n,o){return e===0?t&n|~t&o:e===2?t&n|t&o|n&o:t^n^o}Sha1.prototype._update=function(e){for(var t=this._w,n=this._a|0,o=this._b|0,l=this._c|0,a=this._d|0,d=this._e|0,y=0;y<16;++y)t[y]=e.readInt32BE(y*4);for(;y<80;++y)t[y]=rotl1(t[y-3]^t[y-8]^t[y-14]^t[y-16]);for(var w=0;w<80;++w){var _=~~(w/20),S=rotl5(n)+ft(_,o,l,a)+d+t[w]+K$3[_]|0;d=a,a=l,l=rotl30(o),o=n,n=S}this._a=n+this._a|0,this._b=o+this._b|0,this._c=l+this._c|0,this._d=a+this._d|0,this._e=d+this._e|0};Sha1.prototype._hash=function(){var e=Buffer$u.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var sha1=Sha1,inherits$m=inherits_browserExports,Hash$4=hash$3,Buffer$t=requireSafeBuffer().Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$4.call(this,64,56)}inherits$m(Sha256$1,Hash$4);Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(e,t,n){return n^e&(t^n)}function maj$1(e,t,n){return e&t|n&(e|t)}function sigma0$1(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function sigma1$1(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function gamma0(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function gamma1(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Sha256$1.prototype._update=function(e){for(var t=this._w,n=this._a|0,o=this._b|0,l=this._c|0,a=this._d|0,d=this._e|0,y=this._f|0,w=this._g|0,_=this._h|0,S=0;S<16;++S)t[S]=e.readInt32BE(S*4);for(;S<64;++S)t[S]=gamma1(t[S-2])+t[S-7]+gamma0(t[S-15])+t[S-16]|0;for(var E=0;E<64;++E){var C=_+sigma1$1(d)+ch(d,y,w)+K$2[E]+t[E]|0,B=sigma0$1(n)+maj$1(n,o,l)|0;_=w,w=y,y=d,d=a+C|0,a=l,l=o,o=n,n=C+B|0}this._a=n+this._a|0,this._b=o+this._b|0,this._c=l+this._c|0,this._d=a+this._d|0,this._e=d+this._e|0,this._f=y+this._f|0,this._g=w+this._g|0,this._h=_+this._h|0};Sha256$1.prototype._hash=function(){var e=Buffer$t.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var sha256$1=Sha256$1,inherits$l=inherits_browserExports,Sha256=sha256$1,Hash$3=hash$3,Buffer$s=requireSafeBuffer().Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$3.call(this,64,56)}inherits$l(Sha224,Sha256);Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sha224.prototype._hash=function(){var e=Buffer$s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var sha224$1=Sha224,inherits$k=inherits_browserExports,Hash$2=hash$3,Buffer$r=requireSafeBuffer().Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$2.call(this,128,112)}inherits$k(Sha512,Hash$2);Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(e,t,n){return n^e&(t^n)}function maj(e,t,n){return e&t|n&(e|t)}function sigma0(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function sigma1(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Gamma0(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Gamma0l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Gamma1(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Gamma1l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function getCarry(e,t){return e>>>0>>0?1:0}Sha512.prototype._update=function(e){for(var t=this._w,n=this._ah|0,o=this._bh|0,l=this._ch|0,a=this._dh|0,d=this._eh|0,y=this._fh|0,w=this._gh|0,_=this._hh|0,S=this._al|0,E=this._bl|0,C=this._cl|0,B=this._dl|0,L=this._el|0,F=this._fl|0,q=this._gl|0,H=this._hl|0,D=0;D<32;D+=2)t[D]=e.readInt32BE(D*4),t[D+1]=e.readInt32BE(D*4+4);for(;D<160;D+=2){var j=t[D-30],V=t[D-15*2+1],Q=Gamma0(j,V),ae=Gamma0l(V,j);j=t[D-2*2],V=t[D-2*2+1];var ce=Gamma1(j,V),ue=Gamma1l(V,j),re=t[D-7*2],pe=t[D-7*2+1],T=t[D-16*2],u=t[D-16*2+1],v=ae+pe|0,m=Q+re+getCarry(v,ae)|0;v=v+ue|0,m=m+ce+getCarry(v,ue)|0,v=v+u|0,m=m+T+getCarry(v,u)|0,t[D]=m,t[D+1]=v}for(var b=0;b<160;b+=2){m=t[b],v=t[b+1];var M=maj(n,o,l),A=maj(S,E,C),O=sigma0(n,S),$=sigma0(S,n),c=sigma1(d,L),x=sigma1(L,d),N=K$1[b],z=K$1[b+1],oe=Ch(d,y,w),le=Ch(L,F,q),U=H+x|0,P=_+c+getCarry(U,H)|0;U=U+le|0,P=P+oe+getCarry(U,le)|0,U=U+z|0,P=P+N+getCarry(U,z)|0,U=U+v|0,P=P+m+getCarry(U,v)|0;var Z=$+A|0,ie=O+M+getCarry(Z,$)|0;_=w,H=q,w=y,q=F,y=d,F=L,L=B+U|0,d=a+P+getCarry(L,B)|0,a=l,B=C,l=o,C=E,o=n,E=S,S=U+Z|0,n=P+ie+getCarry(S,U)|0}this._al=this._al+S|0,this._bl=this._bl+E|0,this._cl=this._cl+C|0,this._dl=this._dl+B|0,this._el=this._el+L|0,this._fl=this._fl+F|0,this._gl=this._gl+q|0,this._hl=this._hl+H|0,this._ah=this._ah+n+getCarry(this._al,S)|0,this._bh=this._bh+o+getCarry(this._bl,E)|0,this._ch=this._ch+l+getCarry(this._cl,C)|0,this._dh=this._dh+a+getCarry(this._dl,B)|0,this._eh=this._eh+d+getCarry(this._el,L)|0,this._fh=this._fh+y+getCarry(this._fl,F)|0,this._gh=this._gh+w+getCarry(this._gl,q)|0,this._hh=this._hh+_+getCarry(this._hl,H)|0};Sha512.prototype._hash=function(){var e=Buffer$r.allocUnsafe(64);function t(n,o,l){e.writeInt32BE(n,l),e.writeInt32BE(o,l+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var sha512$1=Sha512,inherits$j=inherits_browserExports,SHA512$2=sha512$1,Hash$1=hash$3,Buffer$q=requireSafeBuffer().Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$1.call(this,128,112)}inherits$j(Sha384,SHA512$2);Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sha384.prototype._hash=function(){var e=Buffer$q.allocUnsafe(48);function t(n,o,l){e.writeInt32BE(n,l),e.writeInt32BE(o,l+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var sha384$1=Sha384;(function(e){e.exports=function(n){var o=n.toLowerCase(),l=e.exports[o];if(!l)throw new Error(o+" is not supported (we accept pull requests)");return new l},e.exports.sha=sha$4,e.exports.sha1=sha1,e.exports.sha224=sha224$1,e.exports.sha256=sha256$1,e.exports.sha384=sha384$1,e.exports.sha512=sha512$1})(sha_js);var sha_jsExports=sha_js.exports,Buffer$p=requireSafeBuffer().Buffer,Transform$7=streamBrowserify.Transform,StringDecoder=requireString_decoder().StringDecoder,inherits$i=inherits_browserExports;function CipherBase$1(e){Transform$7.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$i(CipherBase$1,Transform$7);var useUint8Array$1=typeof Uint8Array<"u",useArrayBuffer$1=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Buffer$p.prototype instanceof Uint8Array||Buffer$p.TYPED_ARRAY_SUPPORT);function toBuffer$3(e,t){if(e instanceof Buffer$p)return e;if(typeof e=="string")return Buffer$p.from(e,t);if(useArrayBuffer$1&&ArrayBuffer.isView(e)){if(e.byteLength===0)return Buffer$p.alloc(0);var n=Buffer$p.from(e.buffer,e.byteOffset,e.byteLength);if(n.byteLength===e.byteLength)return n}if(useUint8Array$1&&e instanceof Uint8Array||Buffer$p.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return Buffer$p.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}CipherBase$1.prototype.update=function(e,t,n){var o=toBuffer$3(e,t),l=this._update(o);return this.hashMode?this:(n&&(l=this._toString(l,n)),l)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(e,t,n){var o;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(l){o=l}finally{n(o)}};CipherBase$1.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(n){t=n}e(t)};CipherBase$1.prototype._finalOrDigest=function(e){var t=this.__final()||Buffer$p.alloc(0);return e&&(t=this._toString(t,e,!0)),t};CipherBase$1.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new StringDecoder(t),this._encoding=t),this._encoding!==t)throw new Error("can’t switch encodings");var o=this._decoder.write(e);return n&&(o+=this._decoder.end()),o};var cipherBase=CipherBase$1,inherits$h=inherits_browserExports,MD5$2=md5_js,RIPEMD160$4=ripemd160$1,sha$3=sha_jsExports,Base$5=cipherBase;function Hash(e){Base$5.call(this,"digest"),this._hash=e}inherits$h(Hash,Base$5);Hash.prototype._update=function(e){this._hash.update(e)};Hash.prototype._final=function(){return this._hash.digest()};var browser$9=function(t){return t=t.toLowerCase(),t==="md5"?new MD5$2:t==="rmd160"||t==="ripemd160"?new RIPEMD160$4:new Hash(sha$3(t))},inherits$g=inherits_browserExports,Buffer$o=requireSafeBuffer().Buffer,Base$4=cipherBase,ZEROS$2=Buffer$o.alloc(128),blocksize=64;function Hmac$3(e,t){Base$4.call(this,"digest"),typeof t=="string"&&(t=Buffer$o.from(t)),this._alg=e,this._key=t,t.length>blocksize?t=e(t):t.lengthn){var o=e==="rmd160"?new RIPEMD160$3:sha$2(e);t=o.update(t).digest()}else t.lengthMAX_ALLOC||t!==t)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal.process&&commonjsGlobal.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var pVersionMajor=parseInt(api$2.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,intSize=4,zeroBuffer=new buffer$2.Buffer(intSize);zeroBuffer.fill(0);var charSize=8,hashSize=16;function toArray$2(e){if(e.length%intSize!==0){var t=e.length+(intSize-e.length%intSize);e=buffer$2.Buffer.concat([e,zeroBuffer],t)}for(var n=new Array(e.length>>>2),o=0,l=0;o>5]|=128<>>9<<4)+14]=t;for(var n=1732584193,o=-271733879,l=-1732584194,a=271733878,d=0;d>16)+(t>>16)+(n>>16);return o<<16|n&65535}function bit_rol(e,t){return e<>>32-t}var md5$1=function(t){return makeHash(t,core_md5)},Transform$6=streamBrowserify.Transform,inherits$e=inherits_browserExports;function HashBase$1(e){Transform$6.call(this),this._block=new buffer$2.Buffer(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$e(HashBase$1,Transform$6);HashBase$1.prototype._transform=function(e,t,n){var o=null;try{t!=="buffer"&&(e=new buffer$2.Buffer(e,t)),this.update(e)}catch(l){o=l}n(o)};HashBase$1.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(n){t=n}e(t)};HashBase$1.prototype.update=function(e,t){if(!buffer$2.Buffer.isBuffer(e)&&typeof e!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");buffer$2.Buffer.isBuffer(e)||(e=new buffer$2.Buffer(e,t||"binary"));for(var n=this._block,o=0;this._blockOffset+e.length-o>=this._blockSize;){for(var l=this._blockOffset;l0;++a)this._length[a]+=d,d=this._length[a]/4294967296|0,d>0&&(this._length[a]-=4294967296*d);return this};HashBase$1.prototype._update=function(e){throw new Error("_update is not implemented")};HashBase$1.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return e!==void 0&&(t=t.toString(e)),t};HashBase$1.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$1,inherits$d=inherits_browserExports,HashBase=hashBase;function RIPEMD160$2(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$d(RIPEMD160$2,HashBase);RIPEMD160$2.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var n=this._a,o=this._b,l=this._c,a=this._d,d=this._e;n=fn1(n,o,l,a,d,e[0],0,11),l=rotl(l,10),d=fn1(d,n,o,l,a,e[1],0,14),o=rotl(o,10),a=fn1(a,d,n,o,l,e[2],0,15),n=rotl(n,10),l=fn1(l,a,d,n,o,e[3],0,12),d=rotl(d,10),o=fn1(o,l,a,d,n,e[4],0,5),a=rotl(a,10),n=fn1(n,o,l,a,d,e[5],0,8),l=rotl(l,10),d=fn1(d,n,o,l,a,e[6],0,7),o=rotl(o,10),a=fn1(a,d,n,o,l,e[7],0,9),n=rotl(n,10),l=fn1(l,a,d,n,o,e[8],0,11),d=rotl(d,10),o=fn1(o,l,a,d,n,e[9],0,13),a=rotl(a,10),n=fn1(n,o,l,a,d,e[10],0,14),l=rotl(l,10),d=fn1(d,n,o,l,a,e[11],0,15),o=rotl(o,10),a=fn1(a,d,n,o,l,e[12],0,6),n=rotl(n,10),l=fn1(l,a,d,n,o,e[13],0,7),d=rotl(d,10),o=fn1(o,l,a,d,n,e[14],0,9),a=rotl(a,10),n=fn1(n,o,l,a,d,e[15],0,8),l=rotl(l,10),d=fn2(d,n,o,l,a,e[7],1518500249,7),o=rotl(o,10),a=fn2(a,d,n,o,l,e[4],1518500249,6),n=rotl(n,10),l=fn2(l,a,d,n,o,e[13],1518500249,8),d=rotl(d,10),o=fn2(o,l,a,d,n,e[1],1518500249,13),a=rotl(a,10),n=fn2(n,o,l,a,d,e[10],1518500249,11),l=rotl(l,10),d=fn2(d,n,o,l,a,e[6],1518500249,9),o=rotl(o,10),a=fn2(a,d,n,o,l,e[15],1518500249,7),n=rotl(n,10),l=fn2(l,a,d,n,o,e[3],1518500249,15),d=rotl(d,10),o=fn2(o,l,a,d,n,e[12],1518500249,7),a=rotl(a,10),n=fn2(n,o,l,a,d,e[0],1518500249,12),l=rotl(l,10),d=fn2(d,n,o,l,a,e[9],1518500249,15),o=rotl(o,10),a=fn2(a,d,n,o,l,e[5],1518500249,9),n=rotl(n,10),l=fn2(l,a,d,n,o,e[2],1518500249,11),d=rotl(d,10),o=fn2(o,l,a,d,n,e[14],1518500249,7),a=rotl(a,10),n=fn2(n,o,l,a,d,e[11],1518500249,13),l=rotl(l,10),d=fn2(d,n,o,l,a,e[8],1518500249,12),o=rotl(o,10),a=fn3(a,d,n,o,l,e[3],1859775393,11),n=rotl(n,10),l=fn3(l,a,d,n,o,e[10],1859775393,13),d=rotl(d,10),o=fn3(o,l,a,d,n,e[14],1859775393,6),a=rotl(a,10),n=fn3(n,o,l,a,d,e[4],1859775393,7),l=rotl(l,10),d=fn3(d,n,o,l,a,e[9],1859775393,14),o=rotl(o,10),a=fn3(a,d,n,o,l,e[15],1859775393,9),n=rotl(n,10),l=fn3(l,a,d,n,o,e[8],1859775393,13),d=rotl(d,10),o=fn3(o,l,a,d,n,e[1],1859775393,15),a=rotl(a,10),n=fn3(n,o,l,a,d,e[2],1859775393,14),l=rotl(l,10),d=fn3(d,n,o,l,a,e[7],1859775393,8),o=rotl(o,10),a=fn3(a,d,n,o,l,e[0],1859775393,13),n=rotl(n,10),l=fn3(l,a,d,n,o,e[6],1859775393,6),d=rotl(d,10),o=fn3(o,l,a,d,n,e[13],1859775393,5),a=rotl(a,10),n=fn3(n,o,l,a,d,e[11],1859775393,12),l=rotl(l,10),d=fn3(d,n,o,l,a,e[5],1859775393,7),o=rotl(o,10),a=fn3(a,d,n,o,l,e[12],1859775393,5),n=rotl(n,10),l=fn4(l,a,d,n,o,e[1],2400959708,11),d=rotl(d,10),o=fn4(o,l,a,d,n,e[9],2400959708,12),a=rotl(a,10),n=fn4(n,o,l,a,d,e[11],2400959708,14),l=rotl(l,10),d=fn4(d,n,o,l,a,e[10],2400959708,15),o=rotl(o,10),a=fn4(a,d,n,o,l,e[0],2400959708,14),n=rotl(n,10),l=fn4(l,a,d,n,o,e[8],2400959708,15),d=rotl(d,10),o=fn4(o,l,a,d,n,e[12],2400959708,9),a=rotl(a,10),n=fn4(n,o,l,a,d,e[4],2400959708,8),l=rotl(l,10),d=fn4(d,n,o,l,a,e[13],2400959708,9),o=rotl(o,10),a=fn4(a,d,n,o,l,e[3],2400959708,14),n=rotl(n,10),l=fn4(l,a,d,n,o,e[7],2400959708,5),d=rotl(d,10),o=fn4(o,l,a,d,n,e[15],2400959708,6),a=rotl(a,10),n=fn4(n,o,l,a,d,e[14],2400959708,8),l=rotl(l,10),d=fn4(d,n,o,l,a,e[5],2400959708,6),o=rotl(o,10),a=fn4(a,d,n,o,l,e[6],2400959708,5),n=rotl(n,10),l=fn4(l,a,d,n,o,e[2],2400959708,12),d=rotl(d,10),o=fn5(o,l,a,d,n,e[4],2840853838,9),a=rotl(a,10),n=fn5(n,o,l,a,d,e[0],2840853838,15),l=rotl(l,10),d=fn5(d,n,o,l,a,e[5],2840853838,5),o=rotl(o,10),a=fn5(a,d,n,o,l,e[9],2840853838,11),n=rotl(n,10),l=fn5(l,a,d,n,o,e[7],2840853838,6),d=rotl(d,10),o=fn5(o,l,a,d,n,e[12],2840853838,8),a=rotl(a,10),n=fn5(n,o,l,a,d,e[2],2840853838,13),l=rotl(l,10),d=fn5(d,n,o,l,a,e[10],2840853838,12),o=rotl(o,10),a=fn5(a,d,n,o,l,e[14],2840853838,5),n=rotl(n,10),l=fn5(l,a,d,n,o,e[1],2840853838,12),d=rotl(d,10),o=fn5(o,l,a,d,n,e[3],2840853838,13),a=rotl(a,10),n=fn5(n,o,l,a,d,e[8],2840853838,14),l=rotl(l,10),d=fn5(d,n,o,l,a,e[11],2840853838,11),o=rotl(o,10),a=fn5(a,d,n,o,l,e[6],2840853838,8),n=rotl(n,10),l=fn5(l,a,d,n,o,e[15],2840853838,5),d=rotl(d,10),o=fn5(o,l,a,d,n,e[13],2840853838,6),a=rotl(a,10);var y=this._a,w=this._b,_=this._c,S=this._d,E=this._e;y=fn5(y,w,_,S,E,e[5],1352829926,8),_=rotl(_,10),E=fn5(E,y,w,_,S,e[14],1352829926,9),w=rotl(w,10),S=fn5(S,E,y,w,_,e[7],1352829926,9),y=rotl(y,10),_=fn5(_,S,E,y,w,e[0],1352829926,11),E=rotl(E,10),w=fn5(w,_,S,E,y,e[9],1352829926,13),S=rotl(S,10),y=fn5(y,w,_,S,E,e[2],1352829926,15),_=rotl(_,10),E=fn5(E,y,w,_,S,e[11],1352829926,15),w=rotl(w,10),S=fn5(S,E,y,w,_,e[4],1352829926,5),y=rotl(y,10),_=fn5(_,S,E,y,w,e[13],1352829926,7),E=rotl(E,10),w=fn5(w,_,S,E,y,e[6],1352829926,7),S=rotl(S,10),y=fn5(y,w,_,S,E,e[15],1352829926,8),_=rotl(_,10),E=fn5(E,y,w,_,S,e[8],1352829926,11),w=rotl(w,10),S=fn5(S,E,y,w,_,e[1],1352829926,14),y=rotl(y,10),_=fn5(_,S,E,y,w,e[10],1352829926,14),E=rotl(E,10),w=fn5(w,_,S,E,y,e[3],1352829926,12),S=rotl(S,10),y=fn5(y,w,_,S,E,e[12],1352829926,6),_=rotl(_,10),E=fn4(E,y,w,_,S,e[6],1548603684,9),w=rotl(w,10),S=fn4(S,E,y,w,_,e[11],1548603684,13),y=rotl(y,10),_=fn4(_,S,E,y,w,e[3],1548603684,15),E=rotl(E,10),w=fn4(w,_,S,E,y,e[7],1548603684,7),S=rotl(S,10),y=fn4(y,w,_,S,E,e[0],1548603684,12),_=rotl(_,10),E=fn4(E,y,w,_,S,e[13],1548603684,8),w=rotl(w,10),S=fn4(S,E,y,w,_,e[5],1548603684,9),y=rotl(y,10),_=fn4(_,S,E,y,w,e[10],1548603684,11),E=rotl(E,10),w=fn4(w,_,S,E,y,e[14],1548603684,7),S=rotl(S,10),y=fn4(y,w,_,S,E,e[15],1548603684,7),_=rotl(_,10),E=fn4(E,y,w,_,S,e[8],1548603684,12),w=rotl(w,10),S=fn4(S,E,y,w,_,e[12],1548603684,7),y=rotl(y,10),_=fn4(_,S,E,y,w,e[4],1548603684,6),E=rotl(E,10),w=fn4(w,_,S,E,y,e[9],1548603684,15),S=rotl(S,10),y=fn4(y,w,_,S,E,e[1],1548603684,13),_=rotl(_,10),E=fn4(E,y,w,_,S,e[2],1548603684,11),w=rotl(w,10),S=fn3(S,E,y,w,_,e[15],1836072691,9),y=rotl(y,10),_=fn3(_,S,E,y,w,e[5],1836072691,7),E=rotl(E,10),w=fn3(w,_,S,E,y,e[1],1836072691,15),S=rotl(S,10),y=fn3(y,w,_,S,E,e[3],1836072691,11),_=rotl(_,10),E=fn3(E,y,w,_,S,e[7],1836072691,8),w=rotl(w,10),S=fn3(S,E,y,w,_,e[14],1836072691,6),y=rotl(y,10),_=fn3(_,S,E,y,w,e[6],1836072691,6),E=rotl(E,10),w=fn3(w,_,S,E,y,e[9],1836072691,14),S=rotl(S,10),y=fn3(y,w,_,S,E,e[11],1836072691,12),_=rotl(_,10),E=fn3(E,y,w,_,S,e[8],1836072691,13),w=rotl(w,10),S=fn3(S,E,y,w,_,e[12],1836072691,5),y=rotl(y,10),_=fn3(_,S,E,y,w,e[2],1836072691,14),E=rotl(E,10),w=fn3(w,_,S,E,y,e[10],1836072691,13),S=rotl(S,10),y=fn3(y,w,_,S,E,e[0],1836072691,13),_=rotl(_,10),E=fn3(E,y,w,_,S,e[4],1836072691,7),w=rotl(w,10),S=fn3(S,E,y,w,_,e[13],1836072691,5),y=rotl(y,10),_=fn2(_,S,E,y,w,e[8],2053994217,15),E=rotl(E,10),w=fn2(w,_,S,E,y,e[6],2053994217,5),S=rotl(S,10),y=fn2(y,w,_,S,E,e[4],2053994217,8),_=rotl(_,10),E=fn2(E,y,w,_,S,e[1],2053994217,11),w=rotl(w,10),S=fn2(S,E,y,w,_,e[3],2053994217,14),y=rotl(y,10),_=fn2(_,S,E,y,w,e[11],2053994217,14),E=rotl(E,10),w=fn2(w,_,S,E,y,e[15],2053994217,6),S=rotl(S,10),y=fn2(y,w,_,S,E,e[0],2053994217,14),_=rotl(_,10),E=fn2(E,y,w,_,S,e[5],2053994217,6),w=rotl(w,10),S=fn2(S,E,y,w,_,e[12],2053994217,9),y=rotl(y,10),_=fn2(_,S,E,y,w,e[2],2053994217,12),E=rotl(E,10),w=fn2(w,_,S,E,y,e[13],2053994217,9),S=rotl(S,10),y=fn2(y,w,_,S,E,e[9],2053994217,12),_=rotl(_,10),E=fn2(E,y,w,_,S,e[7],2053994217,5),w=rotl(w,10),S=fn2(S,E,y,w,_,e[10],2053994217,15),y=rotl(y,10),_=fn2(_,S,E,y,w,e[14],2053994217,8),E=rotl(E,10),w=fn1(w,_,S,E,y,e[12],0,8),S=rotl(S,10),y=fn1(y,w,_,S,E,e[15],0,5),_=rotl(_,10),E=fn1(E,y,w,_,S,e[10],0,12),w=rotl(w,10),S=fn1(S,E,y,w,_,e[4],0,9),y=rotl(y,10),_=fn1(_,S,E,y,w,e[1],0,12),E=rotl(E,10),w=fn1(w,_,S,E,y,e[5],0,5),S=rotl(S,10),y=fn1(y,w,_,S,E,e[8],0,14),_=rotl(_,10),E=fn1(E,y,w,_,S,e[7],0,6),w=rotl(w,10),S=fn1(S,E,y,w,_,e[6],0,8),y=rotl(y,10),_=fn1(_,S,E,y,w,e[2],0,13),E=rotl(E,10),w=fn1(w,_,S,E,y,e[13],0,6),S=rotl(S,10),y=fn1(y,w,_,S,E,e[14],0,5),_=rotl(_,10),E=fn1(E,y,w,_,S,e[0],0,15),w=rotl(w,10),S=fn1(S,E,y,w,_,e[3],0,13),y=rotl(y,10),_=fn1(_,S,E,y,w,e[9],0,11),E=rotl(E,10),w=fn1(w,_,S,E,y,e[11],0,11),S=rotl(S,10);var C=this._b+l+S|0;this._b=this._c+a+E|0,this._c=this._d+d+y|0,this._d=this._e+n+w|0,this._e=this._a+o+_|0,this._a=C};RIPEMD160$2.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new buffer$2.Buffer(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};function rotl(e,t){return e<>>32-t}function fn1(e,t,n,o,l,a,d,y){return rotl(e+(t^n^o)+a+d|0,y)+l|0}function fn2(e,t,n,o,l,a,d,y){return rotl(e+(t&n|~t&o)+a+d|0,y)+l|0}function fn3(e,t,n,o,l,a,d,y){return rotl(e+((t|~n)^o)+a+d|0,y)+l|0}function fn4(e,t,n,o,l,a,d,y){return rotl(e+(t&o|n&~o)+a+d|0,y)+l|0}function fn5(e,t,n,o,l,a,d,y){return rotl(e+(t^(n|~o))+a+d|0,y)+l|0}var ripemd160=RIPEMD160$2,Buffer$m=requireSafeBuffer().Buffer,toBuffer$2=toBuffer$5,useUint8Array=typeof Uint8Array<"u",useArrayBuffer=useUint8Array&&typeof ArrayBuffer<"u",isView=useArrayBuffer&&ArrayBuffer.isView,toBuffer_1=function(e,t,n){if(typeof e=="string"||Buffer$m.isBuffer(e)||useUint8Array&&e instanceof Uint8Array||isView&&isView(e))return toBuffer$2(e,t);throw new TypeError(n+" must be a string, a Buffer, a Uint8Array, or a DataView")},md5=md5$1,RIPEMD160$1=ripemd160,sha$1=sha_jsExports,Buffer$l=requireSafeBuffer().Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$1=toBuffer_1,ZEROS=Buffer$l.alloc(128),sizes={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},mapping={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function rmd160Func(e){return new RIPEMD160$1().update(e).digest()}function getDigest(e){function t(n){return sha$1(e).update(n).digest()}return e==="rmd160"||e==="ripemd160"?rmd160Func:e==="md5"?md5:t}function Hmac$1(e,t,n){var o=getDigest(e),l=e==="sha512"||e==="sha384"?128:64;t.length>l?t=o(t):t.length>>0};utils$n.writeUInt32BE=function(t,n,o){t[0+o]=n>>>24,t[1+o]=n>>>16&255,t[2+o]=n>>>8&255,t[3+o]=n&255};utils$n.ip=function(t,n,o,l){for(var a=0,d=0,y=6;y>=0;y-=2){for(var w=0;w<=24;w+=8)a<<=1,a|=n>>>w+y&1;for(var w=0;w<=24;w+=8)a<<=1,a|=t>>>w+y&1}for(var y=6;y>=0;y-=2){for(var w=1;w<=25;w+=8)d<<=1,d|=n>>>w+y&1;for(var w=1;w<=25;w+=8)d<<=1,d|=t>>>w+y&1}o[l+0]=a>>>0,o[l+1]=d>>>0};utils$n.rip=function(t,n,o,l){for(var a=0,d=0,y=0;y<4;y++)for(var w=24;w>=0;w-=8)a<<=1,a|=n>>>w+y&1,a<<=1,a|=t>>>w+y&1;for(var y=4;y<8;y++)for(var w=24;w>=0;w-=8)d<<=1,d|=n>>>w+y&1,d<<=1,d|=t>>>w+y&1;o[l+0]=a>>>0,o[l+1]=d>>>0};utils$n.pc1=function(t,n,o,l){for(var a=0,d=0,y=7;y>=5;y--){for(var w=0;w<=24;w+=8)a<<=1,a|=n>>w+y&1;for(var w=0;w<=24;w+=8)a<<=1,a|=t>>w+y&1}for(var w=0;w<=24;w+=8)a<<=1,a|=n>>w+y&1;for(var y=1;y<=3;y++){for(var w=0;w<=24;w+=8)d<<=1,d|=n>>w+y&1;for(var w=0;w<=24;w+=8)d<<=1,d|=t>>w+y&1}for(var w=0;w<=24;w+=8)d<<=1,d|=t>>w+y&1;o[l+0]=a>>>0,o[l+1]=d>>>0};utils$n.r28shl=function(t,n){return t<>>28-n};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$n.pc2=function(t,n,o,l){for(var a=0,d=0,y=pc2table.length>>>1,w=0;w>>pc2table[w]&1;for(var w=y;w>>pc2table[w]&1;o[l+0]=a>>>0,o[l+1]=d>>>0};utils$n.expand=function(t,n,o){var l=0,a=0;l=(t&1)<<5|t>>>27;for(var d=23;d>=15;d-=4)l<<=6,l|=t>>>d&63;for(var d=11;d>=3;d-=4)a|=t>>>d&63,a<<=6;a|=(t&31)<<1|t>>>31,n[o+0]=l>>>0,n[o+1]=a>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$n.substitute=function(t,n){for(var o=0,l=0;l<4;l++){var a=t>>>18-l*6&63,d=sTable[l*64+a];o<<=4,o|=d}for(var l=0;l<4;l++){var a=n>>>18-l*6&63,d=sTable[4*64+l*64+a];o<<=4,o|=d}return o>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$n.permute=function(t){for(var n=0,o=0;o>>permuteTable[o]&1;return n>>>0};utils$n.padSplit=function(t,n,o){for(var l=t.toString(2);l.length0;l--)n+=this._buffer(t,n),o+=this._flushBuffer(a,o);return n+=this._buffer(t,n),a};Cipher$3.prototype.final=function(t){var n;t&&(n=this.update(t));var o;return this.type==="encrypt"?o=this._finalEncrypt():o=this._finalDecrypt(),n?n.concat(o):o};Cipher$3.prototype._pad=function(t,n){if(n===0)return!1;for(;n>>1];o=utils$m.r28shl(o,d),l=utils$m.r28shl(l,d),utils$m.pc2(o,l,t.keys,a)}};DES$3.prototype._update=function(t,n,o,l){var a=this._desState,d=utils$m.readUInt32BE(t,n),y=utils$m.readUInt32BE(t,n+4);utils$m.ip(d,y,a.tmp,0),d=a.tmp[0],y=a.tmp[1],this.type==="encrypt"?this._encrypt(a,d,y,a.tmp,0):this._decrypt(a,d,y,a.tmp,0),d=a.tmp[0],y=a.tmp[1],utils$m.writeUInt32BE(o,d,l),utils$m.writeUInt32BE(o,y,l+4)};DES$3.prototype._pad=function(t,n){if(this.padding===!1)return!1;for(var o=t.length-n,l=n;l>>0,d=B}utils$m.rip(y,d,l,a)};DES$3.prototype._decrypt=function(t,n,o,l,a){for(var d=o,y=n,w=t.keys.length-2;w>=0;w-=2){var _=t.keys[w],S=t.keys[w+1];utils$m.expand(d,t.tmp,0),_^=t.tmp[0],S^=t.tmp[1];var E=utils$m.substitute(_,S),C=utils$m.permute(E),B=d;d=(y^C)>>>0,y=B}utils$m.rip(d,y,l,a)};var cbc$1={},assert$f=minimalisticAssert,inherits$b=inherits_browserExports,proto={};function CBCState(e){assert$f.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t>l%8,e._prev=shiftIn(e._prev,n?y:w);return d}function shiftIn(e,t){var n=e.length,o=-1,l=Buffer$g.allocUnsafe(e.length);for(e=Buffer$g.concat([e,Buffer$g.from([t])]);++o>7;return l}cfb1.encrypt=function(e,t,n){for(var o=t.length,l=Buffer$g.allocUnsafe(o),a=-1;++a>>24]^d[S>>>16&255]^y[E>>>8&255]^w[C&255]^t[H++],L=a[S>>>24]^d[E>>>16&255]^y[C>>>8&255]^w[_&255]^t[H++],F=a[E>>>24]^d[C>>>16&255]^y[_>>>8&255]^w[S&255]^t[H++],q=a[C>>>24]^d[_>>>16&255]^y[S>>>8&255]^w[E&255]^t[H++],_=B,S=L,E=F,C=q;return B=(o[_>>>24]<<24|o[S>>>16&255]<<16|o[E>>>8&255]<<8|o[C&255])^t[H++],L=(o[S>>>24]<<24|o[E>>>16&255]<<16|o[C>>>8&255]<<8|o[_&255])^t[H++],F=(o[E>>>24]<<24|o[C>>>16&255]<<16|o[_>>>8&255]<<8|o[S&255])^t[H++],q=(o[C>>>24]<<24|o[_>>>16&255]<<16|o[S>>>8&255]<<8|o[E&255])^t[H++],B=B>>>0,L=L>>>0,F=F>>>0,q=q>>>0,[B,L,F,q]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var e=new Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var n=[],o=[],l=[[],[],[],[]],a=[[],[],[],[]],d=0,y=0,w=0;w<256;++w){var _=y^y<<1^y<<2^y<<3^y<<4;_=_>>>8^_&255^99,n[d]=_,o[_]=d;var S=e[d],E=e[S],C=e[E],B=e[_]*257^_*16843008;l[0][d]=B<<24|B>>>8,l[1][d]=B<<16|B>>>16,l[2][d]=B<<8|B>>>24,l[3][d]=B,B=C*16843009^E*65537^S*257^d*16843008,a[0][_]=B<<24|B>>>8,a[1][_]=B<<16|B>>>16,a[2][_]=B<<8|B>>>24,a[3][_]=B,d===0?d=y=1:(d=S^e[e[e[C^S]]],y^=e[e[y]])}return{SBOX:n,INV_SBOX:o,SUB_MIX:l,INV_SUB_MIX:a}}();function AES(e){this._key=asUInt32Array(e),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,o=(n+1)*4,l=[],a=0;a>>24,d=G.SBOX[d>>>24]<<24|G.SBOX[d>>>16&255]<<16|G.SBOX[d>>>8&255]<<8|G.SBOX[d&255],d^=RCON[a/t|0]<<24):t>6&&a%t===4&&(d=G.SBOX[d>>>24]<<24|G.SBOX[d>>>16&255]<<16|G.SBOX[d>>>8&255]<<8|G.SBOX[d&255]),l[a]=l[a-t]^d}for(var y=[],w=0;w>>24]]^G.INV_SUB_MIX[1][G.SBOX[S>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[S>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[S&255]]}this._nRounds=n,this._keySchedule=l,this._invKeySchedule=y};AES.prototype.encryptBlockRaw=function(e){return e=asUInt32Array(e),cryptBlock(e,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=Buffer$e.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n};AES.prototype.decryptBlock=function(e){e=asUInt32Array(e);var t=e[1];e[1]=e[3],e[3]=t;var n=cryptBlock(e,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),o=Buffer$e.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$d=requireSafeBuffer().Buffer,ZEROES=Buffer$d.alloc(16,0);function toArray$1(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function fromArray(e){var t=Buffer$d.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function GHASH$1(e){this.h=e,this.state=Buffer$d.alloc(16,0),this.cache=Buffer$d.allocUnsafe(0)}GHASH$1.prototype.ghash=function(e){for(var t=-1;++t0;n--)e[n]=e[n]>>>1|(e[n-1]&1)<<31;e[0]=e[0]>>>1,l&&(e[0]=e[0]^225<<24)}this.state=fromArray(t)};GHASH$1.prototype.update=function(e){this.cache=Buffer$d.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)};GHASH$1.prototype.final=function(e,t){return this.cache.length&&this.ghash(Buffer$d.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,e,0,t])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$c=requireSafeBuffer().Buffer,Transform$5=cipherBase,inherits$8=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(e,t){var n=0;e.length!==t.length&&n++;for(var o=Math.min(e.length,t.length),l=0;l0||o>0;){var w=new MD5;w.update(y),w.update(e),t&&w.update(t),y=w.digest();var _=0;if(l>0){var S=a.length-l;_=Math.min(l,y.length),y.copy(a,S,0,_),l-=_}if(_0){var E=d.length-o,C=Math.min(o,y.length-_);y.copy(d,E,_,_+C),o-=C}}return y.fill(0),{key:a,iv:d}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$9=requireSafeBuffer().Buffer,StreamCipher$1=streamCipher,Transform$3=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$6=inherits_browserExports;function Cipher(e,t,n){Transform$3.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(t),this._prev=Buffer$9.from(n),this._mode=e,this._autopadding=!0}inherits$6(Cipher,Transform$3);Cipher.prototype._update=function(e){this._cache.add(e);for(var t,n,o=[];t=this._cache.get();)n=this._mode.encrypt(this,t),o.push(n);return Buffer$9.concat(o)};var PADDING=Buffer$9.alloc(16,16);Cipher.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cipher.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function Splitter$1(){this.cache=Buffer$9.allocUnsafe(0)}Splitter$1.prototype.add=function(e){this.cache=Buffer$9.concat([this.cache,e])};Splitter$1.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null};Splitter$1.prototype.flush=function(){for(var e=16-this.cache.length,t=Buffer$9.allocUnsafe(e),n=-1;++n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null};Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var n=-1;++n0?u:v},a.min=function(u,v){return u.cmp(v)<0?u:v},a.prototype._init=function(u,v,m){if(typeof u=="number")return this._initNumber(u,v,m);if(typeof u=="object")return this._initArray(u,v,m);v==="hex"&&(v=16),o(v===(v|0)&&v>=2&&v<=36),u=u.toString().replace(/\s+/g,"");var b=0;u[0]==="-"&&(b++,this.negative=1),b=0;b-=3)A=u[b]|u[b-1]<<8|u[b-2]<<16,this.words[M]|=A<>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);else if(m==="le")for(b=0,M=0;b>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);return this.strip()};function y(T,u){var v=T.charCodeAt(u);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function w(T,u,v){var m=y(T,v);return v-1>=u&&(m|=y(T,v-1)<<4),m}a.prototype._parseHex=function(u,v,m){this.length=Math.ceil((u.length-v)/6),this.words=new Array(this.length);for(var b=0;b=v;b-=2)O=w(u,v,b)<=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8;else{var $=u.length-v;for(b=$%2===0?v+1:v;b=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8}this.strip()};function _(T,u,v,m){for(var b=0,M=Math.min(T.length,v),A=u;A=49?b+=O-49+10:O>=17?b+=O-17+10:b+=O}return b}a.prototype._parseBase=function(u,v,m){this.words=[0],this.length=1;for(var b=0,M=1;M<=67108863;M*=v)b++;b--,M=M/v|0;for(var A=u.length-m,O=A%b,$=Math.min(A,A-O)+m,c=0,x=m;x<$;x+=b)c=_(u,x,x+b,v),this.imuln(M),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(O!==0){var N=1;for(c=_(u,x,u.length,v),x=0;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(u,v){u=u||10,v=v|0||1;var m;if(u===16||u==="hex"){m="";for(var b=0,M=0,A=0;A>>24-b&16777215,b+=2,b>=26&&(b-=26,A--),M!==0||A!==this.length-1?m=S[6-$.length]+$+m:m=$+m}for(M!==0&&(m=M.toString(16)+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var c=E[u],x=C[u];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var z=N.modn(x).toString(u);N=N.idivn(x),N.isZero()?m=z+m:m=S[c-z.length]+z+m}for(this.isZero()&&(m="0"+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(u,v){return o(typeof d<"u"),this.toArrayLike(d,u,v)},a.prototype.toArray=function(u,v){return this.toArrayLike(Array,u,v)},a.prototype.toArrayLike=function(u,v,m){var b=this.byteLength(),M=m||Math.max(1,b);o(b<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0"),this.strip();var A=v==="le",O=new u(M),$,c,x=this.clone();if(A){for(c=0;!x.isZero();c++)$=x.andln(255),x.iushrn(8),O[c]=$;for(;c=4096&&(m+=13,v>>>=13),v>=64&&(m+=7,v>>>=7),v>=8&&(m+=4,v>>>=4),v>=2&&(m+=2,v>>>=2),m+v},a.prototype._zeroBits=function(u){if(u===0)return 26;var v=u,m=0;return v&8191||(m+=13,v>>>=13),v&127||(m+=7,v>>>=7),v&15||(m+=4,v>>>=4),v&3||(m+=2,v>>>=2),v&1||m++,m},a.prototype.bitLength=function(){var u=this.words[this.length-1],v=this._countBits(u);return(this.length-1)*26+v};function B(T){for(var u=new Array(T.bitLength()),v=0;v>>b}return u}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,v=0;vu.length?this.clone().ior(u):u.clone().ior(this)},a.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},a.prototype.iuand=function(u){var v;this.length>u.length?v=u:v=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},a.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},a.prototype.iuxor=function(u){var v,m;this.length>u.length?(v=this,m=u):(v=u,m=this);for(var b=0;bu.length?this.clone().ixor(u):u.clone().ixor(this)},a.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},a.prototype.inotn=function(u){o(typeof u=="number"&&u>=0);var v=Math.ceil(u/26)|0,m=u%26;this._expand(v),m>0&&v--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this.strip()},a.prototype.notn=function(u){return this.clone().inotn(u)},a.prototype.setn=function(u,v){o(typeof u=="number"&&u>=0);var m=u/26|0,b=u%26;return this._expand(m+1),v?this.words[m]=this.words[m]|1<u.length?(m=this,b=u):(m=u,b=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Au.length?this.clone().iadd(u):u.clone().iadd(this)},a.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var v=this.iadd(u);return u.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,M;m>0?(b=this,M=u):(b=u,M=this);for(var A=0,O=0;O>26,this.words[O]=v&67108863;for(;A!==0&&O>26,this.words[O]=v&67108863;if(A===0&&O>>26,N=$&67108863,z=Math.min(c,u.length-1),oe=Math.max(0,c-T.length+1);oe<=z;oe++){var le=c-oe|0;b=T.words[le]|0,M=u.words[oe]|0,A=b*M+N,x+=A/67108864|0,N=A&67108863}v.words[c]=N|0,$=x|0}return $!==0?v.words[c]=$|0:v.length--,v.strip()}var F=function(u,v,m){var b=u.words,M=v.words,A=m.words,O=0,$,c,x,N=b[0]|0,z=N&8191,oe=N>>>13,le=b[1]|0,U=le&8191,P=le>>>13,Z=b[2]|0,ie=Z&8191,se=Z>>>13,k=b[3]|0,I=k&8191,te=k>>>13,ee=b[4]|0,fe=ee&8191,J=ee>>>13,Y=b[5]|0,X=Y&8191,ne=Y>>>13,me=b[6]|0,he=me&8191,ge=me>>>13,Re=b[7]|0,_e=Re&8191,we=Re>>>13,qe=b[8]|0,Se=qe&8191,Ae=qe>>>13,Me=b[9]|0,ve=Me&8191,be=Me>>>13,Pe=M[0]|0,$e=Pe&8191,Te=Pe>>>13,Je=M[1]|0,Oe=Je&8191,Ie=Je>>>13,Ye=M[2]|0,xe=Ye&8191,Ce=Ye>>>13,Qe=M[3]|0,Be=Qe&8191,je=Qe>>>13,nt=M[4]|0,Ne=nt&8191,Ve=nt>>>13,ot=M[5]|0,He=ot&8191,We=ot>>>13,st=M[6]|0,ke=st&8191,Ge=st>>>13,lt=M[7]|0,Le=lt&8191,Ke=lt>>>13,ut=M[8]|0,De=ut&8191,Ze=ut>>>13,at=M[9]|0,Fe=at&8191,ze=at>>>13;m.negative=u.negative^v.negative,m.length=19,$=Math.imul(z,$e),c=Math.imul(z,Te),c=c+Math.imul(oe,$e)|0,x=Math.imul(oe,Te);var it=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(it>>>26)|0,it&=67108863,$=Math.imul(U,$e),c=Math.imul(U,Te),c=c+Math.imul(P,$e)|0,x=Math.imul(P,Te),$=$+Math.imul(z,Oe)|0,c=c+Math.imul(z,Ie)|0,c=c+Math.imul(oe,Oe)|0,x=x+Math.imul(oe,Ie)|0;var rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,$=Math.imul(ie,$e),c=Math.imul(ie,Te),c=c+Math.imul(se,$e)|0,x=Math.imul(se,Te),$=$+Math.imul(U,Oe)|0,c=c+Math.imul(U,Ie)|0,c=c+Math.imul(P,Oe)|0,x=x+Math.imul(P,Ie)|0,$=$+Math.imul(z,xe)|0,c=c+Math.imul(z,Ce)|0,c=c+Math.imul(oe,xe)|0,x=x+Math.imul(oe,Ce)|0;var mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,$=Math.imul(I,$e),c=Math.imul(I,Te),c=c+Math.imul(te,$e)|0,x=Math.imul(te,Te),$=$+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Ie)|0,c=c+Math.imul(se,Oe)|0,x=x+Math.imul(se,Ie)|0,$=$+Math.imul(U,xe)|0,c=c+Math.imul(U,Ce)|0,c=c+Math.imul(P,xe)|0,x=x+Math.imul(P,Ce)|0,$=$+Math.imul(z,Be)|0,c=c+Math.imul(z,je)|0,c=c+Math.imul(oe,Be)|0,x=x+Math.imul(oe,je)|0;var bt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,$=Math.imul(fe,$e),c=Math.imul(fe,Te),c=c+Math.imul(J,$e)|0,x=Math.imul(J,Te),$=$+Math.imul(I,Oe)|0,c=c+Math.imul(I,Ie)|0,c=c+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ie)|0,$=$+Math.imul(ie,xe)|0,c=c+Math.imul(ie,Ce)|0,c=c+Math.imul(se,xe)|0,x=x+Math.imul(se,Ce)|0,$=$+Math.imul(U,Be)|0,c=c+Math.imul(U,je)|0,c=c+Math.imul(P,Be)|0,x=x+Math.imul(P,je)|0,$=$+Math.imul(z,Ne)|0,c=c+Math.imul(z,Ve)|0,c=c+Math.imul(oe,Ne)|0,x=x+Math.imul(oe,Ve)|0;var wt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,$=Math.imul(X,$e),c=Math.imul(X,Te),c=c+Math.imul(ne,$e)|0,x=Math.imul(ne,Te),$=$+Math.imul(fe,Oe)|0,c=c+Math.imul(fe,Ie)|0,c=c+Math.imul(J,Oe)|0,x=x+Math.imul(J,Ie)|0,$=$+Math.imul(I,xe)|0,c=c+Math.imul(I,Ce)|0,c=c+Math.imul(te,xe)|0,x=x+Math.imul(te,Ce)|0,$=$+Math.imul(ie,Be)|0,c=c+Math.imul(ie,je)|0,c=c+Math.imul(se,Be)|0,x=x+Math.imul(se,je)|0,$=$+Math.imul(U,Ne)|0,c=c+Math.imul(U,Ve)|0,c=c+Math.imul(P,Ne)|0,x=x+Math.imul(P,Ve)|0,$=$+Math.imul(z,He)|0,c=c+Math.imul(z,We)|0,c=c+Math.imul(oe,He)|0,x=x+Math.imul(oe,We)|0;var St=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(he,$e),c=Math.imul(he,Te),c=c+Math.imul(ge,$e)|0,x=Math.imul(ge,Te),$=$+Math.imul(X,Oe)|0,c=c+Math.imul(X,Ie)|0,c=c+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,Ie)|0,$=$+Math.imul(fe,xe)|0,c=c+Math.imul(fe,Ce)|0,c=c+Math.imul(J,xe)|0,x=x+Math.imul(J,Ce)|0,$=$+Math.imul(I,Be)|0,c=c+Math.imul(I,je)|0,c=c+Math.imul(te,Be)|0,x=x+Math.imul(te,je)|0,$=$+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(se,Ne)|0,x=x+Math.imul(se,Ve)|0,$=$+Math.imul(U,He)|0,c=c+Math.imul(U,We)|0,c=c+Math.imul(P,He)|0,x=x+Math.imul(P,We)|0,$=$+Math.imul(z,ke)|0,c=c+Math.imul(z,Ge)|0,c=c+Math.imul(oe,ke)|0,x=x+Math.imul(oe,Ge)|0;var $t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+($t>>>26)|0,$t&=67108863,$=Math.imul(_e,$e),c=Math.imul(_e,Te),c=c+Math.imul(we,$e)|0,x=Math.imul(we,Te),$=$+Math.imul(he,Oe)|0,c=c+Math.imul(he,Ie)|0,c=c+Math.imul(ge,Oe)|0,x=x+Math.imul(ge,Ie)|0,$=$+Math.imul(X,xe)|0,c=c+Math.imul(X,Ce)|0,c=c+Math.imul(ne,xe)|0,x=x+Math.imul(ne,Ce)|0,$=$+Math.imul(fe,Be)|0,c=c+Math.imul(fe,je)|0,c=c+Math.imul(J,Be)|0,x=x+Math.imul(J,je)|0,$=$+Math.imul(I,Ne)|0,c=c+Math.imul(I,Ve)|0,c=c+Math.imul(te,Ne)|0,x=x+Math.imul(te,Ve)|0,$=$+Math.imul(ie,He)|0,c=c+Math.imul(ie,We)|0,c=c+Math.imul(se,He)|0,x=x+Math.imul(se,We)|0,$=$+Math.imul(U,ke)|0,c=c+Math.imul(U,Ge)|0,c=c+Math.imul(P,ke)|0,x=x+Math.imul(P,Ge)|0,$=$+Math.imul(z,Le)|0,c=c+Math.imul(z,Ke)|0,c=c+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Ke)|0;var At=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(At>>>26)|0,At&=67108863,$=Math.imul(Se,$e),c=Math.imul(Se,Te),c=c+Math.imul(Ae,$e)|0,x=Math.imul(Ae,Te),$=$+Math.imul(_e,Oe)|0,c=c+Math.imul(_e,Ie)|0,c=c+Math.imul(we,Oe)|0,x=x+Math.imul(we,Ie)|0,$=$+Math.imul(he,xe)|0,c=c+Math.imul(he,Ce)|0,c=c+Math.imul(ge,xe)|0,x=x+Math.imul(ge,Ce)|0,$=$+Math.imul(X,Be)|0,c=c+Math.imul(X,je)|0,c=c+Math.imul(ne,Be)|0,x=x+Math.imul(ne,je)|0,$=$+Math.imul(fe,Ne)|0,c=c+Math.imul(fe,Ve)|0,c=c+Math.imul(J,Ne)|0,x=x+Math.imul(J,Ve)|0,$=$+Math.imul(I,He)|0,c=c+Math.imul(I,We)|0,c=c+Math.imul(te,He)|0,x=x+Math.imul(te,We)|0,$=$+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Ge)|0,c=c+Math.imul(se,ke)|0,x=x+Math.imul(se,Ge)|0,$=$+Math.imul(U,Le)|0,c=c+Math.imul(U,Ke)|0,c=c+Math.imul(P,Le)|0,x=x+Math.imul(P,Ke)|0,$=$+Math.imul(z,De)|0,c=c+Math.imul(z,Ze)|0,c=c+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ze)|0;var Rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,$=Math.imul(ve,$e),c=Math.imul(ve,Te),c=c+Math.imul(be,$e)|0,x=Math.imul(be,Te),$=$+Math.imul(Se,Oe)|0,c=c+Math.imul(Se,Ie)|0,c=c+Math.imul(Ae,Oe)|0,x=x+Math.imul(Ae,Ie)|0,$=$+Math.imul(_e,xe)|0,c=c+Math.imul(_e,Ce)|0,c=c+Math.imul(we,xe)|0,x=x+Math.imul(we,Ce)|0,$=$+Math.imul(he,Be)|0,c=c+Math.imul(he,je)|0,c=c+Math.imul(ge,Be)|0,x=x+Math.imul(ge,je)|0,$=$+Math.imul(X,Ne)|0,c=c+Math.imul(X,Ve)|0,c=c+Math.imul(ne,Ne)|0,x=x+Math.imul(ne,Ve)|0,$=$+Math.imul(fe,He)|0,c=c+Math.imul(fe,We)|0,c=c+Math.imul(J,He)|0,x=x+Math.imul(J,We)|0,$=$+Math.imul(I,ke)|0,c=c+Math.imul(I,Ge)|0,c=c+Math.imul(te,ke)|0,x=x+Math.imul(te,Ge)|0,$=$+Math.imul(ie,Le)|0,c=c+Math.imul(ie,Ke)|0,c=c+Math.imul(se,Le)|0,x=x+Math.imul(se,Ke)|0,$=$+Math.imul(U,De)|0,c=c+Math.imul(U,Ze)|0,c=c+Math.imul(P,De)|0,x=x+Math.imul(P,Ze)|0,$=$+Math.imul(z,Fe)|0,c=c+Math.imul(z,ze)|0,c=c+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,ze)|0;var Mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,$=Math.imul(ve,Oe),c=Math.imul(ve,Ie),c=c+Math.imul(be,Oe)|0,x=Math.imul(be,Ie),$=$+Math.imul(Se,xe)|0,c=c+Math.imul(Se,Ce)|0,c=c+Math.imul(Ae,xe)|0,x=x+Math.imul(Ae,Ce)|0,$=$+Math.imul(_e,Be)|0,c=c+Math.imul(_e,je)|0,c=c+Math.imul(we,Be)|0,x=x+Math.imul(we,je)|0,$=$+Math.imul(he,Ne)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(ge,Ne)|0,x=x+Math.imul(ge,Ve)|0,$=$+Math.imul(X,He)|0,c=c+Math.imul(X,We)|0,c=c+Math.imul(ne,He)|0,x=x+Math.imul(ne,We)|0,$=$+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(J,ke)|0,x=x+Math.imul(J,Ge)|0,$=$+Math.imul(I,Le)|0,c=c+Math.imul(I,Ke)|0,c=c+Math.imul(te,Le)|0,x=x+Math.imul(te,Ke)|0,$=$+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ze)|0,c=c+Math.imul(se,De)|0,x=x+Math.imul(se,Ze)|0,$=$+Math.imul(U,Fe)|0,c=c+Math.imul(U,ze)|0,c=c+Math.imul(P,Fe)|0,x=x+Math.imul(P,ze)|0;var ht=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,$=Math.imul(ve,xe),c=Math.imul(ve,Ce),c=c+Math.imul(be,xe)|0,x=Math.imul(be,Ce),$=$+Math.imul(Se,Be)|0,c=c+Math.imul(Se,je)|0,c=c+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,je)|0,$=$+Math.imul(_e,Ne)|0,c=c+Math.imul(_e,Ve)|0,c=c+Math.imul(we,Ne)|0,x=x+Math.imul(we,Ve)|0,$=$+Math.imul(he,He)|0,c=c+Math.imul(he,We)|0,c=c+Math.imul(ge,He)|0,x=x+Math.imul(ge,We)|0,$=$+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Ge)|0,$=$+Math.imul(fe,Le)|0,c=c+Math.imul(fe,Ke)|0,c=c+Math.imul(J,Le)|0,x=x+Math.imul(J,Ke)|0,$=$+Math.imul(I,De)|0,c=c+Math.imul(I,Ze)|0,c=c+Math.imul(te,De)|0,x=x+Math.imul(te,Ze)|0,$=$+Math.imul(ie,Fe)|0,c=c+Math.imul(ie,ze)|0,c=c+Math.imul(se,Fe)|0,x=x+Math.imul(se,ze)|0;var yt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,$=Math.imul(ve,Be),c=Math.imul(ve,je),c=c+Math.imul(be,Be)|0,x=Math.imul(be,je),$=$+Math.imul(Se,Ne)|0,c=c+Math.imul(Se,Ve)|0,c=c+Math.imul(Ae,Ne)|0,x=x+Math.imul(Ae,Ve)|0,$=$+Math.imul(_e,He)|0,c=c+Math.imul(_e,We)|0,c=c+Math.imul(we,He)|0,x=x+Math.imul(we,We)|0,$=$+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(ge,ke)|0,x=x+Math.imul(ge,Ge)|0,$=$+Math.imul(X,Le)|0,c=c+Math.imul(X,Ke)|0,c=c+Math.imul(ne,Le)|0,x=x+Math.imul(ne,Ke)|0,$=$+Math.imul(fe,De)|0,c=c+Math.imul(fe,Ze)|0,c=c+Math.imul(J,De)|0,x=x+Math.imul(J,Ze)|0,$=$+Math.imul(I,Fe)|0,c=c+Math.imul(I,ze)|0,c=c+Math.imul(te,Fe)|0,x=x+Math.imul(te,ze)|0;var gt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(ve,Ne),c=Math.imul(ve,Ve),c=c+Math.imul(be,Ne)|0,x=Math.imul(be,Ve),$=$+Math.imul(Se,He)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Ae,He)|0,x=x+Math.imul(Ae,We)|0,$=$+Math.imul(_e,ke)|0,c=c+Math.imul(_e,Ge)|0,c=c+Math.imul(we,ke)|0,x=x+Math.imul(we,Ge)|0,$=$+Math.imul(he,Le)|0,c=c+Math.imul(he,Ke)|0,c=c+Math.imul(ge,Le)|0,x=x+Math.imul(ge,Ke)|0,$=$+Math.imul(X,De)|0,c=c+Math.imul(X,Ze)|0,c=c+Math.imul(ne,De)|0,x=x+Math.imul(ne,Ze)|0,$=$+Math.imul(fe,Fe)|0,c=c+Math.imul(fe,ze)|0,c=c+Math.imul(J,Fe)|0,x=x+Math.imul(J,ze)|0;var dt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,$=Math.imul(ve,He),c=Math.imul(ve,We),c=c+Math.imul(be,He)|0,x=Math.imul(be,We),$=$+Math.imul(Se,ke)|0,c=c+Math.imul(Se,Ge)|0,c=c+Math.imul(Ae,ke)|0,x=x+Math.imul(Ae,Ge)|0,$=$+Math.imul(_e,Le)|0,c=c+Math.imul(_e,Ke)|0,c=c+Math.imul(we,Le)|0,x=x+Math.imul(we,Ke)|0,$=$+Math.imul(he,De)|0,c=c+Math.imul(he,Ze)|0,c=c+Math.imul(ge,De)|0,x=x+Math.imul(ge,Ze)|0,$=$+Math.imul(X,Fe)|0,c=c+Math.imul(X,ze)|0,c=c+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,ze)|0;var _t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,$=Math.imul(ve,ke),c=Math.imul(ve,Ge),c=c+Math.imul(be,ke)|0,x=Math.imul(be,Ge),$=$+Math.imul(Se,Le)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Ae,Le)|0,x=x+Math.imul(Ae,Ke)|0,$=$+Math.imul(_e,De)|0,c=c+Math.imul(_e,Ze)|0,c=c+Math.imul(we,De)|0,x=x+Math.imul(we,Ze)|0,$=$+Math.imul(he,Fe)|0,c=c+Math.imul(he,ze)|0,c=c+Math.imul(ge,Fe)|0,x=x+Math.imul(ge,ze)|0;var ct=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ct>>>26)|0,ct&=67108863,$=Math.imul(ve,Le),c=Math.imul(ve,Ke),c=c+Math.imul(be,Le)|0,x=Math.imul(be,Ke),$=$+Math.imul(Se,De)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Ae,De)|0,x=x+Math.imul(Ae,Ze)|0,$=$+Math.imul(_e,Fe)|0,c=c+Math.imul(_e,ze)|0,c=c+Math.imul(we,Fe)|0,x=x+Math.imul(we,ze)|0;var pt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(ve,De),c=Math.imul(ve,Ze),c=c+Math.imul(be,De)|0,x=Math.imul(be,Ze),$=$+Math.imul(Se,Fe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,ze)|0;var Et=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,$=Math.imul(ve,Fe),c=Math.imul(ve,ze),c=c+Math.imul(be,Fe)|0,x=Math.imul(be,ze);var xt=(O+$|0)+((c&8191)<<13)|0;return O=(x+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,A[0]=it,A[1]=rt,A[2]=mt,A[3]=bt,A[4]=wt,A[5]=St,A[6]=$t,A[7]=At,A[8]=Rt,A[9]=Mt,A[10]=ht,A[11]=yt,A[12]=gt,A[13]=dt,A[14]=_t,A[15]=ct,A[16]=pt,A[17]=Et,A[18]=xt,O!==0&&(A[19]=O,m.length++),m};Math.imul||(F=L);function q(T,u,v){v.negative=u.negative^T.negative,v.length=T.length+u.length;for(var m=0,b=0,M=0;M>>26)|0,b+=A>>>26,A&=67108863}v.words[M]=O,m=A,A=b}return m!==0?v.words[M]=m:v.length--,v.strip()}function H(T,u,v){var m=new D;return m.mulp(T,u,v)}a.prototype.mulTo=function(u,v){var m,b=this.length+u.length;return this.length===10&&u.length===10?m=F(this,u,v):b<63?m=L(this,u,v):b<1024?m=q(this,u,v):m=H(this,u,v),m};function D(T,u){this.x=T,this.y=u}D.prototype.makeRBT=function(u){for(var v=new Array(u),m=a.prototype._countBits(u)-1,b=0;b>=1;return b},D.prototype.permute=function(u,v,m,b,M,A){for(var O=0;O>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*v;A>=26,v+=b/67108864|0,v+=M>>>26,this.words[m]=M&67108863}return v!==0&&(this.words[m]=v,this.length++),this.length=u===0?1:this.length,this},a.prototype.muln=function(u){return this.clone().imuln(u)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(u){var v=B(u);if(v.length===0)return new a(1);for(var m=this,b=0;b=0);var v=u%26,m=(u-v)/26,b=67108863>>>26-v<<26-v,M;if(v!==0){var A=0;for(M=0;M>>26-v}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var b;v?b=(v-v%26)/26:b=0;var M=u%26,A=Math.min((u-M)/26,this.length),O=67108863^67108863>>>M<A)for(this.length-=A,c=0;c=0&&(x!==0||c>=b);c--){var N=this.words[c]|0;this.words[c]=x<<26-M|N>>>M,x=N&O}return $&&x!==0&&($.words[$.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(u,v,m){return o(this.negative===0),this.iushrn(u,v,m)},a.prototype.shln=function(u){return this.clone().ishln(u)},a.prototype.ushln=function(u){return this.clone().iushln(u)},a.prototype.shrn=function(u){return this.clone().ishrn(u)},a.prototype.ushrn=function(u){return this.clone().iushrn(u)},a.prototype.testn=function(u){o(typeof u=="number"&&u>=0);var v=u%26,m=(u-v)/26,b=1<=0);var v=u%26,m=(u-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(v!==0&&m++,this.length=Math.min(m,this.length),v!==0){var b=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(u){if(o(typeof u=="number"),o(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-($/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(O===0)return this.strip();for(o(O===-1),O=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(u,v){var m=this.length-u.length,b=this.clone(),M=u,A=M.words[M.length-1]|0,O=this._countBits(A);m=26-O,m!==0&&(M=M.ushln(m),b.iushln(m),A=M.words[M.length-1]|0);var $=b.length-M.length,c;if(v!=="mod"){c=new a(null),c.length=$+1,c.words=new Array(c.length);for(var x=0;x=0;z--){var oe=(b.words[M.length+z]|0)*67108864+(b.words[M.length+z-1]|0);for(oe=Math.min(oe/A|0,67108863),b._ishlnsubmul(M,oe,z);b.negative!==0;)oe--,b.negative=0,b._ishlnsubmul(M,1,z),b.isZero()||(b.negative^=1);c&&(c.words[z]=oe)}return c&&c.strip(),b.strip(),v!=="div"&&m!==0&&b.iushrn(m),{div:c||null,mod:b}},a.prototype.divmod=function(u,v,m){if(o(!u.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,M,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,v),v!=="mod"&&(b=A.div.neg()),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(u)),{div:b,mod:M}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),v),v!=="mod"&&(b=A.div.neg()),{div:b,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),v),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(u)),{div:A.div,mod:M}):u.length>this.length||this.cmp(u)<0?{div:new a(0),mod:this}:u.length===1?v==="div"?{div:this.divn(u.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new a(this.modn(u.words[0]))}:this._wordDiv(u,v)},a.prototype.div=function(u){return this.divmod(u,"div",!1).div},a.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},a.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},a.prototype.divRound=function(u){var v=this.divmod(u);if(v.mod.isZero())return v.div;var m=v.div.negative!==0?v.mod.isub(u):v.mod,b=u.ushrn(1),M=u.andln(1),A=m.cmp(b);return A<0||M===1&&A===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modn=function(u){o(u<=67108863);for(var v=(1<<26)%u,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%u;return m},a.prototype.idivn=function(u){o(u<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/u|0,v=b%u}return this.strip()},a.prototype.divn=function(u){return this.clone().idivn(u)},a.prototype.egcd=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=new a(0),O=new a(1),$=0;v.isEven()&&m.isEven();)v.iushrn(1),m.iushrn(1),++$;for(var c=m.clone(),x=v.clone();!v.isZero();){for(var N=0,z=1;!(v.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(v.iushrn(N);N-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(c),M.isub(x)),b.iushrn(1),M.iushrn(1);for(var oe=0,le=1;!(m.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(m.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(c),O.isub(x)),A.iushrn(1),O.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(A),M.isub(O)):(m.isub(v),A.isub(b),O.isub(M))}return{a:A,b:O,gcd:m.iushln($)}},a.prototype._invmp=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=m.clone();v.cmpn(1)>0&&m.cmpn(1)>0;){for(var O=0,$=1;!(v.words[0]&$)&&O<26;++O,$<<=1);if(O>0)for(v.iushrn(O);O-- >0;)b.isOdd()&&b.iadd(A),b.iushrn(1);for(var c=0,x=1;!(m.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(m.iushrn(c);c-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(M)):(m.isub(v),M.isub(b))}var N;return v.cmpn(1)===0?N=b:N=M,N.cmpn(0)<0&&N.iadd(u),N},a.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var v=this.clone(),m=u.clone();v.negative=0,m.negative=0;for(var b=0;v.isEven()&&m.isEven();b++)v.iushrn(1),m.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=v.cmp(m);if(M<0){var A=v;v=m,m=A}else if(M===0||m.cmpn(1)===0)break;v.isub(m)}while(!0);return m.iushln(b)},a.prototype.invm=function(u){return this.egcd(u).a.umod(u)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(u){return this.words[0]&u},a.prototype.bincn=function(u){o(typeof u=="number");var v=u%26,m=(u-v)/26,b=1<>>26,O&=67108863,this.words[A]=O}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(u){var v=u<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var m;if(this.length>1)m=1;else{v&&(u=-u),o(u<=67108863,"Number is too big");var b=this.words[0]|0;m=b===u?0:bu.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,M=u.words[m]|0;if(b!==M){bM&&(v=1);break}}return v},a.prototype.gtn=function(u){return this.cmpn(u)===1},a.prototype.gt=function(u){return this.cmp(u)===1},a.prototype.gten=function(u){return this.cmpn(u)>=0},a.prototype.gte=function(u){return this.cmp(u)>=0},a.prototype.ltn=function(u){return this.cmpn(u)===-1},a.prototype.lt=function(u){return this.cmp(u)===-1},a.prototype.lten=function(u){return this.cmpn(u)<=0},a.prototype.lte=function(u){return this.cmp(u)<=0},a.prototype.eqn=function(u){return this.cmpn(u)===0},a.prototype.eq=function(u){return this.cmp(u)===0},a.red=function(u){return new re(u)},a.prototype.toRed=function(u){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(u){return this.red=u,this},a.prototype.forceRed=function(u){return o(!this.red,"Already a number in reduction context"),this._forceRed(u)},a.prototype.redAdd=function(u){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},a.prototype.redIAdd=function(u){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},a.prototype.redSub=function(u){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},a.prototype.redISub=function(u){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},a.prototype.redShl=function(u){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},a.prototype.redMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},a.prototype.redIMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(u){return o(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var j={k256:null,p224:null,p192:null,p25519:null};function V(T,u){this.name=T,this.p=new a(u,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var u=new a(null);return u.words=new Array(Math.ceil(this.n/13)),u},V.prototype.ireduce=function(u){var v=u,m;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),m=v.bitLength();while(m>this.n);var b=m0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},V.prototype.split=function(u,v){u.iushrn(this.n,0,v)},V.prototype.imulK=function(u){return u.imul(this.k)};function Q(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Q,V),Q.prototype.split=function(u,v){for(var m=4194303,b=Math.min(u.length,9),M=0;M>>22,A=O}A>>>=22,u.words[M-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},Q.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var v=0,m=0;m>>=26,u.words[m]=M,v=b}return v!==0&&(u.words[u.length++]=v),u},a._prime=function(u){if(j[u])return j[u];var v;if(u==="k256")v=new Q;else if(u==="p224")v=new ae;else if(u==="p192")v=new ce;else if(u==="p25519")v=new ue;else throw new Error("Unknown prime "+u);return j[u]=v,v};function re(T){if(typeof T=="string"){var u=a._prime(T);this.m=u.p,this.prime=u}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}re.prototype._verify1=function(u){o(u.negative===0,"red works only with positives"),o(u.red,"red works only with red numbers")},re.prototype._verify2=function(u,v){o((u.negative|v.negative)===0,"red works only with positives"),o(u.red&&u.red===v.red,"red works only with red numbers")},re.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},re.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},re.prototype.add=function(u,v){this._verify2(u,v);var m=u.add(v);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},re.prototype.iadd=function(u,v){this._verify2(u,v);var m=u.iadd(v);return m.cmp(this.m)>=0&&m.isub(this.m),m},re.prototype.sub=function(u,v){this._verify2(u,v);var m=u.sub(v);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},re.prototype.isub=function(u,v){this._verify2(u,v);var m=u.isub(v);return m.cmpn(0)<0&&m.iadd(this.m),m},re.prototype.shl=function(u,v){return this._verify1(u),this.imod(u.ushln(v))},re.prototype.imul=function(u,v){return this._verify2(u,v),this.imod(u.imul(v))},re.prototype.mul=function(u,v){return this._verify2(u,v),this.imod(u.mul(v))},re.prototype.isqr=function(u){return this.imul(u,u.clone())},re.prototype.sqr=function(u){return this.mul(u,u)},re.prototype.sqrt=function(u){if(u.isZero())return u.clone();var v=this.m.andln(3);if(o(v%2===1),v===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(u,m)}for(var b=this.m.subn(1),M=0;!b.isZero()&&b.andln(1)===0;)M++,b.iushrn(1);o(!b.isZero());var A=new a(1).toRed(this),O=A.redNeg(),$=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);this.pow(c,$).cmp(O)!==0;)c.redIAdd(O);for(var x=this.pow(c,b),N=this.pow(u,b.addn(1).iushrn(1)),z=this.pow(u,b),oe=M;z.cmp(A)!==0;){for(var le=z,U=0;le.cmp(A)!==0;U++)le=le.redSqr();o(U=0;M--){for(var x=v.words[M],N=c-1;N>=0;N--){var z=x>>N&1;if(A!==b[0]&&(A=this.sqr(A)),z===0&&O===0){$=0;continue}O<<=1,O|=z,$++,!($!==m&&(M!==0||N!==0))&&(A=this.mul(A,b[O]),$=0,O=0)}c=26}return A},re.prototype.convertTo=function(u){var v=u.umod(this.m);return v===u?v.clone():v},re.prototype.convertFrom=function(u){var v=u.clone();return v.red=null,v},a.mont=function(u){return new pe(u)};function pe(T){re.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(pe,re),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var v=this.imod(u.mul(this.rinv));return v.red=null,v},pe.prototype.imul=function(u,v){if(u.isZero()||v.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,v){if(u.isZero()||v.isZero())return new a(0)._forceRed(this);var m=u.mul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var v=this.imod(u._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(e,commonjsGlobal)})(bn$6);var bnExports$6=bn$6.exports,bn$5={exports:{}};bn$5.exports;(function(e){(function(t,n){function o(T,u){if(!T)throw new Error(u||"Assertion failed")}function l(T,u){T.super_=u;var v=function(){};v.prototype=u.prototype,T.prototype=new v,T.prototype.constructor=T}function a(T,u,v){if(a.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((u==="le"||u==="be")&&(v=u,u=10),this._init(T||0,u||10,v||"be"))}typeof t=="object"?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=buffer$2.Buffer}catch{}a.isBN=function(u){return u instanceof a?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===a.wordSize&&Array.isArray(u.words)},a.max=function(u,v){return u.cmp(v)>0?u:v},a.min=function(u,v){return u.cmp(v)<0?u:v},a.prototype._init=function(u,v,m){if(typeof u=="number")return this._initNumber(u,v,m);if(typeof u=="object")return this._initArray(u,v,m);v==="hex"&&(v=16),o(v===(v|0)&&v>=2&&v<=36),u=u.toString().replace(/\s+/g,"");var b=0;u[0]==="-"&&(b++,this.negative=1),b=0;b-=3)A=u[b]|u[b-1]<<8|u[b-2]<<16,this.words[M]|=A<>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);else if(m==="le")for(b=0,M=0;b>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);return this.strip()};function y(T,u){var v=T.charCodeAt(u);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function w(T,u,v){var m=y(T,v);return v-1>=u&&(m|=y(T,v-1)<<4),m}a.prototype._parseHex=function(u,v,m){this.length=Math.ceil((u.length-v)/6),this.words=new Array(this.length);for(var b=0;b=v;b-=2)O=w(u,v,b)<=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8;else{var $=u.length-v;for(b=$%2===0?v+1:v;b=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8}this.strip()};function _(T,u,v,m){for(var b=0,M=Math.min(T.length,v),A=u;A=49?b+=O-49+10:O>=17?b+=O-17+10:b+=O}return b}a.prototype._parseBase=function(u,v,m){this.words=[0],this.length=1;for(var b=0,M=1;M<=67108863;M*=v)b++;b--,M=M/v|0;for(var A=u.length-m,O=A%b,$=Math.min(A,A-O)+m,c=0,x=m;x<$;x+=b)c=_(u,x,x+b,v),this.imuln(M),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(O!==0){var N=1;for(c=_(u,x,u.length,v),x=0;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(u,v){u=u||10,v=v|0||1;var m;if(u===16||u==="hex"){m="";for(var b=0,M=0,A=0;A>>24-b&16777215,b+=2,b>=26&&(b-=26,A--),M!==0||A!==this.length-1?m=S[6-$.length]+$+m:m=$+m}for(M!==0&&(m=M.toString(16)+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var c=E[u],x=C[u];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var z=N.modn(x).toString(u);N=N.idivn(x),N.isZero()?m=z+m:m=S[c-z.length]+z+m}for(this.isZero()&&(m="0"+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(u,v){return o(typeof d<"u"),this.toArrayLike(d,u,v)},a.prototype.toArray=function(u,v){return this.toArrayLike(Array,u,v)},a.prototype.toArrayLike=function(u,v,m){var b=this.byteLength(),M=m||Math.max(1,b);o(b<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0"),this.strip();var A=v==="le",O=new u(M),$,c,x=this.clone();if(A){for(c=0;!x.isZero();c++)$=x.andln(255),x.iushrn(8),O[c]=$;for(;c=4096&&(m+=13,v>>>=13),v>=64&&(m+=7,v>>>=7),v>=8&&(m+=4,v>>>=4),v>=2&&(m+=2,v>>>=2),m+v},a.prototype._zeroBits=function(u){if(u===0)return 26;var v=u,m=0;return v&8191||(m+=13,v>>>=13),v&127||(m+=7,v>>>=7),v&15||(m+=4,v>>>=4),v&3||(m+=2,v>>>=2),v&1||m++,m},a.prototype.bitLength=function(){var u=this.words[this.length-1],v=this._countBits(u);return(this.length-1)*26+v};function B(T){for(var u=new Array(T.bitLength()),v=0;v>>b}return u}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,v=0;vu.length?this.clone().ior(u):u.clone().ior(this)},a.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},a.prototype.iuand=function(u){var v;this.length>u.length?v=u:v=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},a.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},a.prototype.iuxor=function(u){var v,m;this.length>u.length?(v=this,m=u):(v=u,m=this);for(var b=0;bu.length?this.clone().ixor(u):u.clone().ixor(this)},a.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},a.prototype.inotn=function(u){o(typeof u=="number"&&u>=0);var v=Math.ceil(u/26)|0,m=u%26;this._expand(v),m>0&&v--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this.strip()},a.prototype.notn=function(u){return this.clone().inotn(u)},a.prototype.setn=function(u,v){o(typeof u=="number"&&u>=0);var m=u/26|0,b=u%26;return this._expand(m+1),v?this.words[m]=this.words[m]|1<u.length?(m=this,b=u):(m=u,b=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Au.length?this.clone().iadd(u):u.clone().iadd(this)},a.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var v=this.iadd(u);return u.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,M;m>0?(b=this,M=u):(b=u,M=this);for(var A=0,O=0;O>26,this.words[O]=v&67108863;for(;A!==0&&O>26,this.words[O]=v&67108863;if(A===0&&O>>26,N=$&67108863,z=Math.min(c,u.length-1),oe=Math.max(0,c-T.length+1);oe<=z;oe++){var le=c-oe|0;b=T.words[le]|0,M=u.words[oe]|0,A=b*M+N,x+=A/67108864|0,N=A&67108863}v.words[c]=N|0,$=x|0}return $!==0?v.words[c]=$|0:v.length--,v.strip()}var F=function(u,v,m){var b=u.words,M=v.words,A=m.words,O=0,$,c,x,N=b[0]|0,z=N&8191,oe=N>>>13,le=b[1]|0,U=le&8191,P=le>>>13,Z=b[2]|0,ie=Z&8191,se=Z>>>13,k=b[3]|0,I=k&8191,te=k>>>13,ee=b[4]|0,fe=ee&8191,J=ee>>>13,Y=b[5]|0,X=Y&8191,ne=Y>>>13,me=b[6]|0,he=me&8191,ge=me>>>13,Re=b[7]|0,_e=Re&8191,we=Re>>>13,qe=b[8]|0,Se=qe&8191,Ae=qe>>>13,Me=b[9]|0,ve=Me&8191,be=Me>>>13,Pe=M[0]|0,$e=Pe&8191,Te=Pe>>>13,Je=M[1]|0,Oe=Je&8191,Ie=Je>>>13,Ye=M[2]|0,xe=Ye&8191,Ce=Ye>>>13,Qe=M[3]|0,Be=Qe&8191,je=Qe>>>13,nt=M[4]|0,Ne=nt&8191,Ve=nt>>>13,ot=M[5]|0,He=ot&8191,We=ot>>>13,st=M[6]|0,ke=st&8191,Ge=st>>>13,lt=M[7]|0,Le=lt&8191,Ke=lt>>>13,ut=M[8]|0,De=ut&8191,Ze=ut>>>13,at=M[9]|0,Fe=at&8191,ze=at>>>13;m.negative=u.negative^v.negative,m.length=19,$=Math.imul(z,$e),c=Math.imul(z,Te),c=c+Math.imul(oe,$e)|0,x=Math.imul(oe,Te);var it=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(it>>>26)|0,it&=67108863,$=Math.imul(U,$e),c=Math.imul(U,Te),c=c+Math.imul(P,$e)|0,x=Math.imul(P,Te),$=$+Math.imul(z,Oe)|0,c=c+Math.imul(z,Ie)|0,c=c+Math.imul(oe,Oe)|0,x=x+Math.imul(oe,Ie)|0;var rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,$=Math.imul(ie,$e),c=Math.imul(ie,Te),c=c+Math.imul(se,$e)|0,x=Math.imul(se,Te),$=$+Math.imul(U,Oe)|0,c=c+Math.imul(U,Ie)|0,c=c+Math.imul(P,Oe)|0,x=x+Math.imul(P,Ie)|0,$=$+Math.imul(z,xe)|0,c=c+Math.imul(z,Ce)|0,c=c+Math.imul(oe,xe)|0,x=x+Math.imul(oe,Ce)|0;var mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,$=Math.imul(I,$e),c=Math.imul(I,Te),c=c+Math.imul(te,$e)|0,x=Math.imul(te,Te),$=$+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Ie)|0,c=c+Math.imul(se,Oe)|0,x=x+Math.imul(se,Ie)|0,$=$+Math.imul(U,xe)|0,c=c+Math.imul(U,Ce)|0,c=c+Math.imul(P,xe)|0,x=x+Math.imul(P,Ce)|0,$=$+Math.imul(z,Be)|0,c=c+Math.imul(z,je)|0,c=c+Math.imul(oe,Be)|0,x=x+Math.imul(oe,je)|0;var bt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,$=Math.imul(fe,$e),c=Math.imul(fe,Te),c=c+Math.imul(J,$e)|0,x=Math.imul(J,Te),$=$+Math.imul(I,Oe)|0,c=c+Math.imul(I,Ie)|0,c=c+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ie)|0,$=$+Math.imul(ie,xe)|0,c=c+Math.imul(ie,Ce)|0,c=c+Math.imul(se,xe)|0,x=x+Math.imul(se,Ce)|0,$=$+Math.imul(U,Be)|0,c=c+Math.imul(U,je)|0,c=c+Math.imul(P,Be)|0,x=x+Math.imul(P,je)|0,$=$+Math.imul(z,Ne)|0,c=c+Math.imul(z,Ve)|0,c=c+Math.imul(oe,Ne)|0,x=x+Math.imul(oe,Ve)|0;var wt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,$=Math.imul(X,$e),c=Math.imul(X,Te),c=c+Math.imul(ne,$e)|0,x=Math.imul(ne,Te),$=$+Math.imul(fe,Oe)|0,c=c+Math.imul(fe,Ie)|0,c=c+Math.imul(J,Oe)|0,x=x+Math.imul(J,Ie)|0,$=$+Math.imul(I,xe)|0,c=c+Math.imul(I,Ce)|0,c=c+Math.imul(te,xe)|0,x=x+Math.imul(te,Ce)|0,$=$+Math.imul(ie,Be)|0,c=c+Math.imul(ie,je)|0,c=c+Math.imul(se,Be)|0,x=x+Math.imul(se,je)|0,$=$+Math.imul(U,Ne)|0,c=c+Math.imul(U,Ve)|0,c=c+Math.imul(P,Ne)|0,x=x+Math.imul(P,Ve)|0,$=$+Math.imul(z,He)|0,c=c+Math.imul(z,We)|0,c=c+Math.imul(oe,He)|0,x=x+Math.imul(oe,We)|0;var St=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(he,$e),c=Math.imul(he,Te),c=c+Math.imul(ge,$e)|0,x=Math.imul(ge,Te),$=$+Math.imul(X,Oe)|0,c=c+Math.imul(X,Ie)|0,c=c+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,Ie)|0,$=$+Math.imul(fe,xe)|0,c=c+Math.imul(fe,Ce)|0,c=c+Math.imul(J,xe)|0,x=x+Math.imul(J,Ce)|0,$=$+Math.imul(I,Be)|0,c=c+Math.imul(I,je)|0,c=c+Math.imul(te,Be)|0,x=x+Math.imul(te,je)|0,$=$+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(se,Ne)|0,x=x+Math.imul(se,Ve)|0,$=$+Math.imul(U,He)|0,c=c+Math.imul(U,We)|0,c=c+Math.imul(P,He)|0,x=x+Math.imul(P,We)|0,$=$+Math.imul(z,ke)|0,c=c+Math.imul(z,Ge)|0,c=c+Math.imul(oe,ke)|0,x=x+Math.imul(oe,Ge)|0;var $t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+($t>>>26)|0,$t&=67108863,$=Math.imul(_e,$e),c=Math.imul(_e,Te),c=c+Math.imul(we,$e)|0,x=Math.imul(we,Te),$=$+Math.imul(he,Oe)|0,c=c+Math.imul(he,Ie)|0,c=c+Math.imul(ge,Oe)|0,x=x+Math.imul(ge,Ie)|0,$=$+Math.imul(X,xe)|0,c=c+Math.imul(X,Ce)|0,c=c+Math.imul(ne,xe)|0,x=x+Math.imul(ne,Ce)|0,$=$+Math.imul(fe,Be)|0,c=c+Math.imul(fe,je)|0,c=c+Math.imul(J,Be)|0,x=x+Math.imul(J,je)|0,$=$+Math.imul(I,Ne)|0,c=c+Math.imul(I,Ve)|0,c=c+Math.imul(te,Ne)|0,x=x+Math.imul(te,Ve)|0,$=$+Math.imul(ie,He)|0,c=c+Math.imul(ie,We)|0,c=c+Math.imul(se,He)|0,x=x+Math.imul(se,We)|0,$=$+Math.imul(U,ke)|0,c=c+Math.imul(U,Ge)|0,c=c+Math.imul(P,ke)|0,x=x+Math.imul(P,Ge)|0,$=$+Math.imul(z,Le)|0,c=c+Math.imul(z,Ke)|0,c=c+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Ke)|0;var At=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(At>>>26)|0,At&=67108863,$=Math.imul(Se,$e),c=Math.imul(Se,Te),c=c+Math.imul(Ae,$e)|0,x=Math.imul(Ae,Te),$=$+Math.imul(_e,Oe)|0,c=c+Math.imul(_e,Ie)|0,c=c+Math.imul(we,Oe)|0,x=x+Math.imul(we,Ie)|0,$=$+Math.imul(he,xe)|0,c=c+Math.imul(he,Ce)|0,c=c+Math.imul(ge,xe)|0,x=x+Math.imul(ge,Ce)|0,$=$+Math.imul(X,Be)|0,c=c+Math.imul(X,je)|0,c=c+Math.imul(ne,Be)|0,x=x+Math.imul(ne,je)|0,$=$+Math.imul(fe,Ne)|0,c=c+Math.imul(fe,Ve)|0,c=c+Math.imul(J,Ne)|0,x=x+Math.imul(J,Ve)|0,$=$+Math.imul(I,He)|0,c=c+Math.imul(I,We)|0,c=c+Math.imul(te,He)|0,x=x+Math.imul(te,We)|0,$=$+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Ge)|0,c=c+Math.imul(se,ke)|0,x=x+Math.imul(se,Ge)|0,$=$+Math.imul(U,Le)|0,c=c+Math.imul(U,Ke)|0,c=c+Math.imul(P,Le)|0,x=x+Math.imul(P,Ke)|0,$=$+Math.imul(z,De)|0,c=c+Math.imul(z,Ze)|0,c=c+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ze)|0;var Rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,$=Math.imul(ve,$e),c=Math.imul(ve,Te),c=c+Math.imul(be,$e)|0,x=Math.imul(be,Te),$=$+Math.imul(Se,Oe)|0,c=c+Math.imul(Se,Ie)|0,c=c+Math.imul(Ae,Oe)|0,x=x+Math.imul(Ae,Ie)|0,$=$+Math.imul(_e,xe)|0,c=c+Math.imul(_e,Ce)|0,c=c+Math.imul(we,xe)|0,x=x+Math.imul(we,Ce)|0,$=$+Math.imul(he,Be)|0,c=c+Math.imul(he,je)|0,c=c+Math.imul(ge,Be)|0,x=x+Math.imul(ge,je)|0,$=$+Math.imul(X,Ne)|0,c=c+Math.imul(X,Ve)|0,c=c+Math.imul(ne,Ne)|0,x=x+Math.imul(ne,Ve)|0,$=$+Math.imul(fe,He)|0,c=c+Math.imul(fe,We)|0,c=c+Math.imul(J,He)|0,x=x+Math.imul(J,We)|0,$=$+Math.imul(I,ke)|0,c=c+Math.imul(I,Ge)|0,c=c+Math.imul(te,ke)|0,x=x+Math.imul(te,Ge)|0,$=$+Math.imul(ie,Le)|0,c=c+Math.imul(ie,Ke)|0,c=c+Math.imul(se,Le)|0,x=x+Math.imul(se,Ke)|0,$=$+Math.imul(U,De)|0,c=c+Math.imul(U,Ze)|0,c=c+Math.imul(P,De)|0,x=x+Math.imul(P,Ze)|0,$=$+Math.imul(z,Fe)|0,c=c+Math.imul(z,ze)|0,c=c+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,ze)|0;var Mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,$=Math.imul(ve,Oe),c=Math.imul(ve,Ie),c=c+Math.imul(be,Oe)|0,x=Math.imul(be,Ie),$=$+Math.imul(Se,xe)|0,c=c+Math.imul(Se,Ce)|0,c=c+Math.imul(Ae,xe)|0,x=x+Math.imul(Ae,Ce)|0,$=$+Math.imul(_e,Be)|0,c=c+Math.imul(_e,je)|0,c=c+Math.imul(we,Be)|0,x=x+Math.imul(we,je)|0,$=$+Math.imul(he,Ne)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(ge,Ne)|0,x=x+Math.imul(ge,Ve)|0,$=$+Math.imul(X,He)|0,c=c+Math.imul(X,We)|0,c=c+Math.imul(ne,He)|0,x=x+Math.imul(ne,We)|0,$=$+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(J,ke)|0,x=x+Math.imul(J,Ge)|0,$=$+Math.imul(I,Le)|0,c=c+Math.imul(I,Ke)|0,c=c+Math.imul(te,Le)|0,x=x+Math.imul(te,Ke)|0,$=$+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ze)|0,c=c+Math.imul(se,De)|0,x=x+Math.imul(se,Ze)|0,$=$+Math.imul(U,Fe)|0,c=c+Math.imul(U,ze)|0,c=c+Math.imul(P,Fe)|0,x=x+Math.imul(P,ze)|0;var ht=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,$=Math.imul(ve,xe),c=Math.imul(ve,Ce),c=c+Math.imul(be,xe)|0,x=Math.imul(be,Ce),$=$+Math.imul(Se,Be)|0,c=c+Math.imul(Se,je)|0,c=c+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,je)|0,$=$+Math.imul(_e,Ne)|0,c=c+Math.imul(_e,Ve)|0,c=c+Math.imul(we,Ne)|0,x=x+Math.imul(we,Ve)|0,$=$+Math.imul(he,He)|0,c=c+Math.imul(he,We)|0,c=c+Math.imul(ge,He)|0,x=x+Math.imul(ge,We)|0,$=$+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Ge)|0,$=$+Math.imul(fe,Le)|0,c=c+Math.imul(fe,Ke)|0,c=c+Math.imul(J,Le)|0,x=x+Math.imul(J,Ke)|0,$=$+Math.imul(I,De)|0,c=c+Math.imul(I,Ze)|0,c=c+Math.imul(te,De)|0,x=x+Math.imul(te,Ze)|0,$=$+Math.imul(ie,Fe)|0,c=c+Math.imul(ie,ze)|0,c=c+Math.imul(se,Fe)|0,x=x+Math.imul(se,ze)|0;var yt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,$=Math.imul(ve,Be),c=Math.imul(ve,je),c=c+Math.imul(be,Be)|0,x=Math.imul(be,je),$=$+Math.imul(Se,Ne)|0,c=c+Math.imul(Se,Ve)|0,c=c+Math.imul(Ae,Ne)|0,x=x+Math.imul(Ae,Ve)|0,$=$+Math.imul(_e,He)|0,c=c+Math.imul(_e,We)|0,c=c+Math.imul(we,He)|0,x=x+Math.imul(we,We)|0,$=$+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(ge,ke)|0,x=x+Math.imul(ge,Ge)|0,$=$+Math.imul(X,Le)|0,c=c+Math.imul(X,Ke)|0,c=c+Math.imul(ne,Le)|0,x=x+Math.imul(ne,Ke)|0,$=$+Math.imul(fe,De)|0,c=c+Math.imul(fe,Ze)|0,c=c+Math.imul(J,De)|0,x=x+Math.imul(J,Ze)|0,$=$+Math.imul(I,Fe)|0,c=c+Math.imul(I,ze)|0,c=c+Math.imul(te,Fe)|0,x=x+Math.imul(te,ze)|0;var gt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(ve,Ne),c=Math.imul(ve,Ve),c=c+Math.imul(be,Ne)|0,x=Math.imul(be,Ve),$=$+Math.imul(Se,He)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Ae,He)|0,x=x+Math.imul(Ae,We)|0,$=$+Math.imul(_e,ke)|0,c=c+Math.imul(_e,Ge)|0,c=c+Math.imul(we,ke)|0,x=x+Math.imul(we,Ge)|0,$=$+Math.imul(he,Le)|0,c=c+Math.imul(he,Ke)|0,c=c+Math.imul(ge,Le)|0,x=x+Math.imul(ge,Ke)|0,$=$+Math.imul(X,De)|0,c=c+Math.imul(X,Ze)|0,c=c+Math.imul(ne,De)|0,x=x+Math.imul(ne,Ze)|0,$=$+Math.imul(fe,Fe)|0,c=c+Math.imul(fe,ze)|0,c=c+Math.imul(J,Fe)|0,x=x+Math.imul(J,ze)|0;var dt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,$=Math.imul(ve,He),c=Math.imul(ve,We),c=c+Math.imul(be,He)|0,x=Math.imul(be,We),$=$+Math.imul(Se,ke)|0,c=c+Math.imul(Se,Ge)|0,c=c+Math.imul(Ae,ke)|0,x=x+Math.imul(Ae,Ge)|0,$=$+Math.imul(_e,Le)|0,c=c+Math.imul(_e,Ke)|0,c=c+Math.imul(we,Le)|0,x=x+Math.imul(we,Ke)|0,$=$+Math.imul(he,De)|0,c=c+Math.imul(he,Ze)|0,c=c+Math.imul(ge,De)|0,x=x+Math.imul(ge,Ze)|0,$=$+Math.imul(X,Fe)|0,c=c+Math.imul(X,ze)|0,c=c+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,ze)|0;var _t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,$=Math.imul(ve,ke),c=Math.imul(ve,Ge),c=c+Math.imul(be,ke)|0,x=Math.imul(be,Ge),$=$+Math.imul(Se,Le)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Ae,Le)|0,x=x+Math.imul(Ae,Ke)|0,$=$+Math.imul(_e,De)|0,c=c+Math.imul(_e,Ze)|0,c=c+Math.imul(we,De)|0,x=x+Math.imul(we,Ze)|0,$=$+Math.imul(he,Fe)|0,c=c+Math.imul(he,ze)|0,c=c+Math.imul(ge,Fe)|0,x=x+Math.imul(ge,ze)|0;var ct=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ct>>>26)|0,ct&=67108863,$=Math.imul(ve,Le),c=Math.imul(ve,Ke),c=c+Math.imul(be,Le)|0,x=Math.imul(be,Ke),$=$+Math.imul(Se,De)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Ae,De)|0,x=x+Math.imul(Ae,Ze)|0,$=$+Math.imul(_e,Fe)|0,c=c+Math.imul(_e,ze)|0,c=c+Math.imul(we,Fe)|0,x=x+Math.imul(we,ze)|0;var pt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(ve,De),c=Math.imul(ve,Ze),c=c+Math.imul(be,De)|0,x=Math.imul(be,Ze),$=$+Math.imul(Se,Fe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,ze)|0;var Et=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,$=Math.imul(ve,Fe),c=Math.imul(ve,ze),c=c+Math.imul(be,Fe)|0,x=Math.imul(be,ze);var xt=(O+$|0)+((c&8191)<<13)|0;return O=(x+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,A[0]=it,A[1]=rt,A[2]=mt,A[3]=bt,A[4]=wt,A[5]=St,A[6]=$t,A[7]=At,A[8]=Rt,A[9]=Mt,A[10]=ht,A[11]=yt,A[12]=gt,A[13]=dt,A[14]=_t,A[15]=ct,A[16]=pt,A[17]=Et,A[18]=xt,O!==0&&(A[19]=O,m.length++),m};Math.imul||(F=L);function q(T,u,v){v.negative=u.negative^T.negative,v.length=T.length+u.length;for(var m=0,b=0,M=0;M>>26)|0,b+=A>>>26,A&=67108863}v.words[M]=O,m=A,A=b}return m!==0?v.words[M]=m:v.length--,v.strip()}function H(T,u,v){var m=new D;return m.mulp(T,u,v)}a.prototype.mulTo=function(u,v){var m,b=this.length+u.length;return this.length===10&&u.length===10?m=F(this,u,v):b<63?m=L(this,u,v):b<1024?m=q(this,u,v):m=H(this,u,v),m};function D(T,u){this.x=T,this.y=u}D.prototype.makeRBT=function(u){for(var v=new Array(u),m=a.prototype._countBits(u)-1,b=0;b>=1;return b},D.prototype.permute=function(u,v,m,b,M,A){for(var O=0;O>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*v;A>=26,v+=b/67108864|0,v+=M>>>26,this.words[m]=M&67108863}return v!==0&&(this.words[m]=v,this.length++),this.length=u===0?1:this.length,this},a.prototype.muln=function(u){return this.clone().imuln(u)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(u){var v=B(u);if(v.length===0)return new a(1);for(var m=this,b=0;b=0);var v=u%26,m=(u-v)/26,b=67108863>>>26-v<<26-v,M;if(v!==0){var A=0;for(M=0;M>>26-v}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var b;v?b=(v-v%26)/26:b=0;var M=u%26,A=Math.min((u-M)/26,this.length),O=67108863^67108863>>>M<A)for(this.length-=A,c=0;c=0&&(x!==0||c>=b);c--){var N=this.words[c]|0;this.words[c]=x<<26-M|N>>>M,x=N&O}return $&&x!==0&&($.words[$.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(u,v,m){return o(this.negative===0),this.iushrn(u,v,m)},a.prototype.shln=function(u){return this.clone().ishln(u)},a.prototype.ushln=function(u){return this.clone().iushln(u)},a.prototype.shrn=function(u){return this.clone().ishrn(u)},a.prototype.ushrn=function(u){return this.clone().iushrn(u)},a.prototype.testn=function(u){o(typeof u=="number"&&u>=0);var v=u%26,m=(u-v)/26,b=1<=0);var v=u%26,m=(u-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(v!==0&&m++,this.length=Math.min(m,this.length),v!==0){var b=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(u){if(o(typeof u=="number"),o(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-($/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(O===0)return this.strip();for(o(O===-1),O=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(u,v){var m=this.length-u.length,b=this.clone(),M=u,A=M.words[M.length-1]|0,O=this._countBits(A);m=26-O,m!==0&&(M=M.ushln(m),b.iushln(m),A=M.words[M.length-1]|0);var $=b.length-M.length,c;if(v!=="mod"){c=new a(null),c.length=$+1,c.words=new Array(c.length);for(var x=0;x=0;z--){var oe=(b.words[M.length+z]|0)*67108864+(b.words[M.length+z-1]|0);for(oe=Math.min(oe/A|0,67108863),b._ishlnsubmul(M,oe,z);b.negative!==0;)oe--,b.negative=0,b._ishlnsubmul(M,1,z),b.isZero()||(b.negative^=1);c&&(c.words[z]=oe)}return c&&c.strip(),b.strip(),v!=="div"&&m!==0&&b.iushrn(m),{div:c||null,mod:b}},a.prototype.divmod=function(u,v,m){if(o(!u.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,M,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,v),v!=="mod"&&(b=A.div.neg()),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(u)),{div:b,mod:M}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),v),v!=="mod"&&(b=A.div.neg()),{div:b,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),v),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(u)),{div:A.div,mod:M}):u.length>this.length||this.cmp(u)<0?{div:new a(0),mod:this}:u.length===1?v==="div"?{div:this.divn(u.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new a(this.modn(u.words[0]))}:this._wordDiv(u,v)},a.prototype.div=function(u){return this.divmod(u,"div",!1).div},a.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},a.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},a.prototype.divRound=function(u){var v=this.divmod(u);if(v.mod.isZero())return v.div;var m=v.div.negative!==0?v.mod.isub(u):v.mod,b=u.ushrn(1),M=u.andln(1),A=m.cmp(b);return A<0||M===1&&A===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modn=function(u){o(u<=67108863);for(var v=(1<<26)%u,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%u;return m},a.prototype.idivn=function(u){o(u<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/u|0,v=b%u}return this.strip()},a.prototype.divn=function(u){return this.clone().idivn(u)},a.prototype.egcd=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=new a(0),O=new a(1),$=0;v.isEven()&&m.isEven();)v.iushrn(1),m.iushrn(1),++$;for(var c=m.clone(),x=v.clone();!v.isZero();){for(var N=0,z=1;!(v.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(v.iushrn(N);N-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(c),M.isub(x)),b.iushrn(1),M.iushrn(1);for(var oe=0,le=1;!(m.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(m.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(c),O.isub(x)),A.iushrn(1),O.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(A),M.isub(O)):(m.isub(v),A.isub(b),O.isub(M))}return{a:A,b:O,gcd:m.iushln($)}},a.prototype._invmp=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=m.clone();v.cmpn(1)>0&&m.cmpn(1)>0;){for(var O=0,$=1;!(v.words[0]&$)&&O<26;++O,$<<=1);if(O>0)for(v.iushrn(O);O-- >0;)b.isOdd()&&b.iadd(A),b.iushrn(1);for(var c=0,x=1;!(m.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(m.iushrn(c);c-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(M)):(m.isub(v),M.isub(b))}var N;return v.cmpn(1)===0?N=b:N=M,N.cmpn(0)<0&&N.iadd(u),N},a.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var v=this.clone(),m=u.clone();v.negative=0,m.negative=0;for(var b=0;v.isEven()&&m.isEven();b++)v.iushrn(1),m.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=v.cmp(m);if(M<0){var A=v;v=m,m=A}else if(M===0||m.cmpn(1)===0)break;v.isub(m)}while(!0);return m.iushln(b)},a.prototype.invm=function(u){return this.egcd(u).a.umod(u)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(u){return this.words[0]&u},a.prototype.bincn=function(u){o(typeof u=="number");var v=u%26,m=(u-v)/26,b=1<>>26,O&=67108863,this.words[A]=O}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(u){var v=u<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var m;if(this.length>1)m=1;else{v&&(u=-u),o(u<=67108863,"Number is too big");var b=this.words[0]|0;m=b===u?0:bu.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,M=u.words[m]|0;if(b!==M){bM&&(v=1);break}}return v},a.prototype.gtn=function(u){return this.cmpn(u)===1},a.prototype.gt=function(u){return this.cmp(u)===1},a.prototype.gten=function(u){return this.cmpn(u)>=0},a.prototype.gte=function(u){return this.cmp(u)>=0},a.prototype.ltn=function(u){return this.cmpn(u)===-1},a.prototype.lt=function(u){return this.cmp(u)===-1},a.prototype.lten=function(u){return this.cmpn(u)<=0},a.prototype.lte=function(u){return this.cmp(u)<=0},a.prototype.eqn=function(u){return this.cmpn(u)===0},a.prototype.eq=function(u){return this.cmp(u)===0},a.red=function(u){return new re(u)},a.prototype.toRed=function(u){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(u){return this.red=u,this},a.prototype.forceRed=function(u){return o(!this.red,"Already a number in reduction context"),this._forceRed(u)},a.prototype.redAdd=function(u){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},a.prototype.redIAdd=function(u){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},a.prototype.redSub=function(u){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},a.prototype.redISub=function(u){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},a.prototype.redShl=function(u){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},a.prototype.redMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},a.prototype.redIMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(u){return o(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var j={k256:null,p224:null,p192:null,p25519:null};function V(T,u){this.name=T,this.p=new a(u,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var u=new a(null);return u.words=new Array(Math.ceil(this.n/13)),u},V.prototype.ireduce=function(u){var v=u,m;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),m=v.bitLength();while(m>this.n);var b=m0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},V.prototype.split=function(u,v){u.iushrn(this.n,0,v)},V.prototype.imulK=function(u){return u.imul(this.k)};function Q(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Q,V),Q.prototype.split=function(u,v){for(var m=4194303,b=Math.min(u.length,9),M=0;M>>22,A=O}A>>>=22,u.words[M-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},Q.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var v=0,m=0;m>>=26,u.words[m]=M,v=b}return v!==0&&(u.words[u.length++]=v),u},a._prime=function(u){if(j[u])return j[u];var v;if(u==="k256")v=new Q;else if(u==="p224")v=new ae;else if(u==="p192")v=new ce;else if(u==="p25519")v=new ue;else throw new Error("Unknown prime "+u);return j[u]=v,v};function re(T){if(typeof T=="string"){var u=a._prime(T);this.m=u.p,this.prime=u}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}re.prototype._verify1=function(u){o(u.negative===0,"red works only with positives"),o(u.red,"red works only with red numbers")},re.prototype._verify2=function(u,v){o((u.negative|v.negative)===0,"red works only with positives"),o(u.red&&u.red===v.red,"red works only with red numbers")},re.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},re.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},re.prototype.add=function(u,v){this._verify2(u,v);var m=u.add(v);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},re.prototype.iadd=function(u,v){this._verify2(u,v);var m=u.iadd(v);return m.cmp(this.m)>=0&&m.isub(this.m),m},re.prototype.sub=function(u,v){this._verify2(u,v);var m=u.sub(v);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},re.prototype.isub=function(u,v){this._verify2(u,v);var m=u.isub(v);return m.cmpn(0)<0&&m.iadd(this.m),m},re.prototype.shl=function(u,v){return this._verify1(u),this.imod(u.ushln(v))},re.prototype.imul=function(u,v){return this._verify2(u,v),this.imod(u.imul(v))},re.prototype.mul=function(u,v){return this._verify2(u,v),this.imod(u.mul(v))},re.prototype.isqr=function(u){return this.imul(u,u.clone())},re.prototype.sqr=function(u){return this.mul(u,u)},re.prototype.sqrt=function(u){if(u.isZero())return u.clone();var v=this.m.andln(3);if(o(v%2===1),v===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(u,m)}for(var b=this.m.subn(1),M=0;!b.isZero()&&b.andln(1)===0;)M++,b.iushrn(1);o(!b.isZero());var A=new a(1).toRed(this),O=A.redNeg(),$=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);this.pow(c,$).cmp(O)!==0;)c.redIAdd(O);for(var x=this.pow(c,b),N=this.pow(u,b.addn(1).iushrn(1)),z=this.pow(u,b),oe=M;z.cmp(A)!==0;){for(var le=z,U=0;le.cmp(A)!==0;U++)le=le.redSqr();o(U=0;M--){for(var x=v.words[M],N=c-1;N>=0;N--){var z=x>>N&1;if(A!==b[0]&&(A=this.sqr(A)),z===0&&O===0){$=0;continue}O<<=1,O|=z,$++,!($!==m&&(M!==0||N!==0))&&(A=this.mul(A,b[O]),$=0,O=0)}c=26}return A},re.prototype.convertTo=function(u){var v=u.umod(this.m);return v===u?v.clone():v},re.prototype.convertFrom=function(u){var v=u.clone();return v.red=null,v},a.mont=function(u){return new pe(u)};function pe(T){re.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(pe,re),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var v=this.imod(u.mul(this.rinv));return v.red=null,v},pe.prototype.imul=function(u,v){if(u.isZero()||v.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,v){if(u.isZero()||v.isZero())return new a(0)._forceRed(this);var m=u.mul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var v=this.imod(u._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(e,commonjsGlobal)})(bn$5);var bnExports$5=bn$5.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var e;brorand.exports=function(l){return e||(e=new t(null)),e.generate(l)};function t(o){this.rand=o}if(brorand.exports.Rand=t,t.prototype.generate=function(l){return this._rand(l)},t.prototype._rand=function(l){if(this.rand.getBytes)return this.rand.getBytes(l);for(var a=new Uint8Array(l),d=0;d=0);return y},n.prototype._randrange=function(l,a){var d=a.sub(l);return l.add(this._randbelow(d))},n.prototype.test=function(l,a,d){var y=l.bitLength(),w=e.mont(l),_=new e(1).toRed(w);a||(a=Math.max(1,y/48|0));for(var S=l.subn(1),E=0;!S.testn(E);E++);for(var C=l.shrn(E),B=S.toRed(w),L=!0;a>0;a--){var F=this._randrange(new e(2),S);d&&d(F);var q=F.toRed(w).redPow(C);if(!(q.cmp(_)===0||q.cmp(B)===0)){for(var H=1;H0;a--){var B=this._randrange(new e(2),_),L=l.gcd(B);if(L.cmpn(1)!==0)return L;var F=B.toRed(y).redPow(E);if(!(F.cmp(w)===0||F.cmp(C)===0)){for(var q=1;qH;)j.ishrn(1);if(j.isEven()&&j.iadd(a),j.testn(1)||j.iadd(d),D.cmp(d)){if(!D.cmp(y))for(;j.mod(w).cmp(_);)j.iadd(E)}else for(;j.mod(n).cmp(S);)j.iadd(E);if(V=j.shrn(1),L(V)&&L(j)&&F(V)&&F(j)&&l.test(V)&&l.test(j))return j}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var e=bnExports$6,t=requireMr(),n=new t,o=new e(24),l=new e(11),a=new e(10),d=new e(3),y=new e(7),w=requireGeneratePrime(),_=browserExports;dh=L;function S(q,H){return H=H||"utf8",buffer$2.Buffer.isBuffer(q)||(q=new buffer$2.Buffer(q,H)),this._pub=new e(q),this}function E(q,H){return H=H||"utf8",buffer$2.Buffer.isBuffer(q)||(q=new buffer$2.Buffer(q,H)),this._priv=new e(q),this}var C={};function B(q,H){var D=H.toString("hex"),j=[D,q.toString(16)].join("_");if(j in C)return C[j];var V=0;if(q.isEven()||!w.simpleSieve||!w.fermatTest(q)||!n.test(q))return V+=1,D==="02"||D==="05"?V+=8:V+=4,C[j]=V,V;n.test(q.shrn(1))||(V+=2);var Q;switch(D){case"02":q.mod(o).cmp(l)&&(V+=8);break;case"05":Q=q.mod(a),Q.cmp(d)&&Q.cmp(y)&&(V+=8);break;default:V+=4}return C[j]=V,V}function L(q,H,D){this.setGenerator(H),this.__prime=new e(q),this._prime=e.mont(this.__prime),this._primeLen=q.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,D?(this.setPublicKey=S,this.setPrivateKey=E):this._primeCode=8}Object.defineProperty(L.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=B(this.__prime,this.__gen)),this._primeCode}}),L.prototype.generateKeys=function(){return this._priv||(this._priv=new e(_(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},L.prototype.computeSecret=function(q){q=new e(q),q=q.toRed(this._prime);var H=q.redPow(this._priv).fromRed(),D=new buffer$2.Buffer(H.toArray()),j=this.getPrime();if(D.length"u"}util$2.isPrimitive=isPrimitive;util$2.isBuffer=buffer$2.Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(e){function t(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}var n=safeBufferExports.Buffer,o=util$3;function l(a,d,y){a.copy(d,y)}e.exports=function(){function a(){t(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(y){var w={data:y,next:null};this.length>0?this.tail.next=w:this.head=w,this.tail=w,++this.length},a.prototype.unshift=function(y){var w={data:y,next:this.head};this.length===0&&(this.tail=w),this.head=w,++this.length},a.prototype.shift=function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(y){if(this.length===0)return"";for(var w=this.head,_=""+w.data;w=w.next;)_+=y+w.data;return _},a.prototype.concat=function(y){if(this.length===0)return n.alloc(0);for(var w=n.allocUnsafe(y>>>0),_=this.head,S=0;_;)l(_.data,w,S),S+=_.data.length,_=_.next;return w},a}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var a=o.inspect({length:this.length});return this.constructor.name+" "+a})}(BufferList)),BufferList.exports}var pna=processNextickArgsExports;function destroy(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return o||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,this,e)):pna.nextTick(emitErrorNT,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,n,a)):pna.nextTick(emitErrorNT,n,a):t&&t(a)}),this)}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(e,t){e.emit("error",t)}var destroy_1={destroy,undestroy},_stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var e=processNextickArgsExports;_stream_writable=F;function t(A){var O=this;this.next=null,this.entry=null,this.finish=function(){M(O,A)}}var n=!api$2.browser&&["v0.10","v0.9."].indexOf(api$2.version.slice(0,5))>-1?setImmediate:e.nextTick,o;F.WritableState=B;var l=Object.create(util$2);l.inherits=inherits_browserExports;var a={deprecate:browser$d},d=streamBrowser,y=safeBufferExports.Buffer,w=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _(A){return y.from(A)}function S(A){return y.isBuffer(A)||A instanceof w}var E=destroy_1;l.inherits(F,d);function C(){}function B(A,O){o=o||require_stream_duplex(),A=A||{};var $=O instanceof o;this.objectMode=!!A.objectMode,$&&(this.objectMode=this.objectMode||!!A.writableObjectMode);var c=A.highWaterMark,x=A.writableHighWaterMark,N=this.objectMode?16:16*1024;c||c===0?this.highWaterMark=c:$&&(x||x===0)?this.highWaterMark=x:this.highWaterMark=N,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var z=A.decodeStrings===!1;this.decodeStrings=!z,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){ce(O,oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}B.prototype.getBuffer=function(){for(var O=this.bufferedRequest,$=[];O;)$.push(O),O=O.next;return $},function(){try{Object.defineProperty(B.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var L;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(A){return L.call(this,A)?!0:this!==F?!1:A&&A._writableState instanceof B}})):L=function(A){return A instanceof this};function F(A){if(o=o||require_stream_duplex(),!L.call(F,this)&&!(this instanceof o))return new F(A);this._writableState=new B(A,this),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),d.call(this)}F.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function q(A,O){var $=new Error("write after end");A.emit("error",$),e.nextTick(O,$)}function H(A,O,$,c){var x=!0,N=!1;return $===null?N=new TypeError("May not write null values to stream"):typeof $!="string"&&$!==void 0&&!O.objectMode&&(N=new TypeError("Invalid non-string/buffer chunk")),N&&(A.emit("error",N),e.nextTick(c,N),x=!1),x}F.prototype.write=function(A,O,$){var c=this._writableState,x=!1,N=!c.objectMode&&S(A);return N&&!y.isBuffer(A)&&(A=_(A)),typeof O=="function"&&($=O,O=null),N?O="buffer":O||(O=c.defaultEncoding),typeof $!="function"&&($=C),c.ended?q(this,$):(N||H(this,c,A,$))&&(c.pendingcb++,x=j(this,c,N,A,O,$)),x},F.prototype.cork=function(){var A=this._writableState;A.corked++},F.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&pe(this,A))},F.prototype.setDefaultEncoding=function(O){if(typeof O=="string"&&(O=O.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((O+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+O);return this._writableState.defaultEncoding=O,this};function D(A,O,$){return!A.objectMode&&A.decodeStrings!==!1&&typeof O=="string"&&(O=y.from(O,$)),O}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function j(A,O,$,c,x,N){if(!$){var z=D(O,c,x);c!==z&&($=!0,x="buffer",c=z)}var oe=O.objectMode?1:c.length;O.length+=oe;var le=O.length0?(typeof Z!="string"&&!I.objectMode&&Object.getPrototypeOf(Z)!==a.prototype&&(Z=y(Z)),se?I.endEmitted?P.emit("error",new Error("stream.unshift() after end event")):V(P,I,Z,!0):I.ended?P.emit("error",new Error("stream.push() after EOF")):(I.reading=!1,I.decoder&&!ie?(Z=I.decoder.write(Z),I.objectMode||Z.length!==0?V(P,I,Z,!1):v(P,I)):V(P,I,Z,!1))):se||(I.reading=!1)}return ae(I)}function V(P,Z,ie,se){Z.flowing&&Z.length===0&&!Z.sync?(P.emit("data",ie),P.read(0)):(Z.length+=Z.objectMode?1:ie.length,se?Z.buffer.unshift(ie):Z.buffer.push(ie),Z.needReadable&&T(P)),v(P,Z)}function Q(P,Z){var ie;return!w(Z)&&typeof Z!="string"&&Z!==void 0&&!P.objectMode&&(ie=new TypeError("Invalid non-string/buffer chunk")),ie}function ae(P){return!P.ended&&(P.needReadable||P.length=ce?P=ce:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function re(P,Z){return P<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:P!==P?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(P>Z.highWaterMark&&(Z.highWaterMark=ue(P)),P<=Z.length?P:Z.ended?Z.length:(Z.needReadable=!0,0))}D.prototype.read=function(P){E("read",P),P=parseInt(P,10);var Z=this._readableState,ie=P;if(P!==0&&(Z.emittedReadable=!1),P===0&&Z.needReadable&&(Z.length>=Z.highWaterMark||Z.ended))return E("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?oe(this):T(this),null;if(P=re(P,Z),P===0&&Z.ended)return Z.length===0&&oe(this),null;var se=Z.needReadable;E("need readable",se),(Z.length===0||Z.length-P0?k=c(P,Z):k=null,k===null?(Z.needReadable=!0,P=0):Z.length-=P,Z.length===0&&(Z.ended||(Z.needReadable=!0),ie!==P&&Z.ended&&oe(this)),k!==null&&this.emit("data",k),k};function pe(P,Z){if(!Z.ended){if(Z.decoder){var ie=Z.decoder.end();ie&&ie.length&&(Z.buffer.push(ie),Z.length+=Z.objectMode?1:ie.length)}Z.ended=!0,T(P)}}function T(P){var Z=P._readableState;Z.needReadable=!1,Z.emittedReadable||(E("emitReadable",Z.flowing),Z.emittedReadable=!0,Z.sync?e.nextTick(u,P):u(P))}function u(P){E("emit readable"),P.emit("readable"),$(P)}function v(P,Z){Z.readingMore||(Z.readingMore=!0,e.nextTick(m,P,Z))}function m(P,Z){for(var ie=Z.length;!Z.reading&&!Z.flowing&&!Z.ended&&Z.length1&&U(se.pipes,P)!==-1)&&!J&&(E("false write response, pause",se.awaitDrain),se.awaitDrain++,X=!0),ie.pause())}function me(_e){E("onerror",_e),Re(),P.removeListener("error",me),o(P,"error")===0&&P.emit("error",_e)}q(P,"error",me);function he(){P.removeListener("finish",ge),Re()}P.once("close",he);function ge(){E("onfinish"),P.removeListener("close",he),Re()}P.once("finish",ge);function Re(){E("unpipe"),ie.unpipe(P)}return P.emit("pipe",ie),se.flowing||(E("pipe resume"),ie.resume()),P};function b(P){return function(){var Z=P._readableState;E("pipeOnDrain",Z.awaitDrain),Z.awaitDrain&&Z.awaitDrain--,Z.awaitDrain===0&&o(P,"data")&&(Z.flowing=!0,$(P))}}D.prototype.unpipe=function(P){var Z=this._readableState,ie={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return P&&P!==Z.pipes?this:(P||(P=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,P&&P.emit("unpipe",this,ie),this);if(!P){var se=Z.pipes,k=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var I=0;I=Z.length?(Z.decoder?ie=Z.buffer.join(""):Z.buffer.length===1?ie=Z.buffer.head.data:ie=Z.buffer.concat(Z.length),Z.buffer.clear()):ie=x(P,Z.buffer,Z.decoder),ie}function x(P,Z,ie){var se;return PI.length?I.length:P;if(te===I.length?k+=I:k+=I.slice(0,P),P-=te,P===0){te===I.length?(++se,ie.next?Z.head=ie.next:Z.head=Z.tail=null):(Z.head=ie,ie.data=I.slice(te));break}++se}return Z.length-=se,k}function z(P,Z){var ie=a.allocUnsafe(P),se=Z.head,k=1;for(se.data.copy(ie),P-=se.data.length;se=se.next;){var I=se.data,te=P>I.length?I.length:P;if(I.copy(ie,ie.length-P,0,te),P-=te,P===0){te===I.length?(++k,se.next?Z.head=se.next:Z.head=Z.tail=null):(Z.head=se,se.data=I.slice(te));break}++k}return Z.length-=k,ie}function oe(P){var Z=P._readableState;if(Z.length>0)throw new Error('"endReadable()" called on non-empty stream');Z.endEmitted||(Z.ended=!0,e.nextTick(le,Z,P))}function le(P,Z){!P.endEmitted&&P.length===0&&(P.endEmitted=!0,Z.readable=!1,Z.emit("end"))}function U(P,Z){for(var ie=0,se=P.length;ie0?m:b},a.min=function(m,b){return m.cmp(b)<0?m:b},a.prototype._init=function(m,b,M){if(typeof m=="number")return this._initNumber(m,b,M);if(typeof m=="object")return this._initArray(m,b,M);b==="hex"&&(b=16),o(b===(b|0)&&b>=2&&b<=36),m=m.toString().replace(/\s+/g,"");var A=0;m[0]==="-"&&(A++,this.negative=1),A=0;A-=3)$=m[A]|m[A-1]<<8|m[A-2]<<16,this.words[O]|=$<>>26-c&67108863,c+=24,c>=26&&(c-=26,O++);else if(M==="le")for(A=0,O=0;A>>26-c&67108863,c+=24,c>=26&&(c-=26,O++);return this._strip()};function y(v,m){var b=v.charCodeAt(m);if(b>=48&&b<=57)return b-48;if(b>=65&&b<=70)return b-55;if(b>=97&&b<=102)return b-87;o(!1,"Invalid character in "+v)}function w(v,m,b){var M=y(v,b);return b-1>=m&&(M|=y(v,b-1)<<4),M}a.prototype._parseHex=function(m,b,M){this.length=Math.ceil((m.length-b)/6),this.words=new Array(this.length);for(var A=0;A=b;A-=2)c=w(m,b,A)<=18?(O-=18,$+=1,this.words[$]|=c>>>26):O+=8;else{var x=m.length-b;for(A=x%2===0?b+1:b;A=18?(O-=18,$+=1,this.words[$]|=c>>>26):O+=8}this._strip()};function _(v,m,b,M){for(var A=0,O=0,$=Math.min(v.length,b),c=m;c<$;c++){var x=v.charCodeAt(c)-48;A*=M,x>=49?O=x-49+10:x>=17?O=x-17+10:O=x,o(x>=0&&O1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=E}catch{a.prototype.inspect=E}else a.prototype.inspect=E;function E(){return(this.red?""}var C=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],B=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],L=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(m,b){m=m||10,b=b|0||1;var M;if(m===16||m==="hex"){M="";for(var A=0,O=0,$=0;$>>24-A&16777215,A+=2,A>=26&&(A-=26,$--),O!==0||$!==this.length-1?M=C[6-x.length]+x+M:M=x+M}for(O!==0&&(M=O.toString(16)+M);M.length%b!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}if(m===(m|0)&&m>=2&&m<=36){var N=B[m],z=L[m];M="";var oe=this.clone();for(oe.negative=0;!oe.isZero();){var le=oe.modrn(z).toString(m);oe=oe.idivn(z),oe.isZero()?M=le+M:M=C[N-le.length]+le+M}for(this.isZero()&&(M="0"+M);M.length%b!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var m=this.words[0];return this.length===2?m+=this.words[1]*67108864:this.length===3&&this.words[2]===1?m+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-m:m},a.prototype.toJSON=function(){return this.toString(16,2)},d&&(a.prototype.toBuffer=function(m,b){return this.toArrayLike(d,m,b)}),a.prototype.toArray=function(m,b){return this.toArrayLike(Array,m,b)};var F=function(m,b){return m.allocUnsafe?m.allocUnsafe(b):new m(b)};a.prototype.toArrayLike=function(m,b,M){this._strip();var A=this.byteLength(),O=M||Math.max(1,A);o(A<=O,"byte array longer than desired length"),o(O>0,"Requested array length <= 0");var $=F(m,O),c=b==="le"?"LE":"BE";return this["_toArrayLike"+c]($,A),$},a.prototype._toArrayLikeLE=function(m,b){for(var M=0,A=0,O=0,$=0;O>8&255),M>16&255),$===6?(M>24&255),A=0,$=0):(A=c>>>24,$+=2)}if(M=0&&(m[M--]=c>>8&255),M>=0&&(m[M--]=c>>16&255),$===6?(M>=0&&(m[M--]=c>>24&255),A=0,$=0):(A=c>>>24,$+=2)}if(M>=0)for(m[M--]=A;M>=0;)m[M--]=0},Math.clz32?a.prototype._countBits=function(m){return 32-Math.clz32(m)}:a.prototype._countBits=function(m){var b=m,M=0;return b>=4096&&(M+=13,b>>>=13),b>=64&&(M+=7,b>>>=7),b>=8&&(M+=4,b>>>=4),b>=2&&(M+=2,b>>>=2),M+b},a.prototype._zeroBits=function(m){if(m===0)return 26;var b=m,M=0;return b&8191||(M+=13,b>>>=13),b&127||(M+=7,b>>>=7),b&15||(M+=4,b>>>=4),b&3||(M+=2,b>>>=2),b&1||M++,M},a.prototype.bitLength=function(){var m=this.words[this.length-1],b=this._countBits(m);return(this.length-1)*26+b};function q(v){for(var m=new Array(v.bitLength()),b=0;b>>A&1}return m}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,b=0;bm.length?this.clone().ior(m):m.clone().ior(this)},a.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},a.prototype.iuand=function(m){var b;this.length>m.length?b=m:b=this;for(var M=0;Mm.length?this.clone().iand(m):m.clone().iand(this)},a.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},a.prototype.iuxor=function(m){var b,M;this.length>m.length?(b=this,M=m):(b=m,M=this);for(var A=0;Am.length?this.clone().ixor(m):m.clone().ixor(this)},a.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},a.prototype.inotn=function(m){o(typeof m=="number"&&m>=0);var b=Math.ceil(m/26)|0,M=m%26;this._expand(b),M>0&&b--;for(var A=0;A0&&(this.words[A]=~this.words[A]&67108863>>26-M),this._strip()},a.prototype.notn=function(m){return this.clone().inotn(m)},a.prototype.setn=function(m,b){o(typeof m=="number"&&m>=0);var M=m/26|0,A=m%26;return this._expand(M+1),b?this.words[M]=this.words[M]|1<m.length?(M=this,A=m):(M=m,A=this);for(var O=0,$=0;$>>26;for(;O!==0&&$>>26;if(this.length=M.length,O!==0)this.words[this.length]=O,this.length++;else if(M!==this)for(;$m.length?this.clone().iadd(m):m.clone().iadd(this)},a.prototype.isub=function(m){if(m.negative!==0){m.negative=0;var b=this.iadd(m);return m.negative=1,b._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var M=this.cmp(m);if(M===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,O;M>0?(A=this,O=m):(A=m,O=this);for(var $=0,c=0;c>26,this.words[c]=b&67108863;for(;$!==0&&c>26,this.words[c]=b&67108863;if($===0&&c>>26,oe=x&67108863,le=Math.min(N,m.length-1),U=Math.max(0,N-v.length+1);U<=le;U++){var P=N-U|0;A=v.words[P]|0,O=m.words[U]|0,$=A*O+oe,z+=$/67108864|0,oe=$&67108863}b.words[N]=oe|0,x=z|0}return x!==0?b.words[N]=x|0:b.length--,b._strip()}var D=function(m,b,M){var A=m.words,O=b.words,$=M.words,c=0,x,N,z,oe=A[0]|0,le=oe&8191,U=oe>>>13,P=A[1]|0,Z=P&8191,ie=P>>>13,se=A[2]|0,k=se&8191,I=se>>>13,te=A[3]|0,ee=te&8191,fe=te>>>13,J=A[4]|0,Y=J&8191,X=J>>>13,ne=A[5]|0,me=ne&8191,he=ne>>>13,ge=A[6]|0,Re=ge&8191,_e=ge>>>13,we=A[7]|0,qe=we&8191,Se=we>>>13,Ae=A[8]|0,Me=Ae&8191,ve=Ae>>>13,be=A[9]|0,Pe=be&8191,$e=be>>>13,Te=O[0]|0,Je=Te&8191,Oe=Te>>>13,Ie=O[1]|0,Ye=Ie&8191,xe=Ie>>>13,Ce=O[2]|0,Qe=Ce&8191,Be=Ce>>>13,je=O[3]|0,nt=je&8191,Ne=je>>>13,Ve=O[4]|0,ot=Ve&8191,He=Ve>>>13,We=O[5]|0,st=We&8191,ke=We>>>13,Ge=O[6]|0,lt=Ge&8191,Le=Ge>>>13,Ke=O[7]|0,ut=Ke&8191,De=Ke>>>13,Ze=O[8]|0,at=Ze&8191,Fe=Ze>>>13,ze=O[9]|0,it=ze&8191,rt=ze>>>13;M.negative=m.negative^b.negative,M.length=19,x=Math.imul(le,Je),N=Math.imul(le,Oe),N=N+Math.imul(U,Je)|0,z=Math.imul(U,Oe);var mt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(Z,Je),N=Math.imul(Z,Oe),N=N+Math.imul(ie,Je)|0,z=Math.imul(ie,Oe),x=x+Math.imul(le,Ye)|0,N=N+Math.imul(le,xe)|0,N=N+Math.imul(U,Ye)|0,z=z+Math.imul(U,xe)|0;var bt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(bt>>>26)|0,bt&=67108863,x=Math.imul(k,Je),N=Math.imul(k,Oe),N=N+Math.imul(I,Je)|0,z=Math.imul(I,Oe),x=x+Math.imul(Z,Ye)|0,N=N+Math.imul(Z,xe)|0,N=N+Math.imul(ie,Ye)|0,z=z+Math.imul(ie,xe)|0,x=x+Math.imul(le,Qe)|0,N=N+Math.imul(le,Be)|0,N=N+Math.imul(U,Qe)|0,z=z+Math.imul(U,Be)|0;var wt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ee,Je),N=Math.imul(ee,Oe),N=N+Math.imul(fe,Je)|0,z=Math.imul(fe,Oe),x=x+Math.imul(k,Ye)|0,N=N+Math.imul(k,xe)|0,N=N+Math.imul(I,Ye)|0,z=z+Math.imul(I,xe)|0,x=x+Math.imul(Z,Qe)|0,N=N+Math.imul(Z,Be)|0,N=N+Math.imul(ie,Qe)|0,z=z+Math.imul(ie,Be)|0,x=x+Math.imul(le,nt)|0,N=N+Math.imul(le,Ne)|0,N=N+Math.imul(U,nt)|0,z=z+Math.imul(U,Ne)|0;var St=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(Y,Je),N=Math.imul(Y,Oe),N=N+Math.imul(X,Je)|0,z=Math.imul(X,Oe),x=x+Math.imul(ee,Ye)|0,N=N+Math.imul(ee,xe)|0,N=N+Math.imul(fe,Ye)|0,z=z+Math.imul(fe,xe)|0,x=x+Math.imul(k,Qe)|0,N=N+Math.imul(k,Be)|0,N=N+Math.imul(I,Qe)|0,z=z+Math.imul(I,Be)|0,x=x+Math.imul(Z,nt)|0,N=N+Math.imul(Z,Ne)|0,N=N+Math.imul(ie,nt)|0,z=z+Math.imul(ie,Ne)|0,x=x+Math.imul(le,ot)|0,N=N+Math.imul(le,He)|0,N=N+Math.imul(U,ot)|0,z=z+Math.imul(U,He)|0;var $t=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+($t>>>26)|0,$t&=67108863,x=Math.imul(me,Je),N=Math.imul(me,Oe),N=N+Math.imul(he,Je)|0,z=Math.imul(he,Oe),x=x+Math.imul(Y,Ye)|0,N=N+Math.imul(Y,xe)|0,N=N+Math.imul(X,Ye)|0,z=z+Math.imul(X,xe)|0,x=x+Math.imul(ee,Qe)|0,N=N+Math.imul(ee,Be)|0,N=N+Math.imul(fe,Qe)|0,z=z+Math.imul(fe,Be)|0,x=x+Math.imul(k,nt)|0,N=N+Math.imul(k,Ne)|0,N=N+Math.imul(I,nt)|0,z=z+Math.imul(I,Ne)|0,x=x+Math.imul(Z,ot)|0,N=N+Math.imul(Z,He)|0,N=N+Math.imul(ie,ot)|0,z=z+Math.imul(ie,He)|0,x=x+Math.imul(le,st)|0,N=N+Math.imul(le,ke)|0,N=N+Math.imul(U,st)|0,z=z+Math.imul(U,ke)|0;var At=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(At>>>26)|0,At&=67108863,x=Math.imul(Re,Je),N=Math.imul(Re,Oe),N=N+Math.imul(_e,Je)|0,z=Math.imul(_e,Oe),x=x+Math.imul(me,Ye)|0,N=N+Math.imul(me,xe)|0,N=N+Math.imul(he,Ye)|0,z=z+Math.imul(he,xe)|0,x=x+Math.imul(Y,Qe)|0,N=N+Math.imul(Y,Be)|0,N=N+Math.imul(X,Qe)|0,z=z+Math.imul(X,Be)|0,x=x+Math.imul(ee,nt)|0,N=N+Math.imul(ee,Ne)|0,N=N+Math.imul(fe,nt)|0,z=z+Math.imul(fe,Ne)|0,x=x+Math.imul(k,ot)|0,N=N+Math.imul(k,He)|0,N=N+Math.imul(I,ot)|0,z=z+Math.imul(I,He)|0,x=x+Math.imul(Z,st)|0,N=N+Math.imul(Z,ke)|0,N=N+Math.imul(ie,st)|0,z=z+Math.imul(ie,ke)|0,x=x+Math.imul(le,lt)|0,N=N+Math.imul(le,Le)|0,N=N+Math.imul(U,lt)|0,z=z+Math.imul(U,Le)|0;var Rt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,x=Math.imul(qe,Je),N=Math.imul(qe,Oe),N=N+Math.imul(Se,Je)|0,z=Math.imul(Se,Oe),x=x+Math.imul(Re,Ye)|0,N=N+Math.imul(Re,xe)|0,N=N+Math.imul(_e,Ye)|0,z=z+Math.imul(_e,xe)|0,x=x+Math.imul(me,Qe)|0,N=N+Math.imul(me,Be)|0,N=N+Math.imul(he,Qe)|0,z=z+Math.imul(he,Be)|0,x=x+Math.imul(Y,nt)|0,N=N+Math.imul(Y,Ne)|0,N=N+Math.imul(X,nt)|0,z=z+Math.imul(X,Ne)|0,x=x+Math.imul(ee,ot)|0,N=N+Math.imul(ee,He)|0,N=N+Math.imul(fe,ot)|0,z=z+Math.imul(fe,He)|0,x=x+Math.imul(k,st)|0,N=N+Math.imul(k,ke)|0,N=N+Math.imul(I,st)|0,z=z+Math.imul(I,ke)|0,x=x+Math.imul(Z,lt)|0,N=N+Math.imul(Z,Le)|0,N=N+Math.imul(ie,lt)|0,z=z+Math.imul(ie,Le)|0,x=x+Math.imul(le,ut)|0,N=N+Math.imul(le,De)|0,N=N+Math.imul(U,ut)|0,z=z+Math.imul(U,De)|0;var Mt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,x=Math.imul(Me,Je),N=Math.imul(Me,Oe),N=N+Math.imul(ve,Je)|0,z=Math.imul(ve,Oe),x=x+Math.imul(qe,Ye)|0,N=N+Math.imul(qe,xe)|0,N=N+Math.imul(Se,Ye)|0,z=z+Math.imul(Se,xe)|0,x=x+Math.imul(Re,Qe)|0,N=N+Math.imul(Re,Be)|0,N=N+Math.imul(_e,Qe)|0,z=z+Math.imul(_e,Be)|0,x=x+Math.imul(me,nt)|0,N=N+Math.imul(me,Ne)|0,N=N+Math.imul(he,nt)|0,z=z+Math.imul(he,Ne)|0,x=x+Math.imul(Y,ot)|0,N=N+Math.imul(Y,He)|0,N=N+Math.imul(X,ot)|0,z=z+Math.imul(X,He)|0,x=x+Math.imul(ee,st)|0,N=N+Math.imul(ee,ke)|0,N=N+Math.imul(fe,st)|0,z=z+Math.imul(fe,ke)|0,x=x+Math.imul(k,lt)|0,N=N+Math.imul(k,Le)|0,N=N+Math.imul(I,lt)|0,z=z+Math.imul(I,Le)|0,x=x+Math.imul(Z,ut)|0,N=N+Math.imul(Z,De)|0,N=N+Math.imul(ie,ut)|0,z=z+Math.imul(ie,De)|0,x=x+Math.imul(le,at)|0,N=N+Math.imul(le,Fe)|0,N=N+Math.imul(U,at)|0,z=z+Math.imul(U,Fe)|0;var ht=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(ht>>>26)|0,ht&=67108863,x=Math.imul(Pe,Je),N=Math.imul(Pe,Oe),N=N+Math.imul($e,Je)|0,z=Math.imul($e,Oe),x=x+Math.imul(Me,Ye)|0,N=N+Math.imul(Me,xe)|0,N=N+Math.imul(ve,Ye)|0,z=z+Math.imul(ve,xe)|0,x=x+Math.imul(qe,Qe)|0,N=N+Math.imul(qe,Be)|0,N=N+Math.imul(Se,Qe)|0,z=z+Math.imul(Se,Be)|0,x=x+Math.imul(Re,nt)|0,N=N+Math.imul(Re,Ne)|0,N=N+Math.imul(_e,nt)|0,z=z+Math.imul(_e,Ne)|0,x=x+Math.imul(me,ot)|0,N=N+Math.imul(me,He)|0,N=N+Math.imul(he,ot)|0,z=z+Math.imul(he,He)|0,x=x+Math.imul(Y,st)|0,N=N+Math.imul(Y,ke)|0,N=N+Math.imul(X,st)|0,z=z+Math.imul(X,ke)|0,x=x+Math.imul(ee,lt)|0,N=N+Math.imul(ee,Le)|0,N=N+Math.imul(fe,lt)|0,z=z+Math.imul(fe,Le)|0,x=x+Math.imul(k,ut)|0,N=N+Math.imul(k,De)|0,N=N+Math.imul(I,ut)|0,z=z+Math.imul(I,De)|0,x=x+Math.imul(Z,at)|0,N=N+Math.imul(Z,Fe)|0,N=N+Math.imul(ie,at)|0,z=z+Math.imul(ie,Fe)|0,x=x+Math.imul(le,it)|0,N=N+Math.imul(le,rt)|0,N=N+Math.imul(U,it)|0,z=z+Math.imul(U,rt)|0;var yt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(Pe,Ye),N=Math.imul(Pe,xe),N=N+Math.imul($e,Ye)|0,z=Math.imul($e,xe),x=x+Math.imul(Me,Qe)|0,N=N+Math.imul(Me,Be)|0,N=N+Math.imul(ve,Qe)|0,z=z+Math.imul(ve,Be)|0,x=x+Math.imul(qe,nt)|0,N=N+Math.imul(qe,Ne)|0,N=N+Math.imul(Se,nt)|0,z=z+Math.imul(Se,Ne)|0,x=x+Math.imul(Re,ot)|0,N=N+Math.imul(Re,He)|0,N=N+Math.imul(_e,ot)|0,z=z+Math.imul(_e,He)|0,x=x+Math.imul(me,st)|0,N=N+Math.imul(me,ke)|0,N=N+Math.imul(he,st)|0,z=z+Math.imul(he,ke)|0,x=x+Math.imul(Y,lt)|0,N=N+Math.imul(Y,Le)|0,N=N+Math.imul(X,lt)|0,z=z+Math.imul(X,Le)|0,x=x+Math.imul(ee,ut)|0,N=N+Math.imul(ee,De)|0,N=N+Math.imul(fe,ut)|0,z=z+Math.imul(fe,De)|0,x=x+Math.imul(k,at)|0,N=N+Math.imul(k,Fe)|0,N=N+Math.imul(I,at)|0,z=z+Math.imul(I,Fe)|0,x=x+Math.imul(Z,it)|0,N=N+Math.imul(Z,rt)|0,N=N+Math.imul(ie,it)|0,z=z+Math.imul(ie,rt)|0;var gt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(gt>>>26)|0,gt&=67108863,x=Math.imul(Pe,Qe),N=Math.imul(Pe,Be),N=N+Math.imul($e,Qe)|0,z=Math.imul($e,Be),x=x+Math.imul(Me,nt)|0,N=N+Math.imul(Me,Ne)|0,N=N+Math.imul(ve,nt)|0,z=z+Math.imul(ve,Ne)|0,x=x+Math.imul(qe,ot)|0,N=N+Math.imul(qe,He)|0,N=N+Math.imul(Se,ot)|0,z=z+Math.imul(Se,He)|0,x=x+Math.imul(Re,st)|0,N=N+Math.imul(Re,ke)|0,N=N+Math.imul(_e,st)|0,z=z+Math.imul(_e,ke)|0,x=x+Math.imul(me,lt)|0,N=N+Math.imul(me,Le)|0,N=N+Math.imul(he,lt)|0,z=z+Math.imul(he,Le)|0,x=x+Math.imul(Y,ut)|0,N=N+Math.imul(Y,De)|0,N=N+Math.imul(X,ut)|0,z=z+Math.imul(X,De)|0,x=x+Math.imul(ee,at)|0,N=N+Math.imul(ee,Fe)|0,N=N+Math.imul(fe,at)|0,z=z+Math.imul(fe,Fe)|0,x=x+Math.imul(k,it)|0,N=N+Math.imul(k,rt)|0,N=N+Math.imul(I,it)|0,z=z+Math.imul(I,rt)|0;var dt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(dt>>>26)|0,dt&=67108863,x=Math.imul(Pe,nt),N=Math.imul(Pe,Ne),N=N+Math.imul($e,nt)|0,z=Math.imul($e,Ne),x=x+Math.imul(Me,ot)|0,N=N+Math.imul(Me,He)|0,N=N+Math.imul(ve,ot)|0,z=z+Math.imul(ve,He)|0,x=x+Math.imul(qe,st)|0,N=N+Math.imul(qe,ke)|0,N=N+Math.imul(Se,st)|0,z=z+Math.imul(Se,ke)|0,x=x+Math.imul(Re,lt)|0,N=N+Math.imul(Re,Le)|0,N=N+Math.imul(_e,lt)|0,z=z+Math.imul(_e,Le)|0,x=x+Math.imul(me,ut)|0,N=N+Math.imul(me,De)|0,N=N+Math.imul(he,ut)|0,z=z+Math.imul(he,De)|0,x=x+Math.imul(Y,at)|0,N=N+Math.imul(Y,Fe)|0,N=N+Math.imul(X,at)|0,z=z+Math.imul(X,Fe)|0,x=x+Math.imul(ee,it)|0,N=N+Math.imul(ee,rt)|0,N=N+Math.imul(fe,it)|0,z=z+Math.imul(fe,rt)|0;var _t=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(Pe,ot),N=Math.imul(Pe,He),N=N+Math.imul($e,ot)|0,z=Math.imul($e,He),x=x+Math.imul(Me,st)|0,N=N+Math.imul(Me,ke)|0,N=N+Math.imul(ve,st)|0,z=z+Math.imul(ve,ke)|0,x=x+Math.imul(qe,lt)|0,N=N+Math.imul(qe,Le)|0,N=N+Math.imul(Se,lt)|0,z=z+Math.imul(Se,Le)|0,x=x+Math.imul(Re,ut)|0,N=N+Math.imul(Re,De)|0,N=N+Math.imul(_e,ut)|0,z=z+Math.imul(_e,De)|0,x=x+Math.imul(me,at)|0,N=N+Math.imul(me,Fe)|0,N=N+Math.imul(he,at)|0,z=z+Math.imul(he,Fe)|0,x=x+Math.imul(Y,it)|0,N=N+Math.imul(Y,rt)|0,N=N+Math.imul(X,it)|0,z=z+Math.imul(X,rt)|0;var ct=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(ct>>>26)|0,ct&=67108863,x=Math.imul(Pe,st),N=Math.imul(Pe,ke),N=N+Math.imul($e,st)|0,z=Math.imul($e,ke),x=x+Math.imul(Me,lt)|0,N=N+Math.imul(Me,Le)|0,N=N+Math.imul(ve,lt)|0,z=z+Math.imul(ve,Le)|0,x=x+Math.imul(qe,ut)|0,N=N+Math.imul(qe,De)|0,N=N+Math.imul(Se,ut)|0,z=z+Math.imul(Se,De)|0,x=x+Math.imul(Re,at)|0,N=N+Math.imul(Re,Fe)|0,N=N+Math.imul(_e,at)|0,z=z+Math.imul(_e,Fe)|0,x=x+Math.imul(me,it)|0,N=N+Math.imul(me,rt)|0,N=N+Math.imul(he,it)|0,z=z+Math.imul(he,rt)|0;var pt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(pt>>>26)|0,pt&=67108863,x=Math.imul(Pe,lt),N=Math.imul(Pe,Le),N=N+Math.imul($e,lt)|0,z=Math.imul($e,Le),x=x+Math.imul(Me,ut)|0,N=N+Math.imul(Me,De)|0,N=N+Math.imul(ve,ut)|0,z=z+Math.imul(ve,De)|0,x=x+Math.imul(qe,at)|0,N=N+Math.imul(qe,Fe)|0,N=N+Math.imul(Se,at)|0,z=z+Math.imul(Se,Fe)|0,x=x+Math.imul(Re,it)|0,N=N+Math.imul(Re,rt)|0,N=N+Math.imul(_e,it)|0,z=z+Math.imul(_e,rt)|0;var Et=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(Et>>>26)|0,Et&=67108863,x=Math.imul(Pe,ut),N=Math.imul(Pe,De),N=N+Math.imul($e,ut)|0,z=Math.imul($e,De),x=x+Math.imul(Me,at)|0,N=N+Math.imul(Me,Fe)|0,N=N+Math.imul(ve,at)|0,z=z+Math.imul(ve,Fe)|0,x=x+Math.imul(qe,it)|0,N=N+Math.imul(qe,rt)|0,N=N+Math.imul(Se,it)|0,z=z+Math.imul(Se,rt)|0;var xt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(xt>>>26)|0,xt&=67108863,x=Math.imul(Pe,at),N=Math.imul(Pe,Fe),N=N+Math.imul($e,at)|0,z=Math.imul($e,Fe),x=x+Math.imul(Me,it)|0,N=N+Math.imul(Me,rt)|0,N=N+Math.imul(ve,it)|0,z=z+Math.imul(ve,rt)|0;var kt=(c+x|0)+((N&8191)<<13)|0;c=(z+(N>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(Pe,it),N=Math.imul(Pe,rt),N=N+Math.imul($e,it)|0,z=Math.imul($e,rt);var Ot=(c+x|0)+((N&8191)<<13)|0;return c=(z+(N>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,$[0]=mt,$[1]=bt,$[2]=wt,$[3]=St,$[4]=$t,$[5]=At,$[6]=Rt,$[7]=Mt,$[8]=ht,$[9]=yt,$[10]=gt,$[11]=dt,$[12]=_t,$[13]=ct,$[14]=pt,$[15]=Et,$[16]=xt,$[17]=kt,$[18]=Ot,c!==0&&($[19]=c,M.length++),M};Math.imul||(D=H);function j(v,m,b){b.negative=m.negative^v.negative,b.length=v.length+m.length;for(var M=0,A=0,O=0;O>>26)|0,A+=$>>>26,$&=67108863}b.words[O]=c,M=$,$=A}return M!==0?b.words[O]=M:b.length--,b._strip()}function V(v,m,b){return j(v,m,b)}a.prototype.mulTo=function(m,b){var M,A=this.length+m.length;return this.length===10&&m.length===10?M=D(this,m,b):A<63?M=H(this,m,b):A<1024?M=j(this,m,b):M=V(this,m,b),M},a.prototype.mul=function(m){var b=new a(null);return b.words=new Array(this.length+m.length),this.mulTo(m,b)},a.prototype.mulf=function(m){var b=new a(null);return b.words=new Array(this.length+m.length),V(this,m,b)},a.prototype.imul=function(m){return this.clone().mulTo(m,this)},a.prototype.imuln=function(m){var b=m<0;b&&(m=-m),o(typeof m=="number"),o(m<67108864);for(var M=0,A=0;A>=26,M+=O/67108864|0,M+=$>>>26,this.words[A]=$&67108863}return M!==0&&(this.words[A]=M,this.length++),this.length=m===0?1:this.length,b?this.ineg():this},a.prototype.muln=function(m){return this.clone().imuln(m)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(m){var b=q(m);if(b.length===0)return new a(1);for(var M=this,A=0;A=0);var b=m%26,M=(m-b)/26,A=67108863>>>26-b<<26-b,O;if(b!==0){var $=0;for(O=0;O>>26-b}$&&(this.words[O]=$,this.length++)}if(M!==0){for(O=this.length-1;O>=0;O--)this.words[O+M]=this.words[O];for(O=0;O=0);var A;b?A=(b-b%26)/26:A=0;var O=m%26,$=Math.min((m-O)/26,this.length),c=67108863^67108863>>>O<$)for(this.length-=$,N=0;N=0&&(z!==0||N>=A);N--){var oe=this.words[N]|0;this.words[N]=z<<26-O|oe>>>O,z=oe&c}return x&&z!==0&&(x.words[x.length++]=z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(m,b,M){return o(this.negative===0),this.iushrn(m,b,M)},a.prototype.shln=function(m){return this.clone().ishln(m)},a.prototype.ushln=function(m){return this.clone().iushln(m)},a.prototype.shrn=function(m){return this.clone().ishrn(m)},a.prototype.ushrn=function(m){return this.clone().iushrn(m)},a.prototype.testn=function(m){o(typeof m=="number"&&m>=0);var b=m%26,M=(m-b)/26,A=1<=0);var b=m%26,M=(m-b)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=M)return this;if(b!==0&&M++,this.length=Math.min(M,this.length),b!==0){var A=67108863^67108863>>>b<=67108864;b++)this.words[b]-=67108864,b===this.length-1?this.words[b+1]=1:this.words[b+1]++;return this.length=Math.max(this.length,b+1),this},a.prototype.isubn=function(m){if(o(typeof m=="number"),o(m<67108864),m<0)return this.iaddn(-m);if(this.negative!==0)return this.negative=0,this.iaddn(m),this.negative=1,this;if(this.words[0]-=m,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var b=0;b>26)-(x/67108864|0),this.words[O+M]=$&67108863}for(;O>26,this.words[O+M]=$&67108863;if(c===0)return this._strip();for(o(c===-1),c=0,O=0;O>26,this.words[O]=$&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(m,b){var M=this.length-m.length,A=this.clone(),O=m,$=O.words[O.length-1]|0,c=this._countBits($);M=26-c,M!==0&&(O=O.ushln(M),A.iushln(M),$=O.words[O.length-1]|0);var x=A.length-O.length,N;if(b!=="mod"){N=new a(null),N.length=x+1,N.words=new Array(N.length);for(var z=0;z=0;le--){var U=(A.words[O.length+le]|0)*67108864+(A.words[O.length+le-1]|0);for(U=Math.min(U/$|0,67108863),A._ishlnsubmul(O,U,le);A.negative!==0;)U--,A.negative=0,A._ishlnsubmul(O,1,le),A.isZero()||(A.negative^=1);N&&(N.words[le]=U)}return N&&N._strip(),A._strip(),b!=="div"&&M!==0&&A.iushrn(M),{div:N||null,mod:A}},a.prototype.divmod=function(m,b,M){if(o(!m.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var A,O,$;return this.negative!==0&&m.negative===0?($=this.neg().divmod(m,b),b!=="mod"&&(A=$.div.neg()),b!=="div"&&(O=$.mod.neg(),M&&O.negative!==0&&O.iadd(m)),{div:A,mod:O}):this.negative===0&&m.negative!==0?($=this.divmod(m.neg(),b),b!=="mod"&&(A=$.div.neg()),{div:A,mod:$.mod}):this.negative&m.negative?($=this.neg().divmod(m.neg(),b),b!=="div"&&(O=$.mod.neg(),M&&O.negative!==0&&O.isub(m)),{div:$.div,mod:O}):m.length>this.length||this.cmp(m)<0?{div:new a(0),mod:this}:m.length===1?b==="div"?{div:this.divn(m.words[0]),mod:null}:b==="mod"?{div:null,mod:new a(this.modrn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new a(this.modrn(m.words[0]))}:this._wordDiv(m,b)},a.prototype.div=function(m){return this.divmod(m,"div",!1).div},a.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},a.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},a.prototype.divRound=function(m){var b=this.divmod(m);if(b.mod.isZero())return b.div;var M=b.div.negative!==0?b.mod.isub(m):b.mod,A=m.ushrn(1),O=m.andln(1),$=M.cmp(A);return $<0||O===1&&$===0?b.div:b.div.negative!==0?b.div.isubn(1):b.div.iaddn(1)},a.prototype.modrn=function(m){var b=m<0;b&&(m=-m),o(m<=67108863);for(var M=(1<<26)%m,A=0,O=this.length-1;O>=0;O--)A=(M*A+(this.words[O]|0))%m;return b?-A:A},a.prototype.modn=function(m){return this.modrn(m)},a.prototype.idivn=function(m){var b=m<0;b&&(m=-m),o(m<=67108863);for(var M=0,A=this.length-1;A>=0;A--){var O=(this.words[A]|0)+M*67108864;this.words[A]=O/m|0,M=O%m}return this._strip(),b?this.ineg():this},a.prototype.divn=function(m){return this.clone().idivn(m)},a.prototype.egcd=function(m){o(m.negative===0),o(!m.isZero());var b=this,M=m.clone();b.negative!==0?b=b.umod(m):b=b.clone();for(var A=new a(1),O=new a(0),$=new a(0),c=new a(1),x=0;b.isEven()&&M.isEven();)b.iushrn(1),M.iushrn(1),++x;for(var N=M.clone(),z=b.clone();!b.isZero();){for(var oe=0,le=1;!(b.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(b.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(N),O.isub(z)),A.iushrn(1),O.iushrn(1);for(var U=0,P=1;!(M.words[0]&P)&&U<26;++U,P<<=1);if(U>0)for(M.iushrn(U);U-- >0;)($.isOdd()||c.isOdd())&&($.iadd(N),c.isub(z)),$.iushrn(1),c.iushrn(1);b.cmp(M)>=0?(b.isub(M),A.isub($),O.isub(c)):(M.isub(b),$.isub(A),c.isub(O))}return{a:$,b:c,gcd:M.iushln(x)}},a.prototype._invmp=function(m){o(m.negative===0),o(!m.isZero());var b=this,M=m.clone();b.negative!==0?b=b.umod(m):b=b.clone();for(var A=new a(1),O=new a(0),$=M.clone();b.cmpn(1)>0&&M.cmpn(1)>0;){for(var c=0,x=1;!(b.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(b.iushrn(c);c-- >0;)A.isOdd()&&A.iadd($),A.iushrn(1);for(var N=0,z=1;!(M.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(M.iushrn(N);N-- >0;)O.isOdd()&&O.iadd($),O.iushrn(1);b.cmp(M)>=0?(b.isub(M),A.isub(O)):(M.isub(b),O.isub(A))}var oe;return b.cmpn(1)===0?oe=A:oe=O,oe.cmpn(0)<0&&oe.iadd(m),oe},a.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var b=this.clone(),M=m.clone();b.negative=0,M.negative=0;for(var A=0;b.isEven()&&M.isEven();A++)b.iushrn(1),M.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;M.isEven();)M.iushrn(1);var O=b.cmp(M);if(O<0){var $=b;b=M,M=$}else if(O===0||M.cmpn(1)===0)break;b.isub(M)}while(!0);return M.iushln(A)},a.prototype.invm=function(m){return this.egcd(m).a.umod(m)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(m){return this.words[0]&m},a.prototype.bincn=function(m){o(typeof m=="number");var b=m%26,M=(m-b)/26,A=1<>>26,c&=67108863,this.words[$]=c}return O!==0&&(this.words[$]=O,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(m){var b=m<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;this._strip();var M;if(this.length>1)M=1;else{b&&(m=-m),o(m<=67108863,"Number is too big");var A=this.words[0]|0;M=A===m?0:Am.length)return 1;if(this.length=0;M--){var A=this.words[M]|0,O=m.words[M]|0;if(A!==O){AO&&(b=1);break}}return b},a.prototype.gtn=function(m){return this.cmpn(m)===1},a.prototype.gt=function(m){return this.cmp(m)===1},a.prototype.gten=function(m){return this.cmpn(m)>=0},a.prototype.gte=function(m){return this.cmp(m)>=0},a.prototype.ltn=function(m){return this.cmpn(m)===-1},a.prototype.lt=function(m){return this.cmp(m)===-1},a.prototype.lten=function(m){return this.cmpn(m)<=0},a.prototype.lte=function(m){return this.cmp(m)<=0},a.prototype.eqn=function(m){return this.cmpn(m)===0},a.prototype.eq=function(m){return this.cmp(m)===0},a.red=function(m){return new T(m)},a.prototype.toRed=function(m){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),m.convertTo(this)._forceRed(m)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(m){return this.red=m,this},a.prototype.forceRed=function(m){return o(!this.red,"Already a number in reduction context"),this._forceRed(m)},a.prototype.redAdd=function(m){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},a.prototype.redIAdd=function(m){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},a.prototype.redSub=function(m){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},a.prototype.redISub=function(m){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},a.prototype.redShl=function(m){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},a.prototype.redMul=function(m){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},a.prototype.redIMul=function(m){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(m){return o(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var Q={k256:null,p224:null,p192:null,p25519:null};function ae(v,m){this.name=v,this.p=new a(m,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ae.prototype._tmp=function(){var m=new a(null);return m.words=new Array(Math.ceil(this.n/13)),m},ae.prototype.ireduce=function(m){var b=m,M;do this.split(b,this.tmp),b=this.imulK(b),b=b.iadd(this.tmp),M=b.bitLength();while(M>this.n);var A=M0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},ae.prototype.split=function(m,b){m.iushrn(this.n,0,b)},ae.prototype.imulK=function(m){return m.imul(this.k)};function ce(){ae.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(ce,ae),ce.prototype.split=function(m,b){for(var M=4194303,A=Math.min(m.length,9),O=0;O>>22,$=c}$>>>=22,m.words[O-10]=$,$===0&&m.length>10?m.length-=10:m.length-=9},ce.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var b=0,M=0;M>>=26,m.words[M]=O,b=A}return b!==0&&(m.words[m.length++]=b),m},a._prime=function(m){if(Q[m])return Q[m];var b;if(m==="k256")b=new ce;else if(m==="p224")b=new ue;else if(m==="p192")b=new re;else if(m==="p25519")b=new pe;else throw new Error("Unknown prime "+m);return Q[m]=b,b};function T(v){if(typeof v=="string"){var m=a._prime(v);this.m=m.p,this.prime=m}else o(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}T.prototype._verify1=function(m){o(m.negative===0,"red works only with positives"),o(m.red,"red works only with red numbers")},T.prototype._verify2=function(m,b){o((m.negative|b.negative)===0,"red works only with positives"),o(m.red&&m.red===b.red,"red works only with red numbers")},T.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):(S(m,m.umod(this.m)._forceRed(this)),m)},T.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},T.prototype.add=function(m,b){this._verify2(m,b);var M=m.add(b);return M.cmp(this.m)>=0&&M.isub(this.m),M._forceRed(this)},T.prototype.iadd=function(m,b){this._verify2(m,b);var M=m.iadd(b);return M.cmp(this.m)>=0&&M.isub(this.m),M},T.prototype.sub=function(m,b){this._verify2(m,b);var M=m.sub(b);return M.cmpn(0)<0&&M.iadd(this.m),M._forceRed(this)},T.prototype.isub=function(m,b){this._verify2(m,b);var M=m.isub(b);return M.cmpn(0)<0&&M.iadd(this.m),M},T.prototype.shl=function(m,b){return this._verify1(m),this.imod(m.ushln(b))},T.prototype.imul=function(m,b){return this._verify2(m,b),this.imod(m.imul(b))},T.prototype.mul=function(m,b){return this._verify2(m,b),this.imod(m.mul(b))},T.prototype.isqr=function(m){return this.imul(m,m.clone())},T.prototype.sqr=function(m){return this.mul(m,m)},T.prototype.sqrt=function(m){if(m.isZero())return m.clone();var b=this.m.andln(3);if(o(b%2===1),b===3){var M=this.m.add(new a(1)).iushrn(2);return this.pow(m,M)}for(var A=this.m.subn(1),O=0;!A.isZero()&&A.andln(1)===0;)O++,A.iushrn(1);o(!A.isZero());var $=new a(1).toRed(this),c=$.redNeg(),x=this.m.subn(1).iushrn(1),N=this.m.bitLength();for(N=new a(2*N*N).toRed(this);this.pow(N,x).cmp(c)!==0;)N.redIAdd(c);for(var z=this.pow(N,A),oe=this.pow(m,A.addn(1).iushrn(1)),le=this.pow(m,A),U=O;le.cmp($)!==0;){for(var P=le,Z=0;P.cmp($)!==0;Z++)P=P.redSqr();o(Z=0;O--){for(var z=b.words[O],oe=N-1;oe>=0;oe--){var le=z>>oe&1;if($!==A[0]&&($=this.sqr($)),le===0&&c===0){x=0;continue}c<<=1,c|=le,x++,!(x!==M&&(O!==0||oe!==0))&&($=this.mul($,A[c]),x=0,c=0)}N=26}return $},T.prototype.convertTo=function(m){var b=m.umod(this.m);return b===m?b.clone():b},T.prototype.convertFrom=function(m){var b=m.clone();return b.red=null,b},a.mont=function(m){return new u(m)};function u(v){T.call(this,v),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(u,T),u.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},u.prototype.convertFrom=function(m){var b=this.imod(m.mul(this.rinv));return b.red=null,b},u.prototype.imul=function(m,b){if(m.isZero()||b.isZero())return m.words[0]=0,m.length=1,m;var M=m.imul(b),A=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),O=M.isub(A).iushrn(this.shift),$=O;return O.cmp(this.m)>=0?$=O.isub(this.m):O.cmpn(0)<0&&($=O.iadd(this.m)),$._forceRed(this)},u.prototype.mul=function(m,b){if(m.isZero()||b.isZero())return new a(0)._forceRed(this);var M=m.mul(b),A=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),O=M.isub(A).iushrn(this.shift),$=O;return O.cmp(this.m)>=0?$=O.isub(this.m):O.cmpn(0)<0&&($=O.iadd(this.m)),$._forceRed(this)},u.prototype.invm=function(m){var b=this.imod(m._invmp(this.m).mul(this.r2));return b._forceRed(this)}})(e,commonjsGlobal)})(bn$4);var bnExports$4=bn$4.exports,BN$a=bnExports$4,randomBytes$1=browserExports,Buffer$7=requireSafeBuffer().Buffer;function getr(e){var t=e.modulus.byteLength(),n;do n=new BN$a(randomBytes$1(t));while(n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2));return n}function blind(e){var t=getr(e),n=t.toRed(BN$a.mont(e.modulus)).redPow(new BN$a(e.publicExponent)).fromRed();return{blinder:n,unblinder:t.invm(e.modulus)}}function crt$2(e,t){var n=blind(t),o=t.modulus.byteLength(),l=new BN$a(e).mul(n.blinder).umod(t.modulus),a=l.toRed(BN$a.mont(t.prime1)),d=l.toRed(BN$a.mont(t.prime2)),y=t.coefficient,w=t.prime1,_=t.prime2,S=a.redPow(t.exponent1).fromRed(),E=d.redPow(t.exponent2).fromRed(),C=S.isub(E).imul(y).umod(w).imul(_);return E.iadd(C).imul(n.unblinder).umod(t.modulus).toArrayLike(Buffer$7,"be",o)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic={};const name="elliptic",version="6.6.1",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny ",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$l={},bn$3={exports:{}};bn$3.exports;(function(e){(function(t,n){function o(T,u){if(!T)throw new Error(u||"Assertion failed")}function l(T,u){T.super_=u;var v=function(){};v.prototype=u.prototype,T.prototype=new v,T.prototype.constructor=T}function a(T,u,v){if(a.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((u==="le"||u==="be")&&(v=u,u=10),this._init(T||0,u||10,v||"be"))}typeof t=="object"?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=buffer$2.Buffer}catch{}a.isBN=function(u){return u instanceof a?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===a.wordSize&&Array.isArray(u.words)},a.max=function(u,v){return u.cmp(v)>0?u:v},a.min=function(u,v){return u.cmp(v)<0?u:v},a.prototype._init=function(u,v,m){if(typeof u=="number")return this._initNumber(u,v,m);if(typeof u=="object")return this._initArray(u,v,m);v==="hex"&&(v=16),o(v===(v|0)&&v>=2&&v<=36),u=u.toString().replace(/\s+/g,"");var b=0;u[0]==="-"&&(b++,this.negative=1),b=0;b-=3)A=u[b]|u[b-1]<<8|u[b-2]<<16,this.words[M]|=A<>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);else if(m==="le")for(b=0,M=0;b>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);return this.strip()};function y(T,u){var v=T.charCodeAt(u);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function w(T,u,v){var m=y(T,v);return v-1>=u&&(m|=y(T,v-1)<<4),m}a.prototype._parseHex=function(u,v,m){this.length=Math.ceil((u.length-v)/6),this.words=new Array(this.length);for(var b=0;b=v;b-=2)O=w(u,v,b)<=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8;else{var $=u.length-v;for(b=$%2===0?v+1:v;b=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8}this.strip()};function _(T,u,v,m){for(var b=0,M=Math.min(T.length,v),A=u;A=49?b+=O-49+10:O>=17?b+=O-17+10:b+=O}return b}a.prototype._parseBase=function(u,v,m){this.words=[0],this.length=1;for(var b=0,M=1;M<=67108863;M*=v)b++;b--,M=M/v|0;for(var A=u.length-m,O=A%b,$=Math.min(A,A-O)+m,c=0,x=m;x<$;x+=b)c=_(u,x,x+b,v),this.imuln(M),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(O!==0){var N=1;for(c=_(u,x,u.length,v),x=0;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(u,v){u=u||10,v=v|0||1;var m;if(u===16||u==="hex"){m="";for(var b=0,M=0,A=0;A>>24-b&16777215,b+=2,b>=26&&(b-=26,A--),M!==0||A!==this.length-1?m=S[6-$.length]+$+m:m=$+m}for(M!==0&&(m=M.toString(16)+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var c=E[u],x=C[u];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var z=N.modn(x).toString(u);N=N.idivn(x),N.isZero()?m=z+m:m=S[c-z.length]+z+m}for(this.isZero()&&(m="0"+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(u,v){return o(typeof d<"u"),this.toArrayLike(d,u,v)},a.prototype.toArray=function(u,v){return this.toArrayLike(Array,u,v)},a.prototype.toArrayLike=function(u,v,m){var b=this.byteLength(),M=m||Math.max(1,b);o(b<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0"),this.strip();var A=v==="le",O=new u(M),$,c,x=this.clone();if(A){for(c=0;!x.isZero();c++)$=x.andln(255),x.iushrn(8),O[c]=$;for(;c=4096&&(m+=13,v>>>=13),v>=64&&(m+=7,v>>>=7),v>=8&&(m+=4,v>>>=4),v>=2&&(m+=2,v>>>=2),m+v},a.prototype._zeroBits=function(u){if(u===0)return 26;var v=u,m=0;return v&8191||(m+=13,v>>>=13),v&127||(m+=7,v>>>=7),v&15||(m+=4,v>>>=4),v&3||(m+=2,v>>>=2),v&1||m++,m},a.prototype.bitLength=function(){var u=this.words[this.length-1],v=this._countBits(u);return(this.length-1)*26+v};function B(T){for(var u=new Array(T.bitLength()),v=0;v>>b}return u}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,v=0;vu.length?this.clone().ior(u):u.clone().ior(this)},a.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},a.prototype.iuand=function(u){var v;this.length>u.length?v=u:v=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},a.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},a.prototype.iuxor=function(u){var v,m;this.length>u.length?(v=this,m=u):(v=u,m=this);for(var b=0;bu.length?this.clone().ixor(u):u.clone().ixor(this)},a.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},a.prototype.inotn=function(u){o(typeof u=="number"&&u>=0);var v=Math.ceil(u/26)|0,m=u%26;this._expand(v),m>0&&v--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this.strip()},a.prototype.notn=function(u){return this.clone().inotn(u)},a.prototype.setn=function(u,v){o(typeof u=="number"&&u>=0);var m=u/26|0,b=u%26;return this._expand(m+1),v?this.words[m]=this.words[m]|1<u.length?(m=this,b=u):(m=u,b=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Au.length?this.clone().iadd(u):u.clone().iadd(this)},a.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var v=this.iadd(u);return u.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,M;m>0?(b=this,M=u):(b=u,M=this);for(var A=0,O=0;O>26,this.words[O]=v&67108863;for(;A!==0&&O>26,this.words[O]=v&67108863;if(A===0&&O>>26,N=$&67108863,z=Math.min(c,u.length-1),oe=Math.max(0,c-T.length+1);oe<=z;oe++){var le=c-oe|0;b=T.words[le]|0,M=u.words[oe]|0,A=b*M+N,x+=A/67108864|0,N=A&67108863}v.words[c]=N|0,$=x|0}return $!==0?v.words[c]=$|0:v.length--,v.strip()}var F=function(u,v,m){var b=u.words,M=v.words,A=m.words,O=0,$,c,x,N=b[0]|0,z=N&8191,oe=N>>>13,le=b[1]|0,U=le&8191,P=le>>>13,Z=b[2]|0,ie=Z&8191,se=Z>>>13,k=b[3]|0,I=k&8191,te=k>>>13,ee=b[4]|0,fe=ee&8191,J=ee>>>13,Y=b[5]|0,X=Y&8191,ne=Y>>>13,me=b[6]|0,he=me&8191,ge=me>>>13,Re=b[7]|0,_e=Re&8191,we=Re>>>13,qe=b[8]|0,Se=qe&8191,Ae=qe>>>13,Me=b[9]|0,ve=Me&8191,be=Me>>>13,Pe=M[0]|0,$e=Pe&8191,Te=Pe>>>13,Je=M[1]|0,Oe=Je&8191,Ie=Je>>>13,Ye=M[2]|0,xe=Ye&8191,Ce=Ye>>>13,Qe=M[3]|0,Be=Qe&8191,je=Qe>>>13,nt=M[4]|0,Ne=nt&8191,Ve=nt>>>13,ot=M[5]|0,He=ot&8191,We=ot>>>13,st=M[6]|0,ke=st&8191,Ge=st>>>13,lt=M[7]|0,Le=lt&8191,Ke=lt>>>13,ut=M[8]|0,De=ut&8191,Ze=ut>>>13,at=M[9]|0,Fe=at&8191,ze=at>>>13;m.negative=u.negative^v.negative,m.length=19,$=Math.imul(z,$e),c=Math.imul(z,Te),c=c+Math.imul(oe,$e)|0,x=Math.imul(oe,Te);var it=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(it>>>26)|0,it&=67108863,$=Math.imul(U,$e),c=Math.imul(U,Te),c=c+Math.imul(P,$e)|0,x=Math.imul(P,Te),$=$+Math.imul(z,Oe)|0,c=c+Math.imul(z,Ie)|0,c=c+Math.imul(oe,Oe)|0,x=x+Math.imul(oe,Ie)|0;var rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,$=Math.imul(ie,$e),c=Math.imul(ie,Te),c=c+Math.imul(se,$e)|0,x=Math.imul(se,Te),$=$+Math.imul(U,Oe)|0,c=c+Math.imul(U,Ie)|0,c=c+Math.imul(P,Oe)|0,x=x+Math.imul(P,Ie)|0,$=$+Math.imul(z,xe)|0,c=c+Math.imul(z,Ce)|0,c=c+Math.imul(oe,xe)|0,x=x+Math.imul(oe,Ce)|0;var mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,$=Math.imul(I,$e),c=Math.imul(I,Te),c=c+Math.imul(te,$e)|0,x=Math.imul(te,Te),$=$+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Ie)|0,c=c+Math.imul(se,Oe)|0,x=x+Math.imul(se,Ie)|0,$=$+Math.imul(U,xe)|0,c=c+Math.imul(U,Ce)|0,c=c+Math.imul(P,xe)|0,x=x+Math.imul(P,Ce)|0,$=$+Math.imul(z,Be)|0,c=c+Math.imul(z,je)|0,c=c+Math.imul(oe,Be)|0,x=x+Math.imul(oe,je)|0;var bt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,$=Math.imul(fe,$e),c=Math.imul(fe,Te),c=c+Math.imul(J,$e)|0,x=Math.imul(J,Te),$=$+Math.imul(I,Oe)|0,c=c+Math.imul(I,Ie)|0,c=c+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ie)|0,$=$+Math.imul(ie,xe)|0,c=c+Math.imul(ie,Ce)|0,c=c+Math.imul(se,xe)|0,x=x+Math.imul(se,Ce)|0,$=$+Math.imul(U,Be)|0,c=c+Math.imul(U,je)|0,c=c+Math.imul(P,Be)|0,x=x+Math.imul(P,je)|0,$=$+Math.imul(z,Ne)|0,c=c+Math.imul(z,Ve)|0,c=c+Math.imul(oe,Ne)|0,x=x+Math.imul(oe,Ve)|0;var wt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,$=Math.imul(X,$e),c=Math.imul(X,Te),c=c+Math.imul(ne,$e)|0,x=Math.imul(ne,Te),$=$+Math.imul(fe,Oe)|0,c=c+Math.imul(fe,Ie)|0,c=c+Math.imul(J,Oe)|0,x=x+Math.imul(J,Ie)|0,$=$+Math.imul(I,xe)|0,c=c+Math.imul(I,Ce)|0,c=c+Math.imul(te,xe)|0,x=x+Math.imul(te,Ce)|0,$=$+Math.imul(ie,Be)|0,c=c+Math.imul(ie,je)|0,c=c+Math.imul(se,Be)|0,x=x+Math.imul(se,je)|0,$=$+Math.imul(U,Ne)|0,c=c+Math.imul(U,Ve)|0,c=c+Math.imul(P,Ne)|0,x=x+Math.imul(P,Ve)|0,$=$+Math.imul(z,He)|0,c=c+Math.imul(z,We)|0,c=c+Math.imul(oe,He)|0,x=x+Math.imul(oe,We)|0;var St=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(he,$e),c=Math.imul(he,Te),c=c+Math.imul(ge,$e)|0,x=Math.imul(ge,Te),$=$+Math.imul(X,Oe)|0,c=c+Math.imul(X,Ie)|0,c=c+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,Ie)|0,$=$+Math.imul(fe,xe)|0,c=c+Math.imul(fe,Ce)|0,c=c+Math.imul(J,xe)|0,x=x+Math.imul(J,Ce)|0,$=$+Math.imul(I,Be)|0,c=c+Math.imul(I,je)|0,c=c+Math.imul(te,Be)|0,x=x+Math.imul(te,je)|0,$=$+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(se,Ne)|0,x=x+Math.imul(se,Ve)|0,$=$+Math.imul(U,He)|0,c=c+Math.imul(U,We)|0,c=c+Math.imul(P,He)|0,x=x+Math.imul(P,We)|0,$=$+Math.imul(z,ke)|0,c=c+Math.imul(z,Ge)|0,c=c+Math.imul(oe,ke)|0,x=x+Math.imul(oe,Ge)|0;var $t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+($t>>>26)|0,$t&=67108863,$=Math.imul(_e,$e),c=Math.imul(_e,Te),c=c+Math.imul(we,$e)|0,x=Math.imul(we,Te),$=$+Math.imul(he,Oe)|0,c=c+Math.imul(he,Ie)|0,c=c+Math.imul(ge,Oe)|0,x=x+Math.imul(ge,Ie)|0,$=$+Math.imul(X,xe)|0,c=c+Math.imul(X,Ce)|0,c=c+Math.imul(ne,xe)|0,x=x+Math.imul(ne,Ce)|0,$=$+Math.imul(fe,Be)|0,c=c+Math.imul(fe,je)|0,c=c+Math.imul(J,Be)|0,x=x+Math.imul(J,je)|0,$=$+Math.imul(I,Ne)|0,c=c+Math.imul(I,Ve)|0,c=c+Math.imul(te,Ne)|0,x=x+Math.imul(te,Ve)|0,$=$+Math.imul(ie,He)|0,c=c+Math.imul(ie,We)|0,c=c+Math.imul(se,He)|0,x=x+Math.imul(se,We)|0,$=$+Math.imul(U,ke)|0,c=c+Math.imul(U,Ge)|0,c=c+Math.imul(P,ke)|0,x=x+Math.imul(P,Ge)|0,$=$+Math.imul(z,Le)|0,c=c+Math.imul(z,Ke)|0,c=c+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Ke)|0;var At=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(At>>>26)|0,At&=67108863,$=Math.imul(Se,$e),c=Math.imul(Se,Te),c=c+Math.imul(Ae,$e)|0,x=Math.imul(Ae,Te),$=$+Math.imul(_e,Oe)|0,c=c+Math.imul(_e,Ie)|0,c=c+Math.imul(we,Oe)|0,x=x+Math.imul(we,Ie)|0,$=$+Math.imul(he,xe)|0,c=c+Math.imul(he,Ce)|0,c=c+Math.imul(ge,xe)|0,x=x+Math.imul(ge,Ce)|0,$=$+Math.imul(X,Be)|0,c=c+Math.imul(X,je)|0,c=c+Math.imul(ne,Be)|0,x=x+Math.imul(ne,je)|0,$=$+Math.imul(fe,Ne)|0,c=c+Math.imul(fe,Ve)|0,c=c+Math.imul(J,Ne)|0,x=x+Math.imul(J,Ve)|0,$=$+Math.imul(I,He)|0,c=c+Math.imul(I,We)|0,c=c+Math.imul(te,He)|0,x=x+Math.imul(te,We)|0,$=$+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Ge)|0,c=c+Math.imul(se,ke)|0,x=x+Math.imul(se,Ge)|0,$=$+Math.imul(U,Le)|0,c=c+Math.imul(U,Ke)|0,c=c+Math.imul(P,Le)|0,x=x+Math.imul(P,Ke)|0,$=$+Math.imul(z,De)|0,c=c+Math.imul(z,Ze)|0,c=c+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ze)|0;var Rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,$=Math.imul(ve,$e),c=Math.imul(ve,Te),c=c+Math.imul(be,$e)|0,x=Math.imul(be,Te),$=$+Math.imul(Se,Oe)|0,c=c+Math.imul(Se,Ie)|0,c=c+Math.imul(Ae,Oe)|0,x=x+Math.imul(Ae,Ie)|0,$=$+Math.imul(_e,xe)|0,c=c+Math.imul(_e,Ce)|0,c=c+Math.imul(we,xe)|0,x=x+Math.imul(we,Ce)|0,$=$+Math.imul(he,Be)|0,c=c+Math.imul(he,je)|0,c=c+Math.imul(ge,Be)|0,x=x+Math.imul(ge,je)|0,$=$+Math.imul(X,Ne)|0,c=c+Math.imul(X,Ve)|0,c=c+Math.imul(ne,Ne)|0,x=x+Math.imul(ne,Ve)|0,$=$+Math.imul(fe,He)|0,c=c+Math.imul(fe,We)|0,c=c+Math.imul(J,He)|0,x=x+Math.imul(J,We)|0,$=$+Math.imul(I,ke)|0,c=c+Math.imul(I,Ge)|0,c=c+Math.imul(te,ke)|0,x=x+Math.imul(te,Ge)|0,$=$+Math.imul(ie,Le)|0,c=c+Math.imul(ie,Ke)|0,c=c+Math.imul(se,Le)|0,x=x+Math.imul(se,Ke)|0,$=$+Math.imul(U,De)|0,c=c+Math.imul(U,Ze)|0,c=c+Math.imul(P,De)|0,x=x+Math.imul(P,Ze)|0,$=$+Math.imul(z,Fe)|0,c=c+Math.imul(z,ze)|0,c=c+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,ze)|0;var Mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,$=Math.imul(ve,Oe),c=Math.imul(ve,Ie),c=c+Math.imul(be,Oe)|0,x=Math.imul(be,Ie),$=$+Math.imul(Se,xe)|0,c=c+Math.imul(Se,Ce)|0,c=c+Math.imul(Ae,xe)|0,x=x+Math.imul(Ae,Ce)|0,$=$+Math.imul(_e,Be)|0,c=c+Math.imul(_e,je)|0,c=c+Math.imul(we,Be)|0,x=x+Math.imul(we,je)|0,$=$+Math.imul(he,Ne)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(ge,Ne)|0,x=x+Math.imul(ge,Ve)|0,$=$+Math.imul(X,He)|0,c=c+Math.imul(X,We)|0,c=c+Math.imul(ne,He)|0,x=x+Math.imul(ne,We)|0,$=$+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(J,ke)|0,x=x+Math.imul(J,Ge)|0,$=$+Math.imul(I,Le)|0,c=c+Math.imul(I,Ke)|0,c=c+Math.imul(te,Le)|0,x=x+Math.imul(te,Ke)|0,$=$+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ze)|0,c=c+Math.imul(se,De)|0,x=x+Math.imul(se,Ze)|0,$=$+Math.imul(U,Fe)|0,c=c+Math.imul(U,ze)|0,c=c+Math.imul(P,Fe)|0,x=x+Math.imul(P,ze)|0;var ht=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,$=Math.imul(ve,xe),c=Math.imul(ve,Ce),c=c+Math.imul(be,xe)|0,x=Math.imul(be,Ce),$=$+Math.imul(Se,Be)|0,c=c+Math.imul(Se,je)|0,c=c+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,je)|0,$=$+Math.imul(_e,Ne)|0,c=c+Math.imul(_e,Ve)|0,c=c+Math.imul(we,Ne)|0,x=x+Math.imul(we,Ve)|0,$=$+Math.imul(he,He)|0,c=c+Math.imul(he,We)|0,c=c+Math.imul(ge,He)|0,x=x+Math.imul(ge,We)|0,$=$+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Ge)|0,$=$+Math.imul(fe,Le)|0,c=c+Math.imul(fe,Ke)|0,c=c+Math.imul(J,Le)|0,x=x+Math.imul(J,Ke)|0,$=$+Math.imul(I,De)|0,c=c+Math.imul(I,Ze)|0,c=c+Math.imul(te,De)|0,x=x+Math.imul(te,Ze)|0,$=$+Math.imul(ie,Fe)|0,c=c+Math.imul(ie,ze)|0,c=c+Math.imul(se,Fe)|0,x=x+Math.imul(se,ze)|0;var yt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,$=Math.imul(ve,Be),c=Math.imul(ve,je),c=c+Math.imul(be,Be)|0,x=Math.imul(be,je),$=$+Math.imul(Se,Ne)|0,c=c+Math.imul(Se,Ve)|0,c=c+Math.imul(Ae,Ne)|0,x=x+Math.imul(Ae,Ve)|0,$=$+Math.imul(_e,He)|0,c=c+Math.imul(_e,We)|0,c=c+Math.imul(we,He)|0,x=x+Math.imul(we,We)|0,$=$+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(ge,ke)|0,x=x+Math.imul(ge,Ge)|0,$=$+Math.imul(X,Le)|0,c=c+Math.imul(X,Ke)|0,c=c+Math.imul(ne,Le)|0,x=x+Math.imul(ne,Ke)|0,$=$+Math.imul(fe,De)|0,c=c+Math.imul(fe,Ze)|0,c=c+Math.imul(J,De)|0,x=x+Math.imul(J,Ze)|0,$=$+Math.imul(I,Fe)|0,c=c+Math.imul(I,ze)|0,c=c+Math.imul(te,Fe)|0,x=x+Math.imul(te,ze)|0;var gt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(ve,Ne),c=Math.imul(ve,Ve),c=c+Math.imul(be,Ne)|0,x=Math.imul(be,Ve),$=$+Math.imul(Se,He)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Ae,He)|0,x=x+Math.imul(Ae,We)|0,$=$+Math.imul(_e,ke)|0,c=c+Math.imul(_e,Ge)|0,c=c+Math.imul(we,ke)|0,x=x+Math.imul(we,Ge)|0,$=$+Math.imul(he,Le)|0,c=c+Math.imul(he,Ke)|0,c=c+Math.imul(ge,Le)|0,x=x+Math.imul(ge,Ke)|0,$=$+Math.imul(X,De)|0,c=c+Math.imul(X,Ze)|0,c=c+Math.imul(ne,De)|0,x=x+Math.imul(ne,Ze)|0,$=$+Math.imul(fe,Fe)|0,c=c+Math.imul(fe,ze)|0,c=c+Math.imul(J,Fe)|0,x=x+Math.imul(J,ze)|0;var dt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,$=Math.imul(ve,He),c=Math.imul(ve,We),c=c+Math.imul(be,He)|0,x=Math.imul(be,We),$=$+Math.imul(Se,ke)|0,c=c+Math.imul(Se,Ge)|0,c=c+Math.imul(Ae,ke)|0,x=x+Math.imul(Ae,Ge)|0,$=$+Math.imul(_e,Le)|0,c=c+Math.imul(_e,Ke)|0,c=c+Math.imul(we,Le)|0,x=x+Math.imul(we,Ke)|0,$=$+Math.imul(he,De)|0,c=c+Math.imul(he,Ze)|0,c=c+Math.imul(ge,De)|0,x=x+Math.imul(ge,Ze)|0,$=$+Math.imul(X,Fe)|0,c=c+Math.imul(X,ze)|0,c=c+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,ze)|0;var _t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,$=Math.imul(ve,ke),c=Math.imul(ve,Ge),c=c+Math.imul(be,ke)|0,x=Math.imul(be,Ge),$=$+Math.imul(Se,Le)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Ae,Le)|0,x=x+Math.imul(Ae,Ke)|0,$=$+Math.imul(_e,De)|0,c=c+Math.imul(_e,Ze)|0,c=c+Math.imul(we,De)|0,x=x+Math.imul(we,Ze)|0,$=$+Math.imul(he,Fe)|0,c=c+Math.imul(he,ze)|0,c=c+Math.imul(ge,Fe)|0,x=x+Math.imul(ge,ze)|0;var ct=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ct>>>26)|0,ct&=67108863,$=Math.imul(ve,Le),c=Math.imul(ve,Ke),c=c+Math.imul(be,Le)|0,x=Math.imul(be,Ke),$=$+Math.imul(Se,De)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Ae,De)|0,x=x+Math.imul(Ae,Ze)|0,$=$+Math.imul(_e,Fe)|0,c=c+Math.imul(_e,ze)|0,c=c+Math.imul(we,Fe)|0,x=x+Math.imul(we,ze)|0;var pt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(ve,De),c=Math.imul(ve,Ze),c=c+Math.imul(be,De)|0,x=Math.imul(be,Ze),$=$+Math.imul(Se,Fe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,ze)|0;var Et=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,$=Math.imul(ve,Fe),c=Math.imul(ve,ze),c=c+Math.imul(be,Fe)|0,x=Math.imul(be,ze);var xt=(O+$|0)+((c&8191)<<13)|0;return O=(x+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,A[0]=it,A[1]=rt,A[2]=mt,A[3]=bt,A[4]=wt,A[5]=St,A[6]=$t,A[7]=At,A[8]=Rt,A[9]=Mt,A[10]=ht,A[11]=yt,A[12]=gt,A[13]=dt,A[14]=_t,A[15]=ct,A[16]=pt,A[17]=Et,A[18]=xt,O!==0&&(A[19]=O,m.length++),m};Math.imul||(F=L);function q(T,u,v){v.negative=u.negative^T.negative,v.length=T.length+u.length;for(var m=0,b=0,M=0;M>>26)|0,b+=A>>>26,A&=67108863}v.words[M]=O,m=A,A=b}return m!==0?v.words[M]=m:v.length--,v.strip()}function H(T,u,v){var m=new D;return m.mulp(T,u,v)}a.prototype.mulTo=function(u,v){var m,b=this.length+u.length;return this.length===10&&u.length===10?m=F(this,u,v):b<63?m=L(this,u,v):b<1024?m=q(this,u,v):m=H(this,u,v),m};function D(T,u){this.x=T,this.y=u}D.prototype.makeRBT=function(u){for(var v=new Array(u),m=a.prototype._countBits(u)-1,b=0;b>=1;return b},D.prototype.permute=function(u,v,m,b,M,A){for(var O=0;O>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*v;A>=26,v+=b/67108864|0,v+=M>>>26,this.words[m]=M&67108863}return v!==0&&(this.words[m]=v,this.length++),this.length=u===0?1:this.length,this},a.prototype.muln=function(u){return this.clone().imuln(u)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(u){var v=B(u);if(v.length===0)return new a(1);for(var m=this,b=0;b=0);var v=u%26,m=(u-v)/26,b=67108863>>>26-v<<26-v,M;if(v!==0){var A=0;for(M=0;M>>26-v}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var b;v?b=(v-v%26)/26:b=0;var M=u%26,A=Math.min((u-M)/26,this.length),O=67108863^67108863>>>M<A)for(this.length-=A,c=0;c=0&&(x!==0||c>=b);c--){var N=this.words[c]|0;this.words[c]=x<<26-M|N>>>M,x=N&O}return $&&x!==0&&($.words[$.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(u,v,m){return o(this.negative===0),this.iushrn(u,v,m)},a.prototype.shln=function(u){return this.clone().ishln(u)},a.prototype.ushln=function(u){return this.clone().iushln(u)},a.prototype.shrn=function(u){return this.clone().ishrn(u)},a.prototype.ushrn=function(u){return this.clone().iushrn(u)},a.prototype.testn=function(u){o(typeof u=="number"&&u>=0);var v=u%26,m=(u-v)/26,b=1<=0);var v=u%26,m=(u-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(v!==0&&m++,this.length=Math.min(m,this.length),v!==0){var b=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(u){if(o(typeof u=="number"),o(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-($/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(O===0)return this.strip();for(o(O===-1),O=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(u,v){var m=this.length-u.length,b=this.clone(),M=u,A=M.words[M.length-1]|0,O=this._countBits(A);m=26-O,m!==0&&(M=M.ushln(m),b.iushln(m),A=M.words[M.length-1]|0);var $=b.length-M.length,c;if(v!=="mod"){c=new a(null),c.length=$+1,c.words=new Array(c.length);for(var x=0;x=0;z--){var oe=(b.words[M.length+z]|0)*67108864+(b.words[M.length+z-1]|0);for(oe=Math.min(oe/A|0,67108863),b._ishlnsubmul(M,oe,z);b.negative!==0;)oe--,b.negative=0,b._ishlnsubmul(M,1,z),b.isZero()||(b.negative^=1);c&&(c.words[z]=oe)}return c&&c.strip(),b.strip(),v!=="div"&&m!==0&&b.iushrn(m),{div:c||null,mod:b}},a.prototype.divmod=function(u,v,m){if(o(!u.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,M,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,v),v!=="mod"&&(b=A.div.neg()),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(u)),{div:b,mod:M}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),v),v!=="mod"&&(b=A.div.neg()),{div:b,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),v),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(u)),{div:A.div,mod:M}):u.length>this.length||this.cmp(u)<0?{div:new a(0),mod:this}:u.length===1?v==="div"?{div:this.divn(u.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new a(this.modn(u.words[0]))}:this._wordDiv(u,v)},a.prototype.div=function(u){return this.divmod(u,"div",!1).div},a.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},a.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},a.prototype.divRound=function(u){var v=this.divmod(u);if(v.mod.isZero())return v.div;var m=v.div.negative!==0?v.mod.isub(u):v.mod,b=u.ushrn(1),M=u.andln(1),A=m.cmp(b);return A<0||M===1&&A===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modn=function(u){o(u<=67108863);for(var v=(1<<26)%u,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%u;return m},a.prototype.idivn=function(u){o(u<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/u|0,v=b%u}return this.strip()},a.prototype.divn=function(u){return this.clone().idivn(u)},a.prototype.egcd=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=new a(0),O=new a(1),$=0;v.isEven()&&m.isEven();)v.iushrn(1),m.iushrn(1),++$;for(var c=m.clone(),x=v.clone();!v.isZero();){for(var N=0,z=1;!(v.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(v.iushrn(N);N-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(c),M.isub(x)),b.iushrn(1),M.iushrn(1);for(var oe=0,le=1;!(m.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(m.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(c),O.isub(x)),A.iushrn(1),O.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(A),M.isub(O)):(m.isub(v),A.isub(b),O.isub(M))}return{a:A,b:O,gcd:m.iushln($)}},a.prototype._invmp=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=m.clone();v.cmpn(1)>0&&m.cmpn(1)>0;){for(var O=0,$=1;!(v.words[0]&$)&&O<26;++O,$<<=1);if(O>0)for(v.iushrn(O);O-- >0;)b.isOdd()&&b.iadd(A),b.iushrn(1);for(var c=0,x=1;!(m.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(m.iushrn(c);c-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(M)):(m.isub(v),M.isub(b))}var N;return v.cmpn(1)===0?N=b:N=M,N.cmpn(0)<0&&N.iadd(u),N},a.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var v=this.clone(),m=u.clone();v.negative=0,m.negative=0;for(var b=0;v.isEven()&&m.isEven();b++)v.iushrn(1),m.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=v.cmp(m);if(M<0){var A=v;v=m,m=A}else if(M===0||m.cmpn(1)===0)break;v.isub(m)}while(!0);return m.iushln(b)},a.prototype.invm=function(u){return this.egcd(u).a.umod(u)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(u){return this.words[0]&u},a.prototype.bincn=function(u){o(typeof u=="number");var v=u%26,m=(u-v)/26,b=1<>>26,O&=67108863,this.words[A]=O}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(u){var v=u<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var m;if(this.length>1)m=1;else{v&&(u=-u),o(u<=67108863,"Number is too big");var b=this.words[0]|0;m=b===u?0:bu.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,M=u.words[m]|0;if(b!==M){bM&&(v=1);break}}return v},a.prototype.gtn=function(u){return this.cmpn(u)===1},a.prototype.gt=function(u){return this.cmp(u)===1},a.prototype.gten=function(u){return this.cmpn(u)>=0},a.prototype.gte=function(u){return this.cmp(u)>=0},a.prototype.ltn=function(u){return this.cmpn(u)===-1},a.prototype.lt=function(u){return this.cmp(u)===-1},a.prototype.lten=function(u){return this.cmpn(u)<=0},a.prototype.lte=function(u){return this.cmp(u)<=0},a.prototype.eqn=function(u){return this.cmpn(u)===0},a.prototype.eq=function(u){return this.cmp(u)===0},a.red=function(u){return new re(u)},a.prototype.toRed=function(u){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(u){return this.red=u,this},a.prototype.forceRed=function(u){return o(!this.red,"Already a number in reduction context"),this._forceRed(u)},a.prototype.redAdd=function(u){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},a.prototype.redIAdd=function(u){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},a.prototype.redSub=function(u){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},a.prototype.redISub=function(u){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},a.prototype.redShl=function(u){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},a.prototype.redMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},a.prototype.redIMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(u){return o(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var j={k256:null,p224:null,p192:null,p25519:null};function V(T,u){this.name=T,this.p=new a(u,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var u=new a(null);return u.words=new Array(Math.ceil(this.n/13)),u},V.prototype.ireduce=function(u){var v=u,m;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),m=v.bitLength();while(m>this.n);var b=m0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},V.prototype.split=function(u,v){u.iushrn(this.n,0,v)},V.prototype.imulK=function(u){return u.imul(this.k)};function Q(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Q,V),Q.prototype.split=function(u,v){for(var m=4194303,b=Math.min(u.length,9),M=0;M>>22,A=O}A>>>=22,u.words[M-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},Q.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var v=0,m=0;m>>=26,u.words[m]=M,v=b}return v!==0&&(u.words[u.length++]=v),u},a._prime=function(u){if(j[u])return j[u];var v;if(u==="k256")v=new Q;else if(u==="p224")v=new ae;else if(u==="p192")v=new ce;else if(u==="p25519")v=new ue;else throw new Error("Unknown prime "+u);return j[u]=v,v};function re(T){if(typeof T=="string"){var u=a._prime(T);this.m=u.p,this.prime=u}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}re.prototype._verify1=function(u){o(u.negative===0,"red works only with positives"),o(u.red,"red works only with red numbers")},re.prototype._verify2=function(u,v){o((u.negative|v.negative)===0,"red works only with positives"),o(u.red&&u.red===v.red,"red works only with red numbers")},re.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},re.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},re.prototype.add=function(u,v){this._verify2(u,v);var m=u.add(v);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},re.prototype.iadd=function(u,v){this._verify2(u,v);var m=u.iadd(v);return m.cmp(this.m)>=0&&m.isub(this.m),m},re.prototype.sub=function(u,v){this._verify2(u,v);var m=u.sub(v);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},re.prototype.isub=function(u,v){this._verify2(u,v);var m=u.isub(v);return m.cmpn(0)<0&&m.iadd(this.m),m},re.prototype.shl=function(u,v){return this._verify1(u),this.imod(u.ushln(v))},re.prototype.imul=function(u,v){return this._verify2(u,v),this.imod(u.imul(v))},re.prototype.mul=function(u,v){return this._verify2(u,v),this.imod(u.mul(v))},re.prototype.isqr=function(u){return this.imul(u,u.clone())},re.prototype.sqr=function(u){return this.mul(u,u)},re.prototype.sqrt=function(u){if(u.isZero())return u.clone();var v=this.m.andln(3);if(o(v%2===1),v===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(u,m)}for(var b=this.m.subn(1),M=0;!b.isZero()&&b.andln(1)===0;)M++,b.iushrn(1);o(!b.isZero());var A=new a(1).toRed(this),O=A.redNeg(),$=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);this.pow(c,$).cmp(O)!==0;)c.redIAdd(O);for(var x=this.pow(c,b),N=this.pow(u,b.addn(1).iushrn(1)),z=this.pow(u,b),oe=M;z.cmp(A)!==0;){for(var le=z,U=0;le.cmp(A)!==0;U++)le=le.redSqr();o(U=0;M--){for(var x=v.words[M],N=c-1;N>=0;N--){var z=x>>N&1;if(A!==b[0]&&(A=this.sqr(A)),z===0&&O===0){$=0;continue}O<<=1,O|=z,$++,!($!==m&&(M!==0||N!==0))&&(A=this.mul(A,b[O]),$=0,O=0)}c=26}return A},re.prototype.convertTo=function(u){var v=u.umod(this.m);return v===u?v.clone():v},re.prototype.convertFrom=function(u){var v=u.clone();return v.red=null,v},a.mont=function(u){return new pe(u)};function pe(T){re.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(pe,re),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var v=this.imod(u.mul(this.rinv));return v.red=null,v},pe.prototype.imul=function(u,v){if(u.isZero()||v.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,v){if(u.isZero()||v.isZero())return new a(0)._forceRed(this);var m=u.mul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var v=this.imod(u._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(e,commonjsGlobal)})(bn$3);var bnExports$3=bn$3.exports,utils$k={};(function(e){var t=e;function n(a,d){if(Array.isArray(a))return a.slice();if(!a)return[];var y=[];if(typeof a!="string"){for(var w=0;w>8,E=_&255;S?y.push(S,E):y.push(E)}return y}t.toArray=n;function o(a){return a.length===1?"0"+a:a}t.zero2=o;function l(a){for(var d="",y=0;y(F>>1)-1?H=(F>>1)-D:H=D,q.isubn(H)):H=0,B[L]=H,q.iushrn(1)}return B}t.getNAF=a;function d(S,E){var C=[[],[]];S=S.clone(),E=E.clone();for(var B=0,L=0,F;S.cmpn(-B)>0||E.cmpn(-L)>0;){var q=S.andln(3)+B&3,H=E.andln(3)+L&3;q===3&&(q=-1),H===3&&(H=-1);var D;q&1?(F=S.andln(7)+B&7,(F===3||F===5)&&H===2?D=-q:D=q):D=0,C[0].push(D);var j;H&1?(F=E.andln(7)+L&7,(F===3||F===5)&&q===2?j=-H:j=H):j=0,C[1].push(j),2*B===D+1&&(B=1-B),2*L===j+1&&(L=1-L),S.iushrn(1),E.iushrn(1)}return C}t.getJSF=d;function y(S,E,C){var B="_"+E;S.prototype[E]=function(){return this[B]!==void 0?this[B]:this[B]=C.call(this)}}t.cachedProperty=y;function w(S){return typeof S=="string"?t.toArray(S,"hex"):S}t.parseBytes=w;function _(S){return new n(S,"hex","le")}t.intFromLE=_})(utils$l);var curve={},BN$9=bnExports$3,utils$j=utils$l,getNAF=utils$j.getNAF,getJSF=utils$j.getJSF,assert$d=utils$j.assert;function BaseCurve(e,t){this.type=e,this.p=new BN$9(t.p,16),this.red=t.prime?BN$9.red(t.prime):BN$9.mont(this.p),this.zero=new BN$9(0).toRed(this.red),this.one=new BN$9(1).toRed(this.red),this.two=new BN$9(2).toRed(this.red),this.n=t.n&&new BN$9(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$1=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function(t,n){assert$d(t.precomputed);var o=t._getDoubles(),l=getNAF(n,1,this._bitLength),a=(1<=y;_--)w=(w<<1)+l[_];d.push(w)}for(var S=this.jpoint(null,null,null),E=this.jpoint(null,null,null),C=a;C>0;C--){for(y=0;y=0;w--){for(var _=0;w>=0&&d[w]===0;w--)_++;if(w>=0&&_++,y=y.dblp(_),w<0)break;var S=d[w];assert$d(S!==0),t.type==="affine"?S>0?y=y.mixedAdd(a[S-1>>1]):y=y.mixedAdd(a[-S-1>>1].neg()):S>0?y=y.add(a[S-1>>1]):y=y.add(a[-S-1>>1].neg())}return t.type==="affine"?y.toP():y};BaseCurve.prototype._wnafMulAdd=function(t,n,o,l,a){var d=this._wnafT1,y=this._wnafT2,w=this._wnafT3,_=0,S,E,C;for(S=0;S=1;S-=2){var L=S-1,F=S;if(d[L]!==1||d[F]!==1){w[L]=getNAF(o[L],d[L],this._bitLength),w[F]=getNAF(o[F],d[F],this._bitLength),_=Math.max(w[L].length,_),_=Math.max(w[F].length,_);continue}var q=[n[L],null,null,n[F]];n[L].y.cmp(n[F].y)===0?(q[1]=n[L].add(n[F]),q[2]=n[L].toJ().mixedAdd(n[F].neg())):n[L].y.cmp(n[F].y.redNeg())===0?(q[1]=n[L].toJ().mixedAdd(n[F]),q[2]=n[L].add(n[F].neg())):(q[1]=n[L].toJ().mixedAdd(n[F]),q[2]=n[L].toJ().mixedAdd(n[F].neg()));var H=[-3,-1,-5,-7,0,7,5,1,3],D=getJSF(o[L],o[F]);for(_=Math.max(D[0].length,_),w[L]=new Array(_),w[F]=new Array(_),E=0;E<_;E++){var j=D[0][E]|0,V=D[1][E]|0;w[L][E]=H[(j+1)*3+(V+1)],w[F][E]=0,y[L]=q}}var Q=this.jpoint(null,null,null),ae=this._wnafT4;for(S=_;S>=0;S--){for(var ce=0;S>=0;){var ue=!0;for(E=0;E=0&&ce++,Q=Q.dblp(ce),S<0)break;for(E=0;E0?C=y[E][re-1>>1]:re<0&&(C=y[E][-re-1>>1].neg()),C.type==="affine"?Q=Q.mixedAdd(C):Q=Q.add(C))}}for(S=0;S=Math.ceil((t.bitLength()+1)/n.step):!1};BasePoint.prototype._getDoubles=function(t,n){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var o=[this],l=this,a=0;a=0&&(B=_,L=S),E.negative&&(E=E.neg(),C=C.neg()),B.negative&&(B=B.neg(),L=L.neg()),[{a:E,b:C},{a:B,b:L}]};ShortCurve.prototype._endoSplit=function(t){var n=this.endo.basis,o=n[0],l=n[1],a=l.b.mul(t).divRound(this.n),d=o.b.neg().mul(t).divRound(this.n),y=a.mul(o.a),w=d.mul(l.a),_=a.mul(o.b),S=d.mul(l.b),E=t.sub(y).sub(w),C=_.add(S).neg();return{k1:E,k2:C}};ShortCurve.prototype.pointFromX=function(t,n){t=new BN$8(t,16),t.red||(t=t.toRed(this.red));var o=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),l=o.redSqrt();if(l.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");var a=l.fromRed().isOdd();return(n&&!a||!n&&a)&&(l=l.redNeg()),this.point(t,l)};ShortCurve.prototype.validate=function(t){if(t.inf)return!0;var n=t.x,o=t.y,l=this.a.redMul(n),a=n.redSqr().redMul(n).redIAdd(l).redIAdd(this.b);return o.redSqr().redISub(a).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function(t,n,o){for(var l=this._endoWnafT1,a=this._endoWnafT2,d=0;d":""};Point$2.prototype.isInfinity=function(){return this.inf};Point$2.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var n=this.y.redSub(t.y);n.cmpn(0)!==0&&(n=n.redMul(this.x.redSub(t.x).redInvm()));var o=n.redSqr().redISub(this.x).redISub(t.x),l=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,l)};Point$2.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var n=this.curve.a,o=this.x.redSqr(),l=t.redInvm(),a=o.redAdd(o).redIAdd(o).redIAdd(n).redMul(l),d=a.redSqr().redISub(this.x.redAdd(this.x)),y=a.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,y)};Point$2.prototype.getX=function(){return this.x.fromRed()};Point$2.prototype.getY=function(){return this.y.fromRed()};Point$2.prototype.mul=function(t){return t=new BN$8(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};Point$2.prototype.mulAdd=function(t,n,o){var l=[this,n],a=[t,o];return this.curve.endo?this.curve._endoWnafMulAdd(l,a):this.curve._wnafMulAdd(1,l,a,2)};Point$2.prototype.jmulAdd=function(t,n,o){var l=[this,n],a=[t,o];return this.curve.endo?this.curve._endoWnafMulAdd(l,a,!0):this.curve._wnafMulAdd(1,l,a,2,!0)};Point$2.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};Point$2.prototype.neg=function(t){if(this.inf)return this;var n=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var o=this.precomputed,l=function(a){return a.neg()};n.precomputed={naf:o.naf&&{wnd:o.naf.wnd,points:o.naf.points.map(l)},doubles:o.doubles&&{step:o.doubles.step,points:o.doubles.points.map(l)}}}return n};Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function JPoint(e,t,n,o){Base$2.BasePoint.call(this,e,"jacobian"),t===null&&n===null&&o===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$8(0)):(this.x=new BN$8(t,16),this.y=new BN$8(n,16),this.z=new BN$8(o,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$4(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function(t,n,o){return new JPoint(this,t,n,o)};JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),n=t.redSqr(),o=this.x.redMul(n),l=this.y.redMul(n).redMul(t);return this.curve.point(o,l)};JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var n=t.z.redSqr(),o=this.z.redSqr(),l=this.x.redMul(n),a=t.x.redMul(o),d=this.y.redMul(n.redMul(t.z)),y=t.y.redMul(o.redMul(this.z)),w=l.redSub(a),_=d.redSub(y);if(w.cmpn(0)===0)return _.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var S=w.redSqr(),E=S.redMul(w),C=l.redMul(S),B=_.redSqr().redIAdd(E).redISub(C).redISub(C),L=_.redMul(C.redISub(B)).redISub(d.redMul(E)),F=this.z.redMul(t.z).redMul(w);return this.curve.jpoint(B,L,F)};JPoint.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var n=this.z.redSqr(),o=this.x,l=t.x.redMul(n),a=this.y,d=t.y.redMul(n).redMul(this.z),y=o.redSub(l),w=a.redSub(d);if(y.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var _=y.redSqr(),S=_.redMul(y),E=o.redMul(_),C=w.redSqr().redIAdd(S).redISub(E).redISub(E),B=w.redMul(E.redISub(C)).redISub(a.redMul(S)),L=this.z.redMul(y);return this.curve.jpoint(C,B,L)};JPoint.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var n;if(this.curve.zeroA||this.curve.threeA){var o=this;for(n=0;n=0)return!1;if(o.redIAdd(a),this.x.cmp(o)===0)return!0}};JPoint.prototype.inspect=function(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$7=bnExports$3,inherits$3=inherits_browserExports,Base$1=base$1,utils$h=utils$l;function MontCurve(e){Base$1.call(this,"mont",e),this.a=new BN$7(e.a,16).toRed(this.red),this.b=new BN$7(e.b,16).toRed(this.red),this.i4=new BN$7(4).toRed(this.red).redInvm(),this.two=new BN$7(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$3(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(t){var n=t.normalize().x,o=n.redSqr(),l=o.redMul(n).redAdd(o.redMul(this.a)).redAdd(n),a=l.redSqrt();return a.redSqr().cmp(l)===0};function Point$1(e,t,n){Base$1.BasePoint.call(this,e,"projective"),t===null&&n===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$7(t,16),this.z=new BN$7(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$3(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function(t,n){return this.point(utils$h.toArray(t,n),1)};MontCurve.prototype.point=function(t,n){return new Point$1(this,t,n)};MontCurve.prototype.pointFromJSON=function(t){return Point$1.fromJSON(this,t)};Point$1.prototype.precompute=function(){};Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function(t,n){return new Point$1(t,n[0],n[1]||t.one)};Point$1.prototype.inspect=function(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function(){var t=this.x.redAdd(this.z),n=t.redSqr(),o=this.x.redSub(this.z),l=o.redSqr(),a=n.redSub(l),d=n.redMul(l),y=a.redMul(l.redAdd(this.curve.a24.redMul(a)));return this.curve.point(d,y)};Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function(t,n){var o=this.x.redAdd(this.z),l=this.x.redSub(this.z),a=t.x.redAdd(t.z),d=t.x.redSub(t.z),y=d.redMul(o),w=a.redMul(l),_=n.z.redMul(y.redAdd(w).redSqr()),S=n.x.redMul(y.redISub(w).redSqr());return this.curve.point(_,S)};Point$1.prototype.mul=function(t){for(var n=t.clone(),o=this,l=this.curve.point(null,null),a=this,d=[];n.cmpn(0)!==0;n.iushrn(1))d.push(n.andln(1));for(var y=d.length-1;y>=0;y--)d[y]===0?(o=o.diffAdd(l,a),l=l.dbl()):(l=o.diffAdd(l,a),o=o.dbl());return l};Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function(t){return this.getX().cmp(t.getX())===0};Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$g=utils$l,BN$6=bnExports$3,inherits$2=inherits_browserExports,Base=base$1,assert$b=utils$g.assert;function EdwardsCurve(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",e),this.a=new BN$6(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$6(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$6(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$b(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}inherits$2(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)};EdwardsCurve.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)};EdwardsCurve.prototype.jpoint=function(t,n,o,l){return this.point(t,n,o,l)};EdwardsCurve.prototype.pointFromX=function(t,n){t=new BN$6(t,16),t.red||(t=t.toRed(this.red));var o=t.redSqr(),l=this.c2.redSub(this.a.redMul(o)),a=this.one.redSub(this.c2.redMul(this.d).redMul(o)),d=l.redMul(a.redInvm()),y=d.redSqrt();if(y.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var w=y.fromRed().isOdd();return(n&&!w||!n&&w)&&(y=y.redNeg()),this.point(t,y)};EdwardsCurve.prototype.pointFromY=function(t,n){t=new BN$6(t,16),t.red||(t=t.toRed(this.red));var o=t.redSqr(),l=o.redSub(this.c2),a=o.redMul(this.d).redMul(this.c2).redSub(this.a),d=l.redMul(a.redInvm());if(d.cmp(this.zero)===0){if(n)throw new Error("invalid point");return this.point(this.zero,t)}var y=d.redSqrt();if(y.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");return y.fromRed().isOdd()!==n&&(y=y.redNeg()),this.point(y,t)};EdwardsCurve.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var n=t.x.redSqr(),o=t.y.redSqr(),l=n.redMul(this.a).redAdd(o),a=this.c2.redMul(this.one.redAdd(this.d.redMul(n).redMul(o)));return l.cmp(a)===0};function Point(e,t,n,o,l){Base.BasePoint.call(this,e,"projective"),t===null&&n===null&&o===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$6(t,16),this.y=new BN$6(n,16),this.z=o?new BN$6(o,16):this.curve.one,this.t=l&&new BN$6(l,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$2(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function(t){return Point.fromJSON(this,t)};EdwardsCurve.prototype.point=function(t,n,o,l){return new Point(this,t,n,o,l)};Point.fromJSON=function(t,n){return new Point(t,n[0],n[1],n[2])};Point.prototype.inspect=function(){return this.isInfinity()?"":""};Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function(){var t=this.x.redSqr(),n=this.y.redSqr(),o=this.z.redSqr();o=o.redIAdd(o);var l=this.curve._mulA(t),a=this.x.redAdd(this.y).redSqr().redISub(t).redISub(n),d=l.redAdd(n),y=d.redSub(o),w=l.redSub(n),_=a.redMul(y),S=d.redMul(w),E=a.redMul(w),C=y.redMul(d);return this.curve.point(_,S,C,E)};Point.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr(),l,a,d,y,w,_;if(this.curve.twisted){y=this.curve._mulA(n);var S=y.redAdd(o);this.zOne?(l=t.redSub(n).redSub(o).redMul(S.redSub(this.curve.two)),a=S.redMul(y.redSub(o)),d=S.redSqr().redSub(S).redSub(S)):(w=this.z.redSqr(),_=S.redSub(w).redISub(w),l=t.redSub(n).redISub(o).redMul(_),a=S.redMul(y.redSub(o)),d=S.redMul(_))}else y=n.redAdd(o),w=this.curve._mulC(this.z).redSqr(),_=y.redSub(w).redSub(w),l=this.curve._mulC(t.redISub(y)).redMul(_),a=this.curve._mulC(y).redMul(n.redISub(o)),d=y.redMul(_);return this.curve.point(l,a,d)};Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function(t){var n=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),o=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),l=this.t.redMul(this.curve.dd).redMul(t.t),a=this.z.redMul(t.z.redAdd(t.z)),d=o.redSub(n),y=a.redSub(l),w=a.redAdd(l),_=o.redAdd(n),S=d.redMul(y),E=w.redMul(_),C=d.redMul(_),B=y.redMul(w);return this.curve.point(S,E,B,C)};Point.prototype._projAdd=function(t){var n=this.z.redMul(t.z),o=n.redSqr(),l=this.x.redMul(t.x),a=this.y.redMul(t.y),d=this.curve.d.redMul(l).redMul(a),y=o.redSub(d),w=o.redAdd(d),_=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(l).redISub(a),S=n.redMul(y).redMul(_),E,C;return this.curve.twisted?(E=n.redMul(w).redMul(a.redSub(this.curve._mulA(l))),C=y.redMul(w)):(E=n.redMul(w).redMul(a.redSub(l)),C=this.curve._mulC(y).redMul(w)),this.curve.point(S,E,C)};Point.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)};Point.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)};Point.prototype.mulAdd=function(t,n,o){return this.curve._wnafMulAdd(1,[this,n],[t,o],2,!1)};Point.prototype.jmulAdd=function(t,n,o){return this.curve._wnafMulAdd(1,[this,n],[t,o],2,!0)};Point.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0};Point.prototype.eqXToP=function(t){var n=t.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(n)===0)return!0;for(var o=t.clone(),l=this.curve.redN.redMul(this.z);;){if(o.iadd(this.curve.n),o.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(l),this.x.cmp(n)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function(e){var t=e;t.base=base$1,t.short=short,t.mont=mont,t.edwards=edwards})(curve);var curves$1={},hash$2={},utils$f={},assert$a=minimalisticAssert,inherits$1=inherits_browserExports;utils$f.inherits=inherits$1;function isSurrogatePair(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function toArray(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),l=0;l>6|192,n[o++]=a&63|128):isSurrogatePair(e,l)?(a=65536+((a&1023)<<10)+(e.charCodeAt(++l)&1023),n[o++]=a>>18|240,n[o++]=a>>12&63|128,n[o++]=a>>6&63|128,n[o++]=a&63|128):(n[o++]=a>>12|224,n[o++]=a>>6&63|128,n[o++]=a&63|128)}else for(l=0;l>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}utils$f.htonl=htonl;function toHex32(e,t){for(var n="",o=0;o>>0}return a}utils$f.join32=join32;function split32(e,t){for(var n=new Array(e.length*4),o=0,l=0;o>>24,n[l+1]=a>>>16&255,n[l+2]=a>>>8&255,n[l+3]=a&255):(n[l+3]=a>>>24,n[l+2]=a>>>16&255,n[l+1]=a>>>8&255,n[l]=a&255)}return n}utils$f.split32=split32;function rotr32$1(e,t){return e>>>t|e<<32-t}utils$f.rotr32=rotr32$1;function rotl32$2(e,t){return e<>>32-t}utils$f.rotl32=rotl32$2;function sum32$3(e,t){return e+t>>>0}utils$f.sum32=sum32$3;function sum32_3$1(e,t,n){return e+t+n>>>0}utils$f.sum32_3=sum32_3$1;function sum32_4$2(e,t,n,o){return e+t+n+o>>>0}utils$f.sum32_4=sum32_4$2;function sum32_5$2(e,t,n,o,l){return e+t+n+o+l>>>0}utils$f.sum32_5=sum32_5$2;function sum64$1(e,t,n,o){var l=e[t],a=e[t+1],d=o+a>>>0,y=(d>>0,e[t+1]=d}utils$f.sum64=sum64$1;function sum64_hi$1(e,t,n,o){var l=t+o>>>0,a=(l>>0}utils$f.sum64_hi=sum64_hi$1;function sum64_lo$1(e,t,n,o){var l=t+o;return l>>>0}utils$f.sum64_lo=sum64_lo$1;function sum64_4_hi$1(e,t,n,o,l,a,d,y){var w=0,_=t;_=_+o>>>0,w+=_>>0,w+=_>>0,w+=_>>0}utils$f.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(e,t,n,o,l,a,d,y){var w=t+o+a+y;return w>>>0}utils$f.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(e,t,n,o,l,a,d,y,w,_){var S=0,E=t;E=E+o>>>0,S+=E>>0,S+=E>>0,S+=E>>0,S+=E<_?1:0;var C=e+n+l+d+w+S;return C>>>0}utils$f.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(e,t,n,o,l,a,d,y,w,_){var S=t+o+a+y+_;return S>>>0}utils$f.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(e,t,n){var o=t<<32-n|e>>>n;return o>>>0}utils$f.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(e,t,n){var o=e<<32-n|t>>>n;return o>>>0}utils$f.rotr64_lo=rotr64_lo$1;function shr64_hi$1(e,t,n){return e>>>n}utils$f.shr64_hi=shr64_hi$1;function shr64_lo$1(e,t,n){var o=e<<32-n|t>>>n;return o>>>0}utils$f.shr64_lo=shr64_lo$1;var common$5={},utils$e=utils$f,assert$9=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$5.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(t,n){if(t=utils$e.toArray(t,n),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var o=t.length%this._delta8;this.pending=t.slice(t.length-o,t.length),this.pending.length===0&&(this.pending=null),t=utils$e.join32(t,0,t.length-o,this.endian);for(var l=0;l>>24&255,l[a++]=t>>>16&255,l[a++]=t>>>8&255,l[a++]=t&255}else for(l[a++]=t&255,l[a++]=t>>>8&255,l[a++]=t>>>16&255,l[a++]=t>>>24&255,l[a++]=0,l[a++]=0,l[a++]=0,l[a++]=0,d=8;d>>3}common$4.g0_256=g0_256$1;function g1_256$1(e){return rotr32(e,17)^rotr32(e,19)^e>>>10}common$4.g1_256=g1_256$1;var utils$c=utils$f,common$3=common$5,shaCommon$1=common$4,rotl32$1=utils$c.rotl32,sum32$2=utils$c.sum32,sum32_5$1=utils$c.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$3.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$c.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512;SHA1.outSize=160;SHA1.hmacStrength=80;SHA1.padLength=64;SHA1.prototype._update=function(t,n){for(var o=this.W,l=0;l<16;l++)o[l]=t[n+l];for(;lthis.blockSize&&(t=new this.Hash().update(t).digest()),assert$6(t.length<=this.blockSize);for(var n=t.length;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,o)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(t,n,o){var l=t.concat(n).concat(o);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(o||[])),this._reseed=1};HmacDRBG.prototype.generate=function(t,n,o,l){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof n!="string"&&(l=o,o=n,n=null),o&&(o=utils$5.toArray(o,l||"hex"),this._update(o));for(var a=[];a.length"};var BN$4=bnExports$3,utils$3=utils$l,assert$3=utils$3.assert;function Signature$2(e,t){if(e instanceof Signature$2)return e;this._importDER(e,t)||(assert$3(e.r&&e.s,"Signature without r or s"),this.r=new BN$4(e.r,16),this.s=new BN$4(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var signature$1=Signature$2;function Position(){this.place=0}function getLength(e,t){var n=e[t.place++];if(!(n&128))return n;var o=n&15;if(o===0||o>4||e[t.place]===0)return!1;for(var l=0,a=0,d=t.place;a>>=0;return l<=127?!1:(t.place=d,l)}function rmPadding(e){for(var t=0,n=e.length-1;!e[t]&&!(e[t+1]&128)&&t>>3);for(e.push(n|128);--n;)e.push(t>>>(n<<3)&255);e.push(t)}Signature$2.prototype.toDER=function(t){var n=this.r.toArray(),o=this.s.toArray();for(n[0]&128&&(n=[0].concat(n)),o[0]&128&&(o=[0].concat(o)),n=rmPadding(n),o=rmPadding(o);!o[0]&&!(o[1]&128);)o=o.slice(1);var l=[2];constructLength(l,n.length),l=l.concat(n),l.push(2),constructLength(l,o.length);var a=l.concat(o),d=[48];return constructLength(d,a.length),d=d.concat(a),utils$3.encode(d,t)};var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var e=bnExports$3,t=hmacDrbg,n=utils$l,o=curves$1,l=requireBrorand(),a=n.assert,d=key$1,y=signature$1;function w(_){if(!(this instanceof w))return new w(_);typeof _=="string"&&(a(Object.prototype.hasOwnProperty.call(o,_),"Unknown curve "+_),_=o[_]),_ instanceof o.PresetCurve&&(_={curve:_}),this.curve=_.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=_.curve.g,this.g.precompute(_.curve.n.bitLength()+1),this.hash=_.hash||_.curve.hash}return ec=w,w.prototype.keyPair=function(S){return new d(this,S)},w.prototype.keyFromPrivate=function(S,E){return d.fromPrivate(this,S,E)},w.prototype.keyFromPublic=function(S,E){return d.fromPublic(this,S,E)},w.prototype.genKeyPair=function(S){S||(S={});for(var E=new t({hash:this.hash,pers:S.pers,persEnc:S.persEnc||"utf8",entropy:S.entropy||l(this.hash.hmacStrength),entropyEnc:S.entropy&&S.entropyEnc||"utf8",nonce:this.n.toArray()}),C=this.n.byteLength(),B=this.n.sub(new e(2));;){var L=new e(E.generate(C));if(!(L.cmp(B)>0))return L.iaddn(1),this.keyFromPrivate(L)}},w.prototype._truncateToN=function(S,E,C){var B;if(e.isBN(S)||typeof S=="number")S=new e(S,16),B=S.byteLength();else if(typeof S=="object")B=S.length,S=new e(S,16);else{var L=S.toString();B=L.length+1>>>1,S=new e(L,16)}typeof C!="number"&&(C=B*8);var F=C-this.n.bitLength();return F>0&&(S=S.ushrn(F)),!E&&S.cmp(this.n)>=0?S.sub(this.n):S},w.prototype.sign=function(S,E,C,B){if(typeof C=="object"&&(B=C,C=null),B||(B={}),typeof S!="string"&&typeof S!="number"&&!e.isBN(S)){a(typeof S=="object"&&S&&typeof S.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),a(S.length>>>0===S.length);for(var L=0;L=0)){var ae=this.g.mul(Q);if(!ae.isInfinity()){var ce=ae.getX(),ue=ce.umod(this.n);if(ue.cmpn(0)!==0){var re=Q.invm(this.n).mul(ue.mul(E.getPrivate()).iadd(S));if(re=re.umod(this.n),re.cmpn(0)!==0){var pe=(ae.getY().isOdd()?1:0)|(ce.cmp(ue)!==0?2:0);return B.canonical&&re.cmp(this.nh)>0&&(re=this.n.sub(re),pe^=1),new y({r:ue,s:re,recoveryParam:pe})}}}}}},w.prototype.verify=function(S,E,C,B,L){L||(L={}),S=this._truncateToN(S,!1,L.msgBitLength),C=this.keyFromPublic(C,B),E=new y(E,"hex");var F=E.r,q=E.s;if(F.cmpn(1)<0||F.cmp(this.n)>=0||q.cmpn(1)<0||q.cmp(this.n)>=0)return!1;var H=q.invm(this.n),D=H.mul(S).umod(this.n),j=H.mul(F).umod(this.n),V;return this.curve._maxwellTrick?(V=this.g.jmulAdd(D,C.getPublic(),j),V.isInfinity()?!1:V.eqXToP(F)):(V=this.g.mulAdd(D,C.getPublic(),j),V.isInfinity()?!1:V.getX().umod(this.n).cmp(F)===0)},w.prototype.recoverPubKey=function(_,S,E,C){a((3&E)===E,"The recovery param is more than two bits"),S=new y(S,C);var B=this.n,L=new e(_),F=S.r,q=S.s,H=E&1,D=E>>1;if(F.cmp(this.curve.p.umod(this.curve.n))>=0&&D)throw new Error("Unable to find sencond key candinate");D?F=this.curve.pointFromX(F.add(this.curve.n),H):F=this.curve.pointFromX(F,H);var j=S.r.invm(B),V=B.sub(L).mul(j).umod(B),Q=q.mul(j).umod(B);return this.g.mulAdd(V,F,Q)},w.prototype.getKeyRecoveryParam=function(_,S,E,C){if(S=new y(S,C),S.recoveryParam!==null)return S.recoveryParam;for(var B=0;B<4;B++){var L;try{L=this.recoverPubKey(_,S,B)}catch{continue}if(L.eq(E))return B}throw new Error("Unable to find valid recovery factor")},ec}var utils$2=utils$l,assert$2=utils$2.assert,parseBytes$2=utils$2.parseBytes,cachedProperty$1=utils$2.cachedProperty;function KeyPair$1(e,t){this.eddsa=e,this._secret=parseBytes$2(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=parseBytes$2(t.pub)}KeyPair$1.fromPublic=function(t,n){return n instanceof KeyPair$1?n:new KeyPair$1(t,{pub:n})};KeyPair$1.fromSecret=function(t,n){return n instanceof KeyPair$1?n:new KeyPair$1(t,{secret:n})};KeyPair$1.prototype.secret=function(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function(){var t=this.eddsa,n=this.hash(),o=t.encodingLength-1,l=n.slice(0,t.encodingLength);return l[0]&=248,l[o]&=127,l[o]|=64,l});cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function(t){return assert$2(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)};KeyPair$1.prototype.verify=function(t,n){return this.eddsa.verify(t,n,this)};KeyPair$1.prototype.getSecret=function(t){return assert$2(this._secret,"KeyPair is public only"),utils$2.encode(this.secret(),t)};KeyPair$1.prototype.getPublic=function(t){return utils$2.encode(this.pubBytes(),t)};var key=KeyPair$1,BN$3=bnExports$3,utils$1=utils$l,assert$1=utils$1.assert,cachedProperty=utils$1.cachedProperty,parseBytes$1=utils$1.parseBytes;function Signature$1(e,t){this.eddsa=e,typeof t!="object"&&(t=parseBytes$1(t)),Array.isArray(t)&&(assert$1(t.length===e.encodingLength*2,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),assert$1(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof BN$3&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function(){return utils$1.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash=hash$2,curves=curves$1,utils=utils$l,assert=utils.assert,parseBytes=utils.parseBytes,KeyPair=key,Signature=signature;function EDDSA(e){if(assert(e==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(e);e=curves[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=hash.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function(t,n){t=parseBytes(t);var o=this.keyFromSecret(n),l=this.hashInt(o.messagePrefix(),t),a=this.g.mul(l),d=this.encodePoint(a),y=this.hashInt(d,o.pubBytes(),t).mul(o.priv()),w=l.add(y).umod(this.curve.n);return this.makeSignature({R:a,S:w,Rencoded:d})};EDDSA.prototype.verify=function(t,n,o){if(t=parseBytes(t),n=this.makeSignature(n),n.S().gte(n.eddsa.curve.n)||n.S().isNeg())return!1;var l=this.keyFromPublic(o),a=this.hashInt(n.Rencoded(),l.pubBytes(),t),d=this.g.mul(n.S()),y=n.R().add(l.pub().mul(a));return y.eq(d)};EDDSA.prototype.hashInt=function(){for(var t=this.hash(),n=0;n0?u:v},a.min=function(u,v){return u.cmp(v)<0?u:v},a.prototype._init=function(u,v,m){if(typeof u=="number")return this._initNumber(u,v,m);if(typeof u=="object")return this._initArray(u,v,m);v==="hex"&&(v=16),o(v===(v|0)&&v>=2&&v<=36),u=u.toString().replace(/\s+/g,"");var b=0;u[0]==="-"&&(b++,this.negative=1),b=0;b-=3)A=u[b]|u[b-1]<<8|u[b-2]<<16,this.words[M]|=A<>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);else if(m==="le")for(b=0,M=0;b>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);return this.strip()};function y(T,u){var v=T.charCodeAt(u);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function w(T,u,v){var m=y(T,v);return v-1>=u&&(m|=y(T,v-1)<<4),m}a.prototype._parseHex=function(u,v,m){this.length=Math.ceil((u.length-v)/6),this.words=new Array(this.length);for(var b=0;b=v;b-=2)O=w(u,v,b)<=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8;else{var $=u.length-v;for(b=$%2===0?v+1:v;b=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8}this.strip()};function _(T,u,v,m){for(var b=0,M=Math.min(T.length,v),A=u;A=49?b+=O-49+10:O>=17?b+=O-17+10:b+=O}return b}a.prototype._parseBase=function(u,v,m){this.words=[0],this.length=1;for(var b=0,M=1;M<=67108863;M*=v)b++;b--,M=M/v|0;for(var A=u.length-m,O=A%b,$=Math.min(A,A-O)+m,c=0,x=m;x<$;x+=b)c=_(u,x,x+b,v),this.imuln(M),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(O!==0){var N=1;for(c=_(u,x,u.length,v),x=0;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(u,v){u=u||10,v=v|0||1;var m;if(u===16||u==="hex"){m="";for(var b=0,M=0,A=0;A>>24-b&16777215,b+=2,b>=26&&(b-=26,A--),M!==0||A!==this.length-1?m=S[6-$.length]+$+m:m=$+m}for(M!==0&&(m=M.toString(16)+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var c=E[u],x=C[u];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var z=N.modn(x).toString(u);N=N.idivn(x),N.isZero()?m=z+m:m=S[c-z.length]+z+m}for(this.isZero()&&(m="0"+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(u,v){return o(typeof d<"u"),this.toArrayLike(d,u,v)},a.prototype.toArray=function(u,v){return this.toArrayLike(Array,u,v)},a.prototype.toArrayLike=function(u,v,m){var b=this.byteLength(),M=m||Math.max(1,b);o(b<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0"),this.strip();var A=v==="le",O=new u(M),$,c,x=this.clone();if(A){for(c=0;!x.isZero();c++)$=x.andln(255),x.iushrn(8),O[c]=$;for(;c=4096&&(m+=13,v>>>=13),v>=64&&(m+=7,v>>>=7),v>=8&&(m+=4,v>>>=4),v>=2&&(m+=2,v>>>=2),m+v},a.prototype._zeroBits=function(u){if(u===0)return 26;var v=u,m=0;return v&8191||(m+=13,v>>>=13),v&127||(m+=7,v>>>=7),v&15||(m+=4,v>>>=4),v&3||(m+=2,v>>>=2),v&1||m++,m},a.prototype.bitLength=function(){var u=this.words[this.length-1],v=this._countBits(u);return(this.length-1)*26+v};function B(T){for(var u=new Array(T.bitLength()),v=0;v>>b}return u}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,v=0;vu.length?this.clone().ior(u):u.clone().ior(this)},a.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},a.prototype.iuand=function(u){var v;this.length>u.length?v=u:v=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},a.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},a.prototype.iuxor=function(u){var v,m;this.length>u.length?(v=this,m=u):(v=u,m=this);for(var b=0;bu.length?this.clone().ixor(u):u.clone().ixor(this)},a.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},a.prototype.inotn=function(u){o(typeof u=="number"&&u>=0);var v=Math.ceil(u/26)|0,m=u%26;this._expand(v),m>0&&v--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this.strip()},a.prototype.notn=function(u){return this.clone().inotn(u)},a.prototype.setn=function(u,v){o(typeof u=="number"&&u>=0);var m=u/26|0,b=u%26;return this._expand(m+1),v?this.words[m]=this.words[m]|1<u.length?(m=this,b=u):(m=u,b=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Au.length?this.clone().iadd(u):u.clone().iadd(this)},a.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var v=this.iadd(u);return u.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,M;m>0?(b=this,M=u):(b=u,M=this);for(var A=0,O=0;O>26,this.words[O]=v&67108863;for(;A!==0&&O>26,this.words[O]=v&67108863;if(A===0&&O>>26,N=$&67108863,z=Math.min(c,u.length-1),oe=Math.max(0,c-T.length+1);oe<=z;oe++){var le=c-oe|0;b=T.words[le]|0,M=u.words[oe]|0,A=b*M+N,x+=A/67108864|0,N=A&67108863}v.words[c]=N|0,$=x|0}return $!==0?v.words[c]=$|0:v.length--,v.strip()}var F=function(u,v,m){var b=u.words,M=v.words,A=m.words,O=0,$,c,x,N=b[0]|0,z=N&8191,oe=N>>>13,le=b[1]|0,U=le&8191,P=le>>>13,Z=b[2]|0,ie=Z&8191,se=Z>>>13,k=b[3]|0,I=k&8191,te=k>>>13,ee=b[4]|0,fe=ee&8191,J=ee>>>13,Y=b[5]|0,X=Y&8191,ne=Y>>>13,me=b[6]|0,he=me&8191,ge=me>>>13,Re=b[7]|0,_e=Re&8191,we=Re>>>13,qe=b[8]|0,Se=qe&8191,Ae=qe>>>13,Me=b[9]|0,ve=Me&8191,be=Me>>>13,Pe=M[0]|0,$e=Pe&8191,Te=Pe>>>13,Je=M[1]|0,Oe=Je&8191,Ie=Je>>>13,Ye=M[2]|0,xe=Ye&8191,Ce=Ye>>>13,Qe=M[3]|0,Be=Qe&8191,je=Qe>>>13,nt=M[4]|0,Ne=nt&8191,Ve=nt>>>13,ot=M[5]|0,He=ot&8191,We=ot>>>13,st=M[6]|0,ke=st&8191,Ge=st>>>13,lt=M[7]|0,Le=lt&8191,Ke=lt>>>13,ut=M[8]|0,De=ut&8191,Ze=ut>>>13,at=M[9]|0,Fe=at&8191,ze=at>>>13;m.negative=u.negative^v.negative,m.length=19,$=Math.imul(z,$e),c=Math.imul(z,Te),c=c+Math.imul(oe,$e)|0,x=Math.imul(oe,Te);var it=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(it>>>26)|0,it&=67108863,$=Math.imul(U,$e),c=Math.imul(U,Te),c=c+Math.imul(P,$e)|0,x=Math.imul(P,Te),$=$+Math.imul(z,Oe)|0,c=c+Math.imul(z,Ie)|0,c=c+Math.imul(oe,Oe)|0,x=x+Math.imul(oe,Ie)|0;var rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,$=Math.imul(ie,$e),c=Math.imul(ie,Te),c=c+Math.imul(se,$e)|0,x=Math.imul(se,Te),$=$+Math.imul(U,Oe)|0,c=c+Math.imul(U,Ie)|0,c=c+Math.imul(P,Oe)|0,x=x+Math.imul(P,Ie)|0,$=$+Math.imul(z,xe)|0,c=c+Math.imul(z,Ce)|0,c=c+Math.imul(oe,xe)|0,x=x+Math.imul(oe,Ce)|0;var mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,$=Math.imul(I,$e),c=Math.imul(I,Te),c=c+Math.imul(te,$e)|0,x=Math.imul(te,Te),$=$+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Ie)|0,c=c+Math.imul(se,Oe)|0,x=x+Math.imul(se,Ie)|0,$=$+Math.imul(U,xe)|0,c=c+Math.imul(U,Ce)|0,c=c+Math.imul(P,xe)|0,x=x+Math.imul(P,Ce)|0,$=$+Math.imul(z,Be)|0,c=c+Math.imul(z,je)|0,c=c+Math.imul(oe,Be)|0,x=x+Math.imul(oe,je)|0;var bt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,$=Math.imul(fe,$e),c=Math.imul(fe,Te),c=c+Math.imul(J,$e)|0,x=Math.imul(J,Te),$=$+Math.imul(I,Oe)|0,c=c+Math.imul(I,Ie)|0,c=c+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ie)|0,$=$+Math.imul(ie,xe)|0,c=c+Math.imul(ie,Ce)|0,c=c+Math.imul(se,xe)|0,x=x+Math.imul(se,Ce)|0,$=$+Math.imul(U,Be)|0,c=c+Math.imul(U,je)|0,c=c+Math.imul(P,Be)|0,x=x+Math.imul(P,je)|0,$=$+Math.imul(z,Ne)|0,c=c+Math.imul(z,Ve)|0,c=c+Math.imul(oe,Ne)|0,x=x+Math.imul(oe,Ve)|0;var wt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,$=Math.imul(X,$e),c=Math.imul(X,Te),c=c+Math.imul(ne,$e)|0,x=Math.imul(ne,Te),$=$+Math.imul(fe,Oe)|0,c=c+Math.imul(fe,Ie)|0,c=c+Math.imul(J,Oe)|0,x=x+Math.imul(J,Ie)|0,$=$+Math.imul(I,xe)|0,c=c+Math.imul(I,Ce)|0,c=c+Math.imul(te,xe)|0,x=x+Math.imul(te,Ce)|0,$=$+Math.imul(ie,Be)|0,c=c+Math.imul(ie,je)|0,c=c+Math.imul(se,Be)|0,x=x+Math.imul(se,je)|0,$=$+Math.imul(U,Ne)|0,c=c+Math.imul(U,Ve)|0,c=c+Math.imul(P,Ne)|0,x=x+Math.imul(P,Ve)|0,$=$+Math.imul(z,He)|0,c=c+Math.imul(z,We)|0,c=c+Math.imul(oe,He)|0,x=x+Math.imul(oe,We)|0;var St=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(he,$e),c=Math.imul(he,Te),c=c+Math.imul(ge,$e)|0,x=Math.imul(ge,Te),$=$+Math.imul(X,Oe)|0,c=c+Math.imul(X,Ie)|0,c=c+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,Ie)|0,$=$+Math.imul(fe,xe)|0,c=c+Math.imul(fe,Ce)|0,c=c+Math.imul(J,xe)|0,x=x+Math.imul(J,Ce)|0,$=$+Math.imul(I,Be)|0,c=c+Math.imul(I,je)|0,c=c+Math.imul(te,Be)|0,x=x+Math.imul(te,je)|0,$=$+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(se,Ne)|0,x=x+Math.imul(se,Ve)|0,$=$+Math.imul(U,He)|0,c=c+Math.imul(U,We)|0,c=c+Math.imul(P,He)|0,x=x+Math.imul(P,We)|0,$=$+Math.imul(z,ke)|0,c=c+Math.imul(z,Ge)|0,c=c+Math.imul(oe,ke)|0,x=x+Math.imul(oe,Ge)|0;var $t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+($t>>>26)|0,$t&=67108863,$=Math.imul(_e,$e),c=Math.imul(_e,Te),c=c+Math.imul(we,$e)|0,x=Math.imul(we,Te),$=$+Math.imul(he,Oe)|0,c=c+Math.imul(he,Ie)|0,c=c+Math.imul(ge,Oe)|0,x=x+Math.imul(ge,Ie)|0,$=$+Math.imul(X,xe)|0,c=c+Math.imul(X,Ce)|0,c=c+Math.imul(ne,xe)|0,x=x+Math.imul(ne,Ce)|0,$=$+Math.imul(fe,Be)|0,c=c+Math.imul(fe,je)|0,c=c+Math.imul(J,Be)|0,x=x+Math.imul(J,je)|0,$=$+Math.imul(I,Ne)|0,c=c+Math.imul(I,Ve)|0,c=c+Math.imul(te,Ne)|0,x=x+Math.imul(te,Ve)|0,$=$+Math.imul(ie,He)|0,c=c+Math.imul(ie,We)|0,c=c+Math.imul(se,He)|0,x=x+Math.imul(se,We)|0,$=$+Math.imul(U,ke)|0,c=c+Math.imul(U,Ge)|0,c=c+Math.imul(P,ke)|0,x=x+Math.imul(P,Ge)|0,$=$+Math.imul(z,Le)|0,c=c+Math.imul(z,Ke)|0,c=c+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Ke)|0;var At=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(At>>>26)|0,At&=67108863,$=Math.imul(Se,$e),c=Math.imul(Se,Te),c=c+Math.imul(Ae,$e)|0,x=Math.imul(Ae,Te),$=$+Math.imul(_e,Oe)|0,c=c+Math.imul(_e,Ie)|0,c=c+Math.imul(we,Oe)|0,x=x+Math.imul(we,Ie)|0,$=$+Math.imul(he,xe)|0,c=c+Math.imul(he,Ce)|0,c=c+Math.imul(ge,xe)|0,x=x+Math.imul(ge,Ce)|0,$=$+Math.imul(X,Be)|0,c=c+Math.imul(X,je)|0,c=c+Math.imul(ne,Be)|0,x=x+Math.imul(ne,je)|0,$=$+Math.imul(fe,Ne)|0,c=c+Math.imul(fe,Ve)|0,c=c+Math.imul(J,Ne)|0,x=x+Math.imul(J,Ve)|0,$=$+Math.imul(I,He)|0,c=c+Math.imul(I,We)|0,c=c+Math.imul(te,He)|0,x=x+Math.imul(te,We)|0,$=$+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Ge)|0,c=c+Math.imul(se,ke)|0,x=x+Math.imul(se,Ge)|0,$=$+Math.imul(U,Le)|0,c=c+Math.imul(U,Ke)|0,c=c+Math.imul(P,Le)|0,x=x+Math.imul(P,Ke)|0,$=$+Math.imul(z,De)|0,c=c+Math.imul(z,Ze)|0,c=c+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ze)|0;var Rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,$=Math.imul(ve,$e),c=Math.imul(ve,Te),c=c+Math.imul(be,$e)|0,x=Math.imul(be,Te),$=$+Math.imul(Se,Oe)|0,c=c+Math.imul(Se,Ie)|0,c=c+Math.imul(Ae,Oe)|0,x=x+Math.imul(Ae,Ie)|0,$=$+Math.imul(_e,xe)|0,c=c+Math.imul(_e,Ce)|0,c=c+Math.imul(we,xe)|0,x=x+Math.imul(we,Ce)|0,$=$+Math.imul(he,Be)|0,c=c+Math.imul(he,je)|0,c=c+Math.imul(ge,Be)|0,x=x+Math.imul(ge,je)|0,$=$+Math.imul(X,Ne)|0,c=c+Math.imul(X,Ve)|0,c=c+Math.imul(ne,Ne)|0,x=x+Math.imul(ne,Ve)|0,$=$+Math.imul(fe,He)|0,c=c+Math.imul(fe,We)|0,c=c+Math.imul(J,He)|0,x=x+Math.imul(J,We)|0,$=$+Math.imul(I,ke)|0,c=c+Math.imul(I,Ge)|0,c=c+Math.imul(te,ke)|0,x=x+Math.imul(te,Ge)|0,$=$+Math.imul(ie,Le)|0,c=c+Math.imul(ie,Ke)|0,c=c+Math.imul(se,Le)|0,x=x+Math.imul(se,Ke)|0,$=$+Math.imul(U,De)|0,c=c+Math.imul(U,Ze)|0,c=c+Math.imul(P,De)|0,x=x+Math.imul(P,Ze)|0,$=$+Math.imul(z,Fe)|0,c=c+Math.imul(z,ze)|0,c=c+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,ze)|0;var Mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,$=Math.imul(ve,Oe),c=Math.imul(ve,Ie),c=c+Math.imul(be,Oe)|0,x=Math.imul(be,Ie),$=$+Math.imul(Se,xe)|0,c=c+Math.imul(Se,Ce)|0,c=c+Math.imul(Ae,xe)|0,x=x+Math.imul(Ae,Ce)|0,$=$+Math.imul(_e,Be)|0,c=c+Math.imul(_e,je)|0,c=c+Math.imul(we,Be)|0,x=x+Math.imul(we,je)|0,$=$+Math.imul(he,Ne)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(ge,Ne)|0,x=x+Math.imul(ge,Ve)|0,$=$+Math.imul(X,He)|0,c=c+Math.imul(X,We)|0,c=c+Math.imul(ne,He)|0,x=x+Math.imul(ne,We)|0,$=$+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(J,ke)|0,x=x+Math.imul(J,Ge)|0,$=$+Math.imul(I,Le)|0,c=c+Math.imul(I,Ke)|0,c=c+Math.imul(te,Le)|0,x=x+Math.imul(te,Ke)|0,$=$+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ze)|0,c=c+Math.imul(se,De)|0,x=x+Math.imul(se,Ze)|0,$=$+Math.imul(U,Fe)|0,c=c+Math.imul(U,ze)|0,c=c+Math.imul(P,Fe)|0,x=x+Math.imul(P,ze)|0;var ht=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,$=Math.imul(ve,xe),c=Math.imul(ve,Ce),c=c+Math.imul(be,xe)|0,x=Math.imul(be,Ce),$=$+Math.imul(Se,Be)|0,c=c+Math.imul(Se,je)|0,c=c+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,je)|0,$=$+Math.imul(_e,Ne)|0,c=c+Math.imul(_e,Ve)|0,c=c+Math.imul(we,Ne)|0,x=x+Math.imul(we,Ve)|0,$=$+Math.imul(he,He)|0,c=c+Math.imul(he,We)|0,c=c+Math.imul(ge,He)|0,x=x+Math.imul(ge,We)|0,$=$+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Ge)|0,$=$+Math.imul(fe,Le)|0,c=c+Math.imul(fe,Ke)|0,c=c+Math.imul(J,Le)|0,x=x+Math.imul(J,Ke)|0,$=$+Math.imul(I,De)|0,c=c+Math.imul(I,Ze)|0,c=c+Math.imul(te,De)|0,x=x+Math.imul(te,Ze)|0,$=$+Math.imul(ie,Fe)|0,c=c+Math.imul(ie,ze)|0,c=c+Math.imul(se,Fe)|0,x=x+Math.imul(se,ze)|0;var yt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,$=Math.imul(ve,Be),c=Math.imul(ve,je),c=c+Math.imul(be,Be)|0,x=Math.imul(be,je),$=$+Math.imul(Se,Ne)|0,c=c+Math.imul(Se,Ve)|0,c=c+Math.imul(Ae,Ne)|0,x=x+Math.imul(Ae,Ve)|0,$=$+Math.imul(_e,He)|0,c=c+Math.imul(_e,We)|0,c=c+Math.imul(we,He)|0,x=x+Math.imul(we,We)|0,$=$+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(ge,ke)|0,x=x+Math.imul(ge,Ge)|0,$=$+Math.imul(X,Le)|0,c=c+Math.imul(X,Ke)|0,c=c+Math.imul(ne,Le)|0,x=x+Math.imul(ne,Ke)|0,$=$+Math.imul(fe,De)|0,c=c+Math.imul(fe,Ze)|0,c=c+Math.imul(J,De)|0,x=x+Math.imul(J,Ze)|0,$=$+Math.imul(I,Fe)|0,c=c+Math.imul(I,ze)|0,c=c+Math.imul(te,Fe)|0,x=x+Math.imul(te,ze)|0;var gt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(ve,Ne),c=Math.imul(ve,Ve),c=c+Math.imul(be,Ne)|0,x=Math.imul(be,Ve),$=$+Math.imul(Se,He)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Ae,He)|0,x=x+Math.imul(Ae,We)|0,$=$+Math.imul(_e,ke)|0,c=c+Math.imul(_e,Ge)|0,c=c+Math.imul(we,ke)|0,x=x+Math.imul(we,Ge)|0,$=$+Math.imul(he,Le)|0,c=c+Math.imul(he,Ke)|0,c=c+Math.imul(ge,Le)|0,x=x+Math.imul(ge,Ke)|0,$=$+Math.imul(X,De)|0,c=c+Math.imul(X,Ze)|0,c=c+Math.imul(ne,De)|0,x=x+Math.imul(ne,Ze)|0,$=$+Math.imul(fe,Fe)|0,c=c+Math.imul(fe,ze)|0,c=c+Math.imul(J,Fe)|0,x=x+Math.imul(J,ze)|0;var dt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,$=Math.imul(ve,He),c=Math.imul(ve,We),c=c+Math.imul(be,He)|0,x=Math.imul(be,We),$=$+Math.imul(Se,ke)|0,c=c+Math.imul(Se,Ge)|0,c=c+Math.imul(Ae,ke)|0,x=x+Math.imul(Ae,Ge)|0,$=$+Math.imul(_e,Le)|0,c=c+Math.imul(_e,Ke)|0,c=c+Math.imul(we,Le)|0,x=x+Math.imul(we,Ke)|0,$=$+Math.imul(he,De)|0,c=c+Math.imul(he,Ze)|0,c=c+Math.imul(ge,De)|0,x=x+Math.imul(ge,Ze)|0,$=$+Math.imul(X,Fe)|0,c=c+Math.imul(X,ze)|0,c=c+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,ze)|0;var _t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,$=Math.imul(ve,ke),c=Math.imul(ve,Ge),c=c+Math.imul(be,ke)|0,x=Math.imul(be,Ge),$=$+Math.imul(Se,Le)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Ae,Le)|0,x=x+Math.imul(Ae,Ke)|0,$=$+Math.imul(_e,De)|0,c=c+Math.imul(_e,Ze)|0,c=c+Math.imul(we,De)|0,x=x+Math.imul(we,Ze)|0,$=$+Math.imul(he,Fe)|0,c=c+Math.imul(he,ze)|0,c=c+Math.imul(ge,Fe)|0,x=x+Math.imul(ge,ze)|0;var ct=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ct>>>26)|0,ct&=67108863,$=Math.imul(ve,Le),c=Math.imul(ve,Ke),c=c+Math.imul(be,Le)|0,x=Math.imul(be,Ke),$=$+Math.imul(Se,De)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Ae,De)|0,x=x+Math.imul(Ae,Ze)|0,$=$+Math.imul(_e,Fe)|0,c=c+Math.imul(_e,ze)|0,c=c+Math.imul(we,Fe)|0,x=x+Math.imul(we,ze)|0;var pt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(ve,De),c=Math.imul(ve,Ze),c=c+Math.imul(be,De)|0,x=Math.imul(be,Ze),$=$+Math.imul(Se,Fe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,ze)|0;var Et=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,$=Math.imul(ve,Fe),c=Math.imul(ve,ze),c=c+Math.imul(be,Fe)|0,x=Math.imul(be,ze);var xt=(O+$|0)+((c&8191)<<13)|0;return O=(x+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,A[0]=it,A[1]=rt,A[2]=mt,A[3]=bt,A[4]=wt,A[5]=St,A[6]=$t,A[7]=At,A[8]=Rt,A[9]=Mt,A[10]=ht,A[11]=yt,A[12]=gt,A[13]=dt,A[14]=_t,A[15]=ct,A[16]=pt,A[17]=Et,A[18]=xt,O!==0&&(A[19]=O,m.length++),m};Math.imul||(F=L);function q(T,u,v){v.negative=u.negative^T.negative,v.length=T.length+u.length;for(var m=0,b=0,M=0;M>>26)|0,b+=A>>>26,A&=67108863}v.words[M]=O,m=A,A=b}return m!==0?v.words[M]=m:v.length--,v.strip()}function H(T,u,v){var m=new D;return m.mulp(T,u,v)}a.prototype.mulTo=function(u,v){var m,b=this.length+u.length;return this.length===10&&u.length===10?m=F(this,u,v):b<63?m=L(this,u,v):b<1024?m=q(this,u,v):m=H(this,u,v),m};function D(T,u){this.x=T,this.y=u}D.prototype.makeRBT=function(u){for(var v=new Array(u),m=a.prototype._countBits(u)-1,b=0;b>=1;return b},D.prototype.permute=function(u,v,m,b,M,A){for(var O=0;O>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*v;A>=26,v+=b/67108864|0,v+=M>>>26,this.words[m]=M&67108863}return v!==0&&(this.words[m]=v,this.length++),this.length=u===0?1:this.length,this},a.prototype.muln=function(u){return this.clone().imuln(u)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(u){var v=B(u);if(v.length===0)return new a(1);for(var m=this,b=0;b=0);var v=u%26,m=(u-v)/26,b=67108863>>>26-v<<26-v,M;if(v!==0){var A=0;for(M=0;M>>26-v}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var b;v?b=(v-v%26)/26:b=0;var M=u%26,A=Math.min((u-M)/26,this.length),O=67108863^67108863>>>M<A)for(this.length-=A,c=0;c=0&&(x!==0||c>=b);c--){var N=this.words[c]|0;this.words[c]=x<<26-M|N>>>M,x=N&O}return $&&x!==0&&($.words[$.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(u,v,m){return o(this.negative===0),this.iushrn(u,v,m)},a.prototype.shln=function(u){return this.clone().ishln(u)},a.prototype.ushln=function(u){return this.clone().iushln(u)},a.prototype.shrn=function(u){return this.clone().ishrn(u)},a.prototype.ushrn=function(u){return this.clone().iushrn(u)},a.prototype.testn=function(u){o(typeof u=="number"&&u>=0);var v=u%26,m=(u-v)/26,b=1<=0);var v=u%26,m=(u-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(v!==0&&m++,this.length=Math.min(m,this.length),v!==0){var b=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(u){if(o(typeof u=="number"),o(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-($/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(O===0)return this.strip();for(o(O===-1),O=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(u,v){var m=this.length-u.length,b=this.clone(),M=u,A=M.words[M.length-1]|0,O=this._countBits(A);m=26-O,m!==0&&(M=M.ushln(m),b.iushln(m),A=M.words[M.length-1]|0);var $=b.length-M.length,c;if(v!=="mod"){c=new a(null),c.length=$+1,c.words=new Array(c.length);for(var x=0;x=0;z--){var oe=(b.words[M.length+z]|0)*67108864+(b.words[M.length+z-1]|0);for(oe=Math.min(oe/A|0,67108863),b._ishlnsubmul(M,oe,z);b.negative!==0;)oe--,b.negative=0,b._ishlnsubmul(M,1,z),b.isZero()||(b.negative^=1);c&&(c.words[z]=oe)}return c&&c.strip(),b.strip(),v!=="div"&&m!==0&&b.iushrn(m),{div:c||null,mod:b}},a.prototype.divmod=function(u,v,m){if(o(!u.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,M,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,v),v!=="mod"&&(b=A.div.neg()),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(u)),{div:b,mod:M}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),v),v!=="mod"&&(b=A.div.neg()),{div:b,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),v),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(u)),{div:A.div,mod:M}):u.length>this.length||this.cmp(u)<0?{div:new a(0),mod:this}:u.length===1?v==="div"?{div:this.divn(u.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new a(this.modn(u.words[0]))}:this._wordDiv(u,v)},a.prototype.div=function(u){return this.divmod(u,"div",!1).div},a.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},a.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},a.prototype.divRound=function(u){var v=this.divmod(u);if(v.mod.isZero())return v.div;var m=v.div.negative!==0?v.mod.isub(u):v.mod,b=u.ushrn(1),M=u.andln(1),A=m.cmp(b);return A<0||M===1&&A===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modn=function(u){o(u<=67108863);for(var v=(1<<26)%u,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%u;return m},a.prototype.idivn=function(u){o(u<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/u|0,v=b%u}return this.strip()},a.prototype.divn=function(u){return this.clone().idivn(u)},a.prototype.egcd=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=new a(0),O=new a(1),$=0;v.isEven()&&m.isEven();)v.iushrn(1),m.iushrn(1),++$;for(var c=m.clone(),x=v.clone();!v.isZero();){for(var N=0,z=1;!(v.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(v.iushrn(N);N-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(c),M.isub(x)),b.iushrn(1),M.iushrn(1);for(var oe=0,le=1;!(m.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(m.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(c),O.isub(x)),A.iushrn(1),O.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(A),M.isub(O)):(m.isub(v),A.isub(b),O.isub(M))}return{a:A,b:O,gcd:m.iushln($)}},a.prototype._invmp=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=m.clone();v.cmpn(1)>0&&m.cmpn(1)>0;){for(var O=0,$=1;!(v.words[0]&$)&&O<26;++O,$<<=1);if(O>0)for(v.iushrn(O);O-- >0;)b.isOdd()&&b.iadd(A),b.iushrn(1);for(var c=0,x=1;!(m.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(m.iushrn(c);c-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(M)):(m.isub(v),M.isub(b))}var N;return v.cmpn(1)===0?N=b:N=M,N.cmpn(0)<0&&N.iadd(u),N},a.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var v=this.clone(),m=u.clone();v.negative=0,m.negative=0;for(var b=0;v.isEven()&&m.isEven();b++)v.iushrn(1),m.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=v.cmp(m);if(M<0){var A=v;v=m,m=A}else if(M===0||m.cmpn(1)===0)break;v.isub(m)}while(!0);return m.iushln(b)},a.prototype.invm=function(u){return this.egcd(u).a.umod(u)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(u){return this.words[0]&u},a.prototype.bincn=function(u){o(typeof u=="number");var v=u%26,m=(u-v)/26,b=1<>>26,O&=67108863,this.words[A]=O}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(u){var v=u<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var m;if(this.length>1)m=1;else{v&&(u=-u),o(u<=67108863,"Number is too big");var b=this.words[0]|0;m=b===u?0:bu.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,M=u.words[m]|0;if(b!==M){bM&&(v=1);break}}return v},a.prototype.gtn=function(u){return this.cmpn(u)===1},a.prototype.gt=function(u){return this.cmp(u)===1},a.prototype.gten=function(u){return this.cmpn(u)>=0},a.prototype.gte=function(u){return this.cmp(u)>=0},a.prototype.ltn=function(u){return this.cmpn(u)===-1},a.prototype.lt=function(u){return this.cmp(u)===-1},a.prototype.lten=function(u){return this.cmpn(u)<=0},a.prototype.lte=function(u){return this.cmp(u)<=0},a.prototype.eqn=function(u){return this.cmpn(u)===0},a.prototype.eq=function(u){return this.cmp(u)===0},a.red=function(u){return new re(u)},a.prototype.toRed=function(u){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(u){return this.red=u,this},a.prototype.forceRed=function(u){return o(!this.red,"Already a number in reduction context"),this._forceRed(u)},a.prototype.redAdd=function(u){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},a.prototype.redIAdd=function(u){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},a.prototype.redSub=function(u){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},a.prototype.redISub=function(u){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},a.prototype.redShl=function(u){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},a.prototype.redMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},a.prototype.redIMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(u){return o(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var j={k256:null,p224:null,p192:null,p25519:null};function V(T,u){this.name=T,this.p=new a(u,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var u=new a(null);return u.words=new Array(Math.ceil(this.n/13)),u},V.prototype.ireduce=function(u){var v=u,m;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),m=v.bitLength();while(m>this.n);var b=m0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},V.prototype.split=function(u,v){u.iushrn(this.n,0,v)},V.prototype.imulK=function(u){return u.imul(this.k)};function Q(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Q,V),Q.prototype.split=function(u,v){for(var m=4194303,b=Math.min(u.length,9),M=0;M>>22,A=O}A>>>=22,u.words[M-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},Q.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var v=0,m=0;m>>=26,u.words[m]=M,v=b}return v!==0&&(u.words[u.length++]=v),u},a._prime=function(u){if(j[u])return j[u];var v;if(u==="k256")v=new Q;else if(u==="p224")v=new ae;else if(u==="p192")v=new ce;else if(u==="p25519")v=new ue;else throw new Error("Unknown prime "+u);return j[u]=v,v};function re(T){if(typeof T=="string"){var u=a._prime(T);this.m=u.p,this.prime=u}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}re.prototype._verify1=function(u){o(u.negative===0,"red works only with positives"),o(u.red,"red works only with red numbers")},re.prototype._verify2=function(u,v){o((u.negative|v.negative)===0,"red works only with positives"),o(u.red&&u.red===v.red,"red works only with red numbers")},re.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},re.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},re.prototype.add=function(u,v){this._verify2(u,v);var m=u.add(v);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},re.prototype.iadd=function(u,v){this._verify2(u,v);var m=u.iadd(v);return m.cmp(this.m)>=0&&m.isub(this.m),m},re.prototype.sub=function(u,v){this._verify2(u,v);var m=u.sub(v);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},re.prototype.isub=function(u,v){this._verify2(u,v);var m=u.isub(v);return m.cmpn(0)<0&&m.iadd(this.m),m},re.prototype.shl=function(u,v){return this._verify1(u),this.imod(u.ushln(v))},re.prototype.imul=function(u,v){return this._verify2(u,v),this.imod(u.imul(v))},re.prototype.mul=function(u,v){return this._verify2(u,v),this.imod(u.mul(v))},re.prototype.isqr=function(u){return this.imul(u,u.clone())},re.prototype.sqr=function(u){return this.mul(u,u)},re.prototype.sqrt=function(u){if(u.isZero())return u.clone();var v=this.m.andln(3);if(o(v%2===1),v===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(u,m)}for(var b=this.m.subn(1),M=0;!b.isZero()&&b.andln(1)===0;)M++,b.iushrn(1);o(!b.isZero());var A=new a(1).toRed(this),O=A.redNeg(),$=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);this.pow(c,$).cmp(O)!==0;)c.redIAdd(O);for(var x=this.pow(c,b),N=this.pow(u,b.addn(1).iushrn(1)),z=this.pow(u,b),oe=M;z.cmp(A)!==0;){for(var le=z,U=0;le.cmp(A)!==0;U++)le=le.redSqr();o(U=0;M--){for(var x=v.words[M],N=c-1;N>=0;N--){var z=x>>N&1;if(A!==b[0]&&(A=this.sqr(A)),z===0&&O===0){$=0;continue}O<<=1,O|=z,$++,!($!==m&&(M!==0||N!==0))&&(A=this.mul(A,b[O]),$=0,O=0)}c=26}return A},re.prototype.convertTo=function(u){var v=u.umod(this.m);return v===u?v.clone():v},re.prototype.convertFrom=function(u){var v=u.clone();return v.red=null,v},a.mont=function(u){return new pe(u)};function pe(T){re.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(pe,re),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var v=this.imod(u.mul(this.rinv));return v.red=null,v},pe.prototype.imul=function(u,v){if(u.isZero()||v.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,v){if(u.isZero()||v.isZero())return new a(0)._forceRed(this);var m=u.mul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var v=this.imod(u._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(e,commonjsGlobal)})(bn$2);var bnExports$2=bn$2.exports,api={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n>6],B=(E&32)===0;if((E&31)===31){var L=E;for(E=0;(L&128)===128;){if(L=_.readUInt8(S),_.isError(L))return L;E<<=7,E|=L&127}}else E&=31;var F=l.tag[E];return{cls:C,primitive:B,tag:E,tagStr:F}}function w(_,S,E){var C=_.readUInt8(E);if(_.isError(C))return C;if(!S&&C===128)return null;if(!(C&128))return C;var B=C&127;if(B>4)return _.error("length octect is too long");C=0;for(var L=0;L=256;q>>=8)F++;var H=new t(1+1+F);H[0]=L,H[1]=128|F;for(var q=1+F,D=B.length;D>0;q--,D>>=8)H[q]=D&255;return this._createEncoderBuffer([H,B])},d.prototype._encodeStr=function(S,E){if(E==="bitstr")return this._createEncoderBuffer([S.unused|0,S.data]);if(E==="bmpstr"){for(var C=new t(S.length*2),B=0;B=40)return this.reporter.error("Second objid identifier OOB");S.splice(0,2,S[0]*40+S[1])}for(var L=0,B=0;B=128;F>>=7)L++}for(var q=new t(L),H=q.length-1,B=S.length-1;B>=0;B--){var F=S[B];for(q[H--]=F&127;(F>>=7)>0;)q[H--]=128|F&127}return this._createEncoderBuffer(q)};function y(_){return _<10?"0"+_:_}d.prototype._encodeTime=function(S,E){var C,B=new Date(S);return E==="gentime"?C=[y(B.getFullYear()),y(B.getUTCMonth()+1),y(B.getUTCDate()),y(B.getUTCHours()),y(B.getUTCMinutes()),y(B.getUTCSeconds()),"Z"].join(""):E==="utctime"?C=[y(B.getFullYear()%100),y(B.getUTCMonth()+1),y(B.getUTCDate()),y(B.getUTCHours()),y(B.getUTCMinutes()),y(B.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+E+" time is not supported yet"),this._encodeStr(C,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.prototype._encodeInt=function(S,E){if(typeof S=="string"){if(!E)return this.reporter.error("String int or enum given, but no values map");if(!E.hasOwnProperty(S))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(S));S=E[S]}if(typeof S!="number"&&!t.isBuffer(S)){var C=S.toArray();!S.sign&&C[0]&128&&C.unshift(0),S=new t(C)}if(t.isBuffer(S)){var B=S.length;S.length===0&&B++;var F=new t(B);return S.copy(F),S.length===0&&(F[0]=0),this._createEncoderBuffer(F)}if(S<128)return this._createEncoderBuffer(S);if(S<256)return this._createEncoderBuffer([0,S]);for(var B=1,L=S;L>=256;L>>=8)B++;for(var F=new Array(B),L=F.length-1;L>=0;L--)F[L]=S&255,S>>=8;return F[0]&128&&F.unshift(0),this._createEncoderBuffer(new t(F))},d.prototype._encodeBool=function(S){return this._createEncoderBuffer(S?255:0)},d.prototype._use=function(S,E){return typeof S=="function"&&(S=S(E)),S._getEncoder("der").tree},d.prototype._skipDefault=function(S,E,C){var B=this._baseState,L;if(B.default===null)return!1;var F=S.join();if(B.defaultBuffer===void 0&&(B.defaultBuffer=this._encodeValue(B.default,E,C).join()),F.length!==B.defaultBuffer.length)return!1;for(L=0;L=31?C.error("Multi-octet tag encoding unsupported"):(S||(B|=32),B|=l.tagClassByName[E||"universal"]<<6,B)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var e=inherits_browserExports,t=requireDer();function n(o){t.call(this,o),this.enc="pem"}return e(n,t),pem=n,n.prototype.encode=function(l,a){for(var d=t.prototype.encode.call(this,l),y=d.toString("base64"),w=["-----BEGIN "+a.label+"-----"],_=0;_0&&j.ishrn(V),j}function L(H,D){H=B(H,D),H=H.mod(D);var j=e.from(H.toArray());if(j.length=0)throw new Error("invalid sig")}return verify_1=a,verify_1}var browser$3,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$3;hasRequiredBrowser$1=1;var e=safeBufferExports$1.Buffer,t=browser$9,n=readableBrowserExports,o=inherits_browserExports,l=requireSign(),a=requireVerify(),d=require$$6;Object.keys(d).forEach(function(E){d[E].id=e.from(d[E].id,"hex"),d[E.toLowerCase()]=d[E]});function y(E){n.Writable.call(this);var C=d[E];if(!C)throw new Error("Unknown message digest");this._hashType=C.hash,this._hash=t(C.hash),this._tag=C.id,this._signType=C.sign}o(y,n.Writable),y.prototype._write=function(C,B,L){this._hash.update(C),L()},y.prototype.update=function(C,B){return this._hash.update(typeof C=="string"?e.from(C,B):C),this},y.prototype.sign=function(C,B){this.end();var L=this._hash.digest(),F=l(L,C,this._hashType,this._signType,this._tag);return B?F.toString(B):F};function w(E){n.Writable.call(this);var C=d[E];if(!C)throw new Error("Unknown message digest");this._hash=t(C.hash),this._tag=C.id,this._signType=C.sign}o(w,n.Writable),w.prototype._write=function(C,B,L){this._hash.update(C),L()},w.prototype.update=function(C,B){return this._hash.update(typeof C=="string"?e.from(C,B):C),this},w.prototype.verify=function(C,B,L){var F=typeof B=="string"?e.from(B,L):B;this.end();var q=this._hash.digest();return a(F,q,C,this._signType,this._tag)};function _(E){return new y(E)}function S(E){return new w(E)}return browser$3={Sign:_,Verify:S,createSign:_,createVerify:S},browser$3}var bn$1={exports:{}};bn$1.exports;(function(e){(function(t,n){function o(T,u){if(!T)throw new Error(u||"Assertion failed")}function l(T,u){T.super_=u;var v=function(){};v.prototype=u.prototype,T.prototype=new v,T.prototype.constructor=T}function a(T,u,v){if(a.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((u==="le"||u==="be")&&(v=u,u=10),this._init(T||0,u||10,v||"be"))}typeof t=="object"?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=buffer$2.Buffer}catch{}a.isBN=function(u){return u instanceof a?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===a.wordSize&&Array.isArray(u.words)},a.max=function(u,v){return u.cmp(v)>0?u:v},a.min=function(u,v){return u.cmp(v)<0?u:v},a.prototype._init=function(u,v,m){if(typeof u=="number")return this._initNumber(u,v,m);if(typeof u=="object")return this._initArray(u,v,m);v==="hex"&&(v=16),o(v===(v|0)&&v>=2&&v<=36),u=u.toString().replace(/\s+/g,"");var b=0;u[0]==="-"&&(b++,this.negative=1),b=0;b-=3)A=u[b]|u[b-1]<<8|u[b-2]<<16,this.words[M]|=A<>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);else if(m==="le")for(b=0,M=0;b>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);return this.strip()};function y(T,u){var v=T.charCodeAt(u);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function w(T,u,v){var m=y(T,v);return v-1>=u&&(m|=y(T,v-1)<<4),m}a.prototype._parseHex=function(u,v,m){this.length=Math.ceil((u.length-v)/6),this.words=new Array(this.length);for(var b=0;b=v;b-=2)O=w(u,v,b)<=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8;else{var $=u.length-v;for(b=$%2===0?v+1:v;b=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8}this.strip()};function _(T,u,v,m){for(var b=0,M=Math.min(T.length,v),A=u;A=49?b+=O-49+10:O>=17?b+=O-17+10:b+=O}return b}a.prototype._parseBase=function(u,v,m){this.words=[0],this.length=1;for(var b=0,M=1;M<=67108863;M*=v)b++;b--,M=M/v|0;for(var A=u.length-m,O=A%b,$=Math.min(A,A-O)+m,c=0,x=m;x<$;x+=b)c=_(u,x,x+b,v),this.imuln(M),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(O!==0){var N=1;for(c=_(u,x,u.length,v),x=0;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(u,v){u=u||10,v=v|0||1;var m;if(u===16||u==="hex"){m="";for(var b=0,M=0,A=0;A>>24-b&16777215,b+=2,b>=26&&(b-=26,A--),M!==0||A!==this.length-1?m=S[6-$.length]+$+m:m=$+m}for(M!==0&&(m=M.toString(16)+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var c=E[u],x=C[u];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var z=N.modn(x).toString(u);N=N.idivn(x),N.isZero()?m=z+m:m=S[c-z.length]+z+m}for(this.isZero()&&(m="0"+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(u,v){return o(typeof d<"u"),this.toArrayLike(d,u,v)},a.prototype.toArray=function(u,v){return this.toArrayLike(Array,u,v)},a.prototype.toArrayLike=function(u,v,m){var b=this.byteLength(),M=m||Math.max(1,b);o(b<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0"),this.strip();var A=v==="le",O=new u(M),$,c,x=this.clone();if(A){for(c=0;!x.isZero();c++)$=x.andln(255),x.iushrn(8),O[c]=$;for(;c=4096&&(m+=13,v>>>=13),v>=64&&(m+=7,v>>>=7),v>=8&&(m+=4,v>>>=4),v>=2&&(m+=2,v>>>=2),m+v},a.prototype._zeroBits=function(u){if(u===0)return 26;var v=u,m=0;return v&8191||(m+=13,v>>>=13),v&127||(m+=7,v>>>=7),v&15||(m+=4,v>>>=4),v&3||(m+=2,v>>>=2),v&1||m++,m},a.prototype.bitLength=function(){var u=this.words[this.length-1],v=this._countBits(u);return(this.length-1)*26+v};function B(T){for(var u=new Array(T.bitLength()),v=0;v>>b}return u}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,v=0;vu.length?this.clone().ior(u):u.clone().ior(this)},a.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},a.prototype.iuand=function(u){var v;this.length>u.length?v=u:v=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},a.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},a.prototype.iuxor=function(u){var v,m;this.length>u.length?(v=this,m=u):(v=u,m=this);for(var b=0;bu.length?this.clone().ixor(u):u.clone().ixor(this)},a.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},a.prototype.inotn=function(u){o(typeof u=="number"&&u>=0);var v=Math.ceil(u/26)|0,m=u%26;this._expand(v),m>0&&v--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this.strip()},a.prototype.notn=function(u){return this.clone().inotn(u)},a.prototype.setn=function(u,v){o(typeof u=="number"&&u>=0);var m=u/26|0,b=u%26;return this._expand(m+1),v?this.words[m]=this.words[m]|1<u.length?(m=this,b=u):(m=u,b=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Au.length?this.clone().iadd(u):u.clone().iadd(this)},a.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var v=this.iadd(u);return u.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,M;m>0?(b=this,M=u):(b=u,M=this);for(var A=0,O=0;O>26,this.words[O]=v&67108863;for(;A!==0&&O>26,this.words[O]=v&67108863;if(A===0&&O>>26,N=$&67108863,z=Math.min(c,u.length-1),oe=Math.max(0,c-T.length+1);oe<=z;oe++){var le=c-oe|0;b=T.words[le]|0,M=u.words[oe]|0,A=b*M+N,x+=A/67108864|0,N=A&67108863}v.words[c]=N|0,$=x|0}return $!==0?v.words[c]=$|0:v.length--,v.strip()}var F=function(u,v,m){var b=u.words,M=v.words,A=m.words,O=0,$,c,x,N=b[0]|0,z=N&8191,oe=N>>>13,le=b[1]|0,U=le&8191,P=le>>>13,Z=b[2]|0,ie=Z&8191,se=Z>>>13,k=b[3]|0,I=k&8191,te=k>>>13,ee=b[4]|0,fe=ee&8191,J=ee>>>13,Y=b[5]|0,X=Y&8191,ne=Y>>>13,me=b[6]|0,he=me&8191,ge=me>>>13,Re=b[7]|0,_e=Re&8191,we=Re>>>13,qe=b[8]|0,Se=qe&8191,Ae=qe>>>13,Me=b[9]|0,ve=Me&8191,be=Me>>>13,Pe=M[0]|0,$e=Pe&8191,Te=Pe>>>13,Je=M[1]|0,Oe=Je&8191,Ie=Je>>>13,Ye=M[2]|0,xe=Ye&8191,Ce=Ye>>>13,Qe=M[3]|0,Be=Qe&8191,je=Qe>>>13,nt=M[4]|0,Ne=nt&8191,Ve=nt>>>13,ot=M[5]|0,He=ot&8191,We=ot>>>13,st=M[6]|0,ke=st&8191,Ge=st>>>13,lt=M[7]|0,Le=lt&8191,Ke=lt>>>13,ut=M[8]|0,De=ut&8191,Ze=ut>>>13,at=M[9]|0,Fe=at&8191,ze=at>>>13;m.negative=u.negative^v.negative,m.length=19,$=Math.imul(z,$e),c=Math.imul(z,Te),c=c+Math.imul(oe,$e)|0,x=Math.imul(oe,Te);var it=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(it>>>26)|0,it&=67108863,$=Math.imul(U,$e),c=Math.imul(U,Te),c=c+Math.imul(P,$e)|0,x=Math.imul(P,Te),$=$+Math.imul(z,Oe)|0,c=c+Math.imul(z,Ie)|0,c=c+Math.imul(oe,Oe)|0,x=x+Math.imul(oe,Ie)|0;var rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,$=Math.imul(ie,$e),c=Math.imul(ie,Te),c=c+Math.imul(se,$e)|0,x=Math.imul(se,Te),$=$+Math.imul(U,Oe)|0,c=c+Math.imul(U,Ie)|0,c=c+Math.imul(P,Oe)|0,x=x+Math.imul(P,Ie)|0,$=$+Math.imul(z,xe)|0,c=c+Math.imul(z,Ce)|0,c=c+Math.imul(oe,xe)|0,x=x+Math.imul(oe,Ce)|0;var mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,$=Math.imul(I,$e),c=Math.imul(I,Te),c=c+Math.imul(te,$e)|0,x=Math.imul(te,Te),$=$+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Ie)|0,c=c+Math.imul(se,Oe)|0,x=x+Math.imul(se,Ie)|0,$=$+Math.imul(U,xe)|0,c=c+Math.imul(U,Ce)|0,c=c+Math.imul(P,xe)|0,x=x+Math.imul(P,Ce)|0,$=$+Math.imul(z,Be)|0,c=c+Math.imul(z,je)|0,c=c+Math.imul(oe,Be)|0,x=x+Math.imul(oe,je)|0;var bt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,$=Math.imul(fe,$e),c=Math.imul(fe,Te),c=c+Math.imul(J,$e)|0,x=Math.imul(J,Te),$=$+Math.imul(I,Oe)|0,c=c+Math.imul(I,Ie)|0,c=c+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ie)|0,$=$+Math.imul(ie,xe)|0,c=c+Math.imul(ie,Ce)|0,c=c+Math.imul(se,xe)|0,x=x+Math.imul(se,Ce)|0,$=$+Math.imul(U,Be)|0,c=c+Math.imul(U,je)|0,c=c+Math.imul(P,Be)|0,x=x+Math.imul(P,je)|0,$=$+Math.imul(z,Ne)|0,c=c+Math.imul(z,Ve)|0,c=c+Math.imul(oe,Ne)|0,x=x+Math.imul(oe,Ve)|0;var wt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,$=Math.imul(X,$e),c=Math.imul(X,Te),c=c+Math.imul(ne,$e)|0,x=Math.imul(ne,Te),$=$+Math.imul(fe,Oe)|0,c=c+Math.imul(fe,Ie)|0,c=c+Math.imul(J,Oe)|0,x=x+Math.imul(J,Ie)|0,$=$+Math.imul(I,xe)|0,c=c+Math.imul(I,Ce)|0,c=c+Math.imul(te,xe)|0,x=x+Math.imul(te,Ce)|0,$=$+Math.imul(ie,Be)|0,c=c+Math.imul(ie,je)|0,c=c+Math.imul(se,Be)|0,x=x+Math.imul(se,je)|0,$=$+Math.imul(U,Ne)|0,c=c+Math.imul(U,Ve)|0,c=c+Math.imul(P,Ne)|0,x=x+Math.imul(P,Ve)|0,$=$+Math.imul(z,He)|0,c=c+Math.imul(z,We)|0,c=c+Math.imul(oe,He)|0,x=x+Math.imul(oe,We)|0;var St=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(he,$e),c=Math.imul(he,Te),c=c+Math.imul(ge,$e)|0,x=Math.imul(ge,Te),$=$+Math.imul(X,Oe)|0,c=c+Math.imul(X,Ie)|0,c=c+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,Ie)|0,$=$+Math.imul(fe,xe)|0,c=c+Math.imul(fe,Ce)|0,c=c+Math.imul(J,xe)|0,x=x+Math.imul(J,Ce)|0,$=$+Math.imul(I,Be)|0,c=c+Math.imul(I,je)|0,c=c+Math.imul(te,Be)|0,x=x+Math.imul(te,je)|0,$=$+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(se,Ne)|0,x=x+Math.imul(se,Ve)|0,$=$+Math.imul(U,He)|0,c=c+Math.imul(U,We)|0,c=c+Math.imul(P,He)|0,x=x+Math.imul(P,We)|0,$=$+Math.imul(z,ke)|0,c=c+Math.imul(z,Ge)|0,c=c+Math.imul(oe,ke)|0,x=x+Math.imul(oe,Ge)|0;var $t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+($t>>>26)|0,$t&=67108863,$=Math.imul(_e,$e),c=Math.imul(_e,Te),c=c+Math.imul(we,$e)|0,x=Math.imul(we,Te),$=$+Math.imul(he,Oe)|0,c=c+Math.imul(he,Ie)|0,c=c+Math.imul(ge,Oe)|0,x=x+Math.imul(ge,Ie)|0,$=$+Math.imul(X,xe)|0,c=c+Math.imul(X,Ce)|0,c=c+Math.imul(ne,xe)|0,x=x+Math.imul(ne,Ce)|0,$=$+Math.imul(fe,Be)|0,c=c+Math.imul(fe,je)|0,c=c+Math.imul(J,Be)|0,x=x+Math.imul(J,je)|0,$=$+Math.imul(I,Ne)|0,c=c+Math.imul(I,Ve)|0,c=c+Math.imul(te,Ne)|0,x=x+Math.imul(te,Ve)|0,$=$+Math.imul(ie,He)|0,c=c+Math.imul(ie,We)|0,c=c+Math.imul(se,He)|0,x=x+Math.imul(se,We)|0,$=$+Math.imul(U,ke)|0,c=c+Math.imul(U,Ge)|0,c=c+Math.imul(P,ke)|0,x=x+Math.imul(P,Ge)|0,$=$+Math.imul(z,Le)|0,c=c+Math.imul(z,Ke)|0,c=c+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Ke)|0;var At=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(At>>>26)|0,At&=67108863,$=Math.imul(Se,$e),c=Math.imul(Se,Te),c=c+Math.imul(Ae,$e)|0,x=Math.imul(Ae,Te),$=$+Math.imul(_e,Oe)|0,c=c+Math.imul(_e,Ie)|0,c=c+Math.imul(we,Oe)|0,x=x+Math.imul(we,Ie)|0,$=$+Math.imul(he,xe)|0,c=c+Math.imul(he,Ce)|0,c=c+Math.imul(ge,xe)|0,x=x+Math.imul(ge,Ce)|0,$=$+Math.imul(X,Be)|0,c=c+Math.imul(X,je)|0,c=c+Math.imul(ne,Be)|0,x=x+Math.imul(ne,je)|0,$=$+Math.imul(fe,Ne)|0,c=c+Math.imul(fe,Ve)|0,c=c+Math.imul(J,Ne)|0,x=x+Math.imul(J,Ve)|0,$=$+Math.imul(I,He)|0,c=c+Math.imul(I,We)|0,c=c+Math.imul(te,He)|0,x=x+Math.imul(te,We)|0,$=$+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Ge)|0,c=c+Math.imul(se,ke)|0,x=x+Math.imul(se,Ge)|0,$=$+Math.imul(U,Le)|0,c=c+Math.imul(U,Ke)|0,c=c+Math.imul(P,Le)|0,x=x+Math.imul(P,Ke)|0,$=$+Math.imul(z,De)|0,c=c+Math.imul(z,Ze)|0,c=c+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ze)|0;var Rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,$=Math.imul(ve,$e),c=Math.imul(ve,Te),c=c+Math.imul(be,$e)|0,x=Math.imul(be,Te),$=$+Math.imul(Se,Oe)|0,c=c+Math.imul(Se,Ie)|0,c=c+Math.imul(Ae,Oe)|0,x=x+Math.imul(Ae,Ie)|0,$=$+Math.imul(_e,xe)|0,c=c+Math.imul(_e,Ce)|0,c=c+Math.imul(we,xe)|0,x=x+Math.imul(we,Ce)|0,$=$+Math.imul(he,Be)|0,c=c+Math.imul(he,je)|0,c=c+Math.imul(ge,Be)|0,x=x+Math.imul(ge,je)|0,$=$+Math.imul(X,Ne)|0,c=c+Math.imul(X,Ve)|0,c=c+Math.imul(ne,Ne)|0,x=x+Math.imul(ne,Ve)|0,$=$+Math.imul(fe,He)|0,c=c+Math.imul(fe,We)|0,c=c+Math.imul(J,He)|0,x=x+Math.imul(J,We)|0,$=$+Math.imul(I,ke)|0,c=c+Math.imul(I,Ge)|0,c=c+Math.imul(te,ke)|0,x=x+Math.imul(te,Ge)|0,$=$+Math.imul(ie,Le)|0,c=c+Math.imul(ie,Ke)|0,c=c+Math.imul(se,Le)|0,x=x+Math.imul(se,Ke)|0,$=$+Math.imul(U,De)|0,c=c+Math.imul(U,Ze)|0,c=c+Math.imul(P,De)|0,x=x+Math.imul(P,Ze)|0,$=$+Math.imul(z,Fe)|0,c=c+Math.imul(z,ze)|0,c=c+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,ze)|0;var Mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,$=Math.imul(ve,Oe),c=Math.imul(ve,Ie),c=c+Math.imul(be,Oe)|0,x=Math.imul(be,Ie),$=$+Math.imul(Se,xe)|0,c=c+Math.imul(Se,Ce)|0,c=c+Math.imul(Ae,xe)|0,x=x+Math.imul(Ae,Ce)|0,$=$+Math.imul(_e,Be)|0,c=c+Math.imul(_e,je)|0,c=c+Math.imul(we,Be)|0,x=x+Math.imul(we,je)|0,$=$+Math.imul(he,Ne)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(ge,Ne)|0,x=x+Math.imul(ge,Ve)|0,$=$+Math.imul(X,He)|0,c=c+Math.imul(X,We)|0,c=c+Math.imul(ne,He)|0,x=x+Math.imul(ne,We)|0,$=$+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(J,ke)|0,x=x+Math.imul(J,Ge)|0,$=$+Math.imul(I,Le)|0,c=c+Math.imul(I,Ke)|0,c=c+Math.imul(te,Le)|0,x=x+Math.imul(te,Ke)|0,$=$+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ze)|0,c=c+Math.imul(se,De)|0,x=x+Math.imul(se,Ze)|0,$=$+Math.imul(U,Fe)|0,c=c+Math.imul(U,ze)|0,c=c+Math.imul(P,Fe)|0,x=x+Math.imul(P,ze)|0;var ht=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,$=Math.imul(ve,xe),c=Math.imul(ve,Ce),c=c+Math.imul(be,xe)|0,x=Math.imul(be,Ce),$=$+Math.imul(Se,Be)|0,c=c+Math.imul(Se,je)|0,c=c+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,je)|0,$=$+Math.imul(_e,Ne)|0,c=c+Math.imul(_e,Ve)|0,c=c+Math.imul(we,Ne)|0,x=x+Math.imul(we,Ve)|0,$=$+Math.imul(he,He)|0,c=c+Math.imul(he,We)|0,c=c+Math.imul(ge,He)|0,x=x+Math.imul(ge,We)|0,$=$+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Ge)|0,$=$+Math.imul(fe,Le)|0,c=c+Math.imul(fe,Ke)|0,c=c+Math.imul(J,Le)|0,x=x+Math.imul(J,Ke)|0,$=$+Math.imul(I,De)|0,c=c+Math.imul(I,Ze)|0,c=c+Math.imul(te,De)|0,x=x+Math.imul(te,Ze)|0,$=$+Math.imul(ie,Fe)|0,c=c+Math.imul(ie,ze)|0,c=c+Math.imul(se,Fe)|0,x=x+Math.imul(se,ze)|0;var yt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,$=Math.imul(ve,Be),c=Math.imul(ve,je),c=c+Math.imul(be,Be)|0,x=Math.imul(be,je),$=$+Math.imul(Se,Ne)|0,c=c+Math.imul(Se,Ve)|0,c=c+Math.imul(Ae,Ne)|0,x=x+Math.imul(Ae,Ve)|0,$=$+Math.imul(_e,He)|0,c=c+Math.imul(_e,We)|0,c=c+Math.imul(we,He)|0,x=x+Math.imul(we,We)|0,$=$+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(ge,ke)|0,x=x+Math.imul(ge,Ge)|0,$=$+Math.imul(X,Le)|0,c=c+Math.imul(X,Ke)|0,c=c+Math.imul(ne,Le)|0,x=x+Math.imul(ne,Ke)|0,$=$+Math.imul(fe,De)|0,c=c+Math.imul(fe,Ze)|0,c=c+Math.imul(J,De)|0,x=x+Math.imul(J,Ze)|0,$=$+Math.imul(I,Fe)|0,c=c+Math.imul(I,ze)|0,c=c+Math.imul(te,Fe)|0,x=x+Math.imul(te,ze)|0;var gt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(ve,Ne),c=Math.imul(ve,Ve),c=c+Math.imul(be,Ne)|0,x=Math.imul(be,Ve),$=$+Math.imul(Se,He)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Ae,He)|0,x=x+Math.imul(Ae,We)|0,$=$+Math.imul(_e,ke)|0,c=c+Math.imul(_e,Ge)|0,c=c+Math.imul(we,ke)|0,x=x+Math.imul(we,Ge)|0,$=$+Math.imul(he,Le)|0,c=c+Math.imul(he,Ke)|0,c=c+Math.imul(ge,Le)|0,x=x+Math.imul(ge,Ke)|0,$=$+Math.imul(X,De)|0,c=c+Math.imul(X,Ze)|0,c=c+Math.imul(ne,De)|0,x=x+Math.imul(ne,Ze)|0,$=$+Math.imul(fe,Fe)|0,c=c+Math.imul(fe,ze)|0,c=c+Math.imul(J,Fe)|0,x=x+Math.imul(J,ze)|0;var dt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,$=Math.imul(ve,He),c=Math.imul(ve,We),c=c+Math.imul(be,He)|0,x=Math.imul(be,We),$=$+Math.imul(Se,ke)|0,c=c+Math.imul(Se,Ge)|0,c=c+Math.imul(Ae,ke)|0,x=x+Math.imul(Ae,Ge)|0,$=$+Math.imul(_e,Le)|0,c=c+Math.imul(_e,Ke)|0,c=c+Math.imul(we,Le)|0,x=x+Math.imul(we,Ke)|0,$=$+Math.imul(he,De)|0,c=c+Math.imul(he,Ze)|0,c=c+Math.imul(ge,De)|0,x=x+Math.imul(ge,Ze)|0,$=$+Math.imul(X,Fe)|0,c=c+Math.imul(X,ze)|0,c=c+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,ze)|0;var _t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,$=Math.imul(ve,ke),c=Math.imul(ve,Ge),c=c+Math.imul(be,ke)|0,x=Math.imul(be,Ge),$=$+Math.imul(Se,Le)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Ae,Le)|0,x=x+Math.imul(Ae,Ke)|0,$=$+Math.imul(_e,De)|0,c=c+Math.imul(_e,Ze)|0,c=c+Math.imul(we,De)|0,x=x+Math.imul(we,Ze)|0,$=$+Math.imul(he,Fe)|0,c=c+Math.imul(he,ze)|0,c=c+Math.imul(ge,Fe)|0,x=x+Math.imul(ge,ze)|0;var ct=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ct>>>26)|0,ct&=67108863,$=Math.imul(ve,Le),c=Math.imul(ve,Ke),c=c+Math.imul(be,Le)|0,x=Math.imul(be,Ke),$=$+Math.imul(Se,De)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Ae,De)|0,x=x+Math.imul(Ae,Ze)|0,$=$+Math.imul(_e,Fe)|0,c=c+Math.imul(_e,ze)|0,c=c+Math.imul(we,Fe)|0,x=x+Math.imul(we,ze)|0;var pt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(ve,De),c=Math.imul(ve,Ze),c=c+Math.imul(be,De)|0,x=Math.imul(be,Ze),$=$+Math.imul(Se,Fe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,ze)|0;var Et=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,$=Math.imul(ve,Fe),c=Math.imul(ve,ze),c=c+Math.imul(be,Fe)|0,x=Math.imul(be,ze);var xt=(O+$|0)+((c&8191)<<13)|0;return O=(x+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,A[0]=it,A[1]=rt,A[2]=mt,A[3]=bt,A[4]=wt,A[5]=St,A[6]=$t,A[7]=At,A[8]=Rt,A[9]=Mt,A[10]=ht,A[11]=yt,A[12]=gt,A[13]=dt,A[14]=_t,A[15]=ct,A[16]=pt,A[17]=Et,A[18]=xt,O!==0&&(A[19]=O,m.length++),m};Math.imul||(F=L);function q(T,u,v){v.negative=u.negative^T.negative,v.length=T.length+u.length;for(var m=0,b=0,M=0;M>>26)|0,b+=A>>>26,A&=67108863}v.words[M]=O,m=A,A=b}return m!==0?v.words[M]=m:v.length--,v.strip()}function H(T,u,v){var m=new D;return m.mulp(T,u,v)}a.prototype.mulTo=function(u,v){var m,b=this.length+u.length;return this.length===10&&u.length===10?m=F(this,u,v):b<63?m=L(this,u,v):b<1024?m=q(this,u,v):m=H(this,u,v),m};function D(T,u){this.x=T,this.y=u}D.prototype.makeRBT=function(u){for(var v=new Array(u),m=a.prototype._countBits(u)-1,b=0;b>=1;return b},D.prototype.permute=function(u,v,m,b,M,A){for(var O=0;O>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*v;A>=26,v+=b/67108864|0,v+=M>>>26,this.words[m]=M&67108863}return v!==0&&(this.words[m]=v,this.length++),this.length=u===0?1:this.length,this},a.prototype.muln=function(u){return this.clone().imuln(u)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(u){var v=B(u);if(v.length===0)return new a(1);for(var m=this,b=0;b=0);var v=u%26,m=(u-v)/26,b=67108863>>>26-v<<26-v,M;if(v!==0){var A=0;for(M=0;M>>26-v}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var b;v?b=(v-v%26)/26:b=0;var M=u%26,A=Math.min((u-M)/26,this.length),O=67108863^67108863>>>M<A)for(this.length-=A,c=0;c=0&&(x!==0||c>=b);c--){var N=this.words[c]|0;this.words[c]=x<<26-M|N>>>M,x=N&O}return $&&x!==0&&($.words[$.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(u,v,m){return o(this.negative===0),this.iushrn(u,v,m)},a.prototype.shln=function(u){return this.clone().ishln(u)},a.prototype.ushln=function(u){return this.clone().iushln(u)},a.prototype.shrn=function(u){return this.clone().ishrn(u)},a.prototype.ushrn=function(u){return this.clone().iushrn(u)},a.prototype.testn=function(u){o(typeof u=="number"&&u>=0);var v=u%26,m=(u-v)/26,b=1<=0);var v=u%26,m=(u-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(v!==0&&m++,this.length=Math.min(m,this.length),v!==0){var b=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(u){if(o(typeof u=="number"),o(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-($/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(O===0)return this.strip();for(o(O===-1),O=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(u,v){var m=this.length-u.length,b=this.clone(),M=u,A=M.words[M.length-1]|0,O=this._countBits(A);m=26-O,m!==0&&(M=M.ushln(m),b.iushln(m),A=M.words[M.length-1]|0);var $=b.length-M.length,c;if(v!=="mod"){c=new a(null),c.length=$+1,c.words=new Array(c.length);for(var x=0;x=0;z--){var oe=(b.words[M.length+z]|0)*67108864+(b.words[M.length+z-1]|0);for(oe=Math.min(oe/A|0,67108863),b._ishlnsubmul(M,oe,z);b.negative!==0;)oe--,b.negative=0,b._ishlnsubmul(M,1,z),b.isZero()||(b.negative^=1);c&&(c.words[z]=oe)}return c&&c.strip(),b.strip(),v!=="div"&&m!==0&&b.iushrn(m),{div:c||null,mod:b}},a.prototype.divmod=function(u,v,m){if(o(!u.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,M,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,v),v!=="mod"&&(b=A.div.neg()),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(u)),{div:b,mod:M}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),v),v!=="mod"&&(b=A.div.neg()),{div:b,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),v),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(u)),{div:A.div,mod:M}):u.length>this.length||this.cmp(u)<0?{div:new a(0),mod:this}:u.length===1?v==="div"?{div:this.divn(u.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new a(this.modn(u.words[0]))}:this._wordDiv(u,v)},a.prototype.div=function(u){return this.divmod(u,"div",!1).div},a.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},a.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},a.prototype.divRound=function(u){var v=this.divmod(u);if(v.mod.isZero())return v.div;var m=v.div.negative!==0?v.mod.isub(u):v.mod,b=u.ushrn(1),M=u.andln(1),A=m.cmp(b);return A<0||M===1&&A===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modn=function(u){o(u<=67108863);for(var v=(1<<26)%u,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%u;return m},a.prototype.idivn=function(u){o(u<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/u|0,v=b%u}return this.strip()},a.prototype.divn=function(u){return this.clone().idivn(u)},a.prototype.egcd=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=new a(0),O=new a(1),$=0;v.isEven()&&m.isEven();)v.iushrn(1),m.iushrn(1),++$;for(var c=m.clone(),x=v.clone();!v.isZero();){for(var N=0,z=1;!(v.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(v.iushrn(N);N-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(c),M.isub(x)),b.iushrn(1),M.iushrn(1);for(var oe=0,le=1;!(m.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(m.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(c),O.isub(x)),A.iushrn(1),O.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(A),M.isub(O)):(m.isub(v),A.isub(b),O.isub(M))}return{a:A,b:O,gcd:m.iushln($)}},a.prototype._invmp=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=m.clone();v.cmpn(1)>0&&m.cmpn(1)>0;){for(var O=0,$=1;!(v.words[0]&$)&&O<26;++O,$<<=1);if(O>0)for(v.iushrn(O);O-- >0;)b.isOdd()&&b.iadd(A),b.iushrn(1);for(var c=0,x=1;!(m.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(m.iushrn(c);c-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(M)):(m.isub(v),M.isub(b))}var N;return v.cmpn(1)===0?N=b:N=M,N.cmpn(0)<0&&N.iadd(u),N},a.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var v=this.clone(),m=u.clone();v.negative=0,m.negative=0;for(var b=0;v.isEven()&&m.isEven();b++)v.iushrn(1),m.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=v.cmp(m);if(M<0){var A=v;v=m,m=A}else if(M===0||m.cmpn(1)===0)break;v.isub(m)}while(!0);return m.iushln(b)},a.prototype.invm=function(u){return this.egcd(u).a.umod(u)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(u){return this.words[0]&u},a.prototype.bincn=function(u){o(typeof u=="number");var v=u%26,m=(u-v)/26,b=1<>>26,O&=67108863,this.words[A]=O}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(u){var v=u<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var m;if(this.length>1)m=1;else{v&&(u=-u),o(u<=67108863,"Number is too big");var b=this.words[0]|0;m=b===u?0:bu.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,M=u.words[m]|0;if(b!==M){bM&&(v=1);break}}return v},a.prototype.gtn=function(u){return this.cmpn(u)===1},a.prototype.gt=function(u){return this.cmp(u)===1},a.prototype.gten=function(u){return this.cmpn(u)>=0},a.prototype.gte=function(u){return this.cmp(u)>=0},a.prototype.ltn=function(u){return this.cmpn(u)===-1},a.prototype.lt=function(u){return this.cmp(u)===-1},a.prototype.lten=function(u){return this.cmpn(u)<=0},a.prototype.lte=function(u){return this.cmp(u)<=0},a.prototype.eqn=function(u){return this.cmpn(u)===0},a.prototype.eq=function(u){return this.cmp(u)===0},a.red=function(u){return new re(u)},a.prototype.toRed=function(u){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(u){return this.red=u,this},a.prototype.forceRed=function(u){return o(!this.red,"Already a number in reduction context"),this._forceRed(u)},a.prototype.redAdd=function(u){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},a.prototype.redIAdd=function(u){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},a.prototype.redSub=function(u){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},a.prototype.redISub=function(u){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},a.prototype.redShl=function(u){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},a.prototype.redMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},a.prototype.redIMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(u){return o(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var j={k256:null,p224:null,p192:null,p25519:null};function V(T,u){this.name=T,this.p=new a(u,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var u=new a(null);return u.words=new Array(Math.ceil(this.n/13)),u},V.prototype.ireduce=function(u){var v=u,m;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),m=v.bitLength();while(m>this.n);var b=m0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},V.prototype.split=function(u,v){u.iushrn(this.n,0,v)},V.prototype.imulK=function(u){return u.imul(this.k)};function Q(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Q,V),Q.prototype.split=function(u,v){for(var m=4194303,b=Math.min(u.length,9),M=0;M>>22,A=O}A>>>=22,u.words[M-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},Q.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var v=0,m=0;m>>=26,u.words[m]=M,v=b}return v!==0&&(u.words[u.length++]=v),u},a._prime=function(u){if(j[u])return j[u];var v;if(u==="k256")v=new Q;else if(u==="p224")v=new ae;else if(u==="p192")v=new ce;else if(u==="p25519")v=new ue;else throw new Error("Unknown prime "+u);return j[u]=v,v};function re(T){if(typeof T=="string"){var u=a._prime(T);this.m=u.p,this.prime=u}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}re.prototype._verify1=function(u){o(u.negative===0,"red works only with positives"),o(u.red,"red works only with red numbers")},re.prototype._verify2=function(u,v){o((u.negative|v.negative)===0,"red works only with positives"),o(u.red&&u.red===v.red,"red works only with red numbers")},re.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},re.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},re.prototype.add=function(u,v){this._verify2(u,v);var m=u.add(v);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},re.prototype.iadd=function(u,v){this._verify2(u,v);var m=u.iadd(v);return m.cmp(this.m)>=0&&m.isub(this.m),m},re.prototype.sub=function(u,v){this._verify2(u,v);var m=u.sub(v);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},re.prototype.isub=function(u,v){this._verify2(u,v);var m=u.isub(v);return m.cmpn(0)<0&&m.iadd(this.m),m},re.prototype.shl=function(u,v){return this._verify1(u),this.imod(u.ushln(v))},re.prototype.imul=function(u,v){return this._verify2(u,v),this.imod(u.imul(v))},re.prototype.mul=function(u,v){return this._verify2(u,v),this.imod(u.mul(v))},re.prototype.isqr=function(u){return this.imul(u,u.clone())},re.prototype.sqr=function(u){return this.mul(u,u)},re.prototype.sqrt=function(u){if(u.isZero())return u.clone();var v=this.m.andln(3);if(o(v%2===1),v===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(u,m)}for(var b=this.m.subn(1),M=0;!b.isZero()&&b.andln(1)===0;)M++,b.iushrn(1);o(!b.isZero());var A=new a(1).toRed(this),O=A.redNeg(),$=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);this.pow(c,$).cmp(O)!==0;)c.redIAdd(O);for(var x=this.pow(c,b),N=this.pow(u,b.addn(1).iushrn(1)),z=this.pow(u,b),oe=M;z.cmp(A)!==0;){for(var le=z,U=0;le.cmp(A)!==0;U++)le=le.redSqr();o(U=0;M--){for(var x=v.words[M],N=c-1;N>=0;N--){var z=x>>N&1;if(A!==b[0]&&(A=this.sqr(A)),z===0&&O===0){$=0;continue}O<<=1,O|=z,$++,!($!==m&&(M!==0||N!==0))&&(A=this.mul(A,b[O]),$=0,O=0)}c=26}return A},re.prototype.convertTo=function(u){var v=u.umod(this.m);return v===u?v.clone():v},re.prototype.convertFrom=function(u){var v=u.clone();return v.red=null,v},a.mont=function(u){return new pe(u)};function pe(T){re.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(pe,re),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var v=this.imod(u.mul(this.rinv));return v.red=null,v},pe.prototype.imul=function(u,v){if(u.isZero()||v.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,v){if(u.isZero()||v.isZero())return new a(0)._forceRed(this);var m=u.mul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var v=this.imod(u._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(e,commonjsGlobal)})(bn$1);var bnExports$1=bn$1.exports,browser$2,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$2;hasRequiredBrowser=1;var e=requireElliptic(),t=bnExports$1;browser$2=function(d){return new o(d)};var n={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};n.p224=n.secp224r1,n.p256=n.secp256r1=n.prime256v1,n.p192=n.secp192r1=n.prime192v1,n.p384=n.secp384r1,n.p521=n.secp521r1;function o(a){this.curveType=n[a],this.curveType||(this.curveType={name:a}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}o.prototype.generateKeys=function(a,d){return this.keys=this.curve.genKeyPair(),this.getPublicKey(a,d)},o.prototype.computeSecret=function(a,d,y){d=d||"utf8",buffer$2.Buffer.isBuffer(a)||(a=new buffer$2.Buffer(a,d));var w=this.curve.keyFromPublic(a).getPublic(),_=w.mul(this.keys.getPrivate()).getX();return l(_,y,this.curveType.byteLength)},o.prototype.getPublicKey=function(a,d){var y=this.keys.getPublic(d==="compressed",!0);return d==="hybrid"&&(y[y.length-1]%2?y[0]=7:y[0]=6),l(y,a)},o.prototype.getPrivateKey=function(a){return l(this.keys.getPrivate(),a)},o.prototype.setPublicKey=function(a,d){return d=d||"utf8",buffer$2.Buffer.isBuffer(a)||(a=new buffer$2.Buffer(a,d)),this.keys._importPublic(a),this},o.prototype.setPrivateKey=function(a,d){d=d||"utf8",buffer$2.Buffer.isBuffer(a)||(a=new buffer$2.Buffer(a,d));var y=new t(a);return y=y.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(y),this};function l(a,d,y){Array.isArray(a)||(a=a.toArray());var w=new buffer$2.Buffer(a);if(y&&w.length0?u:v},a.min=function(u,v){return u.cmp(v)<0?u:v},a.prototype._init=function(u,v,m){if(typeof u=="number")return this._initNumber(u,v,m);if(typeof u=="object")return this._initArray(u,v,m);v==="hex"&&(v=16),o(v===(v|0)&&v>=2&&v<=36),u=u.toString().replace(/\s+/g,"");var b=0;u[0]==="-"&&(b++,this.negative=1),b=0;b-=3)A=u[b]|u[b-1]<<8|u[b-2]<<16,this.words[M]|=A<>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);else if(m==="le")for(b=0,M=0;b>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);return this.strip()};function y(T,u){var v=T.charCodeAt(u);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function w(T,u,v){var m=y(T,v);return v-1>=u&&(m|=y(T,v-1)<<4),m}a.prototype._parseHex=function(u,v,m){this.length=Math.ceil((u.length-v)/6),this.words=new Array(this.length);for(var b=0;b=v;b-=2)O=w(u,v,b)<=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8;else{var $=u.length-v;for(b=$%2===0?v+1:v;b=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8}this.strip()};function _(T,u,v,m){for(var b=0,M=Math.min(T.length,v),A=u;A=49?b+=O-49+10:O>=17?b+=O-17+10:b+=O}return b}a.prototype._parseBase=function(u,v,m){this.words=[0],this.length=1;for(var b=0,M=1;M<=67108863;M*=v)b++;b--,M=M/v|0;for(var A=u.length-m,O=A%b,$=Math.min(A,A-O)+m,c=0,x=m;x<$;x+=b)c=_(u,x,x+b,v),this.imuln(M),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(O!==0){var N=1;for(c=_(u,x,u.length,v),x=0;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(u,v){u=u||10,v=v|0||1;var m;if(u===16||u==="hex"){m="";for(var b=0,M=0,A=0;A>>24-b&16777215,b+=2,b>=26&&(b-=26,A--),M!==0||A!==this.length-1?m=S[6-$.length]+$+m:m=$+m}for(M!==0&&(m=M.toString(16)+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var c=E[u],x=C[u];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var z=N.modn(x).toString(u);N=N.idivn(x),N.isZero()?m=z+m:m=S[c-z.length]+z+m}for(this.isZero()&&(m="0"+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(u,v){return o(typeof d<"u"),this.toArrayLike(d,u,v)},a.prototype.toArray=function(u,v){return this.toArrayLike(Array,u,v)},a.prototype.toArrayLike=function(u,v,m){var b=this.byteLength(),M=m||Math.max(1,b);o(b<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0"),this.strip();var A=v==="le",O=new u(M),$,c,x=this.clone();if(A){for(c=0;!x.isZero();c++)$=x.andln(255),x.iushrn(8),O[c]=$;for(;c=4096&&(m+=13,v>>>=13),v>=64&&(m+=7,v>>>=7),v>=8&&(m+=4,v>>>=4),v>=2&&(m+=2,v>>>=2),m+v},a.prototype._zeroBits=function(u){if(u===0)return 26;var v=u,m=0;return v&8191||(m+=13,v>>>=13),v&127||(m+=7,v>>>=7),v&15||(m+=4,v>>>=4),v&3||(m+=2,v>>>=2),v&1||m++,m},a.prototype.bitLength=function(){var u=this.words[this.length-1],v=this._countBits(u);return(this.length-1)*26+v};function B(T){for(var u=new Array(T.bitLength()),v=0;v>>b}return u}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,v=0;vu.length?this.clone().ior(u):u.clone().ior(this)},a.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},a.prototype.iuand=function(u){var v;this.length>u.length?v=u:v=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},a.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},a.prototype.iuxor=function(u){var v,m;this.length>u.length?(v=this,m=u):(v=u,m=this);for(var b=0;bu.length?this.clone().ixor(u):u.clone().ixor(this)},a.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},a.prototype.inotn=function(u){o(typeof u=="number"&&u>=0);var v=Math.ceil(u/26)|0,m=u%26;this._expand(v),m>0&&v--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this.strip()},a.prototype.notn=function(u){return this.clone().inotn(u)},a.prototype.setn=function(u,v){o(typeof u=="number"&&u>=0);var m=u/26|0,b=u%26;return this._expand(m+1),v?this.words[m]=this.words[m]|1<u.length?(m=this,b=u):(m=u,b=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Au.length?this.clone().iadd(u):u.clone().iadd(this)},a.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var v=this.iadd(u);return u.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,M;m>0?(b=this,M=u):(b=u,M=this);for(var A=0,O=0;O>26,this.words[O]=v&67108863;for(;A!==0&&O>26,this.words[O]=v&67108863;if(A===0&&O>>26,N=$&67108863,z=Math.min(c,u.length-1),oe=Math.max(0,c-T.length+1);oe<=z;oe++){var le=c-oe|0;b=T.words[le]|0,M=u.words[oe]|0,A=b*M+N,x+=A/67108864|0,N=A&67108863}v.words[c]=N|0,$=x|0}return $!==0?v.words[c]=$|0:v.length--,v.strip()}var F=function(u,v,m){var b=u.words,M=v.words,A=m.words,O=0,$,c,x,N=b[0]|0,z=N&8191,oe=N>>>13,le=b[1]|0,U=le&8191,P=le>>>13,Z=b[2]|0,ie=Z&8191,se=Z>>>13,k=b[3]|0,I=k&8191,te=k>>>13,ee=b[4]|0,fe=ee&8191,J=ee>>>13,Y=b[5]|0,X=Y&8191,ne=Y>>>13,me=b[6]|0,he=me&8191,ge=me>>>13,Re=b[7]|0,_e=Re&8191,we=Re>>>13,qe=b[8]|0,Se=qe&8191,Ae=qe>>>13,Me=b[9]|0,ve=Me&8191,be=Me>>>13,Pe=M[0]|0,$e=Pe&8191,Te=Pe>>>13,Je=M[1]|0,Oe=Je&8191,Ie=Je>>>13,Ye=M[2]|0,xe=Ye&8191,Ce=Ye>>>13,Qe=M[3]|0,Be=Qe&8191,je=Qe>>>13,nt=M[4]|0,Ne=nt&8191,Ve=nt>>>13,ot=M[5]|0,He=ot&8191,We=ot>>>13,st=M[6]|0,ke=st&8191,Ge=st>>>13,lt=M[7]|0,Le=lt&8191,Ke=lt>>>13,ut=M[8]|0,De=ut&8191,Ze=ut>>>13,at=M[9]|0,Fe=at&8191,ze=at>>>13;m.negative=u.negative^v.negative,m.length=19,$=Math.imul(z,$e),c=Math.imul(z,Te),c=c+Math.imul(oe,$e)|0,x=Math.imul(oe,Te);var it=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(it>>>26)|0,it&=67108863,$=Math.imul(U,$e),c=Math.imul(U,Te),c=c+Math.imul(P,$e)|0,x=Math.imul(P,Te),$=$+Math.imul(z,Oe)|0,c=c+Math.imul(z,Ie)|0,c=c+Math.imul(oe,Oe)|0,x=x+Math.imul(oe,Ie)|0;var rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,$=Math.imul(ie,$e),c=Math.imul(ie,Te),c=c+Math.imul(se,$e)|0,x=Math.imul(se,Te),$=$+Math.imul(U,Oe)|0,c=c+Math.imul(U,Ie)|0,c=c+Math.imul(P,Oe)|0,x=x+Math.imul(P,Ie)|0,$=$+Math.imul(z,xe)|0,c=c+Math.imul(z,Ce)|0,c=c+Math.imul(oe,xe)|0,x=x+Math.imul(oe,Ce)|0;var mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,$=Math.imul(I,$e),c=Math.imul(I,Te),c=c+Math.imul(te,$e)|0,x=Math.imul(te,Te),$=$+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Ie)|0,c=c+Math.imul(se,Oe)|0,x=x+Math.imul(se,Ie)|0,$=$+Math.imul(U,xe)|0,c=c+Math.imul(U,Ce)|0,c=c+Math.imul(P,xe)|0,x=x+Math.imul(P,Ce)|0,$=$+Math.imul(z,Be)|0,c=c+Math.imul(z,je)|0,c=c+Math.imul(oe,Be)|0,x=x+Math.imul(oe,je)|0;var bt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,$=Math.imul(fe,$e),c=Math.imul(fe,Te),c=c+Math.imul(J,$e)|0,x=Math.imul(J,Te),$=$+Math.imul(I,Oe)|0,c=c+Math.imul(I,Ie)|0,c=c+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ie)|0,$=$+Math.imul(ie,xe)|0,c=c+Math.imul(ie,Ce)|0,c=c+Math.imul(se,xe)|0,x=x+Math.imul(se,Ce)|0,$=$+Math.imul(U,Be)|0,c=c+Math.imul(U,je)|0,c=c+Math.imul(P,Be)|0,x=x+Math.imul(P,je)|0,$=$+Math.imul(z,Ne)|0,c=c+Math.imul(z,Ve)|0,c=c+Math.imul(oe,Ne)|0,x=x+Math.imul(oe,Ve)|0;var wt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,$=Math.imul(X,$e),c=Math.imul(X,Te),c=c+Math.imul(ne,$e)|0,x=Math.imul(ne,Te),$=$+Math.imul(fe,Oe)|0,c=c+Math.imul(fe,Ie)|0,c=c+Math.imul(J,Oe)|0,x=x+Math.imul(J,Ie)|0,$=$+Math.imul(I,xe)|0,c=c+Math.imul(I,Ce)|0,c=c+Math.imul(te,xe)|0,x=x+Math.imul(te,Ce)|0,$=$+Math.imul(ie,Be)|0,c=c+Math.imul(ie,je)|0,c=c+Math.imul(se,Be)|0,x=x+Math.imul(se,je)|0,$=$+Math.imul(U,Ne)|0,c=c+Math.imul(U,Ve)|0,c=c+Math.imul(P,Ne)|0,x=x+Math.imul(P,Ve)|0,$=$+Math.imul(z,He)|0,c=c+Math.imul(z,We)|0,c=c+Math.imul(oe,He)|0,x=x+Math.imul(oe,We)|0;var St=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(he,$e),c=Math.imul(he,Te),c=c+Math.imul(ge,$e)|0,x=Math.imul(ge,Te),$=$+Math.imul(X,Oe)|0,c=c+Math.imul(X,Ie)|0,c=c+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,Ie)|0,$=$+Math.imul(fe,xe)|0,c=c+Math.imul(fe,Ce)|0,c=c+Math.imul(J,xe)|0,x=x+Math.imul(J,Ce)|0,$=$+Math.imul(I,Be)|0,c=c+Math.imul(I,je)|0,c=c+Math.imul(te,Be)|0,x=x+Math.imul(te,je)|0,$=$+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(se,Ne)|0,x=x+Math.imul(se,Ve)|0,$=$+Math.imul(U,He)|0,c=c+Math.imul(U,We)|0,c=c+Math.imul(P,He)|0,x=x+Math.imul(P,We)|0,$=$+Math.imul(z,ke)|0,c=c+Math.imul(z,Ge)|0,c=c+Math.imul(oe,ke)|0,x=x+Math.imul(oe,Ge)|0;var $t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+($t>>>26)|0,$t&=67108863,$=Math.imul(_e,$e),c=Math.imul(_e,Te),c=c+Math.imul(we,$e)|0,x=Math.imul(we,Te),$=$+Math.imul(he,Oe)|0,c=c+Math.imul(he,Ie)|0,c=c+Math.imul(ge,Oe)|0,x=x+Math.imul(ge,Ie)|0,$=$+Math.imul(X,xe)|0,c=c+Math.imul(X,Ce)|0,c=c+Math.imul(ne,xe)|0,x=x+Math.imul(ne,Ce)|0,$=$+Math.imul(fe,Be)|0,c=c+Math.imul(fe,je)|0,c=c+Math.imul(J,Be)|0,x=x+Math.imul(J,je)|0,$=$+Math.imul(I,Ne)|0,c=c+Math.imul(I,Ve)|0,c=c+Math.imul(te,Ne)|0,x=x+Math.imul(te,Ve)|0,$=$+Math.imul(ie,He)|0,c=c+Math.imul(ie,We)|0,c=c+Math.imul(se,He)|0,x=x+Math.imul(se,We)|0,$=$+Math.imul(U,ke)|0,c=c+Math.imul(U,Ge)|0,c=c+Math.imul(P,ke)|0,x=x+Math.imul(P,Ge)|0,$=$+Math.imul(z,Le)|0,c=c+Math.imul(z,Ke)|0,c=c+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Ke)|0;var At=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(At>>>26)|0,At&=67108863,$=Math.imul(Se,$e),c=Math.imul(Se,Te),c=c+Math.imul(Ae,$e)|0,x=Math.imul(Ae,Te),$=$+Math.imul(_e,Oe)|0,c=c+Math.imul(_e,Ie)|0,c=c+Math.imul(we,Oe)|0,x=x+Math.imul(we,Ie)|0,$=$+Math.imul(he,xe)|0,c=c+Math.imul(he,Ce)|0,c=c+Math.imul(ge,xe)|0,x=x+Math.imul(ge,Ce)|0,$=$+Math.imul(X,Be)|0,c=c+Math.imul(X,je)|0,c=c+Math.imul(ne,Be)|0,x=x+Math.imul(ne,je)|0,$=$+Math.imul(fe,Ne)|0,c=c+Math.imul(fe,Ve)|0,c=c+Math.imul(J,Ne)|0,x=x+Math.imul(J,Ve)|0,$=$+Math.imul(I,He)|0,c=c+Math.imul(I,We)|0,c=c+Math.imul(te,He)|0,x=x+Math.imul(te,We)|0,$=$+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Ge)|0,c=c+Math.imul(se,ke)|0,x=x+Math.imul(se,Ge)|0,$=$+Math.imul(U,Le)|0,c=c+Math.imul(U,Ke)|0,c=c+Math.imul(P,Le)|0,x=x+Math.imul(P,Ke)|0,$=$+Math.imul(z,De)|0,c=c+Math.imul(z,Ze)|0,c=c+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ze)|0;var Rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,$=Math.imul(ve,$e),c=Math.imul(ve,Te),c=c+Math.imul(be,$e)|0,x=Math.imul(be,Te),$=$+Math.imul(Se,Oe)|0,c=c+Math.imul(Se,Ie)|0,c=c+Math.imul(Ae,Oe)|0,x=x+Math.imul(Ae,Ie)|0,$=$+Math.imul(_e,xe)|0,c=c+Math.imul(_e,Ce)|0,c=c+Math.imul(we,xe)|0,x=x+Math.imul(we,Ce)|0,$=$+Math.imul(he,Be)|0,c=c+Math.imul(he,je)|0,c=c+Math.imul(ge,Be)|0,x=x+Math.imul(ge,je)|0,$=$+Math.imul(X,Ne)|0,c=c+Math.imul(X,Ve)|0,c=c+Math.imul(ne,Ne)|0,x=x+Math.imul(ne,Ve)|0,$=$+Math.imul(fe,He)|0,c=c+Math.imul(fe,We)|0,c=c+Math.imul(J,He)|0,x=x+Math.imul(J,We)|0,$=$+Math.imul(I,ke)|0,c=c+Math.imul(I,Ge)|0,c=c+Math.imul(te,ke)|0,x=x+Math.imul(te,Ge)|0,$=$+Math.imul(ie,Le)|0,c=c+Math.imul(ie,Ke)|0,c=c+Math.imul(se,Le)|0,x=x+Math.imul(se,Ke)|0,$=$+Math.imul(U,De)|0,c=c+Math.imul(U,Ze)|0,c=c+Math.imul(P,De)|0,x=x+Math.imul(P,Ze)|0,$=$+Math.imul(z,Fe)|0,c=c+Math.imul(z,ze)|0,c=c+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,ze)|0;var Mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,$=Math.imul(ve,Oe),c=Math.imul(ve,Ie),c=c+Math.imul(be,Oe)|0,x=Math.imul(be,Ie),$=$+Math.imul(Se,xe)|0,c=c+Math.imul(Se,Ce)|0,c=c+Math.imul(Ae,xe)|0,x=x+Math.imul(Ae,Ce)|0,$=$+Math.imul(_e,Be)|0,c=c+Math.imul(_e,je)|0,c=c+Math.imul(we,Be)|0,x=x+Math.imul(we,je)|0,$=$+Math.imul(he,Ne)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(ge,Ne)|0,x=x+Math.imul(ge,Ve)|0,$=$+Math.imul(X,He)|0,c=c+Math.imul(X,We)|0,c=c+Math.imul(ne,He)|0,x=x+Math.imul(ne,We)|0,$=$+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(J,ke)|0,x=x+Math.imul(J,Ge)|0,$=$+Math.imul(I,Le)|0,c=c+Math.imul(I,Ke)|0,c=c+Math.imul(te,Le)|0,x=x+Math.imul(te,Ke)|0,$=$+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ze)|0,c=c+Math.imul(se,De)|0,x=x+Math.imul(se,Ze)|0,$=$+Math.imul(U,Fe)|0,c=c+Math.imul(U,ze)|0,c=c+Math.imul(P,Fe)|0,x=x+Math.imul(P,ze)|0;var ht=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,$=Math.imul(ve,xe),c=Math.imul(ve,Ce),c=c+Math.imul(be,xe)|0,x=Math.imul(be,Ce),$=$+Math.imul(Se,Be)|0,c=c+Math.imul(Se,je)|0,c=c+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,je)|0,$=$+Math.imul(_e,Ne)|0,c=c+Math.imul(_e,Ve)|0,c=c+Math.imul(we,Ne)|0,x=x+Math.imul(we,Ve)|0,$=$+Math.imul(he,He)|0,c=c+Math.imul(he,We)|0,c=c+Math.imul(ge,He)|0,x=x+Math.imul(ge,We)|0,$=$+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Ge)|0,$=$+Math.imul(fe,Le)|0,c=c+Math.imul(fe,Ke)|0,c=c+Math.imul(J,Le)|0,x=x+Math.imul(J,Ke)|0,$=$+Math.imul(I,De)|0,c=c+Math.imul(I,Ze)|0,c=c+Math.imul(te,De)|0,x=x+Math.imul(te,Ze)|0,$=$+Math.imul(ie,Fe)|0,c=c+Math.imul(ie,ze)|0,c=c+Math.imul(se,Fe)|0,x=x+Math.imul(se,ze)|0;var yt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,$=Math.imul(ve,Be),c=Math.imul(ve,je),c=c+Math.imul(be,Be)|0,x=Math.imul(be,je),$=$+Math.imul(Se,Ne)|0,c=c+Math.imul(Se,Ve)|0,c=c+Math.imul(Ae,Ne)|0,x=x+Math.imul(Ae,Ve)|0,$=$+Math.imul(_e,He)|0,c=c+Math.imul(_e,We)|0,c=c+Math.imul(we,He)|0,x=x+Math.imul(we,We)|0,$=$+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(ge,ke)|0,x=x+Math.imul(ge,Ge)|0,$=$+Math.imul(X,Le)|0,c=c+Math.imul(X,Ke)|0,c=c+Math.imul(ne,Le)|0,x=x+Math.imul(ne,Ke)|0,$=$+Math.imul(fe,De)|0,c=c+Math.imul(fe,Ze)|0,c=c+Math.imul(J,De)|0,x=x+Math.imul(J,Ze)|0,$=$+Math.imul(I,Fe)|0,c=c+Math.imul(I,ze)|0,c=c+Math.imul(te,Fe)|0,x=x+Math.imul(te,ze)|0;var gt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(ve,Ne),c=Math.imul(ve,Ve),c=c+Math.imul(be,Ne)|0,x=Math.imul(be,Ve),$=$+Math.imul(Se,He)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Ae,He)|0,x=x+Math.imul(Ae,We)|0,$=$+Math.imul(_e,ke)|0,c=c+Math.imul(_e,Ge)|0,c=c+Math.imul(we,ke)|0,x=x+Math.imul(we,Ge)|0,$=$+Math.imul(he,Le)|0,c=c+Math.imul(he,Ke)|0,c=c+Math.imul(ge,Le)|0,x=x+Math.imul(ge,Ke)|0,$=$+Math.imul(X,De)|0,c=c+Math.imul(X,Ze)|0,c=c+Math.imul(ne,De)|0,x=x+Math.imul(ne,Ze)|0,$=$+Math.imul(fe,Fe)|0,c=c+Math.imul(fe,ze)|0,c=c+Math.imul(J,Fe)|0,x=x+Math.imul(J,ze)|0;var dt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,$=Math.imul(ve,He),c=Math.imul(ve,We),c=c+Math.imul(be,He)|0,x=Math.imul(be,We),$=$+Math.imul(Se,ke)|0,c=c+Math.imul(Se,Ge)|0,c=c+Math.imul(Ae,ke)|0,x=x+Math.imul(Ae,Ge)|0,$=$+Math.imul(_e,Le)|0,c=c+Math.imul(_e,Ke)|0,c=c+Math.imul(we,Le)|0,x=x+Math.imul(we,Ke)|0,$=$+Math.imul(he,De)|0,c=c+Math.imul(he,Ze)|0,c=c+Math.imul(ge,De)|0,x=x+Math.imul(ge,Ze)|0,$=$+Math.imul(X,Fe)|0,c=c+Math.imul(X,ze)|0,c=c+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,ze)|0;var _t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,$=Math.imul(ve,ke),c=Math.imul(ve,Ge),c=c+Math.imul(be,ke)|0,x=Math.imul(be,Ge),$=$+Math.imul(Se,Le)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Ae,Le)|0,x=x+Math.imul(Ae,Ke)|0,$=$+Math.imul(_e,De)|0,c=c+Math.imul(_e,Ze)|0,c=c+Math.imul(we,De)|0,x=x+Math.imul(we,Ze)|0,$=$+Math.imul(he,Fe)|0,c=c+Math.imul(he,ze)|0,c=c+Math.imul(ge,Fe)|0,x=x+Math.imul(ge,ze)|0;var ct=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ct>>>26)|0,ct&=67108863,$=Math.imul(ve,Le),c=Math.imul(ve,Ke),c=c+Math.imul(be,Le)|0,x=Math.imul(be,Ke),$=$+Math.imul(Se,De)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Ae,De)|0,x=x+Math.imul(Ae,Ze)|0,$=$+Math.imul(_e,Fe)|0,c=c+Math.imul(_e,ze)|0,c=c+Math.imul(we,Fe)|0,x=x+Math.imul(we,ze)|0;var pt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(ve,De),c=Math.imul(ve,Ze),c=c+Math.imul(be,De)|0,x=Math.imul(be,Ze),$=$+Math.imul(Se,Fe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,ze)|0;var Et=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,$=Math.imul(ve,Fe),c=Math.imul(ve,ze),c=c+Math.imul(be,Fe)|0,x=Math.imul(be,ze);var xt=(O+$|0)+((c&8191)<<13)|0;return O=(x+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,A[0]=it,A[1]=rt,A[2]=mt,A[3]=bt,A[4]=wt,A[5]=St,A[6]=$t,A[7]=At,A[8]=Rt,A[9]=Mt,A[10]=ht,A[11]=yt,A[12]=gt,A[13]=dt,A[14]=_t,A[15]=ct,A[16]=pt,A[17]=Et,A[18]=xt,O!==0&&(A[19]=O,m.length++),m};Math.imul||(F=L);function q(T,u,v){v.negative=u.negative^T.negative,v.length=T.length+u.length;for(var m=0,b=0,M=0;M>>26)|0,b+=A>>>26,A&=67108863}v.words[M]=O,m=A,A=b}return m!==0?v.words[M]=m:v.length--,v.strip()}function H(T,u,v){var m=new D;return m.mulp(T,u,v)}a.prototype.mulTo=function(u,v){var m,b=this.length+u.length;return this.length===10&&u.length===10?m=F(this,u,v):b<63?m=L(this,u,v):b<1024?m=q(this,u,v):m=H(this,u,v),m};function D(T,u){this.x=T,this.y=u}D.prototype.makeRBT=function(u){for(var v=new Array(u),m=a.prototype._countBits(u)-1,b=0;b>=1;return b},D.prototype.permute=function(u,v,m,b,M,A){for(var O=0;O>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*v;A>=26,v+=b/67108864|0,v+=M>>>26,this.words[m]=M&67108863}return v!==0&&(this.words[m]=v,this.length++),this.length=u===0?1:this.length,this},a.prototype.muln=function(u){return this.clone().imuln(u)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(u){var v=B(u);if(v.length===0)return new a(1);for(var m=this,b=0;b=0);var v=u%26,m=(u-v)/26,b=67108863>>>26-v<<26-v,M;if(v!==0){var A=0;for(M=0;M>>26-v}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var b;v?b=(v-v%26)/26:b=0;var M=u%26,A=Math.min((u-M)/26,this.length),O=67108863^67108863>>>M<A)for(this.length-=A,c=0;c=0&&(x!==0||c>=b);c--){var N=this.words[c]|0;this.words[c]=x<<26-M|N>>>M,x=N&O}return $&&x!==0&&($.words[$.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(u,v,m){return o(this.negative===0),this.iushrn(u,v,m)},a.prototype.shln=function(u){return this.clone().ishln(u)},a.prototype.ushln=function(u){return this.clone().iushln(u)},a.prototype.shrn=function(u){return this.clone().ishrn(u)},a.prototype.ushrn=function(u){return this.clone().iushrn(u)},a.prototype.testn=function(u){o(typeof u=="number"&&u>=0);var v=u%26,m=(u-v)/26,b=1<=0);var v=u%26,m=(u-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(v!==0&&m++,this.length=Math.min(m,this.length),v!==0){var b=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(u){if(o(typeof u=="number"),o(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-($/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(O===0)return this.strip();for(o(O===-1),O=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(u,v){var m=this.length-u.length,b=this.clone(),M=u,A=M.words[M.length-1]|0,O=this._countBits(A);m=26-O,m!==0&&(M=M.ushln(m),b.iushln(m),A=M.words[M.length-1]|0);var $=b.length-M.length,c;if(v!=="mod"){c=new a(null),c.length=$+1,c.words=new Array(c.length);for(var x=0;x=0;z--){var oe=(b.words[M.length+z]|0)*67108864+(b.words[M.length+z-1]|0);for(oe=Math.min(oe/A|0,67108863),b._ishlnsubmul(M,oe,z);b.negative!==0;)oe--,b.negative=0,b._ishlnsubmul(M,1,z),b.isZero()||(b.negative^=1);c&&(c.words[z]=oe)}return c&&c.strip(),b.strip(),v!=="div"&&m!==0&&b.iushrn(m),{div:c||null,mod:b}},a.prototype.divmod=function(u,v,m){if(o(!u.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,M,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,v),v!=="mod"&&(b=A.div.neg()),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(u)),{div:b,mod:M}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),v),v!=="mod"&&(b=A.div.neg()),{div:b,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),v),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(u)),{div:A.div,mod:M}):u.length>this.length||this.cmp(u)<0?{div:new a(0),mod:this}:u.length===1?v==="div"?{div:this.divn(u.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new a(this.modn(u.words[0]))}:this._wordDiv(u,v)},a.prototype.div=function(u){return this.divmod(u,"div",!1).div},a.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},a.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},a.prototype.divRound=function(u){var v=this.divmod(u);if(v.mod.isZero())return v.div;var m=v.div.negative!==0?v.mod.isub(u):v.mod,b=u.ushrn(1),M=u.andln(1),A=m.cmp(b);return A<0||M===1&&A===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modn=function(u){o(u<=67108863);for(var v=(1<<26)%u,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%u;return m},a.prototype.idivn=function(u){o(u<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/u|0,v=b%u}return this.strip()},a.prototype.divn=function(u){return this.clone().idivn(u)},a.prototype.egcd=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=new a(0),O=new a(1),$=0;v.isEven()&&m.isEven();)v.iushrn(1),m.iushrn(1),++$;for(var c=m.clone(),x=v.clone();!v.isZero();){for(var N=0,z=1;!(v.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(v.iushrn(N);N-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(c),M.isub(x)),b.iushrn(1),M.iushrn(1);for(var oe=0,le=1;!(m.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(m.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(c),O.isub(x)),A.iushrn(1),O.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(A),M.isub(O)):(m.isub(v),A.isub(b),O.isub(M))}return{a:A,b:O,gcd:m.iushln($)}},a.prototype._invmp=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=m.clone();v.cmpn(1)>0&&m.cmpn(1)>0;){for(var O=0,$=1;!(v.words[0]&$)&&O<26;++O,$<<=1);if(O>0)for(v.iushrn(O);O-- >0;)b.isOdd()&&b.iadd(A),b.iushrn(1);for(var c=0,x=1;!(m.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(m.iushrn(c);c-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(M)):(m.isub(v),M.isub(b))}var N;return v.cmpn(1)===0?N=b:N=M,N.cmpn(0)<0&&N.iadd(u),N},a.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var v=this.clone(),m=u.clone();v.negative=0,m.negative=0;for(var b=0;v.isEven()&&m.isEven();b++)v.iushrn(1),m.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=v.cmp(m);if(M<0){var A=v;v=m,m=A}else if(M===0||m.cmpn(1)===0)break;v.isub(m)}while(!0);return m.iushln(b)},a.prototype.invm=function(u){return this.egcd(u).a.umod(u)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(u){return this.words[0]&u},a.prototype.bincn=function(u){o(typeof u=="number");var v=u%26,m=(u-v)/26,b=1<>>26,O&=67108863,this.words[A]=O}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(u){var v=u<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var m;if(this.length>1)m=1;else{v&&(u=-u),o(u<=67108863,"Number is too big");var b=this.words[0]|0;m=b===u?0:bu.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,M=u.words[m]|0;if(b!==M){bM&&(v=1);break}}return v},a.prototype.gtn=function(u){return this.cmpn(u)===1},a.prototype.gt=function(u){return this.cmp(u)===1},a.prototype.gten=function(u){return this.cmpn(u)>=0},a.prototype.gte=function(u){return this.cmp(u)>=0},a.prototype.ltn=function(u){return this.cmpn(u)===-1},a.prototype.lt=function(u){return this.cmp(u)===-1},a.prototype.lten=function(u){return this.cmpn(u)<=0},a.prototype.lte=function(u){return this.cmp(u)<=0},a.prototype.eqn=function(u){return this.cmpn(u)===0},a.prototype.eq=function(u){return this.cmp(u)===0},a.red=function(u){return new re(u)},a.prototype.toRed=function(u){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(u){return this.red=u,this},a.prototype.forceRed=function(u){return o(!this.red,"Already a number in reduction context"),this._forceRed(u)},a.prototype.redAdd=function(u){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},a.prototype.redIAdd=function(u){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},a.prototype.redSub=function(u){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},a.prototype.redISub=function(u){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},a.prototype.redShl=function(u){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},a.prototype.redMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},a.prototype.redIMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(u){return o(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var j={k256:null,p224:null,p192:null,p25519:null};function V(T,u){this.name=T,this.p=new a(u,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var u=new a(null);return u.words=new Array(Math.ceil(this.n/13)),u},V.prototype.ireduce=function(u){var v=u,m;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),m=v.bitLength();while(m>this.n);var b=m0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},V.prototype.split=function(u,v){u.iushrn(this.n,0,v)},V.prototype.imulK=function(u){return u.imul(this.k)};function Q(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Q,V),Q.prototype.split=function(u,v){for(var m=4194303,b=Math.min(u.length,9),M=0;M>>22,A=O}A>>>=22,u.words[M-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},Q.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var v=0,m=0;m>>=26,u.words[m]=M,v=b}return v!==0&&(u.words[u.length++]=v),u},a._prime=function(u){if(j[u])return j[u];var v;if(u==="k256")v=new Q;else if(u==="p224")v=new ae;else if(u==="p192")v=new ce;else if(u==="p25519")v=new ue;else throw new Error("Unknown prime "+u);return j[u]=v,v};function re(T){if(typeof T=="string"){var u=a._prime(T);this.m=u.p,this.prime=u}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}re.prototype._verify1=function(u){o(u.negative===0,"red works only with positives"),o(u.red,"red works only with red numbers")},re.prototype._verify2=function(u,v){o((u.negative|v.negative)===0,"red works only with positives"),o(u.red&&u.red===v.red,"red works only with red numbers")},re.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},re.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},re.prototype.add=function(u,v){this._verify2(u,v);var m=u.add(v);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},re.prototype.iadd=function(u,v){this._verify2(u,v);var m=u.iadd(v);return m.cmp(this.m)>=0&&m.isub(this.m),m},re.prototype.sub=function(u,v){this._verify2(u,v);var m=u.sub(v);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},re.prototype.isub=function(u,v){this._verify2(u,v);var m=u.isub(v);return m.cmpn(0)<0&&m.iadd(this.m),m},re.prototype.shl=function(u,v){return this._verify1(u),this.imod(u.ushln(v))},re.prototype.imul=function(u,v){return this._verify2(u,v),this.imod(u.imul(v))},re.prototype.mul=function(u,v){return this._verify2(u,v),this.imod(u.mul(v))},re.prototype.isqr=function(u){return this.imul(u,u.clone())},re.prototype.sqr=function(u){return this.mul(u,u)},re.prototype.sqrt=function(u){if(u.isZero())return u.clone();var v=this.m.andln(3);if(o(v%2===1),v===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(u,m)}for(var b=this.m.subn(1),M=0;!b.isZero()&&b.andln(1)===0;)M++,b.iushrn(1);o(!b.isZero());var A=new a(1).toRed(this),O=A.redNeg(),$=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);this.pow(c,$).cmp(O)!==0;)c.redIAdd(O);for(var x=this.pow(c,b),N=this.pow(u,b.addn(1).iushrn(1)),z=this.pow(u,b),oe=M;z.cmp(A)!==0;){for(var le=z,U=0;le.cmp(A)!==0;U++)le=le.redSqr();o(U=0;M--){for(var x=v.words[M],N=c-1;N>=0;N--){var z=x>>N&1;if(A!==b[0]&&(A=this.sqr(A)),z===0&&O===0){$=0;continue}O<<=1,O|=z,$++,!($!==m&&(M!==0||N!==0))&&(A=this.mul(A,b[O]),$=0,O=0)}c=26}return A},re.prototype.convertTo=function(u){var v=u.umod(this.m);return v===u?v.clone():v},re.prototype.convertFrom=function(u){var v=u.clone();return v.red=null,v},a.mont=function(u){return new pe(u)};function pe(T){re.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(pe,re),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var v=this.imod(u.mul(this.rinv));return v.red=null,v},pe.prototype.imul=function(u,v){if(u.isZero()||v.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,v){if(u.isZero()||v.isZero())return new a(0)._forceRed(this);var m=u.mul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var v=this.imod(u._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(e,commonjsGlobal)})(bn);var bnExports=bn.exports,BN$2=bnExports,Buffer$3=safeBufferExports$1.Buffer;function withPublic$2(e,t){return Buffer$3.from(e.toRed(BN$2.mont(t.modulus)).redPow(new BN$2(t.publicExponent)).fromRed().toArray())}var withPublic_1=withPublic$2,parseKeys$1=parseAsn1,randomBytes=browserExports,createHash$1=browser$9,mgf$1=mgf$2,xor$1=xor$2,BN$1=bnExports,withPublic$1=withPublic_1,crt$1=browserifyRsa,Buffer$2=safeBufferExports$1.Buffer,publicEncrypt=function e(t,n,o){var l;t.padding?l=t.padding:o?l=1:l=4;var a=parseKeys$1(t),d;if(l===4)d=oaep$1(a,n);else if(l===1)d=pkcs1$1(a,n,o);else if(l===3){if(d=new BN$1(n),d.cmp(a.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return o?crt$1(d,a):withPublic$1(d,a)};function oaep$1(e,t){var n=e.modulus.byteLength(),o=t.length,l=createHash$1("sha1").update(Buffer$2.alloc(0)).digest(),a=l.length,d=2*a;if(o>n-d-2)throw new Error("message too long");var y=Buffer$2.alloc(n-o-d-2),w=n-a-1,_=randomBytes(a),S=xor$1(Buffer$2.concat([l,y,Buffer$2.alloc(1,1),t],w),mgf$1(_,w)),E=xor$1(_,mgf$1(S,a));return new BN$1(Buffer$2.concat([Buffer$2.alloc(1),E,S],n))}function pkcs1$1(e,t,n){var o=t.length,l=e.modulus.byteLength();if(o>l-11)throw new Error("message too long");var a;return n?a=Buffer$2.alloc(l-o-3,255):a=nonZero(l-o-3),new BN$1(Buffer$2.concat([Buffer$2.from([0,n?1:2]),a,Buffer$2.alloc(1),t],l))}function nonZero(e){for(var t=Buffer$2.allocUnsafe(e),n=0,o=randomBytes(e*2),l=0,a;nd||new BN(n).cmp(a.modulus)>=0)throw new Error("decryption error");var y;o?y=withPublic(new BN(n),a):y=crt(n,a);var w=Buffer$1.alloc(d-y.length);if(y=Buffer$1.concat([w,y],d),l===4)return oaep(a,y);if(l===1)return pkcs1(a,y,o);if(l===3)return y;throw new Error("unknown padding")};function oaep(e,t){var n=e.modulus.byteLength(),o=createHash("sha1").update(Buffer$1.alloc(0)).digest(),l=o.length;if(t[0]!==0)throw new Error("decryption error");var a=t.slice(1,l+1),d=t.slice(l+1),y=xor(a,mgf(d,l)),w=xor(d,mgf(y,n-l-1));if(compare(o,w.slice(0,l)))throw new Error("decryption error");for(var _=l;w[_]===0;)_++;if(w[_++]!==1)throw new Error("decryption error");return w.slice(_)}function pkcs1(e,t,n){for(var o=t.slice(0,2),l=2,a=0;t[l++]!==0;)if(l>=t.length){a++;break}var d=t.slice(2,l-1);if((o.toString("hex")!=="0002"&&!n||o.toString("hex")!=="0001"&&n)&&a++,d.length<8&&a++,a)throw new Error("decryption error");return t.slice(l)}function compare(e,t){e=Buffer$1.from(e),t=Buffer$1.from(t);var n=0,o=e.length;e.length!==t.length&&(n++,o=Math.min(e.length,t.length));for(var l=-1;++lkMaxUint32||e<0)throw new TypeError("offset must be a uint32");if(e>kBufferMaxLength||e>t)throw new RangeError("offset out of range")}function assertSize(e,t,n){if(typeof e!="number"||e!==e)throw new TypeError("size must be a number");if(e>kMaxUint32||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>kBufferMaxLength)throw new RangeError("buffer too small")}crypto$1&&crypto$1.getRandomValues||!api$2.browser?(browser.randomFill=randomFill,browser.randomFillSync=randomFillSync):(browser.randomFill=oldBrowser,browser.randomFillSync=oldBrowser);function randomFill(e,t,n,o){if(!Buffer.isBuffer(e)&&!(e instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof t=="function")o=t,t=0,n=e.length;else if(typeof n=="function")o=n,n=e.length-t;else if(typeof o!="function")throw new TypeError('"cb" argument must be a function');return assertOffset(t,e.length),assertSize(n,t,e.length),actualFill(e,t,n,o)}function actualFill(e,t,n,o){if(api$2.browser){var l=e.buffer,a=new Uint8Array(l,t,n);if(crypto$1.getRandomValues(a),o){api$2.nextTick(function(){o(null,e)});return}return e}if(o){randombytes(n,function(y,w){if(y)return o(y);w.copy(e,t),o(null,e)});return}var d=randombytes(n);return d.copy(e,t),e}function randomFillSync(e,t,n){if(typeof t>"u"&&(t=0),!Buffer.isBuffer(e)&&!(e instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return assertOffset(t,e.length),n===void 0&&(n=e.length-t),assertSize(n,t,e.length),actualFill(e,t,n)}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports,cryptoBrowserify.createHash=cryptoBrowserify.Hash=browser$9,cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=browser$8;var e=algos,t=Object.keys(e),n=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);cryptoBrowserify.getHashes=function(){return n};var o=browser$7;cryptoBrowserify.pbkdf2=o.pbkdf2,cryptoBrowserify.pbkdf2Sync=o.pbkdf2Sync;var l=browser$6;cryptoBrowserify.Cipher=l.Cipher,cryptoBrowserify.createCipher=l.createCipher,cryptoBrowserify.Cipheriv=l.Cipheriv,cryptoBrowserify.createCipheriv=l.createCipheriv,cryptoBrowserify.Decipher=l.Decipher,cryptoBrowserify.createDecipher=l.createDecipher,cryptoBrowserify.Decipheriv=l.Decipheriv,cryptoBrowserify.createDecipheriv=l.createDecipheriv,cryptoBrowserify.getCiphers=l.getCiphers,cryptoBrowserify.listCiphers=l.listCiphers;var a=requireBrowser$2();cryptoBrowserify.DiffieHellmanGroup=a.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=a.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=a.getDiffieHellman,cryptoBrowserify.createDiffieHellman=a.createDiffieHellman,cryptoBrowserify.DiffieHellman=a.DiffieHellman;var d=requireBrowser$1();cryptoBrowserify.createSign=d.createSign,cryptoBrowserify.Sign=d.Sign,cryptoBrowserify.createVerify=d.createVerify,cryptoBrowserify.Verify=d.Verify,cryptoBrowserify.createECDH=requireBrowser();var y=browser$1;cryptoBrowserify.publicEncrypt=y.publicEncrypt,cryptoBrowserify.privateEncrypt=y.privateEncrypt,cryptoBrowserify.publicDecrypt=y.publicDecrypt,cryptoBrowserify.privateDecrypt=y.privateDecrypt;var w=browser;return cryptoBrowserify.randomFill=w.randomFill,cryptoBrowserify.randomFillSync=w.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet +`)},pem}var hasRequiredEncoders;function requireEncoders(){return hasRequiredEncoders||(hasRequiredEncoders=1,function(e){var t=e;t.der=requireDer(),t.pem=requirePem()}(encoders)),encoders}var hasRequiredAsn1;function requireAsn1(){return hasRequiredAsn1||(hasRequiredAsn1=1,function(e){var t=e;t.bignum=bnExports$2,t.define=requireApi().define,t.base=requireBase(),t.constants=requireConstants(),t.decoders=requireDecoders(),t.encoders=requireEncoders()}(asn1$2)),asn1$2}var asn=requireAsn1(),Time=asn.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),AttributeTypeValue=asn.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),AlgorithmIdentifier$1=asn.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),SubjectPublicKeyInfo=asn.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(AlgorithmIdentifier$1),this.key("subjectPublicKey").bitstr())}),RelativeDistinguishedName=asn.define("RelativeDistinguishedName",function(){this.setof(AttributeTypeValue)}),RDNSequence=asn.define("RDNSequence",function(){this.seqof(RelativeDistinguishedName)}),Name=asn.define("Name",function(){this.choice({rdnSequence:this.use(RDNSequence)})}),Validity=asn.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Time),this.key("notAfter").use(Time))}),Extension=asn.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),TBSCertificate=asn.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(AlgorithmIdentifier$1),this.key("issuer").use(Name),this.key("validity").use(Validity),this.key("subject").use(Name),this.key("subjectPublicKeyInfo").use(SubjectPublicKeyInfo),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(Extension).optional())}),X509Certificate=asn.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(TBSCertificate),this.key("signatureAlgorithm").use(AlgorithmIdentifier$1),this.key("signatureValue").bitstr())}),certificate=X509Certificate,asn1$1=requireAsn1();asn1$3.certificate=certificate;var RSAPrivateKey=asn1$1.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});asn1$3.RSAPrivateKey=RSAPrivateKey;var RSAPublicKey=asn1$1.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});asn1$3.RSAPublicKey=RSAPublicKey;var AlgorithmIdentifier=asn1$1.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),PublicKey=asn1$1.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(AlgorithmIdentifier),this.key("subjectPublicKey").bitstr())});asn1$3.PublicKey=PublicKey;var PrivateKeyInfo=asn1$1.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(AlgorithmIdentifier),this.key("subjectPrivateKey").octstr())});asn1$3.PrivateKey=PrivateKeyInfo;var EncryptedPrivateKeyInfo=asn1$1.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});asn1$3.EncryptedPrivateKey=EncryptedPrivateKeyInfo;var DSAPrivateKey=asn1$1.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});asn1$3.DSAPrivateKey=DSAPrivateKey;asn1$3.DSAparam=asn1$1.define("DSAparam",function(){this.int()});var ECParameters=asn1$1.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),ECPrivateKey=asn1$1.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(ECParameters),this.key("publicKey").optional().explicit(1).bitstr())});asn1$3.ECPrivateKey=ECPrivateKey;asn1$3.signature=asn1$1.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});const require$$1={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var findProc=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,startRegex=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,fullRegex=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,evp=evp_bytestokey,ciphers$1=browser$5,Buffer$6=requireSafeBuffer().Buffer,fixProc$1=function(e,t){var n=e.toString(),o=n.match(findProc),l;if(o){var d="aes"+o[1],y=Buffer$6.from(o[2],"hex"),w=Buffer$6.from(o[3].replace(/[\r\n]/g,""),"base64"),_=evp(t,y.slice(0,8),parseInt(o[1],10)).key,S=[],E=ciphers$1.createDecipheriv(d,_,y);S.push(E.update(w)),S.push(E.final()),l=Buffer$6.concat(S)}else{var a=n.match(fullRegex);l=Buffer$6.from(a[2].replace(/[\r\n]/g,""),"base64")}var C=n.match(startRegex)[1];return{tag:C,data:l}},asn1=asn1$3,aesid=require$$1,fixProc=fixProc$1,ciphers=browser$5,compat=browser$7,Buffer$5=requireSafeBuffer().Buffer;function decrypt(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,o=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),l=aesid[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,d=e.subjectPrivateKey,y=parseInt(l.split("-")[1],10)/8,w=compat.pbkdf2Sync(t,n,o,y,"sha1"),_=ciphers.createDecipheriv(l,w,a),S=[];return S.push(_.update(d)),S.push(_.final()),Buffer$5.concat(S)}function parseKeys$2(e){var t;typeof e=="object"&&!Buffer$5.isBuffer(e)&&(t=e.passphrase,e=e.key),typeof e=="string"&&(e=Buffer$5.from(e));var n=fixProc(e,t),o=n.tag,l=n.data,a,d;switch(o){case"CERTIFICATE":d=asn1.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(d||(d=asn1.PublicKey.decode(l,"der")),a=d.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return asn1.RSAPublicKey.decode(d.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return d.subjectPrivateKey=d.subjectPublicKey,{type:"ec",data:d};case"1.2.840.10040.4.1":return d.algorithm.params.pub_key=asn1.DSAparam.decode(d.subjectPublicKey.data,"der"),{type:"dsa",data:d.algorithm.params};default:throw new Error("unknown key id "+a)}case"ENCRYPTED PRIVATE KEY":l=asn1.EncryptedPrivateKey.decode(l,"der"),l=decrypt(l,t);case"PRIVATE KEY":switch(d=asn1.PrivateKey.decode(l,"der"),a=d.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return asn1.RSAPrivateKey.decode(d.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:d.algorithm.curve,privateKey:asn1.ECPrivateKey.decode(d.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return d.algorithm.params.priv_key=asn1.DSAparam.decode(d.subjectPrivateKey,"der"),{type:"dsa",params:d.algorithm.params};default:throw new Error("unknown key id "+a)}case"RSA PUBLIC KEY":return asn1.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return asn1.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:asn1.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return l=asn1.ECPrivateKey.decode(l,"der"),{curve:l.parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+o)}}parseKeys$2.signature=asn1.signature;var parseAsn1=parseKeys$2;const require$$4={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var hasRequiredSign;function requireSign(){if(hasRequiredSign)return sign.exports;hasRequiredSign=1;var e=requireSafeBuffer().Buffer,t=browser$8,n=browserifyRsa,o=requireElliptic().ec,l=bnExports$4,a=parseAsn1,d=require$$4,y=1;function w(H,D,j,V,Q){var ae=a(D);if(ae.curve){if(V!=="ecdsa"&&V!=="ecdsa/rsa")throw new Error("wrong private key type");return _(H,ae)}else if(ae.type==="dsa"){if(V!=="dsa")throw new Error("wrong private key type");return S(H,ae,j)}if(V!=="rsa"&&V!=="ecdsa/rsa")throw new Error("wrong private key type");if(D.padding!==void 0&&D.padding!==y)throw new Error("illegal or unsupported padding mode");H=e.concat([Q,H]);for(var ce=ae.modulus.byteLength(),ue=[0,1];H.length+ue.length+10&&j.ishrn(V),j}function L(H,D){H=B(H,D),H=H.mod(D);var j=e.from(H.toArray());if(j.length=0)throw new Error("invalid sig")}return verify_1=a,verify_1}var browser$3,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$3;hasRequiredBrowser$1=1;var e=requireSafeBuffer().Buffer,t=browser$9,n=readableBrowserExports,o=inherits_browserExports,l=requireSign(),a=requireVerify(),d=require$$6;Object.keys(d).forEach(function(E){d[E].id=e.from(d[E].id,"hex"),d[E.toLowerCase()]=d[E]});function y(E){n.Writable.call(this);var C=d[E];if(!C)throw new Error("Unknown message digest");this._hashType=C.hash,this._hash=t(C.hash),this._tag=C.id,this._signType=C.sign}o(y,n.Writable),y.prototype._write=function(C,B,L){this._hash.update(C),L()},y.prototype.update=function(C,B){return this._hash.update(typeof C=="string"?e.from(C,B):C),this},y.prototype.sign=function(C,B){this.end();var L=this._hash.digest(),F=l(L,C,this._hashType,this._signType,this._tag);return B?F.toString(B):F};function w(E){n.Writable.call(this);var C=d[E];if(!C)throw new Error("Unknown message digest");this._hash=t(C.hash),this._tag=C.id,this._signType=C.sign}o(w,n.Writable),w.prototype._write=function(C,B,L){this._hash.update(C),L()},w.prototype.update=function(C,B){return this._hash.update(typeof C=="string"?e.from(C,B):C),this},w.prototype.verify=function(C,B,L){var F=typeof B=="string"?e.from(B,L):B;this.end();var q=this._hash.digest();return a(F,q,C,this._signType,this._tag)};function _(E){return new y(E)}function S(E){return new w(E)}return browser$3={Sign:_,Verify:S,createSign:_,createVerify:S},browser$3}var bn$1={exports:{}};bn$1.exports;(function(e){(function(t,n){function o(T,u){if(!T)throw new Error(u||"Assertion failed")}function l(T,u){T.super_=u;var v=function(){};v.prototype=u.prototype,T.prototype=new v,T.prototype.constructor=T}function a(T,u,v){if(a.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((u==="le"||u==="be")&&(v=u,u=10),this._init(T||0,u||10,v||"be"))}typeof t=="object"?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=buffer$2.Buffer}catch{}a.isBN=function(u){return u instanceof a?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===a.wordSize&&Array.isArray(u.words)},a.max=function(u,v){return u.cmp(v)>0?u:v},a.min=function(u,v){return u.cmp(v)<0?u:v},a.prototype._init=function(u,v,m){if(typeof u=="number")return this._initNumber(u,v,m);if(typeof u=="object")return this._initArray(u,v,m);v==="hex"&&(v=16),o(v===(v|0)&&v>=2&&v<=36),u=u.toString().replace(/\s+/g,"");var b=0;u[0]==="-"&&(b++,this.negative=1),b=0;b-=3)A=u[b]|u[b-1]<<8|u[b-2]<<16,this.words[M]|=A<>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);else if(m==="le")for(b=0,M=0;b>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);return this.strip()};function y(T,u){var v=T.charCodeAt(u);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function w(T,u,v){var m=y(T,v);return v-1>=u&&(m|=y(T,v-1)<<4),m}a.prototype._parseHex=function(u,v,m){this.length=Math.ceil((u.length-v)/6),this.words=new Array(this.length);for(var b=0;b=v;b-=2)O=w(u,v,b)<=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8;else{var $=u.length-v;for(b=$%2===0?v+1:v;b=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8}this.strip()};function _(T,u,v,m){for(var b=0,M=Math.min(T.length,v),A=u;A=49?b+=O-49+10:O>=17?b+=O-17+10:b+=O}return b}a.prototype._parseBase=function(u,v,m){this.words=[0],this.length=1;for(var b=0,M=1;M<=67108863;M*=v)b++;b--,M=M/v|0;for(var A=u.length-m,O=A%b,$=Math.min(A,A-O)+m,c=0,x=m;x<$;x+=b)c=_(u,x,x+b,v),this.imuln(M),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(O!==0){var N=1;for(c=_(u,x,u.length,v),x=0;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(u,v){u=u||10,v=v|0||1;var m;if(u===16||u==="hex"){m="";for(var b=0,M=0,A=0;A>>24-b&16777215,b+=2,b>=26&&(b-=26,A--),M!==0||A!==this.length-1?m=S[6-$.length]+$+m:m=$+m}for(M!==0&&(m=M.toString(16)+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var c=E[u],x=C[u];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var z=N.modn(x).toString(u);N=N.idivn(x),N.isZero()?m=z+m:m=S[c-z.length]+z+m}for(this.isZero()&&(m="0"+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(u,v){return o(typeof d<"u"),this.toArrayLike(d,u,v)},a.prototype.toArray=function(u,v){return this.toArrayLike(Array,u,v)},a.prototype.toArrayLike=function(u,v,m){var b=this.byteLength(),M=m||Math.max(1,b);o(b<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0"),this.strip();var A=v==="le",O=new u(M),$,c,x=this.clone();if(A){for(c=0;!x.isZero();c++)$=x.andln(255),x.iushrn(8),O[c]=$;for(;c=4096&&(m+=13,v>>>=13),v>=64&&(m+=7,v>>>=7),v>=8&&(m+=4,v>>>=4),v>=2&&(m+=2,v>>>=2),m+v},a.prototype._zeroBits=function(u){if(u===0)return 26;var v=u,m=0;return v&8191||(m+=13,v>>>=13),v&127||(m+=7,v>>>=7),v&15||(m+=4,v>>>=4),v&3||(m+=2,v>>>=2),v&1||m++,m},a.prototype.bitLength=function(){var u=this.words[this.length-1],v=this._countBits(u);return(this.length-1)*26+v};function B(T){for(var u=new Array(T.bitLength()),v=0;v>>b}return u}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,v=0;vu.length?this.clone().ior(u):u.clone().ior(this)},a.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},a.prototype.iuand=function(u){var v;this.length>u.length?v=u:v=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},a.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},a.prototype.iuxor=function(u){var v,m;this.length>u.length?(v=this,m=u):(v=u,m=this);for(var b=0;bu.length?this.clone().ixor(u):u.clone().ixor(this)},a.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},a.prototype.inotn=function(u){o(typeof u=="number"&&u>=0);var v=Math.ceil(u/26)|0,m=u%26;this._expand(v),m>0&&v--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this.strip()},a.prototype.notn=function(u){return this.clone().inotn(u)},a.prototype.setn=function(u,v){o(typeof u=="number"&&u>=0);var m=u/26|0,b=u%26;return this._expand(m+1),v?this.words[m]=this.words[m]|1<u.length?(m=this,b=u):(m=u,b=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Au.length?this.clone().iadd(u):u.clone().iadd(this)},a.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var v=this.iadd(u);return u.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,M;m>0?(b=this,M=u):(b=u,M=this);for(var A=0,O=0;O>26,this.words[O]=v&67108863;for(;A!==0&&O>26,this.words[O]=v&67108863;if(A===0&&O>>26,N=$&67108863,z=Math.min(c,u.length-1),oe=Math.max(0,c-T.length+1);oe<=z;oe++){var le=c-oe|0;b=T.words[le]|0,M=u.words[oe]|0,A=b*M+N,x+=A/67108864|0,N=A&67108863}v.words[c]=N|0,$=x|0}return $!==0?v.words[c]=$|0:v.length--,v.strip()}var F=function(u,v,m){var b=u.words,M=v.words,A=m.words,O=0,$,c,x,N=b[0]|0,z=N&8191,oe=N>>>13,le=b[1]|0,U=le&8191,P=le>>>13,Z=b[2]|0,ie=Z&8191,se=Z>>>13,k=b[3]|0,I=k&8191,te=k>>>13,ee=b[4]|0,fe=ee&8191,J=ee>>>13,Y=b[5]|0,X=Y&8191,ne=Y>>>13,me=b[6]|0,he=me&8191,ge=me>>>13,Re=b[7]|0,_e=Re&8191,we=Re>>>13,qe=b[8]|0,Se=qe&8191,Ae=qe>>>13,Me=b[9]|0,ve=Me&8191,be=Me>>>13,Pe=M[0]|0,$e=Pe&8191,Te=Pe>>>13,Je=M[1]|0,Oe=Je&8191,Ie=Je>>>13,Ye=M[2]|0,xe=Ye&8191,Ce=Ye>>>13,Qe=M[3]|0,Be=Qe&8191,je=Qe>>>13,nt=M[4]|0,Ne=nt&8191,Ve=nt>>>13,ot=M[5]|0,He=ot&8191,We=ot>>>13,st=M[6]|0,ke=st&8191,Ge=st>>>13,lt=M[7]|0,Le=lt&8191,Ke=lt>>>13,ut=M[8]|0,De=ut&8191,Ze=ut>>>13,at=M[9]|0,Fe=at&8191,ze=at>>>13;m.negative=u.negative^v.negative,m.length=19,$=Math.imul(z,$e),c=Math.imul(z,Te),c=c+Math.imul(oe,$e)|0,x=Math.imul(oe,Te);var it=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(it>>>26)|0,it&=67108863,$=Math.imul(U,$e),c=Math.imul(U,Te),c=c+Math.imul(P,$e)|0,x=Math.imul(P,Te),$=$+Math.imul(z,Oe)|0,c=c+Math.imul(z,Ie)|0,c=c+Math.imul(oe,Oe)|0,x=x+Math.imul(oe,Ie)|0;var rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,$=Math.imul(ie,$e),c=Math.imul(ie,Te),c=c+Math.imul(se,$e)|0,x=Math.imul(se,Te),$=$+Math.imul(U,Oe)|0,c=c+Math.imul(U,Ie)|0,c=c+Math.imul(P,Oe)|0,x=x+Math.imul(P,Ie)|0,$=$+Math.imul(z,xe)|0,c=c+Math.imul(z,Ce)|0,c=c+Math.imul(oe,xe)|0,x=x+Math.imul(oe,Ce)|0;var mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,$=Math.imul(I,$e),c=Math.imul(I,Te),c=c+Math.imul(te,$e)|0,x=Math.imul(te,Te),$=$+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Ie)|0,c=c+Math.imul(se,Oe)|0,x=x+Math.imul(se,Ie)|0,$=$+Math.imul(U,xe)|0,c=c+Math.imul(U,Ce)|0,c=c+Math.imul(P,xe)|0,x=x+Math.imul(P,Ce)|0,$=$+Math.imul(z,Be)|0,c=c+Math.imul(z,je)|0,c=c+Math.imul(oe,Be)|0,x=x+Math.imul(oe,je)|0;var bt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,$=Math.imul(fe,$e),c=Math.imul(fe,Te),c=c+Math.imul(J,$e)|0,x=Math.imul(J,Te),$=$+Math.imul(I,Oe)|0,c=c+Math.imul(I,Ie)|0,c=c+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ie)|0,$=$+Math.imul(ie,xe)|0,c=c+Math.imul(ie,Ce)|0,c=c+Math.imul(se,xe)|0,x=x+Math.imul(se,Ce)|0,$=$+Math.imul(U,Be)|0,c=c+Math.imul(U,je)|0,c=c+Math.imul(P,Be)|0,x=x+Math.imul(P,je)|0,$=$+Math.imul(z,Ne)|0,c=c+Math.imul(z,Ve)|0,c=c+Math.imul(oe,Ne)|0,x=x+Math.imul(oe,Ve)|0;var wt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,$=Math.imul(X,$e),c=Math.imul(X,Te),c=c+Math.imul(ne,$e)|0,x=Math.imul(ne,Te),$=$+Math.imul(fe,Oe)|0,c=c+Math.imul(fe,Ie)|0,c=c+Math.imul(J,Oe)|0,x=x+Math.imul(J,Ie)|0,$=$+Math.imul(I,xe)|0,c=c+Math.imul(I,Ce)|0,c=c+Math.imul(te,xe)|0,x=x+Math.imul(te,Ce)|0,$=$+Math.imul(ie,Be)|0,c=c+Math.imul(ie,je)|0,c=c+Math.imul(se,Be)|0,x=x+Math.imul(se,je)|0,$=$+Math.imul(U,Ne)|0,c=c+Math.imul(U,Ve)|0,c=c+Math.imul(P,Ne)|0,x=x+Math.imul(P,Ve)|0,$=$+Math.imul(z,He)|0,c=c+Math.imul(z,We)|0,c=c+Math.imul(oe,He)|0,x=x+Math.imul(oe,We)|0;var St=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(he,$e),c=Math.imul(he,Te),c=c+Math.imul(ge,$e)|0,x=Math.imul(ge,Te),$=$+Math.imul(X,Oe)|0,c=c+Math.imul(X,Ie)|0,c=c+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,Ie)|0,$=$+Math.imul(fe,xe)|0,c=c+Math.imul(fe,Ce)|0,c=c+Math.imul(J,xe)|0,x=x+Math.imul(J,Ce)|0,$=$+Math.imul(I,Be)|0,c=c+Math.imul(I,je)|0,c=c+Math.imul(te,Be)|0,x=x+Math.imul(te,je)|0,$=$+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(se,Ne)|0,x=x+Math.imul(se,Ve)|0,$=$+Math.imul(U,He)|0,c=c+Math.imul(U,We)|0,c=c+Math.imul(P,He)|0,x=x+Math.imul(P,We)|0,$=$+Math.imul(z,ke)|0,c=c+Math.imul(z,Ge)|0,c=c+Math.imul(oe,ke)|0,x=x+Math.imul(oe,Ge)|0;var $t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+($t>>>26)|0,$t&=67108863,$=Math.imul(_e,$e),c=Math.imul(_e,Te),c=c+Math.imul(we,$e)|0,x=Math.imul(we,Te),$=$+Math.imul(he,Oe)|0,c=c+Math.imul(he,Ie)|0,c=c+Math.imul(ge,Oe)|0,x=x+Math.imul(ge,Ie)|0,$=$+Math.imul(X,xe)|0,c=c+Math.imul(X,Ce)|0,c=c+Math.imul(ne,xe)|0,x=x+Math.imul(ne,Ce)|0,$=$+Math.imul(fe,Be)|0,c=c+Math.imul(fe,je)|0,c=c+Math.imul(J,Be)|0,x=x+Math.imul(J,je)|0,$=$+Math.imul(I,Ne)|0,c=c+Math.imul(I,Ve)|0,c=c+Math.imul(te,Ne)|0,x=x+Math.imul(te,Ve)|0,$=$+Math.imul(ie,He)|0,c=c+Math.imul(ie,We)|0,c=c+Math.imul(se,He)|0,x=x+Math.imul(se,We)|0,$=$+Math.imul(U,ke)|0,c=c+Math.imul(U,Ge)|0,c=c+Math.imul(P,ke)|0,x=x+Math.imul(P,Ge)|0,$=$+Math.imul(z,Le)|0,c=c+Math.imul(z,Ke)|0,c=c+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Ke)|0;var At=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(At>>>26)|0,At&=67108863,$=Math.imul(Se,$e),c=Math.imul(Se,Te),c=c+Math.imul(Ae,$e)|0,x=Math.imul(Ae,Te),$=$+Math.imul(_e,Oe)|0,c=c+Math.imul(_e,Ie)|0,c=c+Math.imul(we,Oe)|0,x=x+Math.imul(we,Ie)|0,$=$+Math.imul(he,xe)|0,c=c+Math.imul(he,Ce)|0,c=c+Math.imul(ge,xe)|0,x=x+Math.imul(ge,Ce)|0,$=$+Math.imul(X,Be)|0,c=c+Math.imul(X,je)|0,c=c+Math.imul(ne,Be)|0,x=x+Math.imul(ne,je)|0,$=$+Math.imul(fe,Ne)|0,c=c+Math.imul(fe,Ve)|0,c=c+Math.imul(J,Ne)|0,x=x+Math.imul(J,Ve)|0,$=$+Math.imul(I,He)|0,c=c+Math.imul(I,We)|0,c=c+Math.imul(te,He)|0,x=x+Math.imul(te,We)|0,$=$+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Ge)|0,c=c+Math.imul(se,ke)|0,x=x+Math.imul(se,Ge)|0,$=$+Math.imul(U,Le)|0,c=c+Math.imul(U,Ke)|0,c=c+Math.imul(P,Le)|0,x=x+Math.imul(P,Ke)|0,$=$+Math.imul(z,De)|0,c=c+Math.imul(z,Ze)|0,c=c+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ze)|0;var Rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,$=Math.imul(ve,$e),c=Math.imul(ve,Te),c=c+Math.imul(be,$e)|0,x=Math.imul(be,Te),$=$+Math.imul(Se,Oe)|0,c=c+Math.imul(Se,Ie)|0,c=c+Math.imul(Ae,Oe)|0,x=x+Math.imul(Ae,Ie)|0,$=$+Math.imul(_e,xe)|0,c=c+Math.imul(_e,Ce)|0,c=c+Math.imul(we,xe)|0,x=x+Math.imul(we,Ce)|0,$=$+Math.imul(he,Be)|0,c=c+Math.imul(he,je)|0,c=c+Math.imul(ge,Be)|0,x=x+Math.imul(ge,je)|0,$=$+Math.imul(X,Ne)|0,c=c+Math.imul(X,Ve)|0,c=c+Math.imul(ne,Ne)|0,x=x+Math.imul(ne,Ve)|0,$=$+Math.imul(fe,He)|0,c=c+Math.imul(fe,We)|0,c=c+Math.imul(J,He)|0,x=x+Math.imul(J,We)|0,$=$+Math.imul(I,ke)|0,c=c+Math.imul(I,Ge)|0,c=c+Math.imul(te,ke)|0,x=x+Math.imul(te,Ge)|0,$=$+Math.imul(ie,Le)|0,c=c+Math.imul(ie,Ke)|0,c=c+Math.imul(se,Le)|0,x=x+Math.imul(se,Ke)|0,$=$+Math.imul(U,De)|0,c=c+Math.imul(U,Ze)|0,c=c+Math.imul(P,De)|0,x=x+Math.imul(P,Ze)|0,$=$+Math.imul(z,Fe)|0,c=c+Math.imul(z,ze)|0,c=c+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,ze)|0;var Mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,$=Math.imul(ve,Oe),c=Math.imul(ve,Ie),c=c+Math.imul(be,Oe)|0,x=Math.imul(be,Ie),$=$+Math.imul(Se,xe)|0,c=c+Math.imul(Se,Ce)|0,c=c+Math.imul(Ae,xe)|0,x=x+Math.imul(Ae,Ce)|0,$=$+Math.imul(_e,Be)|0,c=c+Math.imul(_e,je)|0,c=c+Math.imul(we,Be)|0,x=x+Math.imul(we,je)|0,$=$+Math.imul(he,Ne)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(ge,Ne)|0,x=x+Math.imul(ge,Ve)|0,$=$+Math.imul(X,He)|0,c=c+Math.imul(X,We)|0,c=c+Math.imul(ne,He)|0,x=x+Math.imul(ne,We)|0,$=$+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(J,ke)|0,x=x+Math.imul(J,Ge)|0,$=$+Math.imul(I,Le)|0,c=c+Math.imul(I,Ke)|0,c=c+Math.imul(te,Le)|0,x=x+Math.imul(te,Ke)|0,$=$+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ze)|0,c=c+Math.imul(se,De)|0,x=x+Math.imul(se,Ze)|0,$=$+Math.imul(U,Fe)|0,c=c+Math.imul(U,ze)|0,c=c+Math.imul(P,Fe)|0,x=x+Math.imul(P,ze)|0;var ht=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,$=Math.imul(ve,xe),c=Math.imul(ve,Ce),c=c+Math.imul(be,xe)|0,x=Math.imul(be,Ce),$=$+Math.imul(Se,Be)|0,c=c+Math.imul(Se,je)|0,c=c+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,je)|0,$=$+Math.imul(_e,Ne)|0,c=c+Math.imul(_e,Ve)|0,c=c+Math.imul(we,Ne)|0,x=x+Math.imul(we,Ve)|0,$=$+Math.imul(he,He)|0,c=c+Math.imul(he,We)|0,c=c+Math.imul(ge,He)|0,x=x+Math.imul(ge,We)|0,$=$+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Ge)|0,$=$+Math.imul(fe,Le)|0,c=c+Math.imul(fe,Ke)|0,c=c+Math.imul(J,Le)|0,x=x+Math.imul(J,Ke)|0,$=$+Math.imul(I,De)|0,c=c+Math.imul(I,Ze)|0,c=c+Math.imul(te,De)|0,x=x+Math.imul(te,Ze)|0,$=$+Math.imul(ie,Fe)|0,c=c+Math.imul(ie,ze)|0,c=c+Math.imul(se,Fe)|0,x=x+Math.imul(se,ze)|0;var yt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,$=Math.imul(ve,Be),c=Math.imul(ve,je),c=c+Math.imul(be,Be)|0,x=Math.imul(be,je),$=$+Math.imul(Se,Ne)|0,c=c+Math.imul(Se,Ve)|0,c=c+Math.imul(Ae,Ne)|0,x=x+Math.imul(Ae,Ve)|0,$=$+Math.imul(_e,He)|0,c=c+Math.imul(_e,We)|0,c=c+Math.imul(we,He)|0,x=x+Math.imul(we,We)|0,$=$+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(ge,ke)|0,x=x+Math.imul(ge,Ge)|0,$=$+Math.imul(X,Le)|0,c=c+Math.imul(X,Ke)|0,c=c+Math.imul(ne,Le)|0,x=x+Math.imul(ne,Ke)|0,$=$+Math.imul(fe,De)|0,c=c+Math.imul(fe,Ze)|0,c=c+Math.imul(J,De)|0,x=x+Math.imul(J,Ze)|0,$=$+Math.imul(I,Fe)|0,c=c+Math.imul(I,ze)|0,c=c+Math.imul(te,Fe)|0,x=x+Math.imul(te,ze)|0;var gt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(ve,Ne),c=Math.imul(ve,Ve),c=c+Math.imul(be,Ne)|0,x=Math.imul(be,Ve),$=$+Math.imul(Se,He)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Ae,He)|0,x=x+Math.imul(Ae,We)|0,$=$+Math.imul(_e,ke)|0,c=c+Math.imul(_e,Ge)|0,c=c+Math.imul(we,ke)|0,x=x+Math.imul(we,Ge)|0,$=$+Math.imul(he,Le)|0,c=c+Math.imul(he,Ke)|0,c=c+Math.imul(ge,Le)|0,x=x+Math.imul(ge,Ke)|0,$=$+Math.imul(X,De)|0,c=c+Math.imul(X,Ze)|0,c=c+Math.imul(ne,De)|0,x=x+Math.imul(ne,Ze)|0,$=$+Math.imul(fe,Fe)|0,c=c+Math.imul(fe,ze)|0,c=c+Math.imul(J,Fe)|0,x=x+Math.imul(J,ze)|0;var dt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,$=Math.imul(ve,He),c=Math.imul(ve,We),c=c+Math.imul(be,He)|0,x=Math.imul(be,We),$=$+Math.imul(Se,ke)|0,c=c+Math.imul(Se,Ge)|0,c=c+Math.imul(Ae,ke)|0,x=x+Math.imul(Ae,Ge)|0,$=$+Math.imul(_e,Le)|0,c=c+Math.imul(_e,Ke)|0,c=c+Math.imul(we,Le)|0,x=x+Math.imul(we,Ke)|0,$=$+Math.imul(he,De)|0,c=c+Math.imul(he,Ze)|0,c=c+Math.imul(ge,De)|0,x=x+Math.imul(ge,Ze)|0,$=$+Math.imul(X,Fe)|0,c=c+Math.imul(X,ze)|0,c=c+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,ze)|0;var _t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,$=Math.imul(ve,ke),c=Math.imul(ve,Ge),c=c+Math.imul(be,ke)|0,x=Math.imul(be,Ge),$=$+Math.imul(Se,Le)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Ae,Le)|0,x=x+Math.imul(Ae,Ke)|0,$=$+Math.imul(_e,De)|0,c=c+Math.imul(_e,Ze)|0,c=c+Math.imul(we,De)|0,x=x+Math.imul(we,Ze)|0,$=$+Math.imul(he,Fe)|0,c=c+Math.imul(he,ze)|0,c=c+Math.imul(ge,Fe)|0,x=x+Math.imul(ge,ze)|0;var ct=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ct>>>26)|0,ct&=67108863,$=Math.imul(ve,Le),c=Math.imul(ve,Ke),c=c+Math.imul(be,Le)|0,x=Math.imul(be,Ke),$=$+Math.imul(Se,De)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Ae,De)|0,x=x+Math.imul(Ae,Ze)|0,$=$+Math.imul(_e,Fe)|0,c=c+Math.imul(_e,ze)|0,c=c+Math.imul(we,Fe)|0,x=x+Math.imul(we,ze)|0;var pt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(ve,De),c=Math.imul(ve,Ze),c=c+Math.imul(be,De)|0,x=Math.imul(be,Ze),$=$+Math.imul(Se,Fe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,ze)|0;var Et=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,$=Math.imul(ve,Fe),c=Math.imul(ve,ze),c=c+Math.imul(be,Fe)|0,x=Math.imul(be,ze);var xt=(O+$|0)+((c&8191)<<13)|0;return O=(x+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,A[0]=it,A[1]=rt,A[2]=mt,A[3]=bt,A[4]=wt,A[5]=St,A[6]=$t,A[7]=At,A[8]=Rt,A[9]=Mt,A[10]=ht,A[11]=yt,A[12]=gt,A[13]=dt,A[14]=_t,A[15]=ct,A[16]=pt,A[17]=Et,A[18]=xt,O!==0&&(A[19]=O,m.length++),m};Math.imul||(F=L);function q(T,u,v){v.negative=u.negative^T.negative,v.length=T.length+u.length;for(var m=0,b=0,M=0;M>>26)|0,b+=A>>>26,A&=67108863}v.words[M]=O,m=A,A=b}return m!==0?v.words[M]=m:v.length--,v.strip()}function H(T,u,v){var m=new D;return m.mulp(T,u,v)}a.prototype.mulTo=function(u,v){var m,b=this.length+u.length;return this.length===10&&u.length===10?m=F(this,u,v):b<63?m=L(this,u,v):b<1024?m=q(this,u,v):m=H(this,u,v),m};function D(T,u){this.x=T,this.y=u}D.prototype.makeRBT=function(u){for(var v=new Array(u),m=a.prototype._countBits(u)-1,b=0;b>=1;return b},D.prototype.permute=function(u,v,m,b,M,A){for(var O=0;O>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*v;A>=26,v+=b/67108864|0,v+=M>>>26,this.words[m]=M&67108863}return v!==0&&(this.words[m]=v,this.length++),this.length=u===0?1:this.length,this},a.prototype.muln=function(u){return this.clone().imuln(u)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(u){var v=B(u);if(v.length===0)return new a(1);for(var m=this,b=0;b=0);var v=u%26,m=(u-v)/26,b=67108863>>>26-v<<26-v,M;if(v!==0){var A=0;for(M=0;M>>26-v}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var b;v?b=(v-v%26)/26:b=0;var M=u%26,A=Math.min((u-M)/26,this.length),O=67108863^67108863>>>M<A)for(this.length-=A,c=0;c=0&&(x!==0||c>=b);c--){var N=this.words[c]|0;this.words[c]=x<<26-M|N>>>M,x=N&O}return $&&x!==0&&($.words[$.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(u,v,m){return o(this.negative===0),this.iushrn(u,v,m)},a.prototype.shln=function(u){return this.clone().ishln(u)},a.prototype.ushln=function(u){return this.clone().iushln(u)},a.prototype.shrn=function(u){return this.clone().ishrn(u)},a.prototype.ushrn=function(u){return this.clone().iushrn(u)},a.prototype.testn=function(u){o(typeof u=="number"&&u>=0);var v=u%26,m=(u-v)/26,b=1<=0);var v=u%26,m=(u-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(v!==0&&m++,this.length=Math.min(m,this.length),v!==0){var b=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(u){if(o(typeof u=="number"),o(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-($/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(O===0)return this.strip();for(o(O===-1),O=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(u,v){var m=this.length-u.length,b=this.clone(),M=u,A=M.words[M.length-1]|0,O=this._countBits(A);m=26-O,m!==0&&(M=M.ushln(m),b.iushln(m),A=M.words[M.length-1]|0);var $=b.length-M.length,c;if(v!=="mod"){c=new a(null),c.length=$+1,c.words=new Array(c.length);for(var x=0;x=0;z--){var oe=(b.words[M.length+z]|0)*67108864+(b.words[M.length+z-1]|0);for(oe=Math.min(oe/A|0,67108863),b._ishlnsubmul(M,oe,z);b.negative!==0;)oe--,b.negative=0,b._ishlnsubmul(M,1,z),b.isZero()||(b.negative^=1);c&&(c.words[z]=oe)}return c&&c.strip(),b.strip(),v!=="div"&&m!==0&&b.iushrn(m),{div:c||null,mod:b}},a.prototype.divmod=function(u,v,m){if(o(!u.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,M,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,v),v!=="mod"&&(b=A.div.neg()),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(u)),{div:b,mod:M}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),v),v!=="mod"&&(b=A.div.neg()),{div:b,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),v),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(u)),{div:A.div,mod:M}):u.length>this.length||this.cmp(u)<0?{div:new a(0),mod:this}:u.length===1?v==="div"?{div:this.divn(u.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new a(this.modn(u.words[0]))}:this._wordDiv(u,v)},a.prototype.div=function(u){return this.divmod(u,"div",!1).div},a.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},a.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},a.prototype.divRound=function(u){var v=this.divmod(u);if(v.mod.isZero())return v.div;var m=v.div.negative!==0?v.mod.isub(u):v.mod,b=u.ushrn(1),M=u.andln(1),A=m.cmp(b);return A<0||M===1&&A===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modn=function(u){o(u<=67108863);for(var v=(1<<26)%u,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%u;return m},a.prototype.idivn=function(u){o(u<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/u|0,v=b%u}return this.strip()},a.prototype.divn=function(u){return this.clone().idivn(u)},a.prototype.egcd=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=new a(0),O=new a(1),$=0;v.isEven()&&m.isEven();)v.iushrn(1),m.iushrn(1),++$;for(var c=m.clone(),x=v.clone();!v.isZero();){for(var N=0,z=1;!(v.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(v.iushrn(N);N-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(c),M.isub(x)),b.iushrn(1),M.iushrn(1);for(var oe=0,le=1;!(m.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(m.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(c),O.isub(x)),A.iushrn(1),O.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(A),M.isub(O)):(m.isub(v),A.isub(b),O.isub(M))}return{a:A,b:O,gcd:m.iushln($)}},a.prototype._invmp=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=m.clone();v.cmpn(1)>0&&m.cmpn(1)>0;){for(var O=0,$=1;!(v.words[0]&$)&&O<26;++O,$<<=1);if(O>0)for(v.iushrn(O);O-- >0;)b.isOdd()&&b.iadd(A),b.iushrn(1);for(var c=0,x=1;!(m.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(m.iushrn(c);c-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(M)):(m.isub(v),M.isub(b))}var N;return v.cmpn(1)===0?N=b:N=M,N.cmpn(0)<0&&N.iadd(u),N},a.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var v=this.clone(),m=u.clone();v.negative=0,m.negative=0;for(var b=0;v.isEven()&&m.isEven();b++)v.iushrn(1),m.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=v.cmp(m);if(M<0){var A=v;v=m,m=A}else if(M===0||m.cmpn(1)===0)break;v.isub(m)}while(!0);return m.iushln(b)},a.prototype.invm=function(u){return this.egcd(u).a.umod(u)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(u){return this.words[0]&u},a.prototype.bincn=function(u){o(typeof u=="number");var v=u%26,m=(u-v)/26,b=1<>>26,O&=67108863,this.words[A]=O}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(u){var v=u<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var m;if(this.length>1)m=1;else{v&&(u=-u),o(u<=67108863,"Number is too big");var b=this.words[0]|0;m=b===u?0:bu.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,M=u.words[m]|0;if(b!==M){bM&&(v=1);break}}return v},a.prototype.gtn=function(u){return this.cmpn(u)===1},a.prototype.gt=function(u){return this.cmp(u)===1},a.prototype.gten=function(u){return this.cmpn(u)>=0},a.prototype.gte=function(u){return this.cmp(u)>=0},a.prototype.ltn=function(u){return this.cmpn(u)===-1},a.prototype.lt=function(u){return this.cmp(u)===-1},a.prototype.lten=function(u){return this.cmpn(u)<=0},a.prototype.lte=function(u){return this.cmp(u)<=0},a.prototype.eqn=function(u){return this.cmpn(u)===0},a.prototype.eq=function(u){return this.cmp(u)===0},a.red=function(u){return new re(u)},a.prototype.toRed=function(u){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(u){return this.red=u,this},a.prototype.forceRed=function(u){return o(!this.red,"Already a number in reduction context"),this._forceRed(u)},a.prototype.redAdd=function(u){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},a.prototype.redIAdd=function(u){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},a.prototype.redSub=function(u){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},a.prototype.redISub=function(u){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},a.prototype.redShl=function(u){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},a.prototype.redMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},a.prototype.redIMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(u){return o(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var j={k256:null,p224:null,p192:null,p25519:null};function V(T,u){this.name=T,this.p=new a(u,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var u=new a(null);return u.words=new Array(Math.ceil(this.n/13)),u},V.prototype.ireduce=function(u){var v=u,m;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),m=v.bitLength();while(m>this.n);var b=m0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},V.prototype.split=function(u,v){u.iushrn(this.n,0,v)},V.prototype.imulK=function(u){return u.imul(this.k)};function Q(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Q,V),Q.prototype.split=function(u,v){for(var m=4194303,b=Math.min(u.length,9),M=0;M>>22,A=O}A>>>=22,u.words[M-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},Q.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var v=0,m=0;m>>=26,u.words[m]=M,v=b}return v!==0&&(u.words[u.length++]=v),u},a._prime=function(u){if(j[u])return j[u];var v;if(u==="k256")v=new Q;else if(u==="p224")v=new ae;else if(u==="p192")v=new ce;else if(u==="p25519")v=new ue;else throw new Error("Unknown prime "+u);return j[u]=v,v};function re(T){if(typeof T=="string"){var u=a._prime(T);this.m=u.p,this.prime=u}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}re.prototype._verify1=function(u){o(u.negative===0,"red works only with positives"),o(u.red,"red works only with red numbers")},re.prototype._verify2=function(u,v){o((u.negative|v.negative)===0,"red works only with positives"),o(u.red&&u.red===v.red,"red works only with red numbers")},re.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},re.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},re.prototype.add=function(u,v){this._verify2(u,v);var m=u.add(v);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},re.prototype.iadd=function(u,v){this._verify2(u,v);var m=u.iadd(v);return m.cmp(this.m)>=0&&m.isub(this.m),m},re.prototype.sub=function(u,v){this._verify2(u,v);var m=u.sub(v);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},re.prototype.isub=function(u,v){this._verify2(u,v);var m=u.isub(v);return m.cmpn(0)<0&&m.iadd(this.m),m},re.prototype.shl=function(u,v){return this._verify1(u),this.imod(u.ushln(v))},re.prototype.imul=function(u,v){return this._verify2(u,v),this.imod(u.imul(v))},re.prototype.mul=function(u,v){return this._verify2(u,v),this.imod(u.mul(v))},re.prototype.isqr=function(u){return this.imul(u,u.clone())},re.prototype.sqr=function(u){return this.mul(u,u)},re.prototype.sqrt=function(u){if(u.isZero())return u.clone();var v=this.m.andln(3);if(o(v%2===1),v===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(u,m)}for(var b=this.m.subn(1),M=0;!b.isZero()&&b.andln(1)===0;)M++,b.iushrn(1);o(!b.isZero());var A=new a(1).toRed(this),O=A.redNeg(),$=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);this.pow(c,$).cmp(O)!==0;)c.redIAdd(O);for(var x=this.pow(c,b),N=this.pow(u,b.addn(1).iushrn(1)),z=this.pow(u,b),oe=M;z.cmp(A)!==0;){for(var le=z,U=0;le.cmp(A)!==0;U++)le=le.redSqr();o(U=0;M--){for(var x=v.words[M],N=c-1;N>=0;N--){var z=x>>N&1;if(A!==b[0]&&(A=this.sqr(A)),z===0&&O===0){$=0;continue}O<<=1,O|=z,$++,!($!==m&&(M!==0||N!==0))&&(A=this.mul(A,b[O]),$=0,O=0)}c=26}return A},re.prototype.convertTo=function(u){var v=u.umod(this.m);return v===u?v.clone():v},re.prototype.convertFrom=function(u){var v=u.clone();return v.red=null,v},a.mont=function(u){return new pe(u)};function pe(T){re.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(pe,re),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var v=this.imod(u.mul(this.rinv));return v.red=null,v},pe.prototype.imul=function(u,v){if(u.isZero()||v.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,v){if(u.isZero()||v.isZero())return new a(0)._forceRed(this);var m=u.mul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var v=this.imod(u._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(e,commonjsGlobal)})(bn$1);var bnExports$1=bn$1.exports,browser$2,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$2;hasRequiredBrowser=1;var e=requireElliptic(),t=bnExports$1;browser$2=function(d){return new o(d)};var n={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};n.p224=n.secp224r1,n.p256=n.secp256r1=n.prime256v1,n.p192=n.secp192r1=n.prime192v1,n.p384=n.secp384r1,n.p521=n.secp521r1;function o(a){this.curveType=n[a],this.curveType||(this.curveType={name:a}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}o.prototype.generateKeys=function(a,d){return this.keys=this.curve.genKeyPair(),this.getPublicKey(a,d)},o.prototype.computeSecret=function(a,d,y){d=d||"utf8",buffer$2.Buffer.isBuffer(a)||(a=new buffer$2.Buffer(a,d));var w=this.curve.keyFromPublic(a).getPublic(),_=w.mul(this.keys.getPrivate()).getX();return l(_,y,this.curveType.byteLength)},o.prototype.getPublicKey=function(a,d){var y=this.keys.getPublic(d==="compressed",!0);return d==="hybrid"&&(y[y.length-1]%2?y[0]=7:y[0]=6),l(y,a)},o.prototype.getPrivateKey=function(a){return l(this.keys.getPrivate(),a)},o.prototype.setPublicKey=function(a,d){return d=d||"utf8",buffer$2.Buffer.isBuffer(a)||(a=new buffer$2.Buffer(a,d)),this.keys._importPublic(a),this},o.prototype.setPrivateKey=function(a,d){d=d||"utf8",buffer$2.Buffer.isBuffer(a)||(a=new buffer$2.Buffer(a,d));var y=new t(a);return y=y.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(y),this};function l(a,d,y){Array.isArray(a)||(a=a.toArray());var w=new buffer$2.Buffer(a);if(y&&w.length0?u:v},a.min=function(u,v){return u.cmp(v)<0?u:v},a.prototype._init=function(u,v,m){if(typeof u=="number")return this._initNumber(u,v,m);if(typeof u=="object")return this._initArray(u,v,m);v==="hex"&&(v=16),o(v===(v|0)&&v>=2&&v<=36),u=u.toString().replace(/\s+/g,"");var b=0;u[0]==="-"&&(b++,this.negative=1),b=0;b-=3)A=u[b]|u[b-1]<<8|u[b-2]<<16,this.words[M]|=A<>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);else if(m==="le")for(b=0,M=0;b>>26-O&67108863,O+=24,O>=26&&(O-=26,M++);return this.strip()};function y(T,u){var v=T.charCodeAt(u);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function w(T,u,v){var m=y(T,v);return v-1>=u&&(m|=y(T,v-1)<<4),m}a.prototype._parseHex=function(u,v,m){this.length=Math.ceil((u.length-v)/6),this.words=new Array(this.length);for(var b=0;b=v;b-=2)O=w(u,v,b)<=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8;else{var $=u.length-v;for(b=$%2===0?v+1:v;b=18?(M-=18,A+=1,this.words[A]|=O>>>26):M+=8}this.strip()};function _(T,u,v,m){for(var b=0,M=Math.min(T.length,v),A=u;A=49?b+=O-49+10:O>=17?b+=O-17+10:b+=O}return b}a.prototype._parseBase=function(u,v,m){this.words=[0],this.length=1;for(var b=0,M=1;M<=67108863;M*=v)b++;b--,M=M/v|0;for(var A=u.length-m,O=A%b,$=Math.min(A,A-O)+m,c=0,x=m;x<$;x+=b)c=_(u,x,x+b,v),this.imuln(M),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(O!==0){var N=1;for(c=_(u,x,u.length,v),x=0;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(u,v){u=u||10,v=v|0||1;var m;if(u===16||u==="hex"){m="";for(var b=0,M=0,A=0;A>>24-b&16777215,b+=2,b>=26&&(b-=26,A--),M!==0||A!==this.length-1?m=S[6-$.length]+$+m:m=$+m}for(M!==0&&(m=M.toString(16)+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var c=E[u],x=C[u];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var z=N.modn(x).toString(u);N=N.idivn(x),N.isZero()?m=z+m:m=S[c-z.length]+z+m}for(this.isZero()&&(m="0"+m);m.length%v!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(u,v){return o(typeof d<"u"),this.toArrayLike(d,u,v)},a.prototype.toArray=function(u,v){return this.toArrayLike(Array,u,v)},a.prototype.toArrayLike=function(u,v,m){var b=this.byteLength(),M=m||Math.max(1,b);o(b<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0"),this.strip();var A=v==="le",O=new u(M),$,c,x=this.clone();if(A){for(c=0;!x.isZero();c++)$=x.andln(255),x.iushrn(8),O[c]=$;for(;c=4096&&(m+=13,v>>>=13),v>=64&&(m+=7,v>>>=7),v>=8&&(m+=4,v>>>=4),v>=2&&(m+=2,v>>>=2),m+v},a.prototype._zeroBits=function(u){if(u===0)return 26;var v=u,m=0;return v&8191||(m+=13,v>>>=13),v&127||(m+=7,v>>>=7),v&15||(m+=4,v>>>=4),v&3||(m+=2,v>>>=2),v&1||m++,m},a.prototype.bitLength=function(){var u=this.words[this.length-1],v=this._countBits(u);return(this.length-1)*26+v};function B(T){for(var u=new Array(T.bitLength()),v=0;v>>b}return u}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,v=0;vu.length?this.clone().ior(u):u.clone().ior(this)},a.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},a.prototype.iuand=function(u){var v;this.length>u.length?v=u:v=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},a.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},a.prototype.iuxor=function(u){var v,m;this.length>u.length?(v=this,m=u):(v=u,m=this);for(var b=0;bu.length?this.clone().ixor(u):u.clone().ixor(this)},a.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},a.prototype.inotn=function(u){o(typeof u=="number"&&u>=0);var v=Math.ceil(u/26)|0,m=u%26;this._expand(v),m>0&&v--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this.strip()},a.prototype.notn=function(u){return this.clone().inotn(u)},a.prototype.setn=function(u,v){o(typeof u=="number"&&u>=0);var m=u/26|0,b=u%26;return this._expand(m+1),v?this.words[m]=this.words[m]|1<u.length?(m=this,b=u):(m=u,b=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Au.length?this.clone().iadd(u):u.clone().iadd(this)},a.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var v=this.iadd(u);return u.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,M;m>0?(b=this,M=u):(b=u,M=this);for(var A=0,O=0;O>26,this.words[O]=v&67108863;for(;A!==0&&O>26,this.words[O]=v&67108863;if(A===0&&O>>26,N=$&67108863,z=Math.min(c,u.length-1),oe=Math.max(0,c-T.length+1);oe<=z;oe++){var le=c-oe|0;b=T.words[le]|0,M=u.words[oe]|0,A=b*M+N,x+=A/67108864|0,N=A&67108863}v.words[c]=N|0,$=x|0}return $!==0?v.words[c]=$|0:v.length--,v.strip()}var F=function(u,v,m){var b=u.words,M=v.words,A=m.words,O=0,$,c,x,N=b[0]|0,z=N&8191,oe=N>>>13,le=b[1]|0,U=le&8191,P=le>>>13,Z=b[2]|0,ie=Z&8191,se=Z>>>13,k=b[3]|0,I=k&8191,te=k>>>13,ee=b[4]|0,fe=ee&8191,J=ee>>>13,Y=b[5]|0,X=Y&8191,ne=Y>>>13,me=b[6]|0,he=me&8191,ge=me>>>13,Re=b[7]|0,_e=Re&8191,we=Re>>>13,qe=b[8]|0,Se=qe&8191,Ae=qe>>>13,Me=b[9]|0,ve=Me&8191,be=Me>>>13,Pe=M[0]|0,$e=Pe&8191,Te=Pe>>>13,Je=M[1]|0,Oe=Je&8191,Ie=Je>>>13,Ye=M[2]|0,xe=Ye&8191,Ce=Ye>>>13,Qe=M[3]|0,Be=Qe&8191,je=Qe>>>13,nt=M[4]|0,Ne=nt&8191,Ve=nt>>>13,ot=M[5]|0,He=ot&8191,We=ot>>>13,st=M[6]|0,ke=st&8191,Ge=st>>>13,lt=M[7]|0,Le=lt&8191,Ke=lt>>>13,ut=M[8]|0,De=ut&8191,Ze=ut>>>13,at=M[9]|0,Fe=at&8191,ze=at>>>13;m.negative=u.negative^v.negative,m.length=19,$=Math.imul(z,$e),c=Math.imul(z,Te),c=c+Math.imul(oe,$e)|0,x=Math.imul(oe,Te);var it=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(it>>>26)|0,it&=67108863,$=Math.imul(U,$e),c=Math.imul(U,Te),c=c+Math.imul(P,$e)|0,x=Math.imul(P,Te),$=$+Math.imul(z,Oe)|0,c=c+Math.imul(z,Ie)|0,c=c+Math.imul(oe,Oe)|0,x=x+Math.imul(oe,Ie)|0;var rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,$=Math.imul(ie,$e),c=Math.imul(ie,Te),c=c+Math.imul(se,$e)|0,x=Math.imul(se,Te),$=$+Math.imul(U,Oe)|0,c=c+Math.imul(U,Ie)|0,c=c+Math.imul(P,Oe)|0,x=x+Math.imul(P,Ie)|0,$=$+Math.imul(z,xe)|0,c=c+Math.imul(z,Ce)|0,c=c+Math.imul(oe,xe)|0,x=x+Math.imul(oe,Ce)|0;var mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,$=Math.imul(I,$e),c=Math.imul(I,Te),c=c+Math.imul(te,$e)|0,x=Math.imul(te,Te),$=$+Math.imul(ie,Oe)|0,c=c+Math.imul(ie,Ie)|0,c=c+Math.imul(se,Oe)|0,x=x+Math.imul(se,Ie)|0,$=$+Math.imul(U,xe)|0,c=c+Math.imul(U,Ce)|0,c=c+Math.imul(P,xe)|0,x=x+Math.imul(P,Ce)|0,$=$+Math.imul(z,Be)|0,c=c+Math.imul(z,je)|0,c=c+Math.imul(oe,Be)|0,x=x+Math.imul(oe,je)|0;var bt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,$=Math.imul(fe,$e),c=Math.imul(fe,Te),c=c+Math.imul(J,$e)|0,x=Math.imul(J,Te),$=$+Math.imul(I,Oe)|0,c=c+Math.imul(I,Ie)|0,c=c+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ie)|0,$=$+Math.imul(ie,xe)|0,c=c+Math.imul(ie,Ce)|0,c=c+Math.imul(se,xe)|0,x=x+Math.imul(se,Ce)|0,$=$+Math.imul(U,Be)|0,c=c+Math.imul(U,je)|0,c=c+Math.imul(P,Be)|0,x=x+Math.imul(P,je)|0,$=$+Math.imul(z,Ne)|0,c=c+Math.imul(z,Ve)|0,c=c+Math.imul(oe,Ne)|0,x=x+Math.imul(oe,Ve)|0;var wt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,$=Math.imul(X,$e),c=Math.imul(X,Te),c=c+Math.imul(ne,$e)|0,x=Math.imul(ne,Te),$=$+Math.imul(fe,Oe)|0,c=c+Math.imul(fe,Ie)|0,c=c+Math.imul(J,Oe)|0,x=x+Math.imul(J,Ie)|0,$=$+Math.imul(I,xe)|0,c=c+Math.imul(I,Ce)|0,c=c+Math.imul(te,xe)|0,x=x+Math.imul(te,Ce)|0,$=$+Math.imul(ie,Be)|0,c=c+Math.imul(ie,je)|0,c=c+Math.imul(se,Be)|0,x=x+Math.imul(se,je)|0,$=$+Math.imul(U,Ne)|0,c=c+Math.imul(U,Ve)|0,c=c+Math.imul(P,Ne)|0,x=x+Math.imul(P,Ve)|0,$=$+Math.imul(z,He)|0,c=c+Math.imul(z,We)|0,c=c+Math.imul(oe,He)|0,x=x+Math.imul(oe,We)|0;var St=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(St>>>26)|0,St&=67108863,$=Math.imul(he,$e),c=Math.imul(he,Te),c=c+Math.imul(ge,$e)|0,x=Math.imul(ge,Te),$=$+Math.imul(X,Oe)|0,c=c+Math.imul(X,Ie)|0,c=c+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,Ie)|0,$=$+Math.imul(fe,xe)|0,c=c+Math.imul(fe,Ce)|0,c=c+Math.imul(J,xe)|0,x=x+Math.imul(J,Ce)|0,$=$+Math.imul(I,Be)|0,c=c+Math.imul(I,je)|0,c=c+Math.imul(te,Be)|0,x=x+Math.imul(te,je)|0,$=$+Math.imul(ie,Ne)|0,c=c+Math.imul(ie,Ve)|0,c=c+Math.imul(se,Ne)|0,x=x+Math.imul(se,Ve)|0,$=$+Math.imul(U,He)|0,c=c+Math.imul(U,We)|0,c=c+Math.imul(P,He)|0,x=x+Math.imul(P,We)|0,$=$+Math.imul(z,ke)|0,c=c+Math.imul(z,Ge)|0,c=c+Math.imul(oe,ke)|0,x=x+Math.imul(oe,Ge)|0;var $t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+($t>>>26)|0,$t&=67108863,$=Math.imul(_e,$e),c=Math.imul(_e,Te),c=c+Math.imul(we,$e)|0,x=Math.imul(we,Te),$=$+Math.imul(he,Oe)|0,c=c+Math.imul(he,Ie)|0,c=c+Math.imul(ge,Oe)|0,x=x+Math.imul(ge,Ie)|0,$=$+Math.imul(X,xe)|0,c=c+Math.imul(X,Ce)|0,c=c+Math.imul(ne,xe)|0,x=x+Math.imul(ne,Ce)|0,$=$+Math.imul(fe,Be)|0,c=c+Math.imul(fe,je)|0,c=c+Math.imul(J,Be)|0,x=x+Math.imul(J,je)|0,$=$+Math.imul(I,Ne)|0,c=c+Math.imul(I,Ve)|0,c=c+Math.imul(te,Ne)|0,x=x+Math.imul(te,Ve)|0,$=$+Math.imul(ie,He)|0,c=c+Math.imul(ie,We)|0,c=c+Math.imul(se,He)|0,x=x+Math.imul(se,We)|0,$=$+Math.imul(U,ke)|0,c=c+Math.imul(U,Ge)|0,c=c+Math.imul(P,ke)|0,x=x+Math.imul(P,Ge)|0,$=$+Math.imul(z,Le)|0,c=c+Math.imul(z,Ke)|0,c=c+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Ke)|0;var At=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(At>>>26)|0,At&=67108863,$=Math.imul(Se,$e),c=Math.imul(Se,Te),c=c+Math.imul(Ae,$e)|0,x=Math.imul(Ae,Te),$=$+Math.imul(_e,Oe)|0,c=c+Math.imul(_e,Ie)|0,c=c+Math.imul(we,Oe)|0,x=x+Math.imul(we,Ie)|0,$=$+Math.imul(he,xe)|0,c=c+Math.imul(he,Ce)|0,c=c+Math.imul(ge,xe)|0,x=x+Math.imul(ge,Ce)|0,$=$+Math.imul(X,Be)|0,c=c+Math.imul(X,je)|0,c=c+Math.imul(ne,Be)|0,x=x+Math.imul(ne,je)|0,$=$+Math.imul(fe,Ne)|0,c=c+Math.imul(fe,Ve)|0,c=c+Math.imul(J,Ne)|0,x=x+Math.imul(J,Ve)|0,$=$+Math.imul(I,He)|0,c=c+Math.imul(I,We)|0,c=c+Math.imul(te,He)|0,x=x+Math.imul(te,We)|0,$=$+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Ge)|0,c=c+Math.imul(se,ke)|0,x=x+Math.imul(se,Ge)|0,$=$+Math.imul(U,Le)|0,c=c+Math.imul(U,Ke)|0,c=c+Math.imul(P,Le)|0,x=x+Math.imul(P,Ke)|0,$=$+Math.imul(z,De)|0,c=c+Math.imul(z,Ze)|0,c=c+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ze)|0;var Rt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,$=Math.imul(ve,$e),c=Math.imul(ve,Te),c=c+Math.imul(be,$e)|0,x=Math.imul(be,Te),$=$+Math.imul(Se,Oe)|0,c=c+Math.imul(Se,Ie)|0,c=c+Math.imul(Ae,Oe)|0,x=x+Math.imul(Ae,Ie)|0,$=$+Math.imul(_e,xe)|0,c=c+Math.imul(_e,Ce)|0,c=c+Math.imul(we,xe)|0,x=x+Math.imul(we,Ce)|0,$=$+Math.imul(he,Be)|0,c=c+Math.imul(he,je)|0,c=c+Math.imul(ge,Be)|0,x=x+Math.imul(ge,je)|0,$=$+Math.imul(X,Ne)|0,c=c+Math.imul(X,Ve)|0,c=c+Math.imul(ne,Ne)|0,x=x+Math.imul(ne,Ve)|0,$=$+Math.imul(fe,He)|0,c=c+Math.imul(fe,We)|0,c=c+Math.imul(J,He)|0,x=x+Math.imul(J,We)|0,$=$+Math.imul(I,ke)|0,c=c+Math.imul(I,Ge)|0,c=c+Math.imul(te,ke)|0,x=x+Math.imul(te,Ge)|0,$=$+Math.imul(ie,Le)|0,c=c+Math.imul(ie,Ke)|0,c=c+Math.imul(se,Le)|0,x=x+Math.imul(se,Ke)|0,$=$+Math.imul(U,De)|0,c=c+Math.imul(U,Ze)|0,c=c+Math.imul(P,De)|0,x=x+Math.imul(P,Ze)|0,$=$+Math.imul(z,Fe)|0,c=c+Math.imul(z,ze)|0,c=c+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,ze)|0;var Mt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,$=Math.imul(ve,Oe),c=Math.imul(ve,Ie),c=c+Math.imul(be,Oe)|0,x=Math.imul(be,Ie),$=$+Math.imul(Se,xe)|0,c=c+Math.imul(Se,Ce)|0,c=c+Math.imul(Ae,xe)|0,x=x+Math.imul(Ae,Ce)|0,$=$+Math.imul(_e,Be)|0,c=c+Math.imul(_e,je)|0,c=c+Math.imul(we,Be)|0,x=x+Math.imul(we,je)|0,$=$+Math.imul(he,Ne)|0,c=c+Math.imul(he,Ve)|0,c=c+Math.imul(ge,Ne)|0,x=x+Math.imul(ge,Ve)|0,$=$+Math.imul(X,He)|0,c=c+Math.imul(X,We)|0,c=c+Math.imul(ne,He)|0,x=x+Math.imul(ne,We)|0,$=$+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(J,ke)|0,x=x+Math.imul(J,Ge)|0,$=$+Math.imul(I,Le)|0,c=c+Math.imul(I,Ke)|0,c=c+Math.imul(te,Le)|0,x=x+Math.imul(te,Ke)|0,$=$+Math.imul(ie,De)|0,c=c+Math.imul(ie,Ze)|0,c=c+Math.imul(se,De)|0,x=x+Math.imul(se,Ze)|0,$=$+Math.imul(U,Fe)|0,c=c+Math.imul(U,ze)|0,c=c+Math.imul(P,Fe)|0,x=x+Math.imul(P,ze)|0;var ht=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,$=Math.imul(ve,xe),c=Math.imul(ve,Ce),c=c+Math.imul(be,xe)|0,x=Math.imul(be,Ce),$=$+Math.imul(Se,Be)|0,c=c+Math.imul(Se,je)|0,c=c+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,je)|0,$=$+Math.imul(_e,Ne)|0,c=c+Math.imul(_e,Ve)|0,c=c+Math.imul(we,Ne)|0,x=x+Math.imul(we,Ve)|0,$=$+Math.imul(he,He)|0,c=c+Math.imul(he,We)|0,c=c+Math.imul(ge,He)|0,x=x+Math.imul(ge,We)|0,$=$+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Ge)|0,$=$+Math.imul(fe,Le)|0,c=c+Math.imul(fe,Ke)|0,c=c+Math.imul(J,Le)|0,x=x+Math.imul(J,Ke)|0,$=$+Math.imul(I,De)|0,c=c+Math.imul(I,Ze)|0,c=c+Math.imul(te,De)|0,x=x+Math.imul(te,Ze)|0,$=$+Math.imul(ie,Fe)|0,c=c+Math.imul(ie,ze)|0,c=c+Math.imul(se,Fe)|0,x=x+Math.imul(se,ze)|0;var yt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,$=Math.imul(ve,Be),c=Math.imul(ve,je),c=c+Math.imul(be,Be)|0,x=Math.imul(be,je),$=$+Math.imul(Se,Ne)|0,c=c+Math.imul(Se,Ve)|0,c=c+Math.imul(Ae,Ne)|0,x=x+Math.imul(Ae,Ve)|0,$=$+Math.imul(_e,He)|0,c=c+Math.imul(_e,We)|0,c=c+Math.imul(we,He)|0,x=x+Math.imul(we,We)|0,$=$+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(ge,ke)|0,x=x+Math.imul(ge,Ge)|0,$=$+Math.imul(X,Le)|0,c=c+Math.imul(X,Ke)|0,c=c+Math.imul(ne,Le)|0,x=x+Math.imul(ne,Ke)|0,$=$+Math.imul(fe,De)|0,c=c+Math.imul(fe,Ze)|0,c=c+Math.imul(J,De)|0,x=x+Math.imul(J,Ze)|0,$=$+Math.imul(I,Fe)|0,c=c+Math.imul(I,ze)|0,c=c+Math.imul(te,Fe)|0,x=x+Math.imul(te,ze)|0;var gt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(gt>>>26)|0,gt&=67108863,$=Math.imul(ve,Ne),c=Math.imul(ve,Ve),c=c+Math.imul(be,Ne)|0,x=Math.imul(be,Ve),$=$+Math.imul(Se,He)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Ae,He)|0,x=x+Math.imul(Ae,We)|0,$=$+Math.imul(_e,ke)|0,c=c+Math.imul(_e,Ge)|0,c=c+Math.imul(we,ke)|0,x=x+Math.imul(we,Ge)|0,$=$+Math.imul(he,Le)|0,c=c+Math.imul(he,Ke)|0,c=c+Math.imul(ge,Le)|0,x=x+Math.imul(ge,Ke)|0,$=$+Math.imul(X,De)|0,c=c+Math.imul(X,Ze)|0,c=c+Math.imul(ne,De)|0,x=x+Math.imul(ne,Ze)|0,$=$+Math.imul(fe,Fe)|0,c=c+Math.imul(fe,ze)|0,c=c+Math.imul(J,Fe)|0,x=x+Math.imul(J,ze)|0;var dt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,$=Math.imul(ve,He),c=Math.imul(ve,We),c=c+Math.imul(be,He)|0,x=Math.imul(be,We),$=$+Math.imul(Se,ke)|0,c=c+Math.imul(Se,Ge)|0,c=c+Math.imul(Ae,ke)|0,x=x+Math.imul(Ae,Ge)|0,$=$+Math.imul(_e,Le)|0,c=c+Math.imul(_e,Ke)|0,c=c+Math.imul(we,Le)|0,x=x+Math.imul(we,Ke)|0,$=$+Math.imul(he,De)|0,c=c+Math.imul(he,Ze)|0,c=c+Math.imul(ge,De)|0,x=x+Math.imul(ge,Ze)|0,$=$+Math.imul(X,Fe)|0,c=c+Math.imul(X,ze)|0,c=c+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,ze)|0;var _t=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,$=Math.imul(ve,ke),c=Math.imul(ve,Ge),c=c+Math.imul(be,ke)|0,x=Math.imul(be,Ge),$=$+Math.imul(Se,Le)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Ae,Le)|0,x=x+Math.imul(Ae,Ke)|0,$=$+Math.imul(_e,De)|0,c=c+Math.imul(_e,Ze)|0,c=c+Math.imul(we,De)|0,x=x+Math.imul(we,Ze)|0,$=$+Math.imul(he,Fe)|0,c=c+Math.imul(he,ze)|0,c=c+Math.imul(ge,Fe)|0,x=x+Math.imul(ge,ze)|0;var ct=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(ct>>>26)|0,ct&=67108863,$=Math.imul(ve,Le),c=Math.imul(ve,Ke),c=c+Math.imul(be,Le)|0,x=Math.imul(be,Ke),$=$+Math.imul(Se,De)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Ae,De)|0,x=x+Math.imul(Ae,Ze)|0,$=$+Math.imul(_e,Fe)|0,c=c+Math.imul(_e,ze)|0,c=c+Math.imul(we,Fe)|0,x=x+Math.imul(we,ze)|0;var pt=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,$=Math.imul(ve,De),c=Math.imul(ve,Ze),c=c+Math.imul(be,De)|0,x=Math.imul(be,Ze),$=$+Math.imul(Se,Fe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,ze)|0;var Et=(O+$|0)+((c&8191)<<13)|0;O=(x+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,$=Math.imul(ve,Fe),c=Math.imul(ve,ze),c=c+Math.imul(be,Fe)|0,x=Math.imul(be,ze);var xt=(O+$|0)+((c&8191)<<13)|0;return O=(x+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,A[0]=it,A[1]=rt,A[2]=mt,A[3]=bt,A[4]=wt,A[5]=St,A[6]=$t,A[7]=At,A[8]=Rt,A[9]=Mt,A[10]=ht,A[11]=yt,A[12]=gt,A[13]=dt,A[14]=_t,A[15]=ct,A[16]=pt,A[17]=Et,A[18]=xt,O!==0&&(A[19]=O,m.length++),m};Math.imul||(F=L);function q(T,u,v){v.negative=u.negative^T.negative,v.length=T.length+u.length;for(var m=0,b=0,M=0;M>>26)|0,b+=A>>>26,A&=67108863}v.words[M]=O,m=A,A=b}return m!==0?v.words[M]=m:v.length--,v.strip()}function H(T,u,v){var m=new D;return m.mulp(T,u,v)}a.prototype.mulTo=function(u,v){var m,b=this.length+u.length;return this.length===10&&u.length===10?m=F(this,u,v):b<63?m=L(this,u,v):b<1024?m=q(this,u,v):m=H(this,u,v),m};function D(T,u){this.x=T,this.y=u}D.prototype.makeRBT=function(u){for(var v=new Array(u),m=a.prototype._countBits(u)-1,b=0;b>=1;return b},D.prototype.permute=function(u,v,m,b,M,A){for(var O=0;O>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*v;A>=26,v+=b/67108864|0,v+=M>>>26,this.words[m]=M&67108863}return v!==0&&(this.words[m]=v,this.length++),this.length=u===0?1:this.length,this},a.prototype.muln=function(u){return this.clone().imuln(u)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(u){var v=B(u);if(v.length===0)return new a(1);for(var m=this,b=0;b=0);var v=u%26,m=(u-v)/26,b=67108863>>>26-v<<26-v,M;if(v!==0){var A=0;for(M=0;M>>26-v}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var b;v?b=(v-v%26)/26:b=0;var M=u%26,A=Math.min((u-M)/26,this.length),O=67108863^67108863>>>M<A)for(this.length-=A,c=0;c=0&&(x!==0||c>=b);c--){var N=this.words[c]|0;this.words[c]=x<<26-M|N>>>M,x=N&O}return $&&x!==0&&($.words[$.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(u,v,m){return o(this.negative===0),this.iushrn(u,v,m)},a.prototype.shln=function(u){return this.clone().ishln(u)},a.prototype.ushln=function(u){return this.clone().iushln(u)},a.prototype.shrn=function(u){return this.clone().ishrn(u)},a.prototype.ushrn=function(u){return this.clone().iushrn(u)},a.prototype.testn=function(u){o(typeof u=="number"&&u>=0);var v=u%26,m=(u-v)/26,b=1<=0);var v=u%26,m=(u-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(v!==0&&m++,this.length=Math.min(m,this.length),v!==0){var b=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(u){if(o(typeof u=="number"),o(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-($/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(O===0)return this.strip();for(o(O===-1),O=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(u,v){var m=this.length-u.length,b=this.clone(),M=u,A=M.words[M.length-1]|0,O=this._countBits(A);m=26-O,m!==0&&(M=M.ushln(m),b.iushln(m),A=M.words[M.length-1]|0);var $=b.length-M.length,c;if(v!=="mod"){c=new a(null),c.length=$+1,c.words=new Array(c.length);for(var x=0;x=0;z--){var oe=(b.words[M.length+z]|0)*67108864+(b.words[M.length+z-1]|0);for(oe=Math.min(oe/A|0,67108863),b._ishlnsubmul(M,oe,z);b.negative!==0;)oe--,b.negative=0,b._ishlnsubmul(M,1,z),b.isZero()||(b.negative^=1);c&&(c.words[z]=oe)}return c&&c.strip(),b.strip(),v!=="div"&&m!==0&&b.iushrn(m),{div:c||null,mod:b}},a.prototype.divmod=function(u,v,m){if(o(!u.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,M,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,v),v!=="mod"&&(b=A.div.neg()),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(u)),{div:b,mod:M}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),v),v!=="mod"&&(b=A.div.neg()),{div:b,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),v),v!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(u)),{div:A.div,mod:M}):u.length>this.length||this.cmp(u)<0?{div:new a(0),mod:this}:u.length===1?v==="div"?{div:this.divn(u.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new a(this.modn(u.words[0]))}:this._wordDiv(u,v)},a.prototype.div=function(u){return this.divmod(u,"div",!1).div},a.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},a.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},a.prototype.divRound=function(u){var v=this.divmod(u);if(v.mod.isZero())return v.div;var m=v.div.negative!==0?v.mod.isub(u):v.mod,b=u.ushrn(1),M=u.andln(1),A=m.cmp(b);return A<0||M===1&&A===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modn=function(u){o(u<=67108863);for(var v=(1<<26)%u,m=0,b=this.length-1;b>=0;b--)m=(v*m+(this.words[b]|0))%u;return m},a.prototype.idivn=function(u){o(u<=67108863);for(var v=0,m=this.length-1;m>=0;m--){var b=(this.words[m]|0)+v*67108864;this.words[m]=b/u|0,v=b%u}return this.strip()},a.prototype.divn=function(u){return this.clone().idivn(u)},a.prototype.egcd=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=new a(0),O=new a(1),$=0;v.isEven()&&m.isEven();)v.iushrn(1),m.iushrn(1),++$;for(var c=m.clone(),x=v.clone();!v.isZero();){for(var N=0,z=1;!(v.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(v.iushrn(N);N-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(c),M.isub(x)),b.iushrn(1),M.iushrn(1);for(var oe=0,le=1;!(m.words[0]&le)&&oe<26;++oe,le<<=1);if(oe>0)for(m.iushrn(oe);oe-- >0;)(A.isOdd()||O.isOdd())&&(A.iadd(c),O.isub(x)),A.iushrn(1),O.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(A),M.isub(O)):(m.isub(v),A.isub(b),O.isub(M))}return{a:A,b:O,gcd:m.iushln($)}},a.prototype._invmp=function(u){o(u.negative===0),o(!u.isZero());var v=this,m=u.clone();v.negative!==0?v=v.umod(u):v=v.clone();for(var b=new a(1),M=new a(0),A=m.clone();v.cmpn(1)>0&&m.cmpn(1)>0;){for(var O=0,$=1;!(v.words[0]&$)&&O<26;++O,$<<=1);if(O>0)for(v.iushrn(O);O-- >0;)b.isOdd()&&b.iadd(A),b.iushrn(1);for(var c=0,x=1;!(m.words[0]&x)&&c<26;++c,x<<=1);if(c>0)for(m.iushrn(c);c-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);v.cmp(m)>=0?(v.isub(m),b.isub(M)):(m.isub(v),M.isub(b))}var N;return v.cmpn(1)===0?N=b:N=M,N.cmpn(0)<0&&N.iadd(u),N},a.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var v=this.clone(),m=u.clone();v.negative=0,m.negative=0;for(var b=0;v.isEven()&&m.isEven();b++)v.iushrn(1),m.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=v.cmp(m);if(M<0){var A=v;v=m,m=A}else if(M===0||m.cmpn(1)===0)break;v.isub(m)}while(!0);return m.iushln(b)},a.prototype.invm=function(u){return this.egcd(u).a.umod(u)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(u){return this.words[0]&u},a.prototype.bincn=function(u){o(typeof u=="number");var v=u%26,m=(u-v)/26,b=1<>>26,O&=67108863,this.words[A]=O}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(u){var v=u<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var m;if(this.length>1)m=1;else{v&&(u=-u),o(u<=67108863,"Number is too big");var b=this.words[0]|0;m=b===u?0:bu.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,M=u.words[m]|0;if(b!==M){bM&&(v=1);break}}return v},a.prototype.gtn=function(u){return this.cmpn(u)===1},a.prototype.gt=function(u){return this.cmp(u)===1},a.prototype.gten=function(u){return this.cmpn(u)>=0},a.prototype.gte=function(u){return this.cmp(u)>=0},a.prototype.ltn=function(u){return this.cmpn(u)===-1},a.prototype.lt=function(u){return this.cmp(u)===-1},a.prototype.lten=function(u){return this.cmpn(u)<=0},a.prototype.lte=function(u){return this.cmp(u)<=0},a.prototype.eqn=function(u){return this.cmpn(u)===0},a.prototype.eq=function(u){return this.cmp(u)===0},a.red=function(u){return new re(u)},a.prototype.toRed=function(u){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(u){return this.red=u,this},a.prototype.forceRed=function(u){return o(!this.red,"Already a number in reduction context"),this._forceRed(u)},a.prototype.redAdd=function(u){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},a.prototype.redIAdd=function(u){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},a.prototype.redSub=function(u){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},a.prototype.redISub=function(u){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},a.prototype.redShl=function(u){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},a.prototype.redMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},a.prototype.redIMul=function(u){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(u){return o(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var j={k256:null,p224:null,p192:null,p25519:null};function V(T,u){this.name=T,this.p=new a(u,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var u=new a(null);return u.words=new Array(Math.ceil(this.n/13)),u},V.prototype.ireduce=function(u){var v=u,m;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),m=v.bitLength();while(m>this.n);var b=m0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},V.prototype.split=function(u,v){u.iushrn(this.n,0,v)},V.prototype.imulK=function(u){return u.imul(this.k)};function Q(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}l(Q,V),Q.prototype.split=function(u,v){for(var m=4194303,b=Math.min(u.length,9),M=0;M>>22,A=O}A>>>=22,u.words[M-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},Q.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var v=0,m=0;m>>=26,u.words[m]=M,v=b}return v!==0&&(u.words[u.length++]=v),u},a._prime=function(u){if(j[u])return j[u];var v;if(u==="k256")v=new Q;else if(u==="p224")v=new ae;else if(u==="p192")v=new ce;else if(u==="p25519")v=new ue;else throw new Error("Unknown prime "+u);return j[u]=v,v};function re(T){if(typeof T=="string"){var u=a._prime(T);this.m=u.p,this.prime=u}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}re.prototype._verify1=function(u){o(u.negative===0,"red works only with positives"),o(u.red,"red works only with red numbers")},re.prototype._verify2=function(u,v){o((u.negative|v.negative)===0,"red works only with positives"),o(u.red&&u.red===v.red,"red works only with red numbers")},re.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},re.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},re.prototype.add=function(u,v){this._verify2(u,v);var m=u.add(v);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},re.prototype.iadd=function(u,v){this._verify2(u,v);var m=u.iadd(v);return m.cmp(this.m)>=0&&m.isub(this.m),m},re.prototype.sub=function(u,v){this._verify2(u,v);var m=u.sub(v);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},re.prototype.isub=function(u,v){this._verify2(u,v);var m=u.isub(v);return m.cmpn(0)<0&&m.iadd(this.m),m},re.prototype.shl=function(u,v){return this._verify1(u),this.imod(u.ushln(v))},re.prototype.imul=function(u,v){return this._verify2(u,v),this.imod(u.imul(v))},re.prototype.mul=function(u,v){return this._verify2(u,v),this.imod(u.mul(v))},re.prototype.isqr=function(u){return this.imul(u,u.clone())},re.prototype.sqr=function(u){return this.mul(u,u)},re.prototype.sqrt=function(u){if(u.isZero())return u.clone();var v=this.m.andln(3);if(o(v%2===1),v===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(u,m)}for(var b=this.m.subn(1),M=0;!b.isZero()&&b.andln(1)===0;)M++,b.iushrn(1);o(!b.isZero());var A=new a(1).toRed(this),O=A.redNeg(),$=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);this.pow(c,$).cmp(O)!==0;)c.redIAdd(O);for(var x=this.pow(c,b),N=this.pow(u,b.addn(1).iushrn(1)),z=this.pow(u,b),oe=M;z.cmp(A)!==0;){for(var le=z,U=0;le.cmp(A)!==0;U++)le=le.redSqr();o(U=0;M--){for(var x=v.words[M],N=c-1;N>=0;N--){var z=x>>N&1;if(A!==b[0]&&(A=this.sqr(A)),z===0&&O===0){$=0;continue}O<<=1,O|=z,$++,!($!==m&&(M!==0||N!==0))&&(A=this.mul(A,b[O]),$=0,O=0)}c=26}return A},re.prototype.convertTo=function(u){var v=u.umod(this.m);return v===u?v.clone():v},re.prototype.convertFrom=function(u){var v=u.clone();return v.red=null,v},a.mont=function(u){return new pe(u)};function pe(T){re.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l(pe,re),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var v=this.imod(u.mul(this.rinv));return v.red=null,v},pe.prototype.imul=function(u,v){if(u.isZero()||v.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,v){if(u.isZero()||v.isZero())return new a(0)._forceRed(this);var m=u.mul(v),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(b).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var v=this.imod(u._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(e,commonjsGlobal)})(bn);var bnExports=bn.exports,BN$2=bnExports,Buffer$3=requireSafeBuffer().Buffer;function withPublic$2(e,t){return Buffer$3.from(e.toRed(BN$2.mont(t.modulus)).redPow(new BN$2(t.publicExponent)).fromRed().toArray())}var withPublic_1=withPublic$2,parseKeys$1=parseAsn1,randomBytes=browserExports,createHash$1=browser$9,mgf$1=mgf$2,xor$1=xor$2,BN$1=bnExports,withPublic$1=withPublic_1,crt$1=browserifyRsa,Buffer$2=requireSafeBuffer().Buffer,publicEncrypt=function e(t,n,o){var l;t.padding?l=t.padding:o?l=1:l=4;var a=parseKeys$1(t),d;if(l===4)d=oaep$1(a,n);else if(l===1)d=pkcs1$1(a,n,o);else if(l===3){if(d=new BN$1(n),d.cmp(a.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return o?crt$1(d,a):withPublic$1(d,a)};function oaep$1(e,t){var n=e.modulus.byteLength(),o=t.length,l=createHash$1("sha1").update(Buffer$2.alloc(0)).digest(),a=l.length,d=2*a;if(o>n-d-2)throw new Error("message too long");var y=Buffer$2.alloc(n-o-d-2),w=n-a-1,_=randomBytes(a),S=xor$1(Buffer$2.concat([l,y,Buffer$2.alloc(1,1),t],w),mgf$1(_,w)),E=xor$1(_,mgf$1(S,a));return new BN$1(Buffer$2.concat([Buffer$2.alloc(1),E,S],n))}function pkcs1$1(e,t,n){var o=t.length,l=e.modulus.byteLength();if(o>l-11)throw new Error("message too long");var a;return n?a=Buffer$2.alloc(l-o-3,255):a=nonZero(l-o-3),new BN$1(Buffer$2.concat([Buffer$2.from([0,n?1:2]),a,Buffer$2.alloc(1),t],l))}function nonZero(e){for(var t=Buffer$2.allocUnsafe(e),n=0,o=randomBytes(e*2),l=0,a;nd||new BN(n).cmp(a.modulus)>=0)throw new Error("decryption error");var y;o?y=withPublic(new BN(n),a):y=crt(n,a);var w=Buffer$1.alloc(d-y.length);if(y=Buffer$1.concat([w,y],d),l===4)return oaep(a,y);if(l===1)return pkcs1(a,y,o);if(l===3)return y;throw new Error("unknown padding")};function oaep(e,t){var n=e.modulus.byteLength(),o=createHash("sha1").update(Buffer$1.alloc(0)).digest(),l=o.length;if(t[0]!==0)throw new Error("decryption error");var a=t.slice(1,l+1),d=t.slice(l+1),y=xor(a,mgf(d,l)),w=xor(d,mgf(y,n-l-1));if(compare(o,w.slice(0,l)))throw new Error("decryption error");for(var _=l;w[_]===0;)_++;if(w[_++]!==1)throw new Error("decryption error");return w.slice(_)}function pkcs1(e,t,n){for(var o=t.slice(0,2),l=2,a=0;t[l++]!==0;)if(l>=t.length){a++;break}var d=t.slice(2,l-1);if((o.toString("hex")!=="0002"&&!n||o.toString("hex")!=="0001"&&n)&&a++,d.length<8&&a++,a)throw new Error("decryption error");return t.slice(l)}function compare(e,t){e=Buffer$1.from(e),t=Buffer$1.from(t);var n=0,o=e.length;e.length!==t.length&&(n++,o=Math.min(e.length,t.length));for(var l=-1;++lkMaxUint32||e<0)throw new TypeError("offset must be a uint32");if(e>kBufferMaxLength||e>t)throw new RangeError("offset out of range")}function assertSize(e,t,n){if(typeof e!="number"||e!==e)throw new TypeError("size must be a number");if(e>kMaxUint32||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>kBufferMaxLength)throw new RangeError("buffer too small")}crypto$1&&crypto$1.getRandomValues||!api$2.browser?(browser.randomFill=randomFill,browser.randomFillSync=randomFillSync):(browser.randomFill=oldBrowser,browser.randomFillSync=oldBrowser);function randomFill(e,t,n,o){if(!Buffer.isBuffer(e)&&!(e instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof t=="function")o=t,t=0,n=e.length;else if(typeof n=="function")o=n,n=e.length-t;else if(typeof o!="function")throw new TypeError('"cb" argument must be a function');return assertOffset(t,e.length),assertSize(n,t,e.length),actualFill(e,t,n,o)}function actualFill(e,t,n,o){if(api$2.browser){var l=e.buffer,a=new Uint8Array(l,t,n);if(crypto$1.getRandomValues(a),o){api$2.nextTick(function(){o(null,e)});return}return e}if(o){randombytes(n,function(y,w){if(y)return o(y);w.copy(e,t),o(null,e)});return}var d=randombytes(n);return d.copy(e,t),e}function randomFillSync(e,t,n){if(typeof t>"u"&&(t=0),!Buffer.isBuffer(e)&&!(e instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return assertOffset(t,e.length),n===void 0&&(n=e.length-t),assertSize(n,t,e.length),actualFill(e,t,n)}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports,cryptoBrowserify.createHash=cryptoBrowserify.Hash=browser$9,cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=browser$8;var e=algos,t=Object.keys(e),n=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);cryptoBrowserify.getHashes=function(){return n};var o=browser$7;cryptoBrowserify.pbkdf2=o.pbkdf2,cryptoBrowserify.pbkdf2Sync=o.pbkdf2Sync;var l=browser$6;cryptoBrowserify.Cipher=l.Cipher,cryptoBrowserify.createCipher=l.createCipher,cryptoBrowserify.Cipheriv=l.Cipheriv,cryptoBrowserify.createCipheriv=l.createCipheriv,cryptoBrowserify.Decipher=l.Decipher,cryptoBrowserify.createDecipher=l.createDecipher,cryptoBrowserify.Decipheriv=l.Decipheriv,cryptoBrowserify.createDecipheriv=l.createDecipheriv,cryptoBrowserify.getCiphers=l.getCiphers,cryptoBrowserify.listCiphers=l.listCiphers;var a=requireBrowser$2();cryptoBrowserify.DiffieHellmanGroup=a.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=a.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=a.getDiffieHellman,cryptoBrowserify.createDiffieHellman=a.createDiffieHellman,cryptoBrowserify.DiffieHellman=a.DiffieHellman;var d=requireBrowser$1();cryptoBrowserify.createSign=d.createSign,cryptoBrowserify.Sign=d.Sign,cryptoBrowserify.createVerify=d.createVerify,cryptoBrowserify.Verify=d.Verify,cryptoBrowserify.createECDH=requireBrowser();var y=browser$1;cryptoBrowserify.publicEncrypt=y.publicEncrypt,cryptoBrowserify.privateEncrypt=y.privateEncrypt,cryptoBrowserify.publicDecrypt=y.publicDecrypt,cryptoBrowserify.privateDecrypt=y.privateDecrypt;var w=browser;return cryptoBrowserify.randomFill=w.randomFill,cryptoBrowserify.randomFillSync=w.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet we accept pull requests https://github.com/browserify/crypto-browserify`)},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var cryptoBrowserifyExports=requireCryptoBrowserify();const crypto=getDefaultExportFromCjs(cryptoBrowserifyExports);export{upperFirst$2 as $,createBaseVNode as A,createTextVNode as B,Color as C,createSlots as D,withCtx as E,toDisplayString as F,createVNode as G,Hammer as H,withDirectives as I,vModelText as J,mergeProps as K,withKeys as L,renderList as M,Fragment as N,vModelRadio as O,normalizeStyle as P,vModelCheckbox as Q,useClipboard as R,vModelSelect as S,Teleport as T,vModelDynamic as U,mqtt as V,createStore as W,createRouter as X,createWebHashHistory as Y,createApp as Z,_export_sfc as _,api$2 as a,camelCase$1 as a0,TableLite as a1,defineAsyncComponent as a2,resolveDynamicComponent as a3,pako as a4,draggable as a5,urlsafeBase64 as a6,crypto as a7,api$1 as a8,buffer$2 as b,commonjsGlobal as c,defineComponent as d,ref$1 as e,onUnmounted as f,global$1 as g,h,isProxy as i,computed as j,getAugmentedNamespace as k,openBlock as l,createElementBlock as m,nextTick$4 as n,onMounted as o,renderSlot as p,normalizeClass as q,require$$1$2 as r,shallowRef as s,toRaw as t,resolveComponent as u,version$1 as v,watch as w,createBlock as x,withModifiers as y,createCommentVNode as z}; diff --git a/web/settings/assets/vendor-axios-ac33d60c.js b/web/settings/assets/vendor-axios-89a9dc60.js similarity index 99% rename from web/settings/assets/vendor-axios-ac33d60c.js rename to web/settings/assets/vendor-axios-89a9dc60.js index 1216fc8020..981ca9c613 100644 --- a/web/settings/assets/vendor-axios-ac33d60c.js +++ b/web/settings/assets/vendor-axios-89a9dc60.js @@ -1,4 +1,4 @@ -import{g as ot,a as ge,b as it}from"./vendor-25d394b4.js";function Be(e,t){return function(){return e.apply(t,arguments)}}const{toString:at}=Object.prototype,{getPrototypeOf:pe}=Object,{iterator:G,toStringTag:ke}=Symbol,Q=(e=>t=>{const n=at.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>Q(t)===e),Z=e=>t=>typeof t===e,{isArray:B}=Array,j=Z("undefined");function q(e){return e!==null&&!j(e)&&e.constructor!==null&&!j(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const De=C("ArrayBuffer");function ct(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&De(e.buffer),t}const ut=Z("string"),A=Z("function"),je=Z("number"),I=e=>e!==null&&typeof e=="object",lt=e=>e===!0||e===!1,z=e=>{if(Q(e)!=="object")return!1;const t=pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ke in e)&&!(G in e)},ft=e=>{if(!I(e)||q(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},dt=C("Date"),pt=C("File"),ht=C("Blob"),mt=C("FileList"),yt=e=>I(e)&&A(e.pipe),bt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=Q(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},wt=C("URLSearchParams"),[Et,gt,Rt,St]=["ReadableStream","Request","Response","Headers"].map(C),Ot=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),B(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const U=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ot)(),Ie=e=>!j(e)&&e!==U;function ae(){const{caseless:e}=Ie(this)&&this||{},t={},n=(r,s)=>{const o=e&&qe(t,s)||s;z(t[o])&&z(r)?t[o]=ae(t[o],r):z(r)?t[o]=ae({},r):B(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(M(t,(s,o)=>{n&&A(s)?e[o]=Be(s,n):e[o]=s},{allOwnKeys:r}),e),At=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ct=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Nt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Pt=e=>{if(!e)return null;if(B(e))return e;let t=e.length;if(!je(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_t=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pe(Uint8Array)),Ft=(e,t)=>{const r=(e&&e[G]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Ut=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Lt=C("HTMLFormElement"),Bt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Re=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kt=C("RegExp"),Me=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};M(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Dt=e=>{Me(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return B(e)?r(e):r(String(e).split(t)),n},qt=()=>{},It=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Mt(e){return!!(e&&A(e.append)&&e[ke]==="FormData"&&e[G])}const Ht=e=>{const t=new Array(10),n=(r,s)=>{if(I(r)){if(t.indexOf(r)>=0)return;if(q(r))return r;if(!("toJSON"in r)){t[s]=r;const o=B(r)?[]:{};return M(r,(i,c)=>{const f=n(i,s+1);!j(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},zt=C("AsyncFunction"),Vt=e=>e&&(I(e)||A(e))&&A(e.then)&&A(e.catch),He=((e,t)=>e?setImmediate:t?((n,r)=>(U.addEventListener("message",({source:s,data:o})=>{s===U&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),U.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(U.postMessage)),$t=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof ge<"u"&&ge.nextTick||He,Jt=e=>e!=null&&A(e[G]),a={isArray:B,isArrayBuffer:De,isBuffer:q,isFormData:bt,isArrayBufferView:ct,isString:ut,isNumber:je,isBoolean:lt,isObject:I,isPlainObject:z,isEmptyObject:ft,isReadableStream:Et,isRequest:gt,isResponse:Rt,isHeaders:St,isUndefined:j,isDate:dt,isFile:pt,isBlob:ht,isRegExp:kt,isFunction:A,isStream:yt,isURLSearchParams:wt,isTypedArray:_t,isFileList:mt,forEach:M,merge:ae,extend:Tt,trim:Ot,stripBOM:At,inherits:xt,toFlatObject:Ct,kindOf:Q,kindOfTest:C,endsWith:Nt,toArray:Pt,forEachEntry:Ft,matchAll:Ut,isHTMLForm:Lt,hasOwnProperty:Re,hasOwnProp:Re,reduceDescriptors:Me,freezeMethods:Dt,toObjectSet:jt,toCamelCase:Bt,noop:qt,toFiniteNumber:It,findKey:qe,global:U,isContextDefined:Ie,isSpecCompliantForm:Mt,toJSONObject:Ht,isAsyncFn:zt,isThenable:Vt,setImmediate:He,asap:$t,isIterable:Jt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const ze=m.prototype,Ve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ve[e]={value:e}});Object.defineProperties(m,Ve);Object.defineProperty(ze,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(ze);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const vt=null;function ce(e){return a.isPlainObject(e)||a.isArray(e)}function $e(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Se(e,t,n){return e?e.concat(t).map(function(s,o){return s=$e(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Wt(e){return a.isArray(e)&&!e.some(ce)}const Kt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Y(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(a.isBoolean(p))return p.toString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):it.Buffer.from(p):p}function l(p,y,h){let w=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&Wt(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(w=a.toArray(p)))return y=$e(y),w.forEach(function(S,P){!(a.isUndefined(S)||S===null)&&t.append(i===!0?Se([y],P,o):i===null?y:y+"[]",u(S))}),!1}return ce(p)?!0:(t.append(Se(h,y,o),u(p)),!1)}const d=[],b=Object.assign(Kt,{defaultVisitor:l,convertValue:u,isVisitable:ce});function g(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(w,R){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(R)?R.trim():R,y,b))===!0&&g(w,y?y.concat(R):[R])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Oe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function he(e,t){this._pairs=[],e&&Y(e,this,t)}const Je=he.prototype;Je.append=function(t,n){this._pairs.push([t,n])};Je.toString=function(t){const n=t?function(r){return t.call(this,r,Oe)}:Oe;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Xt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ve(e,t,n){if(!t)return e;const r=n&&n.encode||Xt;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new he(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Gt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Te=Gt,We={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qt=typeof URLSearchParams<"u"?URLSearchParams:he,Zt=typeof FormData<"u"?FormData:null,Yt=typeof Blob<"u"?Blob:null,en={isBrowser:!0,classes:{URLSearchParams:Qt,FormData:Zt,Blob:Yt},protocols:["http","https","file","blob","url","data"]},me=typeof window<"u"&&typeof document<"u",ue=typeof navigator=="object"&&navigator||void 0,tn=me&&(!ue||["ReactNative","NativeScript","NS"].indexOf(ue.product)<0),nn=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),rn=me&&window.location.href||"http://localhost",sn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:me,hasStandardBrowserEnv:tn,hasStandardBrowserWebWorkerEnv:nn,navigator:ue,origin:rn},Symbol.toStringTag,{value:"Module"})),O={...sn,...en};function on(e,t){return Y(e,new O.classes.URLSearchParams,{visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function an(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function cn(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=cn(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(an(r),s,n,0)}),n}return null}function un(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ye={transitional:We,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Ke(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return on(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Y(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),un(t)):t}],transformResponse:[function(t){const n=this.transitional||ye.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ye.headers[e]={}});const be=ye,ln=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fn=e=>{const t={};let n,r,s;return e&&e.split(` +import{g as ot,a as ge,b as it}from"./vendor-57e3a63c.js";function Be(e,t){return function(){return e.apply(t,arguments)}}const{toString:at}=Object.prototype,{getPrototypeOf:pe}=Object,{iterator:G,toStringTag:ke}=Symbol,Q=(e=>t=>{const n=at.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>Q(t)===e),Z=e=>t=>typeof t===e,{isArray:B}=Array,j=Z("undefined");function q(e){return e!==null&&!j(e)&&e.constructor!==null&&!j(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const De=C("ArrayBuffer");function ct(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&De(e.buffer),t}const ut=Z("string"),A=Z("function"),je=Z("number"),I=e=>e!==null&&typeof e=="object",lt=e=>e===!0||e===!1,z=e=>{if(Q(e)!=="object")return!1;const t=pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ke in e)&&!(G in e)},ft=e=>{if(!I(e)||q(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},dt=C("Date"),pt=C("File"),ht=C("Blob"),mt=C("FileList"),yt=e=>I(e)&&A(e.pipe),bt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=Q(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},wt=C("URLSearchParams"),[Et,gt,Rt,St]=["ReadableStream","Request","Response","Headers"].map(C),Ot=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),B(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const U=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ot)(),Ie=e=>!j(e)&&e!==U;function ae(){const{caseless:e}=Ie(this)&&this||{},t={},n=(r,s)=>{const o=e&&qe(t,s)||s;z(t[o])&&z(r)?t[o]=ae(t[o],r):z(r)?t[o]=ae({},r):B(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(M(t,(s,o)=>{n&&A(s)?e[o]=Be(s,n):e[o]=s},{allOwnKeys:r}),e),At=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ct=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Nt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Pt=e=>{if(!e)return null;if(B(e))return e;let t=e.length;if(!je(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_t=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pe(Uint8Array)),Ft=(e,t)=>{const r=(e&&e[G]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Ut=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Lt=C("HTMLFormElement"),Bt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Re=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kt=C("RegExp"),Me=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};M(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Dt=e=>{Me(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return B(e)?r(e):r(String(e).split(t)),n},qt=()=>{},It=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Mt(e){return!!(e&&A(e.append)&&e[ke]==="FormData"&&e[G])}const Ht=e=>{const t=new Array(10),n=(r,s)=>{if(I(r)){if(t.indexOf(r)>=0)return;if(q(r))return r;if(!("toJSON"in r)){t[s]=r;const o=B(r)?[]:{};return M(r,(i,c)=>{const f=n(i,s+1);!j(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},zt=C("AsyncFunction"),Vt=e=>e&&(I(e)||A(e))&&A(e.then)&&A(e.catch),He=((e,t)=>e?setImmediate:t?((n,r)=>(U.addEventListener("message",({source:s,data:o})=>{s===U&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),U.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(U.postMessage)),$t=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof ge<"u"&&ge.nextTick||He,Jt=e=>e!=null&&A(e[G]),a={isArray:B,isArrayBuffer:De,isBuffer:q,isFormData:bt,isArrayBufferView:ct,isString:ut,isNumber:je,isBoolean:lt,isObject:I,isPlainObject:z,isEmptyObject:ft,isReadableStream:Et,isRequest:gt,isResponse:Rt,isHeaders:St,isUndefined:j,isDate:dt,isFile:pt,isBlob:ht,isRegExp:kt,isFunction:A,isStream:yt,isURLSearchParams:wt,isTypedArray:_t,isFileList:mt,forEach:M,merge:ae,extend:Tt,trim:Ot,stripBOM:At,inherits:xt,toFlatObject:Ct,kindOf:Q,kindOfTest:C,endsWith:Nt,toArray:Pt,forEachEntry:Ft,matchAll:Ut,isHTMLForm:Lt,hasOwnProperty:Re,hasOwnProp:Re,reduceDescriptors:Me,freezeMethods:Dt,toObjectSet:jt,toCamelCase:Bt,noop:qt,toFiniteNumber:It,findKey:qe,global:U,isContextDefined:Ie,isSpecCompliantForm:Mt,toJSONObject:Ht,isAsyncFn:zt,isThenable:Vt,setImmediate:He,asap:$t,isIterable:Jt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const ze=m.prototype,Ve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ve[e]={value:e}});Object.defineProperties(m,Ve);Object.defineProperty(ze,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(ze);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const vt=null;function ce(e){return a.isPlainObject(e)||a.isArray(e)}function $e(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Se(e,t,n){return e?e.concat(t).map(function(s,o){return s=$e(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Wt(e){return a.isArray(e)&&!e.some(ce)}const Kt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Y(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(a.isBoolean(p))return p.toString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):it.Buffer.from(p):p}function l(p,y,h){let w=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&Wt(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(w=a.toArray(p)))return y=$e(y),w.forEach(function(S,P){!(a.isUndefined(S)||S===null)&&t.append(i===!0?Se([y],P,o):i===null?y:y+"[]",u(S))}),!1}return ce(p)?!0:(t.append(Se(h,y,o),u(p)),!1)}const d=[],b=Object.assign(Kt,{defaultVisitor:l,convertValue:u,isVisitable:ce});function g(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(w,R){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(R)?R.trim():R,y,b))===!0&&g(w,y?y.concat(R):[R])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Oe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function he(e,t){this._pairs=[],e&&Y(e,this,t)}const Je=he.prototype;Je.append=function(t,n){this._pairs.push([t,n])};Je.toString=function(t){const n=t?function(r){return t.call(this,r,Oe)}:Oe;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Xt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ve(e,t,n){if(!t)return e;const r=n&&n.encode||Xt;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new he(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Gt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Te=Gt,We={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qt=typeof URLSearchParams<"u"?URLSearchParams:he,Zt=typeof FormData<"u"?FormData:null,Yt=typeof Blob<"u"?Blob:null,en={isBrowser:!0,classes:{URLSearchParams:Qt,FormData:Zt,Blob:Yt},protocols:["http","https","file","blob","url","data"]},me=typeof window<"u"&&typeof document<"u",ue=typeof navigator=="object"&&navigator||void 0,tn=me&&(!ue||["ReactNative","NativeScript","NS"].indexOf(ue.product)<0),nn=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),rn=me&&window.location.href||"http://localhost",sn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:me,hasStandardBrowserEnv:tn,hasStandardBrowserWebWorkerEnv:nn,navigator:ue,origin:rn},Symbol.toStringTag,{value:"Module"})),O={...sn,...en};function on(e,t){return Y(e,new O.classes.URLSearchParams,{visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function an(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function cn(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=cn(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(an(r),s,n,0)}),n}return null}function un(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ye={transitional:We,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Ke(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return on(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Y(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),un(t)):t}],transformResponse:[function(t){const n=this.transitional||ye.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ye.headers[e]={}});const be=ye,ln=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fn=e=>{const t={};let n,r,s;return e&&e.split(` `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&ln[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ae=Symbol("internals");function D(e){return e&&String(e).trim().toLowerCase()}function V(e){return e===!1||e==null?e:a.isArray(e)?e.map(V):String(e)}function dn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const pn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function re(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function hn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function mn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class ee{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,u){const l=D(f);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(s,l);(!d||s[d]===void 0||u===!0||u===void 0&&s[d]!==!1)&&(s[d||f]=V(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!pn(t))i(fn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,u;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[u=l[0]]=(f=c[u])?a.isArray(f)?[...f,l[1]]:[f,l[1]]:l[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=D(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return dn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=D(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||re(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=D(i),i){const c=a.findKey(r,i);c&&(!n||re(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||re(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=V(s),delete n[o];return}const c=t?hn(o):String(o).trim();c!==o&&delete n[o],n[c]=V(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ae]=this[Ae]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=D(i);r[c]||(mn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}ee.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(ee.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(ee);const x=ee;function se(e,t){const n=this||be,r=t||n,s=x.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Xe(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function Ge(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function yn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let d=o,b=0;for(;d!==s;)b+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i{n=l,s=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const v=(e,t,n=3)=>{let r=0;const s=bn(50,250);return wn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,u=s(f),l=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},xe=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ce=e=>(...t)=>a.asap(()=>e(...t)),En=O.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,O.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,gn=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Rn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Qe(e,t,n){let r=!Rn(t);return e&&(r||n==!1)?Sn(e,t):t}const Ne=e=>e instanceof x?{...e}:e;function L(e,t){t=t||{};const n={};function r(u,l,d,b){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:b},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,d,b){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,d,b)}else return r(u,l,d,b)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,d){if(d in t)return r(u,l);if(d in e)return r(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(u,l,d)=>s(Ne(u),Ne(l),d,!0)};return a.forEach(Object.keys({...e,...t}),function(l){const d=f[l]||s,b=d(e[l],t[l],l);a.isUndefined(b)&&d!==c||(n[l]=b)}),n}const Ze=e=>{const t=L({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=x.from(i),t.url=ve(Qe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&En(t.url))){const u=s&&o&&gn.read(o);u&&i.set(s,u)}return t},On=typeof XMLHttpRequest<"u",Tn=On&&function(e){return new Promise(function(n,r){const s=Ze(e);let o=s.data;const i=x.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,d,b,g,p;function y(){g&&g(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function w(){if(!h)return;const S=x.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};Ge(function(F){n(F),y()},function(F){r(F),y()},T),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||We;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new m(P,T.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(P,T){h.setRequestHeader(T,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([b,p]=v(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,g]=v(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(l=S=>{h&&(r(!S||S.type?new k(null,e,h):S),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const R=yn(s.url);if(R&&O.protocols.indexOf(R)===-1){r(new m("Unsupported protocol "+R+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},An=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof m?l:new k(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},xn=An,Cn=function*(e,t){let n=e.byteLength;if(!t||n{const s=Nn(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let d=l.byteLength;if(n){let b=o+=d;n(b)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},te=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ye=te&&typeof ReadableStream=="function",_n=te&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),et=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Fn=Ye&&et(()=>{let e=!1;const t=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),_e=64*1024,le=Ye&&et(()=>a.isReadableStream(new Response("").body)),W={stream:le&&(e=>e.body)};te&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!W[t]&&(W[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const Un=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(O.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await _n(e)).byteLength},Ln=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Un(t)},Bn=te&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:b}=Ze(e);u=u?(u+"").toLowerCase():"text";let g=xn([s,o&&o.toAbortSignal()],i),p;const y=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let h;try{if(f&&Fn&&n!=="get"&&n!=="head"&&(h=await Ln(l,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(a.isFormData(r)&&(_=T.headers.get("content-type"))&&l.setContentType(_),T.body){const[F,H]=xe(h,v(Ce(f)));r=Pe(T.body,_e,F,H)}}a.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;p=new Request(t,{...b,signal:g,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let R=await fetch(p,b);const S=le&&(u==="stream"||u==="response");if(le&&(c||S&&y)){const T={};["status","statusText","headers"].forEach(Ee=>{T[Ee]=R[Ee]});const _=a.toFiniteNumber(R.headers.get("content-length")),[F,H]=c&&xe(_,v(Ce(c),!0))||[];R=new Response(Pe(R.body,_e,F,()=>{H&&H(),y&&y()}),T)}u=u||"text";let P=await W[a.findKey(W,u)||"text"](R,e);return!S&&y&&y(),await new Promise((T,_)=>{Ge(T,_,{data:P,headers:x.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:p})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,p),{cause:w.cause||w}):m.from(w,w&&w.code,e,p)}}),fe={http:vt,xhr:Tn,fetch:Bn};a.forEach(fe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Fe=e=>`- ${e}`,kn=e=>a.isFunction(e)||e===null||e===!1,tt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(Fe).join(` diff --git a/web/settings/assets/vendor-bootstrap-374cd88e.js b/web/settings/assets/vendor-bootstrap-6fb47dbc.js similarity index 99% rename from web/settings/assets/vendor-bootstrap-374cd88e.js rename to web/settings/assets/vendor-bootstrap-6fb47dbc.js index cc82da8589..95999e3aa8 100644 --- a/web/settings/assets/vendor-bootstrap-374cd88e.js +++ b/web/settings/assets/vendor-bootstrap-6fb47dbc.js @@ -1,4 +1,4 @@ -import{r as or,c as ur}from"./vendor-25d394b4.js";import{r as fr}from"./vendor-jquery-3364d39b.js";var Ft={exports:{}};/*! +import{r as or,c as ur}from"./vendor-57e3a63c.js";import{r as fr}from"./vendor-jquery-92d6c4db.js";var Ft={exports:{}};/*! * Bootstrap v4.6.2 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) diff --git a/web/settings/assets/vendor-chartjs-94a826eb.js b/web/settings/assets/vendor-chartjs-b3bc0878.js similarity index 99% rename from web/settings/assets/vendor-chartjs-94a826eb.js rename to web/settings/assets/vendor-chartjs-b3bc0878.js index 4d294b7759..eeb675eb94 100644 --- a/web/settings/assets/vendor-chartjs-94a826eb.js +++ b/web/settings/assets/vendor-chartjs-b3bc0878.js @@ -1,4 +1,4 @@ -var Co=Object.defineProperty;var Oo=(i,t,e)=>t in i?Co(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var S=(i,t,e)=>(Oo(i,typeof t!="symbol"?t+"":t,e),e);import{C as bs,d as xs,s as _s,h as hi,v as To,e as Lo,o as Ao,f as zo,w as Io,t as di,n as Ro,i as ys,H as ee}from"./vendor-25d394b4.js";import{D as ht}from"./vendor-luxon-cc86f6dc.js";/*! +var Co=Object.defineProperty;var Oo=(i,t,e)=>t in i?Co(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var S=(i,t,e)=>(Oo(i,typeof t!="symbol"?t+"":t,e),e);import{C as bs,d as xs,s as _s,h as hi,v as To,e as Lo,o as Ao,f as zo,w as Io,t as di,n as Ro,i as ys,H as ee}from"./vendor-57e3a63c.js";import{D as ht}from"./vendor-luxon-cc86f6dc.js";/*! * Chart.js v4.5.0 * https://www.chartjs.org * (c) 2025 Chart.js Contributors diff --git a/web/settings/assets/vendor-fortawesome-66071a0e.js b/web/settings/assets/vendor-fortawesome-d6ee0a65.js similarity index 99% rename from web/settings/assets/vendor-fortawesome-66071a0e.js rename to web/settings/assets/vendor-fortawesome-d6ee0a65.js index af2daca4fd..4748ec58ec 100644 --- a/web/settings/assets/vendor-fortawesome-66071a0e.js +++ b/web/settings/assets/vendor-fortawesome-d6ee0a65.js @@ -1,4 +1,4 @@ -import{g as Qt,d as Rt,j as k,w as u2,h as ke}from"./vendor-25d394b4.js";/*! +import{g as Qt,d as Rt,j as k,w as u2,h as ke}from"./vendor-57e3a63c.js";/*! * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) * Copyright 2024 Fonticons, Inc. diff --git a/web/settings/assets/vendor-jquery-3364d39b.js b/web/settings/assets/vendor-jquery-92d6c4db.js similarity index 99% rename from web/settings/assets/vendor-jquery-3364d39b.js rename to web/settings/assets/vendor-jquery-92d6c4db.js index d162fb7d74..d068472b8f 100644 --- a/web/settings/assets/vendor-jquery-3364d39b.js +++ b/web/settings/assets/vendor-jquery-92d6c4db.js @@ -1,4 +1,4 @@ -import{c as Fr}from"./vendor-25d394b4.js";var Mt={exports:{}};/*! +import{c as Fr}from"./vendor-57e3a63c.js";var Mt={exports:{}};/*! * jQuery JavaScript Library v3.7.1 * https://jquery.com/ * diff --git a/web/settings/assets/vendor-sortablejs-0eb84ec8.js b/web/settings/assets/vendor-sortablejs-63b3e6e3.js similarity index 99% rename from web/settings/assets/vendor-sortablejs-0eb84ec8.js rename to web/settings/assets/vendor-sortablejs-63b3e6e3.js index 87cf0d4af9..2049bb4e3f 100644 --- a/web/settings/assets/vendor-sortablejs-0eb84ec8.js +++ b/web/settings/assets/vendor-sortablejs-63b3e6e3.js @@ -1,4 +1,4 @@ -import{k as Ue}from"./vendor-25d394b4.js";/**! +import{k as Ue}from"./vendor-57e3a63c.js";/**! * Sortable 1.14.0 * @author RubaXa * @author owenm diff --git a/web/settings/assets/webTheme-c3f02b77.js b/web/settings/assets/webTheme-45ca7ce6.js similarity index 66% rename from web/settings/assets/webTheme-c3f02b77.js rename to web/settings/assets/webTheme-45ca7ce6.js index 092edd63fb..5cbadd3750 100644 --- a/web/settings/assets/webTheme-c3f02b77.js +++ b/web/settings/assets/webTheme-45ca7ce6.js @@ -1 +1 @@ -import{W as a}from"./GeneralConfig-a1e6f160.js";import{_ as r,u as i,l as s,m,G as p,E as d,B as l}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const u={name:"WebThemeKoala",mixins:[a]},_={class:"web-theme-standard-legacy"};function f(t,e,c,h,g,b){const n=i("openwb-base-range-input");return s(),m("div",_,[p(n,{title:"Zeitfenster Verlaufsdiagramm",min:15,max:120,step:15,unit:"Min.","model-value":Math.round(t.webTheme.configuration.history_chart_range/(60*1e3)),"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o*60*1e3,"configuration.history_chart_range"))},{help:d(()=>e[1]||(e[1]=[l(" Das Zeitfenster für das Verlaufsdiagramm wird auf die hier eingestellte Anzahl Minuten beschränkt. ",-1)])),_:1},8,["model-value"])])}const W=r(u,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/standard_legacy/webTheme.vue"]]);export{W as default}; +import{W as a}from"./GeneralConfig-3d94b7eb.js";import{_ as r,u as i,l as s,m,G as p,E as d,B as l}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const u={name:"WebThemeKoala",mixins:[a]},_={class:"web-theme-standard-legacy"};function f(t,e,c,h,g,b){const n=i("openwb-base-range-input");return s(),m("div",_,[p(n,{title:"Zeitfenster Verlaufsdiagramm",min:15,max:120,step:15,unit:"Min.","model-value":Math.round(t.webTheme.configuration.history_chart_range/(60*1e3)),"onUpdate:modelValue":e[0]||(e[0]=o=>t.updateConfiguration(o*60*1e3,"configuration.history_chart_range"))},{help:d(()=>e[1]||(e[1]=[l(" Das Zeitfenster für das Verlaufsdiagramm wird auf die hier eingestellte Anzahl Minuten beschränkt. ",-1)])),_:1},8,["model-value"])])}const W=r(u,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/standard_legacy/webTheme.vue"]]);export{W as default}; diff --git a/web/settings/assets/webTheme-27077fcd.js b/web/settings/assets/webTheme-eb62fae2.js similarity index 88% rename from web/settings/assets/webTheme-27077fcd.js rename to web/settings/assets/webTheme-eb62fae2.js index 92be60a045..5f43d1d9a4 100644 --- a/web/settings/assets/webTheme-27077fcd.js +++ b/web/settings/assets/webTheme-eb62fae2.js @@ -1 +1 @@ -import{W as d}from"./GeneralConfig-a1e6f160.js";import{_ as p,u as r,l as m,m as b,G as i,E as a,B as o,A as h}from"./vendor-25d394b4.js";import"./vendor-fortawesome-66071a0e.js";import"./index-93388667.js";import"./vendor-bootstrap-374cd88e.js";import"./vendor-jquery-3364d39b.js";import"./vendor-axios-ac33d60c.js";import"./vendor-sortablejs-0eb84ec8.js";import"./dynamic-import-helper-be004503.js";const g={name:"WebThemeKoala",mixins:[d]},f={class:"web-theme-koala"};function w(n,e,_,c,v,k){const s=r("openwb-base-range-input"),l=r("openwb-base-number-input"),u=r("openwb-base-button-group-input");return m(),b("div",f,[i(s,{title:"Zeitfenster Verlaufsdiagramm",min:15,max:120,step:15,unit:"Min.","model-value":n.webTheme.configuration.history_chart_range/60,"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t*60,"configuration.history_chart_range"))},{help:a(()=>e[5]||(e[5]=[o(" Das Zeitfenster für das Verlaufsdiagramm wird auf die hier eingestellte Anzahl Minuten beschränkt. ",-1)])),_:1},8,["model-value"]),i(l,{title:"Ladepunkt Kartenansicht Grenzwert",min:0,step:1,"model-value":n.webTheme.configuration.chargePoint_card_view_breakpoint,"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.chargePoint_card_view_breakpoint"))},{help:a(()=>e[6]||(e[6]=[o(" Legt fest, bis zu wie vielen Ladepunkten die Kartenansicht verwendet wird. Bei mehr Ladepunkten wird automatisch zur Tabellenansicht gewechselt. ",-1)])),_:1},8,["model-value"]),i(u,{title:"Suchfeld in Ladepunkt Tabellenansicht",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.webTheme.configuration.chargePoint_table_search_input_field,"onUpdate:modelValue":e[2]||(e[2]=t=>n.updateConfiguration(t,"configuration.chargePoint_table_search_input_field"))},{help:a(()=>e[7]||(e[7]=[o(" Legt fest, ob in der Tabellenansicht ein Suchfeld angezeigt wird. Mit diesem Suchfeld können die Felder „Ladepunkt“ und „Fahrzeug“ durchsucht werden. ",-1)])),_:1},8,["model-value"]),e[10]||(e[10]=h("hr",null,null,-1)),i(l,{title:"Fahrzeug Kartenansicht Grenzwert",min:0,step:1,"model-value":n.webTheme.configuration.vehicle_card_view_breakpoint,"onUpdate:modelValue":e[3]||(e[3]=t=>n.updateConfiguration(t,"configuration.vehicle_card_view_breakpoint"))},{help:a(()=>e[8]||(e[8]=[o(" Legt fest, bis zu wie vielen Fahrzeugen die Kartenansicht verwendet wird. Bei mehr Fahrzeugen wird automatisch zur Tabellenansicht gewechselt. ",-1)])),_:1},8,["model-value"]),i(u,{title:"Suchfeld in Fahrzeug Tabellenansicht",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.webTheme.configuration.vehicle_table_search_input_field,"onUpdate:modelValue":e[4]||(e[4]=t=>n.updateConfiguration(t,"configuration.vehicle_table_search_input_field"))},{help:a(()=>e[9]||(e[9]=[o(" Legt fest, ob in der Tabellenansicht ein Suchfeld angezeigt wird. Mit diesem Suchfeld können die Felder „Fahrzeug“, „Hersteller“ und „Modell“ durchsucht werden. ",-1)])),_:1},8,["model-value"])])}const K=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/koala/webTheme.vue"]]);export{K as default}; +import{W as d}from"./GeneralConfig-3d94b7eb.js";import{_ as p,u as r,l as m,m as b,G as i,E as a,B as o,A as h}from"./vendor-57e3a63c.js";import"./vendor-fortawesome-d6ee0a65.js";import"./index-eccf5556.js";import"./vendor-bootstrap-6fb47dbc.js";import"./vendor-jquery-92d6c4db.js";import"./vendor-axios-89a9dc60.js";import"./vendor-sortablejs-63b3e6e3.js";import"./dynamic-import-helper-be004503.js";const g={name:"WebThemeKoala",mixins:[d]},f={class:"web-theme-koala"};function w(n,e,_,c,v,k){const s=r("openwb-base-range-input"),l=r("openwb-base-number-input"),u=r("openwb-base-button-group-input");return m(),b("div",f,[i(s,{title:"Zeitfenster Verlaufsdiagramm",min:15,max:120,step:15,unit:"Min.","model-value":n.webTheme.configuration.history_chart_range/60,"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t*60,"configuration.history_chart_range"))},{help:a(()=>e[5]||(e[5]=[o(" Das Zeitfenster für das Verlaufsdiagramm wird auf die hier eingestellte Anzahl Minuten beschränkt. ",-1)])),_:1},8,["model-value"]),i(l,{title:"Ladepunkt Kartenansicht Grenzwert",min:0,step:1,"model-value":n.webTheme.configuration.chargePoint_card_view_breakpoint,"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.chargePoint_card_view_breakpoint"))},{help:a(()=>e[6]||(e[6]=[o(" Legt fest, bis zu wie vielen Ladepunkten die Kartenansicht verwendet wird. Bei mehr Ladepunkten wird automatisch zur Tabellenansicht gewechselt. ",-1)])),_:1},8,["model-value"]),i(u,{title:"Suchfeld in Ladepunkt Tabellenansicht",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.webTheme.configuration.chargePoint_table_search_input_field,"onUpdate:modelValue":e[2]||(e[2]=t=>n.updateConfiguration(t,"configuration.chargePoint_table_search_input_field"))},{help:a(()=>e[7]||(e[7]=[o(" Legt fest, ob in der Tabellenansicht ein Suchfeld angezeigt wird. Mit diesem Suchfeld können die Felder „Ladepunkt“ und „Fahrzeug“ durchsucht werden. ",-1)])),_:1},8,["model-value"]),e[10]||(e[10]=h("hr",null,null,-1)),i(l,{title:"Fahrzeug Kartenansicht Grenzwert",min:0,step:1,"model-value":n.webTheme.configuration.vehicle_card_view_breakpoint,"onUpdate:modelValue":e[3]||(e[3]=t=>n.updateConfiguration(t,"configuration.vehicle_card_view_breakpoint"))},{help:a(()=>e[8]||(e[8]=[o(" Legt fest, bis zu wie vielen Fahrzeugen die Kartenansicht verwendet wird. Bei mehr Fahrzeugen wird automatisch zur Tabellenansicht gewechselt. ",-1)])),_:1},8,["model-value"]),i(u,{title:"Suchfeld in Fahrzeug Tabellenansicht",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.webTheme.configuration.vehicle_table_search_input_field,"onUpdate:modelValue":e[4]||(e[4]=t=>n.updateConfiguration(t,"configuration.vehicle_table_search_input_field"))},{help:a(()=>e[9]||(e[9]=[o(" Legt fest, ob in der Tabellenansicht ein Suchfeld angezeigt wird. Mit diesem Suchfeld können die Felder „Fahrzeug“, „Hersteller“ und „Modell“ durchsucht werden. ",-1)])),_:1},8,["model-value"])])}const K=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/koala/webTheme.vue"]]);export{K as default}; diff --git a/web/settings/index.html b/web/settings/index.html index 4dbc0450bb..3ac04e3f0e 100644 --- a/web/settings/index.html +++ b/web/settings/index.html @@ -7,13 +7,13 @@ openWB - - - - - - - + + + + + + + From f30d4824590676d7a9bb4d42d589788b03298833 Mon Sep 17 00:00:00 2001 From: BrettS Date: Tue, 5 Aug 2025 10:33:26 +0200 Subject: [PATCH 2/9] Add bidi mode and settings --- .../components/ChargePointBidiSettings.vue | 157 ++++++++++++++++++ .../components/ChargePointInstantSettings.vue | 12 -- .../src/components/ChargePointModeButtons.vue | 33 ++-- .../src/components/ChargePointSettings.vue | 7 +- .../components/ChargePointVehicleSelect.vue | 3 - .../source/src/composables/useChargeModes.ts | 1 + .../source/src/stores/mqtt-store-model.ts | 49 ++++++ .../koala/source/src/stores/mqtt-store.ts | 74 +++++++++ 8 files changed, 309 insertions(+), 27 deletions(-) create mode 100644 packages/modules/web_themes/koala/source/src/components/ChargePointBidiSettings.vue diff --git a/packages/modules/web_themes/koala/source/src/components/ChargePointBidiSettings.vue b/packages/modules/web_themes/koala/source/src/components/ChargePointBidiSettings.vue new file mode 100644 index 0000000000..81b6cc71f2 --- /dev/null +++ b/packages/modules/web_themes/koala/source/src/components/ChargePointBidiSettings.vue @@ -0,0 +1,157 @@ + + + + + diff --git a/packages/modules/web_themes/koala/source/src/components/ChargePointInstantSettings.vue b/packages/modules/web_themes/koala/source/src/components/ChargePointInstantSettings.vue index 1ad91b72b0..00ee122623 100644 --- a/packages/modules/web_themes/koala/source/src/components/ChargePointInstantSettings.vue +++ b/packages/modules/web_themes/koala/source/src/components/ChargePointInstantSettings.vue @@ -132,15 +132,3 @@ const limitEnergy = computed(() => ), ); - - diff --git a/packages/modules/web_themes/koala/source/src/components/ChargePointModeButtons.vue b/packages/modules/web_themes/koala/source/src/components/ChargePointModeButtons.vue index e9c3824041..99ae757ec4 100644 --- a/packages/modules/web_themes/koala/source/src/components/ChargePointModeButtons.vue +++ b/packages/modules/web_themes/koala/source/src/components/ChargePointModeButtons.vue @@ -30,17 +30,28 @@ - - - +
+ + + + + + +
- - diff --git a/packages/modules/web_themes/koala/source/src/composables/useChargeModes.ts b/packages/modules/web_themes/koala/source/src/composables/useChargeModes.ts index 60e9238e0f..9895b4289e 100644 --- a/packages/modules/web_themes/koala/source/src/composables/useChargeModes.ts +++ b/packages/modules/web_themes/koala/source/src/composables/useChargeModes.ts @@ -4,6 +4,7 @@ export const useChargeModes = () => { { value: 'pv_charging', label: 'PV', color: 'positive' }, { value: 'scheduled_charging', label: 'Ziel', color: 'primary' }, { value: 'eco_charging', label: 'Eco', color: 'accent' }, + { value: 'bidi_charging', label: 'Bidi', color: 'light' }, { value: 'stop', label: 'Stop', color: 'light' }, ]; return { diff --git a/packages/modules/web_themes/koala/source/src/stores/mqtt-store-model.ts b/packages/modules/web_themes/koala/source/src/stores/mqtt-store-model.ts index 24b1471f8f..4114c134d9 100644 --- a/packages/modules/web_themes/koala/source/src/stores/mqtt-store-model.ts +++ b/packages/modules/web_themes/koala/source/src/stores/mqtt-store-model.ts @@ -72,6 +72,32 @@ export interface ChargeTemplateConfiguration { }; chargemode: { selected: string; + bidi_charging: { + plan: { + id: number; + name: string; + active: boolean; + current: number; + dc_current: number; + et_active: boolean; + time: string; + phases_to_use: number; + phases_to_use_pv: number; + + frequency: { + selected: string; + once?: string; + weekly: boolean[]; + }; + limit: { + selected: string; + amount?: number; + soc_limit?: number; + soc_scheduled?: number; + }; + }; + power: number; + }; eco_charging: { current: number; dc_current: number; @@ -113,6 +139,29 @@ export interface ChargeTemplateConfiguration { }; }; } +export interface BidiChargingPlan { + id: number; + name: string; + active: boolean; + current: number; + dc_current: number; + et_active: boolean; + time: string; + phases_to_use: number; + phases_to_use_pv: number; + + frequency: { + selected: string; + once?: string; + weekly: boolean[]; + }; + limit: { + selected: string; + amount?: number; + soc_limit?: number; + soc_scheduled?: number; + }; +} export interface ValueObject { textValue: string; value: number; diff --git a/packages/modules/web_themes/koala/source/src/stores/mqtt-store.ts b/packages/modules/web_themes/koala/source/src/stores/mqtt-store.ts index c40c6cd711..d44037cd39 100644 --- a/packages/modules/web_themes/koala/source/src/stores/mqtt-store.ts +++ b/packages/modules/web_themes/koala/source/src/stores/mqtt-store.ts @@ -12,6 +12,7 @@ import type { Hierarchy, ChargePointConnectedVehicleConfig, ChargeTemplateConfiguration, + BidiChargingPlan, ValueObject, ChargePointConnectedVehicleInfo, Vehicle, @@ -1615,6 +1616,76 @@ export const useMqttStore = defineStore('mqtt', () => { }); }; + /** + * Get the charge point connected vehicle bidi charging plan identified by the charge point id + * @param chargePointId charge point id + * @returns object | undefined + */ + const chargePointConnectedVehicleBidiChargePlan = computed(() => { + return (chargePointId: number) => { + return chargePointConnectedVehicleChargeTemplate(chargePointId).value + ?.chargemode?.bidi_charging?.plan as BidiChargingPlan | undefined; + }; + }); + + /** + * Get or set the charge point connected vehicle bidi charging minimaler Entlade-SoC identified by the charge point id + * @param chargePointId charge point id + * @returns number | undefined + */ + const chargePointConnectedVehicleBidiChargeMinEntladeSoC = ( + chargePointId: number, + ) => { + return computed({ + get() { + const soc = + chargePointConnectedVehicleChargeTemplate(chargePointId).value + ?.chargemode?.bidi_charging?.plan?.limit?.soc_scheduled; + if (soc === undefined) { + return; + } + return soc; + }, + set(newValue: number) { + return updateTopic( + `openWB/chargepoint/${chargePointId}/set/charge_template`, + newValue, + 'chargemode.bidi_charging.plan.limit.soc_scheduled', + true, + ); + }, + }); + }; + + /** + * Get or set the charge point connected vehicle bidi charging current identified by the charge point id + * @param chargePointId charge point id + * @returns number | undefined + */ + const chargePointConnectedVehicleBidiChargeCurrent = ( + chargePointId: number, + ) => { + return computed({ + get() { + const current = + chargePointConnectedVehicleChargeTemplate(chargePointId).value + ?.chargemode?.bidi_charging?.plan?.current; + if (current === undefined) { + return; + } + return current; + }, + set(newValue: number) { + return updateTopic( + `openWB/chargepoint/${chargePointId}/set/charge_template`, + newValue, + 'chargemode.bidi_charging.plan.current', + true, + ); + }, + }); + }; + /** * Get or set the charge point connected vehicle charge priority identified by the charge point id * @param chargePointId charge point id @@ -2884,6 +2955,9 @@ export const useMqttStore = defineStore('mqtt', () => { chargePointConnectedVehicleEcoChargeLimitSoC, chargePointConnectedVehicleEcoChargeLimitEnergy, chargePointConnectedVehicleEcoChargeMaxPrice, + chargePointConnectedVehicleBidiChargePlan, + chargePointConnectedVehicleBidiChargeMinEntladeSoC, + chargePointConnectedVehicleBidiChargeCurrent, chargePointConnectedVehiclePriority, chargePointConnectedVehicleTimeCharging, chargePointConnectedVehicleChargeTemplate, From 315c87e0bd7179035b0a2755183a1b7cff8a34bf Mon Sep 17 00:00:00 2001 From: BrettS Date: Wed, 6 Aug 2025 11:41:46 +0200 Subject: [PATCH 3/9] Add bidi settings to standard theme --- .../web_themes/standard_legacy/web/index.html | 83 ++++++++++++++++++- .../standard_legacy/web/processAllMqttMsg.js | 46 ++++++++++ .../web_themes/standard_legacy/web/style.css | 3 +- 3 files changed, 130 insertions(+), 2 deletions(-) diff --git a/packages/modules/web_themes/standard_legacy/web/index.html b/packages/modules/web_themes/standard_legacy/web/index.html index 04f7b2d621..5750da45f8 100644 --- a/packages/modules/web_themes/standard_legacy/web/index.html +++ b/packages/modules/web_themes/standard_legacy/web/index.html @@ -1182,6 +1182,87 @@

Einstellungen für "Eco"

+ +
+
+
+

Einstellungen für "Bidi"

+
+
+ +
+
+
+
+ Minimaler Entlade-SoC +
+
+
+
+ +
+ +
+
+
+
+
+ Stromstärke +
+
+
+
+ +
+ +
+
+
+ +
+
+
+ -- +
+
+ + + + -- + + + -- + + + -- + + -- + +
+
+
+
@@ -1660,7 +1741,7 @@