diff --git a/.github/workflows/build_web_theme_colors.yml b/.github/workflows/build_web_theme_colors.yml new file mode 100644 index 0000000000..65cff97d3a --- /dev/null +++ b/.github/workflows/build_web_theme_colors.yml @@ -0,0 +1,37 @@ +name: Build Web Theme Colors + +on: + push: + paths: + - packages/modules/web_themes/colors/source/** + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Node.js 24 + uses: actions/setup-node@v4 + with: + node-version: 24 + cache: npm + cache-dependency-path: packages/modules/web_themes/colors/source/package-lock.json + + - name: Install Dependencies and Build + run: | + cd packages/modules/web_themes/colors/source + npm install + npm run build --if-present + + - name: Commit and Push Changes + run: | + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + git add packages/modules/web_themes/colors/web + git commit -m "Build Web Theme: Colors" + git push diff --git a/.github/workflows/check_display_theme_colors.yml b/.github/workflows/check_display_theme_colors.yml new file mode 100644 index 0000000000..259f4b917e --- /dev/null +++ b/.github/workflows/check_display_theme_colors.yml @@ -0,0 +1,34 @@ +name: Check Display Theme Colors + +on: + pull_request: + paths: + - packages/modules/display_themes/colors/source/** + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node: [ 22, 24 ] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Node.js ${{ matrix.node }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: 'npm' + cache-dependency-path: packages/modules/display_themes/colors/source/package-lock.json + + - name: Install Dependencies and Build + run: | + cd packages/modules/display_themes/colors/source + npm install + npm run build --if-present diff --git a/.github/workflows/check_web_theme_colors.yml b/.github/workflows/check_web_theme_colors.yml new file mode 100644 index 0000000000..b0bbb9f78b --- /dev/null +++ b/.github/workflows/check_web_theme_colors.yml @@ -0,0 +1,34 @@ +name: Check Web Theme Colors + +on: + pull_request: + paths: + - packages/modules/web_themes/colors/source/** + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node: [ 22, 24 ] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Node.js ${{ matrix.node }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: 'npm' + cache-dependency-path: packages/modules/web_themes/colors/source/package-lock.json + + - name: Install Dependencies and Build + run: | + cd packages/modules/web_themes/colors/source + npm install + npm run build --if-present diff --git a/packages/main.py b/packages/main.py index 878c56397a..34538fd566 100755 --- a/packages/main.py +++ b/packages/main.py @@ -71,7 +71,7 @@ def handler_with_control_interval(): self.interval_counter = self.interval_counter + 1 log.info("# ***Start*** ") log.debug(run_command.run_shell_command("top -b -n 1 | head -n 20")) - log.debug(f'Drosselung: {run_command.run_shell_command("vcgencmd get_throttled")}') + log.debug(f'Drosselung: {run_command.run_shell_command("if which vcgencmd >/dev/null; then vcgencmd get_throttled; else echo not found; fi")}') log.debug(f"Threads: {enumerate()}") for thread in threading.enumerate(): logging.debug(f"Thread Name: {thread.name}") diff --git a/packages/modules/devices/kostal/kostal_plenticore/inverter.py b/packages/modules/devices/kostal/kostal_plenticore/inverter.py index 18eb0cbaf4..28315988cf 100644 --- a/packages/modules/devices/kostal/kostal_plenticore/inverter.py +++ b/packages/modules/devices/kostal/kostal_plenticore/inverter.py @@ -31,17 +31,22 @@ def initialize(self) -> None: self.client: ModbusTcpClient_ = self.kwargs['client'] self.store = get_inverter_value_store(self.component_config.id) self.fault_state = FaultState(ComponentInfo.from_component_config(self.component_config)) - self.sim_counter = SimCounter(self.__device_id, self.component_config.id, prefix="pv") + self.sim_counter = SimCounter(self.kwargs['device_id'], self.component_config.id, prefix="Wechselrichter") def update(self) -> None: power = self.client.read_holding_registers( 575, ModbusDataType.INT_16, unit=self.modbus_id, wordorder=self.endianess) * -1 exported = self.client.read_holding_registers( 320, ModbusDataType.FLOAT_32, unit=self.modbus_id, wordorder=self.endianess) + dc_power = self.client.read_holding_registers( + 1066, ModbusDataType.FLOAT_32, unit=self.modbus_id, wordorder=self.endianess) * -1 + imported, _ = self.sim_counter.sim_count(power) inverter_state = InverterState( power=power, - exported=exported + exported=exported, + dc_power=dc_power, + imported=imported ) self.store.set(inverter_state) diff --git a/packages/modules/web_themes/colors/source/.gitignore b/packages/modules/web_themes/colors/source/.gitignore index fc0cb81a60..2a3dbb1dee 100644 --- a/packages/modules/web_themes/colors/source/.gitignore +++ b/packages/modules/web_themes/colors/source/.gitignore @@ -8,7 +8,6 @@ yarn-error.log* pnpm-debug.log* lerna-debug.log* -package-lock.json yarn.lock # Editor directories and files diff --git a/packages/modules/web_themes/colors/source/package-lock.json b/packages/modules/web_themes/colors/source/package-lock.json new file mode 100644 index 0000000000..c4feb9958b --- /dev/null +++ b/packages/modules/web_themes/colors/source/package-lock.json @@ -0,0 +1,4540 @@ +{ + "name": "wbcolortheme21", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "wbcolortheme21", + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "@popperjs/core": "^2.11.8", + "bootstrap": "^5.3.3", + "d3": "^7.9.0", + "mqtt": "^5.10.3", + "process": "^0.11.10", + "swiper": "^11.2.1", + "vue": "^3.3.4" + }, + "devDependencies": { + "@babel/types": "^7.26.7", + "@esbuild-plugins/node-globals-polyfill": "^0.2.3", + "@esbuild-plugins/node-modules-polyfill": "^0.2.2", + "@eslint/compat": "^1.2.5", + "@eslint/eslintrc": "^3.2.0", + "@eslint/js": "^9.17.0", + "@rushstack/eslint-patch": "^1.10.5", + "@tsconfig/node20": "^20.1.4", + "@types/bootstrap": "^5.2.10", + "@types/d3": "^7.4.3", + "@types/node": "^20.17.16", + "@typescript-eslint/eslint-plugin": "^8.19.0", + "@typescript-eslint/parser": "^8.0.0", + "@vitejs/plugin-vue": "^5.2.1", + "@vue/eslint-config-prettier": "^10.2.0", + "@vue/eslint-config-typescript": "^14.3.0", + "@vue/tsconfig": "^0.7.0", + "esbuild": "^0.24.2", + "eslint": "^9.19.0", + "eslint-plugin-vue": "^9.32.0", + "npm-run-all2": "^7.0.2", + "prettier": "^3.4.2", + "rollup": "^4.32.0", + "rollup-plugin-polyfill-node": "^0.13.0", + "typescript": "^5.7.3", + "vite": "^6.0.11", + "vue-tsc": "^2.2.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", + "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.7.tgz", + "integrity": "sha512-kEvgGGgEjRUutvdVvZhbn/BxVt+5VSpwXz1j3WYXQbXDo8KzFOPNG2GQbdAiNq8g6wn1yKk7C/qrke03a84V+w==", + "dependencies": { + "@babel/types": "^7.26.7" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.7.tgz", + "integrity": "sha512-AOPI3D+a8dXnja+iwsUqGRjr1BbZIe771sXdapOtYI531gSqpi92vXivKcq2asu/DFpdl1ceFAKZyRzK2PCVcQ==", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.7.tgz", + "integrity": "sha512-t8kDRGrKXyp6+tjUh7hw2RLyclsW4TRoRvRHtSyAX9Bb5ldlFh+90YAYY6awRXrlB4G5G2izNeGySpATlFzmOg==", + "dependencies": { + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@esbuild-plugins/node-globals-polyfill": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@esbuild-plugins/node-globals-polyfill/-/node-globals-polyfill-0.2.3.tgz", + "integrity": "sha512-r3MIryXDeXDOZh7ih1l/yE9ZLORCd5e8vWg02azWRGj5SPTuoh69A2AIyn0Z31V/kHBfZ4HgWJ+OK3GTTwLmnw==", + "dev": true, + "peerDependencies": { + "esbuild": "*" + } + }, + "node_modules/@esbuild-plugins/node-modules-polyfill": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@esbuild-plugins/node-modules-polyfill/-/node-modules-polyfill-0.2.2.tgz", + "integrity": "sha512-LXV7QsWJxRuMYvKbiznh+U1ilIop3g2TeKRzUxOG5X3YITc8JyyTa90BmLwqqv0YnX4v32CSlG+vsziZp9dMvA==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^4.0.0", + "rollup-plugin-node-polyfills": "^0.2.1" + }, + "peerDependencies": { + "esbuild": "*" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.2.tgz", + "integrity": "sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.2.tgz", + "integrity": "sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.2.tgz", + "integrity": "sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.2.tgz", + "integrity": "sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.2.tgz", + "integrity": "sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.2.tgz", + "integrity": "sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.2.tgz", + "integrity": "sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.2.tgz", + "integrity": "sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.2.tgz", + "integrity": "sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.2.tgz", + "integrity": "sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.2.tgz", + "integrity": "sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.2.tgz", + "integrity": "sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.2.tgz", + "integrity": "sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.2.tgz", + "integrity": "sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.2.tgz", + "integrity": "sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.2.tgz", + "integrity": "sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.2.tgz", + "integrity": "sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.24.2.tgz", + "integrity": "sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.2.tgz", + "integrity": "sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.2.tgz", + "integrity": "sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.2.tgz", + "integrity": "sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.2.tgz", + "integrity": "sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.2.tgz", + "integrity": "sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.2.tgz", + "integrity": "sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.2.tgz", + "integrity": "sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", + "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/compat": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-1.2.5.tgz", + "integrity": "sha512-5iuG/StT+7OfvhoBHPlmxkPA9om6aDUFgmD4+mWKAGsYt4vCe8rypneG03AuseyRHBmcCLXQtIH5S26tIoggLg==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "peerDependencies": { + "eslint": "^9.10.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/@eslint/config-array": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.1.tgz", + "integrity": "sha512-fo6Mtm5mWyKjA/Chy1BYTdn5mGJoDNjC7C64ug20ADsRDGrA85bN3uK3MaKbeRkRuuIEAR5N33Jr1pbm411/PA==", + "dev": true, + "dependencies": { + "@eslint/object-schema": "^2.1.5", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.10.0.tgz", + "integrity": "sha512-gFHJ+xBOo4G3WRlR1e/3G8A6/KZAH6zcE/hkLRCZTi/B9avAG365QhFA8uOGzTMqgTghpn7/fSnscW++dpMSAw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.2.0.tgz", + "integrity": "sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "9.19.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.19.0.tgz", + "integrity": "sha512-rbq9/g38qjfqFLOVPvwjIvFFdNziEC5S65jmjPw5r6A//QH+W91akh9irMwjDN8zKUTak6W9EsAv4m/7Wnw0UQ==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.5.tgz", + "integrity": "sha512-o0bhxnL89h5Bae5T318nFoFzGy+YE5i/gGkoPAgkmTVdRKTiv3p8JHevPiPaMwoloKfEiiaHlawCqaZMqRm+XQ==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.5.tgz", + "integrity": "sha512-lB05FkqEdUg2AA0xEbUz0SnkXT1LcCTa438W4IWTUh4hdOnVbQyOJ81OrDXsJk/LSiJHubgGEFoR5EHq1NsH1A==", + "dev": true, + "dependencies": { + "@eslint/core": "^0.10.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "dev": true, + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "dev": true, + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.1.tgz", + "integrity": "sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==", + "dev": true, + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==" + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pkgr/core": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz", + "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@rollup/plugin-inject": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@rollup/plugin-inject/-/plugin-inject-5.0.5.tgz", + "integrity": "sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.3" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-inject/node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + }, + "node_modules/@rollup/plugin-inject/node_modules/magic-string": { + "version": "0.30.17", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", + "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.4.tgz", + "integrity": "sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==", + "dev": true, + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/pluginutils/node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + }, + "node_modules/@rollup/pluginutils/node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.32.0.tgz", + "integrity": "sha512-G2fUQQANtBPsNwiVFg4zKiPQyjVKZCUdQUol53R8E71J7AsheRMV/Yv/nB8giOcOVqP7//eB5xPqieBYZe9bGg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.32.0.tgz", + "integrity": "sha512-qhFwQ+ljoymC+j5lXRv8DlaJYY/+8vyvYmVx074zrLsu5ZGWYsJNLjPPVJJjhZQpyAKUGPydOq9hRLLNvh1s3A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.32.0.tgz", + "integrity": "sha512-44n/X3lAlWsEY6vF8CzgCx+LQaoqWGN7TzUfbJDiTIOjJm4+L2Yq+r5a8ytQRGyPqgJDs3Rgyo8eVL7n9iW6AQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.32.0.tgz", + "integrity": "sha512-F9ct0+ZX5Np6+ZDztxiGCIvlCaW87HBdHcozUfsHnj1WCUTBUubAoanhHUfnUHZABlElyRikI0mgcw/qdEm2VQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.32.0.tgz", + "integrity": "sha512-JpsGxLBB2EFXBsTLHfkZDsXSpSmKD3VxXCgBQtlPcuAqB8TlqtLcbeMhxXQkCDv1avgwNjF8uEIbq5p+Cee0PA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.32.0.tgz", + "integrity": "sha512-wegiyBT6rawdpvnD9lmbOpx5Sph+yVZKHbhnSP9MqUEDX08G4UzMU+D87jrazGE7lRSyTRs6NEYHtzfkJ3FjjQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.32.0.tgz", + "integrity": "sha512-3pA7xecItbgOs1A5H58dDvOUEboG5UfpTq3WzAdF54acBbUM+olDJAPkgj1GRJ4ZqE12DZ9/hNS2QZk166v92A==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.32.0.tgz", + "integrity": "sha512-Y7XUZEVISGyge51QbYyYAEHwpGgmRrAxQXO3siyYo2kmaj72USSG8LtlQQgAtlGfxYiOwu+2BdbPjzEpcOpRmQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.32.0.tgz", + "integrity": "sha512-r7/OTF5MqeBrZo5omPXcTnjvv1GsrdH8a8RerARvDFiDwFpDVDnJyByYM/nX+mvks8XXsgPUxkwe/ltaX2VH7w==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.32.0.tgz", + "integrity": "sha512-HJbifC9vex9NqnlodV2BHVFNuzKL5OnsV2dvTw6e1dpZKkNjPG6WUq+nhEYV6Hv2Bv++BXkwcyoGlXnPrjAKXw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loongarch64-gnu": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.32.0.tgz", + "integrity": "sha512-VAEzZTD63YglFlWwRj3taofmkV1V3xhebDXffon7msNz4b14xKsz7utO6F8F4cqt8K/ktTl9rm88yryvDpsfOw==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.32.0.tgz", + "integrity": "sha512-Sts5DST1jXAc9YH/iik1C9QRsLcCoOScf3dfbY5i4kH9RJpKxiTBXqm7qU5O6zTXBTEZry69bGszr3SMgYmMcQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.32.0.tgz", + "integrity": "sha512-qhlXeV9AqxIyY9/R1h1hBD6eMvQCO34ZmdYvry/K+/MBs6d1nRFLm6BOiITLVI+nFAAB9kUB6sdJRKyVHXnqZw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.32.0.tgz", + "integrity": "sha512-8ZGN7ExnV0qjXa155Rsfi6H8M4iBBwNLBM9lcVS+4NcSzOFaNqmt7djlox8pN1lWrRPMRRQ8NeDlozIGx3Omsw==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.32.0.tgz", + "integrity": "sha512-VDzNHtLLI5s7xd/VubyS10mq6TxvZBp+4NRWoW+Hi3tgV05RtVm4qK99+dClwTN1McA6PHwob6DEJ6PlXbY83A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.32.0.tgz", + "integrity": "sha512-qcb9qYDlkxz9DxJo7SDhWxTWV1gFuwznjbTiov289pASxlfGbaOD54mgbs9+z94VwrXtKTu+2RqwlSTbiOqxGg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.32.0.tgz", + "integrity": "sha512-pFDdotFDMXW2AXVbfdUEfidPAk/OtwE/Hd4eYMTNVVaCQ6Yl8et0meDaKNL63L44Haxv4UExpv9ydSf3aSayDg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.32.0.tgz", + "integrity": "sha512-/TG7WfrCAjeRNDvI4+0AAMoHxea/USWhAzf9PVDFHbcqrQ7hMMKp4jZIy4VEjk72AAfN5k4TiSMRXRKf/0akSw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.32.0.tgz", + "integrity": "sha512-5hqO5S3PTEO2E5VjCePxv40gIgyS2KvO7E7/vvC/NbIW4SIRamkMr1hqj+5Y67fbBWv/bQLB6KelBQmXlyCjWA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rushstack/eslint-patch": { + "version": "1.10.5", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.5.tgz", + "integrity": "sha512-kkKUDVlII2DQiKy7UstOR1ErJP8kUKAQ4oa+SQtM0K+lPdmmjj0YnnxBgtTVYH7mUKtbsxeFC9y0AmK7Yb78/A==", + "dev": true + }, + "node_modules/@tsconfig/node20": { + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.4.tgz", + "integrity": "sha512-sqgsT69YFeLWf5NtJ4Xq/xAF8p4ZQHlmGW74Nu2tD4+g5fAsposc4ZfaaPixVu4y01BEiDCWLRDCvDM5JOsRxg==", + "dev": true + }, + "node_modules/@types/bootstrap": { + "version": "5.2.10", + "resolved": "https://registry.npmjs.org/@types/bootstrap/-/bootstrap-5.2.10.tgz", + "integrity": "sha512-F2X+cd6551tep0MvVZ6nM8v7XgGN/twpdNDjqS1TUM7YFNEtQYWk+dKAnH+T1gr6QgCoGMPl487xw/9hXooa2g==", + "dev": true, + "dependencies": { + "@popperjs/core": "^2.9.2" + } + }, + "node_modules/@types/d3": { + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz", + "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==", + "dev": true, + "dependencies": { + "@types/d3-array": "*", + "@types/d3-axis": "*", + "@types/d3-brush": "*", + "@types/d3-chord": "*", + "@types/d3-color": "*", + "@types/d3-contour": "*", + "@types/d3-delaunay": "*", + "@types/d3-dispatch": "*", + "@types/d3-drag": "*", + "@types/d3-dsv": "*", + "@types/d3-ease": "*", + "@types/d3-fetch": "*", + "@types/d3-force": "*", + "@types/d3-format": "*", + "@types/d3-geo": "*", + "@types/d3-hierarchy": "*", + "@types/d3-interpolate": "*", + "@types/d3-path": "*", + "@types/d3-polygon": "*", + "@types/d3-quadtree": "*", + "@types/d3-random": "*", + "@types/d3-scale": "*", + "@types/d3-scale-chromatic": "*", + "@types/d3-selection": "*", + "@types/d3-shape": "*", + "@types/d3-time": "*", + "@types/d3-time-format": "*", + "@types/d3-timer": "*", + "@types/d3-transition": "*", + "@types/d3-zoom": "*" + } + }, + "node_modules/@types/d3-array": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.1.tgz", + "integrity": "sha512-Y2Jn2idRrLzUfAKV2LyRImR+y4oa2AntrgID95SHJxuMUrkNXmanDSed71sRNZysveJVt1hLLemQZIady0FpEg==", + "dev": true + }, + "node_modules/@types/d3-axis": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz", + "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==", + "dev": true, + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-brush": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz", + "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==", + "dev": true, + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-chord": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz", + "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==", + "dev": true + }, + "node_modules/@types/d3-color": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", + "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", + "dev": true + }, + "node_modules/@types/d3-contour": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz", + "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==", + "dev": true, + "dependencies": { + "@types/d3-array": "*", + "@types/geojson": "*" + } + }, + "node_modules/@types/d3-delaunay": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==", + "dev": true + }, + "node_modules/@types/d3-dispatch": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.6.tgz", + "integrity": "sha512-4fvZhzMeeuBJYZXRXrRIQnvUYfyXwYmLsdiN7XXmVNQKKw1cM8a5WdID0g1hVFZDqT9ZqZEY5pD44p24VS7iZQ==", + "dev": true + }, + "node_modules/@types/d3-drag": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz", + "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==", + "dev": true, + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-dsv": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz", + "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==", + "dev": true + }, + "node_modules/@types/d3-ease": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", + "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", + "dev": true + }, + "node_modules/@types/d3-fetch": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz", + "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==", + "dev": true, + "dependencies": { + "@types/d3-dsv": "*" + } + }, + "node_modules/@types/d3-force": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz", + "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==", + "dev": true + }, + "node_modules/@types/d3-format": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz", + "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==", + "dev": true + }, + "node_modules/@types/d3-geo": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.0.tgz", + "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==", + "dev": true, + "dependencies": { + "@types/geojson": "*" + } + }, + "node_modules/@types/d3-hierarchy": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz", + "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==", + "dev": true + }, + "node_modules/@types/d3-interpolate": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", + "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", + "dev": true, + "dependencies": { + "@types/d3-color": "*" + } + }, + "node_modules/@types/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-P2dlU/q51fkOc/Gfl3Ul9kicV7l+ra934qBFXCFhrZMOL6du1TM0pm1ThYvENukyOn5h9v+yMJ9Fn5JK4QozrQ==", + "dev": true + }, + "node_modules/@types/d3-polygon": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz", + "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==", + "dev": true + }, + "node_modules/@types/d3-quadtree": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz", + "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==", + "dev": true + }, + "node_modules/@types/d3-random": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.3.tgz", + "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==", + "dev": true + }, + "node_modules/@types/d3-scale": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.8.tgz", + "integrity": "sha512-gkK1VVTr5iNiYJ7vWDI+yUFFlszhNMtVeneJ6lUTKPjprsvLLI9/tgEGiXJOnlINJA8FyA88gfnQsHbybVZrYQ==", + "dev": true, + "dependencies": { + "@types/d3-time": "*" + } + }, + "node_modules/@types/d3-scale-chromatic": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==", + "dev": true + }, + "node_modules/@types/d3-selection": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz", + "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==", + "dev": true + }, + "node_modules/@types/d3-shape": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.7.tgz", + "integrity": "sha512-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg==", + "dev": true, + "dependencies": { + "@types/d3-path": "*" + } + }, + "node_modules/@types/d3-time": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", + "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", + "dev": true + }, + "node_modules/@types/d3-time-format": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz", + "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==", + "dev": true + }, + "node_modules/@types/d3-timer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", + "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", + "dev": true + }, + "node_modules/@types/d3-transition": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz", + "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==", + "dev": true, + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-zoom": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.8.tgz", + "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==", + "dev": true, + "dependencies": { + "@types/d3-interpolate": "*", + "@types/d3-selection": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", + "dev": true + }, + "node_modules/@types/geojson": { + "version": "7946.0.16", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz", + "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.17.16", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.16.tgz", + "integrity": "sha512-vOTpLduLkZXePLxHiHsBLp98mHGnl8RptV4YAO3HfKO5UHjDvySGbxKtpYfy8Sx5+WKcgc45qNreJJRVM3L6mw==", + "dependencies": { + "undici-types": "~6.19.2" + } + }, + "node_modules/@types/readable-stream": { + "version": "4.0.18", + "resolved": "https://registry.npmjs.org/@types/readable-stream/-/readable-stream-4.0.18.tgz", + "integrity": "sha512-21jK/1j+Wg+7jVw1xnSwy/2Q1VgVjWuFssbYGTREPUBeZ+rqVFl2udq0IkxzPC0ZhOzVceUbyIACFZKLqKEBlA==", + "dependencies": { + "@types/node": "*", + "safe-buffer": "~5.1.1" + } + }, + "node_modules/@types/ws": { + "version": "8.5.14", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.14.tgz", + "integrity": "sha512-bd/YFLW+URhBzMXurx7lWByOu+xzU9+kb3RboOteXYDfW+tr+JZa99OyNmPINEGB/ahzKrEuc8rcv4gnpJmxTw==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.21.0.tgz", + "integrity": "sha512-eTH+UOR4I7WbdQnG4Z48ebIA6Bgi7WO8HvFEneeYBxG8qCOYgTOFPSg6ek9ITIDvGjDQzWHcoWHCDO2biByNzA==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.21.0", + "@typescript-eslint/type-utils": "8.21.0", + "@typescript-eslint/utils": "8.21.0", + "@typescript-eslint/visitor-keys": "8.21.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.21.0.tgz", + "integrity": "sha512-Wy+/sdEH9kI3w9civgACwabHbKl+qIOu0uFZ9IMKzX3Jpv9og0ZBJrZExGrPpFAY7rWsXuxs5e7CPPP17A4eYA==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "8.21.0", + "@typescript-eslint/types": "8.21.0", + "@typescript-eslint/typescript-estree": "8.21.0", + "@typescript-eslint/visitor-keys": "8.21.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.21.0.tgz", + "integrity": "sha512-G3IBKz0/0IPfdeGRMbp+4rbjfSSdnGkXsM/pFZA8zM9t9klXDnB/YnKOBQ0GoPmoROa4bCq2NeHgJa5ydsQ4mA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.21.0", + "@typescript-eslint/visitor-keys": "8.21.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.21.0.tgz", + "integrity": "sha512-95OsL6J2BtzoBxHicoXHxgk3z+9P3BEcQTpBKriqiYzLKnM2DeSqs+sndMKdamU8FosiadQFT3D+BSL9EKnAJQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "8.21.0", + "@typescript-eslint/utils": "8.21.0", + "debug": "^4.3.4", + "ts-api-utils": "^2.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.21.0.tgz", + "integrity": "sha512-PAL6LUuQwotLW2a8VsySDBwYMm129vFm4tMVlylzdoTybTHaAi0oBp7Ac6LhSrHHOdLM3efH+nAR6hAWoMF89A==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.21.0.tgz", + "integrity": "sha512-x+aeKh/AjAArSauz0GiQZsjT8ciadNMHdkUSwBB9Z6PrKc/4knM4g3UfHml6oDJmKC88a6//cdxnO/+P2LkMcg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.21.0", + "@typescript-eslint/visitor-keys": "8.21.0", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.21.0.tgz", + "integrity": "sha512-xcXBfcq0Kaxgj7dwejMbFyq7IOHgpNMtVuDveK7w3ZGwG9owKzhALVwKpTF2yrZmEwl9SWdetf3fxNzJQaVuxw==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "8.21.0", + "@typescript-eslint/types": "8.21.0", + "@typescript-eslint/typescript-estree": "8.21.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.21.0.tgz", + "integrity": "sha512-BkLMNpdV6prozk8LlyK/SOoWLmUFi+ZD+pcqti9ILCbVvHGk1ui1g4jJOc2WDLaeExz2qWwojxlPce5PljcT3w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.21.0", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@vitejs/plugin-vue": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.1.tgz", + "integrity": "sha512-cxh314tzaWwOLqVes2gnnCtvBDcM1UMdn+iFR+UjAn411dPT3tOmqrJjbMd7koZpMAmBM/GqeV4n9ge7JSiJJQ==", + "dev": true, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/@volar/language-core": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.11.tgz", + "integrity": "sha512-lN2C1+ByfW9/JRPpqScuZt/4OrUUse57GLI6TbLgTIqBVemdl1wNcZ1qYGEo2+Gw8coYLgCy7SuKqn6IrQcQgg==", + "dev": true, + "dependencies": { + "@volar/source-map": "2.4.11" + } + }, + "node_modules/@volar/source-map": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.11.tgz", + "integrity": "sha512-ZQpmafIGvaZMn/8iuvCFGrW3smeqkq/IIh9F1SdSx9aUl0J4Iurzd6/FhmjNO5g2ejF3rT45dKskgXWiofqlZQ==", + "dev": true + }, + "node_modules/@volar/typescript": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.11.tgz", + "integrity": "sha512-2DT+Tdh88Spp5PyPbqhyoYavYCPDsqbHLFwcUI9K1NlY1YgUJvujGdrqUp0zWxnW7KWNTr3xSpMuv2WnaTKDAw==", + "dev": true, + "dependencies": { + "@volar/language-core": "2.4.11", + "path-browserify": "^1.0.1", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.13", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.13.tgz", + "integrity": "sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==", + "dependencies": { + "@babel/parser": "^7.25.3", + "@vue/shared": "3.5.13", + "entities": "^4.5.0", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.0" + } + }, + "node_modules/@vue/compiler-core/node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.13", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.13.tgz", + "integrity": "sha512-ZOJ46sMOKUjO3e94wPdCzQ6P1Lx/vhp2RSvfaab88Ajexs0AHeV0uasYhi99WPaogmBlRHNRuly8xV75cNTMDA==", + "dependencies": { + "@vue/compiler-core": "3.5.13", + "@vue/shared": "3.5.13" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.13", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.13.tgz", + "integrity": "sha512-6VdaljMpD82w6c2749Zhf5T9u5uLBWKnVue6XWxprDobftnletJ8+oel7sexFfM3qIxNmVE7LSFGTpv6obNyaQ==", + "dependencies": { + "@babel/parser": "^7.25.3", + "@vue/compiler-core": "3.5.13", + "@vue/compiler-dom": "3.5.13", + "@vue/compiler-ssr": "3.5.13", + "@vue/shared": "3.5.13", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.11", + "postcss": "^8.4.48", + "source-map-js": "^1.2.0" + } + }, + "node_modules/@vue/compiler-sfc/node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" + }, + "node_modules/@vue/compiler-sfc/node_modules/magic-string": { + "version": "0.30.17", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", + "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.13", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.13.tgz", + "integrity": "sha512-wMH6vrYHxQl/IybKJagqbquvxpWCuVYpoUJfCqFZwa/JY1GdATAQ+TgVtgrwwMZ0D07QhA99rs/EAAWfvG6KpA==", + "dependencies": { + "@vue/compiler-dom": "3.5.13", + "@vue/shared": "3.5.13" + } + }, + "node_modules/@vue/compiler-vue2": { + "version": "2.7.16", + "resolved": "https://registry.npmjs.org/@vue/compiler-vue2/-/compiler-vue2-2.7.16.tgz", + "integrity": "sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==", + "dev": true, + "dependencies": { + "de-indent": "^1.0.2", + "he": "^1.2.0" + } + }, + "node_modules/@vue/eslint-config-prettier": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/@vue/eslint-config-prettier/-/eslint-config-prettier-10.2.0.tgz", + "integrity": "sha512-GL3YBLwv/+b86yHcNNfPJxOTtVFJ4Mbc9UU3zR+KVoG7SwGTjPT+32fXamscNumElhcpXW3mT0DgzS9w32S7Bw==", + "dev": true, + "dependencies": { + "eslint-config-prettier": "^10.0.1", + "eslint-plugin-prettier": "^5.2.2" + }, + "peerDependencies": { + "eslint": ">= 8.21.0", + "prettier": ">= 3.0.0" + } + }, + "node_modules/@vue/eslint-config-typescript": { + "version": "14.3.0", + "resolved": "https://registry.npmjs.org/@vue/eslint-config-typescript/-/eslint-config-typescript-14.3.0.tgz", + "integrity": "sha512-bOreIxlSC/xsUdhDdKIHb1grwJah+IokNeJ50LqA1StdOHeSPUxSIPNxyKgRx4YdjhyzC6TKtrCf6yYK99x3Uw==", + "dev": true, + "dependencies": { + "@typescript-eslint/utils": "^8.20.0", + "fast-glob": "^3.3.3", + "typescript-eslint": "^8.20.0", + "vue-eslint-parser": "^9.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "peerDependencies": { + "eslint": "^9.10.0", + "eslint-plugin-vue": "^9.28.0", + "typescript": ">=4.8.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/language-core": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-2.2.0.tgz", + "integrity": "sha512-O1ZZFaaBGkKbsRfnVH1ifOK1/1BUkyK+3SQsfnh6PmMmD4qJcTU8godCeA96jjDRTL6zgnK7YzCHfaUlH2r0Mw==", + "dev": true, + "dependencies": { + "@volar/language-core": "~2.4.11", + "@vue/compiler-dom": "^3.5.0", + "@vue/compiler-vue2": "^2.7.16", + "@vue/shared": "^3.5.0", + "alien-signals": "^0.4.9", + "minimatch": "^9.0.3", + "muggle-string": "^0.4.1", + "path-browserify": "^1.0.1" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/language-core/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@vue/language-core/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.13", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.13.tgz", + "integrity": "sha512-NaCwtw8o48B9I6L1zl2p41OHo/2Z4wqYGGIK1Khu5T7yxrn+ATOixn/Udn2m+6kZKB/J7cuT9DbWWhRxqixACg==", + "dependencies": { + "@vue/shared": "3.5.13" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.13", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.13.tgz", + "integrity": "sha512-Fj4YRQ3Az0WTZw1sFe+QDb0aXCerigEpw418pw1HBUKFtnQHWzwojaukAs2X/c9DQz4MQ4bsXTGlcpGxU/RCIw==", + "dependencies": { + "@vue/reactivity": "3.5.13", + "@vue/shared": "3.5.13" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.13", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.13.tgz", + "integrity": "sha512-dLaj94s93NYLqjLiyFzVs9X6dWhTdAlEAciC3Moq7gzAc13VJUdCnjjRurNM6uTLFATRHexHCTu/Xp3eW6yoog==", + "dependencies": { + "@vue/reactivity": "3.5.13", + "@vue/runtime-core": "3.5.13", + "@vue/shared": "3.5.13", + "csstype": "^3.1.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.13", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.13.tgz", + "integrity": "sha512-wAi4IRJV/2SAW3htkTlB+dHeRmpTiVIK1OGLWV1yeStVSebSQQOwGwIq0D3ZIoBj2C2qpgz5+vX9iEBkTdk5YA==", + "dependencies": { + "@vue/compiler-ssr": "3.5.13", + "@vue/shared": "3.5.13" + }, + "peerDependencies": { + "vue": "3.5.13" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.13", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.13.tgz", + "integrity": "sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==" + }, + "node_modules/@vue/tsconfig": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@vue/tsconfig/-/tsconfig-0.7.0.tgz", + "integrity": "sha512-ku2uNz5MaZ9IerPPUyOHzyjhXoX2kVJaVf7hL315DC17vS6IiZRmmCPfggNbU16QTvM80+uYYy3eYJB59WCtvg==", + "dev": true, + "peerDependencies": { + "typescript": "5.x", + "vue": "^3.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "vue": { + "optional": true + } + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/acorn": { + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/alien-signals": { + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-0.4.14.tgz", + "integrity": "sha512-itUAVzhczTmP2U5yX67xVpsbbOiquusbWVyA9N+sy6+r6YVbFkahXvNCeEPWEOMhwDYwbVbGHFkVL03N9I5g+Q==", + "dev": true + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/bl": { + "version": "6.0.18", + "resolved": "https://registry.npmjs.org/bl/-/bl-6.0.18.tgz", + "integrity": "sha512-2k76XmWCuvu9HTvu3tFOl5HDdCH0wLZ/jHYva/LBVJmc9oX8yUtNQjxrFmbTdXsCSmIxwVTANZPNDfMQrvHFUw==", + "dependencies": { + "@types/readable-stream": "^4.0.0", + "buffer": "^6.0.3", + "inherits": "^2.0.4", + "readable-stream": "^4.2.0" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, + "node_modules/bootstrap": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz", + "integrity": "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "@popperjs/core": "^2.11.8" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/commist": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/commist/-/commist-3.2.0.tgz", + "integrity": "sha512-4PIMoPniho+LqXmpS5d3NuGYncG6XWlkBSVGiWycL22dd42OYdUGil2CWuzklaJoNxyxUSpO4MKIBU94viWNAw==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/concat-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", + "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==", + "engines": [ + "node >= 6.0" + ], + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.0.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/concat-stream/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" + }, + "node_modules/d3": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/d3/-/d3-7.9.0.tgz", + "integrity": "sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA==", + "dependencies": { + "d3-array": "3", + "d3-axis": "3", + "d3-brush": "3", + "d3-chord": "3", + "d3-color": "3", + "d3-contour": "4", + "d3-delaunay": "6", + "d3-dispatch": "3", + "d3-drag": "3", + "d3-dsv": "3", + "d3-ease": "3", + "d3-fetch": "3", + "d3-force": "3", + "d3-format": "3", + "d3-geo": "3", + "d3-hierarchy": "3", + "d3-interpolate": "3", + "d3-path": "3", + "d3-polygon": "3", + "d3-quadtree": "3", + "d3-random": "3", + "d3-scale": "4", + "d3-scale-chromatic": "3", + "d3-selection": "3", + "d3-shape": "3", + "d3-time": "3", + "d3-time-format": "4", + "d3-timer": "3", + "d3-transition": "3", + "d3-zoom": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-array": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", + "dependencies": { + "internmap": "1 - 2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-axis": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.0.tgz", + "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-brush": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-3.0.0.tgz", + "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "3", + "d3-transition": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-chord": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-chord/-/d3-chord-3.0.1.tgz", + "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==", + "dependencies": { + "d3-path": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-contour": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-contour/-/d3-contour-4.0.2.tgz", + "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==", + "dependencies": { + "d3-array": "^3.2.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-delaunay": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==", + "dependencies": { + "delaunator": "5" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dispatch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz", + "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-drag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz", + "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-selection": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dsv": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz", + "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==", + "dependencies": { + "commander": "7", + "iconv-lite": "0.6", + "rw": "1" + }, + "bin": { + "csv2json": "bin/dsv2json.js", + "csv2tsv": "bin/dsv2dsv.js", + "dsv2dsv": "bin/dsv2dsv.js", + "dsv2json": "bin/dsv2json.js", + "json2csv": "bin/json2dsv.js", + "json2dsv": "bin/json2dsv.js", + "json2tsv": "bin/json2dsv.js", + "tsv2csv": "bin/dsv2dsv.js", + "tsv2json": "bin/dsv2json.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-ease": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-fetch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.1.tgz", + "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==", + "dependencies": { + "d3-dsv": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-force": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.0.tgz", + "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-quadtree": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-format": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz", + "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-geo": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.1.tgz", + "integrity": "sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==", + "dependencies": { + "d3-array": "2.5.0 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-hierarchy": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz", + "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-polygon": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.1.tgz", + "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-quadtree": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.1.tgz", + "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-random": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.1.tgz", + "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-scale": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", + "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", + "dependencies": { + "d3-array": "2.10.0 - 3", + "d3-format": "1 - 3", + "d3-interpolate": "1.2.0 - 3", + "d3-time": "2.1.1 - 3", + "d3-time-format": "2 - 4" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-scale-chromatic": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==", + "dependencies": { + "d3-color": "1 - 3", + "d3-interpolate": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-selection": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", + "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", + "dependencies": { + "d3-path": "^3.1.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", + "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", + "dependencies": { + "d3-array": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time-format": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", + "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "dependencies": { + "d3-time": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-timer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-transition": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz", + "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", + "dependencies": { + "d3-color": "1 - 3", + "d3-dispatch": "1 - 3", + "d3-ease": "1 - 3", + "d3-interpolate": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "d3-selection": "2 - 3" + } + }, + "node_modules/d3-zoom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz", + "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "2 - 3", + "d3-transition": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/de-indent": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", + "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", + "dev": true + }, + "node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/delaunator": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.0.1.tgz", + "integrity": "sha512-8nvh+XBe96aCESrGOqMp/84b13H9cdKbG5P2ejQCh4d4sK9RL4371qou9drQjMhvnPmhWl5hnmqbEE0fXr9Xnw==", + "dependencies": { + "robust-predicates": "^3.0.2" + } + }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/esbuild": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.2.tgz", + "integrity": "sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.24.2", + "@esbuild/android-arm": "0.24.2", + "@esbuild/android-arm64": "0.24.2", + "@esbuild/android-x64": "0.24.2", + "@esbuild/darwin-arm64": "0.24.2", + "@esbuild/darwin-x64": "0.24.2", + "@esbuild/freebsd-arm64": "0.24.2", + "@esbuild/freebsd-x64": "0.24.2", + "@esbuild/linux-arm": "0.24.2", + "@esbuild/linux-arm64": "0.24.2", + "@esbuild/linux-ia32": "0.24.2", + "@esbuild/linux-loong64": "0.24.2", + "@esbuild/linux-mips64el": "0.24.2", + "@esbuild/linux-ppc64": "0.24.2", + "@esbuild/linux-riscv64": "0.24.2", + "@esbuild/linux-s390x": "0.24.2", + "@esbuild/linux-x64": "0.24.2", + "@esbuild/netbsd-arm64": "0.24.2", + "@esbuild/netbsd-x64": "0.24.2", + "@esbuild/openbsd-arm64": "0.24.2", + "@esbuild/openbsd-x64": "0.24.2", + "@esbuild/sunos-x64": "0.24.2", + "@esbuild/win32-arm64": "0.24.2", + "@esbuild/win32-ia32": "0.24.2", + "@esbuild/win32-x64": "0.24.2" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.19.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.19.0.tgz", + "integrity": "sha512-ug92j0LepKlbbEv6hD911THhoRHmbdXt2gX+VDABAW/Ir7D3nqKdv5Pf5vtlyY6HQMTEP2skXY43ueqTCWssEA==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.19.0", + "@eslint/core": "^0.10.0", + "@eslint/eslintrc": "^3.2.0", + "@eslint/js": "9.19.0", + "@eslint/plugin-kit": "^0.2.5", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.1", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.2.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-config-prettier": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.0.1.tgz", + "integrity": "sha512-lZBts941cyJyeaooiKxAtzoPHTN+GbQTJFAIdQbRhA4/8whaAraEh47Whw/ZFfrjNSnlAxqfm9i0XVAEkULjCw==", + "dev": true, + "bin": { + "eslint-config-prettier": "build/bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-prettier": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.3.tgz", + "integrity": "sha512-qJ+y0FfCp/mQYQ/vWQ3s7eUlFEL4PyKfAJxsnYTJ4YT73nsJBWqmEpFryxV9OeUiqmsTsYJ5Y+KDNaeP31wrRw==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.9.1" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" + }, + "peerDependencies": { + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": "*", + "prettier": ">=3.0.0" + }, + "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-vue": { + "version": "9.32.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.32.0.tgz", + "integrity": "sha512-b/Y05HYmnB/32wqVcjxjHZzNpwxj1onBOvqW89W+V+XNG1dRuaFbNd3vT9CLbr2LXjEoq+3vn8DanWf7XU22Ug==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "globals": "^13.24.0", + "natural-compare": "^1.4.0", + "nth-check": "^2.1.1", + "postcss-selector-parser": "^6.0.15", + "semver": "^7.6.3", + "vue-eslint-parser": "^9.4.3", + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-vue/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint-scope": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.2.0.tgz", + "integrity": "sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", + "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", + "dev": true, + "dependencies": { + "acorn": "^8.14.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", + "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", + "dev": true + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fast-unique-numbers": { + "version": "8.0.13", + "resolved": "https://registry.npmjs.org/fast-unique-numbers/-/fast-unique-numbers-8.0.13.tgz", + "integrity": "sha512-7OnTFAVPefgw2eBJ1xj2PGGR9FwYzSUso9decayHgCDX4sJkHLdcsYTytTg+tYv+wKF3U8gJuSBz2jJpQV4u/g==", + "dependencies": { + "@babel/runtime": "^7.23.8", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.1.0" + } + }, + "node_modules/fastq": { + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.18.0.tgz", + "integrity": "sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz", + "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true, + "bin": { + "he": "bin/he" + } + }, + "node_modules/help-me": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/help-me/-/help-me-5.0.0.tgz", + "integrity": "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==" + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/internmap": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", + "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", + "engines": { + "node": ">=12" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/js-sdsl": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz", + "integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-parse-even-better-errors": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-4.0.0.tgz", + "integrity": "sha512-lR4MXjGNgkJc7tkQ97kb2nuEMnNCyU//XYVH0MKTGcXEiSudQ5MKGKen3C5QubYy0vmq+JGitUg92uuywGEwIA==", + "dev": true, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" + }, + "node_modules/magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "dev": true, + "dependencies": { + "sourcemap-codec": "^1.4.8" + } + }, + "node_modules/memorystream": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", + "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", + "dev": true, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mqtt": { + "version": "5.10.3", + "resolved": "https://registry.npmjs.org/mqtt/-/mqtt-5.10.3.tgz", + "integrity": "sha512-hA/6YrUS4fywhBGCjH/XXUuLeueJiPqruVVWjK2A24Ma4KcWfZ/x8x07aoesBV+HXDWBC08tbT4IWfSXNW0Jtw==", + "dependencies": { + "@types/readable-stream": "^4.0.5", + "@types/ws": "^8.5.9", + "commist": "^3.2.0", + "concat-stream": "^2.0.0", + "debug": "^4.3.4", + "help-me": "^5.0.0", + "lru-cache": "^10.0.1", + "minimist": "^1.2.8", + "mqtt-packet": "^9.0.1", + "number-allocator": "^1.0.14", + "readable-stream": "^4.4.2", + "reinterval": "^1.1.0", + "rfdc": "^1.3.0", + "split2": "^4.2.0", + "worker-timers": "^7.1.4", + "ws": "^8.17.1" + }, + "bin": { + "mqtt": "build/bin/mqtt.js", + "mqtt_pub": "build/bin/pub.js", + "mqtt_sub": "build/bin/sub.js" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/mqtt-packet": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/mqtt-packet/-/mqtt-packet-9.0.1.tgz", + "integrity": "sha512-koZF1V/X2RZUI6uD9wN5OK1JxxcG1ofAR4H3LjCw1FkeKzruZQ26aAA6v2m1lZyWONZIR5wMMJFrZJDRNzbiQw==", + "dependencies": { + "bl": "^6.0.8", + "debug": "^4.3.4", + "process-nextick-args": "^2.0.1" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/muggle-string": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", + "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", + "dev": true + }, + "node_modules/nanoid": { + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/npm-normalize-package-bin": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-4.0.0.tgz", + "integrity": "sha512-TZKxPvItzai9kN9H/TkmCtx/ZN/hvr3vUycjlfmH0ootY9yFBzNOpiXAdIn1Iteqsvk4lQn6B5PTrt+n6h8k/w==", + "dev": true, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm-run-all2": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/npm-run-all2/-/npm-run-all2-7.0.2.tgz", + "integrity": "sha512-7tXR+r9hzRNOPNTvXegM+QzCuMjzUIIq66VDunL6j60O4RrExx32XUhlrS7UK4VcdGw5/Wxzb3kfNcFix9JKDA==", + "dev": true, + "dependencies": { + "ansi-styles": "^6.2.1", + "cross-spawn": "^7.0.6", + "memorystream": "^0.3.1", + "minimatch": "^9.0.0", + "pidtree": "^0.6.0", + "read-package-json-fast": "^4.0.0", + "shell-quote": "^1.7.3", + "which": "^5.0.0" + }, + "bin": { + "npm-run-all": "bin/npm-run-all/index.js", + "npm-run-all2": "bin/npm-run-all/index.js", + "run-p": "bin/run-p/index.js", + "run-s": "bin/run-s/index.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0", + "npm": ">= 9" + } + }, + "node_modules/npm-run-all2/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm-run-all2/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/npm-run-all2/node_modules/isexe": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", + "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", + "dev": true, + "engines": { + "node": ">=16" + } + }, + "node_modules/npm-run-all2/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm-run-all2/node_modules/which": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", + "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", + "dev": true, + "dependencies": { + "isexe": "^3.1.1" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/number-allocator": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/number-allocator/-/number-allocator-1.0.14.tgz", + "integrity": "sha512-OrL44UTVAvkKdOdRQZIJpLkAdjXGTRda052sN4sO77bKEzYYqWKMBjQvrJFzqygI99gL6Z4u2xctPW1tB8ErvA==", + "dependencies": { + "debug": "^4.3.1", + "js-sdsl": "4.3.0" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pidtree": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", + "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", + "dev": true, + "bin": { + "pidtree": "bin/pidtree.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/postcss": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.1.tgz", + "integrity": "sha512-6oz2beyjc5VMn/KV1pPw8fliQkhBXrVn1Z3TVyqZxU8kZpzEKhBdmCFqI6ZbmGtamQvQGuU1sgPTk8ZrXDD7jQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.8", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", + "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", + "dev": true, + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz", + "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/read-package-json-fast": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-4.0.0.tgz", + "integrity": "sha512-qpt8EwugBWDw2cgE2W+/3oxC+KTez2uSVR8JU9Q36TXPAGCaozfQUs59v4j4GFpWTaw0i6hAZSvOmu1J0uOEUg==", + "dev": true, + "dependencies": { + "json-parse-even-better-errors": "^4.0.0", + "npm-normalize-package-bin": "^4.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/readable-stream": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz", + "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + }, + "node_modules/reinterval": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reinterval/-/reinterval-1.1.0.tgz", + "integrity": "sha512-QIRet3SYrGp0HUHO88jVskiG6seqUGC5iAG7AwI/BV4ypGcuqk9Du6YQBUOUqm9c8pw1eyLoIaONifRua1lsEQ==" + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rfdc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==" + }, + "node_modules/robust-predicates": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz", + "integrity": "sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg==" + }, + "node_modules/rollup": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.32.0.tgz", + "integrity": "sha512-JmrhfQR31Q4AuNBjjAX4s+a/Pu/Q8Q9iwjWBsjRH1q52SPFE2NqRMK6fUZKKnvKO6id+h7JIRf0oYsph53eATg==", + "dev": true, + "dependencies": { + "@types/estree": "1.0.6" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.32.0", + "@rollup/rollup-android-arm64": "4.32.0", + "@rollup/rollup-darwin-arm64": "4.32.0", + "@rollup/rollup-darwin-x64": "4.32.0", + "@rollup/rollup-freebsd-arm64": "4.32.0", + "@rollup/rollup-freebsd-x64": "4.32.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.32.0", + "@rollup/rollup-linux-arm-musleabihf": "4.32.0", + "@rollup/rollup-linux-arm64-gnu": "4.32.0", + "@rollup/rollup-linux-arm64-musl": "4.32.0", + "@rollup/rollup-linux-loongarch64-gnu": "4.32.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.32.0", + "@rollup/rollup-linux-riscv64-gnu": "4.32.0", + "@rollup/rollup-linux-s390x-gnu": "4.32.0", + "@rollup/rollup-linux-x64-gnu": "4.32.0", + "@rollup/rollup-linux-x64-musl": "4.32.0", + "@rollup/rollup-win32-arm64-msvc": "4.32.0", + "@rollup/rollup-win32-ia32-msvc": "4.32.0", + "@rollup/rollup-win32-x64-msvc": "4.32.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/rollup-plugin-inject": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-inject/-/rollup-plugin-inject-3.0.2.tgz", + "integrity": "sha512-ptg9PQwzs3orn4jkgXJ74bfs5vYz1NCZlSQMBUA0wKcGp5i5pA1AO3fOUEte8enhGUC+iapTCzEWw2jEFFUO/w==", + "deprecated": "This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.", + "dev": true, + "dependencies": { + "estree-walker": "^0.6.1", + "magic-string": "^0.25.3", + "rollup-pluginutils": "^2.8.1" + } + }, + "node_modules/rollup-plugin-node-polyfills": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/rollup-plugin-node-polyfills/-/rollup-plugin-node-polyfills-0.2.1.tgz", + "integrity": "sha512-4kCrKPTJ6sK4/gLL/U5QzVT8cxJcofO0OU74tnB19F40cmuAKSzH5/siithxlofFEjwvw1YAhPmbvGNA6jEroA==", + "dev": true, + "dependencies": { + "rollup-plugin-inject": "^3.0.0" + } + }, + "node_modules/rollup-plugin-polyfill-node": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-polyfill-node/-/rollup-plugin-polyfill-node-0.13.0.tgz", + "integrity": "sha512-FYEvpCaD5jGtyBuBFcQImEGmTxDTPbiHjJdrYIp+mFIwgXiXabxvKUK7ZT9P31ozu2Tqm9llYQMRWsfvTMTAOw==", + "dev": true, + "dependencies": { + "@rollup/plugin-inject": "^5.0.4" + }, + "peerDependencies": { + "rollup": "^1.20.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" + } + }, + "node_modules/rollup-pluginutils": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", + "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", + "dev": true, + "dependencies": { + "estree-walker": "^0.6.1" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/rw": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", + "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==" + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/shell-quote": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.2.tgz", + "integrity": "sha512-AzqKpGKjrj7EM6rKVQEPpB288oCfnrEIuyoT9cyF4nmGa7V8Zk6f7RRqYisX8X9m+Q7bd632aZW4ky7EhbQztA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "deprecated": "Please use @jridgewell/sourcemap-codec instead", + "dev": true + }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/swiper": { + "version": "11.2.1", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-11.2.1.tgz", + "integrity": "sha512-62G69+iQRIfUqTmJkWpZDcX891Ra8O9050ckt1/JI2H+0483g+gq0m7gINecDqMtDh2zt5dK+uzBRxGhGOOvQA==", + "funding": [ + { + "type": "patreon", + "url": "https://www.patreon.com/swiperjs" + }, + { + "type": "open_collective", + "url": "http://opencollective.com/swiper" + } + ], + "engines": { + "node": ">= 4.7.0" + } + }, + "node_modules/synckit": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.2.tgz", + "integrity": "sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==", + "dev": true, + "dependencies": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.0.tgz", + "integrity": "sha512-xCt/TOAc+EOHS1XPnijD3/yzpH6qg2xppZO1YDqGoVsNXfQfzHpOdNuXwrwOU8u4ITXJyDCTyt8w5g1sZv9ynQ==", + "dev": true, + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" + }, + "node_modules/typescript": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", + "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", + "devOptional": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.21.0.tgz", + "integrity": "sha512-txEKYY4XMKwPXxNkN8+AxAdX6iIJAPiJbHE/FpQccs/sxw8Lf26kqwC3cn0xkHlW8kEbLhkhCsjWuMveaY9Rxw==", + "dev": true, + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.21.0", + "@typescript-eslint/parser": "8.21.0", + "@typescript-eslint/utils": "8.21.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==" + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/vite": { + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.0.11.tgz", + "integrity": "sha512-4VL9mQPKoHy4+FE0NnRE/kbY51TOfaknxAjt3fJbGJxhIpBZiqVzlZDEesWWsuREXHwNdAoOFZ9MkPEVXczHwg==", + "dev": true, + "dependencies": { + "esbuild": "^0.24.2", + "postcss": "^8.4.49", + "rollup": "^4.23.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "jiti": ">=1.21.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==", + "dev": true + }, + "node_modules/vue": { + "version": "3.5.13", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.13.tgz", + "integrity": "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==", + "dependencies": { + "@vue/compiler-dom": "3.5.13", + "@vue/compiler-sfc": "3.5.13", + "@vue/runtime-dom": "3.5.13", + "@vue/server-renderer": "3.5.13", + "@vue/shared": "3.5.13" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-eslint-parser": { + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-9.4.3.tgz", + "integrity": "sha512-2rYRLWlIpaiN8xbPiDyXZXRgLGOtWxERV7ND5fFAv5qo1D2N9Fu9MNajBNc6o13lZ+24DAWCkQCvj4klgmcITg==", + "dev": true, + "dependencies": { + "debug": "^4.3.4", + "eslint-scope": "^7.1.1", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.3.1", + "esquery": "^1.4.0", + "lodash": "^4.17.21", + "semver": "^7.3.6" + }, + "engines": { + "node": "^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=6.0.0" + } + }, + "node_modules/vue-eslint-parser/node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/vue-eslint-parser/node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/vue-tsc": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-2.2.0.tgz", + "integrity": "sha512-gtmM1sUuJ8aSb0KoAFmK9yMxb8TxjewmxqTJ1aKphD5Cbu0rULFY6+UQT51zW7SpUcenfPUuflKyVwyx9Qdnxg==", + "dev": true, + "dependencies": { + "@volar/typescript": "~2.4.11", + "@vue/language-core": "2.2.0" + }, + "bin": { + "vue-tsc": "bin/vue-tsc.js" + }, + "peerDependencies": { + "typescript": ">=5.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/worker-timers": { + "version": "7.1.8", + "resolved": "https://registry.npmjs.org/worker-timers/-/worker-timers-7.1.8.tgz", + "integrity": "sha512-R54psRKYVLuzff7c1OTFcq/4Hue5Vlz4bFtNEIarpSiCYhpifHU3aIQI29S84o1j87ePCYqbmEJPqwBTf+3sfw==", + "dependencies": { + "@babel/runtime": "^7.24.5", + "tslib": "^2.6.2", + "worker-timers-broker": "^6.1.8", + "worker-timers-worker": "^7.0.71" + } + }, + "node_modules/worker-timers-broker": { + "version": "6.1.8", + "resolved": "https://registry.npmjs.org/worker-timers-broker/-/worker-timers-broker-6.1.8.tgz", + "integrity": "sha512-FUCJu9jlK3A8WqLTKXM9E6kAmI/dR1vAJ8dHYLMisLNB/n3GuaFIjJ7pn16ZcD1zCOf7P6H62lWIEBi+yz/zQQ==", + "dependencies": { + "@babel/runtime": "^7.24.5", + "fast-unique-numbers": "^8.0.13", + "tslib": "^2.6.2", + "worker-timers-worker": "^7.0.71" + } + }, + "node_modules/worker-timers-worker": { + "version": "7.0.71", + "resolved": "https://registry.npmjs.org/worker-timers-worker/-/worker-timers-worker-7.0.71.tgz", + "integrity": "sha512-ks/5YKwZsto1c2vmljroppOKCivB/ma97g9y77MAAz2TBBjPPgpoOiS1qYQKIgvGTr2QYPT3XhJWIB6Rj2MVPQ==", + "dependencies": { + "@babel/runtime": "^7.24.5", + "tslib": "^2.6.2" + } + }, + "node_modules/ws": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", + "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/CPChargePoint.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/CPChargePoint.vue old mode 100755 new mode 100644 index 3b145b84c2..5aca627f72 --- a/packages/modules/web_themes/colors/source/src/components/chargePointList/CPChargePoint.vue +++ b/packages/modules/web_themes/colors/source/src/components/chargePointList/CPChargePoint.vue @@ -47,7 +47,7 @@
- @@ -55,225 +55,11 @@
@@ -293,7 +79,7 @@ - @@ -310,71 +96,23 @@ + \ No newline at end of file diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/ChargingState.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/ChargingState.vue new file mode 100644 index 0000000000..68afb5c3e6 --- /dev/null +++ b/packages/modules/web_themes/colors/source/src/components/chargePointList/ChargingState.vue @@ -0,0 +1,65 @@ + + + + diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/VehicleData.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/VehicleData.vue new file mode 100644 index 0000000000..24744fb9d2 --- /dev/null +++ b/packages/modules/web_themes/colors/source/src/components/chargePointList/VehicleData.vue @@ -0,0 +1,308 @@ + + + + diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigVehicle.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigVehicle.vue deleted file mode 100755 index 29d65975a4..0000000000 --- a/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigVehicle.vue +++ /dev/null @@ -1,66 +0,0 @@ - - - - - diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPChargeConfigPanel.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ChargeConfigPanel.vue similarity index 72% rename from packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPChargeConfigPanel.vue rename to packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ChargeConfigPanel.vue index 0b553129e9..9f797d8ac3 100755 --- a/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPChargeConfigPanel.vue +++ b/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ChargeConfigPanel.vue @@ -61,21 +61,6 @@ > - - @@ -86,7 +71,7 @@ role="tabpanel" aria-labelledby="instant-tab" > - +
- - - @@ -130,7 +115,7 @@ role="tabpanel" aria-labelledby="eco-tab" > - +
- +
- - - @@ -171,12 +133,12 @@ import { computed, onMounted } from 'vue' import { ChargePoint, vehicles, chargeTemplates } from '../model' import ConfigItem from '../../shared/ConfigItem.vue' -import CPConfigInstant from './CPConfigInstant.vue' -import CPConfigPv from './CPConfigPv.vue' -import CPConfigScheduled from './CPConfigScheduled.vue' -import CPConfigTimed from './CPConfigTimed.vue' -import CPConfigEco from './CPConfigEco.vue' -import CPChargeConfig from './CPChargeConfig.vue' +import ConfigInstant from './ConfigInstant.vue' +import ConfigPv from './ConfigPv.vue' +import ConfigScheduled from './ConfigScheduled.vue' +import ConfigTimed from './ConfigTimed.vue' +import ConfigEco from './ConfigEco.vue' +import ConfigGeneral from './ConfigGeneral.vue' const props = defineProps<{ chargepoint: ChargePoint }>() diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigEco.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ConfigEco.vue similarity index 100% rename from packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigEco.vue rename to packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ConfigEco.vue diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPChargeConfig.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ConfigGeneral.vue similarity index 100% rename from packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPChargeConfig.vue rename to packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ConfigGeneral.vue diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigInstant.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ConfigInstant.vue similarity index 100% rename from packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigInstant.vue rename to packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ConfigInstant.vue diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigPv.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ConfigPv.vue similarity index 100% rename from packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigPv.vue rename to packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ConfigPv.vue diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigScheduled.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ConfigScheduled.vue similarity index 100% rename from packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigScheduled.vue rename to packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ConfigScheduled.vue diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigTimed.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ConfigTimed.vue similarity index 100% rename from packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/CPConfigTimed.vue rename to packages/modules/web_themes/colors/source/src/components/chargePointList/cpConfig/ConfigTimed.vue diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/cpSimpleList/CpsListItem2.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/cpSimpleList/CpsListItem2.vue index 623dbc65de..c8b5453e0a 100755 --- a/packages/modules/web_themes/colors/source/src/components/chargePointList/cpSimpleList/CpsListItem2.vue +++ b/packages/modules/web_themes/colors/source/src/components/chargePointList/cpSimpleList/CpsListItem2.vue @@ -118,7 +118,7 @@ :modal-id="'cpsconfig-' + chargepoint.id" > - @@ -131,7 +131,7 @@ import { ref, computed } from 'vue' import { chargePoints, type ChargePoint } from '../model' import { chargemodes, globalConfig } from '@/assets/js/themeConfig' import { formatWatt, formatWattH } from '@/assets/js/helpers' -import CPChargeConfigPanel from '../cpConfig/CPChargeConfigPanel.vue' +import ChargeConfigPanel from '../cpConfig/ChargeConfigPanel.vue' import BatterySymbol from '../../shared/BatterySymbol.vue' import RangeInput from '@/components/shared/RangeInput.vue' import { updateServer } from '@/assets/js/sendMessages' diff --git a/packages/modules/web_themes/colors/web/assets/index-CkWKKaPO.js b/packages/modules/web_themes/colors/web/assets/index-CkWKKaPO.js deleted file mode 100644 index 915deaba73..0000000000 --- a/packages/modules/web_themes/colors/web/assets/index-CkWKKaPO.js +++ /dev/null @@ -1,6 +0,0 @@ -var ja=Object.defineProperty;var Fa=(a,e,t)=>e in a?ja(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var b=(a,e,t)=>Fa(a,typeof e!="symbol"?e+"":e,t);import{r as ge,m as Na,c as p,a as Z,i as Ha,e as Le,u as jt,t as tt,b as wt,s as ce,d as L,p as _a,f as wa,w as Ra,o as l,g as f,h as x,j as n,n as R,k as M,l as w,q as de,v as _,x as J,y as i,z as v,F as N,A as K,B as ka,C as Re,D as pt,E as rt,G as ot,H as dt,I as ht,J as it,K as Ja,L as Ne,M as ae,N as qa,O as Te,P as mt,Q as Ya,R as Qa,S as xa,T as Za,U as Sa,V as Xa,W as Ka,X as en,Y as tn,Z as an,_ as nn,$ as rn,a0 as on,a1 as sn,a2 as ln}from"./vendor-CmSLe-Fc.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const d of r.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();var $e=(a=>(a.instant_charging="instant_charging",a.pv_charging="pv_charging",a.scheduled_charging="scheduled_charging",a.eco_charging="eco_charging",a.stop="stop",a))($e||{});class $a{constructor(e){b(this,"id");b(this,"name","Wechselrichter");b(this,"color","var(--color-pv)");b(this,"power",0);b(this,"energy",0);b(this,"energy_month",0);b(this,"energy_year",0);b(this,"energy_total",0);this.id=e}}const cn=[["EV","ev_mode"],["Speicher","bat_mode"],["MinSoc","min_soc_bat_mode"]];class un{constructor(e){b(this,"id");b(this,"name","Gerät");b(this,"power",0);b(this,"status","off");b(this,"energy",0);b(this,"runningTime",0);b(this,"configured",!1);b(this,"_showInGraph",!0);b(this,"color","white");b(this,"canSwitch",!1);b(this,"countAsHouse",!1);b(this,"energyPv",0);b(this,"energyBat",0);b(this,"pvPercentage",0);b(this,"tempConfigured",0);b(this,"temp",[300,300,300]);b(this,"on",!1);b(this,"isAutomatic",!0);b(this,"icon","");this.id=e}get showInGraph(){return this._showInGraph}set showInGraph(e){this._showInGraph=e,T.items["sh"+this.id].showInGraph=e,re()}setShowInGraph(e){this._showInGraph=e}}const ne=ge(new Map);function Rt(a){ne.has(a)?console.info("Duplicate sh device message: "+a):(ne.set(a,new un(a)),ne.get(a).color="var(--color-sh"+ne.size+")")}const dn=0,Ma={host:location.hostname,port:location.protocol=="https:"?443:80,endpoint:"/ws",protocol:location.protocol=="https:"?"wss":"ws",connectTimeout:4e3,reconnectPeriod:4e3,clean:!1,clientId:Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,6)},kt={topic:"",qos:dn};let Be;const{host:hn,port:gn,endpoint:pn,...Pa}=Ma,oa=`${Pa.protocol}://${hn}:${gn}${pn}`;try{console.debug("connectURL",oa),Be=Na.connect(oa,Pa),Be.on("connect",()=>{console.info("MQTT connection successful")}),Be.on("disconnect",()=>{console.info("MQTT disconnected")}),Be.on("error",a=>{console.error("MQTT connection failed: ",a)})}catch(a){console.error("MQTT connect error: ",a)}function mn(a){Be?Be.on("message",a):console.error("MqttRegister: MQTT client not available")}function Ke(a){kt.topic=a;const{topic:e,qos:t}=kt;Be.subscribe(e,{qos:t},o=>{if(o){console.error("MQTT Subscription error: "+o);return}})}function st(a){kt.topic=a;const{topic:e}=kt;Be.unsubscribe(e,t=>{if(t){console.error("MQTT Unsubscribe from "+a+" failed: "+t);return}})}async function xt(a,e){let o=Be.connected,s=0;for(;!o&&s<20;)console.warn("MQTT publish: Not connected. Waiting 0.1 seconds"),await fn(100),o=Be.connected,s+=1;if(s<20)try{Be.publish(a,e,{qos:0},r=>{r&&console.warn("MQTT publish error: ",r),console.info("MQTT publish: Message sent: ["+a+"]("+e+")")})}catch(r){console.warn("MQTT publish: caught error: "+r)}else console.error("MQTT publish: Lost connection to MQTT server. Please reload the page")}function Jt(){return Ma.clientId}function fn(a){return new Promise(e=>setTimeout(e,a))}class vn{constructor(e){b(this,"id");b(this,"name","Ladepunkt");b(this,"icon","Ladepunkt");b(this,"type","");b(this,"ev",0);b(this,"template",0);b(this,"connectedPhases",0);b(this,"phase_1",0);b(this,"autoPhaseSwitchHw",!1);b(this,"controlPilotInterruptionHw",!1);b(this,"isEnabled",!0);b(this,"isPluggedIn",!1);b(this,"isCharging",!1);b(this,"_isLocked",!1);b(this,"_connectedVehicle",0);b(this,"chargeTemplate",null);b(this,"evTemplate",0);b(this,"_chargeMode",$e.pv_charging);b(this,"_hasPriority",!1);b(this,"currentPlan","");b(this,"averageConsumption",0);b(this,"vehicleName","");b(this,"rangeCharged",0);b(this,"rangeUnit","");b(this,"counter",0);b(this,"dailyYield",0);b(this,"energyPv",0);b(this,"energyBat",0);b(this,"pvPercentage",0);b(this,"faultState",0);b(this,"faultStr","");b(this,"phasesInUse",0);b(this,"power",0);b(this,"chargedSincePlugged",0);b(this,"stateStr","");b(this,"current",0);b(this,"currents",[0,0,0]);b(this,"phasesToUse",0);b(this,"isSocConfigured",!0);b(this,"isSocManual",!1);b(this,"waitingForSoc",!1);b(this,"color","white");b(this,"_timedCharging",!1);b(this,"_instantChargeLimitMode","");b(this,"_instantTargetCurrent",0);b(this,"_instantTargetSoc",0);b(this,"_instantMaxEnergy",0);b(this,"_instantTargetPhases",0);b(this,"_pvFeedInLimit",!1);b(this,"_pvMinCurrent",0);b(this,"_pvMaxSoc",0);b(this,"_pvMinSoc",0);b(this,"_pvMinSocCurrent",0);b(this,"_pvMinSocPhases",1);b(this,"_pvChargeLimitMode","");b(this,"_pvTargetSoc",0);b(this,"_pvMaxEnergy",0);b(this,"_pvTargetPhases",0);b(this,"_ecoMinCurrent",0);b(this,"_ecoTargetPhases",0);b(this,"_ecoChargeLimitMode","");b(this,"_ecoTargetSoc",0);b(this,"_ecoMaxEnergy",0);b(this,"_etActive",!1);b(this,"_etMaxPrice",20);this.id=e}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked=e,ye("cpLock",e,this.id)}updateIsLocked(e){this._isLocked=e}get connectedVehicle(){return this._connectedVehicle}set connectedVehicle(e){this._connectedVehicle=e,ye("cpVehicle",e,this.id)}updateConnectedVehicle(e){this._connectedVehicle=e}get soc(){return X[this.connectedVehicle]?X[this.connectedVehicle].soc:0}set soc(e){X[this.connectedVehicle]&&(X[this.connectedVehicle].soc=e)}get chargeMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.selected)??$e.stop}set chargeMode(e){console.log("set mode"),this.chargeTemplate&&(console.log("active"),this.chargeTemplate.chargemode.selected=e,se(this.id))}get hasPriority(){var e;return((e=this.chargeTemplate)==null?void 0:e.prio)??!1}set hasPriority(e){this.chargeTemplate&&(this.chargeTemplate.prio=e,ye("cpPriority",e,this.id))}get timedCharging(){return this.chargeTemplate?this.chargeTemplate.time_charging.active:!1}set timedCharging(e){this.chargeTemplate.time_charging.active=e,ye("cpTimedCharging",e,this.id)}get instantTargetCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.current)??0}set instantTargetCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.current=e,se(this.id))}get instantChargeLimitMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.limit.selected)??"none"}set instantChargeLimitMode(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.limit.selected=e,se(this.id))}get instantTargetSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.limit.soc)??0}set instantTargetSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.limit.soc=e,se(this.id))}get instantMaxEnergy(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.limit.amount)??0}set instantMaxEnergy(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.limit.amount=e,se(this.id))}get instantTargetPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.phases_to_use)??0}set instantTargetPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.phases_to_use=e,se(this.id))}get pvFeedInLimit(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.feed_in_limit)??!1}set pvFeedInLimit(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.feed_in_limit=e,se(this.id))}get pvMinCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.min_current)??0}set pvMinCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.min_current=e,se(this.id))}get pvMaxSoc(){return this._pvMaxSoc}set pvMaxSoc(e){this._pvMaxSoc=e,ye("cpPvMaxSoc",e,this.id)}updatePvMaxSoc(e){this._pvMaxSoc=e}get pvMinSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.min_soc)??0}set pvMinSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.min_soc=e,se(this.id))}get pvMinSocCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.min_soc_current)??0}set pvMinSocCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.min_soc_current=e,se(this.id))}set pvMinSocPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.phases_to_use_min_soc=e,se(this.id))}get pvMinSocPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.phases_to_use_min_soc)??0}get pvChargeLimitMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.limit.selected)??"none"}set pvChargeLimitMode(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.limit.selected=e,se(this.id))}get pvTargetSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.limit.soc)??0}set pvTargetSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.limit.soc=e,se(this.id))}get pvMaxEnergy(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.limit.amount)??0}set pvMaxEnergy(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.limit.amount=e,se(this.id))}get pvTargetPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.phases_to_use)??0}set pvTargetPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.phases_to_use=e,se(this.id))}get ecoMinCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.current)??0}set ecoMinCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.current=e,se(this.id))}get ecoTargetPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.phases_to_use)??0}set ecoTargetPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.phases_to_use=e,se(this.id))}get ecoChargeLimitMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.limit.selected)??"none"}set ecoChargeLimitMode(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.limit.selected=e,se(this.id))}get ecoTargetSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.limit.soc)??0}set ecoTargetSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.limit.soc=e,se(this.id))}get ecoMaxEnergy(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.limit.amount)??0}set ecoMaxEnergy(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.limit.amount=e,se(this.id))}get etMaxPrice(){var e;return(((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.max_price)??0)*1e5}set etMaxPrice(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.max_price=Math.ceil(e*1e3)/1e8,se(this.id))}get etActive(){return this.chargeTemplate&&this.chargeTemplate.chargemode.selected==$e.eco_charging}get realCurrent(){switch(this.phasesInUse){case 0:return 0;case 1:return this.currents[0];case 2:return(this.currents[0]+this.currents[1])/2;case 3:return(this.currents[0]+this.currents[1]+this.currents[2])/3;default:return 0}}toPowerItem(){return{name:this.name,power:this.power,energy:this.dailyYield,energyPv:this.energyPv,energyBat:this.energyBat,pvPercentage:this.pvPercentage,color:this.color,icon:this.icon,showInGraph:!0}}}class bn{constructor(e){b(this,"id");b(this,"name","__invalid");b(this,"tags",[]);b(this,"config",{});b(this,"soc",0);b(this,"range",0);b(this,"_chargeTemplateId",0);b(this,"isSocConfigured",!1);b(this,"isSocManual",!1);b(this,"_evTemplateId",0);this.id=e}get chargeTemplateId(){return this._chargeTemplateId}set chargeTemplateId(e){this._chargeTemplateId=e,ye("vhChargeTemplateId",e,this.id)}updateChargeTemplateId(e){this._chargeTemplateId=e}get evTemplateId(){return this._evTemplateId}set evTemplateId(e){this._evTemplateId=e,ye("vhEvTemplateId",e,this.id)}updateEvTemplateId(e){this._evTemplateId=e}get chargepoint(){for(const e of Object.values(O))if(e.connectedVehicle==this.id)return e}get visible(){return this.name!="__invalid"&&(this.id!=0||m.showStandardVehicle)}}const O=ge({}),X=ge({}),Ft=ge({}),yn=ge({});function _n(a){if(!(a in O)){O[a]=new vn(a);const e="var(--color-cp"+(Object.values(O).length-1)+")";O[a].color=e;const t="cp"+a;ie[t]?ie["cp"+a].color=e:ie[t]={name:"Ladepunkt",color:e,icon:"Ladepunkt"}}}function wn(){Object.keys(O).forEach(a=>{delete O[parseInt(a)]})}const fe=p(()=>{const a=[],e=Object.values(O),t=Object.values(X).filter(r=>r.visible);let o=-1;switch(e.length){case 0:o=t[0]?t[0].id:-1;break;default:o=e[0].connectedVehicle}let s=-1;switch(e.length){case 0:case 1:s=t[0]?t[0].id:-1;break;default:s=e[1].connectedVehicle}return o==s&&(s=t[1]?t[1].id:-1),o!=-1&&a.push(o),s!=-1&&a.push(s),a}),qt=[{name:"keine",id:"none"},{name:"Ladestand",id:"soc"},{name:"Energie",id:"amount"}],Ca={cpLock:"openWB/set/chargepoint/%/set/manual_lock",chargeMode:"openWB/set/vehicle/template/charge_template/%/chargemode/selected",cpPriority:"openWB/set/vehicle/template/charge_template/%/prio",cpTimedCharging:"openWB/set/vehicle/template/charge_template/%/time_charging/active",pvBatteryPriority:"openWB/set/general/chargemode_config/pv_charging/bat_mode",cpVehicle:"openWB/set/chargepoint/%/config/ev",cpInstantChargeLimitMode:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/selected",cpInstantTargetCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/current",cpInstantTargetSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/soc",cpInstantMaxEnergy:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/amount",cpPvFeedInLimit:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/feed_in_limit",cpPvMinCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_current",cpPvMaxSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/max_soc",cpPvMinSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_soc",cpPvMinSocCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_soc_current",cpEtMaxPrice:"openWB/set/vehicle/template/charge_template/%/et/max_price",vhChargeTemplateId:"openWB/set/vehicle/%/charge_template",vhEvTemplateId:"openWB/set/vehicle/%/ev_template",shSetManual:"openWB/set/LegacySmartHome/config/set/Devices/%/mode",shSwitchOn:"openWB/set/LegacySmartHome/config/set/Devices/%/device_manual_control",socUpdate:"openWB/set/vehicle/%/get/force_soc_update",setSoc:"openWB/set/vehicle/%/soc_module/calculated_soc_state/manual_soc",priceCharging:"openWB/set/vehicle/template/charge_template/%/et/active",chargeTemplate:"openWB/set/chargepoint/%/set/charge_template"};function ye(a,e,t=0){if(isNaN(t)){console.warn("Invalid index");return}let o=Ca[a];if(!o){console.warn("No topic for update type "+a);return}switch(a){default:o=o.replace("%",String(t))}switch(typeof e){case"number":xt(o,JSON.stringify(+e));break;default:xt(o,JSON.stringify(e))}}function Yt(a){xt("openWB/set/command/"+Jt()+"/todo",JSON.stringify(a))}function se(a){xt(Ca.chargeTemplate.replace("%",String(a)),JSON.stringify(O[a].chargeTemplate))}const we=500,Me=500,j={top:15,right:20,bottom:10,left:25},Qt=["charging","house","batIn","devices"];class kn{constructor(){b(this,"data",[]);b(this,"_graphMode","");b(this,"waitForData",!0)}get graphMode(){return this._graphMode}set graphMode(e){this._graphMode=e}}const y=ge(new kn),Ia=Z(Ha),Qe=p(()=>[0,we-j.left-2*j.right].map(a=>Ia.value.applyX(a)));let gt=!0,lt=!0;function sa(){gt=!1}function ia(){gt=!0}function la(){lt=!1}function ca(){lt=!0}function xn(a){lt=a}function ft(a){y.data=a,y.waitForData=!1}const me=ge({refreshTopicPrefix:"openWB/graph/alllivevaluesJson",updateTopic:"openWB/graph/lastlivevaluesJson",configTopic:"openWB/graph/config/#",initialized:!1,initCounter:0,graphRefreshCounter:0,rawDataPacks:[],duration:0,activate(a){this.unsubscribeUpdates(),this.subscribeRefresh(),a&&(y.data=[]),y.waitForData=!0,Ke(this.configTopic),this.initialized=!1,this.initCounter=0,this.graphRefreshCounter=0,this.rawDataPacks=[],Cn(),ct.value=!0},deactivate(){this.unsubscribeRefresh(),this.unsubscribeUpdates(),st(this.configTopic)},subscribeRefresh(){for(let a=1;a<17;a++)Ke(this.refreshTopicPrefix+a)},unsubscribeRefresh(){for(let a=1;a<17;a++)st(this.refreshTopicPrefix+a)},subscribeUpdates(){Ke(this.updateTopic)},unsubscribeUpdates(){st(this.updateTopic)}}),ue=ge({topic:"openWB/log/daily/#",date:new Date,activate(a){if(y.graphMode=="day"||y.graphMode=="today"){y.graphMode=="today"&&(this.date=new Date);const e=this.date.getFullYear().toString()+(this.date.getMonth()+1).toString().padStart(2,"0")+this.date.getDate().toString().padStart(2,"0");this.topic="openWB/log/daily/"+e,Ke(this.topic),a&&(y.data=[]),y.waitForData=!0,Yt({command:"getDailyLog",data:{date:e}})}},deactivate(){st(this.topic)},back(){this.date=new Date(this.date.setTime(this.date.getTime()-864e5))},forward(){this.date=new Date(this.date.setTime(this.date.getTime()+864e5))},setDate(a){this.date=a},getDate(){return this.date}}),Ee=ge({topic:"openWB/log/monthly/#",month:new Date().getMonth()+1,year:new Date().getFullYear(),activate(a){const e=this.year.toString()+this.month.toString().padStart(2,"0");y.data=[],Ke(this.topic),a&&(y.data=[]),y.waitForData=!0,Yt({command:"getMonthlyLog",data:{date:e}})},deactivate(){st(this.topic)},back(){this.month-=1,this.month<1&&(this.month=12,this.year-=1),this.activate()},forward(){const a=new Date;a.getFullYear()==this.year?this.month-112&&(this.month=1,this.year+=1)),this.activate()},getDate(){return new Date(this.year,this.month)}}),qe=ge({topic:"openWB/log/yearly/#",month:new Date().getMonth()+1,year:new Date().getFullYear(),activate(a){const e=this.year.toString();Ke(this.topic),a&&(y.data=[]),y.waitForData=!0,Yt({command:"getYearlyLog",data:{date:e}})},deactivate(){st(this.topic)},back(){this.year-=1,this.activate()},forward(){this.year0&&(T.items[a].energyPv+=1e3/12*(e[a]*(e.pv-e.evuOut))/(e.pv-e.evuOut+e.evuIn+e.batOut),T.items[a].energyBat+=1e3/12*(e[a]*e.batOut)/(e.pv-e.evuOut+e.evuIn+e.batOut))}function Mn(a,e){e[a]>0&&(T.items[a].energyPv+=1e3*(e[a]*(e.pv-e.evuOut))/(e.pv-e.evuOut+e.evuIn+e.batOut),T.items[a].energyBat+=1e3*(e[a]*e.batOut)/(e.pv-e.evuOut+e.evuIn+e.batOut))}const Pn=["evuIn","pv","batOut","evuOut"],Ze=Z(!1);function Zt(a,e){Object.entries(a).length>0?(Ze.value=!1,Object.entries(a.counter).forEach(([t,o])=>{(e.length==0||e.includes(t))&&(T.items.evuIn.energy+=o.energy_imported,T.items.evuOut.energy+=o.energy_exported)}),T.items.pv.energy=a.pv.all.energy_exported,a.bat.all&&(T.items.batIn.energy=a.bat.all.energy_imported,T.items.batOut.energy=a.bat.all.energy_exported),Object.entries(a.cp).forEach(([t,o])=>{t=="all"?(T.setEnergy("charging",o.energy_imported),o.energy_imported_pv!=null&&(T.setEnergyPv("charging",o.energy_imported_pv),T.setEnergyBat("charging",o.energy_imported_bat))):T.setEnergy(t,o.energy_imported)}),T.setEnergy("devices",0),Object.entries(a.sh).forEach(([t,o])=>{T.setEnergy(t,o.energy_imported);const s=t.substring(2);ne.get(+s).countAsHouse||(T.items.devices.energy+=o.energy_imported)}),a.hc&&a.hc.all?(T.setEnergy("house",a.hc.all.energy_imported),a.hc.all.energy_imported_pv!=null&&(T.setEnergyPv("house",a.hc.all.energy_imported_pv),T.setEnergyBat("house",a.hc.all.energy_imported_bat))):T.calculateHouseEnergy(),T.keys().forEach(t=>{Pn.includes(t)||(T.setPvPercentage(t,Math.round((T.items[t].energyPv+T.items[t].energyBat)/T.items[t].energy*100)),Qt.includes(t)&&(F[t].energy=T.items[t].energy,F[t].energyPv=T.items[t].energyPv,F[t].energyBat=T.items[t].energyBat,F[t].pvPercentage=T.items[t].pvPercentage))}),y.graphMode=="today"&&(Object.values(O).forEach(t=>{const o=T.items["cp"+t.id];o&&(t.energyPv=o.energyPv,t.energyBat=o.energyBat,t.pvPercentage=o.pvPercentage)}),ne.forEach(t=>{const o=T.items["sh"+t.id];o&&(t.energy=o.energy,t.energyPv=o.energyPv,t.energyBat=o.energyBat,t.pvPercentage=o.pvPercentage)}))):Ze.value=!0,ct.value=!0}const Ve=p(()=>{const a=Le(y.data,e=>new Date(e.date));return a[0]&&a[1]?jt().domain(a).range([0,we-j.left-2*j.right]):tt().range([0,0])});function Cn(){T.keys().forEach(a=>{Qt.includes(a)&&(F[a].energy=T.items[a].energy,F[a].energyPv=0,F[a].energyBat=0,F[a].pvPercentage=0)}),Object.values(O).forEach(a=>{a.energyPv=0,a.energyBat=0,a.pvPercentage=0}),ne.forEach(a=>{a.energyPv=0,a.energyBat=0,a.pvPercentage=0})}const Ye=p(()=>{const a=Le(y.data,e=>e.date);return a[1]?wt().domain(Array.from({length:a[1]},(e,t)=>t+1)).paddingInner(.4).range([0,we-j.left-2]):wt().range([0,0])});function Pt(){switch(y.graphMode){case"live":y.graphMode="today",m.showRightButton=!0,ve();break;case"today":y.graphMode="day",ue.deactivate(),ue.back(),ue.activate(),ve();break;case"day":ue.back(),ve();break;case"month":Ee.back();break;case"year":qe.back();break}}function Xt(){const a=new Date;switch(y.graphMode){case"live":break;case"today":y.graphMode="live",m.showRightButton=!1,ve();break;case"day":ue.forward(),ue.date.getDate()==a.getDate()&&ue.date.getMonth()==a.getMonth()&&ue.date.getFullYear()==a.getFullYear()&&(y.graphMode="today"),ve();break;case"month":Ee.forward();break;case"year":qe.forward();break}}function Kt(){switch(y.graphMode){case"live":Pt();break;case"day":case"today":y.graphMode="month",ve();break;case"month":y.graphMode="year",ve();break}}function ea(){switch(y.graphMode){case"year":y.graphMode="month",ve();break;case"month":y.graphMode="today",ve();break;case"today":case"day":y.graphMode="live",ve();break}}function ua(a){if(y.graphMode=="day"||y.graphMode=="today"){ue.setDate(a);const e=new Date;ue.date.getDate()==e.getDate()&&ue.date.getMonth()==e.getMonth()&&ue.date.getFullYear()==e.getFullYear()?y.graphMode="today":y.graphMode="day",ve()}}const Fe=Z(new Map);class In{constructor(){b(this,"_showRelativeArcs",!1);b(this,"showTodayGraph",!0);b(this,"_graphPreference","today");b(this,"_usageStackOrder",0);b(this,"_displayMode","dark");b(this,"_showGrid",!1);b(this,"_smartHomeColors","normal");b(this,"_decimalPlaces",1);b(this,"_showQuickAccess",!0);b(this,"_simpleCpList",!1);b(this,"_shortCpList","no");b(this,"_showAnimations",!0);b(this,"_preferWideBoxes",!1);b(this,"_maxPower",4e3);b(this,"_fluidDisplay",!1);b(this,"_showClock","no");b(this,"_showButtonBar",!0);b(this,"_showCounters",!1);b(this,"_showVehicles",!1);b(this,"_showStandardVehicle",!0);b(this,"_showPrices",!1);b(this,"_showInverters",!1);b(this,"_alternativeEnergy",!1);b(this,"_sslPrefs",!1);b(this,"_debug",!1);b(this,"_lowerPriceBound",0);b(this,"_upperPriceBound",0);b(this,"isEtEnabled",!1);b(this,"etPrice",20.5);b(this,"showRightButton",!0);b(this,"showLeftButton",!0);b(this,"animationDuration",300);b(this,"animationDelay",100);b(this,"zoomGraph",!1);b(this,"zoomedWidget",1)}get showRelativeArcs(){return this._showRelativeArcs}set showRelativeArcs(e){this._showRelativeArcs=e,re()}setShowRelativeArcs(e){this._showRelativeArcs=e}get graphPreference(){return this._graphPreference}set graphPreference(e){this._graphPreference=e,re()}setGraphPreference(e){this._graphPreference=e}get usageStackOrder(){return this._usageStackOrder}set usageStackOrder(e){this._usageStackOrder=e,re()}setUsageStackOrder(e){this._usageStackOrder=e}get displayMode(){return this._displayMode}set displayMode(e){this._displayMode=e,Tn(e)}setDisplayMode(e){this._displayMode=e}get showGrid(){return this._showGrid}set showGrid(e){this._showGrid=e,re()}setShowGrid(e){this._showGrid=e}get decimalPlaces(){return this._decimalPlaces}set decimalPlaces(e){this._decimalPlaces=e,re()}setDecimalPlaces(e){this._decimalPlaces=e}get smartHomeColors(){return this._smartHomeColors}set smartHomeColors(e){this._smartHomeColors=e,da(e),re()}setSmartHomeColors(e){this._smartHomeColors=e,da(e)}get showQuickAccess(){return this._showQuickAccess}set showQuickAccess(e){this._showQuickAccess=e,re()}setShowQuickAccess(e){this._showQuickAccess=e}get simpleCpList(){return this._simpleCpList}set simpleCpList(e){this._simpleCpList=e,re()}setSimpleCpList(e){this._simpleCpList=e}get shortCpList(){return this._shortCpList}set shortCpList(e){this._shortCpList=e,re()}setShortCpList(e){this._shortCpList=e}get showAnimations(){return this._showAnimations}set showAnimations(e){this._showAnimations=e,re()}setShowAnimations(e){this._showAnimations=e}get preferWideBoxes(){return this._preferWideBoxes}set preferWideBoxes(e){this._preferWideBoxes=e,re()}setPreferWideBoxes(e){this._preferWideBoxes=e}get maxPower(){return this._maxPower}set maxPower(e){this._maxPower=e,re()}setMaxPower(e){this._maxPower=e}get fluidDisplay(){return this._fluidDisplay}set fluidDisplay(e){this._fluidDisplay=e,re()}setFluidDisplay(e){this._fluidDisplay=e}get showClock(){return this._showClock}set showClock(e){this._showClock=e,re()}setShowClock(e){this._showClock=e}get sslPrefs(){return this._sslPrefs}set sslPrefs(e){this._sslPrefs=e,re()}setSslPrefs(e){this.sslPrefs=e}get debug(){return this._debug}set debug(e){this._debug=e,re()}setDebug(e){this._debug=e}get showButtonBar(){return this._showButtonBar}set showButtonBar(e){this._showButtonBar=e,re()}setShowButtonBar(e){this._showButtonBar=e}get showCounters(){return this._showCounters}set showCounters(e){this._showCounters=e,re()}setShowCounters(e){this._showCounters=e}get showVehicles(){return this._showVehicles}set showVehicles(e){this._showVehicles=e,re()}setShowVehicles(e){this._showVehicles=e}get showStandardVehicle(){return this._showStandardVehicle}set showStandardVehicle(e){this._showStandardVehicle=e,re()}setShowStandardVehicle(e){this._showStandardVehicle=e}get showPrices(){return this._showPrices}set showPrices(e){this._showPrices=e,re()}setShowPrices(e){this._showPrices=e}get showInverters(){return this._showInverters}set showInverters(e){this._showInverters=e,ia(),ca(),re()}setShowInverters(e){this._showInverters=e}get alternativeEnergy(){return this._alternativeEnergy}set alternativeEnergy(e){this._alternativeEnergy=e,ia(),ca(),re()}setAlternativeEnergy(e){this._alternativeEnergy=e}get lowerPriceBound(){return this._lowerPriceBound}set lowerPriceBound(e){this._lowerPriceBound=e,re()}setLowerPriceBound(e){this._lowerPriceBound=e}get upperPriceBound(){return this._upperPriceBound}set upperPriceBound(e){this._upperPriceBound=e,re()}setUpperPriceBound(e){this._upperPriceBound=e}}const m=ge(new In);function Ba(){En();const a=ce("html");a.classed("theme-dark",m.displayMode=="dark"),a.classed("theme-light",m.displayMode=="light"),a.classed("theme-blue",m.displayMode=="blue"),a.classed("shcolors-standard",m.smartHomeColors=="standard"),a.classed("shcolors-advanced",m.smartHomeColors=="advanced"),a.classed("shcolors-normal",m.smartHomeColors=="normal")}const Bn=992,St=ge({x:document.documentElement.clientWidth,y:document.documentElement.clientHeight});function Vn(){St.x=document.documentElement.clientWidth,St.y=document.documentElement.clientHeight,Ba()}const De=p(()=>St.x>=Bn),be={instant_charging:{mode:$e.instant_charging,name:"Sofort",color:"var(--color-charging)",icon:"fa-bolt"},pv_charging:{mode:$e.pv_charging,name:"PV",color:"var(--color-pv)",icon:"fa-solar-panel"},scheduled_charging:{mode:$e.scheduled_charging,name:"Zielladen",color:"var(--color-battery)",icon:"fa-bullseye"},eco_charging:{mode:$e.eco_charging,name:"Eco",color:"var(--color-devices)",icon:"fa-coins"},stop:{mode:$e.stop,name:"Stop",color:"var(--color-fg)",icon:"fa-power-off"}};class Ln{constructor(){b(this,"batterySoc",0);b(this,"isBatteryConfigured",!0);b(this,"chargeMode","0");b(this,"_pvBatteryPriority","ev_mode");b(this,"displayLiveGraph",!0);b(this,"isEtEnabled",!0);b(this,"etMaxPrice",0);b(this,"etCurrentPrice",0);b(this,"cpDailyExported",0);b(this,"evuId",0);b(this,"etProvider","")}get pvBatteryPriority(){return this._pvBatteryPriority}set pvBatteryPriority(e){this._pvBatteryPriority=e,ye("pvBatteryPriority",e)}updatePvBatteryPriority(e){this._pvBatteryPriority=e}}function re(){An()}function Tn(a){const e=ce("html");e.classed("theme-dark",a=="dark"),e.classed("theme-light",a=="light"),e.classed("theme-blue",a=="blue"),re()}function On(){m.maxPower=Q.evuIn.power+Q.pv.power+Q.batOut.power,re()}function da(a){const e=ce("html");e.classed("shcolors-normal",a=="normal"),e.classed("shcolors-standard",a=="standard"),e.classed("shcolors-advanced",a=="advanced")}const Je={chargemode:"Der Lademodus für das Fahrzeug an diesem Ladepunkt",vehicle:"Das Fahrzeug, das an diesem Ladepounkt geladen wird",locked:"Für das Laden sperren",priority:"Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar",timeplan:"Das Laden nach Zeitplan für dieses Fahrzeug aktivieren",minsoc:"Immer mindestens bis zum eingestellten Ladestand laden. Wenn notwendig mit Netzstrom.",minpv:"Durchgehend mit mindestens dem eingestellten Strom laden. Wenn notwendig mit Netzstrom.",pricebased:"Laden bei dynamischem Stromtarif, wenn eingestellter Maximalpreis unterboten wird.",pvpriority:"Ladepriorität bei PV-Produktion. Bevorzung von Fahzeugen, Speicher, oder Fahrzeugen bis zum eingestellten Mindest-Ladestand. Die Einstellung ist für alle Ladepunkte gleich."};function An(){const a={};a.hideSH=[...ne.values()].filter(e=>!e.showInGraph).map(e=>e.id),a.showLG=m.graphPreference=="live",a.displayM=m.displayMode,a.stackO=m.usageStackOrder,a.showGr=m.showGrid,a.decimalP=m.decimalPlaces,a.smartHomeC=m.smartHomeColors,a.relPM=m.showRelativeArcs,a.maxPow=m.maxPower,a.showQA=m.showQuickAccess,a.simpleCP=m.simpleCpList,a.shortCP=m.shortCpList,a.animation=m.showAnimations,a.wideB=m.preferWideBoxes,a.fluidD=m.fluidDisplay,a.clock=m.showClock,a.showButtonBar=m.showButtonBar,a.showCounters=m.showCounters,a.showVehicles=m.showVehicles,a.showStandardV=m.showStandardVehicle,a.showPrices=m.showPrices,a.showInv=m.showInverters,a.altEngy=m.alternativeEnergy,a.lowerP=m.lowerPriceBound,a.upperP=m.upperPriceBound,a.sslPrefs=m.sslPrefs,a.debug=m.debug,document.cookie="openWBColorTheme="+JSON.stringify(a)+";max-age=16000000;"+(m.sslPrefs?"SameSite=None;Secure":"SameSite=Strict")}function En(){const e=document.cookie.split(";").filter(t=>t.split("=")[0]==="openWBColorTheme");if(e.length>0){const t=JSON.parse(e[0].split("=")[1]);t.decimalP!==void 0&&m.setDecimalPlaces(+t.decimalP),t.smartHomeC!==void 0&&m.setSmartHomeColors(t.smartHomeC),t.hideSH!==void 0&&t.hideSH.forEach(o=>{ne.get(o)==null&&Rt(o),ne.get(o).setShowInGraph(!1)}),t.showLG!==void 0&&m.setGraphPreference(t.showLG?"live":"today"),t.maxPow!==void 0&&m.setMaxPower(+t.maxPow),t.relPM!==void 0&&m.setShowRelativeArcs(t.relPM),t.displayM!==void 0&&m.setDisplayMode(t.displayM),t.stackO!==void 0&&m.setUsageStackOrder(t.stackO),t.showGr!==void 0&&m.setShowGrid(t.showGr),t.showQA!==void 0&&m.setShowQuickAccess(t.showQA),t.simpleCP!==void 0&&m.setSimpleCpList(t.simpleCP),t.shortCP!==void 0&&m.setShortCpList(t.shortCP),t.animation!=null&&m.setShowAnimations(t.animation),t.wideB!=null&&m.setPreferWideBoxes(t.wideB),t.fluidD!=null&&m.setFluidDisplay(t.fluidD),t.clock!=null&&m.setShowClock(t.clock),t.showButtonBar!==void 0&&m.setShowButtonBar(t.showButtonBar),t.showCounters!==void 0&&m.setShowCounters(t.showCounters),t.showVehicles!==void 0&&m.setShowVehicles(t.showVehicles),t.showStandardV!==void 0&&m.setShowStandardVehicle(t.showStandardV),t.showPrices!==void 0&&m.setShowPrices(t.showPrices),t.showInv!==void 0&&m.setShowInverters(t.showInv),t.altEngy!==void 0&&m.setAlternativeEnergy(t.altEngy),t.lowerP!==void 0&&m.setLowerPriceBound(t.lowerP),t.upperP!==void 0&&m.setUpperPriceBound(t.upperP),t.sslPrefs!==void 0&&m.setSslPrefs(t.sslPrefs),t.debug!==void 0&&m.setDebug(t.debug)}}const ie=ge({evuIn:{name:"Netz",color:"var(--color-evu)",icon:""},pv:{name:"PV",color:"var(--color-pv",icon:""},batOut:{name:"Bat >",color:"var(--color-battery)",icon:""},evuOut:{name:"Export",color:"var(--color-export)",icon:""},charging:{name:"Laden",color:"var(--color-charging)",icon:""},devices:{name:"Geräte",color:"var(--color-devices)",icon:""},batIn:{name:"> Bat",color:"var(--color-battery)",icon:""},house:{name:"Haus",color:"var(--color-house)",icon:""},cp1:{name:"Ladepunkt",color:"var(--color-cp1)",icon:"Ladepunkt"},cp2:{name:"Ladepunkt",color:"var(--color-cp2)",icon:"Ladepunkt"},cp3:{name:"Ladepunkt",color:"var(--color-cp3)",icon:"Ladepunkt"},cp4:{name:"Ladepunkt",color:"var(--color-cp4)",icon:"Ladepunkt"},cp5:{name:"Ladepunkt",color:"var(--color-cp5)",icon:"Ladepunkt"},cp6:{name:"Ladepunkt",color:"var(--color-cp6)",icon:"Ladepunkt"},cp7:{name:"Ladepunkt",color:"var(--color-cp7)",icon:"Ladepunkt"},cp8:{name:"Ladepunkt",color:"var(--color-cp8)",icon:"Ladepunkt"},sh1:{name:"Gerät",color:"var(--color-sh1)",icon:"Gerät"},sh2:{name:"Gerät",color:"var(--color-sh2)",icon:"Gerät"},sh3:{name:"Gerät",color:"var(--color-sh3)",icon:"Gerät"},sh4:{name:"Gerät",color:"var(--color-sh4)",icon:"Gerät"},sh5:{name:"Gerät",color:"var(--color-sh5)",icon:"Gerät"},sh6:{name:"Gerät",color:"var(--color-sh6)",icon:"Gerät"},sh7:{name:"Gerät",color:"var(--color-sh7)",icon:"Gerät"},sh8:{name:"Gerät",color:"var(--color-sh8)",icon:"Gerät"},sh9:{name:"Gerät",color:"var(--color-sh9)",icon:"Gerät"},pv1:{name:"PV",color:"var(--color-pv1)",icon:"Wechselrichter"},pv2:{name:"PV",color:"var(--color-pv2)",icon:"Wechselrichter"},pv3:{name:"PV",color:"var(--color-pv3)",icon:"Wechselrichter"},pv4:{name:"PV",color:"var(--color-pv4)",icon:"Wechselrichter"},pv5:{name:"PV",color:"var(--color-pv5)",icon:"Wechselrichter"},pv6:{name:"PV",color:"var(--color-pv6)",icon:"Wechselrichter"},pv7:{name:"PV",color:"var(--color-pv7)",icon:"Wechselrichter"},pv8:{name:"PV",color:"var(--color-pv8)",icon:"Wechselrichter"},pv9:{name:"PV",color:"var(--color-pv9)",icon:"Wechselrichter"},bat1:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat2:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat3:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat4:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat5:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat6:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat7:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat8:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat9:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"}});class Va{constructor(){b(this,"_items",{});this.addItem("evuIn"),this.addItem("pv"),this.addItem("batOut"),this.addItem("evuOut"),this.addItem("charging"),this.addItem("devices"),this.addItem("batIn"),this.addItem("house")}get items(){return this._items}keys(){return Object.keys(this._items)}values(){return Object.values(this._items)}addItem(e,t){this._items[e]=t?ze(e,t):ze(e)}setEnergy(e,t){this.keys().includes(e)||this.addItem(e),this._items[e].energy=t}setEnergyPv(e,t){this.keys().includes(e)||this.addItem(e),this._items[e].energyPv=t}setEnergyBat(e,t){this.keys().includes(e)||this.addItem(e),this._items[e].energyBat=t}setPvPercentage(e,t){this.keys().includes(e)||this.addItem(e),this._items[e].pvPercentage=t<=100?t:100}calculateHouseEnergy(){this._items.house.energy=this._items.evuIn.energy+this._items.pv.energy+this._items.batOut.energy-this._items.evuOut.energy-this._items.batIn.energy-this._items.charging.energy-this._items.devices.energy}}let T=ge(new Va);function ta(){T=new Va}const Q=ge({evuIn:ze("evuIn"),pv:ze("pv"),batOut:ze("batOut")}),F=ge({evuOut:ze("evuOut"),charging:ze("charging"),devices:ze("devices"),batIn:ze("batIn"),house:ze("house")}),he=ge(new Ln);Z("");const ct=Z(!1);function ze(a,e){return{name:ie[a]?ie[a].name:"item",power:0,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:e||(ie[a]?ie[a].color:"var(--color-charging)"),icon:ie[a]?ie[a].icon:"",showInGraph:!0}}const Nt=Z(new Date),ke=Z(new Map),zn=a=>{ke.value.set(a,new $a(a)),ke.value.get(a).color=ie["pv"+ke.value.size].color},Dn=["origin"],Wn=L({__name:"PMSourceArc",props:{radius:{},cornerRadius:{},circleGapSize:{},emptyPower:{}},setup(a){const e=a,t=p(()=>{let o={name:"",power:e.emptyPower,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-bg)",icon:"",showInGraph:!0},s=Q;s["zz-empty"]=o;const r=Object.values(Q).length-1,d=_a().value(h=>h.power).startAngle(-Math.PI/2+e.circleGapSize).endAngle(Math.PI/2-e.circleGapSize).sort(null),g=wa().innerRadius(e.radius/6*5).outerRadius(e.radius).cornerRadius(e.cornerRadius).padAngle(0),u=ce("g#pmSourceArc");return u.selectAll("*").remove(),u.selectAll("sources").data(d(Object.values(s))).enter().append("path").attr("d",g).attr("fill",h=>h.data.color).attr("stroke",(h,c)=>c==r?h.data.power>0?"var(--color-scale)":"null":h.data.color),"pmSourceArc.vue"});return Ra(()=>{let o=Q.pv.power+Q.evuIn.power+Q.batOut.power;o>m.maxPower&&(m.maxPower=o)}),(o,s)=>(l(),f("g",{id:"pmSourceArc",origin:t.value},null,8,Dn))}}),Gn=["origin"],Un=L({__name:"PMUsageArc",props:{radius:{},cornerRadius:{},circleGapSize:{},emptyPower:{}},setup(a){const e=a,t=p(()=>{let o={name:"",power:e.emptyPower,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-bg)",icon:"",showInGraph:!0};const s=[F.evuOut,F.charging].concat([...ne.values()].filter(h=>h.configured&&!h.countAsHouse).sort((h,c)=>c.power-h.power)).concat([F.batIn,F.house]).concat(o),r=s.length-1,d=_a().value(h=>h.power).startAngle(Math.PI*1.5-e.circleGapSize).endAngle(Math.PI/2+e.circleGapSize).sort(null),g=wa().innerRadius(e.radius/6*5).outerRadius(e.radius).cornerRadius(e.cornerRadius),u=ce("g#pmUsageArc");return u.selectAll("*").remove(),u.selectAll("consumers").data(d(s)).enter().append("path").attr("d",g).attr("fill",h=>h.data.color).attr("stroke",(h,c)=>c==r?h.data.power>0?"var(--color-scale)":"null":h.data.color),"pmUsageArc.vue"});return(o,s)=>(l(),f("g",{id:"pmUsageArc",origin:t.value},null,8,Gn))}});function Pe(a,e=1){let t;if(a>=1e3&&e<4){switch(e){case 0:t=Math.round(a/1e3);break;case 1:t=Math.round(a/100)/10;break;case 2:t=Math.round(a/10)/100;break;case 3:t=Math.round(a)/1e3;break;default:t=Math.round(a/100)/10;break}return(t==null?void 0:t.toLocaleString(void 0,{minimumFractionDigits:e}))+" kW"}else return Math.round(a).toLocaleString()+" W"}function He(a,e=1,t=!1){let o;if(a>1e6&&(t=!0,a=a/1e3),a>=1e3&&e<4){switch(e){case 0:o=Math.round(a/1e3);break;case 1:o=Math.round(a/100)/10;break;case 2:o=Math.round(a/10)/100;break;case 3:o=Math.round(a)/1e3;break;default:o=Math.round(a/100)/10;break}return o.toLocaleString(void 0,{minimumFractionDigits:e})+(t?" MWh":" kWh")}else return Math.round(a).toLocaleString()+(t?" kWh":" Wh")}function jn(a){const e=Math.floor(a/3600),t=(a%3600/60).toFixed(0);return e>0?e+"h "+t+" min":t+" min"}function La(a){return a.toLocaleTimeString(["de-DE"],{hour:"2-digit",minute:"2-digit"})}function Fn(a,e){return["Jan","Feb","März","April","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Dez"][a]+" "+e}function Nn(a){return a!=999?(Math.round(a*10)/10).toLocaleString(void 0,{minimumFractionDigits:1})+"°":"-"}const vt=L({__name:"FormatWatt",props:{watt:{}},setup(a){const e=a,t=p(()=>Pe(e.watt,m.decimalPlaces));return(o,s)=>x(t.value)}}),Hn={key:0,id:"pmLabel"},Rn=["x","y","fill","text-anchor"],Jn=22,Ae=L({__name:"PMLabel",props:{x:{},y:{},data:{},props:{},anchor:{},labeltext:{},labelicon:{},labelcolor:{}},setup(a){const e=a,t=p(()=>e.labeltext?e.labeltext:e.props?e.props.icon+" ":e.labelicon?e.labelicon+" ":""),o=p(()=>e.labelcolor?e.labelcolor:e.props?e.props.color:""),s=p(()=>!e.data||e.data.power>0),r=p(()=>e.labeltext?"":"fas");return(d,g)=>s.value?(l(),f("g",Hn,[n("text",{x:d.x,y:d.y,fill:o.value,"text-anchor":d.anchor,"font-size":Jn,class:"pmLabel"},[n("tspan",{class:R(r.value)},x(t.value),3),n("tspan",null,[d.data!==void 0?(l(),M(vt,{key:0,watt:d.data.power},null,8,["watt"])):w("",!0)])],8,Rn)])):w("",!0)}}),qn={class:"wb-widget p-0 m-0 shadow"},Yn={class:"d-flex justify-content-between"},Qn={class:"m-4 me-0 mb-0"},Zn={class:"p-4 pb-0 ps-0 m-0",style:{"text-align":"right"}},Xn={class:"px-4 pt-4 pb-2 wb-subwidget"},Kn={class:"row"},er={class:"col m-0 p-0"},tr={class:"container-fluid m-0 p-0"},ar={key:0},nr={class:"px-4 py-2 wb-subwidget"},rr={class:"row"},or={class:"col"},sr={class:"container-fluid m-0 p-0"},bt=L({__name:"WBWidget",props:{variableWidth:{type:Boolean},fullWidth:{type:Boolean}},setup(a){const e=a,t=p(()=>e.fullWidth?"col-12":e.variableWidth&&m.preferWideBoxes?"col-lg-6":"col-lg-4");return(o,s)=>(l(),f("div",{class:R(["p-2 m-0 d-flex",t.value])},[n("div",qn,[n("div",Yn,[n("h3",Qn,[de(o.$slots,"title",{},()=>[s[0]||(s[0]=n("div",{class:"p-0"},"(title goes here)",-1))]),de(o.$slots,"subtitle")]),n("div",Zn,[de(o.$slots,"buttons")])]),n("div",Xn,[n("div",Kn,[n("div",er,[n("div",tr,[de(o.$slots,"default")])])])]),o.$slots.footer!=null?(l(),f("div",ar,[s[1]||(s[1]=n("hr",null,null,-1)),n("div",nr,[n("div",rr,[n("div",or,[n("div",sr,[de(o.$slots,"footer")])])])])])):w("",!0)])],2))}});class ir{constructor(){b(this,"active",!1);b(this,"etPriceList",new Map);b(this,"etProvider","");b(this,"etMaxPrice",0)}get etCurrentPriceString(){const[e]=oe.etPriceList.values();return(Math.round(e*10)/10).toFixed(1)+" ct"}}const oe=ge(new ir),lr={id:"powermeter",class:"p-0 m-0"},cr=["viewBox"],ur=["transform"],dr=["x"],Xe=500,je=20,ha=1,hr=L({__name:"PowerMeter",setup(a){const e=Xe,t=Math.PI/40,o=[[4],[4,6],[1,4,6],[0,2,4,6],[0,2,3,5,6]],s=[{x:-85,y:e/2*1/5},{x:0,y:e/2*1/5},{x:85,y:e/2*1/5},{x:-85,y:e/2*2/5},{x:0,y:e/2*2/5},{x:85,y:e/2*2/5},{x:0,y:e/2*3/5}],r=p(()=>Xe/2-je),d=p(()=>{let z="",C=Object.values(Q).filter(B=>B.power>0);return C.length==1&&C[0].name=="PV"?z="Aktueller Verbrauch: ":z="Bezug/Verbrauch: ",z+Pe(F.house.power+F.charging.power+F.devices.power+F.batIn.power,m.decimalPlaces)}),g=p(()=>{let z=Q.pv.power+Q.evuIn.power+Q.batOut.power;return m.maxPower>z?Pe(m.maxPower,m.decimalPlaces):Pe(z,m.decimalPlaces)}),u=p(()=>Object.values(O)),h=p(()=>{let z=0;return m.showRelativeArcs&&(z=m.maxPower-(Q.pv.power+Q.evuIn.power+Q.batOut.power)),z<0?0:z}),c=p(()=>[F.evuOut,F.charging,F.devices,F.batIn,F.house].filter(z=>z.power>0)),k=p(()=>o[c.value.length-1]);function P(z){return s[k.value[z]]}function E(z){return z.length>12?z.slice(0,11)+".":z}const G=p(()=>{const[z]=oe.etPriceList.values();return Math.round(z*10)/10});return(z,C)=>(l(),M(bt,{"full-width":!0},{title:_(()=>C[0]||(C[0]=[J(" Aktuelle Leistung ")])),default:_(()=>[n("figure",lr,[(l(),f("svg",{viewBox:"0 0 "+Xe+" "+i(e)},[n("g",{transform:"translate("+Xe/2+","+i(e)/2+")"},[v(Wn,{radius:r.value,"corner-radius":ha,"circle-gap-size":t,"empty-power":h.value},null,8,["radius","empty-power"]),v(Un,{"sh-device":i(ne),radius:r.value,"corner-radius":ha,"circle-gap-size":t,"empty-power":h.value},null,8,["sh-device","radius","empty-power"]),v(Ae,{x:0,y:-i(e)/10*2,data:i(Q).pv,props:i(ie).pv,anchor:"middle",config:i(m)},null,8,["y","data","props","config"]),v(Ae,{x:0,y:-i(e)/10*3,data:i(Q).evuIn,props:i(ie).evuIn,anchor:"middle",config:i(m)},null,8,["y","data","props","config"]),v(Ae,{x:0,y:-i(e)/10,data:i(Q).batOut,props:i(ie).batOut,anchor:"middle",config:i(m)},null,8,["y","data","props","config"]),i(oe).active?(l(),M(Ae,{key:0,x:0,y:-i(e)/10,data:i(Q).batOut,props:i(ie).batOut,anchor:"middle",config:i(m)},null,8,["y","data","props","config"])):w("",!0),(l(!0),f(N,null,K(c.value,(B,q)=>(l(),M(Ae,{key:q,x:P(q).x,y:P(q).y,data:B,labelicon:B.icon,labelcolor:B.color,anchor:"middle",config:i(m)},null,8,["x","y","data","labelicon","labelcolor","config"]))),128)),i(fe)[0]!=null&&i(X)[i(fe)[0]]!=null?(l(),M(Ae,{key:1,x:-500/2-je/4+10,y:-i(e)/2+je+5,labeltext:E(i(X)[i(fe)[0]].name)+": "+Math.round(i(X)[i(fe)[0]].soc)+"%",labelcolor:u.value[0]?u.value[0].color:"var(--color-charging)",anchor:"start",config:i(m)},null,8,["x","y","labeltext","labelcolor","config"])):w("",!0),i(fe)[1]!=null&&i(X)[i(fe)[1]]!=null?(l(),M(Ae,{key:2,x:Xe/2+je/4-10,y:-i(e)/2+je+5,labeltext:E(i(X)[i(fe)[1]].name)+": "+Math.round(i(X)[i(fe)[1]].soc)+"%",labelcolor:u.value[1]?u.value[1].color:"var(--color-charging)",anchor:"end",config:i(m)},null,8,["x","y","labeltext","labelcolor","config"])):w("",!0),i(he).batterySoc>0?(l(),M(Ae,{key:3,x:-500/2-je/4+10,y:i(e)/2-je+15,labeltext:"Speicher: "+i(he).batterySoc+"%",labelcolor:i(F).batIn.color,anchor:"start",config:i(m)},null,8,["x","y","labeltext","labelcolor","config"])):w("",!0),i(oe).active?(l(),M(Ae,{key:4,x:Xe/2+je/4-10,y:i(e)/2-je+15,value:G.value,labeltext:i(oe).etCurrentPriceString,labelcolor:"var(--color-charging)",anchor:"end",config:i(m)},null,8,["x","y","value","labeltext","config"])):w("",!0),v(Ae,{x:0,y:0,labeltext:d.value,labelcolor:"var(--color-fg)",anchor:"middle",config:i(m)},null,8,["labeltext","config"]),i(m).showRelativeArcs?(l(),f("text",{key:5,x:Xe/2-44,y:"2","text-anchor":"middle",fill:"var(--color-axis)","font-size":"12"}," Peak: "+x(g.value),9,dr)):w("",!0)],8,ur)],8,cr))])]),_:1}))}}),gr=["origin","origin2","transform"],pr=L({__name:"PgSourceGraph",props:{width:{},height:{},margin:{}},setup(a){const e=a,t={house:"var(--color-house)",batIn:"var(--color-battery)",inverter:"var(--color-pv)",batOut:"var(--color-battery)",selfUsage:"var(--color-pv)",pv:"var(--color-pv)",evuOut:"var(--color-export)",evuIn:"var(--color-evu)"};var o,s;const r=m.showAnimations?m.animationDuration:0,d=m.showAnimations?m.animationDelay:0,g=p(()=>{const $=ce("g#pgSourceGraph");if(y.data.length>0){y.graphMode=="month"||y.graphMode=="year"?q($,Ye.value):B($,Ve.value),$.selectAll(".axis").remove();const D=$.append("g").attr("class","axis");D.call(G.value),D.selectAll(".tick").attr("font-size",12),D.selectAll(".tick line").attr("stroke",C.value).attr("stroke-width",z.value),D.select(".domain").attr("stroke","var(--color-bg)")}return"pgSourceGraph.vue"}),u=p(()=>ka().value(($,D)=>$[D]??0).keys(k.value)),h=p(()=>u.value(y.data)),c=p(()=>Re().range([e.height-10,0]).domain(y.graphMode=="year"?[0,Math.ceil(P.value[1]*10)/10]:[0,Math.ceil(P.value[1])])),k=p(()=>{let $=[];const D=["batOut","evuIn"];if(m.showInverters){const A=/pv\d+/;y.data.length>0&&($=Object.keys(y.data[0]).reduce((S,V)=>(V.match(A)&&S.push(V),S),[]))}switch(y.graphMode){case"live":return m.showInverters?["pv","batOut","evuIn"]:["selfUsage","evuOut","batOut","evuIn"];case"today":case"day":return $.forEach((A,S)=>{t[A]="var(--color-pv"+(S+1)+")"}),m.showInverters?[...$,...D]:["selfUsage","evuOut","batOut","evuIn"];default:return["evuIn","batOut","selfUsage","evuOut"]}}),P=p(()=>{let $=Le(y.data,D=>Math.max(D.pv+D.evuIn+D.batOut,D.selfUsage+D.evuOut));return $[0]!=null&&$[1]!=null?(y.graphMode=="year"&&($[0]=$[0]/1e3,$[1]=$[1]/1e3),$):[0,0]}),E=p(()=>y.graphMode=="month"||y.graphMode=="year"?-e.width-e.margin.right-22:-e.width),G=p(()=>pt(c.value).tickSizeInner(E.value).ticks(4).tickFormat($=>($==0?"":Math.round($*10)/10).toLocaleString(void 0))),z=p(()=>m.showGrid?"0.5":"1"),C=p(()=>m.showGrid?"var(--color-grid)":"var(--color-bg)");function B($,D){const A=rt().x((V,Y)=>D(y.data[Y].date)).y(c.value(0)).curve(ot),S=rt().x((V,Y)=>D(y.data[Y].date)).y0(V=>c.value(y.graphMode=="year"?V[0]/1e3:V[0])).y1(V=>c.value(y.graphMode=="year"?V[1]/1e3:V[1])).curve(ot);gt?($.selectAll("*").remove(),o=$.append("svg").attr("x",0).attr("width",e.width).selectAll(".sourceareas").data(h.value).enter().append("path").attr("fill",(Y,W)=>t[k.value[W]]).attr("d",Y=>A(Y)),o.transition().duration(r).delay(d).ease(dt).attr("d",Y=>S(Y)),sa()):o.data(h.value).transition().duration(0).ease(dt).attr("d",V=>S(V))}function q($,D){y.data.length>0&&(gt?($.selectAll("*").remove(),s=$.selectAll(".sourcebar").data(h.value).enter().append("g").attr("fill",(A,S)=>t[k.value[S]]).selectAll("rect").data(A=>A).enter().append("rect").attr("x",(A,S)=>D(y.data[S].date)??0).attr("y",()=>c.value(0)).attr("height",0).attr("width",D.bandwidth()),s.transition().duration(r).delay(d).ease(dt).attr("height",A=>y.graphMode=="year"?c.value(A[0]/1e3)-c.value(A[1]/1e3):c.value(A[0])-c.value(A[1])).attr("y",A=>y.graphMode=="year"?c.value(A[1]/1e3):c.value(A[1])),sa()):($.selectAll("*").remove(),s=$.selectAll(".sourcebar").data(h.value).enter().append("g").attr("fill",(A,S)=>t[k.value[S]]).selectAll("rect").data(A=>A).enter().append("rect").attr("x",(A,S)=>D(y.data[S].date)??0).attr("y",A=>y.graphMode=="year"?c.value(A[1]/1e3):c.value(A[1])).attr("width",D.bandwidth()).attr("height",A=>y.graphMode=="year"?c.value(A[0]/1e3)-c.value(A[1]/1e3):c.value(A[0])-c.value(A[1]))))}const I=p(()=>{const $=ce("g#pgSourceGraph");if(y.graphMode!="month"&&y.graphMode!="year"&&y.data.length>0){Ve.value.range(Qe.value);const D=rt().x((A,S)=>Ve.value(y.data[S].date)).y0(A=>c.value(A[0])).y1(A=>c.value(A[1])).curve(ot);$.selectAll("path").attr("d",A=>A?D(A):""),$.selectAll("g#sourceToolTips").select("rect").attr("x",A=>Ve.value(A.date)).attr("width",e.width/y.data.length)}return"zoomed"});return($,D)=>(l(),f("g",{id:"pgSourceGraph",origin:g.value,origin2:I.value,transform:"translate("+$.margin.left+","+$.margin.top+")"},null,8,gr))}}),mr=["origin","origin2","transform"],fr=L({__name:"PgUsageGraph",props:{width:{},height:{},margin:{},stackOrder:{}},setup(a){const e=a,t=p(()=>m.showInverters?[["house","charging","devices","batIn","evuOut"],["charging","devices","batIn","house","evuOut"],["devices","batIn","charging","house","evuOut"],["batIn","charging","house","devices","evuOut"]]:[["house","charging","devices","batIn"],["charging","devices","batIn","house"],["devices","batIn","charging","house"],["batIn","charging","house","devices"]]),o={house:"var(--color-house)",charging:"var(--color-charging)",batIn:"var(--color-battery)",batOut:"var(--color-battery)",selfUsage:"var(--color-pv)",evuOut:"var(--color-export)",evuIn:"var(--color-evu)",cp0:"var(--color-cp0)",cp1:"var(--color-cp1)",cp2:"var(--color-cp2)",cp3:"var(--color-cp3)",sh1:"var(--color-sh1)",sh2:"var(--color-sh2)",sh3:"var(--color-sh3)",sh4:"var(--color-sh4)",devices:"var(--color-devices)"};var s,r;const d=m.showAnimations?m.animationDuration:0,g=m.showAnimations?m.animationDelay:0,u=p(()=>{const I=ce("g#pgUsageGraph");y.graphMode=="month"||y.graphMode=="year"?B(I):C(I),I.selectAll(".axis").remove();const $=I.append("g").attr("class","axis");return $.call(z.value),$.selectAll(".tick").attr("font-size",12).attr("color","var(--color-axis)"),m.showGrid?$.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):$.selectAll(".tick line").attr("stroke","var(--color-bg)"),$.select(".domain").attr("stroke","var(--color-bg)"),"pgUsageGraph.vue"}),h=p(()=>ka().value((I,$)=>I[$]??0).keys(P.value)),c=p(()=>h.value(y.data)),k=p(()=>Re().range([e.height+10,2*e.height]).domain(y.graphMode=="year"?[0,Math.ceil(E.value[1]*10)/10]:[0,Math.ceil(E.value[1])])),P=p(()=>{if(y.graphMode!="today"&&y.graphMode!="day"&&y.graphMode!="live")return t.value[e.stackOrder];{const I=t.value[e.stackOrder].slice(),$=I.indexOf("charging");I.splice($,1);const D=/cp\d+/;let A=[];return y.data.length>0&&(A=Object.keys(y.data[0]).reduce((S,V)=>(V.match(D)&&S.push(V),S),[])),A.forEach((S,V)=>{var Y;I.splice($+V,0,S),o[S]=((Y=O[+S.slice(2)])==null?void 0:Y.color)??"black"}),I}}),E=p(()=>{let I=Le(y.data,$=>$.house+$.charging+$.batIn+$.devices+$.evuOut);return I[0]!=null&&I[1]!=null?(y.graphMode=="year"&&(I[0]=I[0]/1e3,I[1]=I[1]/1e3),I):[0,0]}),G=p(()=>y.graphMode=="month"||y.graphMode=="year"?-e.width-e.margin.right-22:-e.width),z=p(()=>pt(k.value).tickSizeInner(G.value).ticks(4).tickFormat(I=>(I==0?"":Math.round(I*10)/10).toLocaleString(void 0)));function C(I){const $=rt().x((A,S)=>Ve.value(y.data[S].date)).y(k.value(0)).curve(ot),D=rt().x((A,S)=>Ve.value(y.data[S].date)).y0(A=>k.value(A[0])).y1(A=>k.value(A[1])).curve(ot);m.showAnimations?lt?(I.selectAll("*").remove(),s=I.append("svg").attr("x",0).attr("width",e.width).selectAll(".usageareas").data(c.value).enter().append("path").attr("d",S=>$(S)).attr("fill",(S,V)=>o[P.value[V]]),s.transition().duration(300).delay(100).ease(dt).attr("d",S=>D(S)),la()):(I.selectAll("*").remove(),I.append("svg").attr("x",0).attr("width",e.width).selectAll(".usageareas").data(c.value).enter().append("path").attr("d",S=>D(S)).attr("fill",(S,V)=>o[P.value[V]])):(I.selectAll("*").remove(),I.append("svg").attr("x",0).attr("width",e.width).selectAll(".usageareas").data(c.value).enter().append("path").attr("d",S=>D(S)).attr("fill",(S,V)=>o[P.value[V]]))}function B(I){lt?(I.selectAll("*").remove(),r=I.selectAll(".usagebar").data(c.value).enter().append("g").attr("fill",($,D)=>o[t.value[e.stackOrder][D]]).selectAll("rect").data($=>$).enter().append("rect").attr("x",($,D)=>Ye.value(y.data[D].date)??0).attr("y",()=>k.value(0)).attr("height",0).attr("width",Ye.value.bandwidth()),r.transition().duration(d).delay(g).ease(dt).attr("y",$=>y.graphMode=="year"?k.value($[0]/1e3):k.value($[0])).attr("height",$=>y.graphMode=="year"?k.value($[1]/1e3)-k.value($[0]/1e3):k.value($[1])-k.value($[0])),la()):(I.selectAll("*").remove(),r=I.selectAll(".usagebar").data(c.value).enter().append("g").attr("fill",($,D)=>o[t.value[e.stackOrder][D]]).selectAll("rect").data($=>$).enter().append("rect").attr("x",($,D)=>Ye.value(y.data[D].date)??0).attr("y",$=>y.graphMode=="year"?k.value($[0]/1e3):k.value($[0])).attr("height",$=>y.graphMode=="year"?k.value($[1]/1e3)-k.value($[0]/1e3):k.value($[1])-k.value($[0])).attr("width",Ye.value.bandwidth()))}const q=p(()=>{const I=ce("g#pgUsageGraph");if(y.graphMode!="month"&&y.graphMode!="year"){Ve.value.range(Qe.value);const $=rt().x((D,A)=>Ve.value(y.data[A].date)).y0(D=>k.value(D[0])).y1(D=>k.value(D[1])).curve(ot);I.selectAll("path").attr("d",D=>D?$(D):"")}return"zoomed"});return(I,$)=>(l(),f("g",{id:"pgUsageGraph",origin:u.value,origin2:q.value,transform:"translate("+I.margin.left+","+I.margin.top+")"},null,8,mr))}}),vr=["width"],br=["transform"],yr=["width"],_r=["transform"],wr=["origin","origin2","transform"],kr=["origin","transform"],xr={key:0},Sr=["width","height"],$r={key:1},Mr=["y","width","height"],It=12,Pr=L({__name:"PgXAxis",props:{width:{},height:{},margin:{}},setup(a){const e=a,t=p(()=>ht(Ve.value).ticks(6).tickSizeInner(d.value).tickFormat(it("%H:%M"))),o=p(()=>Ja(Ve.value).ticks(6).tickSizeInner(d.value+3).tickFormat(it(""))),s=p(()=>ht(Ye.value).ticks(4).tickSizeInner(d.value).tickFormat(c=>c.toString())),r=p(()=>ht(Ye.value).ticks(4).tickSizeInner(d.value).tickFormat(()=>"")),d=p(()=>y.graphMode!=="month"&&y.graphMode!=="year"?m.showGrid?-(e.height/2-7):-10:0),g=p(()=>{let c=ce("g#PGXAxis"),k=ce("g#PgUnit");return c.selectAll("*").remove(),k.selectAll("*").remove(),y.graphMode=="month"||y.graphMode=="year"?c.call(s.value):c.call(t.value),c.selectAll(".tick > text").attr("fill",(P,E)=>E>=0||y.graphMode=="month"||y.graphMode=="year"?"var(--color-axis)":"var(--color-bg)").attr("font-size",It),m.showGrid?c.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):c.selectAll(".tick line").attr("stroke","var(--color-bg)"),c.select(".domain").attr("stroke","var(--color-bg)"),k.append("text").attr("x",0).attr("y",12).attr("fill","var(--color-axis)").attr("font-size",It).text(y.graphMode=="year"?"MW":"kW").attr("text-anchor","start"),"PGXAxis.vue"}),u=p(()=>{let c=ce("g#PGXAxis2");return c.selectAll("*").remove(),y.graphMode=="month"||y.graphMode=="year"?c.call(r.value):c.call(o.value),c.selectAll(".tick > text").attr("fill",(k,P)=>P>=0||y.graphMode=="month"||y.graphMode=="year"?"var(--color-axis)":"var(--color-bg)").attr("font-size",It),m.showGrid?(c.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"),c.select(".domain").attr("stroke","var(--color-bg)")):c.selectAll(".tick line").attr("stroke","var(--color-bg)"),c.select(".domain").attr("stroke","var(--color-bg)"),"PGXAxis2.vue"}),h=p(()=>{if(y.graphMode!="month"&&y.graphMode!="year"){const c=ce("g#PGXAxis"),k=ce("g#PGXAxis2");y.graphMode=="month"||y.graphMode=="year"?(Ye.value.range(Qe.value),c.call(s.value),k.call(r.value)):(Ve.value.range(Qe.value),c.call(t.value),k.call(o.value))}return"zoomed"});return(c,k)=>(l(),f(N,null,[(l(),f("svg",{x:"0",width:e.width},[n("g",{id:"PgUnit",transform:"translate(0,"+(c.height/2+9)+")"},null,8,br)],8,vr)),(l(),f("svg",{x:0,width:e.width+10},[n("g",{transform:"translate("+c.margin.left+","+c.margin.top+")"},[n("g",{id:"PGXAxis",class:"axis",origin:g.value,origin2:h.value,transform:"translate(0,"+(c.height/2-6)+")"},null,8,wr),n("g",{id:"PGXAxis2",class:"axis",origin:u.value,transform:"translate(0,"+(c.height/2+-6)+")"},null,8,kr),i(m).showGrid?(l(),f("g",xr,[n("rect",{x:"0",y:"0",width:c.width,height:c.height/2-10,fill:"none",stroke:"var(--color-grid)","stroke-width":"0.5"},null,8,Sr)])):w("",!0),i(m).showGrid?(l(),f("g",$r,[n("rect",{x:"0",y:c.height/2+10,width:c.width,height:c.height/2-10,fill:"none",stroke:"var(--color-grid)","stroke-width":"0.5"},null,8,Mr)])):w("",!0)],8,_r)],8,yr))],64))}}),Cr=["width"],Ir=["id",".origin","d"],Br=["id","d","stroke"],Vr=["x","y","text-anchor"],Bt=L({__name:"PgSoc",props:{width:{},height:{},margin:{},order:{}},setup(a){const e=a,t=p(()=>{let P=Le(y.data,E=>E.date);return P[0]&&P[1]?tt().domain(P).range([0,e.width]):tt().range([0,0])}),o=p(()=>Re().range([e.height-10,0]).domain([0,100])),s=p(()=>{let E=Ne().x(G=>t.value(G.date)).y(G=>o.value(e.order==2?G.batSoc:e.order==0?G["soc"+fe.value[0]]:G["soc"+fe.value[1]])??o.value(0))(y.data);return E||""}),r=p(()=>e.order),d=p(()=>{switch(e.order){case 2:return"Speicher";case 1:return X[fe.value[1]]!=null?X[fe.value[1]].name:"???";default:return X[fe.value[0]]!=null?X[fe.value[0]].name:"???"}}),g=p(()=>{switch(e.order){case 0:return"var(--color-cp1)";case 1:return"var(--color-cp2)";case 2:return"var(--color-battery)";default:return"red"}}),u=p(()=>{switch(e.order){case 0:return 3;case 1:return e.width-3;case 2:return e.width/2;default:return 0}}),h=p(()=>{if(y.data.length>0){let P;switch(e.order){case 0:return P=0,o.value(y.data[P]["soc"+fe.value[0]]+2);case 1:return P=y.data.length-1,Math.max(12,o.value(y.data[P]["soc"+fe.value[1]]+2));case 2:return P=Math.round(y.data.length/2),o.value(y.data[P].batSoc+2);default:return 0}}else return 0}),c=p(()=>{switch(e.order){case 0:return"start";case 1:return"end";case 2:return"middle";default:return"middle"}}),k=p(()=>{if(y.graphMode!="month"&&y.graphMode!="year"){const P=ce("path#soc-"+r.value),E=ce("path#socdashes-"+r.value);t.value.range(Qe.value);const G=Ne().x(z=>t.value(z.date)).y(z=>o.value(e.order==2?z.batSoc:e.order==1?z["soc"+fe.value[0]]:z["soc"+fe.value[1]])??o.value(0));P.attr("d",G(y.data)),E.attr("d",G(y.data))}return"zoomed"});return(P,E)=>(l(),f("svg",{x:"0",width:e.width},[n("g",null,[n("path",{id:"soc-"+r.value,".origin":k.value,class:"soc-baseline",d:s.value,stroke:"var(--color-bg)","stroke-width":"1",fill:"none"},null,40,Ir),n("path",{id:"socdashes-"+r.value,class:"soc-dashes",d:s.value,stroke:g.value,"stroke-width":"1",style:{strokeDasharray:"3,3"},fill:"none"},null,8,Br),n("text",{class:"cpname",x:u.value,y:h.value,style:ae({fill:g.value,fontSize:10}),"text-anchor":c.value},x(d.value),13,Vr)])],8,Cr))}}),Lr=["transform"],Tr=L({__name:"PgSocAxis",props:{width:{},height:{},margin:{}},setup(a){const e=a,t=p(()=>Re().range([e.height-10,0]).domain([0,100])),o=p(()=>qa(t.value).ticks(5).tickFormat(r=>r.toString()+"%"));function s(){let r=ce("g#PGSocAxis");r.call(o.value),r.selectAll(".tick").attr("font-size",12),r.selectAll(".tick line").attr("stroke","var(--color-bg)"),r.select(".domain").attr("stroke","var(--color-bg)")}return Te(()=>{s()}),(r,d)=>(l(),f("g",{id:"PGSocAxis",class:"axis",transform:"translate("+(r.width-20)+",0)"},null,8,Lr))}}),Or={class:"d-flex align-self-top justify-content-center align-items-center"},Ar={class:"input-group input-group-xs"},Er={key:0,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},zr={class:"dropdown-menu"},Dr={class:"table optiontable"},Wr=["onClick"],Gr={key:1,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},Ur={class:"dropdown-menu"},jr={class:"table optiontable"},Fr=["onClick"],Nr={key:2,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},Hr={class:"dropdown-menu"},Rr={class:"table optiontable"},Jr=["onClick"],qr=L({__name:"DateInput",props:{modelValue:{type:Date,required:!0},mode:{type:String,default:"day"}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=new Date().getFullYear();let s=Array.from({length:10},(E,G)=>o-G);const r=Z(!0),d=e,g=[[0,1,2,3],[4,5,6,7],[8,9,10,11]],u=Z(t.modelValue.getDate()),h=Z(t.modelValue.getMonth()),c=Z(t.modelValue.getFullYear()),k=p(()=>{const G=new Date(c.value,h.value,1).getDay();let z=0;switch(h.value){case 1:case 3:case 5:case 7:case 8:case 10:case 12:z=31;break;case 4:case 6:case 9:case 11:z=30;break;case 2:Math.trunc(c.value/4)*4==c.value?z=29:z=28}let C=[],B=[0,0,0,0,0,0,0],q=G;for(let I=0;I(l(),f("span",Or,[n("div",Ar,[t.mode=="day"||t.mode=="today"?(l(),f("button",Er,x(u.value),1)):w("",!0),n("div",zr,[n("table",Dr,[(l(!0),f(N,null,K(k.value,(z,C)=>(l(),f("tr",{key:C,class:""},[(l(!0),f(N,null,K(z,(B,q)=>(l(),f("td",{key:q},[B!=0?(l(),f("span",{key:0,type:"button",class:"btn optionbutton",onClick:I=>u.value=B},x(B),9,Wr)):w("",!0)]))),128))]))),128))])]),t.mode!="year"&&t.mode!="live"?(l(),f("button",Gr,x(h.value+1),1)):w("",!0),n("div",Ur,[n("table",jr,[(l(),f(N,null,K(g,(z,C)=>n("tr",{key:C,class:""},[(l(!0),f(N,null,K(z,(B,q)=>(l(),f("td",{key:q,class:"p-0 m-0"},[n("span",{type:"button",class:"btn btn-sm optionbutton",onClick:I=>h.value=B},x(B+1),9,Fr)]))),128))])),64))])]),t.mode!="live"?(l(),f("button",Nr,x(c.value),1)):w("",!0),n("div",Hr,[n("table",Rr,[(l(!0),f(N,null,K(i(s),(z,C)=>(l(),f("tr",{key:C,class:""},[n("td",null,[n("span",{type:"button",class:"btn optionbutton",onClick:B=>c.value=z},x(z),9,Jr)])]))),128))])]),t.mode!="live"?(l(),f("button",{key:3,class:"button-outline-secondary",type:"button",onClick:P},G[0]||(G[0]=[n("span",{class:"fa-solid fa-circle-check"},null,-1)]))):w("",!0)])]))}}),H=(a,e)=>{const t=a.__vccOpts||a;for(const[o,s]of e)t[o]=s;return t},Yr=H(qr,[["__scopeId","data-v-98690e5d"]]),Qr={class:"btn-group m-0",role:"group","aria-label":"radiobar"},Zr=["id","value"],Xr=L({__name:"RadioBarInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=e,s=p({get(){return t.modelValue},set(g){o("update:modelValue",g)}});function r(g){let u=t.options[g].color?t.options[g].color:"var(--color-fg)";return t.options[g].active?{color:"var(--color-bg)",background:u}:{color:u}}function d(g){let u=g.target;for(;u&&!u.value&&u.parentElement;)u=u.parentElement;u.value&&(s.value=u.value)}return(g,u)=>(l(),f("div",null,[n("div",Qr,[(l(!0),f(N,null,K(g.options,(h,c)=>(l(),f("button",{id:"radio-"+h.value,key:c,class:R(["btn btn-outline-secondary btn-sm radiobutton mx-0 mb-0 px-2",h.value==s.value?"active":""]),value:h.value,style:ae(r(c)),onClick:d},[n("span",{style:ae(r(c))},[h.icon?(l(),f("i",{key:0,class:R(["fa-solid",h.icon])},null,2)):w("",!0),J(" "+x(h.text),1)],4)],14,Zr))),128))])]))}}),Ta=H(Xr,[["__scopeId","data-v-82ab6829"]]),Kr=L({__name:"PgSelector",props:{widgetid:{},showLeftButton:{type:Boolean},showRightButton:{type:Boolean},ignoreLive:{type:Boolean}},emits:["shiftLeft","shiftRight","shiftUp","shiftDown"],setup(a){const e=a,t=Z(0),o=p(()=>{if(y.waitForData)return"Lädt";switch(y.graphMode){case"live":return e.ignoreLive?"heute":`${me.duration} min`;case"today":return"heute";case"day":return ue.date.getDate()+"."+(ue.date.getMonth()+1)+".";case"month":return Fn(Ee.month-1,Ee.year);case"year":return qe.year.toString();default:return"???"}}),s=["live","today","day","month","year"],r=["Live","Heute","Tag","Monat","Jahr"],d=p({get(){return y.graphMode},set(q){switch(q){case"day":k();break;case"today":P();break;case"live":c();break;case"month":E();break;case"year":G()}}}),g=p(()=>{switch(y.graphMode){case"live":case"today":return ue.getDate();case"month":return Ee.getDate();default:return ue.getDate()}});function u(q){ua(q)}function h(){t.value+=1,t.value>2&&(t.value=0)}function c(){y.graphMode!="live"&&(y.graphMode="live",ve())}function k(){y.graphMode!="day"&&y.graphMode!="today"&&(y.graphMode="day",ve())}function P(){y.graphMode!="today"&&(y.graphMode="today",ua(new Date),ve())}function E(){y.graphMode!="month"&&(y.graphMode="month",ve())}function G(){y.graphMode!="year"&&(y.graphMode="year",ve())}const z=p(()=>t.value>0?{border:"1px solid var(--color-frame)"}:""),C=p(()=>t.value==1?"justify-content-between":"justify-content-end"),B=p(()=>t.value==1?"justify-content-between":"justify-content-center");return(q,I)=>(l(),f("div",{class:"d-flex flex-column justify-content-center pgselector rounded",style:ae(z.value)},[t.value==2?(l(),M(Ta,{key:0,id:"pgm2",modelValue:d.value,"onUpdate:modelValue":I[0]||(I[0]=$=>d.value=$),class:"m-2",options:s.map(($,D)=>({text:r[D],value:$,color:"var(--color-menu)",active:$==i(y).graphMode}))},null,8,["modelValue","options"])):w("",!0),t.value==1?(l(),f("span",{key:1,type:"button",class:R(["arrowButton d-flex align-self-center mb-3 mt-3",{disabled:!e.showLeftButton}]),onClick:I[1]||(I[1]=$=>q.$emit("shiftUp"))},I[6]||(I[6]=[n("i",{class:"fa-solid fa-xl fa-chevron-circle-up"},null,-1)]),2)):w("",!0),n("div",{class:R(["d-flex align-items-center",B.value])},[t.value==1?(l(),f("span",{key:0,type:"button",class:R(["p-1",{disabled:!e.showLeftButton}]),onClick:I[2]||(I[2]=$=>q.$emit("shiftLeft"))},I[7]||(I[7]=[n("span",{class:"fa-solid fa-xl fa-chevron-circle-left arrowButton"},null,-1)]),2)):w("",!0),t.value<2?(l(),f("span",{key:1,type:"button",class:"btn-outline-secondary p-2 px-3 badge rounded-pill datebadge",onClick:h},x(o.value),1)):w("",!0),t.value==2?(l(),M(Yr,{key:2,"model-value":g.value,mode:i(y).graphMode,"onUpdate:modelValue":u},null,8,["model-value","mode"])):w("",!0),t.value==1?(l(),f("span",{key:3,id:"graphRightButton",type:"button",class:R(["arrowButton fa-solid fa-xl fa-chevron-circle-right p-1",{disabled:!e.showRightButton}]),onClick:I[3]||(I[3]=$=>q.$emit("shiftRight"))},null,2)):w("",!0)],2),n("div",{class:R(["d-flex align-items-center",C.value])},[t.value==1?(l(),f("span",{key:0,type:"button",class:"p-1",onClick:h},I[8]||(I[8]=[n("span",{class:"fa-solid fa-xl fa-gear"},null,-1)]))):w("",!0),t.value==1?(l(),f("span",{key:1,id:"graphLeftButton",type:"button",class:R(["arrowButton fa-solid fa-xl fa-chevron-circle-down p-1",{disabled:!e.showLeftButton}]),onClick:I[4]||(I[4]=$=>q.$emit("shiftDown"))},null,2)):w("",!0),t.value>0?(l(),f("span",{key:2,type:"button",class:"p-1",onClick:I[5]||(I[5]=$=>t.value=0)},I[9]||(I[9]=[n("span",{class:"fa-solid fa-xl fa-circle-check"},null,-1)]))):w("",!0)],2)],4))}}),aa=H(Kr,[["__scopeId","data-v-d75ec1a4"]]),eo=["x","fill"],to=["x"],Ie=L({__name:"PgToolTipLine",props:{cat:{},name:{},indent:{},power:{},width:{}},setup(a){const e=a;return(t,o)=>(l(),f(N,null,[t.power>0?(l(),f("tspan",{key:0,x:t.indent,dy:"1.3em",class:R(t.name?"":"fas"),fill:i(ie)[t.cat].color},x(t.name?t.name:i(ie)[t.cat].icon)+"   ",11,eo)):w("",!0),n("tspan",{"text-anchor":"end",x:t.width-t.indent},[e.power>0?(l(),M(vt,{key:0,watt:t.power*1e3},null,8,["watt"])):w("",!0)],8,to)],64))}}),ao=["transform"],no=["width","height"],ro={"text-anchor":"start",x:"5",y:"20","font-size":"16",fill:"var(--color-fg)"},oo=["x"],so=L({__name:"PgToolTipItem",props:{entry:{},boxwidth:{},xScale:{type:[Function,Object]}},setup(a){const e=a,t=p(()=>Object.values(e.entry).filter(u=>u>0).length),o=p(()=>t.value*16),s=p(()=>Object.entries(e.entry).filter(([u,h])=>u.startsWith("pv")&&u.length>2&&h>0).map(([u,h])=>({power:h,name:Fe.value.get(u)?g(Fe.value.get(u)):"Wechselr.",id:u}))),r=p(()=>Object.entries(e.entry).filter(([u,h])=>u.startsWith("cp")&&u.length>2&&h>0).map(([u,h])=>({power:h,name:Fe.value.get(u)?g(Fe.value.get(u)):"Ladep.",id:u}))),d=p(()=>Object.entries(e.entry).filter(([u,h])=>u.startsWith("sh")&&u.length>2&&h>0).map(([u,h])=>({power:h,name:Fe.value.get(u)?g(Fe.value.get(u)):"Gerät",id:u})));function g(u){return u.length>6?u.slice(0,6)+"...":u}return(u,h)=>(l(),f("g",{class:"ttmessage",transform:"translate("+u.xScale(u.entry.date)+",0)"},[n("rect",{rx:"5",width:u.boxwidth,height:o.value,fill:"var(--color-bg)",opacity:"80%",stroke:"var(--color-menu)"},null,8,no),n("text",ro,[n("tspan",{"text-anchor":"middle",x:u.boxwidth/2,dy:"0em"},x(i(it)("%H:%M")(new Date(u.entry.date))),9,oo),h[0]||(h[0]=n("line",{y:"120",x1:"5",x2:"100",stroke:"var(--color-fg)","stroke-width":"1"},null,-1)),v(Ie,{cat:"evuIn",indent:5,power:u.entry.evuIn,width:u.boxwidth},null,8,["power","width"]),v(Ie,{cat:"batOut",indent:5,power:u.entry.batOut,width:u.boxwidth},null,8,["power","width"]),v(Ie,{cat:"pv",indent:5,power:u.entry.pv,width:u.boxwidth},null,8,["power","width"]),(l(!0),f(N,null,K(s.value,c=>(l(),M(Ie,{key:c.id,cat:"pv",name:c.name,power:c.power,indent:10,width:u.boxwidth},null,8,["name","power","width"]))),128)),v(Ie,{cat:"house",indent:5,power:u.entry.house,width:u.boxwidth},null,8,["power","width"]),v(Ie,{cat:"charging",indent:5,power:u.entry.charging,width:u.boxwidth},null,8,["power","width"]),(l(!0),f(N,null,K(r.value,c=>(l(),M(Ie,{key:c.id,cat:"charging",name:c.name,power:c.power,indent:10,width:u.boxwidth},null,8,["name","power","width"]))),128)),v(Ie,{cat:"devices",indent:5,power:u.entry.devices,width:u.boxwidth},null,8,["power","width"]),(l(!0),f(N,null,K(d.value,c=>(l(),M(Ie,{key:c.id,cat:"devices",name:c.name,power:c.power,indent:10,width:u.boxwidth},null,8,["name","power","width"]))),128)),v(Ie,{cat:"batIn",indent:5,power:u.entry.batIn,width:u.boxwidth},null,8,["power","width"]),v(Ie,{cat:"evuOut",indent:5,power:u.entry.evuOut,width:u.boxwidth},null,8,["power","width"])])],8,ao))}}),io=["origin","transform"],lo=["x","height","width"],ga=140,co=L({__name:"PgToolTips",props:{width:{},height:{},margin:{},data:{}},setup(a){const e=a,t=p(()=>{const r=Le(e.data,d=>new Date(d.date));return r[0]&&r[1]?jt().domain(r).range([0,e.width-e.margin.right]):tt().range([0,0])}),o=p(()=>{const r=Le(e.data,d=>new Date(d.date));return r[0]&&r[1]?jt().domain(r).range([0,e.width-e.margin.right-ga]):tt().range([0,0])}),s=p(()=>((y.graphMode=="day"||y.graphMode=="today")&&(t.value.range(Qe.value),ce("g#pgToolTips").selectAll("g.ttarea").select("rect").attr("x",(r,d)=>e.data.length>d?t.value(e.data[d].date):0).attr("width",e.data.length>0?(Qe.value[1]-Qe.value[0])/e.data.length:0)),"PgToolTips.vue:autozoom"));return(r,d)=>(l(),f("g",{id:"pgToolTips",origin:s.value,transform:"translate("+r.margin.left+","+r.margin.top+")"},[(l(!0),f(N,null,K(r.data,g=>(l(),f("g",{key:g.date,class:"ttarea"},[n("rect",{x:t.value(g.date),y:"0",height:r.height,class:"ttrect",width:i(y).data.length>0?r.width/i(y).data.length:0,opacity:"1%",fill:"var(--color-charging)"},null,8,lo),v(so,{entry:g,boxwidth:ga,"x-scale":o.value},null,8,["entry","x-scale"])]))),128))],8,io))}}),uo={class:"d-flex justify-content-end"},ho={id:"powergraphFigure",class:"p-0 m-0"},go=["viewBox"],po=["transform"],mo=["x","y"],fo=2,vo="Leistung / Ladestand ",bo=L({__name:"PowerGraph",setup(a){function e(){let d=m.usageStackOrder+1;d>fo&&(d=0),m.usageStackOrder=d,xn(!0)}function t(d){const g=[[0,j.top],[we,Me-j.top]];d.call(Qa().scaleExtent([1,8]).translateExtent([[0,0],[we,Me]]).extent(g).filter(s).on("zoom",o))}function o(d){Ia.value=d.transform}function s(d){return d.preventDefault(),(!d.ctrlKey||d.type==="wheel")&&!d.button}function r(){m.zoomedWidget=1,m.zoomGraph=!m.zoomGraph}return Te(()=>{const d=ce("svg#powergraph");t(d)}),(d,g)=>(l(),M(bt,{"full-width":!0},{title:_(()=>[J(x(vo))]),buttons:_(()=>[n("div",uo,[v(aa,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!1,onShiftLeft:i(Pt),onShiftRight:i(Xt),onShiftUp:i(Kt),onShiftDown:i(ea)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),i(De)?(l(),f("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:r},g[0]||(g[0]=[n("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)]))):w("",!0)])]),default:_(()=>[mt(n("figure",ho,[(l(),f("svg",{id:"powergraph",class:"powergraphSvg",viewBox:"0 0 "+i(we)+" "+i(Me)},[v(pr,{width:i(we)-i(j).left-2*i(j).right,height:(i(Me)-i(j).top-i(j).bottom)/2,margin:i(j)},null,8,["width","height","margin"]),v(fr,{width:i(we)-i(j).left-2*i(j).right,height:(i(Me)-i(j).top-i(j).bottom)/2,margin:i(j),"stack-order":i(m).usageStackOrder},null,8,["width","height","margin","stack-order"]),v(Pr,{width:i(we)-i(j).left-i(j).right,height:i(Me)-i(j).top-i(j).bottom,margin:i(j)},null,8,["width","height","margin"]),n("g",{transform:"translate("+i(j).left+","+i(j).top+")"},[(i(y).graphMode=="day"||i(y).graphMode=="today"||i(y).graphMode=="live")&&Object.values(i(X)).filter(u=>u.visible).length>0?(l(),M(Bt,{key:0,width:i(we)-i(j).left-2*i(j).right,height:(i(Me)-i(j).top-i(j).bottom)/2,margin:i(j),order:0},null,8,["width","height","margin"])):w("",!0),(i(y).graphMode=="day"||i(y).graphMode=="today"||i(y).graphMode=="live")&&Object.values(i(X)).filter(u=>u.visible).length>1?(l(),M(Bt,{key:1,width:i(we)-i(j).left-2*i(j).right,height:(i(Me)-i(j).top-i(j).bottom)/2,margin:i(j),order:1},null,8,["width","height","margin"])):w("",!0),(i(y).graphMode=="day"||i(y).graphMode=="today"||i(y).graphMode=="live")&&i(he).isBatteryConfigured?(l(),M(Bt,{key:2,width:i(we)-i(j).left-2*i(j).right,height:(i(Me)-i(j).top-i(j).bottom)/2,margin:i(j),order:2},null,8,["width","height","margin"])):w("",!0),i(y).graphMode=="day"||i(y).graphMode=="today"||i(y).graphMode=="live"?(l(),M(Tr,{key:3,width:i(we)-i(j).left-i(j).right,height:(i(Me)-i(j).top-i(j).bottom)/2,margin:i(j)},null,8,["width","height","margin"])):w("",!0)],8,po),i(y).graphMode=="day"||i(y).graphMode=="today"?(l(),M(co,{key:0,width:i(we)-i(j).left-i(j).right,height:i(Me)-i(j).top-i(j).bottom,margin:i(j),data:i(y).data},null,8,["width","height","margin","data"])):w("",!0),n("g",{id:"button",type:"button",onClick:e},[n("text",{x:i(we)-10,y:i(Me)-10,color:"var(--color-menu)","text-anchor":"end"},g[1]||(g[1]=[n("tspan",{fill:"var(--color-menu)",class:"fas fa-lg"},x(""),-1)]),8,mo)])],8,go))],512),[[Ya,i(y).data.length>0]])]),_:1}))}}),yo=H(bo,[["__scopeId","data-v-47f3d429"]]),_o=["id"],wo=["x","width","height","fill"],ko=["x","width","height"],xo=["x","y","width","height"],So=L({__name:"EmBar",props:{item:{},xScale:{},yScale:{},margin:{},height:{},barcount:{},autarchy:{},autText:{}},setup(a){const e=a,t=p(()=>e.height-e.yScale(e.item.energy)-e.margin.top-e.margin.bottom),o=p(()=>{let r=0;return e.item.energyPv>0&&(r=e.height-e.yScale(e.item.energyPv)-e.margin.top-e.margin.bottom),r>t.value&&(r=t.value),r}),s=p(()=>{let r=0;return e.item.energyBat>0&&(r=e.height-e.yScale(e.item.energyBat)-e.margin.top-e.margin.bottom),r>t.value&&(r=t.value),r});return(r,d)=>(l(),f("g",{id:"bar-"+e.item.name,transform:"scale(1,-1) translate (0,-445)"},[n("rect",{class:"bar",x:e.xScale(r.item.name),y:"0",width:e.xScale.bandwidth(),height:t.value,fill:r.item.color},null,8,wo),n("rect",{class:"bar",x:e.xScale(r.item.name)+e.xScale.bandwidth()/6,y:"0",width:e.xScale.bandwidth()*2/3,height:o.value,fill:"var(--color-pv)","fill-opacity":"66%"},null,8,ko),n("rect",{class:"bar",x:e.xScale(r.item.name)+e.xScale.bandwidth()/6,y:o.value,width:e.xScale.bandwidth()*2/3,height:s.value,fill:"var(--color-battery)","fill-opacity":"66%"},null,8,xo)],8,_o))}}),$o={id:"emBargraph"},Mo=L({__name:"EMBarGraph",props:{plotdata:{},xScale:{},yScale:{},margin:{},height:{}},setup(a){const e=a;function t(s){if(s.name=="PV"){const r=y.graphMode=="live"||y.graphMode=="day"?Q:T.items,g=(y.graphMode=="live"||y.graphMode=="day"?F:T.items).evuOut.energy,u=r.pv.energy;return Math.round((u-g)/u*100)}else if(s.name=="Netz"){const r=y.graphMode=="live"||y.graphMode=="day"?Q:T.items,d=y.graphMode=="live"||y.graphMode=="day"?F:T.items,g=d.evuOut.energy,u=r.evuIn.energy,h=r.pv.energy,c=r.batOut.energy,k=d.batIn.energy;return Math.round((h+c-g-k)/(h+c+u-g-k)*100)}else return s.pvPercentage}function o(s){return s.name=="PV"?"Eigen":"Aut"}return(s,r)=>(l(),f("g",$o,[(l(!0),f(N,null,K(e.plotdata,(d,g)=>(l(),f("g",{key:g},[v(So,{item:d,"x-scale":e.xScale,"y-scale":e.yScale,margin:e.margin,height:e.height,barcount:e.plotdata.length,"aut-text":o(d),autarchy:t(d)},null,8,["item","x-scale","y-scale","margin","height","barcount","aut-text","autarchy"])]))),128)),r[0]||(r[0]=n("animateTransform",{"attribute-name":"transform",type:"scale",from:"1 0",to:"1 1",begin:"0s",dur:"2s"},null,-1))]))}}),Po=["origin"],Co=L({__name:"EMYAxis",props:{yScale:{type:[Function,Object]},width:{},fontsize:{}},setup(a){const e=a,t=p(()=>pt(e.yScale).tickFormat(r=>s(r)).ticks(6).tickSizeInner(-e.width)),o=p(()=>{const r=ce("g#emYAxis");return r.attr("class","axis").call(t.value),r.append("text").attr("y",6).attr("dy","0.71em").attr("text-anchor","end").text("energy"),r.selectAll(".tick").attr("font-size",e.fontsize),m.showGrid?r.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):r.selectAll(".tick line").attr("stroke","var(--color-bg)"),r.select(".domain").attr("stroke","var(--color-bg)"),"emYAxis.vue"});function s(r){return r>0?y.graphMode=="year"?(r/1e6).toString():(r/1e3).toString():""}return(r,d)=>(l(),f("g",{id:"emYAxis",class:"axis",origin:o.value},null,8,Po))}}),Io=["id"],Bo=["x","y","font-size"],Vo=["x","y","font-size","fill"],Lo=["x","y","font-size","fill"],To=L({__name:"EmLabel",props:{item:{},xScale:{},yScale:{},margin:{},height:{},barcount:{},autarchy:{},autText:{}},setup(a){const e=a,t=p(()=>e.autarchy?e.yScale(e.item.energy)-25:e.yScale(e.item.energy)-10),o=p(()=>{let u=16,h=e.barcount;return h<=5?u=16:h==6?u=14:h>6&&h<=8?u=13:h==9?u=11:h==10?u=10:u=9,u}),s=p(()=>{let u=12,h=e.barcount;return h<=5?u=12:h==6?u=11:h>6&&h<=8||h==9?u=8:h==10?u=7:u=6,u});function r(u,h){return h.length>s.value?h.substring(0,s.value)+".":h}function d(){return e.autarchy?e.autText+": "+e.autarchy.toLocaleString(void 0)+" %":""}function g(){return"var(--color-pv)"}return(u,h)=>(l(),f("g",{id:"barlabel-"+e.item.name},[n("text",{x:e.xScale(u.item.name)+e.xScale.bandwidth()/2,y:t.value,"font-size":o.value,"text-anchor":"middle",fill:"var(--color-menu)"},x(i(He)(u.item.energy,i(m).decimalPlaces,!1)),9,Bo),n("text",{x:e.xScale(u.item.name)+e.xScale.bandwidth()/2,y:e.yScale(u.item.energy)-10,"font-size":o.value-2,"text-anchor":"middle",fill:g()},x(d()),9,Vo),n("text",{x:e.xScale(u.item.name)+e.xScale.bandwidth()/2,y:e.height-e.margin.bottom-5,"font-size":o.value,"text-anchor":"middle",fill:u.item.color,class:R(u.item.icon.length<=2?"fas":"")},x(r(u.item.name,u.item.icon)),11,Lo)],8,Io))}}),Oo={id:"emBarLabels"},Ao=L({__name:"EMLabels",props:{plotdata:{},xScale:{},yScale:{},height:{},margin:{}},setup(a){const e=a;function t(s){if(s.name=="PV"){const r=y.graphMode=="live"||y.graphMode=="today"?Q:T.items,g=(y.graphMode=="live"||y.graphMode=="today"?F:T.items).evuOut.energy,u=r.pv.energy;return Math.round((u-g)/u*100)}else if(s.name=="Netz"){const r=y.graphMode=="live"||y.graphMode=="today"?Q:T.items,d=y.graphMode=="live"||y.graphMode=="today"?F:T.items,g=d.evuOut.energy,u=r.evuIn.energy,h=r.pv.energy,c=r.batOut.energy,k=d.batIn.energy;return h+c-g-k>0?Math.round((h+c-g-k)/(h+c+u-g-k)*100):0}else return s.pvPercentage}function o(s){return s.name=="PV"?"Eigen":"Aut"}return(s,r)=>(l(),f("g",Oo,[(l(!0),f(N,null,K(e.plotdata,(d,g)=>(l(),f("g",{key:g},[v(To,{item:d,"x-scale":e.xScale,"y-scale":e.yScale,margin:e.margin,height:e.height,barcount:e.plotdata.length,"aut-text":o(d),autarchy:t(d)},null,8,["item","x-scale","y-scale","margin","height","barcount","aut-text","autarchy"])]))),128))]))}}),Eo={class:"d-flex justify-content-end"},zo={id:"energymeter",class:"p-0 m-0"},Do={viewBox:"0 0 500 500"},Wo=["transform"],Go=["x"],Uo={key:0},pa=500,Vt=500,ma=12,jo="Energie",Fo=L({__name:"EnergyMeter",setup(a){const e={top:25,bottom:30,left:25,right:0},t=p(()=>{let u=Object.values(Q),h=r.value;const c=T.items;let k=[];switch(m.debug&&d(),ct.value==!0&&(ct.value=!1),y.graphMode){default:case"live":case"today":k=u.concat(h);break;case"day":case"month":case"year":Object.values(c).length==0?Ze.value=!0:(Ze.value=!1,k=[c.evuIn,c.pv,c.evuOut,c.batOut,c.charging],Object.values(O).length>1&&Object.keys(O).forEach(P=>{c["cp"+P]&&k.push(c["cp"+P])}),k.push(c.devices),ne.forEach((P,E)=>{P.showInGraph&&c["sh"+E]&&k.push(c["sh"+E])}),k=k.concat([c.batIn,c.house]))}return k.filter(P=>P.energy&&P.energy>0)}),o=p(()=>wt().range([0,pa-e.left-e.right]).domain(t.value.map(u=>u.name)).padding(.4)),s=p(()=>Re().range([Vt-e.bottom-e.top,15]).domain([0,xa(t.value,u=>u.energy)])),r=p(()=>{const u=Object.values(O).length,h=[...ne.values()].filter(k=>k.configured).length;let c=F;return[...[c.evuOut,c.charging].concat(u>1?Object.values(O).map(k=>k.toPowerItem()):[]),...[c.devices].concat(h>1?[...ne.values()].filter(k=>k.configured&&k.showInGraph):[]).concat([F.batIn,F.house])]});function d(){console.debug(["source summary:",Q]),console.debug(["usage details:",r.value]),console.debug(["historic summary:",T])}function g(){m.zoomedWidget=2,m.zoomGraph=!m.zoomGraph}return(u,h)=>(l(),M(bt,{"full-width":!0},{title:_(()=>[J(x(jo))]),buttons:_(()=>[n("div",Eo,[v(aa,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!0,onShiftLeft:i(Pt),onShiftRight:i(Xt),onShiftUp:i(Kt),onShiftDown:i(ea)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),i(De)?(l(),f("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:g},h[0]||(h[0]=[n("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)]))):w("",!0)])]),default:_(()=>[n("figure",zo,[(l(),f("svg",Do,[n("g",{transform:"translate("+e.left+","+e.top+")"},[v(Mo,{plotdata:t.value,"x-scale":o.value,"y-scale":s.value,height:Vt,margin:e},null,8,["plotdata","x-scale","y-scale"]),v(Co,{"y-scale":s.value,width:pa,fontsize:ma,config:i(m)},null,8,["y-scale","config"]),n("text",{x:-e.left,y:"-15",fill:"var(--color-axis)","font-size":ma},x(i(y).graphMode=="year"?"MWh":"kWh"),9,Go),v(Ao,{plotdata:t.value,"x-scale":o.value,"y-scale":s.value,height:Vt,margin:e,config:i(m)},null,8,["plotdata","x-scale","y-scale","config"])],8,Wo)]))]),i(Ze)?(l(),f("p",Uo,"No data")):w("",!0)]),_:1}))}}),No=H(Fo,[["__scopeId","data-v-32c82102"]]),Ho=["id"],Ro=["y","width","fill"],Jo=["y","width"],qo=["y","x","width"],Yo=L({__name:"EnergyBar",props:{id:{},item:{},yScale:{},xScale:{},itemHeight:{}},setup(a){const e=a,t=p(()=>e.xScale(e.item.energy)),o=p(()=>{let r=0;return e.item.energyPv>0&&(r=e.xScale(e.item.energyPv)),r>t.value&&(r=t.value),r}),s=p(()=>{let r=0;return e.item.energyBat>0&&(r=e.xScale(e.item.energyBat)),r>t.value&&(r=t.value),r});return(r,d)=>(l(),f("g",{id:`bar-${e.item.name}`},[n("rect",{class:"bar",y:e.yScale(e.id)+e.itemHeight/2-4,x:"0",rx:"6",ry:"6",height:"12",width:t.value,fill:r.item.color},null,8,Ro),n("rect",{class:"bar",y:e.yScale(e.id)+e.itemHeight/2+10,x:"0",rx:"3",ry:"3",height:"7",width:o.value,fill:"var(--color-pv)","fill-opacity":"100%"},null,8,Jo),n("rect",{class:"bar",y:e.yScale(e.id)+e.itemHeight/2+10,x:o.value,rx:"3",ry:"3",height:"7",width:s.value,fill:"var(--color-battery)","fill-opacity":"100%"},null,8,qo)],8,Ho))}}),Qo={id:"emBargraph"},Zo=L({__name:"BarGraph",props:{plotdata:{},yscale:{},xscale:{},itemHeight:{}},setup(a){const e=a;return(t,o)=>(l(),f("g",Qo,[(l(!0),f(N,null,K(e.plotdata,(s,r)=>(l(),f("g",{key:r},[v(Yo,{id:r.toString(),item:s,"x-scale":e.xscale,"y-scale":e.yscale,"item-height":t.itemHeight},null,8,["id","item","x-scale","y-scale","item-height"])]))),128))]))}}),Xo=["id"],Ko=["y","x","fill"],es=["y","x"],ts=["y","x","font-size"],Lt=24,as=L({__name:"EnergyLabel",props:{id:{},item:{},yscale:{},margin:{},width:{},itemHeight:{},autarchy:{},autText:{}},setup(a){const e=a,t=p(()=>e.yscale(e.id)+e.itemHeight/3);function o(){return e.autarchy?e.autText+": "+e.autarchy.toLocaleString(void 0)+" %":""}function s(r){return r.length>14?r.slice(0,13)+"...":r}return(r,d)=>(l(),f("g",{id:"barlabel-"+e.id},[n("text",{y:t.value,x:e.margin.left,"font-size":Lt,"text-anchor":"start",fill:r.item.color,class:R(r.item.icon.length<=2?"fas":"")},x(s(e.item.icon)),11,Ko),n("text",{y:t.value,x:e.width/2+e.margin.left,"font-size":Lt,"text-anchor":"middle",fill:"var(--color-menu)"},x(i(He)(r.item.energy,i(m).decimalPlaces,!1)),9,es),n("text",{y:t.value,x:e.width-e.margin.right,"font-size":Lt-2,"text-anchor":"end",fill:"var(--color-pv)"},x(o()),9,ts)],8,Xo))}}),ns={id:"emBarLabels"},rs=L({__name:"EnergyLabels",props:{plotdata:{},yscale:{},width:{},itemHeight:{},margin:{}},setup(a){const e=a;function t(s){if(s.name=="PV"){const r=y.graphMode=="live"||y.graphMode=="today"?Q:T.items,g=(y.graphMode=="live"||y.graphMode=="today"?F:T.items).evuOut.energy,u=r.pv.energy;return Math.round((u-g)/u*100)}else if(s.name=="Netz"){const r=y.graphMode=="live"||y.graphMode=="today"?Q:T.items,d=y.graphMode=="live"||y.graphMode=="today"?F:T.items,g=d.evuOut.energy,u=r.evuIn.energy,h=r.pv.energy,c=r.batOut.energy,k=d.batIn.energy;return h+c-g-k>0?Math.round((h+c-g-k)/(h+c+u-g-k)*100):0}else return s.pvPercentage}function o(s){return s.name=="PV"?"Eigen":"Aut"}return(s,r)=>(l(),f("g",ns,[(l(!0),f(N,null,K(e.plotdata,(d,g)=>(l(),f("g",{key:g},[v(as,{id:g.toString(),item:d,yscale:e.yscale,margin:e.margin,width:e.width,"item-height":s.itemHeight,"aut-text":o(d),autarchy:t(d)},null,8,["id","item","yscale","margin","width","item-height","aut-text","autarchy"])]))),128))]))}});class os{constructor(e){b(this,"id");b(this,"name","Speicher");b(this,"color","var(--color-battery)");b(this,"dailyYieldExport",0);b(this,"dailyYieldImport",0);b(this,"monthlyYieldExport",0);b(this,"monthlyYieldImport",0);b(this,"yearlyYieldExport",0);b(this,"yearlyYieldImport",0);b(this,"exported",0);b(this,"faultState",0);b(this,"faultStr","");b(this,"imported",0);b(this,"power",0);b(this,"soc",0);this.id=e}}class ss{constructor(){b(this,"dailyExport",0);b(this,"dailyImport",0);b(this,"exported",0);b(this,"imported",0);b(this,"power",0);b(this,"soc",0)}}ge(new ss);const pe=Z(new Map),Oa=a=>{pe.value.set(a,new os(a)),pe.value.get(a).color=ie["bat"+pe.value.size].color};function is(){pe.value=new Map}const ls={class:"d-flex justify-content-end"},cs={id:"energymeter",class:"p-0 m-0"},us=["viewBox"],ds=["transform"],hs=["x"],gs={key:0},fa=500,Tt=60,ps=12,ms="Energie",fs=L({__name:"EnergyMeter2",setup(a){const e={top:0,bottom:30,left:0,right:0},t=p(()=>o.value.length*Tt+e.top+e.bottom),o=p(()=>{let c=Object.values(Q),k=d.value;const P=T.items;let E=[];switch(m.debug&&u(),ct.value==!0&&(ct.value=!1),y.graphMode){default:case"live":case"today":E=g(c).concat(k);break;case"day":case"month":case"year":Object.values(P).length==0?Ze.value=!0:(Ze.value=!1,E=[P.evuIn,P.pv,P.evuOut,P.batOut,P.charging],Object.values(O).length>1&&Object.keys(O).forEach(G=>{P["cp"+G]&&E.push(P["cp"+G])}),E.push(P.devices),ne.forEach((G,z)=>{G.showInGraph&&P["sh"+z]&&E.push(P["sh"+z])}),E=E.concat([P.batIn,P.house]))}return E.filter(G=>G.energy&&G.energy>0)}),s=p(()=>Re().range([0,fa-e.left-e.right]).domain([0,xa(o.value,c=>c.energy)])),r=p(()=>wt().range([e.top,t.value-e.bottom]).domain(o.value.map((c,k)=>k.toString())).padding(.1)),d=p(()=>{const c=Object.values(O).length,k=[...ne.values()].filter(E=>E.configured).length;let P=F;return[...[P.evuOut,P.charging].concat(c>1?Object.values(O).map(E=>E.toPowerItem()):[]),...[P.devices].concat(k>1?[...ne.values()].filter(E=>E.configured&&E.showInGraph):[]).concat([F.batIn,F.house])]});function g(c){let k=0;return ke.value.size>1&&ke.value.forEach(P=>{c.splice(2+k++,0,{name:P.name,power:P.power,energy:P.energy,energyPv:0,energyBat:0,pvPercentage:0,color:P.color,icon:P.name,showInGraph:!0})}),pe.value.size>1&&pe.value.forEach(P=>{c.splice(3+k++,0,{name:P.name,power:P.power,energy:P.dailyYieldExport,energyPv:0,energyBat:0,pvPercentage:0,color:P.color,icon:P.name,showInGraph:!0})}),c}function u(){console.debug(["source summary:",Q]),console.debug(["usage details:",d.value]),console.debug(["historic summary:",T])}function h(){m.zoomedWidget=2,m.zoomGraph=!m.zoomGraph}return(c,k)=>(l(),M(bt,{"full-width":!0},{title:_(()=>[J(x(ms))]),buttons:_(()=>[n("div",ls,[v(aa,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!0,onShiftLeft:i(Pt),onShiftRight:i(Xt),onShiftUp:i(Kt),onShiftDown:i(ea)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),i(De)?(l(),f("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:h},k[0]||(k[0]=[n("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)]))):w("",!0)])]),default:_(()=>[n("figure",cs,[(l(),f("svg",{viewBox:"0 0 500 "+t.value},[n("g",{transform:"translate("+e.left+","+e.top+")"},[v(Zo,{plotdata:o.value,xscale:s.value,yscale:r.value,"item-height":Tt},null,8,["plotdata","xscale","yscale"]),n("text",{x:-e.left,y:"-15",fill:"var(--color-axis)","font-size":ps},x(i(y).graphMode=="year"?"MWh":"kWh"),9,hs),v(rs,{plotdata:o.value,yscale:r.value,width:fa,"item-height":Tt,margin:e},null,8,["plotdata","yscale"])],8,ds)],8,us))]),i(Ze)?(l(),f("p",gs,"No data")):w("",!0)]),_:1}))}}),vs=H(fs,[["__scopeId","data-v-63a4748e"]]),bs={class:"d-flex flex-column align-items-center justify-content-start infoitem"},ys=L({__name:"InfoItem",props:{heading:{},small:{type:Boolean}},setup(a){const e=a,t=p(()=>e.small?{"font-size":"var(--font-small)"}:{"font-size":"var(--font-small)"}),o=p(()=>e.small?{"font-size":"var(--font-small)"}:{"font-size":"var(--font-normal)"}),s=p(()=>e.small?"mt-0":"mt-1");return(r,d)=>(l(),f("span",bs,[n("span",{class:R(["d-flex heading",s.value]),style:ae(t.value)},x(e.heading),7),n("span",{class:"d-flex my-0 me-0 align-items-center content",style:ae(o.value)},[de(r.$slots,"default",{},void 0,!0)],4)]))}}),te=H(ys,[["__scopeId","data-v-f6af00e8"]]),_s={class:"d-flex justify-content-between align-items-center titlerow"},ws={class:"buttonarea d-flex float-right justify-content-end align-items-center"},ks={class:"contentrow grid-col-12"},xs=L({__name:"WbSubwidget",props:{titlecolor:{},fullwidth:{type:Boolean},small:{type:Boolean}},setup(a){const e=a,t=p(()=>{let s={"font-weight":"bold",color:"var(--color-fg)","font-size":"var(--font-normal)"};return e.titlecolor&&(s.color=e.titlecolor),e.small&&(s["font-size"]="var(--font-verysmall)"),s}),o=p(()=>e.fullwidth?"grid-col-12":"grid-col-4");return(s,r)=>(l(),f("div",{class:R(["wb-subwidget-noborder px-0 pe-1 my-0 pb-2",o.value])},[n("div",_s,[n("div",{class:"d-flex widgetname p-0 m-0",style:ae(t.value)},[de(s.$slots,"title",{},void 0,!0)],4),n("div",ws,[de(s.$slots,"buttons",{},void 0,!0)])]),n("div",ks,[de(s.$slots,"default",{},void 0,!0)])],2))}}),at=H(xs,[["__scopeId","data-v-2aa2b95f"]]),Ss={class:"grid-col-12 mt-0 mb-0 px-0 py-0 configitem"},$s={class:"titlecolumn m-0 p-0 d-flex justify-content-between align-items-baseline"},Ms={class:"d-flex justify-content-end align-items-baseline"},Ps={class:"d-flex align-items-center"},Cs={class:"d-flex"},Is={class:"d-flex justify-content-end m-0 p-0"},Bs={class:"ms-1 mb-2 p-0 pt-2 d-flex justify-content-stretch align-items-center contentrow"},Vs=L({__name:"ConfigItem",props:{title:{},infotext:{},icon:{},fullwidth:{type:Boolean}},setup(a){const e=a,t=Z(!1);function o(){t.value=!t.value}const s=p(()=>{let r={color:"var(--color-charging)"};return t.value&&(r.color="var(--color-battery)"),r});return(r,d)=>(l(),M(at,{fullwidth:!!r.fullwidth},{default:_(()=>[n("div",Ss,[n("div",$s,[n("span",Ms,[n("span",{class:"d-flex align-items-baseline m-0 p-0",onClick:o},[e.icon?(l(),f("i",{key:0,class:R(["fa-solid fa-sm m-0 p-0 me-2 item-icon",e.icon])},null,2)):w("",!0),J(" "+x(r.title),1)])]),n("span",Ps,[n("span",Cs,[e.infotext?(l(),f("i",{key:0,class:"fa-solid fa-sm fa-circle-question ms-4 me-2",style:ae(s.value),onClick:o},null,4)):w("",!0)]),n("span",Is,[de(r.$slots,"inline-item",{},void 0,!0)])])]),t.value?(l(),f("p",{key:0,class:"infotext shadow m-0 ps-2 mb-1 p-1",onClick:o},[d[0]||(d[0]=n("i",{class:"me-1 fa-solid fa-sm fa-circle-info"},null,-1)),J(" "+x(r.infotext),1)])):w("",!0),n("div",Bs,[de(r.$slots,"default",{},void 0,!0)])])]),_:3},8,["fullwidth"]))}}),U=H(Vs,[["__scopeId","data-v-25ab3fbb"]]),Ls={class:"d-flex flex-column rangeinput"},Ts={class:"d-flex flex-fill justify-content-between align-items-center"},Os={class:"d-flex flex-fill flex-column justify-content-center m-0 p-0"},As={key:0,id:"rangeIndicator",class:"rangeIndicator"},Es={viewBox:"0 0 100 2"},zs=["width"],Ds=["x","width"],Ws=["x","width"],Gs=["id","min","max","step"],Us={class:"d-flex justify-content-between align-items-center"},js={class:"minlabel ps-4"},Fs={class:"valuelabel"},Ns={class:"maxlabel pe-4"},Hs=L({__name:"RangeInput",props:{id:{},min:{},max:{},step:{},unit:{},decimals:{},showSubrange:{type:Boolean},subrangeMin:{},subrangeMax:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=t.decimals??0,s=e,r=p({get(){return Math.round(t.modelValue*Math.pow(10,o))/Math.pow(10,o)},set(k){s("update:modelValue",k)}});function d(){r.value>t.min&&(r.value=Math.round((r.value-t.step)*Math.pow(10,o))/Math.pow(10,o))}function g(){r.valueRe().domain([t.min,t.max]).range([0,100])),h=p(()=>u.value(t.subrangeMin?t.subrangeMin:0)),c=p(()=>t.subrangeMin&&t.subrangeMax?u.value(t.subrangeMax)-u.value(t.subrangeMin):0);return(k,P)=>(l(),f("span",Ls,[n("span",Ts,[n("span",{type:"button",class:"minusButton",onClick:d},P[1]||(P[1]=[n("i",{class:"fa fa-xl fa-minus-square me-2"},null,-1)])),n("div",Os,[t.showSubrange?(l(),f("figure",As,[(l(),f("svg",Es,[n("g",null,[n("rect",{class:"below",x:0,y:"0",width:h.value,height:"2",rx:"1",ry:"1",fill:"var(--color-evu)"},null,8,zs),n("rect",{class:"bar",x:h.value,y:"0",width:c.value,height:"2",rx:"1",ry:"1",fill:"var(--color-charging)"},null,8,Ds),n("rect",{class:"above",x:h.value+c.value,y:"0",width:h.value,height:"2",rx:"1",ry:"1",fill:"var(--color-pv)"},null,8,Ws)])]))])):w("",!0),mt(n("input",{id:k.id,"onUpdate:modelValue":P[0]||(P[0]=E=>r.value=E),type:"range",class:"form-range flex-fill",min:k.min,max:k.max,step:k.step},null,8,Gs),[[Za,r.value,void 0,{number:!0}]])]),n("span",{type:"button",class:"plusButton",onClick:g},P[2]||(P[2]=[n("i",{class:"fa fa-xl fa-plus-square ms-2"},null,-1)]))]),n("span",Us,[n("span",js,x(k.min),1),n("span",Fs,x(r.value)+" "+x(k.unit),1),n("span",Ns,x(k.max),1)])]))}}),_e=H(Hs,[["__scopeId","data-v-af945965"]]),Rs=["id","value"],Js=L({__name:"RadioInput2",props:{options:{},modelValue:{},columns:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=e,s=p({get(){return t.modelValue},set(g){o("update:modelValue",g)}});function r(g){const u=t.options[g][2]||"var(--color-fg)",h="var(--color-bg)";return t.options[g][1]==s.value?{color:h,background:t.options[g][2]||"var(--color-menu)"}:{color:u,background:h}}function d(g){let u=g.target;for(;u&&!u.value&&u.parentElement;)u=u.parentElement;u.value&&(typeof t.options[0][1]=="number"?s.value=Number(u.value):s.value=u.value)}return(g,u)=>(l(),f("div",{class:"buttongrid",style:ae({"grid-template-columns":"repeat("+(t.columns||3)+", 1fr)"})},[(l(!0),f(N,null,K(t.options,(h,c)=>(l(),f("button",{id:"radio-"+h[1],key:c,class:R(["btn btn-outline-secondary radiobutton me-0 mb-0 px-2",h[1]==s.value?"active":""]),value:h[1],style:ae(r(c)),onClick:d},[n("span",{style:ae(r(c))},[h[3]?(l(),f("i",{key:0,class:R(["fa-solid",h[3]])},null,2)):w("",!0),J(" "+x(h[0]),1)],4)],14,Rs))),128))],4))}}),xe=H(Js,[["__scopeId","data-v-88c9ea7a"]]),qs={class:"mt-2"},Ys={key:0},Qs=L({__name:"CPConfigInstant",props:{chargepoint:{}},setup(a){const t=Z(a.chargepoint),o=p({get(){return t.value.instantMaxEnergy/1e3},set(s){t.value.instantMaxEnergy=s*1e3}});return(s,r)=>(l(),f("div",qs,[r[5]||(r[5]=n("p",{class:"heading ms-1"},"Sofortladen:",-1)),v(U,{title:"Stromstärke",icon:"fa-bolt",fullwidth:!0},{default:_(()=>[v(_e,{id:"targetCurrent",modelValue:t.value.instantTargetCurrent,"onUpdate:modelValue":r[0]||(r[0]=d=>t.value.instantTargetCurrent=d),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),_:1}),v(U,{title:"Anzahl Phasen",icon:"fa-plug",fullwidth:!0},{default:_(()=>[v(xe,{modelValue:t.value.instantTargetPhases,"onUpdate:modelValue":r[1]||(r[1]=d=>t.value.instantTargetPhases=d),options:[["1",1],["Maximum",3],["Auto",0]]},null,8,["modelValue"])]),_:1}),t.value.instantChargeLimitMode!="none"?(l(),f("hr",Ys)):w("",!0),v(U,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:_(()=>[v(xe,{modelValue:t.value.instantChargeLimitMode,"onUpdate:modelValue":r[2]||(r[2]=d=>t.value.instantChargeLimitMode=d),options:i(qt).map(d=>[d.name,d.id])},null,8,["modelValue","options"])]),_:1}),t.value.instantChargeLimitMode=="soc"?(l(),M(U,{key:1,title:"Maximaler Ladestand",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[v(_e,{id:"maxSoc",modelValue:t.value.instantTargetSoc,"onUpdate:modelValue":r[3]||(r[3]=d=>t.value.instantTargetSoc=d),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):w("",!0),t.value.instantChargeLimitMode=="amount"?(l(),M(U,{key:2,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[v(_e,{id:"maxEnergy",modelValue:o.value,"onUpdate:modelValue":r[4]||(r[4]=d=>o.value=d),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):w("",!0)]))}}),Zs=H(Qs,[["__scopeId","data-v-e1b28964"]]),Xs={class:"form-check form-switch"},le=L({__name:"SwitchInput",props:{modelValue:{type:Boolean},onColor:{},offColor:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=e,s=p({get(){return t.modelValue},set(d){o("update:modelValue",d)}}),r=p(()=>s.value?{"background-color":"green"}:{"background-color":"white"});return(d,g)=>(l(),f("div",Xs,[mt(n("input",{"onUpdate:modelValue":g[0]||(g[0]=u=>s.value=u),class:"form-check-input",type:"checkbox",role:"switch",style:ae(r.value)},null,4),[[Sa,s.value]])]))}}),Ks={class:"pt-2 d-flex flex-column"},ei={class:"subconfigstack grid-col-12"},ti={key:0,class:"subconfig subgrid"},ai={key:0,class:"subconfigstack"},ni={class:"subconfig subgrid"},ri={class:"subconfig subgrid"},oi={class:"subconfig subgrid"},si=L({__name:"CPConfigPv",props:{chargepoint:{}},setup(a){const t=Z(a.chargepoint),o=p({get(){return t.value.pvMaxEnergy/1e3},set(d){t.value.pvMaxEnergy=d*1e3}}),s=p({get(){return t.value.pvMinCurrent>5},set(d){d?t.value.pvMinCurrent=6:t.value.pvMinCurrent=0}}),r=p({get(){return t.value.pvMinSoc>0},set(d){d?t.value.pvMinSoc=50:t.value.pvMinSoc=0}});return(d,g)=>(l(),f("div",Ks,[g[16]||(g[16]=n("div",{class:"heading ms-1"},"PV-Laden:",-1)),v(U,{title:"Minimaler Ladestrom",icon:"fa-bolt",infotext:i(Je).minpv,fullwidth:!0},{"inline-item":_(()=>[v(le,{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=u=>s.value=u)},null,8,["modelValue"])]),default:_(()=>[n("div",ei,[s.value?(l(),f("div",ti,[g[11]||(g[11]=n("span",{class:"subconfigtitle grid-col-1"},"Stärke:",-1)),v(_e,{id:"minCurrent",modelValue:t.value.pvMinCurrent,"onUpdate:modelValue":g[1]||(g[1]=u=>t.value.pvMinCurrent=u),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])])):w("",!0)])]),_:1},8,["infotext"]),v(U,{title:"Anzahl Phasen",icon:"fa-plug",fullwidth:!0},{default:_(()=>[v(xe,{modelValue:t.value.pvTargetPhases,"onUpdate:modelValue":g[2]||(g[2]=u=>t.value.pvTargetPhases=u),options:[["1",1],["Maximum",3],["Auto",0]]},null,8,["modelValue"])]),_:1}),v(U,{title:"Mindest-Ladestand",icon:"fa-battery-half",infotext:i(Je).minsoc,fullwidth:!0},{"inline-item":_(()=>[v(le,{modelValue:r.value,"onUpdate:modelValue":g[3]||(g[3]=u=>r.value=u),class:"grid-col-3"},null,8,["modelValue"])]),default:_(()=>[r.value?(l(),f("div",ai,[n("div",ni,[g[12]||(g[12]=n("span",{class:"subconfigtitle grid-col-1"},"SoC:",-1)),v(_e,{id:"minSoc",modelValue:t.value.pvMinSoc,"onUpdate:modelValue":g[4]||(g[4]=u=>t.value.pvMinSoc=u),class:"grid-col-2",min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),n("div",ri,[g[13]||(g[13]=n("span",{class:"subconfigtitle grid-col-1"},"Ladestrom:",-1)),v(_e,{id:"minSocCurrent",modelValue:t.value.pvMinSocCurrent,"onUpdate:modelValue":g[5]||(g[5]=u=>t.value.pvMinSocCurrent=u),class:"grid-col-2",min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),n("div",oi,[g[14]||(g[14]=n("span",{class:"subconfigtitle grid-col-1"},"Phasen:",-1)),v(xe,{modelValue:t.value.pvMinSocPhases,"onUpdate:modelValue":g[6]||(g[6]=u=>t.value.pvMinSocPhases=u),class:"grid-col-1",columns:2,options:[["1",1],["Maximum",3]]},null,8,["modelValue"])]),g[15]||(g[15]=n("hr",{class:"grid-col-3"},null,-1))])):w("",!0)]),_:1},8,["infotext"]),v(U,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:_(()=>[v(xe,{modelValue:t.value.pvChargeLimitMode,"onUpdate:modelValue":g[7]||(g[7]=u=>t.value.pvChargeLimitMode=u),options:i(qt).map(u=>[u.name,u.id])},null,8,["modelValue","options"])]),_:1}),t.value.pvChargeLimitMode=="soc"?(l(),M(U,{key:0,title:"Maximaler Ladestand",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[v(_e,{id:"maxSoc",modelValue:t.value.pvTargetSoc,"onUpdate:modelValue":g[8]||(g[8]=u=>t.value.pvTargetSoc=u),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):w("",!0),t.value.pvChargeLimitMode=="amount"?(l(),M(U,{key:1,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[v(_e,{id:"maxEnergy",modelValue:o.value,"onUpdate:modelValue":g[9]||(g[9]=u=>o.value=u),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):w("",!0),v(U,{title:"Einspeisegrenze beachten",icon:"fa-hand",fullwidth:!0},{"inline-item":_(()=>[v(le,{modelValue:t.value.pvFeedInLimit,"onUpdate:modelValue":g[10]||(g[10]=u=>t.value.pvFeedInLimit=u)},null,8,["modelValue"])]),_:1})]))}}),ii=H(si,[["__scopeId","data-v-2ce28649"]]),li={class:"plandetails d-flex flex-cloumn"},ci={class:"heading"},ui={key:0},di=L({__name:"ScheduleDetails",props:{plan:{}},emits:["close"],setup(a){const e=a,t=p(()=>e.plan.limit.selected=="soc"?`Lade bis ${e.plan.time} auf ${e.plan.limit.soc_scheduled}% (maximal ${e.plan.limit.soc_limit}% mit PV)`:e.plan.limit.selected=="amount"?`Energiemenge: ${He(e.plan.limit.amount)}`:"Keine Begrenzung"),o=p(()=>{let r="Wiederholung ";switch(e.plan.frequency.selected){case"daily":r+="täglich";break;case"once":r+=`einmal (${e.plan.frequency.once})`;break;case"weekly":r+="wöchentlich "+s.value;break;default:r+="unbekannt"}return r}),s=p(()=>{const r=["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"];let d="(";return e.plan.frequency.weekly.forEach((g,u)=>{g&&(d+=`${r[u]} `)}),d=d.trim(),d+=")",d});return(r,d)=>(l(),f("div",li,[d[1]||(d[1]=n("hr",null,null,-1)),n("span",ci,"Details für "+x(e.plan.name)+":",1),n("ul",null,[n("li",null,x(t.value),1),n("li",null,x(o.value),1),e.plan.et_active?(l(),f("li",ui,"Preisbasiert laden")):w("",!0)]),n("button",{class:"btn btn-outline-secondary btn-sm",onClick:d[0]||(d[0]=g=>r.$emit("close"))}," Ok ")]))}}),hi=H(di,[["__scopeId","data-v-2f5cb5c1"]]),gi={key:0,class:"table table-borderless"},pi={class:"tablecell left"},mi=["onClick"],fi={class:"tablecell left"},vi={class:"tablecell"},bi={class:"tablecell"},yi={class:"tablecell"},_i={class:"tablecell right"},wi={key:1,class:"ms-1"},ki={key:2},xi=L({__name:"CPConfigScheduled",props:{chargePoint:{}},setup(a){const e=Z(!1),t={daily:"Täglich",once:"Einmal",weekly:"Woche"},o=a,s=p(()=>{var u,h;return((h=(u=o.chargePoint)==null?void 0:u.chargeTemplate)==null?void 0:h.chargemode.scheduled_charging.plans)??[]});function r(u){return s.value[u].time}function d(u){return{color:s.value[u].active?"var(--color-switchGreen)":"var(--color-switchRed)"}}function g(u){o.chargePoint.chargeTemplate.chargemode.scheduled_charging.plans[u].active=!s.value[u].active,se(o.chargePoint.id)}return(u,h)=>(l(),f(N,null,[h[3]||(h[3]=n("p",{class:"heading ms-1 pt-2"},"Pläne für Zielladen:",-1)),s.value.length>0?(l(),f("table",gi,[h[2]||(h[2]=n("thead",null,[n("tr",null,[n("th",{class:"tableheader left"}),n("th",{class:"tableheader left"},"Plan"),n("th",{class:"tableheader"},"Zeit"),n("th",{class:"tableheader"},"Ziel"),n("th",{class:"tableheader"},"Wiederh."),n("th",{class:"tableheader right"})])],-1)),n("tbody",null,[(l(!0),f(N,null,K(s.value,(c,k)=>{var P;return l(),f("tr",{key:k,class:R(c.active?"text-bold":"text-normal")},[n("td",pi,[((P=o.chargePoint.chargeTemplate)==null?void 0:P.id)!=null?(l(),f("a",{key:0,onClick:E=>g(k)},[n("span",{class:R([c.active?"fa-toggle-on":"fa-toggle-off","fa"]),style:ae(d(k)),type:"button"},null,6)],8,mi)):w("",!0)]),n("td",fi,x(c.name),1),n("td",vi,x(r(k)),1),n("td",bi,x(c.limit.selected=="soc"?c.limit.soc_scheduled+"%":i(He)(c.limit.amount,0)),1),n("td",yi,x(t[c.frequency.selected]),1),n("td",_i,[n("i",{class:"me-1 fa-solid fa-sm fa-circle-info",onClick:h[0]||(h[0]=E=>e.value=!e.value)})])],2)}),128))])])):(l(),f("p",wi," Pläne für das Zielladen können in den Einstellungen des Ladeprofils angelegt werden . ")),e.value?(l(),f("div",ki,[(l(!0),f(N,null,K(s.value,c=>(l(),M(hi,{key:c.id,plan:c,onClose:h[1]||(h[1]=k=>e.value=!1)},null,8,["plan"]))),128))])):w("",!0)],64))}}),Si=H(xi,[["__scopeId","data-v-0ab816f2"]]),$i={class:"plandetails d-flex flex-cloumn"},Mi={class:"heading"},Pi=L({__name:"TimePlanDetails",props:{plan:{}},emits:["close"],setup(a){const e=a,t=p(()=>`Lade von ${e.plan.time[0]} bis ${e.plan.time[1]} mit ${e.plan.current}A`),o=p(()=>e.plan.limit.selected=="soc"?`Lade bis maximal ${e.plan.limit.soc}%`:e.plan.limit.selected=="amount"?`Lade maximal ${He(e.plan.limit.amount)}`:"Keine Begrenzung"),s=p(()=>{let d="Wiederholung ";switch(e.plan.frequency.selected){case"daily":d+="täglich";break;case"once":d+=`einmal (${e.plan.frequency.once})`;break;case"weekly":d+="wöchentlich "+r.value;break;default:d+="unbekannt"}return d}),r=p(()=>{const d=["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"];let g="(";return e.plan.frequency.weekly.forEach((u,h)=>{u&&(g+=`${d[h]} `)}),g=g.trim(),g+=")",g});return(d,g)=>(l(),f("div",$i,[g[1]||(g[1]=n("hr",null,null,-1)),n("span",Mi,"Details für "+x(e.plan.name)+":",1),n("ul",null,[n("li",null,x(t.value),1),n("li",null,x(o.value),1),n("li",null,x(s.value),1)]),n("button",{class:"btn btn-outline-secondary btn-sm",onClick:g[0]||(g[0]=u=>d.$emit("close"))}," Ok ")]))}}),Ci=H(Pi,[["__scopeId","data-v-eaa44cb2"]]),Ii={class:"table table-borderless"},Bi={class:"tablecell left"},Vi=["onClick"],Li={class:"tablecell"},Ti={class:"tablecell"},Oi={class:"tablecell"},Ai={class:"tablecell"},Ei={class:"tablecell right"},zi={key:0},Di=L({__name:"CPConfigTimed",props:{chargePoint:{}},setup(a){const e=a,t=Z(!1),o=e.chargePoint,s={daily:"Täglich",once:"Einmal",weekly:"Woche"},r=p(()=>{var u,h;return((h=(u=e.chargePoint)==null?void 0:u.chargeTemplate)==null?void 0:h.time_charging.plans)??[]});function d(u){return{color:r.value[u].active?"var(--color-switchGreen)":"var(--color-switchRed)"}}function g(u){e.chargePoint.chargeTemplate.time_charging.plans[u].active=!r.value[u].active,se(e.chargePoint.id)}return(u,h)=>(l(),f(N,null,[v(U,{title:"Zeitplan aktiv",icon:"fa-clock",fullwidth:!0},{"inline-item":_(()=>[v(le,{modelValue:i(o).timedCharging,"onUpdate:modelValue":h[0]||(h[0]=c=>i(o).timedCharging=c)},null,8,["modelValue"])]),_:1}),h[4]||(h[4]=n("p",{class:"heading ms-1 pt-2"},"Zeitpläne:",-1)),n("table",Ii,[h[3]||(h[3]=n("thead",null,[n("tr",null,[n("th",{class:"tableheader left"}),n("th",{class:"tableheader"},"Von"),n("th",{class:"tableheader"},"Bis"),n("th",{class:"tableheader"},"Strom"),n("th",{class:"tableheader"},"Wiederh."),n("th",{class:"tableheader right"})])],-1)),n("tbody",null,[(l(!0),f(N,null,K(r.value,(c,k)=>{var P;return l(),f("tr",{key:k,class:R(c.active?"text-bold":"text-normal")},[n("td",Bi,[((P=e.chargePoint.chargeTemplate)==null?void 0:P.id)!=null?(l(),f("span",{key:0,onClick:E=>g(k)},[n("span",{class:R([c.active?"fa-toggle-on":"fa-toggle-off","fa"]),style:ae(d(k)),type:"button"},null,6)],8,Vi)):w("",!0)]),n("td",Li,x(c.time[0]),1),n("td",Ti,x(c.time[1]),1),n("td",Oi,x(c.current)+" A",1),n("td",Ai,x(s[c.frequency.selected]),1),n("td",Ei,[n("i",{class:"me-1 fa-solid fa-sm fa-circle-info",onClick:h[1]||(h[1]=E=>t.value=!t.value)})])],2)}),128))])]),t.value?(l(),f("div",zi,[(l(!0),f(N,null,K(r.value,c=>(l(),M(Ci,{key:c.id,plan:c,onClose:h[2]||(h[2]=k=>t.value=!1)},null,8,["plan"]))),128))])):w("",!0)],64))}}),Wi=H(Di,[["__scopeId","data-v-c911e978"]]),Gi={class:"providername ms-1"},Ui={class:"container"},ji={id:"pricechart",class:"p-0 m-0"},Fi={viewBox:"0 0 400 300"},Ni=["id","origin","transform"],Hi={key:0,class:"p-3"},Ri={key:1,class:"d-flex justify-content-end"},Ji=["disabled"],nt=400,va=250,ba=12,qi=L({__name:"PriceChart",props:{chargepoint:{},globalview:{type:Boolean}},setup(a){const e=a;let t=e.chargepoint?Z(e.chargepoint.etMaxPrice):Z(0);const o=Z(!1),s=Z(e.chargepoint),r=p({get(){return t.value},set(W){t.value=W,o.value=!0}});function d(){s.value&&(O[s.value.id].etMaxPrice=r.value),o.value=!1}const g=Z(!1),u={top:0,bottom:15,left:20,right:5},h=p(()=>{let W=[];return oe.etPriceList.size>0&&oe.etPriceList.forEach((ee,Oe)=>{W.push([Oe,ee])}),W}),c=p(()=>h.value.length>1?(nt-u.left-u.right)/h.value.length-1:0),k=p(()=>o.value?{background:"var(--color-charging)"}:{background:"var(--color-menu)"}),P=p(()=>{let W=Le(h.value,ee=>ee[0]);return W[1]&&(W[1]=new Date(W[1]),W[1].setTime(W[1].getTime()+36e5)),tt().range([u.left,nt-u.right]).domain(W)}),E=p(()=>{let W=[0,0];return h.value.length>0?(W=Le(h.value,ee=>ee[1]),W[0]=Math.floor(W[0]-1),W[1]=Math.floor(W[1]+1)):W=[0,0],W}),G=p(()=>Re().range([va-u.bottom,0]).domain(E.value)),z=p(()=>{const W=Ne(),ee=[[u.left,G.value(r.value)],[nt-u.right,G.value(r.value)]];return W(ee)}),C=p(()=>{const W=Ne(),ee=[[u.left,G.value(m.lowerPriceBound)],[nt-u.right,G.value(m.lowerPriceBound)]];return W(ee)}),B=p(()=>{const W=Ne(),ee=[[u.left,G.value(m.upperPriceBound)],[nt-u.right,G.value(m.upperPriceBound)]];return W(ee)}),q=p(()=>{const W=Ne(),ee=[[u.left,G.value(0)],[nt-u.right,G.value(0)]];return W(ee)}),I=p(()=>ht(P.value).ticks(6).tickSize(5).tickFormat(it("%H:%M"))),$=p(()=>pt(G.value).ticks(E.value[1]-E.value[0]).tickSizeInner(-375).tickFormat(W=>W%5!=0?"":W.toString())),D=p(()=>{g.value==!0;const W=ce("g#"+A.value);W.selectAll("*").remove(),W.selectAll("bar").data(h.value).enter().append("g").append("rect").attr("class","bar").attr("x",Ue=>P.value(Ue[0])).attr("y",Ue=>G.value(Ue[1])).attr("width",c.value).attr("height",Ue=>G.value(E.value[0])-G.value(Ue[1])).attr("fill",Ue=>Ue[1]<=r.value?"var(--color-charging)":"var(--color-axis)");const Oe=W.append("g").attr("class","axis").call(I.value);Oe.attr("transform","translate(0,"+(va-u.bottom)+")"),Oe.selectAll(".tick").attr("font-size",ba).attr("color","var(--color-bg)"),Oe.selectAll(".tick line").attr("stroke","var(--color-fg)").attr("stroke-width","0.5"),Oe.select(".domain").attr("stroke","var(--color-bg");const yt=W.append("g").attr("class","axis").call($.value);return yt.attr("transform","translate("+u.left+",0)"),yt.selectAll(".tick").attr("font-size",ba).attr("color","var(--color-bg)"),yt.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",Ue=>Ue%5==0?"2":"0.5"),yt.select(".domain").attr("stroke","var(--color-bg)"),E.value[0]<0&&W.append("path").attr("d",q.value).attr("stroke","var(--color-fg)"),W.append("path").attr("d",C.value).attr("stroke","green"),W.append("path").attr("d",B.value).attr("stroke","red"),W.append("path").attr("d",z.value).attr("stroke","yellow"),"PriceChart.vue"}),A=p(()=>e.chargepoint?"priceChartCanvas"+e.chargepoint.id:"priceChartCanvasGlobal"),S=p(()=>{let W=[];return oe.etPriceList.forEach(ee=>{W.push(ee)}),W.sort((ee,Oe)=>ee-Oe)});function V(){let W=S.value[0];for(let ee of S.value){if(ee>=r.value)break;W=ee}r.value=W}function Y(){let W=S.value[0];for(let ee of S.value)if(ee>r.value){W=ee;break}else W=ee;r.value=W}return Te(()=>{g.value=!g.value}),(W,ee)=>(l(),f(N,null,[n("p",Gi,"Anbieter: "+x(i(oe).etProvider),1),ee[3]||(ee[3]=n("hr",null,null,-1)),n("div",Ui,[n("figure",ji,[(l(),f("svg",Fi,[n("g",{id:A.value,origin:D.value,transform:"translate("+u.top+","+u.right+")"},null,8,Ni)]))])]),W.chargepoint!=null?(l(),f("div",Hi,[v(_e,{id:"pricechart_local",modelValue:r.value,"onUpdate:modelValue":ee[0]||(ee[0]=Oe=>r.value=Oe),min:Math.floor(S.value[0]-1),max:Math.ceil(S.value[S.value.length-1]+1),step:.1,decimals:2,"show-subrange":!0,"subrange-min":S.value[0],"subrange-max":S.value[S.value.length-1],unit:"ct"},null,8,["modelValue","min","max","subrange-min","subrange-max"])])):w("",!0),n("div",{class:"d-flex justify-content-between px-3 pb-2 pt-0 mt-0"},[n("button",{type:"button",class:"btn btn-sm jumpbutton",onClick:V},ee[1]||(ee[1]=[n("i",{class:"fa fa-sm fa-arrow-left"},null,-1)])),n("button",{type:"button",class:"btn btn-sm jumpbutton",onClick:Y},ee[2]||(ee[2]=[n("i",{class:"fa fa-sm fa-arrow-right"},null,-1)]))]),W.chargepoint!=null?(l(),f("div",Ri,[n("span",{class:"me-3 pt-0",onClick:d},[n("button",{type:"button",class:"btn btn-secondary confirmButton",style:ae(k.value),disabled:!o.value}," Bestätigen ",12,Ji)])])):w("",!0)],64))}}),Aa=H(qi,[["__scopeId","data-v-28b81885"]]),Yi={class:"pt-2 d-flex flex-column"},Qi={class:"subconfigstack grid-col-12"},Zi={class:"subconfig subgrid"},Xi=L({__name:"CPConfigEco",props:{chargepoint:{}},setup(a){const t=Z(a.chargepoint),o=p({get(){return t.value.ecoMaxEnergy/1e3},set(s){t.value.ecoMaxEnergy=s*1e3}});return(s,r)=>(l(),f("div",Yi,[r[6]||(r[6]=n("div",{class:"heading ms-1"},"Eco-Laden:",-1)),i(oe).active?(l(),M(Aa,{key:0,chargepoint:t.value},null,8,["chargepoint"])):w("",!0),i(oe).active?(l(),M(U,{key:1,title:"Minimaler Ladestrom unter der Preisgrenze:",icon:"fa-bolt",fullwidth:!0},{default:_(()=>[n("div",Qi,[n("div",Zi,[r[5]||(r[5]=n("span",{class:"subconfigtitle grid-col-1"},"Stärke:",-1)),v(_e,{id:"minCurrent",modelValue:t.value.ecoMinCurrent,"onUpdate:modelValue":r[0]||(r[0]=d=>t.value.ecoMinCurrent=d),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])])])]),_:1})):w("",!0),v(U,{title:"Anzahl Phasen",icon:"fa-plug",fullwidth:!0},{default:_(()=>[v(xe,{modelValue:t.value.ecoTargetPhases,"onUpdate:modelValue":r[1]||(r[1]=d=>t.value.ecoTargetPhases=d),options:[["1",1],["Maximum",3],["Auto",0]]},null,8,["modelValue"])]),_:1}),v(U,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:_(()=>[v(xe,{modelValue:t.value.ecoChargeLimitMode,"onUpdate:modelValue":r[2]||(r[2]=d=>t.value.ecoChargeLimitMode=d),options:i(qt).map(d=>[d.name,d.id])},null,8,["modelValue","options"])]),_:1}),t.value.ecoChargeLimitMode=="soc"?(l(),M(U,{key:2,title:"Maximaler Ladestand",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[v(_e,{id:"maxSoc",modelValue:t.value.ecoTargetSoc,"onUpdate:modelValue":r[3]||(r[3]=d=>t.value.ecoTargetSoc=d),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):w("",!0),t.value.ecoChargeLimitMode=="amount"?(l(),M(U,{key:3,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[v(_e,{id:"maxEnergy",modelValue:o.value,"onUpdate:modelValue":r[4]||(r[4]=d=>o.value=d),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):w("",!0)]))}}),Ki=H(Xi,[["__scopeId","data-v-3ad56f95"]]),el={class:"settingsheader mt-2 ms-1"},tl=L({__name:"CPChargeConfig",props:{chargepoint:{}},emits:["closeConfig"],setup(a){const t=a.chargepoint;return(o,s)=>(l(),f(N,null,[n("p",el," Ladeeinstellungen für "+x(i(t).vehicleName)+": ",1),v(U,{title:"Lademodus",icon:"fa-charging-station",infotext:i(Je).chargemode,fullwidth:!0},{default:_(()=>[v(xe,{modelValue:i(t).chargeMode,"onUpdate:modelValue":s[0]||(s[0]=r=>i(t).chargeMode=r),columns:3,options:Object.keys(i(be)).map(r=>[i(be)[r].name,r,i(be)[r].color,i(be)[r].icon])},null,8,["modelValue","options"])]),_:1},8,["infotext"]),Object.values(i(X)).filter(r=>r.visible).length>1?(l(),M(U,{key:0,title:"Fahrzeug wechseln",icon:"fa-car",infotext:i(Je).vehicle,fullwidth:!0},{default:_(()=>[v(xe,{modelValue:i(t).connectedVehicle,"onUpdate:modelValue":s[1]||(s[1]=r=>i(t).connectedVehicle=r),modelModifiers:{number:!0},options:Object.values(i(X)).filter(r=>r.visible).map(r=>[r.name,r.id])},null,8,["modelValue","options"])]),_:1},8,["infotext"])):w("",!0),v(U,{title:"Sperren",icon:"fa-lock",infotext:i(Je).locked,fullwidth:!0},{"inline-item":_(()=>[v(le,{modelValue:i(t).isLocked,"onUpdate:modelValue":s[2]||(s[2]=r=>i(t).isLocked=r)},null,8,["modelValue"])]),_:1},8,["infotext"]),v(U,{title:"Priorität",icon:"fa-star",infotext:i(Je).priority,fullwidth:!0},{"inline-item":_(()=>[v(le,{modelValue:i(t).hasPriority,"onUpdate:modelValue":s[3]||(s[3]=r=>i(t).hasPriority=r)},null,8,["modelValue"])]),_:1},8,["infotext"]),v(U,{title:"Zeitplan",icon:"fa-clock",infotext:i(Je).timeplan,fullwidth:!0},{"inline-item":_(()=>[v(le,{modelValue:i(t).timedCharging,"onUpdate:modelValue":s[4]||(s[4]=r=>i(t).timedCharging=r)},null,8,["modelValue"])]),_:1},8,["infotext"]),i(he).isBatteryConfigured?(l(),M(U,{key:1,title:"PV-Priorität",icon:"fa-car-battery",infotext:i(Je).pvpriority,fullwidth:!0},{default:_(()=>[v(xe,{modelValue:i(he).pvBatteryPriority,"onUpdate:modelValue":s[5]||(s[5]=r=>i(he).pvBatteryPriority=r),options:i(cn)},null,8,["modelValue","options"])]),_:1},8,["infotext"])):w("",!0)],64))}}),al=H(tl,[["__scopeId","data-v-bf66e6b3"]]),nl={class:"status-string"},rl={style:{color:"red"}},ol={class:"m-0 mt-4 p-0 grid-col-12 tabarea"},sl={class:"nav nav-tabs nav-justified mx-1 mt-1",role:"tablist"},il=["data-bs-target"],ll=["data-bs-target"],cl=["data-bs-target"],ul=["data-bs-target"],dl=["data-bs-target"],hl=["data-bs-target"],gl={id:"settingsPanes",class:"tab-content mx-1 p-1 pb-3"},pl=["id"],ml=["id"],fl=["id"],vl=["id"],bl=["id"],yl=["id"],_l=L({__name:"CPChargeConfigPanel",props:{chargepoint:{}},emits:["closeConfig"],setup(a){const t=a.chargepoint,o=p(()=>{var r;return((r=t.chargeTemplate)==null?void 0:r.id)??0}),s=p(()=>t.id);return Te(()=>{}),(r,d)=>(l(),f(N,null,[v(U,{title:"Status",icon:"fa-info-circle",fullwidth:!0,class:"item"},{default:_(()=>[n("span",nl,x(i(t).stateStr),1)]),_:1}),i(t).faultState!=0?(l(),M(U,{key:0,title:"Fehler",class:"grid-col-12",icon:"fa-triangle-exclamation"},{default:_(()=>[n("span",rl,x(i(t).faultStr),1)]),_:1})):w("",!0),n("div",ol,[n("nav",sl,[n("a",{class:"nav-link active","data-bs-toggle":"tab","data-bs-target":"#chargeSettings"+s.value},d[0]||(d[0]=[n("i",{class:"fa-solid fa-charging-station"},null,-1)]),8,il),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#instantSettings"+s.value},d[1]||(d[1]=[n("i",{class:"fa-solid fa-lg fa-bolt"},null,-1)]),8,ll),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#pvSettings"+s.value},d[2]||(d[2]=[n("i",{class:"fa-solid fa-solar-panel me-1"},null,-1)]),8,cl),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#scheduledSettings"+s.value},d[3]||(d[3]=[n("i",{class:"fa-solid fa-bullseye me-1"},null,-1)]),8,ul),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#ecoSettings"+s.value},d[4]||(d[4]=[n("i",{class:"fa-solid fa-coins"},null,-1)]),8,dl),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#timedSettings"+s.value},d[5]||(d[5]=[n("i",{class:"fa-solid fa-clock"},null,-1)]),8,hl)]),n("div",gl,[n("div",{id:"chargeSettings"+s.value,class:"tab-pane active",role:"tabpanel","aria-labelledby":"instant-tab"},[v(al,{chargepoint:r.chargepoint},null,8,["chargepoint"])],8,pl),n("div",{id:"instantSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"instant-tab"},[v(Zs,{chargepoint:i(t),vehicles:i(X),"charge-templates":i(Ft)},null,8,["chargepoint","vehicles","charge-templates"])],8,ml),n("div",{id:"pvSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"pv-tab"},[v(ii,{chargepoint:i(t),vehicles:i(X),"charge-templates":i(Ft)},null,8,["chargepoint","vehicles","charge-templates"])],8,fl),n("div",{id:"scheduledSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"scheduled-tab"},[o.value!=null?(l(),M(Si,{key:0,"charge-point":i(t)},null,8,["charge-point"])):w("",!0)],8,vl),n("div",{id:"ecoSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"eco-tab"},[o.value!=null?(l(),M(Ki,{key:0,chargepoint:i(t)},null,8,["chargepoint"])):w("",!0)],8,bl),n("div",{id:"timedSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"scheduled-tab"},[o.value!=null?(l(),M(Wi,{key:0,"charge-point":i(t)},null,8,["charge-point"])):w("",!0)],8,yl)])])],64))}}),Ht=H(_l,[["__scopeId","data-v-6ffc2337"]]),wl={class:"d-flex justify-content-center align-items-center"},kl=L({__name:"BatterySymbol",props:{soc:{},color:{}},setup(a){const e=a,t=p(()=>e.soc<=12?"fa-battery-empty":e.soc<38?"fa-battery-quarter":e.soc<62?"fa-battery-half":e.soc<87?"fa-battery-three-quarters":"fa-battery-full"),o=p(()=>({color:e.color??"var(--color-menu)"}));return(s,r)=>(l(),f("span",wl,[n("i",{class:R(["fa me-1",t.value]),style:ae(o.value)},null,6),J(" "+x(Math.round(s.soc)+"%"),1)]))}}),Ct=H(kl,[["__scopeId","data-v-a68c844a"]]),We=L({__name:"FormatWattH",props:{wattH:{}},setup(a){const e=a,t=p(()=>He(e.wattH,m.decimalPlaces));return(o,s)=>(l(),f("span",null,x(t.value),1))}}),xl={class:"wb-widget p-0 m-0 shadow widgetWidth"},Sl={class:"py-4 px-3 d-flex justify-content-between align-items-center titlerow"},$l={class:"d-flex align-items-center widgetname p-0 m-0"},Ml={class:"buttonrea d-flex float-right justify-content-end align-items-center"},Pl={class:"grid12 pb-3 px-3"},Cl=L({__name:"WbWidgetFlex",props:{variableWidth:{type:Boolean},fullWidth:{type:Boolean}},setup(a){const e=a,t=p(()=>e.fullWidth?"col-12":e.variableWidth&&m.preferWideBoxes?"col-lg-6":"col-lg-4");return(o,s)=>(l(),f("div",{class:R(["p-2 m-0",t.value])},[n("div",xl,[n("div",Sl,[n("div",$l,[de(o.$slots,"title",{},()=>[s[0]||(s[0]=n("div",{class:"p-0"},"(title goes here)",-1))],!0),de(o.$slots,"subtitle",{},void 0,!0)]),n("div",Ml,[de(o.$slots,"buttons",{},void 0,!0)])]),n("div",Pl,[de(o.$slots,"default",{},void 0,!0)])])],2))}}),Ge=H(Cl,[["__scopeId","data-v-fb6ac7a4"]]),Il=L({__name:"WbBadge",props:{color:{},bgcolor:{}},setup(a){const e=a,t=p(()=>({color:e.color??"var(--color-bg)","background-color":e.bgcolor??"var(--color-menu)"}));return(o,s)=>(l(),f("span",{class:"pillWbBadge rounded-pill ms-2 px-2",style:ae(t.value)},[de(o.$slots,"default",{},void 0,!0)],4))}}),Ce=H(Il,[["__scopeId","data-v-36112fa3"]]),Bl={class:"d-flex justify-content-center align-items-center"},Vl={key:0,class:"WbBadge rounded-pill errorWbBadge ms-3"},Ll={key:0},Tl={key:1,class:"row m-0 mt-0 p-0"},Ol={class:"col m-0 p-0"},Al={key:0},El={class:"row"},zl={class:"col"},Dl={class:"carTitleLine d-flex justify-content-between align-items-center"},Wl={key:0,class:"me-1 fa-solid fa-xs fa-star ps-1"},Gl={key:1,class:"me-0 fa-solid fa-xs fa-clock ps-1"},Ul={key:0,class:"carSelector p-4 m-2"},jl={class:"grid12"},Fl={style:{color:"var(--color-charging)"}},Nl={style:{color:"var(--color-charging)"}},Hl={style:{color:"var(--color-charging)"}},Rl={class:"targetCurrent"},Jl={key:5,class:"socEditor rounded mt-2 d-flex flex-column align-items-center grid-col-12 grid-left"},ql={class:"d-flex justify-content-stretch align-items-center"},Yl={key:0,class:"fa-solid fa-sm fas fa-edit ms-2"},Ql=["id"],Zl=L({__name:"CPChargePoint",props:{chargepoint:{},fullWidth:{type:Boolean}},setup(a){const e=a,t=Z(e.chargepoint),o=Z(!1),s=p({get(){return e.chargepoint.chargeMode},set(S){console.log("set mode"),O[e.chargepoint.id].chargeMode=S}}),r=p(()=>(Math.round(e.chargepoint.current*10)/10).toLocaleString(void 0)+" A"),d=p(()=>(Math.round(e.chargepoint.realCurrent*10)/10).toLocaleString(void 0)+" A"),g=p(()=>{const S=e.chargepoint.rangeCharged,V=e.chargepoint.chargedSincePlugged,Y=e.chargepoint.dailyYield;return V>0?Math.round(S/V*Y).toString()+" "+e.chargepoint.rangeUnit:"0 km"}),u=p(()=>e.chargepoint.isLocked?"Gesperrt":e.chargepoint.isCharging?"Lädt":e.chargepoint.isPluggedIn?"Bereit":"Frei"),h=p(()=>e.chargepoint.isLocked?"var(--color-evu)":e.chargepoint.isCharging?"var(--color-charging)":e.chargepoint.isPluggedIn?"var(--color-battery)":"var(--color-axis)"),c=p(()=>{let S="";return e.chargepoint.isLocked?S="fa-lock":e.chargepoint.isCharging?S=" fa-bolt":e.chargepoint.isPluggedIn&&(S="fa-plug"),"fa "+S}),k=p(()=>{switch(e.chargepoint.chargeMode){case"stop":return{color:"var(--fg)"};default:return{color:be[e.chargepoint.chargeMode].color}}}),P=p(()=>e.chargepoint.soc),E=p(()=>({color:e.chargepoint.color})),G=p(()=>e.chargepoint.etMaxPrice>=+D.value?{color:"var(--color-charging)"}:{color:"var(--color-menu)"}),z=p(()=>e.chargepoint.soc<20?"var(--color-evu)":e.chargepoint.soc>=80?"var(--color-pv)":"var(--color-battery)"),C=Z(!1),B=Z(!1);function q(){ye("socUpdate",1,e.chargepoint.connectedVehicle),O[e.chargepoint.id].waitingForSoc=!0}function I(){ye("setSoc",$.value,e.chargepoint.connectedVehicle),B.value=!1}const $=p({get(){return e.chargepoint.soc},set(S){O[e.chargepoint.id].soc=S}}),D=p(()=>{const[S]=oe.etPriceList.values();return(Math.round(S*10)/10).toFixed(1)}),A=Z(!1);return(S,V)=>C.value?(l(),M(Ge,{key:1,"full-width":e.fullWidth},{title:_(()=>[n("span",{style:ae(E.value),onClick:V[11]||(V[11]=Y=>C.value=!C.value)},[V[21]||(V[21]=n("span",{class:"fas fa-gear"}," ",-1)),J(" Einstellungen "+x(e.chargepoint.name),1)],4)]),buttons:_(()=>[n("span",{class:"ms-2 pt-1",style:ae(k.value),onClick:V[12]||(V[12]=Y=>C.value=!C.value)},V[22]||(V[22]=[n("span",{class:"fa-solid fa-lg ps-1 fa-circle-check"},null,-1)]),4)]),default:_(()=>[S.chargepoint!=null?(l(),M(Ht,{key:0,chargepoint:S.chargepoint},null,8,["chargepoint"])):w("",!0),n("button",{type:"button",class:"close-config-button btn ms-2 pt-1",onClick:V[13]||(V[13]=Y=>C.value=!C.value)}," OK ")]),_:1},8,["full-width"])):(l(),M(bt,{key:0,"variable-width":!0,"full-width":e.fullWidth},{title:_(()=>[n("span",Bl,[n("span",{style:ae(E.value),onClick:V[0]||(V[0]=Y=>C.value=!C.value)},[V[14]||(V[14]=n("span",{class:"fa-solid fa-charging-station"}," ",-1)),J(" "+x(e.chargepoint.name),1)],4),t.value.faultState==2?(l(),f("span",Vl,"Fehler")):w("",!0)])]),buttons:_(()=>[n("span",{type:"button",class:"ms-2 ps-1 pt-1",style:ae(k.value),onClick:V[1]||(V[1]=Y=>C.value=!C.value)},V[15]||(V[15]=[n("span",{class:"fa-solid fa-lg ps-1 fa-ellipsis-vertical"},null,-1)]),4)]),footer:_(()=>[C.value?w("",!0):(l(),f("div",Al,[n("div",El,[n("div",zl,[n("div",Dl,[n("h3",{onClick:V[3]||(V[3]=Y=>o.value=!o.value)},[V[16]||(V[16]=n("i",{class:"fa-solid fa-sm fa-car me-2"},null,-1)),J(" "+x(S.chargepoint.vehicleName)+" ",1),n("span",{class:R(["fa-solid fa-xs me-2",o.value?"fa-caret-up":"fa-caret-down"])},null,2),S.chargepoint.hasPriority?(l(),f("span",Wl)):w("",!0),S.chargepoint.timedCharging?(l(),f("span",Gl)):w("",!0)]),S.chargepoint.isSocConfigured?(l(),M(Ce,{key:0,bgcolor:z.value},{default:_(()=>[v(Ct,{soc:P.value??0,color:"var(--color-bg)",class:"me-2"},null,8,["soc"]),S.chargepoint.isSocManual?(l(),f("i",{key:0,class:"fa-solid fa-sm fas fa-edit",style:{color:"var(--color-bg)"},onClick:V[4]||(V[4]=Y=>B.value=!B.value)})):w("",!0),S.chargepoint.isSocManual?w("",!0):(l(),f("i",{key:1,type:"button",class:R(["fa-solid fa-sm",S.chargepoint.waitingForSoc?"fa-spinner fa-spin":"fa-sync"]),onClick:q},null,2))]),_:1},8,["bgcolor"])):w("",!0)]),o.value?(l(),f("div",Ul,[V[17]||(V[17]=n("span",{class:"changeCarTitle mb-2"},"Fahrzeug wechseln:",-1)),v(xe,{modelValue:t.value.connectedVehicle,"onUpdate:modelValue":[V[5]||(V[5]=Y=>t.value.connectedVehicle=Y),V[6]||(V[6]=Y=>o.value=!1)],modelModifiers:{number:!0},options:Object.values(i(X)).filter(Y=>Y.visible).map(Y=>[Y.name,Y.id])},null,8,["modelValue","options"])])):w("",!0)])]),n("div",jl,[v(Ta,{id:"chargemode-"+S.chargepoint.name,modelValue:s.value,"onUpdate:modelValue":V[7]||(V[7]=Y=>s.value=Y),class:"chargemodes mt-3 mb-3",options:Object.keys(i(be)).map(Y=>({text:i(be)[Y].name,value:Y,color:i(be)[Y].color,icon:i(be)[Y].icon,active:i(be)[Y].mode==S.chargepoint.chargeMode}))},null,8,["id","modelValue","options"]),e.chargepoint.power>0?(l(),M(te,{key:0,heading:"Leistung:",class:"grid-col-3 grid-left mb-3"},{default:_(()=>[n("span",Fl,[v(vt,{watt:e.chargepoint.power},null,8,["watt"])])]),_:1})):w("",!0),e.chargepoint.power>0?(l(),M(te,{key:1,heading:"Strom:",class:"grid-col-3"},{default:_(()=>[n("span",Nl,x(d.value),1)]),_:1})):w("",!0),e.chargepoint.power>0?(l(),M(te,{key:2,heading:"Phasen:",class:"grid-col-3"},{default:_(()=>[n("span",Hl,x(e.chargepoint.phasesInUse),1)]),_:1})):w("",!0),e.chargepoint.power>0?(l(),M(te,{key:3,heading:"Sollstrom:",class:"grid-col-3 grid-right"},{default:_(()=>[n("span",Rl,x(r.value),1)]),_:1})):w("",!0),v(te,{heading:"letzte Ladung:",class:"grid-col-4 grid-left"},{default:_(()=>[v(We,{"watt-h":Math.max(S.chargepoint.chargedSincePlugged,0)},null,8,["watt-h"])]),_:1}),v(te,{heading:"gel. Reichw.:",class:"grid-col-4"},{default:_(()=>[J(x(g.value),1)]),_:1}),S.chargepoint.isSocConfigured?(l(),M(te,{key:4,heading:"Reichweite:",class:"grid-col-4 grid-right"},{default:_(()=>[J(x(i(X)[e.chargepoint.connectedVehicle]?Math.round(i(X)[e.chargepoint.connectedVehicle].range):0)+" km ",1)]),_:1})):w("",!0),B.value?(l(),f("div",Jl,[V[18]||(V[18]=n("span",{class:"d-flex m-1 p-0 socEditTitle"},"Ladestand einstellen:",-1)),n("span",ql,[n("span",null,[v(_e,{id:"manualSoc",modelValue:$.value,"onUpdate:modelValue":V[8]||(V[8]=Y=>$.value=Y),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])])]),n("span",{type:"button",class:"fa-solid d-flex fa-lg me-2 mb-3 align-self-end fa-circle-check",onClick:I})])):w("",!0),V[20]||(V[20]=n("hr",{class:"divider grid-col-12"},null,-1)),i(oe).active?(l(),M(te,{key:6,heading:"Strompreis:",class:"grid-col-4 grid-left"},{default:_(()=>[n("span",{style:ae(G.value)},x(D.value)+" ct ",5)]),_:1})):w("",!0),t.value.etActive?(l(),M(te,{key:7,heading:"max. Preis:",class:"grid-col-4"},{default:_(()=>[n("span",{type:"button",onClick:V[9]||(V[9]=Y=>A.value=!A.value)},[J(x(e.chargepoint.etActive?(Math.round(e.chargepoint.etMaxPrice*10)/10).toFixed(1)+" ct":"-")+" ",1),e.chargepoint.etActive?(l(),f("i",Yl)):w("",!0)])]),_:1})):w("",!0),A.value?(l(),f("div",{key:8,id:"priceChartInline"+e.chargepoint.id,class:"d-flex flex-column rounded priceEditor grid-col-12"},[i(X)[e.chargepoint.connectedVehicle]!=null?(l(),M(Aa,{key:0,chargepoint:e.chargepoint},null,8,["chargepoint"])):w("",!0),n("span",{class:"d-flex ms-2 my-4 pe-3 pt-1 d-flex align-self-end",style:ae(k.value),onClick:V[10]||(V[10]=Y=>A.value=!1)},V[19]||(V[19]=[n("span",{type:"button",class:"d-flex fa-solid fa-lg ps-1 fa-circle-check"},null,-1)]),4)],8,Ql)):w("",!0)])]))]),default:_(()=>[C.value?w("",!0):(l(),f("div",Ll,[n("div",{class:"grid12",onClick:V[2]||(V[2]=Y=>C.value=!C.value)},[v(te,{heading:"Status:",class:"grid-col-4 grid-left"},{default:_(()=>[n("span",{style:ae({color:h.value})},[n("i",{class:R(c.value)},null,2),J(" "+x(u.value),1)],4)]),_:1}),v(te,{heading:"Geladen:",class:"grid-col-4 grid-left"},{default:_(()=>[v(We,{"watt-h":S.chargepoint.dailyYield},null,8,["watt-h"])]),_:1})])])),C.value?(l(),f("div",Tl,[n("div",Ol,[S.chargepoint!=null?(l(),M(Ht,{key:0,chargepoint:S.chargepoint},null,8,["chargepoint"])):w("",!0)])])):w("",!0)]),_:1},8,["full-width"]))}}),Xl=H(Zl,[["__scopeId","data-v-8a217eeb"]]),Kl=["id"],ec={class:"modal-dialog modal-lg modal-fullscreen-lg-down"},tc={class:"modal-content"},ac={class:"modal-header"},nc={class:"modal-title"},rc={class:"modal-body",style:{"background-color":"var(--color-bg)"}},oc=L({__name:"ModalComponent",props:{modalId:{}},setup(a){const e=a;return Te(()=>{}),(t,o)=>(l(),f("div",{id:e.modalId,class:"modal fade"},[n("div",ec,[n("div",tc,[n("div",ac,[n("h3",nc,[de(t.$slots,"title",{},void 0,!0)]),o[0]||(o[0]=n("button",{type:"button",class:"btn-close buttonTextSize d-flex justify-content-center pt-3 pb-0","data-bs-dismiss":"modal"},[n("i",{class:"fa-solid fa-lg fa-rectangle-xmark m-0 p-0"})],-1))]),n("div",rc,[de(t.$slots,"default",{},void 0,!0),o[1]||(o[1]=n("button",{class:"btn btn-secondary float-end mt-3 ms-1","data-bs-dismiss":"modal"}," Schließen ",-1))])])])],8,Kl))}}),Ea=H(oc,[["__scopeId","data-v-eaefae30"]]),sc={class:"d-flex align-items-center"},ic={class:"cpname"},lc={class:"d-flex float-right justify-content-end align-items-center"},cc=["data-bs-target"],uc=["data-bs-target"],dc={class:"subgrid"},hc={key:0,class:"d-flex justify-content-center align-items-center vehiclestatus"},gc={class:"d-flex flex-column align-items-center px-0"},pc={class:"d-flex justify-content-center flex-wrap"},mc={class:"d-flex align-items-center"},fc={class:"badge phasesInUse rounded-pill"},vc={class:"d-flex flex-wrap justify-content-center chargeinfo"},bc={class:"me-1"},yc={key:0,class:"subgrid socEditRow m-0 p-0"},_c={class:"socEditor rounded mt-2 d-flex flex-column align-items-center grid-col-12"},wc={class:"d-flex justify-content-stretch align-items-center"},kc=L({__name:"CpsListItem2",props:{chargepoint:{}},setup(a){const e=a,t=Z(!1),o=p(()=>be[e.chargepoint.chargeMode].icon),s=p(()=>{let B="";return e.chargepoint.isLocked?B="fa-lock":e.chargepoint.isCharging?B=" fa-bolt":e.chargepoint.isPluggedIn&&(B="fa-plug"),"fa "+B}),r=p(()=>{let B="var(--color-axis)";return e.chargepoint.isLocked?B="var(--color-evu)":e.chargepoint.isCharging?B="var(--color-charging)":e.chargepoint.isPluggedIn&&(B="var(--color-battery)"),{color:B,border:`0.5px solid ${B} `}}),d=p(()=>{switch(e.chargepoint.chargeMode){case"stop":return{"background-color":"var(--color-input)"};default:return{"background-color":be[e.chargepoint.chargeMode].color}}}),g=p(()=>Pe(e.chargepoint.power,m.decimalPlaces)),u=p(()=>e.chargepoint.current+" A"),h=p(()=>e.chargepoint.phasesInUse),c=p(()=>e.chargepoint.dailyYield>0?He(e.chargepoint.dailyYield,m.decimalPlaces):"0 Wh"),k=p(()=>"("+Math.round(e.chargepoint.rangeCharged).toString()+" "+e.chargepoint.rangeUnit+")"),P=p(()=>be[e.chargepoint.chargeMode].name);function E(){ye("socUpdate",1,e.chargepoint.connectedVehicle),O[e.chargepoint.id].waitingForSoc=!0}function G(){ye("setSoc",z.value,e.chargepoint.connectedVehicle),t.value=!1}const z=p({get(){return e.chargepoint.soc},set(B){O[e.chargepoint.id].soc=B}}),C=p(()=>e.chargepoint.isLocked?"Gesperrt":e.chargepoint.isCharging?"Lädt":e.chargepoint.isPluggedIn?"Bereit":"Frei");return(B,q)=>(l(),f(N,null,[v(at,{titlecolor:B.chargepoint.color,fullwidth:!0,small:!0},{title:_(()=>[n("div",sc,[n("span",ic,x(B.chargepoint.name),1),n("span",{class:"badge rounded-pill statusbadge mx-2",style:ae(r.value)},[n("i",{class:R([s.value,"me-1"])},null,2),J(" "+x(C.value),1)],4)])]),buttons:_(()=>[n("div",lc,[n("span",{class:"badge rounded-pill modebadge mx-2",type:"button",style:ae(d.value),"data-bs-toggle":"modal","data-bs-target":"#cpsconfig-"+B.chargepoint.id},[n("i",{class:R(["fa me-1",o.value])},null,2),J(" "+x(P.value),1)],12,cc),n("span",{class:"fa-solid ms-2 fa-lg fa-edit ps-1",type:"button","data-bs-toggle":"modal","data-bs-target":"#cpsconfig-"+B.chargepoint.id},null,8,uc)])]),default:_(()=>[n("div",dc,[v(te,{heading:B.chargepoint.vehicleName,small:!0,class:"grid-left grid-col-4"},{default:_(()=>[B.chargepoint.isSocConfigured?(l(),f("span",hc,[B.chargepoint.soc?(l(),M(Ct,{key:0,class:"me-1",soc:B.chargepoint.soc},null,8,["soc"])):w("",!0),B.chargepoint.isSocConfigured&&B.chargepoint.isSocManual?(l(),f("i",{key:1,type:"button",class:"fa-solid fa-sm fas fa-edit",style:{color:"var(--color-menu)"},onClick:q[0]||(q[0]=I=>t.value=!t.value)})):w("",!0),B.chargepoint.isSocConfigured&&!B.chargepoint.isSocManual?(l(),f("i",{key:2,type:"button",class:R(["fa-solid fa-sm me-2",B.chargepoint.waitingForSoc?"fa-spinner fa-spin":"fa-sync"]),style:{color:"var(--color-menu)"},onClick:E},null,2)):w("",!0)])):w("",!0)]),_:1},8,["heading"]),v(te,{heading:"Parameter:",small:!0,class:"grid-col-4"},{default:_(()=>[n("div",gc,[n("span",pc,[n("span",null,x(g.value),1),n("span",mc,[n("span",fc,x(h.value),1),n("span",null,x(u.value),1)])])])]),_:1}),v(te,{heading:"Geladen:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[n("div",vc,[n("span",bc,x(c.value),1),n("span",null,x(k.value),1)])]),_:1})]),t.value?(l(),f("div",yc,[n("div",_c,[q[2]||(q[2]=n("span",{class:"d-flex m-1 p-0 socEditTitle"},"Ladestand einstellen:",-1)),n("span",wc,[n("span",null,[v(_e,{id:"manualSoc",modelValue:z.value,"onUpdate:modelValue":q[1]||(q[1]=I=>z.value=I),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])])]),n("span",{type:"button",class:"fa-solid d-flex fa-lg me-2 mb-3 align-self-end fa-circle-check",onClick:G})])])):w("",!0)]),_:1},8,["titlecolor"]),(l(),M(Xa,{to:"body"},[(l(),M(Ea,{key:B.chargepoint.id,"modal-id":"cpsconfig-"+B.chargepoint.id},{title:_(()=>[J(" Konfiguration: "+x(B.chargepoint.name),1)]),default:_(()=>[B.chargepoint!=null?(l(),M(Ht,{key:0,chargepoint:B.chargepoint},null,8,["chargepoint"])):w("",!0)]),_:1},8,["modal-id"]))]))],64))}}),xc=H(kc,[["__scopeId","data-v-ba15dbc4"]]),Sc=L({__name:"CpSimpleList2",setup(a){const e=p(()=>Object.values(O));return(t,o)=>(l(),M(Ge,{"variable-width":!0},{title:_(()=>o[0]||(o[0]=[n("span",{class:"fa-solid fa-charging-station"}," ",-1),J(" Ladepunkte ")])),buttons:_(()=>[i(oe).active?(l(),M(Ce,{key:0,bgcolor:"var(--color-menu)"},{default:_(()=>[J("Strompreis: "+x(i(oe).etCurrentPriceString),1)]),_:1})):w("",!0)]),default:_(()=>[(l(!0),f(N,null,K(e.value,(s,r)=>(l(),f("div",{key:r,class:"subgrid pb-2"},[v(xc,{chargepoint:s},null,8,["chargepoint"])]))),128))]),_:1}))}}),$c=H(Sc,[["__scopeId","data-v-b8c6b557"]]),Ot=L({__name:"ChargePointList",props:{id:{},compact:{type:Boolean}},setup(a){let e,t;const o=a,s=p(()=>{let h=Object.values(O);return u(),h}),r=p(()=>d.value+" "+g.value),d=p(()=>{switch(Object.values(O).length){case 0:return m.preferWideBoxes?"col-lg-6":"col-lg-4";case 1:return m.preferWideBoxes?"col-lg-6":"col-lg-4";case 2:return m.preferWideBoxes?"col-lg-12":"col-lg-8 ";default:return"col-lg-12"}}),g=p(()=>"swiper-chargepoints-"+o.id);function u(){let h=document.querySelector("."+g.value);if(h&&(t=h,e=t.swiper),e){let c="1";if(De.value)switch(Object.values(O).length){case 0:case 1:c="1";break;case 2:c="2";break;default:c="3"}t.setAttribute("slides-per-view",c),e.update()}}return Te(()=>{let h=document.querySelector("."+g.value);h&&(t=h,e=t.swiper),window.addEventListener("resize",u),window.document.addEventListener("visibilitychange",u)}),(h,c)=>(l(),f(N,null,[o.compact?w("",!0):(l(),f("swiper-container",{key:0,"space-between":0,"slides-per-view":1,pagination:{clickable:!0},class:R(["cplist m-0 p-0 d-flex align-items-stretch",r.value])},[(l(!0),f(N,null,K(s.value,k=>(l(),f("swiper-slide",{key:k.id},[n("div",{class:R([i(De)?"mb-0":"mb-5","d-flex align-items-stretch flex-fill"])},[v(Xl,{chargepoint:k,"full-width":!0},null,8,["chargepoint"])],2)]))),128))],2)),o.compact?(l(),M($c,{key:1})):w("",!0)],64))}}),Mc={class:"container-fluid p-0 m-0"},Pc={class:"row p-0 m-0"},Cc={class:"d-grid gap-2"},Ic=["onClick"],Bc={class:"col-md-4 p-1"},Vc={class:"d-grid gap-2"},Lc={key:0},Tc={class:"row justify-content-center m-1 p-0"},Oc={class:"col-lg-4 p-1 m-0"},Ac={class:"d-grid gap-2"},Ec={class:"col-lg-4 p-1 m-0"},zc={class:"d-grid gap-2"},Dc={class:"col-lg-4 p-1 m-0"},Wc={class:"d-grid gap-2"},Gc=L({__name:"BBSelect",props:{cpId:{}},setup(a){const e=a,t=[{mode:"instant_charging",name:"Sofort",color:"var(--color-charging)"},{mode:"pv_charging",name:"PV",color:"var(--color-pv)"},{mode:"scheduled_charging",name:"Zielladen",color:"var(--color-battery)"},{mode:"eco_charging",name:"Eco",color:"var(--color-devices)"},{mode:"stop",name:"Stop",color:"var(--color-axis)"}],o=p(()=>O[e.cpId]);function s(h){return h==o.value.chargeMode?"btn btn-success buttonTextSize":"btn btn-secondary buttonTextSize"}function r(h){return he.pvBatteryPriority==h?"btn-success":"btn-secondary"}function d(h){o.value.chargeMode=h}function g(h){o.value.isLocked=h}function u(h){he.pvBatteryPriority=h}return(h,c)=>(l(),f("div",Mc,[n("div",Pc,[(l(),f(N,null,K(t,(k,P)=>n("div",{key:P,class:"col-md-4 p-1"},[n("div",Cc,[n("button",{type:"button",class:R(s(k.mode)),style:{},onClick:E=>d(k.mode)},x(k.name),11,Ic)])])),64)),n("div",Bc,[n("div",Vc,[o.value.isLocked?(l(),f("button",{key:0,type:"button",class:"btn btn-outline-success buttonTextSize","data-bs-dismiss":"modal",onClick:c[0]||(c[0]=k=>g(!1))}," Entsperren ")):w("",!0),o.value.isLocked?w("",!0):(l(),f("button",{key:1,type:"button",class:"btn btn-outline-danger buttonTextSize","data-bs-dismiss":"modal",onClick:c[1]||(c[1]=k=>g(!0))}," Sperren "))])])]),i(he).isBatteryConfigured?(l(),f("div",Lc,[c[8]||(c[8]=n("hr",null,null,-1)),c[9]||(c[9]=n("div",{class:"row"},[n("div",{class:"col text-center"},"Vorrang im Lademodus PV-Laden:")],-1)),n("div",Tc,[n("div",Oc,[n("div",Ac,[n("button",{id:"evPriorityBtn",type:"button",class:R(["priorityModeBtn btn btn-secondary buttonTextSize",r("ev_mode")]),"data-dismiss":"modal",priority:"1",onClick:c[2]||(c[2]=k=>u("ev_mode"))},c[5]||(c[5]=[J(" EV "),n("span",{class:"fas fa-car ms-2"}," ",-1)]),2)])]),n("div",Ec,[n("div",zc,[n("button",{id:"batteryPriorityBtn",type:"button",class:R(["priorityModeBtn btn btn-secondary buttonTextSize",r("bat_mode")]),"data-dismiss":"modal",priority:"0",onClick:c[3]||(c[3]=k=>u("bat_mode"))},c[6]||(c[6]=[J(" Speicher "),n("span",{class:"fas fa-car-battery ms-2"}," ",-1)]),2)])]),n("div",Dc,[n("div",Wc,[n("button",{id:"minsocPriorityBtn",type:"button",class:R(["priorityModeBtn btn btn-secondary buttonTextSize",r("min_soc_bat_mode")]),"data-dismiss":"modal",priority:"0",onClick:c[4]||(c[4]=k=>u("min_soc_bat_mode"))},c[7]||(c[7]=[J(" MinSoc "),n("span",{class:"fas fa-battery-half"}," ",-1)]),2)])])])])):w("",!0)]))}}),Uc={class:"col-lg-4 p-0 m-0 mt-1"},jc={class:"d-grid gap-2"},Fc=["data-bs-target"],Nc={class:"m-0 p-0 d-flex justify-content-between align-items-center"},Hc={class:"mx-1 badge rounded-pill smallTextSize plugIndicator"},Rc={key:0,class:"ms-2"},Jc={class:"m-0 p-0"},qc={key:0,class:"ps-1"},Yc=L({__name:"BbChargeButton",props:{chargepoint:{}},setup(a){const e=a,t="chargeSelectModal"+e.chargepoint.id,o=p(()=>be[e.chargepoint.chargeMode].name),s=p(()=>{let c={background:"var(--color-menu)"};return e.chargepoint.isLocked?c.background="var(--color-evu)":e.chargepoint.isCharging?c.background="var(--color-charging)":e.chargepoint.isPluggedIn&&(c.background="var(--color-battery)"),c}),r=p(()=>{{let c={background:be[e.chargepoint.chargeMode].color,color:"white"};switch(e.chargepoint.chargeMode){case $e.instant_charging:e.chargepoint.isCharging&&!e.chargepoint.isLocked&&(c=h(c));break;case $e.stop:c.background="darkgrey",c.color="black";break;case $e.scheduled_charging:e.chargepoint.isPluggedIn&&!e.chargepoint.isCharging&&!e.chargepoint.isLocked&&(c=h(c));break}return c}}),d=p(()=>be[e.chargepoint.chargeMode].icon),g=p(()=>{switch(he.pvBatteryPriority){case"ev_mode":return"fa-car";case"bat_mode":return"fa-car-battery";case"min_soc_bat_mode":return"fa-battery-half";default:return console.log("default"),""}}),u=p(()=>{let c="fa-ellipsis";return e.chargepoint.isLocked?c="fa-lock":e.chargepoint.isCharging?c=" fa-bolt":e.chargepoint.isPluggedIn&&(c="fa-plug"),"fa "+c});function h(c){let k=c.color;return c.color=c.background,c.background=k,c}return(c,k)=>(l(),f("div",Uc,[n("div",jc,[n("button",{type:"button",class:"btn mx-1 mb-0 p-1 mediumTextSize chargeButton shadow",style:ae(s.value),"data-bs-toggle":"modal","data-bs-target":"#"+t},[n("div",Nc,[n("span",Hc,[n("i",{class:R(u.value)},null,2),c.chargepoint.isCharging?(l(),f("span",Rc,x(i(Pe)(c.chargepoint.power)),1)):w("",!0)]),n("span",Jc,x(c.chargepoint.name),1),n("span",{class:"mx-2 m-0 badge rounded-pill smallTextSize modeIndicator",style:ae(r.value)},[n("i",{class:R(["fa me-1",d.value])},null,2),J(" "+x(o.value)+" ",1),c.chargepoint.chargeMode==i($e).pv_charging&&i(he).isBatteryConfigured?(l(),f("span",qc,[k[0]||(k[0]=J(" ( ")),n("i",{class:R(["fa m-0",g.value])},null,2),k[1]||(k[1]=J(") "))])):w("",!0)],4)])],12,Fc)]),v(Ea,{"modal-id":t},{title:_(()=>[J(" Lademodus für "+x(c.chargepoint.vehicleName),1)]),default:_(()=>[v(Gc,{"cp-id":c.chargepoint.id},null,8,["cp-id"])]),_:1})]))}}),Qc=H(Yc,[["__scopeId","data-v-71bb7e5f"]]),Zc={class:"row p-0 mt-0 mb-1 m-0"},Xc={class:"col p-0 m-0"},Kc={class:"container-fluid p-0 m-0"},eu={class:"row p-0 m-0 d-flex justify-content-center align-items-center"},tu={key:0,class:"col time-display"},au=L({__name:"ButtonBar",setup(a){return(e,t)=>(l(),f("div",Zc,[n("div",Xc,[n("div",Kc,[n("div",eu,[i(m).showClock=="buttonbar"?(l(),f("span",tu,x(i(La)(i(Nt))),1)):w("",!0),(l(!0),f(N,null,K(i(O),(o,s)=>(l(),M(Qc,{key:s,chargepoint:o,"charge-point-count":Object.values(i(O)).length},null,8,["chargepoint","charge-point-count"]))),128))])])])]))}}),nu=H(au,[["__scopeId","data-v-791e4be0"]]),ru={class:"battery-title"},ou={class:"subgrid pt-1"},su=L({__name:"BLBattery",props:{bat:{}},setup(a){const e=a,t=p(()=>e.bat.power<0?`Liefert (${Pe(-e.bat.power)})`:e.bat.power>0?`Lädt (${Pe(e.bat.power)})`:"Bereit"),o=p(()=>e.bat.power<0?"var(--color-pv)":e.bat.power>0?"var(--color-battery)":"var(--color-menu)");return(s,r)=>(l(),M(at,{titlecolor:"var(--color-title)",fullwidth:!0},{title:_(()=>[n("span",ru,x(s.bat.name),1)]),buttons:_(()=>[v(Ce,{bgcolor:o.value},{default:_(()=>[J(x(t.value),1)]),_:1},8,["bgcolor"])]),default:_(()=>[n("div",ou,[v(te,{heading:"Ladestand:",small:!0,class:"grid-left grid-col-4"},{default:_(()=>[v(Ct,{soc:e.bat.soc},null,8,["soc"])]),_:1}),v(te,{heading:"Geladen:",small:!0,class:"grid-col-4"},{default:_(()=>[v(We,{"watt-h":e.bat.dailyYieldImport},null,8,["watt-h"])]),_:1}),v(te,{heading:"Geliefert:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[v(We,{"watt-h":e.bat.dailyYieldExport},null,8,["watt-h"])]),_:1})])]),_:1}))}}),iu=H(su,[["__scopeId","data-v-f7f825f7"]]),lu={class:"subgrid grid-12"},cu=L({__name:"BatteryList",setup(a){const e=p(()=>Q.batOut.power>0?`Liefert (${Pe(Q.batOut.power)})`:F.batIn.power>0?`Lädt (${Pe(F.batIn.power)})`:"Bereit:"),t=p(()=>Q.batOut.power>0?"var(--color-pv)":F.batIn.power>0?"var(--color-battery)":"var(--color-menu)"),o=p(()=>{let s=0;return pe.value.forEach(r=>{s+=r.dailyYieldImport}),s});return(s,r)=>i(he).isBatteryConfigured?(l(),M(Ge,{key:0,"variable-width":!0,"full-width":!1},{title:_(()=>r[0]||(r[0]=[n("span",{class:"fas fa-car-battery me-2",style:{color:"var(--color-battery)"}}," ",-1),n("span",null,"Speicher",-1)])),buttons:_(()=>[v(Ce,{bgcolor:t.value},{default:_(()=>[J(x(e.value),1)]),_:1},8,["bgcolor"])]),default:_(()=>[n("div",lu,[v(te,{heading:"Ladestand:",class:"grid-left grid-col-4"},{default:_(()=>[v(Ct,{color:"var(--color-battery)",soc:i(he).batterySoc},null,8,["soc"])]),_:1}),v(te,{heading:"Geladen:",class:"grid-col-4"},{default:_(()=>[n("span",null,x(i(He)(o.value)),1)]),_:1}),v(te,{heading:"Geliefert",class:"grid-right grid-col-4"},{default:_(()=>[n("span",null,x(i(He)(i(Q).batOut.energy)),1)]),_:1})]),(l(!0),f(N,null,K(i(pe),([d,g])=>(l(),M(iu,{key:d,bat:g,class:"px-0"},null,8,["bat"]))),128))]),_:1})):w("",!0)}}),At=H(cu,[["__scopeId","data-v-325bd635"]]),uu={class:"devicename"},du={class:"subgrid"},hu=L({__name:"SHListItem",props:{device:{}},setup(a){const e=a,t=p(()=>e.device.status=="on"?"fa-toggle-on fa-xl":e.device.status=="waiting"?"fa-spinner fa-spin":"fa-toggle-off fa-xl"),o=p(()=>{let g="var(--color-switchRed)";switch(e.device.status){case"on":g="var(--color-switchGreen)";break;case"detection":g="var(--color-switchBlue)";break;case"timeout":g="var(--color-switchWhite)";break;case"waiting":g="var(--color-menu)";break;default:g="var(--color-switchRed)"}return{color:g}});function s(){e.device.isAutomatic||(e.device.status=="on"?ye("shSwitchOn",0,e.device.id):ye("shSwitchOn",1,e.device.id),ne.get(e.device.id).status="waiting")}function r(){e.device.isAutomatic?ye("shSetManual",1,e.device.id):ye("shSetManual",0,e.device.id)}const d=p(()=>e.device.isAutomatic?"Auto":"Man");return(g,u)=>(l(),M(at,{titlecolor:g.device.color,fullwidth:!0},{title:_(()=>[n("span",uu,x(g.device.name),1)]),buttons:_(()=>[(l(!0),f(N,null,K(g.device.temp,(h,c)=>(l(),f("span",{key:c},[h<300?(l(),M(Ce,{key:0,bgcolor:"var(--color-battery)"},{default:_(()=>[n("span",null,x(i(Nn)(h)),1)]),_:2},1024)):w("",!0)]))),128)),e.device.canSwitch?(l(),f("span",{key:0,class:R([t.value,"fa-solid statusbutton mr-2 ms-2"]),style:ae(o.value),onClick:s},null,6)):w("",!0),e.device.canSwitch?(l(),M(Ce,{key:1,type:"button",onClick:r},{default:_(()=>[J(x(d.value),1)]),_:1})):w("",!0)]),default:_(()=>[n("div",du,[v(te,{heading:"Leistung:",small:!0,class:"grid-col-4 grid-left"},{default:_(()=>[v(vt,{watt:g.device.power},null,8,["watt"])]),_:1}),v(te,{heading:"Energie:",small:!0,class:"grid-col-4"},{default:_(()=>[v(We,{"watt-h":g.device.energy},null,8,["watt-h"])]),_:1}),v(te,{heading:"Laufzeit:",small:!0,class:"grid-col-4 grid-right"},{default:_(()=>[J(x(i(jn)(g.device.runningTime)),1)]),_:1})])]),_:1},8,["titlecolor"]))}}),gu=H(hu,[["__scopeId","data-v-20651ac6"]]),pu={class:"sh-title py-4"},mu=["id","onUpdate:modelValue","value"],fu=["for"],vu=3,bu=L({__name:"SmartHomeList",setup(a){const e=p(()=>De.value?t.value.reduce((d,g)=>{const u=d;let h=d[d.length-1];return h.length>=vu?d.push([g]):h.push(g),u},[[]]):[t.value]),t=p(()=>[...ne.values()].filter(d=>d.configured));function o(d){return"Geräte"+(De.value&&e.value.length>1?"("+(d+1)+")":"")}function s(){r.value=!r.value}const r=Z(!1);return(d,g)=>(l(),f(N,null,[(l(!0),f(N,null,K(e.value,(u,h)=>(l(),M(Ge,{key:h,"variable-width":!0},{title:_(()=>[n("span",{onClick:s},[g[0]||(g[0]=n("span",{class:"fas fa-plug me-2",style:{color:"var(--color-devices)"}}," ",-1)),n("span",pu,x(o(h)),1)])]),buttons:_(()=>[n("span",{class:"ms-2 pt-1",onClick:s},g[1]||(g[1]=[n("span",{class:"fa-solid fa-lg ps-1 fa-ellipsis-vertical"},null,-1)]))]),default:_(()=>[(l(!0),f(N,null,K(u,c=>(l(),M(gu,{key:c.id,device:c,class:"subgrid pb-2"},null,8,["device"]))),128))]),_:2},1024))),128)),r.value?(l(),M(Ge,{key:0},{title:_(()=>[n("span",{class:"smarthome",onClick:s},g[2]||(g[2]=[n("span",{class:"fas fa-gear"}," ",-1),J(" Einstellungen")]))]),buttons:_(()=>[n("span",{class:"ms-2 pt-1",onClick:s},g[3]||(g[3]=[n("span",{class:"fa-solid fa-lg ps-1 fa-circle-check"},null,-1)]))]),default:_(()=>[v(U,{title:"Im Energie-Graph anzeigen:",icon:"fa-chart-column",fullwidth:!0},{default:_(()=>[(l(!0),f(N,null,K(t.value,(u,h)=>(l(),f("div",{key:h},[mt(n("input",{id:"check"+h,"onUpdate:modelValue":c=>u.showInGraph=c,class:"form-check-input",type:"checkbox",value:u},null,8,mu),[[Sa,u.showInGraph]]),n("label",{class:"form-check-label px-2",for:"check"+h},x(u.name),9,fu)]))),128))]),_:1}),n("div",{class:"row p-0 m-0",onClick:s},g[4]||(g[4]=[n("div",{class:"col-12 mb-3 pe-3 mt-0"},[n("button",{class:"btn btn-sm btn-secondary float-end"},"Schließen")],-1)]))]),_:1})):w("",!0)],64))}}),Et=H(bu,[["__scopeId","data-v-5b5cf6b3"]]),yu={class:"countername"},_u={class:"subgrid pt-1"},wu=L({__name:"ClCounter",props:{counter:{}},setup(a){const e=a,t=p(()=>e.counter.power>0?"Bezug":"Export"),o=p(()=>e.counter.power>0?"var(--color-evu)":"var(--color-pv)");return(s,r)=>(l(),M(at,{titlecolor:"var(--color-title)",fullwidth:!0},{title:_(()=>[n("span",yu,x(s.counter.name),1)]),buttons:_(()=>[e.counter.power!=0?(l(),M(Ce,{key:0,bgcolor:o.value},{default:_(()=>[J(x(t.value),1)]),_:1},8,["bgcolor"])):w("",!0),v(Ce,{color:"var(--color-bg)"},{default:_(()=>[J(" ID: "+x(e.counter.id),1)]),_:1})]),default:_(()=>[n("div",_u,[v(te,{heading:"Leistung:",small:!0,class:"grid-left grid-col-4"},{default:_(()=>[v(vt,{watt:Math.abs(e.counter.power)},null,8,["watt"])]),_:1}),v(te,{heading:"Bezogen:",small:!0,class:"grid-col-4"},{default:_(()=>[v(We,{"watt-h":e.counter.energy_imported},null,8,["watt-h"])]),_:1}),v(te,{heading:"Exportiert:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[v(We,{"watt-h":e.counter.energy_exported},null,8,["watt-h"])]),_:1})])]),_:1}))}}),ku=H(wu,[["__scopeId","data-v-01dd8c4d"]]);class xu{constructor(e){b(this,"id");b(this,"name","Zähler");b(this,"power",0);b(this,"energy_imported",0);b(this,"energy_exported",0);b(this,"grid",!1);b(this,"type","counter");b(this,"color","var(--color-evu)");b(this,"energyPv",0);b(this,"energyBat",0);b(this,"pvPercentage",0);b(this,"icon","");this.id=e}}const Se=ge({});function Su(a,e){if(a in Se)console.info("Duplicate counter message: "+a);else switch(Se[a]=new xu(a),Se[a].type=e,e){case"counter":Se[a].color="var(--color-evu)";break;case"inverter":Se[a].color="var(--color-pv)";break;case"cp":Se[a].color="var(--color-charging)";break;case"bat":Se[a].color="var(--color-bat)";break}}const $u=L({__name:"CounterList",setup(a){return(e,t)=>(l(),M(Ge,{"variable-width":!0},{title:_(()=>t[0]||(t[0]=[n("span",{class:"fas fa-bolt me-2",style:{color:"var(--color-evu)"}}," ",-1),n("span",null,"Zähler",-1)])),default:_(()=>[(l(!0),f(N,null,K(i(Se),(o,s)=>(l(),f("div",{key:s,class:"subgrid pb-2"},[v(ku,{counter:o},null,8,["counter"])]))),128))]),_:1}))}}),zt=H($u,[["__scopeId","data-v-5f059284"]]),Mu={class:"vehiclename"},Pu={class:"subgrid"},Cu=L({__name:"VlVehicle",props:{vehicle:{}},setup(a){const e=a,t=p(()=>{let s="Unterwegs",r=e.vehicle.chargepoint;return r!=null&&(r.isCharging?s="Lädt ("+r.name+")":r.isPluggedIn&&(s="Bereit ("+r.name+")")),s}),o=p(()=>{let s=e.vehicle.chargepoint;return s!=null?s.isLocked?"var(--color-evu)":s.isCharging?"var(--color-charging)":s.isPluggedIn?"var(--color-battery)":"var(--color-axis)":"var(--color-axis)"});return(s,r)=>(l(),M(at,{titlecolor:"var(--color-title)",fullwidth:!0},{title:_(()=>[n("span",Mu,x(e.vehicle.name),1)]),default:_(()=>[n("div",Pu,[v(te,{heading:"Status:",small:!0,class:"grid-left grid-col-4"},{default:_(()=>[n("span",{style:ae({color:o.value}),class:"d-flex justify-content-center align-items-center status-string"},x(t.value),5)]),_:1}),v(te,{heading:"Ladestand:",small:!0,class:"grid-col-4"},{default:_(()=>[J(x(Math.round(e.vehicle.soc))+" % ",1)]),_:1}),v(te,{heading:"Reichweite:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[J(x(Math.round(e.vehicle.range))+" km ",1)]),_:1})])]),_:1}))}}),Iu=H(Cu,[["__scopeId","data-v-9e2cb63e"]]),Bu=L({__name:"VehicleList",setup(a){return(e,t)=>(l(),M(Ge,{"variable-width":!0},{title:_(()=>t[0]||(t[0]=[n("span",{class:"fas fa-car me-2",style:{color:"var(--color-charging)"}}," ",-1),n("span",null,"Fahrzeuge",-1)])),default:_(()=>[(l(!0),f(N,null,K(Object.values(i(X)).filter(o=>o.visible),(o,s)=>(l(),f("div",{key:s,class:"subgrid px-4"},[v(Iu,{vehicle:o},null,8,["vehicle"])]))),128))]),_:1}))}}),Dt=H(Bu,[["__scopeId","data-v-716be083"]]),Vu={class:"grapharea"},Lu={id:"pricechart",class:"p-1 m-0 pricefigure"},Tu={viewBox:"0 0 400 280"},Ou=["id","origin","transform"],ut=380,ya=250,Wt=12,Au=L({__name:"GlobalPriceChart",props:{id:{}},setup(a){const e=a,t=Z(!1),o={top:0,bottom:15,left:20,right:0},s=p(()=>{let C=[];return oe.etPriceList.size>0&&oe.etPriceList.forEach((B,q)=>{C.push([q,B])}),C}),r=p(()=>s.value.length>1?(ut-o.left-o.right)/s.value.length:0),d=p(()=>{let C=Le(s.value,B=>B[0]);return C[1]&&(C[1]=new Date(C[1]),C[1].setTime(C[1].getTime()+36e5)),tt().range([o.left,ut-o.right]).domain(C)}),g=p(()=>{let C=[0,0];return s.value.length>0&&(C=Le(s.value,B=>B[1]),C[0]=Math.floor(C[0])-1,C[1]=Math.floor(C[1])+1),C}),u=p(()=>Re().range([ya-o.bottom,0]).domain(g.value)),h=p(()=>{const C=Ne(),B=[[o.left,u.value(m.lowerPriceBound)],[ut-o.right,u.value(m.lowerPriceBound)]];return C(B)}),c=p(()=>{const C=Ne(),B=[[o.left,u.value(m.upperPriceBound)],[ut-o.right,u.value(m.upperPriceBound)]];return C(B)}),k=p(()=>{const C=Ne(),B=[[o.left,u.value(0)],[ut-o.right,u.value(0)]];return C(B)}),P=p(()=>ht(d.value).ticks(s.value.length).tickSize(5).tickSizeInner(-250).tickFormat(C=>C.getHours()%6==0?it("%H:%M")(C):"")),E=p(()=>pt(u.value).ticks(g.value[1]-g.value[0]).tickSize(0).tickSizeInner(-360).tickFormat(C=>C%5!=0?"":C.toString())),G=p(()=>{t.value==!0;const C=ce("g#"+z.value);C.selectAll("*").remove(),C.selectAll("bar").data(s.value).enter().append("g").append("rect").attr("class","bar").attr("x",S=>d.value(S[0])).attr("y",S=>u.value(S[1])).attr("width",r.value).attr("height",S=>u.value(g.value[0])-u.value(S[1])).attr("fill","var(--color-charging)");const q=C.append("g").attr("class","axis").call(P.value);q.attr("transform","translate(0,"+(ya-o.bottom)+")"),q.selectAll(".tick").attr("font-size",Wt).attr("color","var(--color-bg)"),q.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",S=>S.getHours()%6==0?"2":"0.5"),q.select(".domain").attr("stroke","var(--color-bg");const I=C.append("g").attr("class","axis").call(E.value);I.attr("transform","translate("+o.left+",0)"),I.selectAll(".tick").attr("font-size",Wt).attr("color","var(--color-bg)"),I.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",S=>S%5==0?"2":"0.5"),I.select(".domain").attr("stroke","var(--color-bg)"),g.value[0]<0&&C.append("path").attr("d",k.value).attr("stroke","var(--color-fg)"),C.append("path").attr("d",h.value).attr("stroke","green"),C.append("path").attr("d",c.value).attr("stroke","red");const $=C.selectAll("ttip").data(s.value).enter().append("g").attr("class","ttarea");$.append("rect").attr("x",S=>d.value(S[0])).attr("y",S=>u.value(S[1])).attr("height",S=>u.value(g.value[0])-u.value(S[1])).attr("class","ttrect").attr("width",r.value).attr("opacity","1%").attr("fill","var(--color-charging)");const D=$.append("g").attr("class","ttmessage").attr("transform",S=>"translate("+(d.value(S[0])-30+r.value/2)+","+(u.value(S[1])-16)+")");D.append("rect").attr("rx",5).attr("width","60").attr("height","30").attr("fill","var(--color-menu)");const A=D.append("text").attr("text-anchor","middle").attr("x",30).attr("y",12).attr("font-size",Wt).attr("fill","var(--color-bg)");return A.append("tspan").attr("x",30).attr("dy","0em").text(S=>it("%H:%M")(S[0])),A.append("tspan").attr("x",30).attr("dy","1.1em").text(S=>Math.round(S[1]*10)/10+" ct"),"PriceChart.vue"}),z=p(()=>"priceChartCanvas"+e.id);return Te(()=>{t.value=!t.value}),(C,B)=>(l(),M(Ge,{"variable-width":!0},{title:_(()=>B[0]||(B[0]=[n("span",{class:"fas fa-coins me-2",style:{color:"var(--color-battery)"}}," ",-1),n("span",null,"Strompreis",-1)])),buttons:_(()=>[i(oe).active?(l(),M(Ce,{key:0,bgcolor:"var(--color-charging)"},{default:_(()=>[J(x(i(oe).etCurrentPriceString),1)]),_:1})):w("",!0),i(oe).active?(l(),M(Ce,{key:1,bgcolor:"var(--color-menu)"},{default:_(()=>[J(x(i(oe).etProvider),1)]),_:1})):w("",!0)]),default:_(()=>[n("div",Vu,[n("figure",Lu,[(l(),f("svg",Tu,[n("g",{id:z.value,origin:G.value,transform:"translate("+o.top+","+o.left+") "},null,8,Ou)]))])])]),_:1}))}}),Gt=H(Au,[["__scopeId","data-v-578b98b5"]]),Eu={class:"subgrid pt-1"},zu=L({__name:"IlInverter",props:{inverter:{}},setup(a){const e=a,t=p(()=>({color:e.inverter.color}));return(o,s)=>(l(),M(at,{titlecolor:"var(--color-title)",fullwidth:!0},{title:_(()=>[n("span",{class:"invertername",style:ae(t.value)},x(o.inverter.name),5)]),buttons:_(()=>[e.inverter.power<0?(l(),M(Ce,{key:0,bgcolor:"var(--color-pv)"},{default:_(()=>[J(x(i(Pe)(-e.inverter.power)),1)]),_:1})):w("",!0)]),default:_(()=>[n("div",Eu,[v(te,{heading:"Heute:",small:!0,class:"grid-col-4 grid-left"},{default:_(()=>[v(We,{"watt-h":e.inverter.energy},null,8,["watt-h"])]),_:1}),v(te,{heading:"Monat:",small:!0,class:"grid-col-4"},{default:_(()=>[v(We,{"watt-h":e.inverter.energy_month},null,8,["watt-h"])]),_:1}),v(te,{heading:"Jahr:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[v(We,{"watt-h":e.inverter.energy_year},null,8,["watt-h"])]),_:1})])]),_:1}))}}),Du=H(zu,[["__scopeId","data-v-258d8f17"]]),Wu=L({__name:"InverterList",setup(a){return(e,t)=>(l(),M(Ge,{"variable-width":!0},{title:_(()=>t[0]||(t[0]=[n("span",{class:"fas fa-solar-panel me-2",style:{color:"var(--color-pv)"}}," ",-1),n("span",null,"Wechselrichter",-1)])),buttons:_(()=>[i(Q).pv.power>0?(l(),M(Ce,{key:0,bgcolor:"var(--color-pv)"},{default:_(()=>[J(x(i(Pe)(i(Q).pv.power)),1)]),_:1})):w("",!0)]),default:_(()=>[(l(!0),f(N,null,K(i(ke),([o,s])=>(l(),f("div",{key:o,class:"subgrid pb-2"},[v(Du,{inverter:s},null,8,["inverter"])]))),128))]),_:1}))}}),Ut=H(Wu,[["__scopeId","data-v-b7a71f81"]]),Gu={class:"row py-0 px-0 m-0"},Uu=["breakpoints"],ju=L({__name:"CarouselFix",setup(a){let e,t;const o=Z(!1),s=p(()=>o.value?{992:{slidesPerView:1,spaceBetween:0}}:{992:{slidesPerView:3,spaceBetween:0}});return Ka(()=>m.zoomGraph,r=>{if(e){let d=r?"1":"3";t.setAttribute("slides-per-view",d),e.activeIndex=m.zoomedWidget,e.update()}}),Te(()=>{let r=document.querySelector(".swiper-carousel");r&&(t=r,e=t.swiper)}),(r,d)=>(l(),f("div",Gu,[n("swiper-container",{"space-between":0,pagination:{clickable:!0},"slides-per-view":"1",class:"p-0 m-0 swiper-carousel",breakpoints:s.value},[n("swiper-slide",null,[n("div",{class:R([i(De)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[de(r.$slots,"item1",{},void 0,!0)],2)]),n("swiper-slide",null,[n("div",{class:R([i(De)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[de(r.$slots,"item2",{},void 0,!0)],2)]),n("swiper-slide",null,[n("div",{class:R([i(De)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[de(r.$slots,"item3",{},void 0,!0)],2)])],8,Uu)]))}}),Fu=H(ju,[["__scopeId","data-v-17424929"]]);function Nu(a,e){a=="openWB/graph/boolDisplayLiveGraph"?he.displayLiveGraph=+e==1:a.match(/^openwb\/graph\/alllivevaluesJson[1-9][0-9]*$/i)?Hu(a,e):a=="openWB/graph/lastlivevaluesJson"?Ru(a,e):a=="openWB/graph/config/duration"&&(me.duration=JSON.parse(e))}function Hu(a,e){if(!me.initialized){let t=[];const o=e.toString().split(` -`);o.length>1?t=o.map(d=>JSON.parse(d)):t=[];const s=a.match(/(\d+)$/g),r=s?s[0]:"";r!=""&&typeof me.rawDataPacks[+r-1]>"u"&&(me.rawDataPacks[+r-1]=t,me.initCounter++)}if(me.initCounter==16){const t=[];me.unsubscribeRefresh(),me.initialized=!0,me.rawDataPacks.forEach(o=>{o.forEach(s=>{const r=za(s);t.push(r)})}),ft(t),me.subscribeUpdates()}}function Ru(a,e){const t=JSON.parse(e),o=za(t);me.graphRefreshCounter++,ft(y.data.concat(o)),me.graphRefreshCounter>60&&me.activate()}function za(a){const e=Object.values(O).length>0?Object.values(O)[0].connectedVehicle:0,t=Object.values(O).length>1?Object.values(O)[1].connectedVehicle:1,o="ev"+e+"-soc",s="ev"+t+"-soc",r={};r.date=+a.timestamp*1e3,+a.grid>0?(r.evuIn=+a.grid,r.evuOut=0):+a.grid<=0?(r.evuIn=0,r.evuOut=-a.grid):(r.evuIn=0,r.evuOut=0),+a["pv-all"]>=0?(r.pv=+a["pv-all"],r.inverter=0):(r.pv=0,r.inverter=-a["pv-all"]),r.house=+a["house-power"],+a["bat-all-power"]>0?(r.batOut=0,r.batIn=+a["bat-all-power"]):+a["bat-all-power"]<0?(r.batOut=-a["bat-all-power"],r.batIn=0):(r.batOut=0,r.batIn=0),a["bat-all-soc"]?r.batSoc=+a["bat-all-soc"]:r.batSoc=0,a[o]&&(r["soc"+e]=+a[o]),a[s]&&(r["soc"+t]=+a[s]),r.charging=+a["charging-all"];for(let d=0;d<10;d++){const g="cp"+d;r[g]=+(a[g+"-power"]??0)}return r.selfUsage=r.pv-r.evuOut,r.selfUsage<0&&(r.selfUsage=0),r.devices=0,r}const Ju=["evuIn","pv","batOut","evuOut","charging","house"];let $t=[];function qu(a,e){const{entries:t,names:o,totals:s}=JSON.parse(e);Fe.value=new Map(Object.entries(o)),ta(),$t=[],Qt.forEach(d=>{T.setEnergyPv(d,0),T.setEnergyBat(d,0)});const r=Yu(t);ft(r),Zt(s,$t),m.debug&&Zu(t,s,r),y.graphMode=="today"&&setTimeout(()=>ue.activate(),3e5)}function Yu(a){const e=[];let t={};return a.forEach(o=>{t=Qu(o);const s=t;e.push(s)}),e}function Qu(a){const e={};e.date=a.timestamp*1e3,e.evuOut=0,e.evuIn=0,Object.entries(a.counter).forEach(([s,r])=>{r.grid&&(e.evuOut+=r.power_exported,e.evuIn+=r.power_imported,$t.includes(s)||$t.push(s))}),e.evuOut==0&&e.evuIn==0&&Object.entries(a.counter).forEach(s=>{e.evuOut+=s[1].power_exported,e.evuIn+=s[1].power_imported}),Object.entries(a.pv).forEach(([s,r])=>{s!="all"?e[s]=r.power_exported:e.pv=r.power_exported}),Object.entries(a.bat).length>0?(e.batIn=a.bat.all.power_imported,e.batOut=a.bat.all.power_exported,e.batSoc=a.bat.all.soc??0):(e.batIn=0,e.batOut=0,e.batSoc=0),Object.entries(a.cp).forEach(([s,r])=>{s!="all"?(e[s]=r.power_imported,T.keys().includes(s)||T.addItem(s)):e.charging=r.power_imported}),Object.entries(a.ev).forEach(([s,r])=>{s!="all"&&(e["soc"+s.substring(2)]=r.soc)}),e.devices=0;let t=0;return Object.entries(a.sh).forEach(([s,r])=>{var d;s!="all"&&(e[s]=r.power_imported??0,T.keys().includes(s)||(T.addItem(s),T.items[s].showInGraph=ne.get(+s.slice(2)).showInGraph),(d=ne.get(+s.slice(2)))!=null&&d.countAsHouse?t+=e[s]:e.devices+=r.power_imported??0)}),e.selfUsage=Math.max(0,e.pv-e.evuOut),a.hc&&a.hc.all?e.house=a.hc.all.power_imported-t:e.house=e.evuIn+e.batOut+e.pv-e.evuOut-e.charging-e.devices-e.batOut,e.evuIn+e.batOut+e.pv>0?T.keys().filter(s=>!Ju.includes(s)&&s!="charging").forEach(s=>{$n(s,e)}):Object.keys(e).forEach(s=>{e[s+"Pv"]=0,e[s+"Bat"]=0}),e}function Zu(a,e,t){console.debug("---------------------------------------- Graph Data -"),console.debug(["--- Incoming graph data:",a]),console.debug(["--- Incoming energy data:",e]),console.debug(["--- Data to be displayed:",t]),console.debug("-----------------------------------------------------")}let _t={};const na=["charging","house","batIn","devices"],Xu=["evuIn","pv","batOut","batIn","evuOut","devices","sh1","sh2","sh3","sh4","sh5","sh6","sh7","sh8","sh9"];let et=[];function Ku(a,e){const{entries:t,names:o,totals:s}=JSON.parse(e);Fe.value=new Map(Object.entries(o)),ta(),et=[],na.forEach(r=>{T.items[r].energyPv=0,T.items[r].energyBat=0}),t.length>0&&ft(Da(t)),Zt(s,et)}function ed(a,e){const{entries:t,names:o,totals:s}=JSON.parse(e);Fe.value=new Map(Object.entries(o)),ta(),et=[],na.forEach(r=>{T.items[r].energyPv=0,T.items[r].energyBat=0}),t.length>0&&ft(Da(t)),Zt(s,et)}function Da(a){const e=[];let t={};return _t={},a.forEach(o=>{t=td(o),e.push(t),Object.keys(t).forEach(s=>{s!="date"&&(t[s]<0&&(console.warn(`Negative energy value for ${s} in row ${t.date}. Ignoring the value.`),t[s]=0),_t[s]?_t[s]+=t[s]:_t[s]=t[s])})}),e}function td(a){const e={},t=en("%Y%m%d")(a.date);t&&(e.date=y.graphMode=="month"?t.getDate():t.getMonth()+1),e.evuOut=0,e.evuIn=0;let o=0,s=0;return Object.entries(a.counter).forEach(([d,g])=>{o+=g.energy_exported,s+=g.energy_imported,g.grid&&(e.evuOut+=g.energy_exported,e.evuIn+=g.energy_imported,et.includes(d)||et.push(d))}),et.length==0&&(e.evuOut=o,e.evuIn=s),e.pv=a.pv.all.energy_exported,Object.entries(a.bat).length>0?(a.bat.all.energy_imported>=0?e.batIn=a.bat.all.energy_imported:(console.warn("ignoring negative value for batIn on day "+e.date),e.batIn=0),a.bat.all.energy_exported>=0?e.batOut=a.bat.all.energy_exported:(console.warn("ignoring negative value for batOut on day "+e.date),e.batOut=0)):(e.batIn=0,e.batOut=0),Object.entries(a.cp).forEach(([d,g])=>{d!="all"?(T.keys().includes(d)||T.addItem(d),e[d]=g.energy_imported):e.charging=g.energy_imported}),Object.entries(a.ev).forEach(([d,g])=>{d!="all"&&(e["soc-"+d]=g.soc)}),e.devices=Object.entries(a.sh).reduce((d,g)=>(T.keys().includes(g[0])||T.addItem(g[0]),g[1].energy_imported>=0?d+=g[1].energy_imported:console.warn(`Negative energy value for device ${g[0]} in row ${e.date}. Ignoring this value`),d),0),a.hc&&a.hc.all?e.house=a.hc.all.energy_imported:e.house=e.pv+e.evuIn+e.batOut-e.evuOut-e.batIn-e.charging,e.selfUsage=e.pv-e.evuOut,e.evuIn+e.batOut+e.pv>0?T.keys().filter(d=>!Xu.includes(d)).forEach(d=>{Mn(d,e)}):na.map(d=>{e[d+"Pv"]=0,e[d+"Bat"]=0}),e}function ad(a,e){const t=nd(a);if(t&&!pe.value.has(t)){console.warn("Invalid battery index: ",t);return}a=="openWB/bat/config/configured"?he.isBatteryConfigured=e=="true":a=="openWB/bat/get/power"?+e>0?(F.batIn.power=+e,Q.batOut.power=0):(F.batIn.power=0,Q.batOut.power=-e):a=="openWB/bat/get/soc"?he.batterySoc=+e:a=="openWB/bat/get/daily_exported"?Q.batOut.energy=+e:a=="openWB/bat/get/daily_imported"?F.batIn.energy=+e:t&&pe.value.has(t)&&(a.match(/^openwb\/bat\/[0-9]+\/get\/daily_exported$/i)?pe.value.get(t).dailyYieldExport=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/daily_imported$/i)?pe.value.get(t).dailyYieldImport=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/exported$/i)?pe.value.get(t).exported=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/fault_state$/i)?pe.value.get(t).faultState=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/fault_str$/i)?pe.value.get(t).faultStr=e:a.match(/^openwb\/bat\/[0-9]+\/get\/imported$/i)?pe.value.get(t).imported=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/power$/i)?pe.value.get(t).power=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/soc$/i)&&(pe.value.get(t).soc=+e))}function nd(a){let e=0;try{const t=a.match(/(?:\/)([0-9]+)(?=\/)/g);return t?(e=+t[0].replace(/[^0-9]+/g,""),e):void 0}catch(t){console.warn("Parser error in getIndex for topic "+a+": "+t)}}function rd(a,e){if(a=="openWB/optional/et/provider")JSON.parse(e).type==null?oe.active=!1:(oe.active=!0,oe.etProvider=JSON.parse(e).name);else if(a=="openWB/optional/et/get/prices"){const t=JSON.parse(e);oe.etPriceList=new Map,Object.keys(t).forEach(o=>{oe.etPriceList.set(new Date(+o*1e3),t[o]*1e5)})}}function od(a,e){const t=Wa(a);if(t&&!(t in O)){console.warn("Invalid chargepoint id received: "+t);return}if(a=="openWB/chargepoint/get/power"?F.charging.power=+e:a=="openWB/chargepoint/get/daily_imported"&&(F.charging.energy=+e),a=="openWB/chargepoint/get/daily_exported")he.cpDailyExported=+e;else if(t)if(a.match(/^openwb\/chargepoint\/[0-9]+\/config$/i))if(O[t]){const o=JSON.parse(e);O[t].name=o.name,O[t].icon=o.name,ie["cp"+t]?(ie["cp"+t].name=o.name,ie["cp"+t].icon=o.name):ie["cp"+t]={name:o.name,icon:o.name,color:"var(--color-charging)"}}else console.warn("invalid chargepoint index: "+t);else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/state_str$/i))O[t].stateStr=JSON.parse(e);else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/fault_str$/i))O[t].faultStr=JSON.parse(e);else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/fault_state$/i))O[t].faultState=+e;else if(a.match(/^openWB\/chargepoint\/[0-9]+\/get\/power$/i))O[t].power=+e;else if(a.match(/^openWB\/chargepoint\/[0-9]+\/get\/daily_imported$/i))O[t].dailyYield=+e;else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/plug_state$/i))O[t].isPluggedIn=e=="true";else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/charge_state$/i))O[t].isCharging=e=="true";else if(a.match(/^openwb\/chargepoint\/[0-9]+\/set\/manual_lock$/i))O[t].updateIsLocked(e=="true");else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/enabled$/i))O[t].isEnabled=e=="1";else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/phases_in_use/i))O[t].phasesInUse=+e;else if(a.match(/^openwb\/chargepoint\/[0-9]+\/set\/current/i))O[t].current=+e;else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/currents/i))O[t].currents=JSON.parse(e);else if(a.match(/^openwb\/chargepoint\/[0-9]+\/set\/log/i)){const o=JSON.parse(e);O[t].chargedSincePlugged=o.imported_since_plugged}else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/soc$/i)){const o=JSON.parse(e);O[t].soc=o.soc,O[t].waitingForSoc=!1,O[t].rangeCharged=o.range_charged,O[t].rangeUnit=o.range_unit}else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/info$/i)){const o=JSON.parse(e);O[t].vehicleName=String(o.name),O[t].updateConnectedVehicle(+o.id)}else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/config$/i)){const o=JSON.parse(e);O[t].averageConsumption=o.average_consumption}else a.match(/^openwb\/chargepoint\/[0-9]+\/set\/charge_template$/i)&&(O[t].chargeTemplate=JSON.parse(e))}function sd(a,e){const t=Wa(a);if(t!=null){if(!(t in X)){const o=new bn(t);X[t]=o}if(a.match(/^openwb\/vehicle\/[0-9]+\/name$/i))Object.values(O).forEach(o=>{o.connectedVehicle==t&&(o.vehicleName=JSON.parse(e))}),X[t].name=JSON.parse(e);else if(a.match(/^openwb\/vehicle\/[0-9]+\/get\/soc$/i))X[t].soc=JSON.parse(e);else if(a.match(/^openwb\/vehicle\/[0-9]+\/get\/range$/i))isNaN(+e)?X[t].range=0:X[t].range=+e;else if(a.match(/^openwb\/vehicle\/[0-9]+\/charge_template$/i))X[t].updateChargeTemplateId(+e);else if(a.match(/^openwb\/vehicle\/[0-9]+\/ev_template$/i))X[t].updateEvTemplateId(+e);else if(a.match(/^openwb\/vehicle\/[0-9]+\/soc_module\/config$/i)){const o=JSON.parse(e);Object.values(O).forEach(s=>{s.connectedVehicle==t&&(s.isSocConfigured=o.type!==null,s.isSocManual=o.type=="manual")}),X[t].isSocConfigured=o.type!==null,X[t].isSocManual=o.type=="manual"}}}function id(a,e){if(a.match(/^openwb\/vehicle\/template\/charge_template\/[0-9]+$/i)){const t=a.match(/[0-9]+$/i);if(t){const o=+t[0];Ft[o]=JSON.parse(e)}}else if(a.match(/^openwb\/vehicle\/template\/ev_template\/[0-9]+$/i)){const t=a.match(/[0-9]+$/i);if(t){const o=+t[0],s=JSON.parse(e);yn[o]=s}}}function Wa(a){let e=0;try{const t=a.match(/(?:\/)([0-9]+)(?=\/)/g);return t?(e=+t[0].replace(/[^0-9]+/g,""),e):void 0}catch(t){console.warn("Parser error in getIndex for topic "+a+": "+t)}}function ld(a,e){a.match(/^openWB\/LegacySmarthome\/config\//i)?cd(a,e):a.match(/^openWB\/LegacySmarthome\/Devices\//i)&&ud(a,e)}function cd(a,e){const t=Ga(a);if(t==null)return;ne.has(t)||Rt(t);const o=ne.get(t);a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_configured$/i)?o.configured=e!="0":a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_name$/i)?(o.name=e.toString(),o.icon=e.toString(),ie["sh"+t].name=e.toString(),ie["sh"+t].icon=e.toString()):a.match(/^openWB\/LegacySmarthome\/config\/set\/Devices\/[0-9]+\/mode$/i)?o.isAutomatic=e=="0":a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_canSwitch$/i)?o.canSwitch=e=="1":a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_homeConsumtion$/i)?o.countAsHouse=e=="1":a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_temperatur_configured$/i)&&(o.tempConfigured=+e)}function ud(a,e){const t=Ga(a);if(t==null){console.warn("Smarthome: Missing index in "+a);return}ne.has(t)||Rt(t);const o=ne.get(t);if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/Watt$/i))o.power=+e,dd("power");else if(!a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/Wh$/i)){if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/RunningTimeToday$/i))o.runningTime=+e;else if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor0$/i))o.temp[0]=+e;else if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor1$/i))o.temp[1]=+e;else if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor2$/i))o.temp[2]=+e;else if(a.match(/^openWB\/LegacySmartHome\/Devices\/[0-9]+\/Status$/i))switch(+e){case 10:o.status="off";break;case 11:o.status="on";break;case 20:o.status="detection";break;case 30:o.status="timeout";break;default:o.status="off"}}}function dd(a){switch(a){case"power":F.devices.power=[...ne.values()].filter(e=>e.configured&&!e.countAsHouse).reduce((e,t)=>e+t.power,0);break;case"energy":F.devices.energy=[...ne.values()].filter(e=>e.configured&&!e.countAsHouse).reduce((e,t)=>e+t.energy,0);break;default:console.error("Unknown category")}}function Ga(a){let e=0;try{const t=a.match(/(?:\/)([0-9]+)(?=\/)/g);return t?(e=+t[0].replace(/[^0-9]+/g,""),e):void 0}catch(t){console.warn("Parser error in getIndex for topic "+a+": "+t)}}const Mt=ge([]);class ra{constructor(e,t,o,s){b(this,"name");b(this,"children");b(this,"count");b(this,"lastValue");this.name=e,this.children=t,this.count=o,this.lastValue=s}insert(e,t){if(e.length){const o=e.splice(1);if(e[0]==this.name)if(o.length){let s=!1;if(this.children.forEach(r=>{r.name==o[0]&&(r.insert(o,t),s=!0)}),!s){const r=new ra(o[0],[],0,"");r.insert(o,t),this.children.push(r)}}else this.count=this.count+1,this.lastValue=t}}}function hd(a,e){const t=a.split("/");if(t.length){let o=!1;if(Mt.forEach(s=>{s.name==t[0]&&(s.insert(t,e),o=!0)}),!o){const s=new ra(t[0],[],0,"");Mt.push(s),s.insert(t,e)}}}const gd=["openWB/counter/#","openWB/bat/#","openWB/pv/#","openWB/chargepoint/#","openWB/vehicle/#","openWB/general/chargemode_config/pv_charging/#","openWB/optional/et/#","openWB/system/#","openWB/LegacySmartHome/#","openWB/command/"+Jt()+"/#"];function pd(){mn(md),gd.forEach(a=>{Ke(a)}),ve()}function md(a,e){hd(a,e.toString());const t=e.toString();a.match(/^openwb\/counter\/[0-9]+\//i)?fd(a,t):a.match(/^openwb\/counter\//i)?vd(a,t):a.match(/^openwb\/bat\//i)?ad(a,t):a.match(/^openwb\/pv\//i)?bd(a,t):a.match(/^openwb\/chargepoint\//i)?od(a,t):a.match(/^openwb\/vehicle\/template\//i)?id(a,t):a.match(/^openwb\/vehicle\//i)?sd(a,t):a.match(/^openwb\/general\/chargemode_config\/pv_charging\//i)?yd(a,t):a.match(/^openwb\/graph\//i)?Nu(a,t):a.match(/^openwb\/log\/daily\//i)?qu(a,t):a.match(/^openwb\/log\/monthly\//i)?Ku(a,t):a.match(/^openwb\/log\/yearly\//i)?ed(a,t):a.match(/^openwb\/optional\/et\//i)?rd(a,t):a.match(/^openwb\/system\//i)?wd(a,t):a.match(/^openwb\/LegacySmartHome\//i)?ld(a,t):a.match(/^openwb\/command\//i)&&kd(a,t)}function fd(a,e){const t=a.split("/"),o=+t[2];if(o==he.evuId?_d(a,e):t[3]=="config",t[3]=="get"&&o in Se)switch(t[4]){case"power":Se[o].power=+e;break;case"config":break;case"fault_str":break;case"fault_state":break;case"power_factors":break;case"imported":break;case"exported":break;case"frequency":break;case"daily_imported":Se[o].energy_imported=+e;break;case"daily_exported":Se[o].energy_exported=+e;break}}function vd(a,e){if(a.match(/^openwb\/counter\/get\/hierarchy$/i)){const t=JSON.parse(e);if(t.length){wn(),is();for(const o of t)o.type=="counter"&&(he.evuId=o.id);Ua(t[0])}}else a.match(/^openwb\/counter\/set\/home_consumption$/i)?F.house.power=+e:a.match(/^openwb\/counter\/set\/daily_yield_home_consumption$/i)&&(F.house.energy=+e)}function Ua(a){switch(a.type){case"counter":Su(a.id,a.type);break;case"cp":_n(a.id);break;case"bat":Oa(a.id);break}a.children.forEach(e=>Ua(e))}function bd(a,e){const t=xd(a);t&&!ke.value.has(t)&&zn(t),a=="openWB/pv/get/power"?Q.pv.power=-e:a=="openWB/pv/get/daily_exported"?Q.pv.energy=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/power$/i)?ke.value.get(t).power=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/daily_exported$/i)?ke.value.get(t).energy=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/monthly_exported$/i)?ke.value.get(t).energy_month=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/yearly_exported$/i)?ke.value.get(t).energy_year=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/exported$/i)&&(ke.value.get(t).energy_total=+e)}function yd(a,e){const t=a.split("/");if(t.length>0)switch(t[4]){case"bat_mode":he.updatePvBatteryPriority(JSON.parse(e));break}}function _d(a,e){switch(a.split("/")[4]){case"power":+e>0?(Q.evuIn.power=+e,F.evuOut.power=0):(Q.evuIn.power=0,F.evuOut.power=-e);break;case"daily_imported":Q.evuIn.energy=+e;break;case"daily_exported":F.evuOut.energy=+e;break}}function wd(a,e){if(a.match(/^openWB\/system\/device\/[0-9]+\/component\/[0-9]+\/config$/i)){const t=JSON.parse(e);switch(t.type){case"counter":case"consumption_counter":Se[t.id]&&(Se[t.id].name=t.name);break;case"inverter":case"inverter_secondary":ke.value.has(t.id)||ke.value.set(t.id,new $a(t.id)),ke.value.get(t.id).name=t.name;break;case"bat":pe.value.has(t.id)||Oa(t.id),pe.value.get(t.id).name=t.name}}}function kd(a,e){const t=a.split("/");if(a.match(/^openWB\/command\/[a-z]+\/error$/i)&&t[2]==Jt()){const o=JSON.parse(e);console.error(`Error message from openWB: -Command: ${o.command} -Data: JSON.stringify(err.data) -Error: - ${o.error}`)}}function xd(a){let e=0;try{const t=a.match(/(?:\/)([0-9]+)(?=\/)/g);return t?(e=+t[0].replace(/[^0-9]+/g,""),e):void 0}catch(t){console.warn("Parser error in getIndex for topic "+a+": "+t)}}const Sd={key:0,class:"fas fa-caret-down"},$d={key:1,class:"fas fa-caret-right"},Md={key:0,class:"content p-2 m-2"},Pd={key:1,class:"sublist col-md-9 m-0 p-0 ps-2"},Cd=L({__name:"MqttNode",props:{node:{},level:{},hide:{type:Boolean},expandAll:{type:Boolean}},setup(a){const e=a;let t=Z(!e.hide),o=Z(!1);const s=p(()=>e.node.name),r=p(()=>[...e.node.children].sort((c,k)=>c.namee.node.count>0?"("+e.node.count+")":""),g=p(()=>e.node.children.length),u=p(()=>e.node.lastValue!=""?{"font-style":"italic","grid-column-start":e.level,"grid-column-end":-1}:{"grid-column-start":e.level,"grid-column-end":-1});function h(){g.value>0&&(t.value=!t.value),e.node.lastValue!=""&&(o.value=!o.value)}return(c,k)=>{const P=tn("MqttNode",!0);return l(),f(N,null,[n("div",{class:"name py-2 px-2 m-0",style:ae(u.value),onClick:h},[(i(t)||e.expandAll)&&g.value>0||i(o)?(l(),f("span",Sd)):(l(),f("span",$d)),J(" "+x(s.value)+x(d.value),1)],4),i(o)?(l(),f("div",Md,[n("code",null,x(e.node.lastValue),1)])):w("",!0),(i(t)||e.expandAll)&&g.value>0?(l(),f("div",Pd,[(l(!0),f(N,null,K(r.value,(E,G)=>(l(),M(P,{key:G,level:e.level+1,node:E,hide:!0,"expand-all":e.expandAll},null,8,["level","node","expand-all"]))),128))])):w("",!0)],64)}}}),Id=H(Cd,[["__scopeId","data-v-df7e578a"]]),Bd={class:"mqviewer"},Vd={class:"row pt-2"},Ld={class:"col"},Td={key:0,class:"topiclist"},Od=L({__name:"MQTTViewer",setup(a){Te(()=>{});const e=Z(!1);function t(){e.value=!e.value}const o=p(()=>e.value?"active":"");return(s,r)=>(l(),f("div",Bd,[n("div",Vd,[n("div",Ld,[r[0]||(r[0]=n("h3",{class:"mqtitle ps-2"},"MQTT Message Viewer",-1)),r[1]||(r[1]=n("hr",null,null,-1)),n("button",{class:R(["btn btn-small btn-outline-primary ms-2",o.value]),onClick:t}," Expand All ",2),r[2]||(r[2]=n("hr",null,null,-1))])]),i(Mt)[0]?(l(),f("div",Td,[(l(!0),f(N,null,K(i(Mt)[0].children.sort((d,g)=>d.name(l(),M(Id,{key:g,node:d,level:1,hide:!0,"expand-all":e.value},null,8,["node","expand-all"]))),128))])):w("",!0)]))}}),Ad=H(Od,[["__scopeId","data-v-a349646d"]]),Ed=["value"],zd=L({__name:"SelectInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=e,s=p({get(){return t.modelValue},set(r){o("update:modelValue",r)}});return(r,d)=>mt((l(),f("select",{id:"selectme","onUpdate:modelValue":d[0]||(d[0]=g=>s.value=g),class:"form-select"},[(l(!0),f(N,null,K(r.options,(g,u)=>(l(),f("option",{key:u,value:g[1]},x(g[0]),9,Ed))),128))],512)),[[an,s.value]])}}),Dd=H(zd,[["__scopeId","data-v-5e33ce1f"]]),Wd={class:"subgrid m-0 p-0"},Gd={class:"settingscolumn"},Ud={class:"settingscolumn"},jd={class:"settingscolumn"},Fd=L({__name:"ThemeSettings",emits:["reset-arcs"],setup(a,{emit:e}){const t=e,o=[["Dunkel","dark"],["Hell","light"],["Blau","blue"]],s=[["3 kW","0"],["3,1 kW","1"],["3,14 kW","2"],["3,141 kW","3"],["3141 W","4"]],r=[["Orange","normal"],["Grün/Violett","standard"],["Bunt","advanced"]],d=[["Aus","off"],["Menü","navbar"],["Buttonleiste","buttonbar"]],g=[["Aus","no"],['"Alles"-Reiter',"infoview"],["Immer","always"]];return(u,h)=>(l(),M(Ge,{"full-width":!0},{title:_(()=>h[23]||(h[23]=[J(" Look & Feel ")])),buttons:_(()=>h[24]||(h[24]=[n("span",{type:"button",class:"float-end mt-0 ms-1","data-bs-toggle":"collapse","data-bs-target":"#themesettings"},[n("span",null,[n("i",{class:"fa-solid fa-circle-check"})])],-1)])),default:_(()=>[n("div",Wd,[n("div",Gd,[v(U,{fullwidth:!0,title:"Farbschema",icon:"fa-adjust",infotext:"Hintergrundfarbe"},{default:_(()=>[v(xe,{modelValue:i(m).displayMode,"onUpdate:modelValue":h[0]||(h[0]=c=>i(m).displayMode=c),options:o},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Farbschema Smart-Home-Geräte",icon:"fa-palette",infotext:"Für die Smart-Home-Geräte stehen mehrere Schemata zur Verfügung."},{default:_(()=>[v(xe,{modelValue:i(m).smartHomeColors,"onUpdate:modelValue":h[1]||(h[1]=c=>i(m).smartHomeColors=c),options:r},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Grafik: Raster",icon:"fa-th",infotext:"Verwende ein Hintergrundraster in den Grafiken"},{"inline-item":_(()=>[v(le,{modelValue:i(m).showGrid,"onUpdate:modelValue":h[2]||(h[2]=c=>i(m).showGrid=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Variable Bogenlänge",icon:"fa-chart-area",infotext:"Im Graph 'Aktuelle Leistung' können die Bögen immer die volle Länge haben, oder entsprechend des aktuellen Gesamtleistung verkürzt dargestellt werden."},{"inline-item":_(()=>[v(le,{modelValue:i(m).showRelativeArcs,"onUpdate:modelValue":h[3]||(h[3]=c=>i(m).showRelativeArcs=c)},null,8,["modelValue"])]),_:1}),i(m).showRelativeArcs?(l(),M(U,{key:0,fullwidth:!0,title:"Bögen zurücksetzen",icon:"fa-undo",infotext:"Durch Click auf den Button wird die Maximallänge der Bögen auf den aktuellen Wert gesetzt."},{default:_(()=>[i(m).showRelativeArcs?(l(),f("button",{key:0,class:"btn btn-secondary",onClick:h[4]||(h[4]=c=>t("reset-arcs"))}," Reset ")):w("",!0)]),_:1})):w("",!0),v(U,{fullwidth:!0,title:"Anzahl Dezimalstellen",icon:"fa-sliders-h",infotext:"Alle kW- und kWh-Werte werden mit der gewählten Anzahl an Stellen angezeigt."},{default:_(()=>[v(Dd,{modelValue:i(m).decimalPlaces,"onUpdate:modelValue":h[5]||(h[5]=c=>i(m).decimalPlaces=c),options:s},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Uhrzeit anzeigen",icon:"fa-clock",infotext:"Zeige die aktuelle Uhrzeit an. In der Menüleiste oder neben den Lade-Buttons."},{default:_(()=>[v(xe,{modelValue:i(m).showClock,"onUpdate:modelValue":h[6]||(h[6]=c=>i(m).showClock=c),options:d},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Kompakte Ladepunktliste",icon:"fa-list",infotext:"Zeige eine einzelne Ladepunktliste statt separater Element pro Ladepunkt."},{default:_(()=>[v(xe,{modelValue:i(m).shortCpList,"onUpdate:modelValue":h[7]||(h[7]=c=>i(m).shortCpList=c),options:g},null,8,["modelValue"])]),_:1})]),n("div",Ud,[v(U,{fullwidth:!0,title:"Buttonleiste für Ladepunkte",icon:"fa-window-maximize",infotext:"Informationen zu Ladepunkten über den Diagrammen anzeigen."},{"inline-item":_(()=>[v(le,{modelValue:i(m).showButtonBar,"onUpdate:modelValue":h[8]||(h[8]=c=>i(m).showButtonBar=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Filter-Buttons",icon:"fa-filter",infotext:"Hauptseite mit Buttons zur Auswahl der Kategorie."},{"inline-item":_(()=>[v(le,{modelValue:i(m).showQuickAccess,"onUpdate:modelValue":h[9]||(h[9]=c=>i(m).showQuickAccess=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Breite Widgets",icon:"fa-desktop",infotext:"Widgets immer breit machen"},{"inline-item":_(()=>[v(le,{modelValue:i(m).preferWideBoxes,"onUpdate:modelValue":h[10]||(h[10]=c=>i(m).preferWideBoxes=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Stufenlose Displaybreite",icon:"fa-maximize",infotext:"Die Breite des Displays wird immer voll ausgenutzt. Dies kann in einigen Fällen zu inkorrekter Darstellung führen."},{"inline-item":_(()=>[v(le,{modelValue:i(m).fluidDisplay,"onUpdate:modelValue":h[11]||(h[11]=c=>i(m).fluidDisplay=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Animationen",icon:"fa-film",infotext:"Animationen anzeigen"},{"inline-item":_(()=>[v(le,{modelValue:i(m).showAnimations,"onUpdate:modelValue":h[12]||(h[12]=c=>i(m).showAnimations=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Zähler anzeigen",icon:"fa-chart-bar",infotext:"Zeige die Werte zusätzlich angelegter Zähler"},{"inline-item":_(()=>[v(le,{modelValue:i(m).showCounters,"onUpdate:modelValue":h[13]||(h[13]=c=>i(m).showCounters=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Fahrzeuge anzeigen",icon:"fa-car",infotext:"Zeige alle Fahrzeuge mit Ladestand und Reichweite"},{"inline-item":_(()=>[v(le,{modelValue:i(m).showVehicles,"onUpdate:modelValue":h[14]||(h[14]=c=>i(m).showVehicles=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Standardfahrzeug anzeigen",icon:"fa-car",infotext:"Zeige das Standard-Fahrzeug in der Fahzeugliste"},{"inline-item":_(()=>[v(le,{modelValue:i(m).showStandardVehicle,"onUpdate:modelValue":h[15]||(h[15]=c=>i(m).showStandardVehicle=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Wechselrichter-Details anzeigen",icon:"fa-solar-panel",infotext:"Zeige Details zu den einzelnen Wechselrichtern"},{"inline-item":_(()=>[v(le,{modelValue:i(m).showInverters,"onUpdate:modelValue":h[16]||(h[16]=c=>i(m).showInverters=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Alternatives Energie-Widget",icon:"fa-chart-area",infotext:"Horizontale Darstellung der Energie-Werte"},{"inline-item":_(()=>[v(le,{modelValue:i(m).alternativeEnergy,"onUpdate:modelValue":h[17]||(h[17]=c=>i(m).alternativeEnergy=c)},null,8,["modelValue"])]),_:1})]),n("div",jd,[v(U,{fullwidth:!0,title:"Preistabelle anzeigen",icon:"fa-car",infotext:"Zeige die Strompreistabelle in einer separaten Box an"},{"inline-item":_(()=>[v(le,{modelValue:i(m).showPrices,"onUpdate:modelValue":h[18]||(h[18]=c=>i(m).showPrices=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Untere Markierung in der Preistabelle",icon:"fa-car",infotext:"Position der unteren Markierung festlegen"},{default:_(()=>[v(_e,{id:"lowerPriceBound",modelValue:i(m).lowerPriceBound,"onUpdate:modelValue":h[19]||(h[19]=c=>i(m).lowerPriceBound=c),min:-25,max:95,step:.1,decimals:1,unit:"ct"},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Obere Markierung in der Preistabelle",icon:"fa-car",infotext:"Position der oberen Markierung festlegen"},{default:_(()=>[v(_e,{id:"upperPriceBound",modelValue:i(m).upperPriceBound,"onUpdate:modelValue":h[20]||(h[20]=c=>i(m).upperPriceBound=c),min:-25,max:95,step:.1,decimals:1,unit:"ct"},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"IFrame-Support für Einstellungen (Experimentell)",icon:"fa-gear",infotext:"Erlaubt das Lesen der Einstellungen, wenn das UI in andere Applikationen eingebettet ist (z.B. HomeAssistant). Erfordert eine mit SSL verschlüsselte Verbindung über HTTPS! Experimentelles Feature."},{"inline-item":_(()=>[v(le,{modelValue:i(m).sslPrefs,"onUpdate:modelValue":h[21]||(h[21]=c=>i(m).sslPrefs=c)},null,8,["modelValue"])]),_:1}),h[25]||(h[25]=n("hr",null,null,-1)),v(U,{fullwidth:!0,title:"Debug-Modus",icon:"fa-bug-slash",infotext:"Kontrollausgaben in der Console sowie Anzeige von Bildschirmbreite und MQ-Viewer"},{"inline-item":_(()=>[v(le,{modelValue:i(m).debug,"onUpdate:modelValue":h[22]||(h[22]=c=>i(m).debug=c)},null,8,["modelValue"])]),_:1}),h[26]||(h[26]=n("hr",null,null,-1))]),h[27]||(h[27]=n("div",{class:"grid-col-12 mb-3 me-3"},[n("button",{class:"btn btn-sm btn-secondary float-end","data-bs-toggle":"collapse","data-bs-target":"#themesettings"}," Schließen ")],-1))])]),_:1}))}}),Nd=H(Fd,[["__scopeId","data-v-785bc80b"]]),Hd={class:"container-fluid px-2 m-0 theme-colors"},Rd={id:"themesettings",class:"collapse"},Jd={class:"row py-0 px-0 m-0"},qd={key:1,class:"row py-0 m-0 d-flex justify-content-center"},Yd={key:2,class:"nav nav-tabs nav-justified mx-1 mt-2",role:"tablist"},Qd={key:0,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#pricecharttabbed"},Zd={key:1,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#vehiclelist"},Xd={key:2,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#batterylist"},Kd={key:3,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#smarthomelist"},eh={key:4,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#counterlist"},th={key:5,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#inverterlist"},ah={key:3,id:"cpContent",class:"tab-content mx-0 pt-1"},nh={id:"showAll",class:"tab-pane active",role:"tabpanel","aria-labelledby":"showall-tab"},rh={class:"row py-0 m-0 d-flex justify-content-center"},oh={id:"chargepointlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"chargepoint-tab"},sh={class:"row py-0 m-0 d-flex justify-content-center"},ih={id:"vehiclelist",class:"tab-pane",role:"tabpanel","aria-labelledby":"vehicle-tab"},lh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},ch={id:"batterylist",class:"tab-pane",role:"tabpanel","aria-labelledby":"battery-tab"},uh={class:"row py-0 m-0 d-flex justify-content-center"},dh={id:"smarthomelist",class:"tab-pane",role:"tabpanel","aria-labelledby":"smarthome-tab"},hh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},gh={id:"counterlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"counter-tab"},ph={key:0,class:"row py-0 m-0 d-flex justify-content-center"},mh={id:"inverterlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"inverter-tab"},fh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},vh={id:"pricecharttabbed",class:"tab-pane",role:"tabpanel","aria-labelledby":"price-tab"},bh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},yh={key:0,class:"row p-2 mt-5"},_h={class:"col p-2"},wh={class:"d-flex justify-content-between"},kh={class:"mx-4"},xh={key:0},Sh=L({__name:"ColorsTheme",setup(a){const e=Z(!1),t=p(()=>[...ne.values()].filter(d=>d.configured).length>0);function o(){Ba()}function s(){e.value=!e.value}Te(()=>{o(),window.addEventListener("resize",Vn),window.addEventListener("focus",r),pd()});function r(){document.hasFocus()&&ve(!0)}return(d,g)=>(l(),f(N,null,[n("div",Hd,[n("div",Rd,[v(Nd,{onResetArcs:i(On)},null,8,["onResetArcs"])]),i(m).showButtonBar?(l(),M(nu,{key:0})):w("",!0),n("div",Jd,[v(Fu,null,nn({item1:_(()=>[v(hr)]),item2:_(()=>[v(yo)]),_:2},[i(m).alternativeEnergy?{name:"item3",fn:_(()=>[v(vs)]),key:"0"}:{name:"item3",fn:_(()=>[v(No)]),key:"1"}]),1024)]),i(m).showQuickAccess?w("",!0):(l(),f("div",qd,[v(Ot,{id:"1",compact:i(m).shortCpList=="always"},null,8,["compact"]),i(m).showPrices?(l(),M(Gt,{key:0,id:"NoTabs"})):w("",!0),i(m).showVehicles?(l(),M(Dt,{key:1})):w("",!0),v(At),t.value?(l(),M(Et,{key:2})):w("",!0),i(m).showCounters?(l(),M(zt,{key:3})):w("",!0),i(m).showInverters?(l(),M(Ut,{key:4})):w("",!0)])),i(m).showQuickAccess?(l(),f("nav",Yd,[g[6]||(g[6]=rn('AllesLadepunkte',2)),i(m).showPrices?(l(),f("a",Qd,g[0]||(g[0]=[n("i",{class:"fa-solid fa-lg fa-coins"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Strompreis",-1)]))):w("",!0),i(m).showVehicles?(l(),f("a",Zd,g[1]||(g[1]=[n("i",{class:"fa-solid fa-lg fa-car"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Fahrzeuge",-1)]))):w("",!0),i(he).isBatteryConfigured?(l(),f("a",Xd,g[2]||(g[2]=[n("i",{class:"fa-solid fa-lg fa-car-battery"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Speicher",-1)]))):w("",!0),t.value?(l(),f("a",Kd,g[3]||(g[3]=[n("i",{class:"fa-solid fa-lg fa-plug"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Smart Home",-1)]))):w("",!0),i(m).showCounters?(l(),f("a",eh,g[4]||(g[4]=[n("i",{class:"fa-solid fa-lg fa-bolt"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Zähler",-1)]))):w("",!0),i(m).showInverters?(l(),f("a",th,g[5]||(g[5]=[n("i",{class:"fa-solid fa-lg fa-solar-panel"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Wechselrichter",-1)]))):w("",!0)])):w("",!0),i(m).showQuickAccess?(l(),f("div",ah,[n("div",nh,[n("div",rh,[v(Ot,{id:"2",compact:i(m).shortCpList!="no"},null,8,["compact"]),i(m).showPrices?(l(),M(Gt,{key:0,id:"Overview"})):w("",!0),i(m).showVehicles?(l(),M(Dt,{key:1})):w("",!0),v(At),t.value?(l(),M(Et,{key:2})):w("",!0),i(m).showCounters?(l(),M(zt,{key:3})):w("",!0),i(m).showInverters?(l(),M(Ut,{key:4})):w("",!0)])]),n("div",oh,[n("div",sh,[v(Ot,{id:"3",compact:i(m).shortCpList=="always"},null,8,["compact"])])]),n("div",ih,[i(m).showVehicles?(l(),f("div",lh,[v(Dt)])):w("",!0)]),n("div",ch,[n("div",uh,[v(At)])]),n("div",dh,[t.value?(l(),f("div",hh,[v(Et)])):w("",!0)]),n("div",gh,[i(m).showCounters?(l(),f("div",ph,[v(zt)])):w("",!0)]),n("div",mh,[i(m).showInverters?(l(),f("div",fh,[v(Ut)])):w("",!0)]),n("div",vh,[i(m).showPrices?(l(),f("div",bh,[v(Gt,{id:"Tabbed"})])):w("",!0)])])):w("",!0)]),i(m).debug?(l(),f("div",yh,[n("div",_h,[g[7]||(g[7]=n("hr",null,null,-1)),n("div",wh,[n("p",kh,"Screen Width: "+x(i(St).x),1),n("button",{class:"btn btn-sm btn-secondary mx-4",onClick:s}," MQ Viewer ")]),e.value?(l(),f("hr",xh)):w("",!0),e.value?(l(),M(Ad,{key:1})):w("",!0)])])):w("",!0)],64))}}),$h=H(Sh,[["__scopeId","data-v-0542a138"]]),Mh={class:"navbar navbar-expand-lg px-0 mb-0"},Ph={key:0,class:"position-absolute-50 navbar-text ms-4 navbar-time",style:{color:"var(--color-menu)"}},Ch=L({__name:"NavigationBar",setup(a){let e;const t=p(()=>m.fluidDisplay?"container-fluid":"container-lg");return Te(()=>{e=setInterval(()=>{Nt.value=new Date},1e3)}),on(()=>{clearInterval(e)}),(o,s)=>(l(),f(N,null,[n("nav",Mh,[n("div",{class:R(t.value)},[s[0]||(s[0]=n("a",{href:"/",class:"navbar-brand"},[n("span",null,"openWB")],-1)),i(m).showClock=="navbar"?(l(),f("span",Ph,x(i(La)(i(Nt))),1)):w("",!0),s[1]||(s[1]=n("button",{class:"navbar-toggler togglebutton ps-5",type:"button","data-bs-toggle":"collapse","data-bs-target":"#mainNavbar","aria-controls":"mainNavbar","aria-expanded":"false","aria-label":"Toggle navigation"},[n("span",{class:"fa-solid fa-ellipsis-vertical"})],-1)),s[2]||(s[2]=n("div",{id:"mainNavbar",class:"collapse navbar-collapse justify-content-end"},[n("div",{class:"nav navbar-nav"},[n("a",{id:"navStatus",class:"nav-link",href:"../../settings/#/Status"},"Status"),n("div",{class:"nav-item dropdown"},[n("a",{id:"loggingDropdown",class:"nav-link",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[J("Auswertungen "),n("i",{class:"fa-solid fa-caret-down"})]),n("div",{class:"dropdown-menu","aria-labelledby":"loggingDropdown"},[n("a",{href:"../../settings/#/Logging/ChargeLog",class:"dropdown-item"},"Ladeprotokoll"),n("a",{href:"../../settings/#/Logging/Chart",class:"dropdown-item"},"Diagramme")])]),n("div",{class:"nav-item dropdown"},[n("a",{id:"settingsDropdown",class:"nav-link",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[J("Einstellungen "),n("span",{class:"fa-solid fa-caret-down"})]),n("div",{class:"dropdown-menu","aria-labelledby":"settingsDropdown"},[n("a",{id:"navSettings",class:"nav-link",href:"../../settings/index.html"},"openWB"),n("a",{class:"nav-link","data-bs-toggle":"collapse","data-bs-target":"#themesettings","aria-expanded":"false","aria-controls":"themeSettings"},[n("span",null,[J("Look&Feel"),n("span",{class:"fa-solid fa-caret-down"})])])])])])],-1))],2)]),n("div",{class:R(t.value)},s[3]||(s[3]=[n("hr",{class:"m-0 p-0 mb-2"},null,-1)]),2)],64))}}),Ih=H(Ch,[["__scopeId","data-v-ed619966"]]),Bh={id:"app",class:"m-0 p-0"},Vh={class:"row p-0 m-0"},Lh={class:"col-12 p-0 m-0"},Th=L({__name:"App",setup(a){const e=p(()=>m.fluidDisplay?"container-fluid":"container-lg");return(t,o)=>(l(),f("div",Bh,[v(Ih),n("div",{class:R(["p-0",e.value])},[n("div",Vh,[n("div",Lh,[v($h)])])],2)]))}}),Oh=sn(Th);ln();Oh.mount("#app"); diff --git a/packages/modules/web_themes/colors/web/assets/index-sPhFg7OR.css b/packages/modules/web_themes/colors/web/assets/index-DNhn2lYg.css similarity index 73% rename from packages/modules/web_themes/colors/web/assets/index-sPhFg7OR.css rename to packages/modules/web_themes/colors/web/assets/index-DNhn2lYg.css index 2573c0e3af..95049e5ac5 100644 --- a/packages/modules/web_themes/colors/web/assets/index-sPhFg7OR.css +++ b/packages/modules/web_themes/colors/web/assets/index-DNhn2lYg.css @@ -1,4 +1,4 @@ -@charset "UTF-8";.form-select[data-v-98690e5d]{background-color:var(--color-input);border:1;border-color:var(--color-bg);color:var(--color-bg);text-align:start;font-size:var(--font-small)}.commitbutton[data-v-98690e5d]{background-color:var(--color-bg);color:var(--color-input)}option[data-v-98690e5d]{color:green}.form-select[data-v-98690e5d]{font-size:var(--font-verysmall);background-color:var(--color-menu);color:var(--color-fg)}.optiontable[data-v-98690e5d]{background-color:var(--color-menu)}.optionbutton[data-v-98690e5d]{font-size:var(--font-small);color:#fff;background-color:var(--color-menu);font-size:var(--font-verysmall);text-align:center}.dropdown-menu[data-v-98690e5d]{background-color:var(--color-menu)}.dropdown-toggle[data-v-98690e5d]{background-color:var(--color-menu);color:#fff;border:1px solid var(--color-bg);font-size:var(--font-verysmall)}.radiobutton[data-v-82ab6829]{border:0px solid var(--color-menu);opacity:1}.btn-outline-secondary.active[data-v-82ab6829]{background-color:var(--color-bg);border:0px solid var(--color-fg);opacity:.8}.btn-group[data-v-82ab6829]{border:1px solid var(--color-menu)}.rounded-pill[data-v-d75ec1a4]{background-color:var(--color-menu)}.arrowButton[data-v-d75ec1a4]{border:0}.datebadge[data-v-d75ec1a4]{background-color:var(--color-bg);color:var(--color-menu);border:1px solid var(--color-menu);font-size:var(--font-small);font-weight:400}.arrowButton[data-v-d75ec1a4],.fa-magnifying-glass[data-v-47f3d429]{color:var(--color-menu)}.dateWbBadge[data-v-47f3d429]{background-color:var(--color-menu);color:var(--color-bg);font-size:var(--font-medium);font-weight:400}.waitsign[data-v-47f3d429]{text-align:center;font-size:var(--font-medium);color:var(--color-fg);border:1px solid var(--color-bg);padding:2em;margin:4em 2em 2em;background-color:var(--color-bg)}.fa-magnifying-glass[data-v-32c82102],.fa-magnifying-glass[data-v-63a4748e]{color:var(--color-menu)}.heading[data-v-f6af00e8]{color:var(--color-menu);font-weight:400;text-align:center}.content[data-v-f6af00e8]{color:var(--color-fg);font-weight:700}@supports (grid-template-columns: subgrid){.wb-subwidget[data-v-2aa2b95f]{border-top:.5px solid var(--color-scale);display:grid;grid-template-columns:subgrid;grid-column:1 / 13}.wb-subwidget-noborder[data-v-2aa2b95f]{margin-top:20px;display:grid;grid-template-columns:subgrid;grid-column:1 / 13;padding-top:10px}}@supports not (grid-template-columns: subgrid){.wb-subwidget[data-v-2aa2b95f]{border-top:.5px solid var(--color-scale);display:grid;grid-template-columns:repeat(12,auto);grid-column:1 / 13}.wb-subwidget-noborder[data-v-2aa2b95f]{margin-top:20px;display:grid;grid-template-columns:subgrid;grid-column:1 / 13}}.titlerow[data-v-2aa2b95f]{grid-column:1 / 13}@supports (grid-template-columns: subgrid){.contentrow[data-v-2aa2b95f]{display:grid;grid-template-columns:subgrid;grid-column:1 / 13;align-items:top}}@supports not (grid-template-columns: subgrid){.contentrow[data-v-2aa2b95f]{display:grid;align-items:top;grid-template-columns:repeat(12,auto)}}.widgetname[data-v-2aa2b95f]{font-weight:700;font-size:var(--font-large)}.infotext[data-v-25ab3fbb]{font-size:var(--font-settings);color:var(--color-battery)}.item-icon[data-v-25ab3fbb]{color:var(--color-menu);font-size:var(--font-settings)}.titlecolumn[data-v-25ab3fbb]{color:var(--color-fg);font-size:var(--font-settings);flex-grow:1}.selectors[data-v-25ab3fbb]{font-size:var(--font-settings)}.configitem[data-v-25ab3fbb]{font-size:var(--font-settings);display:flex;flex-direction:column;justify-content:stretch;align-items:stretch;height:100%;width:100%}.contentrow[data-v-25ab3fbb]{display:flex;height:100%;width:100%}.minlabel[data-v-af945965],.maxlabel[data-v-af945965]{color:var(--color-menu)}.valuelabel[data-v-af945965]{color:var(--color-fg)}.minusButton[data-v-af945965],.plusButton[data-v-af945965]{color:var(--color-menu)}.rangeIndicator[data-v-af945965]{margin:0;padding:0;line-height:10px}.rangeinput[data-v-af945965]{width:100%}.radiobutton[data-v-88c9ea7a]{border:.2px solid var(--color-menu);opacity:1;font-size:var(--font-settings-button);border-radius:0}.btn-outline-secondary.active[data-v-88c9ea7a]{background-color:var(--color-fg);border:1px solid var(--color-menu);box-shadow:0 .5rem 1rem #00000026;opacity:1}.buttongrid[data-v-88c9ea7a]{display:grid;border:1px solid var(--color-menu);border-radius:.5rem;justify-items:stretch;justify-self:stretch;width:100%}.chargeConfigSelect[data-v-e1b28964]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-e1b28964]{color:var(--color-charging);font-size:var(--font-settings);font-weight:700}.chargeConfigSelect[data-v-2ce28649]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-2ce28649]{color:var(--color-pv);font-size:var(--font-settings);font-weight:700}.subconfigstack[data-v-2ce28649]{display:grid;grid-template-columns:repeat(2,auto);width:100%}.subconfig[data-v-2ce28649]{justify-content:end;align-items:baseline;margin-left:1em;width:100%}.subconfigtitle[data-v-2ce28649]{margin-right:5px}.heading[data-v-2f5cb5c1]{font-size:var(--font-settings);color:var(--color-charging);font-weight:700;margin-bottom:.5rem}.plandetails[data-v-2f5cb5c1]{display:flex;flex-direction:column}.tablecell[data-v-0ab816f2]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;font-size:var(--font-settings)}.tableheader[data-v-0ab816f2]{color:var(--color-menu);background-color:var(--color-bg);text-align:center;font-style:normal}.heading[data-v-0ab816f2]{color:var(--color-battery);font-size:var(--font-settings);font-weight:700}.left[data-v-0ab816f2]{text-align:left}.text-bold[data-v-0ab816f2]{font-weight:700}.text-normal[data-v-0ab816f2]{font-weight:400}.fa-circle-info[data-v-0ab816f2]{color:var(--color-charging);cursor:pointer}.heading[data-v-eaa44cb2]{font-size:var(--font-settings);color:var(--color-charging);font-weight:700;margin-bottom:.5rem}.plandetails[data-v-eaa44cb2]{display:flex;flex-direction:column}.tablecell[data-v-c911e978]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;font-size:var(--font-settings)}.tableheader[data-v-c911e978]{color:var(--color-menu);background-color:var(--color-bg);text-align:center;font-style:normal}.heading[data-v-c911e978]{color:var(--color-battery);font-size:var(--font-settings);font-weight:700}.left[data-v-c911e978]{text-align:left}.right[data-v-c911e978]{text-align:right}.text-bold[data-v-c911e978]{font-weight:700}.text-normal[data-v-c911e978]{font-weight:400}.fa-circle-info[data-v-c911e978]{color:var(--color-charging);cursor:pointer}.color-charging[data-v-28b81885]{color:var(--color-charging)}.fa-circle-check[data-v-28b81885]{color:var(--color-menu)}.settingsheader[data-v-28b81885]{color:var(--color-charging);font-size:16px;font-weight:700}.providername[data-v-28b81885]{color:var(--color-axis);font-size:16px}.jumpbutton[data-v-28b81885]{background-color:var(--color-menu);color:var(--color-bg);border:0;font-size:var(--font-settings-button)}.confirmButton[data-v-28b81885]{font-size:var(--font-settings-button)}.chargeConfigSelect[data-v-3ad56f95]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-3ad56f95]{color:var(--color-devices);font-size:var(--font-settings);font-weight:700}.subconfigstack[data-v-3ad56f95]{display:grid;grid-template-columns:repeat(2,auto);width:100%}.subconfig[data-v-3ad56f95]{justify-content:end;align-items:baseline;margin-left:1em;width:100%}.subconfigtitle[data-v-3ad56f95]{margin-right:5px}.status-string[data-v-bf66e6b3]{font-size:var(--font-normal);font-style:italic;color:var(--color-battery)}.chargeConfigSelect[data-v-bf66e6b3]{background:var(--color-bg);color:var(--color-fg)}.chargeModeOption[data-v-bf66e6b3]{background:green;color:#00f}.nav-tabs .nav-link[data-v-bf66e6b3]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-bf66e6b3]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-bf66e6b3]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:1px solid var(--color-menu)}.settingsheader[data-v-bf66e6b3]{color:var(--color-charging);font-size:16px;font-weight:700}hr[data-v-bf66e6b3]{color:var(--color-menu)}.status-string[data-v-6ffc2337]{font-size:var(--font-settings);font-style:italic;color:var(--color-battery)}.nav-tabs .nav-link[data-v-6ffc2337]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-6ffc2337]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-6ffc2337]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:0px solid var(--color-menu)}.heading[data-v-6ffc2337]{color:var(--color-menu)}.item[data-v-6ffc2337]{grid-column:span 12}.tabarea[data-v-6ffc2337]{justify-self:stretch}.batIcon[data-v-a68c844a]{color:var(--color-menu)}.wb-widget[data-v-fb6ac7a4]{width:100%;height:100%;border-radius:30px}.widgetname[data-v-fb6ac7a4]{font-weight:700;color:var(--color-fg);font-size:var(--font-large)}.pillWbBadge[data-v-36112fa3]{font-size:(var--font-small);font-weight:regular;display:flex;justify-content:center;align-items:center}.fa-star[data-v-8a217eeb]{color:var(--color-evu)}.fa-clock[data-v-8a217eeb]{color:var(--color-charging)}.fa-car[data-v-8a217eeb],.fa-ellipsis-vertical[data-v-8a217eeb],.fa-circle-check[data-v-8a217eeb]{color:var(--color-menu)}.socEditor[data-v-8a217eeb]{border:1px solid var(--color-menu);justify-self:stretch}.targetCurrent[data-v-8a217eeb]{color:var(--color-menu)}.priceEditor[data-v-8a217eeb]{border:1px solid var(--color-menu);justify-self:stretch}.chargemodes[data-v-8a217eeb]{grid-column:1 / 13;justify-self:center}.chargeinfo[data-v-8a217eeb]{display:grid;grid-template-columns:repeat(12,auto);justify-content:space-between}.errorWbBadge[data-v-8a217eeb]{color:var(--color-bg);background-color:var(--color-evu);font-size:var(--font-small)}.divider[data-v-8a217eeb]{color:var(--color-fg)}.blue[data-v-8a217eeb]{color:var(--color-charging)}.close-config-button[data-v-8a217eeb]{background:var(--color-menu);color:var(--color-bg);grid-column:11 / span 2;font-size:var(--font-settings-button)}.carSelector[data-v-8a217eeb]{border:1px solid var(--color-menu);font-size:var(--font-settings);border-radius:3px;display:flex;flex-direction:column}@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.modal-footer[data-v-eaefae30],.modal-header[data-v-eaefae30],.modal-body[data-v-eaefae30]{background:var(--color-bg)}.btn-close[data-v-eaefae30]{color:var(--color-fg)}.modal-footer[data-v-eaefae30]{text-align:right}.modal-header .btn-close[data-v-eaefae30]{color:var(--color-fg);background:var(--color-bg);border:0px}.modal.fade .modal-dialog[data-v-eaefae30]{transition:transform 1s ease-out;transform:none;scale:.6}.modal.show .modal-dialog[data-v-eaefae30]{transition:transform .3s ease-in;transform:none;scale:1}.tablerow[data-v-ba15dbc4]{margin:14px;border-top:.1px solid var(--color-scale)}.tablecell[data-v-ba15dbc4]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;padding-top:2px;padding-left:2px;padding-right:2px;vertical-align:baseline;line-height:1.4rem;font-size:var(--font-small)}.buttoncell[data-v-ba15dbc4]{background-color:var(--color-bg);padding:0;margin:0}.left[data-v-ba15dbc4]{text-align:left}.tablecell.right[data-v-ba15dbc4]{text-align:right}.tablecolum1[data-v-ba15dbc4]{color:var(--color-fg);text-align:left;margin:0;padding:0}.tableicon[data-v-ba15dbc4]{color:var(--color-menu)}.fa-star[data-v-ba15dbc4]{color:var(--color-evu)}.fa-clock[data-v-ba15dbc4]{color:var(--color-battery)}.socEditor[data-v-ba15dbc4]{border:1px solid var(--color-menu);background-color:var(--color-bg)}.socEditRow td[data-v-ba15dbc4]{background-color:var(--color-bg)}.fa-circle-check[data-v-ba15dbc4]{color:var(--color-menu)}.socEditTitle[data-v-ba15dbc4]{color:var(--color-fg)}.statusbadge[data-v-ba15dbc4]{background-color:var(--color-bg);font-weight:700;font-size:var(--font-verysmall)}.modebadge[data-v-ba15dbc4]{color:var(--color-bg)}.cpname[data-v-ba15dbc4]{font-size:var(--font-small)}.fa-edit[data-v-ba15dbc4]{color:var(--color-menu)}.infolist[data-v-ba15dbc4]{justify-content:center}.tableheader[data-v-b8c6b557]{margin:0;padding-left:0;background-color:var(--color-bg);color:var(--color-menu)}.alignleft[data-v-b8c6b557]{text-align:left}.aligncenter[data-v-b8c6b557]{text-align:center}.alignright[data-v-b8c6b557]{text-align:right}.table[data-v-b8c6b557]{border-spacing:1rem;background-color:var(--color-bg)}.priceWbBadge[data-v-b8c6b557]{background-color:var(--color-menu);font-weight:400}.fa-charging-station[data-v-b8c6b557]{color:var(--color-charging)}.plugIndicator[data-v-71bb7e5f]{color:#fff;border:1px solid white}.chargeButton[data-v-71bb7e5f]{color:#fff}.left[data-v-71bb7e5f]{float:left}.right[data-v-71bb7e5f]{float:right}.center[data-v-71bb7e5f]{margin:auto}.time-display[data-v-791e4be0]{font-weight:700;color:var(--color-menu);font-size:var(--font-normal)}.battery-title[data-v-f7f825f7]{color:var(--color-battery);font-size:var(--font-medium)}.battery-color[data-v-325bd635]{color:var(--color-battery)}.fg-color[data-v-325bd635]{color:var(--color-fg)}.menu-color[data-v-325bd635],.todaystring[data-v-325bd635]{color:var(--color-menu)}.devicename[data-v-20651ac6]{font-size:var(--font-medium)}.statusbutton[data-v-20651ac6]{font-size:var(--font-extralarge)}.sh-title[data-v-5b5cf6b3]{color:var(--color-title)}.tableheader[data-v-5b5cf6b3]{background-color:var(--color-bg);color:var(--color-menu)}.fa-ellipsis-vertical[data-v-5b5cf6b3],.fa-circle-check[data-v-5b5cf6b3]{color:var(--color-menu)}.smarthome[data-v-5b5cf6b3]{color:var(--color-devices)}.idWbBadge[data-v-01dd8c4d]{background-color:var(--color-menu);font-weight:400}.countername[data-v-01dd8c4d]{font-size:var(--font-medium)}.statusbutton[data-v-5f059284]{font-size:var(--font-large)}.modebutton[data-v-5f059284]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempWbBadge[data-v-5f059284]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.idWbBadge[data-v-9e2cb63e]{background-color:var(--color-menu);font-weight:400}.status-string[data-v-9e2cb63e]{text-align:center}.vehiclename[data-v-9e2cb63e]{font-size:var(--font-medium)}.statusbutton[data-v-716be083]{font-size:var(--font-large)}.modebutton[data-v-716be083]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempWbBadge[data-v-716be083]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.priceWbBadge[data-v-578b98b5]{background-color:var(--color-charging);font-weight:400}.providerWbBadge[data-v-578b98b5]{background-color:var(--color-menu);font-weight:400}.grapharea[data-v-578b98b5]{grid-column-start:1;grid-column-end:13;width:100%;object-fit:cover;max-height:100%;justify-items:stretch}.pricefigure[data-v-578b98b5]{justify-self:stretch}.modeWbBadge[data-v-258d8f17]{background-color:var(--color-pv);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.invertername[data-v-258d8f17]{font-size:var(--font-medium)}.powerWbBadge[data-v-b7a71f81]{background-color:var(--color-pv);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.button[data-v-17424929]{color:var(--color-fg)}.name[data-v-df7e578a]{font-size:1rem;color:#000;border:1px solid white}.content[data-v-df7e578a]{grid-column:1 / -1;border:solid 1px black;border-radius:10px}.sublist[data-v-df7e578a]{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.mqviewer[data-v-a349646d]{background-color:#fff;color:#000}.topiclist[data-v-a349646d]{display:grid;grid-template-columns:repeat(40,1fr)}.topnode[data-v-a349646d]{grid-column-start:1;grid-column-end:-1}.mqtitle[data-v-a349646d]{color:#000}.form-select[data-v-5e33ce1f]{background-color:var(--color-input);color:#000;border:1px solid var(--color-bg);font-size:var(--font-settings)}.fa-circle-check[data-v-785bc80b]{font-size:var(--font-large);background-color:var(--color-bg);color:var(--color-menu)}.closebutton[data-v-785bc80b]{justify-self:end}.settingscolumn[data-v-785bc80b]{padding:20px}.nav-tabs[data-v-0542a138]{border-bottom:.5px solid var(--color-menu);background-color:var(--color-bg)}.nav-tabs .nav-link[data-v-0542a138]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-0542a138]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-0542a138]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:.5px solid var(--color-menu);border-bottom:0px solid var(--color-menu);box-shadow:0 .5rem 1rem #00000026}.fa-circle-info[data-v-0542a138]{color:var(--color-fg)}.fa-charging-station[data-v-0542a138]{color:var(--color-charging)}.fa-car-battery[data-v-0542a138]{color:var(--color-battery)}.fa-plug[data-v-0542a138]{color:var(--color-devices)}.fa-bolt[data-v-0542a138]{color:var(--color-evu)}.fa-car[data-v-0542a138]{color:var(--color-charging)}.fa-coins[data-v-0542a138]{color:var(--color-battery)}.fa-solar-panel[data-v-0542a138]{color:var(--color-pv)}.navbar[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg);font-size:var(--font-normal)}.dropdown-menu[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg)}.dropdown-item[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg);font-size:var(--font-normal)}.btn[data-v-ed619966]{font-size:var(--font-medium);background-color:var(--color-bg);color:var(--color-fg)}.navbar-brand[data-v-ed619966]{font-weight:700;color:var(--color-fg);font-size:var(--font-normal)}.nav-link[data-v-ed619966]{color:var(--color-fg);border-color:red;font-size:var(--font-normal)}.navbar-toggler[data-v-ed619966]{color:var(--color-fg);border-color:var(--color-bg)}.navbar-time[data-v-ed619966]{font-weight:700;color:var(--color-menu);font-size:var(--font-normal)}.fa{font-family:var(--fa-style-family, "Font Awesome 6 Free");font-weight:var(--fa-style, 900)}.fa,.fa-brands,.fa-duotone,.fa-light,.fa-regular,.fa-solid,.fa-thin,.fab,.fad,.fal,.far,.fas,.fat{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display, inline-block);font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.08333em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.07143em;vertical-align:.05357em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.04167em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin, 2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width, 2em) * -1);position:absolute;text-align:center;width:var(--fa-li-width, 2em);line-height:inherit}.fa-border{border-radius:var(--fa-border-radius, .1em);border:var(--fa-border-width, .08em) var(--fa-border-style, solid) var(--fa-border-color, #eee);padding:var(--fa-border-padding, .2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin, .3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin, .3em)}.fa-beat{-webkit-animation-name:fa-beat;animation-name:fa-beat;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, ease-in-out);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-bounce{-webkit-animation-name:fa-bounce;animation-name:fa-bounce;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.28, .84, .42, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.28, .84, .42, 1) )}.fa-fade{-webkit-animation-name:fa-fade;animation-name:fa-fade;-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) )}.fa-beat-fade,.fa-fade{-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s)}.fa-beat-fade{-webkit-animation-name:fa-beat-fade;animation-name:fa-beat-fade;-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) )}.fa-flip{-webkit-animation-name:fa-flip;animation-name:fa-flip;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, ease-in-out);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-shake{-webkit-animation-name:fa-shake;animation-name:fa-shake;-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, linear);animation-timing-function:var(--fa-animation-timing, linear)}.fa-shake,.fa-spin{-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal)}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-duration:var(--fa-animation-duration, 2s);animation-duration:var(--fa-animation-duration, 2s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, linear);animation-timing-function:var(--fa-animation-timing, linear)}.fa-spin-reverse{--fa-animation-direction: reverse}.fa-pulse,.fa-spin-pulse{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, steps(8));animation-timing-function:var(--fa-animation-timing, steps(8))}@media (prefers-reduced-motion: reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@-webkit-keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale, 1.25));transform:scale(var(--fa-beat-scale, 1.25))}}@keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale, 1.25));transform:scale(var(--fa-beat-scale, 1.25))}}@-webkit-keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em));transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em));transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em));transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em));transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@-webkit-keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, .4)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, .4)}}@-webkit-keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity, .4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale, 1.125));transform:scale(var(--fa-beat-fade-scale, 1.125))}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity, .4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale, 1.125));transform:scale(var(--fa-beat-fade-scale, 1.125))}}@-webkit-keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg));transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg))}}@keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg));transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg))}}@-webkit-keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}.fa-rotate-by{-webkit-transform:rotate(var(--fa-rotate-angle, none));transform:rotate(var(--fa-rotate-angle, none))}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%;z-index:var(--fa-stack-z-index, auto)}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:var(--fa-inverse, #fff)}.fa-0:before{content:"0"}.fa-1:before{content:"1"}.fa-2:before{content:"2"}.fa-3:before{content:"3"}.fa-4:before{content:"4"}.fa-5:before{content:"5"}.fa-6:before{content:"6"}.fa-7:before{content:"7"}.fa-8:before{content:"8"}.fa-9:before{content:"9"}.fa-a:before{content:"A"}.fa-address-book:before,.fa-contact-book:before{content:""}.fa-address-card:before,.fa-contact-card:before,.fa-vcard:before{content:""}.fa-align-center:before{content:""}.fa-align-justify:before{content:""}.fa-align-left:before{content:""}.fa-align-right:before{content:""}.fa-anchor:before{content:""}.fa-angle-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-double-down:before,.fa-angles-down:before{content:""}.fa-angle-double-left:before,.fa-angles-left:before{content:""}.fa-angle-double-right:before,.fa-angles-right:before{content:""}.fa-angle-double-up:before,.fa-angles-up:before{content:""}.fa-ankh:before{content:""}.fa-apple-alt:before,.fa-apple-whole:before{content:""}.fa-archway:before{content:""}.fa-arrow-down:before{content:""}.fa-arrow-down-1-9:before,.fa-sort-numeric-asc:before,.fa-sort-numeric-down:before{content:""}.fa-arrow-down-9-1:before,.fa-sort-numeric-desc:before,.fa-sort-numeric-down-alt:before{content:""}.fa-arrow-down-a-z:before,.fa-sort-alpha-asc:before,.fa-sort-alpha-down:before{content:""}.fa-arrow-down-long:before,.fa-long-arrow-down:before{content:""}.fa-arrow-down-short-wide:before,.fa-sort-amount-desc:before,.fa-sort-amount-down-alt:before{content:""}.fa-arrow-down-wide-short:before,.fa-sort-amount-asc:before,.fa-sort-amount-down:before{content:""}.fa-arrow-down-z-a:before,.fa-sort-alpha-desc:before,.fa-sort-alpha-down-alt:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-left-long:before,.fa-long-arrow-left:before{content:""}.fa-arrow-pointer:before,.fa-mouse-pointer:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-right-arrow-left:before,.fa-exchange:before{content:""}.fa-arrow-right-from-bracket:before,.fa-sign-out:before{content:""}.fa-arrow-right-long:before,.fa-long-arrow-right:before{content:""}.fa-arrow-right-to-bracket:before,.fa-sign-in:before{content:""}.fa-arrow-left-rotate:before,.fa-arrow-rotate-back:before,.fa-arrow-rotate-backward:before,.fa-arrow-rotate-left:before,.fa-undo:before{content:""}.fa-arrow-right-rotate:before,.fa-arrow-rotate-forward:before,.fa-arrow-rotate-right:before,.fa-redo:before{content:""}.fa-arrow-trend-down:before{content:""}.fa-arrow-trend-up:before{content:""}.fa-arrow-turn-down:before,.fa-level-down:before{content:""}.fa-arrow-turn-up:before,.fa-level-up:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-up-1-9:before,.fa-sort-numeric-up:before{content:""}.fa-arrow-up-9-1:before,.fa-sort-numeric-up-alt:before{content:""}.fa-arrow-up-a-z:before,.fa-sort-alpha-up:before{content:""}.fa-arrow-up-from-bracket:before{content:""}.fa-arrow-up-long:before,.fa-long-arrow-up:before{content:""}.fa-arrow-up-right-from-square:before,.fa-external-link:before{content:""}.fa-arrow-up-short-wide:before,.fa-sort-amount-up-alt:before{content:""}.fa-arrow-up-wide-short:before,.fa-sort-amount-up:before{content:""}.fa-arrow-up-z-a:before,.fa-sort-alpha-up-alt:before{content:""}.fa-arrows-h:before,.fa-arrows-left-right:before{content:""}.fa-arrows-rotate:before,.fa-refresh:before,.fa-sync:before{content:""}.fa-arrows-up-down:before,.fa-arrows-v:before{content:""}.fa-arrows-up-down-left-right:before,.fa-arrows:before{content:""}.fa-asterisk:before{content:"*"}.fa-at:before{content:"@"}.fa-atom:before{content:""}.fa-audio-description:before{content:""}.fa-austral-sign:before{content:""}.fa-award:before{content:""}.fa-b:before{content:"B"}.fa-baby:before{content:""}.fa-baby-carriage:before,.fa-carriage-baby:before{content:""}.fa-backward:before{content:""}.fa-backward-fast:before,.fa-fast-backward:before{content:""}.fa-backward-step:before,.fa-step-backward:before{content:""}.fa-bacon:before{content:""}.fa-bacteria:before{content:""}.fa-bacterium:before{content:""}.fa-bag-shopping:before,.fa-shopping-bag:before{content:""}.fa-bahai:before{content:""}.fa-baht-sign:before{content:""}.fa-ban:before,.fa-cancel:before{content:""}.fa-ban-smoking:before,.fa-smoking-ban:before{content:""}.fa-band-aid:before,.fa-bandage:before{content:""}.fa-barcode:before{content:""}.fa-bars:before,.fa-navicon:before{content:""}.fa-bars-progress:before,.fa-tasks-alt:before{content:""}.fa-bars-staggered:before,.fa-reorder:before,.fa-stream:before{content:""}.fa-baseball-ball:before,.fa-baseball:before{content:""}.fa-baseball-bat-ball:before{content:""}.fa-basket-shopping:before,.fa-shopping-basket:before{content:""}.fa-basketball-ball:before,.fa-basketball:before{content:""}.fa-bath:before,.fa-bathtub:before{content:""}.fa-battery-0:before,.fa-battery-empty:before{content:""}.fa-battery-5:before,.fa-battery-full:before,.fa-battery:before{content:""}.fa-battery-3:before,.fa-battery-half:before{content:""}.fa-battery-2:before,.fa-battery-quarter:before{content:""}.fa-battery-4:before,.fa-battery-three-quarters:before{content:""}.fa-bed:before{content:""}.fa-bed-pulse:before,.fa-procedures:before{content:""}.fa-beer-mug-empty:before,.fa-beer:before{content:""}.fa-bell:before{content:""}.fa-bell-concierge:before,.fa-concierge-bell:before{content:""}.fa-bell-slash:before{content:""}.fa-bezier-curve:before{content:""}.fa-bicycle:before{content:""}.fa-binoculars:before{content:""}.fa-biohazard:before{content:""}.fa-bitcoin-sign:before{content:""}.fa-blender:before{content:""}.fa-blender-phone:before{content:""}.fa-blog:before{content:""}.fa-bold:before{content:""}.fa-bolt:before,.fa-zap:before{content:""}.fa-bolt-lightning:before{content:""}.fa-bomb:before{content:""}.fa-bone:before{content:""}.fa-bong:before{content:""}.fa-book:before{content:""}.fa-atlas:before,.fa-book-atlas:before{content:""}.fa-bible:before,.fa-book-bible:before{content:""}.fa-book-journal-whills:before,.fa-journal-whills:before{content:""}.fa-book-medical:before{content:""}.fa-book-open:before{content:""}.fa-book-open-reader:before,.fa-book-reader:before{content:""}.fa-book-quran:before,.fa-quran:before{content:""}.fa-book-dead:before,.fa-book-skull:before{content:""}.fa-bookmark:before{content:""}.fa-border-all:before{content:""}.fa-border-none:before{content:""}.fa-border-style:before,.fa-border-top-left:before{content:""}.fa-bowling-ball:before{content:""}.fa-box:before{content:""}.fa-archive:before,.fa-box-archive:before{content:""}.fa-box-open:before{content:""}.fa-box-tissue:before{content:""}.fa-boxes-alt:before,.fa-boxes-stacked:before,.fa-boxes:before{content:""}.fa-braille:before{content:""}.fa-brain:before{content:""}.fa-brazilian-real-sign:before{content:""}.fa-bread-slice:before{content:""}.fa-briefcase:before{content:""}.fa-briefcase-medical:before{content:""}.fa-broom:before{content:""}.fa-broom-ball:before,.fa-quidditch-broom-ball:before,.fa-quidditch:before{content:""}.fa-brush:before{content:""}.fa-bug:before{content:""}.fa-bug-slash:before{content:""}.fa-building:before{content:""}.fa-bank:before,.fa-building-columns:before,.fa-institution:before,.fa-museum:before,.fa-university:before{content:""}.fa-bullhorn:before{content:""}.fa-bullseye:before{content:""}.fa-burger:before,.fa-hamburger:before{content:""}.fa-bus:before{content:""}.fa-bus-alt:before,.fa-bus-simple:before{content:""}.fa-briefcase-clock:before,.fa-business-time:before{content:""}.fa-c:before{content:"C"}.fa-birthday-cake:before,.fa-cake-candles:before,.fa-cake:before{content:""}.fa-calculator:before{content:""}.fa-calendar:before{content:""}.fa-calendar-check:before{content:""}.fa-calendar-day:before{content:""}.fa-calendar-alt:before,.fa-calendar-days:before{content:""}.fa-calendar-minus:before{content:""}.fa-calendar-plus:before{content:""}.fa-calendar-week:before{content:""}.fa-calendar-times:before,.fa-calendar-xmark:before{content:""}.fa-camera-alt:before,.fa-camera:before{content:""}.fa-camera-retro:before{content:""}.fa-camera-rotate:before{content:""}.fa-campground:before{content:""}.fa-candy-cane:before{content:""}.fa-cannabis:before{content:""}.fa-capsules:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-battery-car:before,.fa-car-battery:before{content:""}.fa-car-crash:before{content:""}.fa-car-alt:before,.fa-car-rear:before{content:""}.fa-car-side:before{content:""}.fa-caravan:before{content:""}.fa-caret-down:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-caret-up:before{content:""}.fa-carrot:before{content:""}.fa-cart-arrow-down:before{content:""}.fa-cart-flatbed:before,.fa-dolly-flatbed:before{content:""}.fa-cart-flatbed-suitcase:before,.fa-luggage-cart:before{content:""}.fa-cart-plus:before{content:""}.fa-cart-shopping:before,.fa-shopping-cart:before{content:""}.fa-cash-register:before{content:""}.fa-cat:before{content:""}.fa-cedi-sign:before{content:""}.fa-cent-sign:before{content:""}.fa-certificate:before{content:""}.fa-chair:before{content:""}.fa-blackboard:before,.fa-chalkboard:before{content:""}.fa-chalkboard-teacher:before,.fa-chalkboard-user:before{content:""}.fa-champagne-glasses:before,.fa-glass-cheers:before{content:""}.fa-charging-station:before{content:""}.fa-area-chart:before,.fa-chart-area:before{content:""}.fa-bar-chart:before,.fa-chart-bar:before{content:""}.fa-chart-column:before{content:""}.fa-chart-gantt:before{content:""}.fa-chart-line:before,.fa-line-chart:before{content:""}.fa-chart-pie:before,.fa-pie-chart:before{content:""}.fa-check:before{content:""}.fa-check-double:before{content:""}.fa-check-to-slot:before,.fa-vote-yea:before{content:""}.fa-cheese:before{content:""}.fa-chess:before{content:""}.fa-chess-bishop:before{content:""}.fa-chess-board:before{content:""}.fa-chess-king:before{content:""}.fa-chess-knight:before{content:""}.fa-chess-pawn:before{content:""}.fa-chess-queen:before{content:""}.fa-chess-rook:before{content:""}.fa-chevron-down:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-chevron-up:before{content:""}.fa-child:before{content:""}.fa-church:before{content:""}.fa-circle:before{content:""}.fa-arrow-circle-down:before,.fa-circle-arrow-down:before{content:""}.fa-arrow-circle-left:before,.fa-circle-arrow-left:before{content:""}.fa-arrow-circle-right:before,.fa-circle-arrow-right:before{content:""}.fa-arrow-circle-up:before,.fa-circle-arrow-up:before{content:""}.fa-check-circle:before,.fa-circle-check:before{content:""}.fa-chevron-circle-down:before,.fa-circle-chevron-down:before{content:""}.fa-chevron-circle-left:before,.fa-circle-chevron-left:before{content:""}.fa-chevron-circle-right:before,.fa-circle-chevron-right:before{content:""}.fa-chevron-circle-up:before,.fa-circle-chevron-up:before{content:""}.fa-circle-dollar-to-slot:before,.fa-donate:before{content:""}.fa-circle-dot:before,.fa-dot-circle:before{content:""}.fa-arrow-alt-circle-down:before,.fa-circle-down:before{content:""}.fa-circle-exclamation:before,.fa-exclamation-circle:before{content:""}.fa-circle-h:before,.fa-hospital-symbol:before{content:""}.fa-adjust:before,.fa-circle-half-stroke:before{content:""}.fa-circle-info:before,.fa-info-circle:before{content:""}.fa-arrow-alt-circle-left:before,.fa-circle-left:before{content:""}.fa-circle-minus:before,.fa-minus-circle:before{content:""}.fa-circle-notch:before{content:""}.fa-circle-pause:before,.fa-pause-circle:before{content:""}.fa-circle-play:before,.fa-play-circle:before{content:""}.fa-circle-plus:before,.fa-plus-circle:before{content:""}.fa-circle-question:before,.fa-question-circle:before{content:""}.fa-circle-radiation:before,.fa-radiation-alt:before{content:""}.fa-arrow-alt-circle-right:before,.fa-circle-right:before{content:""}.fa-circle-stop:before,.fa-stop-circle:before{content:""}.fa-arrow-alt-circle-up:before,.fa-circle-up:before{content:""}.fa-circle-user:before,.fa-user-circle:before{content:""}.fa-circle-xmark:before,.fa-times-circle:before,.fa-xmark-circle:before{content:""}.fa-city:before{content:""}.fa-clapperboard:before{content:""}.fa-clipboard:before{content:""}.fa-clipboard-check:before{content:""}.fa-clipboard-list:before{content:""}.fa-clock-four:before,.fa-clock:before{content:""}.fa-clock-rotate-left:before,.fa-history:before{content:""}.fa-clone:before{content:""}.fa-closed-captioning:before{content:""}.fa-cloud:before{content:""}.fa-cloud-arrow-down:before,.fa-cloud-download-alt:before,.fa-cloud-download:before{content:""}.fa-cloud-arrow-up:before,.fa-cloud-upload-alt:before,.fa-cloud-upload:before{content:""}.fa-cloud-meatball:before{content:""}.fa-cloud-moon:before{content:""}.fa-cloud-moon-rain:before{content:""}.fa-cloud-rain:before{content:""}.fa-cloud-showers-heavy:before{content:""}.fa-cloud-sun:before{content:""}.fa-cloud-sun-rain:before{content:""}.fa-clover:before{content:""}.fa-code:before{content:""}.fa-code-branch:before{content:""}.fa-code-commit:before{content:""}.fa-code-compare:before{content:""}.fa-code-fork:before{content:""}.fa-code-merge:before{content:""}.fa-code-pull-request:before{content:""}.fa-coins:before{content:""}.fa-colon-sign:before{content:""}.fa-comment:before{content:""}.fa-comment-dollar:before{content:""}.fa-comment-dots:before,.fa-commenting:before{content:""}.fa-comment-medical:before{content:""}.fa-comment-slash:before{content:""}.fa-comment-sms:before,.fa-sms:before{content:""}.fa-comments:before{content:""}.fa-comments-dollar:before{content:""}.fa-compact-disc:before{content:""}.fa-compass:before{content:""}.fa-compass-drafting:before,.fa-drafting-compass:before{content:""}.fa-compress:before{content:""}.fa-computer-mouse:before,.fa-mouse:before{content:""}.fa-cookie:before{content:""}.fa-cookie-bite:before{content:""}.fa-copy:before{content:""}.fa-copyright:before{content:""}.fa-couch:before{content:""}.fa-credit-card-alt:before,.fa-credit-card:before{content:""}.fa-crop:before{content:""}.fa-crop-alt:before,.fa-crop-simple:before{content:""}.fa-cross:before{content:""}.fa-crosshairs:before{content:""}.fa-crow:before{content:""}.fa-crown:before{content:""}.fa-crutch:before{content:""}.fa-cruzeiro-sign:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-d:before{content:"D"}.fa-database:before{content:""}.fa-backspace:before,.fa-delete-left:before{content:""}.fa-democrat:before{content:""}.fa-desktop-alt:before,.fa-desktop:before{content:""}.fa-dharmachakra:before{content:""}.fa-diagram-next:before{content:""}.fa-diagram-predecessor:before{content:""}.fa-diagram-project:before,.fa-project-diagram:before{content:""}.fa-diagram-successor:before{content:""}.fa-diamond:before{content:""}.fa-diamond-turn-right:before,.fa-directions:before{content:""}.fa-dice:before{content:""}.fa-dice-d20:before{content:""}.fa-dice-d6:before{content:""}.fa-dice-five:before{content:""}.fa-dice-four:before{content:""}.fa-dice-one:before{content:""}.fa-dice-six:before{content:""}.fa-dice-three:before{content:""}.fa-dice-two:before{content:""}.fa-disease:before{content:""}.fa-divide:before{content:""}.fa-dna:before{content:""}.fa-dog:before{content:""}.fa-dollar-sign:before,.fa-dollar:before,.fa-usd:before{content:"$"}.fa-dolly-box:before,.fa-dolly:before{content:""}.fa-dong-sign:before{content:""}.fa-door-closed:before{content:""}.fa-door-open:before{content:""}.fa-dove:before{content:""}.fa-compress-alt:before,.fa-down-left-and-up-right-to-center:before{content:""}.fa-down-long:before,.fa-long-arrow-alt-down:before{content:""}.fa-download:before{content:""}.fa-dragon:before{content:""}.fa-draw-polygon:before{content:""}.fa-droplet:before,.fa-tint:before{content:""}.fa-droplet-slash:before,.fa-tint-slash:before{content:""}.fa-drum:before{content:""}.fa-drum-steelpan:before{content:""}.fa-drumstick-bite:before{content:""}.fa-dumbbell:before{content:""}.fa-dumpster:before{content:""}.fa-dumpster-fire:before{content:""}.fa-dungeon:before{content:""}.fa-e:before{content:"E"}.fa-deaf:before,.fa-deafness:before,.fa-ear-deaf:before,.fa-hard-of-hearing:before{content:""}.fa-assistive-listening-systems:before,.fa-ear-listen:before{content:""}.fa-earth-africa:before,.fa-globe-africa:before{content:""}.fa-earth-america:before,.fa-earth-americas:before,.fa-earth:before,.fa-globe-americas:before{content:""}.fa-earth-asia:before,.fa-globe-asia:before{content:""}.fa-earth-europe:before,.fa-globe-europe:before{content:""}.fa-earth-oceania:before,.fa-globe-oceania:before{content:""}.fa-egg:before{content:""}.fa-eject:before{content:""}.fa-elevator:before{content:""}.fa-ellipsis-h:before,.fa-ellipsis:before{content:""}.fa-ellipsis-v:before,.fa-ellipsis-vertical:before{content:""}.fa-envelope:before{content:""}.fa-envelope-open:before{content:""}.fa-envelope-open-text:before{content:""}.fa-envelopes-bulk:before,.fa-mail-bulk:before{content:""}.fa-equals:before{content:"="}.fa-eraser:before{content:""}.fa-ethernet:before{content:""}.fa-eur:before,.fa-euro-sign:before,.fa-euro:before{content:""}.fa-exclamation:before{content:"!"}.fa-expand:before{content:""}.fa-eye:before{content:""}.fa-eye-dropper-empty:before,.fa-eye-dropper:before,.fa-eyedropper:before{content:""}.fa-eye-low-vision:before,.fa-low-vision:before{content:""}.fa-eye-slash:before{content:""}.fa-f:before{content:"F"}.fa-angry:before,.fa-face-angry:before{content:""}.fa-dizzy:before,.fa-face-dizzy:before{content:""}.fa-face-flushed:before,.fa-flushed:before{content:""}.fa-face-frown:before,.fa-frown:before{content:""}.fa-face-frown-open:before,.fa-frown-open:before{content:""}.fa-face-grimace:before,.fa-grimace:before{content:""}.fa-face-grin:before,.fa-grin:before{content:""}.fa-face-grin-beam:before,.fa-grin-beam:before{content:""}.fa-face-grin-beam-sweat:before,.fa-grin-beam-sweat:before{content:""}.fa-face-grin-hearts:before,.fa-grin-hearts:before{content:""}.fa-face-grin-squint:before,.fa-grin-squint:before{content:""}.fa-face-grin-squint-tears:before,.fa-grin-squint-tears:before{content:""}.fa-face-grin-stars:before,.fa-grin-stars:before{content:""}.fa-face-grin-tears:before,.fa-grin-tears:before{content:""}.fa-face-grin-tongue:before,.fa-grin-tongue:before{content:""}.fa-face-grin-tongue-squint:before,.fa-grin-tongue-squint:before{content:""}.fa-face-grin-tongue-wink:before,.fa-grin-tongue-wink:before{content:""}.fa-face-grin-wide:before,.fa-grin-alt:before{content:""}.fa-face-grin-wink:before,.fa-grin-wink:before{content:""}.fa-face-kiss:before,.fa-kiss:before{content:""}.fa-face-kiss-beam:before,.fa-kiss-beam:before{content:""}.fa-face-kiss-wink-heart:before,.fa-kiss-wink-heart:before{content:""}.fa-face-laugh:before,.fa-laugh:before{content:""}.fa-face-laugh-beam:before,.fa-laugh-beam:before{content:""}.fa-face-laugh-squint:before,.fa-laugh-squint:before{content:""}.fa-face-laugh-wink:before,.fa-laugh-wink:before{content:""}.fa-face-meh:before,.fa-meh:before{content:""}.fa-face-meh-blank:before,.fa-meh-blank:before{content:""}.fa-face-rolling-eyes:before,.fa-meh-rolling-eyes:before{content:""}.fa-face-sad-cry:before,.fa-sad-cry:before{content:""}.fa-face-sad-tear:before,.fa-sad-tear:before{content:""}.fa-face-smile:before,.fa-smile:before{content:""}.fa-face-smile-beam:before,.fa-smile-beam:before{content:""}.fa-face-smile-wink:before,.fa-smile-wink:before{content:""}.fa-face-surprise:before,.fa-surprise:before{content:""}.fa-face-tired:before,.fa-tired:before{content:""}.fa-fan:before{content:""}.fa-faucet:before{content:""}.fa-fax:before{content:""}.fa-feather:before{content:""}.fa-feather-alt:before,.fa-feather-pointed:before{content:""}.fa-file:before{content:""}.fa-file-arrow-down:before,.fa-file-download:before{content:""}.fa-file-arrow-up:before,.fa-file-upload:before{content:""}.fa-file-audio:before{content:""}.fa-file-code:before{content:""}.fa-file-contract:before{content:""}.fa-file-csv:before{content:""}.fa-file-excel:before{content:""}.fa-arrow-right-from-file:before,.fa-file-export:before{content:""}.fa-file-image:before{content:""}.fa-arrow-right-to-file:before,.fa-file-import:before{content:""}.fa-file-invoice:before{content:""}.fa-file-invoice-dollar:before{content:""}.fa-file-alt:before,.fa-file-lines:before,.fa-file-text:before{content:""}.fa-file-medical:before{content:""}.fa-file-pdf:before{content:""}.fa-file-powerpoint:before{content:""}.fa-file-prescription:before{content:""}.fa-file-signature:before{content:""}.fa-file-video:before{content:""}.fa-file-medical-alt:before,.fa-file-waveform:before{content:""}.fa-file-word:before{content:""}.fa-file-archive:before,.fa-file-zipper:before{content:""}.fa-fill:before{content:""}.fa-fill-drip:before{content:""}.fa-film:before{content:""}.fa-filter:before{content:""}.fa-filter-circle-dollar:before,.fa-funnel-dollar:before{content:""}.fa-filter-circle-xmark:before{content:""}.fa-fingerprint:before{content:""}.fa-fire:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-fire-alt:before,.fa-fire-flame-curved:before{content:""}.fa-burn:before,.fa-fire-flame-simple:before{content:""}.fa-fish:before{content:""}.fa-flag:before{content:""}.fa-flag-checkered:before{content:""}.fa-flag-usa:before{content:""}.fa-flask:before{content:""}.fa-floppy-disk:before,.fa-save:before{content:""}.fa-florin-sign:before{content:""}.fa-folder:before{content:""}.fa-folder-minus:before{content:""}.fa-folder-open:before{content:""}.fa-folder-plus:before{content:""}.fa-folder-tree:before{content:""}.fa-font:before{content:""}.fa-football-ball:before,.fa-football:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before,.fa-forward-fast:before{content:""}.fa-forward-step:before,.fa-step-forward:before{content:""}.fa-franc-sign:before{content:""}.fa-frog:before{content:""}.fa-futbol-ball:before,.fa-futbol:before,.fa-soccer-ball:before{content:""}.fa-g:before{content:"G"}.fa-gamepad:before{content:""}.fa-gas-pump:before{content:""}.fa-dashboard:before,.fa-gauge-med:before,.fa-gauge:before,.fa-tachometer-alt-average:before{content:""}.fa-gauge-high:before,.fa-tachometer-alt-fast:before,.fa-tachometer-alt:before{content:""}.fa-gauge-simple-med:before,.fa-gauge-simple:before,.fa-tachometer-average:before{content:""}.fa-gauge-simple-high:before,.fa-tachometer-fast:before,.fa-tachometer:before{content:""}.fa-gavel:before,.fa-legal:before{content:""}.fa-cog:before,.fa-gear:before{content:""}.fa-cogs:before,.fa-gears:before{content:""}.fa-gem:before{content:""}.fa-genderless:before{content:""}.fa-ghost:before{content:""}.fa-gift:before{content:""}.fa-gifts:before{content:""}.fa-glasses:before{content:""}.fa-globe:before{content:""}.fa-golf-ball-tee:before,.fa-golf-ball:before{content:""}.fa-gopuram:before{content:""}.fa-graduation-cap:before,.fa-mortar-board:before{content:""}.fa-greater-than:before{content:">"}.fa-greater-than-equal:before{content:""}.fa-grip-horizontal:before,.fa-grip:before{content:""}.fa-grip-lines:before{content:""}.fa-grip-lines-vertical:before{content:""}.fa-grip-vertical:before{content:""}.fa-guarani-sign:before{content:""}.fa-guitar:before{content:""}.fa-gun:before{content:""}.fa-h:before{content:"H"}.fa-hammer:before{content:""}.fa-hamsa:before{content:""}.fa-hand-paper:before,.fa-hand:before{content:""}.fa-hand-back-fist:before,.fa-hand-rock:before{content:""}.fa-allergies:before,.fa-hand-dots:before{content:""}.fa-fist-raised:before,.fa-hand-fist:before{content:""}.fa-hand-holding:before{content:""}.fa-hand-holding-dollar:before,.fa-hand-holding-usd:before{content:""}.fa-hand-holding-droplet:before,.fa-hand-holding-water:before{content:""}.fa-hand-holding-heart:before{content:""}.fa-hand-holding-medical:before{content:""}.fa-hand-lizard:before{content:""}.fa-hand-middle-finger:before{content:""}.fa-hand-peace:before{content:""}.fa-hand-point-down:before{content:""}.fa-hand-point-left:before{content:""}.fa-hand-point-right:before{content:""}.fa-hand-point-up:before{content:""}.fa-hand-pointer:before{content:""}.fa-hand-scissors:before{content:""}.fa-hand-sparkles:before{content:""}.fa-hand-spock:before{content:""}.fa-hands:before,.fa-sign-language:before,.fa-signing:before{content:""}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before,.fa-hands-american-sign-language-interpreting:before,.fa-hands-asl-interpreting:before{content:""}.fa-hands-bubbles:before,.fa-hands-wash:before{content:""}.fa-hands-clapping:before{content:""}.fa-hands-holding:before{content:""}.fa-hands-praying:before,.fa-praying-hands:before{content:""}.fa-handshake:before{content:""}.fa-hands-helping:before,.fa-handshake-angle:before{content:""}.fa-handshake-alt-slash:before,.fa-handshake-simple-slash:before{content:""}.fa-handshake-slash:before{content:""}.fa-hanukiah:before{content:""}.fa-hard-drive:before,.fa-hdd:before{content:""}.fa-hashtag:before{content:"#"}.fa-hat-cowboy:before{content:""}.fa-hat-cowboy-side:before{content:""}.fa-hat-wizard:before{content:""}.fa-head-side-cough:before{content:""}.fa-head-side-cough-slash:before{content:""}.fa-head-side-mask:before{content:""}.fa-head-side-virus:before{content:""}.fa-header:before,.fa-heading:before{content:""}.fa-headphones:before{content:""}.fa-headphones-alt:before,.fa-headphones-simple:before{content:""}.fa-headset:before{content:""}.fa-heart:before{content:""}.fa-heart-broken:before,.fa-heart-crack:before{content:""}.fa-heart-pulse:before,.fa-heartbeat:before{content:""}.fa-helicopter:before{content:""}.fa-hard-hat:before,.fa-hat-hard:before,.fa-helmet-safety:before{content:""}.fa-highlighter:before{content:""}.fa-hippo:before{content:""}.fa-hockey-puck:before{content:""}.fa-holly-berry:before{content:""}.fa-horse:before{content:""}.fa-horse-head:before{content:""}.fa-hospital-alt:before,.fa-hospital-wide:before,.fa-hospital:before{content:""}.fa-hospital-user:before{content:""}.fa-hot-tub-person:before,.fa-hot-tub:before{content:""}.fa-hotdog:before{content:""}.fa-hotel:before{content:""}.fa-hourglass-2:before,.fa-hourglass-half:before,.fa-hourglass:before{content:""}.fa-hourglass-empty:before{content:""}.fa-hourglass-3:before,.fa-hourglass-end:before{content:""}.fa-hourglass-1:before,.fa-hourglass-start:before{content:""}.fa-home-alt:before,.fa-home-lg-alt:before,.fa-home:before,.fa-house:before{content:""}.fa-home-lg:before,.fa-house-chimney:before{content:""}.fa-house-chimney-crack:before,.fa-house-damage:before{content:""}.fa-clinic-medical:before,.fa-house-chimney-medical:before{content:""}.fa-house-chimney-user:before{content:""}.fa-house-chimney-window:before{content:""}.fa-house-crack:before{content:""}.fa-house-laptop:before,.fa-laptop-house:before{content:""}.fa-house-medical:before{content:""}.fa-home-user:before,.fa-house-user:before{content:""}.fa-hryvnia-sign:before,.fa-hryvnia:before{content:""}.fa-i:before{content:"I"}.fa-i-cursor:before{content:""}.fa-ice-cream:before{content:""}.fa-icicles:before{content:""}.fa-heart-music-camera-bolt:before,.fa-icons:before{content:""}.fa-id-badge:before{content:""}.fa-drivers-license:before,.fa-id-card:before{content:""}.fa-id-card-alt:before,.fa-id-card-clip:before{content:""}.fa-igloo:before{content:""}.fa-image:before{content:""}.fa-image-portrait:before,.fa-portrait:before{content:""}.fa-images:before{content:""}.fa-inbox:before{content:""}.fa-indent:before{content:""}.fa-indian-rupee-sign:before,.fa-indian-rupee:before,.fa-inr:before{content:""}.fa-industry:before{content:""}.fa-infinity:before{content:""}.fa-info:before{content:""}.fa-italic:before{content:""}.fa-j:before{content:"J"}.fa-jedi:before{content:""}.fa-fighter-jet:before,.fa-jet-fighter:before{content:""}.fa-joint:before{content:""}.fa-k:before{content:"K"}.fa-kaaba:before{content:""}.fa-key:before{content:""}.fa-keyboard:before{content:""}.fa-khanda:before{content:""}.fa-kip-sign:before{content:""}.fa-first-aid:before,.fa-kit-medical:before{content:""}.fa-kiwi-bird:before{content:""}.fa-l:before{content:"L"}.fa-landmark:before{content:""}.fa-language:before{content:""}.fa-laptop:before{content:""}.fa-laptop-code:before{content:""}.fa-laptop-medical:before{content:""}.fa-lari-sign:before{content:""}.fa-layer-group:before{content:""}.fa-leaf:before{content:""}.fa-left-long:before,.fa-long-arrow-alt-left:before{content:""}.fa-arrows-alt-h:before,.fa-left-right:before{content:""}.fa-lemon:before{content:""}.fa-less-than:before{content:"<"}.fa-less-than-equal:before{content:""}.fa-life-ring:before{content:""}.fa-lightbulb:before{content:""}.fa-chain:before,.fa-link:before{content:""}.fa-chain-broken:before,.fa-chain-slash:before,.fa-link-slash:before,.fa-unlink:before{content:""}.fa-lira-sign:before{content:""}.fa-list-squares:before,.fa-list:before{content:""}.fa-list-check:before,.fa-tasks:before{content:""}.fa-list-1-2:before,.fa-list-numeric:before,.fa-list-ol:before{content:""}.fa-list-dots:before,.fa-list-ul:before{content:""}.fa-litecoin-sign:before{content:""}.fa-location-arrow:before{content:""}.fa-location-crosshairs:before,.fa-location:before{content:""}.fa-location-dot:before,.fa-map-marker-alt:before{content:""}.fa-location-pin:before,.fa-map-marker:before{content:""}.fa-lock:before{content:""}.fa-lock-open:before{content:""}.fa-lungs:before{content:""}.fa-lungs-virus:before{content:""}.fa-m:before{content:"M"}.fa-magnet:before{content:""}.fa-magnifying-glass:before,.fa-search:before{content:""}.fa-magnifying-glass-dollar:before,.fa-search-dollar:before{content:""}.fa-magnifying-glass-location:before,.fa-search-location:before{content:""}.fa-magnifying-glass-minus:before,.fa-search-minus:before{content:""}.fa-magnifying-glass-plus:before,.fa-search-plus:before{content:""}.fa-manat-sign:before{content:""}.fa-map:before{content:""}.fa-map-location:before,.fa-map-marked:before{content:""}.fa-map-location-dot:before,.fa-map-marked-alt:before{content:""}.fa-map-pin:before{content:""}.fa-marker:before{content:""}.fa-mars:before{content:""}.fa-mars-and-venus:before{content:""}.fa-mars-double:before{content:""}.fa-mars-stroke:before{content:""}.fa-mars-stroke-h:before,.fa-mars-stroke-right:before{content:""}.fa-mars-stroke-up:before,.fa-mars-stroke-v:before{content:""}.fa-glass-martini-alt:before,.fa-martini-glass:before{content:""}.fa-cocktail:before,.fa-martini-glass-citrus:before{content:""}.fa-glass-martini:before,.fa-martini-glass-empty:before{content:""}.fa-mask:before{content:""}.fa-mask-face:before{content:""}.fa-masks-theater:before,.fa-theater-masks:before{content:""}.fa-expand-arrows-alt:before,.fa-maximize:before{content:""}.fa-medal:before{content:""}.fa-memory:before{content:""}.fa-menorah:before{content:""}.fa-mercury:before{content:""}.fa-comment-alt:before,.fa-message:before{content:""}.fa-meteor:before{content:""}.fa-microchip:before{content:""}.fa-microphone:before{content:""}.fa-microphone-alt:before,.fa-microphone-lines:before{content:""}.fa-microphone-alt-slash:before,.fa-microphone-lines-slash:before{content:""}.fa-microphone-slash:before{content:""}.fa-microscope:before{content:""}.fa-mill-sign:before{content:""}.fa-compress-arrows-alt:before,.fa-minimize:before{content:""}.fa-minus:before,.fa-subtract:before{content:""}.fa-mitten:before{content:""}.fa-mobile-android:before,.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-mobile-button:before{content:""}.fa-mobile-alt:before,.fa-mobile-screen-button:before{content:""}.fa-money-bill:before{content:""}.fa-money-bill-1:before,.fa-money-bill-alt:before{content:""}.fa-money-bill-1-wave:before,.fa-money-bill-wave-alt:before{content:""}.fa-money-bill-wave:before{content:""}.fa-money-check:before{content:""}.fa-money-check-alt:before,.fa-money-check-dollar:before{content:""}.fa-monument:before{content:""}.fa-moon:before{content:""}.fa-mortar-pestle:before{content:""}.fa-mosque:before{content:""}.fa-motorcycle:before{content:""}.fa-mountain:before{content:""}.fa-mug-hot:before{content:""}.fa-coffee:before,.fa-mug-saucer:before{content:""}.fa-music:before{content:""}.fa-n:before{content:"N"}.fa-naira-sign:before{content:""}.fa-network-wired:before{content:""}.fa-neuter:before{content:""}.fa-newspaper:before{content:""}.fa-not-equal:before{content:""}.fa-note-sticky:before,.fa-sticky-note:before{content:""}.fa-notes-medical:before{content:""}.fa-o:before{content:"O"}.fa-object-group:before{content:""}.fa-object-ungroup:before{content:""}.fa-oil-can:before{content:""}.fa-om:before{content:""}.fa-otter:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-p:before{content:"P"}.fa-pager:before{content:""}.fa-paint-roller:before{content:""}.fa-paint-brush:before,.fa-paintbrush:before{content:""}.fa-palette:before{content:""}.fa-pallet:before{content:""}.fa-panorama:before{content:""}.fa-paper-plane:before{content:""}.fa-paperclip:before{content:""}.fa-parachute-box:before{content:""}.fa-paragraph:before{content:""}.fa-passport:before{content:""}.fa-file-clipboard:before,.fa-paste:before{content:""}.fa-pause:before{content:""}.fa-paw:before{content:""}.fa-peace:before{content:""}.fa-pen:before{content:""}.fa-pen-alt:before,.fa-pen-clip:before{content:""}.fa-pen-fancy:before{content:""}.fa-pen-nib:before{content:""}.fa-pen-ruler:before,.fa-pencil-ruler:before{content:""}.fa-edit:before,.fa-pen-to-square:before{content:""}.fa-pencil-alt:before,.fa-pencil:before{content:""}.fa-people-arrows-left-right:before,.fa-people-arrows:before{content:""}.fa-people-carry-box:before,.fa-people-carry:before{content:""}.fa-pepper-hot:before{content:""}.fa-percent:before,.fa-percentage:before{content:"%"}.fa-male:before,.fa-person:before{content:""}.fa-biking:before,.fa-person-biking:before{content:""}.fa-person-booth:before{content:""}.fa-diagnoses:before,.fa-person-dots-from-line:before{content:""}.fa-female:before,.fa-person-dress:before{content:""}.fa-hiking:before,.fa-person-hiking:before{content:""}.fa-person-praying:before,.fa-pray:before{content:""}.fa-person-running:before,.fa-running:before{content:""}.fa-person-skating:before,.fa-skating:before{content:""}.fa-person-skiing:before,.fa-skiing:before{content:""}.fa-person-skiing-nordic:before,.fa-skiing-nordic:before{content:""}.fa-person-snowboarding:before,.fa-snowboarding:before{content:""}.fa-person-swimming:before,.fa-swimmer:before{content:""}.fa-person-walking:before,.fa-walking:before{content:""}.fa-blind:before,.fa-person-walking-with-cane:before{content:""}.fa-peseta-sign:before{content:""}.fa-peso-sign:before{content:""}.fa-phone:before{content:""}.fa-phone-alt:before,.fa-phone-flip:before{content:""}.fa-phone-slash:before{content:""}.fa-phone-volume:before,.fa-volume-control-phone:before{content:""}.fa-photo-film:before,.fa-photo-video:before{content:""}.fa-piggy-bank:before{content:""}.fa-pills:before{content:""}.fa-pizza-slice:before{content:""}.fa-place-of-worship:before{content:""}.fa-plane:before{content:""}.fa-plane-arrival:before{content:""}.fa-plane-departure:before{content:""}.fa-plane-slash:before{content:""}.fa-play:before{content:""}.fa-plug:before{content:""}.fa-add:before,.fa-plus:before{content:"+"}.fa-plus-minus:before{content:""}.fa-podcast:before{content:""}.fa-poo:before{content:""}.fa-poo-bolt:before,.fa-poo-storm:before{content:""}.fa-poop:before{content:""}.fa-power-off:before{content:""}.fa-prescription:before{content:""}.fa-prescription-bottle:before{content:""}.fa-prescription-bottle-alt:before,.fa-prescription-bottle-medical:before{content:""}.fa-print:before{content:""}.fa-pump-medical:before{content:""}.fa-pump-soap:before{content:""}.fa-puzzle-piece:before{content:""}.fa-q:before{content:"Q"}.fa-qrcode:before{content:""}.fa-question:before{content:"?"}.fa-quote-left-alt:before,.fa-quote-left:before{content:""}.fa-quote-right-alt:before,.fa-quote-right:before{content:""}.fa-r:before{content:"R"}.fa-radiation:before{content:""}.fa-rainbow:before{content:""}.fa-receipt:before{content:""}.fa-record-vinyl:before{content:""}.fa-ad:before,.fa-rectangle-ad:before{content:""}.fa-list-alt:before,.fa-rectangle-list:before{content:""}.fa-rectangle-times:before,.fa-rectangle-xmark:before,.fa-times-rectangle:before,.fa-window-close:before{content:""}.fa-recycle:before{content:""}.fa-registered:before{content:""}.fa-repeat:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-republican:before{content:""}.fa-restroom:before{content:""}.fa-retweet:before{content:""}.fa-ribbon:before{content:""}.fa-right-from-bracket:before,.fa-sign-out-alt:before{content:""}.fa-exchange-alt:before,.fa-right-left:before{content:""}.fa-long-arrow-alt-right:before,.fa-right-long:before{content:""}.fa-right-to-bracket:before,.fa-sign-in-alt:before{content:""}.fa-ring:before{content:""}.fa-road:before{content:""}.fa-robot:before{content:""}.fa-rocket:before{content:""}.fa-rotate:before,.fa-sync-alt:before{content:""}.fa-rotate-back:before,.fa-rotate-backward:before,.fa-rotate-left:before,.fa-undo-alt:before{content:""}.fa-redo-alt:before,.fa-rotate-forward:before,.fa-rotate-right:before{content:""}.fa-route:before{content:""}.fa-feed:before,.fa-rss:before{content:""}.fa-rouble:before,.fa-rub:before,.fa-ruble-sign:before,.fa-ruble:before{content:""}.fa-ruler:before{content:""}.fa-ruler-combined:before{content:""}.fa-ruler-horizontal:before{content:""}.fa-ruler-vertical:before{content:""}.fa-rupee-sign:before,.fa-rupee:before{content:""}.fa-rupiah-sign:before{content:""}.fa-s:before{content:"S"}.fa-sailboat:before{content:""}.fa-satellite:before{content:""}.fa-satellite-dish:before{content:""}.fa-balance-scale:before,.fa-scale-balanced:before{content:""}.fa-balance-scale-left:before,.fa-scale-unbalanced:before{content:""}.fa-balance-scale-right:before,.fa-scale-unbalanced-flip:before{content:""}.fa-school:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-screwdriver:before{content:""}.fa-screwdriver-wrench:before,.fa-tools:before{content:""}.fa-scroll:before{content:""}.fa-scroll-torah:before,.fa-torah:before{content:""}.fa-sd-card:before{content:""}.fa-section:before{content:""}.fa-seedling:before,.fa-sprout:before{content:""}.fa-server:before{content:""}.fa-shapes:before,.fa-triangle-circle-square:before{content:""}.fa-arrow-turn-right:before,.fa-mail-forward:before,.fa-share:before{content:""}.fa-share-from-square:before,.fa-share-square:before{content:""}.fa-share-alt:before,.fa-share-nodes:before{content:""}.fa-ils:before,.fa-shekel-sign:before,.fa-shekel:before,.fa-sheqel-sign:before,.fa-sheqel:before{content:""}.fa-shield:before{content:""}.fa-shield-alt:before,.fa-shield-blank:before{content:""}.fa-shield-virus:before{content:""}.fa-ship:before{content:""}.fa-shirt:before,.fa-t-shirt:before,.fa-tshirt:before{content:""}.fa-shoe-prints:before{content:""}.fa-shop:before,.fa-store-alt:before{content:""}.fa-shop-slash:before,.fa-store-alt-slash:before{content:""}.fa-shower:before{content:""}.fa-shrimp:before{content:""}.fa-random:before,.fa-shuffle:before{content:""}.fa-shuttle-space:before,.fa-space-shuttle:before{content:""}.fa-sign-hanging:before,.fa-sign:before{content:""}.fa-signal-5:before,.fa-signal-perfect:before,.fa-signal:before{content:""}.fa-signature:before{content:""}.fa-map-signs:before,.fa-signs-post:before{content:""}.fa-sim-card:before{content:""}.fa-sink:before{content:""}.fa-sitemap:before{content:""}.fa-skull:before{content:""}.fa-skull-crossbones:before{content:""}.fa-slash:before{content:""}.fa-sleigh:before{content:""}.fa-sliders-h:before,.fa-sliders:before{content:""}.fa-smog:before{content:""}.fa-smoking:before{content:""}.fa-snowflake:before{content:""}.fa-snowman:before{content:""}.fa-snowplow:before{content:""}.fa-soap:before{content:""}.fa-socks:before{content:""}.fa-solar-panel:before{content:""}.fa-sort:before,.fa-unsorted:before{content:""}.fa-sort-desc:before,.fa-sort-down:before{content:""}.fa-sort-asc:before,.fa-sort-up:before{content:""}.fa-spa:before{content:""}.fa-pastafarianism:before,.fa-spaghetti-monster-flying:before{content:""}.fa-spell-check:before{content:""}.fa-spider:before{content:""}.fa-spinner:before{content:""}.fa-splotch:before{content:""}.fa-spoon:before,.fa-utensil-spoon:before{content:""}.fa-spray-can:before{content:""}.fa-air-freshener:before,.fa-spray-can-sparkles:before{content:""}.fa-square:before{content:""}.fa-external-link-square:before,.fa-square-arrow-up-right:before{content:""}.fa-caret-square-down:before,.fa-square-caret-down:before{content:""}.fa-caret-square-left:before,.fa-square-caret-left:before{content:""}.fa-caret-square-right:before,.fa-square-caret-right:before{content:""}.fa-caret-square-up:before,.fa-square-caret-up:before{content:""}.fa-check-square:before,.fa-square-check:before{content:""}.fa-envelope-square:before,.fa-square-envelope:before{content:""}.fa-square-full:before{content:""}.fa-h-square:before,.fa-square-h:before{content:""}.fa-minus-square:before,.fa-square-minus:before{content:""}.fa-parking:before,.fa-square-parking:before{content:""}.fa-pen-square:before,.fa-pencil-square:before,.fa-square-pen:before{content:""}.fa-phone-square:before,.fa-square-phone:before{content:""}.fa-phone-square-alt:before,.fa-square-phone-flip:before{content:""}.fa-plus-square:before,.fa-square-plus:before{content:""}.fa-poll-h:before,.fa-square-poll-horizontal:before{content:""}.fa-poll:before,.fa-square-poll-vertical:before{content:""}.fa-square-root-alt:before,.fa-square-root-variable:before{content:""}.fa-rss-square:before,.fa-square-rss:before{content:""}.fa-share-alt-square:before,.fa-square-share-nodes:before{content:""}.fa-external-link-square-alt:before,.fa-square-up-right:before{content:""}.fa-square-xmark:before,.fa-times-square:before,.fa-xmark-square:before{content:""}.fa-stairs:before{content:""}.fa-stamp:before{content:""}.fa-star:before{content:""}.fa-star-and-crescent:before{content:""}.fa-star-half:before{content:""}.fa-star-half-alt:before,.fa-star-half-stroke:before{content:""}.fa-star-of-david:before{content:""}.fa-star-of-life:before{content:""}.fa-gbp:before,.fa-pound-sign:before,.fa-sterling-sign:before{content:""}.fa-stethoscope:before{content:""}.fa-stop:before{content:""}.fa-stopwatch:before{content:""}.fa-stopwatch-20:before{content:""}.fa-store:before{content:""}.fa-store-slash:before{content:""}.fa-street-view:before{content:""}.fa-strikethrough:before{content:""}.fa-stroopwafel:before{content:""}.fa-subscript:before{content:""}.fa-suitcase:before{content:""}.fa-medkit:before,.fa-suitcase-medical:before{content:""}.fa-suitcase-rolling:before{content:""}.fa-sun:before{content:""}.fa-superscript:before{content:""}.fa-swatchbook:before{content:""}.fa-synagogue:before{content:""}.fa-syringe:before{content:""}.fa-t:before{content:"T"}.fa-table:before{content:""}.fa-table-cells:before,.fa-th:before{content:""}.fa-table-cells-large:before,.fa-th-large:before{content:""}.fa-columns:before,.fa-table-columns:before{content:""}.fa-table-list:before,.fa-th-list:before{content:""}.fa-ping-pong-paddle-ball:before,.fa-table-tennis-paddle-ball:before,.fa-table-tennis:before{content:""}.fa-tablet-android:before,.fa-tablet:before{content:""}.fa-tablet-button:before{content:""}.fa-tablet-alt:before,.fa-tablet-screen-button:before{content:""}.fa-tablets:before{content:""}.fa-digital-tachograph:before,.fa-tachograph-digital:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-tape:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-teeth:before{content:""}.fa-teeth-open:before{content:""}.fa-temperature-0:before,.fa-temperature-empty:before,.fa-thermometer-0:before,.fa-thermometer-empty:before{content:""}.fa-temperature-4:before,.fa-temperature-full:before,.fa-thermometer-4:before,.fa-thermometer-full:before{content:""}.fa-temperature-2:before,.fa-temperature-half:before,.fa-thermometer-2:before,.fa-thermometer-half:before{content:""}.fa-temperature-high:before{content:""}.fa-temperature-low:before{content:""}.fa-temperature-1:before,.fa-temperature-quarter:before,.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:""}.fa-temperature-3:before,.fa-temperature-three-quarters:before,.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:""}.fa-tenge-sign:before,.fa-tenge:before{content:""}.fa-terminal:before{content:""}.fa-text-height:before{content:""}.fa-remove-format:before,.fa-text-slash:before{content:""}.fa-text-width:before{content:""}.fa-thermometer:before{content:""}.fa-thumbs-down:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumb-tack:before,.fa-thumbtack:before{content:""}.fa-ticket:before{content:""}.fa-ticket-alt:before,.fa-ticket-simple:before{content:""}.fa-timeline:before{content:""}.fa-toggle-off:before{content:""}.fa-toggle-on:before{content:""}.fa-toilet:before{content:""}.fa-toilet-paper:before{content:""}.fa-toilet-paper-slash:before{content:""}.fa-toolbox:before{content:""}.fa-tooth:before{content:""}.fa-torii-gate:before{content:""}.fa-broadcast-tower:before,.fa-tower-broadcast:before{content:""}.fa-tractor:before{content:""}.fa-trademark:before{content:""}.fa-traffic-light:before{content:""}.fa-trailer:before{content:""}.fa-train:before{content:""}.fa-subway:before,.fa-train-subway:before{content:""}.fa-train-tram:before,.fa-tram:before{content:""}.fa-transgender-alt:before,.fa-transgender:before{content:""}.fa-trash:before{content:""}.fa-trash-arrow-up:before,.fa-trash-restore:before{content:""}.fa-trash-alt:before,.fa-trash-can:before{content:""}.fa-trash-can-arrow-up:before,.fa-trash-restore-alt:before{content:""}.fa-tree:before{content:""}.fa-exclamation-triangle:before,.fa-triangle-exclamation:before,.fa-warning:before{content:""}.fa-trophy:before{content:""}.fa-truck:before{content:""}.fa-shipping-fast:before,.fa-truck-fast:before{content:""}.fa-ambulance:before,.fa-truck-medical:before{content:""}.fa-truck-monster:before{content:""}.fa-truck-moving:before{content:""}.fa-truck-pickup:before{content:""}.fa-truck-loading:before,.fa-truck-ramp-box:before{content:""}.fa-teletype:before,.fa-tty:before{content:""}.fa-try:before,.fa-turkish-lira-sign:before,.fa-turkish-lira:before{content:""}.fa-level-down-alt:before,.fa-turn-down:before{content:""}.fa-level-up-alt:before,.fa-turn-up:before{content:""}.fa-television:before,.fa-tv-alt:before,.fa-tv:before{content:""}.fa-u:before{content:"U"}.fa-umbrella:before{content:""}.fa-umbrella-beach:before{content:""}.fa-underline:before{content:""}.fa-universal-access:before{content:""}.fa-unlock:before{content:""}.fa-unlock-alt:before,.fa-unlock-keyhole:before{content:""}.fa-arrows-alt-v:before,.fa-up-down:before{content:""}.fa-arrows-alt:before,.fa-up-down-left-right:before{content:""}.fa-long-arrow-alt-up:before,.fa-up-long:before{content:""}.fa-expand-alt:before,.fa-up-right-and-down-left-from-center:before{content:""}.fa-external-link-alt:before,.fa-up-right-from-square:before{content:""}.fa-upload:before{content:""}.fa-user:before{content:""}.fa-user-astronaut:before{content:""}.fa-user-check:before{content:""}.fa-user-clock:before{content:""}.fa-user-doctor:before,.fa-user-md:before{content:""}.fa-user-cog:before,.fa-user-gear:before{content:""}.fa-user-graduate:before{content:""}.fa-user-friends:before,.fa-user-group:before{content:""}.fa-user-injured:before{content:""}.fa-user-alt:before,.fa-user-large:before{content:""}.fa-user-alt-slash:before,.fa-user-large-slash:before{content:""}.fa-user-lock:before{content:""}.fa-user-minus:before{content:""}.fa-user-ninja:before{content:""}.fa-user-nurse:before{content:""}.fa-user-edit:before,.fa-user-pen:before{content:""}.fa-user-plus:before{content:""}.fa-user-secret:before{content:""}.fa-user-shield:before{content:""}.fa-user-slash:before{content:""}.fa-user-tag:before{content:""}.fa-user-tie:before{content:""}.fa-user-times:before,.fa-user-xmark:before{content:""}.fa-users:before{content:""}.fa-users-cog:before,.fa-users-gear:before{content:""}.fa-users-slash:before{content:""}.fa-cutlery:before,.fa-utensils:before{content:""}.fa-v:before{content:"V"}.fa-shuttle-van:before,.fa-van-shuttle:before{content:""}.fa-vault:before{content:""}.fa-vector-square:before{content:""}.fa-venus:before{content:""}.fa-venus-double:before{content:""}.fa-venus-mars:before{content:""}.fa-vest:before{content:""}.fa-vest-patches:before{content:""}.fa-vial:before{content:""}.fa-vials:before{content:""}.fa-video-camera:before,.fa-video:before{content:""}.fa-video-slash:before{content:""}.fa-vihara:before{content:""}.fa-virus:before{content:""}.fa-virus-covid:before{content:""}.fa-virus-covid-slash:before{content:""}.fa-virus-slash:before{content:""}.fa-viruses:before{content:""}.fa-voicemail:before{content:""}.fa-volleyball-ball:before,.fa-volleyball:before{content:""}.fa-volume-high:before,.fa-volume-up:before{content:""}.fa-volume-down:before,.fa-volume-low:before{content:""}.fa-volume-off:before{content:""}.fa-volume-mute:before,.fa-volume-times:before,.fa-volume-xmark:before{content:""}.fa-vr-cardboard:before{content:""}.fa-w:before{content:"W"}.fa-wallet:before{content:""}.fa-magic:before,.fa-wand-magic:before{content:""}.fa-magic-wand-sparkles:before,.fa-wand-magic-sparkles:before{content:""}.fa-wand-sparkles:before{content:""}.fa-warehouse:before{content:""}.fa-water:before{content:""}.fa-ladder-water:before,.fa-swimming-pool:before,.fa-water-ladder:before{content:""}.fa-wave-square:before{content:""}.fa-weight-hanging:before{content:""}.fa-weight-scale:before,.fa-weight:before{content:""}.fa-wheelchair:before{content:""}.fa-glass-whiskey:before,.fa-whiskey-glass:before{content:""}.fa-wifi-3:before,.fa-wifi-strong:before,.fa-wifi:before{content:""}.fa-wind:before{content:""}.fa-window-maximize:before{content:""}.fa-window-minimize:before{content:""}.fa-window-restore:before{content:""}.fa-wine-bottle:before{content:""}.fa-wine-glass:before{content:""}.fa-wine-glass-alt:before,.fa-wine-glass-empty:before{content:""}.fa-krw:before,.fa-won-sign:before,.fa-won:before{content:""}.fa-wrench:before{content:""}.fa-x:before{content:"X"}.fa-x-ray:before{content:""}.fa-close:before,.fa-multiply:before,.fa-remove:before,.fa-times:before,.fa-xmark:before{content:""}.fa-y:before{content:"Y"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen-sign:before,.fa-yen:before{content:""}.fa-yin-yang:before{content:""}.fa-z:before{content:"Z"}.fa-sr-only,.fa-sr-only-focusable:not(:focus),.sr-only,.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}/*! +@charset "UTF-8";.form-select[data-v-98690e5d]{background-color:var(--color-input);border:1;border-color:var(--color-bg);color:var(--color-bg);text-align:start;font-size:var(--font-small)}.commitbutton[data-v-98690e5d]{background-color:var(--color-bg);color:var(--color-input)}option[data-v-98690e5d]{color:green}.form-select[data-v-98690e5d]{font-size:var(--font-verysmall);background-color:var(--color-menu);color:var(--color-fg)}.optiontable[data-v-98690e5d]{background-color:var(--color-menu)}.optionbutton[data-v-98690e5d]{font-size:var(--font-small);color:#fff;background-color:var(--color-menu);font-size:var(--font-verysmall);text-align:center}.dropdown-menu[data-v-98690e5d]{background-color:var(--color-menu)}.dropdown-toggle[data-v-98690e5d]{background-color:var(--color-menu);color:#fff;border:1px solid var(--color-bg);font-size:var(--font-verysmall)}.radiobutton[data-v-82ab6829]{border:0px solid var(--color-menu);opacity:1}.btn-outline-secondary.active[data-v-82ab6829]{background-color:var(--color-bg);border:0px solid var(--color-fg);opacity:.8}.btn-group[data-v-82ab6829]{border:1px solid var(--color-menu)}.rounded-pill[data-v-d75ec1a4]{background-color:var(--color-menu)}.arrowButton[data-v-d75ec1a4]{border:0}.datebadge[data-v-d75ec1a4]{background-color:var(--color-bg);color:var(--color-menu);border:1px solid var(--color-menu);font-size:var(--font-small);font-weight:400}.arrowButton[data-v-d75ec1a4],.fa-magnifying-glass[data-v-47f3d429]{color:var(--color-menu)}.dateWbBadge[data-v-47f3d429]{background-color:var(--color-menu);color:var(--color-bg);font-size:var(--font-medium);font-weight:400}.waitsign[data-v-47f3d429]{text-align:center;font-size:var(--font-medium);color:var(--color-fg);border:1px solid var(--color-bg);padding:2em;margin:4em 2em 2em;background-color:var(--color-bg)}.fa-magnifying-glass[data-v-32c82102],.fa-magnifying-glass[data-v-63a4748e]{color:var(--color-menu)}.heading[data-v-f6af00e8]{color:var(--color-menu);font-weight:400;text-align:center}.content[data-v-f6af00e8]{color:var(--color-fg);font-weight:700}@supports (grid-template-columns: subgrid){.wb-subwidget[data-v-2aa2b95f]{border-top:.5px solid var(--color-scale);display:grid;grid-template-columns:subgrid;grid-column:1 / 13}.wb-subwidget-noborder[data-v-2aa2b95f]{margin-top:20px;display:grid;grid-template-columns:subgrid;grid-column:1 / 13;padding-top:10px}}@supports not (grid-template-columns: subgrid){.wb-subwidget[data-v-2aa2b95f]{border-top:.5px solid var(--color-scale);display:grid;grid-template-columns:repeat(12,auto);grid-column:1 / 13}.wb-subwidget-noborder[data-v-2aa2b95f]{margin-top:20px;display:grid;grid-template-columns:subgrid;grid-column:1 / 13}}.titlerow[data-v-2aa2b95f]{grid-column:1 / 13}@supports (grid-template-columns: subgrid){.contentrow[data-v-2aa2b95f]{display:grid;grid-template-columns:subgrid;grid-column:1 / 13;align-items:top}}@supports not (grid-template-columns: subgrid){.contentrow[data-v-2aa2b95f]{display:grid;align-items:top;grid-template-columns:repeat(12,auto)}}.widgetname[data-v-2aa2b95f]{font-weight:700;font-size:var(--font-large)}.infotext[data-v-25ab3fbb]{font-size:var(--font-settings);color:var(--color-battery)}.item-icon[data-v-25ab3fbb]{color:var(--color-menu);font-size:var(--font-settings)}.titlecolumn[data-v-25ab3fbb]{color:var(--color-fg);font-size:var(--font-settings);flex-grow:1}.selectors[data-v-25ab3fbb]{font-size:var(--font-settings)}.configitem[data-v-25ab3fbb]{font-size:var(--font-settings);display:flex;flex-direction:column;justify-content:stretch;align-items:stretch;height:100%;width:100%}.contentrow[data-v-25ab3fbb]{display:flex;height:100%;width:100%}.minlabel[data-v-af945965],.maxlabel[data-v-af945965]{color:var(--color-menu)}.valuelabel[data-v-af945965]{color:var(--color-fg)}.minusButton[data-v-af945965],.plusButton[data-v-af945965]{color:var(--color-menu)}.rangeIndicator[data-v-af945965]{margin:0;padding:0;line-height:10px}.rangeinput[data-v-af945965]{width:100%}.radiobutton[data-v-88c9ea7a]{border:.2px solid var(--color-menu);opacity:1;font-size:var(--font-settings-button);border-radius:0}.btn-outline-secondary.active[data-v-88c9ea7a]{background-color:var(--color-fg);border:1px solid var(--color-menu);box-shadow:0 .5rem 1rem #00000026;opacity:1}.buttongrid[data-v-88c9ea7a]{display:grid;border:1px solid var(--color-menu);border-radius:.5rem;justify-items:stretch;justify-self:stretch;width:100%}.chargeConfigSelect[data-v-de6b86dd]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-de6b86dd]{color:var(--color-charging);font-size:var(--font-settings);font-weight:700}.chargeConfigSelect[data-v-d7ee4d2a]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-d7ee4d2a]{color:var(--color-pv);font-size:var(--font-settings);font-weight:700}.subconfigstack[data-v-d7ee4d2a]{display:grid;grid-template-columns:repeat(2,auto);width:100%}.subconfig[data-v-d7ee4d2a]{justify-content:end;align-items:baseline;margin-left:1em;width:100%}.subconfigtitle[data-v-d7ee4d2a]{margin-right:5px}.heading[data-v-2f5cb5c1]{font-size:var(--font-settings);color:var(--color-charging);font-weight:700;margin-bottom:.5rem}.plandetails[data-v-2f5cb5c1]{display:flex;flex-direction:column}.tablecell[data-v-08df44d8]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;font-size:var(--font-settings)}.tableheader[data-v-08df44d8]{color:var(--color-menu);background-color:var(--color-bg);text-align:center;font-style:normal}.heading[data-v-08df44d8]{color:var(--color-battery);font-size:var(--font-settings);font-weight:700}.left[data-v-08df44d8]{text-align:left}.text-bold[data-v-08df44d8]{font-weight:700}.text-normal[data-v-08df44d8]{font-weight:400}.fa-circle-info[data-v-08df44d8]{color:var(--color-charging);cursor:pointer}.heading[data-v-eaa44cb2]{font-size:var(--font-settings);color:var(--color-charging);font-weight:700;margin-bottom:.5rem}.plandetails[data-v-eaa44cb2]{display:flex;flex-direction:column}.tablecell[data-v-543e8ca2]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;font-size:var(--font-settings)}.tableheader[data-v-543e8ca2]{color:var(--color-menu);background-color:var(--color-bg);text-align:center;font-style:normal}.heading[data-v-543e8ca2]{color:var(--color-battery);font-size:var(--font-settings);font-weight:700}.left[data-v-543e8ca2]{text-align:left}.right[data-v-543e8ca2]{text-align:right}.text-bold[data-v-543e8ca2]{font-weight:700}.text-normal[data-v-543e8ca2]{font-weight:400}.fa-circle-info[data-v-543e8ca2]{color:var(--color-charging);cursor:pointer}.color-charging[data-v-28b81885]{color:var(--color-charging)}.fa-circle-check[data-v-28b81885]{color:var(--color-menu)}.settingsheader[data-v-28b81885]{color:var(--color-charging);font-size:16px;font-weight:700}.providername[data-v-28b81885]{color:var(--color-axis);font-size:16px}.jumpbutton[data-v-28b81885]{background-color:var(--color-menu);color:var(--color-bg);border:0;font-size:var(--font-settings-button)}.confirmButton[data-v-28b81885]{font-size:var(--font-settings-button)}.chargeConfigSelect[data-v-106a9fca]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-106a9fca]{color:var(--color-devices);font-size:var(--font-settings);font-weight:700}.subconfigstack[data-v-106a9fca]{display:grid;grid-template-columns:repeat(2,auto);width:100%}.subconfig[data-v-106a9fca]{justify-content:end;align-items:baseline;margin-left:1em;width:100%}.subconfigtitle[data-v-106a9fca]{margin-right:5px}.status-string[data-v-e6ae9e07]{font-size:var(--font-normal);font-style:italic;color:var(--color-battery)}.chargeConfigSelect[data-v-e6ae9e07]{background:var(--color-bg);color:var(--color-fg)}.chargeModeOption[data-v-e6ae9e07]{background:green;color:#00f}.nav-tabs .nav-link[data-v-e6ae9e07]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-e6ae9e07]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-e6ae9e07]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:1px solid var(--color-menu)}.settingsheader[data-v-e6ae9e07]{color:var(--color-charging);font-size:16px;font-weight:700}hr[data-v-e6ae9e07]{color:var(--color-menu)}.status-string[data-v-cd92fe69]{font-size:var(--font-settings);font-style:italic;color:var(--color-battery)}.nav-tabs .nav-link[data-v-cd92fe69]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-cd92fe69]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-cd92fe69]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:0px solid var(--color-menu)}.heading[data-v-cd92fe69]{color:var(--color-menu)}.item[data-v-cd92fe69]{grid-column:span 12}.tabarea[data-v-cd92fe69]{justify-self:stretch}.wb-widget[data-v-fb6ac7a4]{width:100%;height:100%;border-radius:30px}.widgetname[data-v-fb6ac7a4]{font-weight:700;color:var(--color-fg);font-size:var(--font-large)}.batIcon[data-v-a68c844a]{color:var(--color-menu)}.pillWbBadge[data-v-36112fa3]{font-size:(var--font-small);font-weight:regular;display:flex;justify-content:center;align-items:center}.targetCurrent[data-v-2cc82367]{color:var(--color-menu)}.fa-star[data-v-e3fcbd86]{color:var(--color-evu)}.fa-clock[data-v-e3fcbd86]{color:var(--color-charging)}.fa-car[data-v-e3fcbd86],.fa-circle-check[data-v-e3fcbd86]{color:var(--color-menu)}.socEditor[data-v-e3fcbd86],.priceEditor[data-v-e3fcbd86]{border:1px solid var(--color-menu);justify-self:stretch}.chargemodes[data-v-e3fcbd86]{grid-column:1 / 13;justify-self:center}.chargeinfo[data-v-e3fcbd86]{display:grid;grid-template-columns:repeat(12,auto);justify-content:space-between}.divider[data-v-e3fcbd86]{border-top:1px solid var(--color-fg);width:100%}.carSelector[data-v-e3fcbd86]{border:1px solid var(--color-menu);font-size:var(--font-settings);border-radius:3px;display:flex;flex-direction:column}.fa-ellipsis-vertical[data-v-0000854e],.fa-circle-check[data-v-0000854e]{color:var(--color-menu)}.errorWbBadge[data-v-0000854e]{color:var(--color-bg);background-color:var(--color-evu);font-size:var(--font-small)}.close-config-button[data-v-0000854e]{background:var(--color-menu);color:var(--color-bg);grid-column:11 / span 2;font-size:var(--font-settings-button)}@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.modal-footer[data-v-eaefae30],.modal-header[data-v-eaefae30],.modal-body[data-v-eaefae30]{background:var(--color-bg)}.btn-close[data-v-eaefae30]{color:var(--color-fg)}.modal-footer[data-v-eaefae30]{text-align:right}.modal-header .btn-close[data-v-eaefae30]{color:var(--color-fg);background:var(--color-bg);border:0px}.modal.fade .modal-dialog[data-v-eaefae30]{transition:transform 1s ease-out;transform:none;scale:.6}.modal.show .modal-dialog[data-v-eaefae30]{transition:transform .3s ease-in;transform:none;scale:1}.tablerow[data-v-9260919a]{margin:14px;border-top:.1px solid var(--color-scale)}.tablecell[data-v-9260919a]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;padding-top:2px;padding-left:2px;padding-right:2px;vertical-align:baseline;line-height:1.4rem;font-size:var(--font-small)}.buttoncell[data-v-9260919a]{background-color:var(--color-bg);padding:0;margin:0}.left[data-v-9260919a]{text-align:left}.tablecell.right[data-v-9260919a]{text-align:right}.tablecolum1[data-v-9260919a]{color:var(--color-fg);text-align:left;margin:0;padding:0}.tableicon[data-v-9260919a]{color:var(--color-menu)}.fa-star[data-v-9260919a]{color:var(--color-evu)}.fa-clock[data-v-9260919a]{color:var(--color-battery)}.socEditor[data-v-9260919a]{border:1px solid var(--color-menu);background-color:var(--color-bg)}.socEditRow td[data-v-9260919a]{background-color:var(--color-bg)}.fa-circle-check[data-v-9260919a]{color:var(--color-menu)}.socEditTitle[data-v-9260919a]{color:var(--color-fg)}.statusbadge[data-v-9260919a]{background-color:var(--color-bg);font-weight:700;font-size:var(--font-verysmall)}.modebadge[data-v-9260919a]{color:var(--color-bg)}.cpname[data-v-9260919a]{font-size:var(--font-small)}.fa-edit[data-v-9260919a]{color:var(--color-menu)}.infolist[data-v-9260919a]{justify-content:center}.tableheader[data-v-b8c6b557]{margin:0;padding-left:0;background-color:var(--color-bg);color:var(--color-menu)}.alignleft[data-v-b8c6b557]{text-align:left}.aligncenter[data-v-b8c6b557]{text-align:center}.alignright[data-v-b8c6b557]{text-align:right}.table[data-v-b8c6b557]{border-spacing:1rem;background-color:var(--color-bg)}.priceWbBadge[data-v-b8c6b557]{background-color:var(--color-menu);font-weight:400}.fa-charging-station[data-v-b8c6b557]{color:var(--color-charging)}.plugIndicator[data-v-71bb7e5f]{color:#fff;border:1px solid white}.chargeButton[data-v-71bb7e5f]{color:#fff}.left[data-v-71bb7e5f]{float:left}.right[data-v-71bb7e5f]{float:right}.center[data-v-71bb7e5f]{margin:auto}.time-display[data-v-791e4be0]{font-weight:700;color:var(--color-menu);font-size:var(--font-normal)}.battery-title[data-v-f7f825f7]{color:var(--color-battery);font-size:var(--font-medium)}.battery-color[data-v-325bd635]{color:var(--color-battery)}.fg-color[data-v-325bd635]{color:var(--color-fg)}.menu-color[data-v-325bd635],.todaystring[data-v-325bd635]{color:var(--color-menu)}.devicename[data-v-20651ac6]{font-size:var(--font-medium)}.statusbutton[data-v-20651ac6]{font-size:var(--font-extralarge)}.sh-title[data-v-5b5cf6b3]{color:var(--color-title)}.tableheader[data-v-5b5cf6b3]{background-color:var(--color-bg);color:var(--color-menu)}.fa-ellipsis-vertical[data-v-5b5cf6b3],.fa-circle-check[data-v-5b5cf6b3]{color:var(--color-menu)}.smarthome[data-v-5b5cf6b3]{color:var(--color-devices)}.idWbBadge[data-v-01dd8c4d]{background-color:var(--color-menu);font-weight:400}.countername[data-v-01dd8c4d]{font-size:var(--font-medium)}.statusbutton[data-v-5f059284]{font-size:var(--font-large)}.modebutton[data-v-5f059284]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempWbBadge[data-v-5f059284]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.idWbBadge[data-v-9e2cb63e]{background-color:var(--color-menu);font-weight:400}.status-string[data-v-9e2cb63e]{text-align:center}.vehiclename[data-v-9e2cb63e]{font-size:var(--font-medium)}.statusbutton[data-v-716be083]{font-size:var(--font-large)}.modebutton[data-v-716be083]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempWbBadge[data-v-716be083]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.priceWbBadge[data-v-578b98b5]{background-color:var(--color-charging);font-weight:400}.providerWbBadge[data-v-578b98b5]{background-color:var(--color-menu);font-weight:400}.grapharea[data-v-578b98b5]{grid-column-start:1;grid-column-end:13;width:100%;object-fit:cover;max-height:100%;justify-items:stretch}.pricefigure[data-v-578b98b5]{justify-self:stretch}.modeWbBadge[data-v-258d8f17]{background-color:var(--color-pv);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.invertername[data-v-258d8f17]{font-size:var(--font-medium)}.powerWbBadge[data-v-b7a71f81]{background-color:var(--color-pv);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.button[data-v-17424929]{color:var(--color-fg)}.name[data-v-df7e578a]{font-size:1rem;color:#000;border:1px solid white}.content[data-v-df7e578a]{grid-column:1 / -1;border:solid 1px black;border-radius:10px}.sublist[data-v-df7e578a]{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.mqviewer[data-v-a349646d]{background-color:#fff;color:#000}.topiclist[data-v-a349646d]{display:grid;grid-template-columns:repeat(40,1fr)}.topnode[data-v-a349646d]{grid-column-start:1;grid-column-end:-1}.mqtitle[data-v-a349646d]{color:#000}.form-select[data-v-5e33ce1f]{background-color:var(--color-input);color:#000;border:1px solid var(--color-bg);font-size:var(--font-settings)}.fa-circle-check[data-v-785bc80b]{font-size:var(--font-large);background-color:var(--color-bg);color:var(--color-menu)}.closebutton[data-v-785bc80b]{justify-self:end}.settingscolumn[data-v-785bc80b]{padding:20px}.nav-tabs[data-v-0542a138]{border-bottom:.5px solid var(--color-menu);background-color:var(--color-bg)}.nav-tabs .nav-link[data-v-0542a138]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-0542a138]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-0542a138]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:.5px solid var(--color-menu);border-bottom:0px solid var(--color-menu);box-shadow:0 .5rem 1rem #00000026}.fa-circle-info[data-v-0542a138]{color:var(--color-fg)}.fa-charging-station[data-v-0542a138]{color:var(--color-charging)}.fa-car-battery[data-v-0542a138]{color:var(--color-battery)}.fa-plug[data-v-0542a138]{color:var(--color-devices)}.fa-bolt[data-v-0542a138]{color:var(--color-evu)}.fa-car[data-v-0542a138]{color:var(--color-charging)}.fa-coins[data-v-0542a138]{color:var(--color-battery)}.fa-solar-panel[data-v-0542a138]{color:var(--color-pv)}.navbar[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg);font-size:var(--font-normal)}.dropdown-menu[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg)}.dropdown-item[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg);font-size:var(--font-normal)}.btn[data-v-ed619966]{font-size:var(--font-medium);background-color:var(--color-bg);color:var(--color-fg)}.navbar-brand[data-v-ed619966]{font-weight:700;color:var(--color-fg);font-size:var(--font-normal)}.nav-link[data-v-ed619966]{color:var(--color-fg);border-color:red;font-size:var(--font-normal)}.navbar-toggler[data-v-ed619966]{color:var(--color-fg);border-color:var(--color-bg)}.navbar-time[data-v-ed619966]{font-weight:700;color:var(--color-menu);font-size:var(--font-normal)}.fa{font-family:var(--fa-style-family, "Font Awesome 6 Free");font-weight:var(--fa-style, 900)}.fa,.fa-brands,.fa-duotone,.fa-light,.fa-regular,.fa-solid,.fa-thin,.fab,.fad,.fal,.far,.fas,.fat{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display, inline-block);font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.08333em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.07143em;vertical-align:.05357em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.04167em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin, 2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width, 2em) * -1);position:absolute;text-align:center;width:var(--fa-li-width, 2em);line-height:inherit}.fa-border{border-radius:var(--fa-border-radius, .1em);border:var(--fa-border-width, .08em) var(--fa-border-style, solid) var(--fa-border-color, #eee);padding:var(--fa-border-padding, .2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin, .3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin, .3em)}.fa-beat{-webkit-animation-name:fa-beat;animation-name:fa-beat;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, ease-in-out);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-bounce{-webkit-animation-name:fa-bounce;animation-name:fa-bounce;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.28, .84, .42, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.28, .84, .42, 1) )}.fa-fade{-webkit-animation-name:fa-fade;animation-name:fa-fade;-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) )}.fa-beat-fade,.fa-fade{-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s)}.fa-beat-fade{-webkit-animation-name:fa-beat-fade;animation-name:fa-beat-fade;-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) )}.fa-flip{-webkit-animation-name:fa-flip;animation-name:fa-flip;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, ease-in-out);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-shake{-webkit-animation-name:fa-shake;animation-name:fa-shake;-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, linear);animation-timing-function:var(--fa-animation-timing, linear)}.fa-shake,.fa-spin{-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal)}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-duration:var(--fa-animation-duration, 2s);animation-duration:var(--fa-animation-duration, 2s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, linear);animation-timing-function:var(--fa-animation-timing, linear)}.fa-spin-reverse{--fa-animation-direction: reverse}.fa-pulse,.fa-spin-pulse{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, steps(8));animation-timing-function:var(--fa-animation-timing, steps(8))}@media (prefers-reduced-motion: reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@-webkit-keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale, 1.25));transform:scale(var(--fa-beat-scale, 1.25))}}@keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale, 1.25));transform:scale(var(--fa-beat-scale, 1.25))}}@-webkit-keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em));transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em));transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em));transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em));transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@-webkit-keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, .4)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, .4)}}@-webkit-keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity, .4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale, 1.125));transform:scale(var(--fa-beat-fade-scale, 1.125))}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity, .4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale, 1.125));transform:scale(var(--fa-beat-fade-scale, 1.125))}}@-webkit-keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg));transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg))}}@keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg));transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg))}}@-webkit-keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}.fa-rotate-by{-webkit-transform:rotate(var(--fa-rotate-angle, none));transform:rotate(var(--fa-rotate-angle, none))}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%;z-index:var(--fa-stack-z-index, auto)}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:var(--fa-inverse, #fff)}.fa-0:before{content:"0"}.fa-1:before{content:"1"}.fa-2:before{content:"2"}.fa-3:before{content:"3"}.fa-4:before{content:"4"}.fa-5:before{content:"5"}.fa-6:before{content:"6"}.fa-7:before{content:"7"}.fa-8:before{content:"8"}.fa-9:before{content:"9"}.fa-a:before{content:"A"}.fa-address-book:before,.fa-contact-book:before{content:""}.fa-address-card:before,.fa-contact-card:before,.fa-vcard:before{content:""}.fa-align-center:before{content:""}.fa-align-justify:before{content:""}.fa-align-left:before{content:""}.fa-align-right:before{content:""}.fa-anchor:before{content:""}.fa-angle-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-double-down:before,.fa-angles-down:before{content:""}.fa-angle-double-left:before,.fa-angles-left:before{content:""}.fa-angle-double-right:before,.fa-angles-right:before{content:""}.fa-angle-double-up:before,.fa-angles-up:before{content:""}.fa-ankh:before{content:""}.fa-apple-alt:before,.fa-apple-whole:before{content:""}.fa-archway:before{content:""}.fa-arrow-down:before{content:""}.fa-arrow-down-1-9:before,.fa-sort-numeric-asc:before,.fa-sort-numeric-down:before{content:""}.fa-arrow-down-9-1:before,.fa-sort-numeric-desc:before,.fa-sort-numeric-down-alt:before{content:""}.fa-arrow-down-a-z:before,.fa-sort-alpha-asc:before,.fa-sort-alpha-down:before{content:""}.fa-arrow-down-long:before,.fa-long-arrow-down:before{content:""}.fa-arrow-down-short-wide:before,.fa-sort-amount-desc:before,.fa-sort-amount-down-alt:before{content:""}.fa-arrow-down-wide-short:before,.fa-sort-amount-asc:before,.fa-sort-amount-down:before{content:""}.fa-arrow-down-z-a:before,.fa-sort-alpha-desc:before,.fa-sort-alpha-down-alt:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-left-long:before,.fa-long-arrow-left:before{content:""}.fa-arrow-pointer:before,.fa-mouse-pointer:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-right-arrow-left:before,.fa-exchange:before{content:""}.fa-arrow-right-from-bracket:before,.fa-sign-out:before{content:""}.fa-arrow-right-long:before,.fa-long-arrow-right:before{content:""}.fa-arrow-right-to-bracket:before,.fa-sign-in:before{content:""}.fa-arrow-left-rotate:before,.fa-arrow-rotate-back:before,.fa-arrow-rotate-backward:before,.fa-arrow-rotate-left:before,.fa-undo:before{content:""}.fa-arrow-right-rotate:before,.fa-arrow-rotate-forward:before,.fa-arrow-rotate-right:before,.fa-redo:before{content:""}.fa-arrow-trend-down:before{content:""}.fa-arrow-trend-up:before{content:""}.fa-arrow-turn-down:before,.fa-level-down:before{content:""}.fa-arrow-turn-up:before,.fa-level-up:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-up-1-9:before,.fa-sort-numeric-up:before{content:""}.fa-arrow-up-9-1:before,.fa-sort-numeric-up-alt:before{content:""}.fa-arrow-up-a-z:before,.fa-sort-alpha-up:before{content:""}.fa-arrow-up-from-bracket:before{content:""}.fa-arrow-up-long:before,.fa-long-arrow-up:before{content:""}.fa-arrow-up-right-from-square:before,.fa-external-link:before{content:""}.fa-arrow-up-short-wide:before,.fa-sort-amount-up-alt:before{content:""}.fa-arrow-up-wide-short:before,.fa-sort-amount-up:before{content:""}.fa-arrow-up-z-a:before,.fa-sort-alpha-up-alt:before{content:""}.fa-arrows-h:before,.fa-arrows-left-right:before{content:""}.fa-arrows-rotate:before,.fa-refresh:before,.fa-sync:before{content:""}.fa-arrows-up-down:before,.fa-arrows-v:before{content:""}.fa-arrows-up-down-left-right:before,.fa-arrows:before{content:""}.fa-asterisk:before{content:"*"}.fa-at:before{content:"@"}.fa-atom:before{content:""}.fa-audio-description:before{content:""}.fa-austral-sign:before{content:""}.fa-award:before{content:""}.fa-b:before{content:"B"}.fa-baby:before{content:""}.fa-baby-carriage:before,.fa-carriage-baby:before{content:""}.fa-backward:before{content:""}.fa-backward-fast:before,.fa-fast-backward:before{content:""}.fa-backward-step:before,.fa-step-backward:before{content:""}.fa-bacon:before{content:""}.fa-bacteria:before{content:""}.fa-bacterium:before{content:""}.fa-bag-shopping:before,.fa-shopping-bag:before{content:""}.fa-bahai:before{content:""}.fa-baht-sign:before{content:""}.fa-ban:before,.fa-cancel:before{content:""}.fa-ban-smoking:before,.fa-smoking-ban:before{content:""}.fa-band-aid:before,.fa-bandage:before{content:""}.fa-barcode:before{content:""}.fa-bars:before,.fa-navicon:before{content:""}.fa-bars-progress:before,.fa-tasks-alt:before{content:""}.fa-bars-staggered:before,.fa-reorder:before,.fa-stream:before{content:""}.fa-baseball-ball:before,.fa-baseball:before{content:""}.fa-baseball-bat-ball:before{content:""}.fa-basket-shopping:before,.fa-shopping-basket:before{content:""}.fa-basketball-ball:before,.fa-basketball:before{content:""}.fa-bath:before,.fa-bathtub:before{content:""}.fa-battery-0:before,.fa-battery-empty:before{content:""}.fa-battery-5:before,.fa-battery-full:before,.fa-battery:before{content:""}.fa-battery-3:before,.fa-battery-half:before{content:""}.fa-battery-2:before,.fa-battery-quarter:before{content:""}.fa-battery-4:before,.fa-battery-three-quarters:before{content:""}.fa-bed:before{content:""}.fa-bed-pulse:before,.fa-procedures:before{content:""}.fa-beer-mug-empty:before,.fa-beer:before{content:""}.fa-bell:before{content:""}.fa-bell-concierge:before,.fa-concierge-bell:before{content:""}.fa-bell-slash:before{content:""}.fa-bezier-curve:before{content:""}.fa-bicycle:before{content:""}.fa-binoculars:before{content:""}.fa-biohazard:before{content:""}.fa-bitcoin-sign:before{content:""}.fa-blender:before{content:""}.fa-blender-phone:before{content:""}.fa-blog:before{content:""}.fa-bold:before{content:""}.fa-bolt:before,.fa-zap:before{content:""}.fa-bolt-lightning:before{content:""}.fa-bomb:before{content:""}.fa-bone:before{content:""}.fa-bong:before{content:""}.fa-book:before{content:""}.fa-atlas:before,.fa-book-atlas:before{content:""}.fa-bible:before,.fa-book-bible:before{content:""}.fa-book-journal-whills:before,.fa-journal-whills:before{content:""}.fa-book-medical:before{content:""}.fa-book-open:before{content:""}.fa-book-open-reader:before,.fa-book-reader:before{content:""}.fa-book-quran:before,.fa-quran:before{content:""}.fa-book-dead:before,.fa-book-skull:before{content:""}.fa-bookmark:before{content:""}.fa-border-all:before{content:""}.fa-border-none:before{content:""}.fa-border-style:before,.fa-border-top-left:before{content:""}.fa-bowling-ball:before{content:""}.fa-box:before{content:""}.fa-archive:before,.fa-box-archive:before{content:""}.fa-box-open:before{content:""}.fa-box-tissue:before{content:""}.fa-boxes-alt:before,.fa-boxes-stacked:before,.fa-boxes:before{content:""}.fa-braille:before{content:""}.fa-brain:before{content:""}.fa-brazilian-real-sign:before{content:""}.fa-bread-slice:before{content:""}.fa-briefcase:before{content:""}.fa-briefcase-medical:before{content:""}.fa-broom:before{content:""}.fa-broom-ball:before,.fa-quidditch-broom-ball:before,.fa-quidditch:before{content:""}.fa-brush:before{content:""}.fa-bug:before{content:""}.fa-bug-slash:before{content:""}.fa-building:before{content:""}.fa-bank:before,.fa-building-columns:before,.fa-institution:before,.fa-museum:before,.fa-university:before{content:""}.fa-bullhorn:before{content:""}.fa-bullseye:before{content:""}.fa-burger:before,.fa-hamburger:before{content:""}.fa-bus:before{content:""}.fa-bus-alt:before,.fa-bus-simple:before{content:""}.fa-briefcase-clock:before,.fa-business-time:before{content:""}.fa-c:before{content:"C"}.fa-birthday-cake:before,.fa-cake-candles:before,.fa-cake:before{content:""}.fa-calculator:before{content:""}.fa-calendar:before{content:""}.fa-calendar-check:before{content:""}.fa-calendar-day:before{content:""}.fa-calendar-alt:before,.fa-calendar-days:before{content:""}.fa-calendar-minus:before{content:""}.fa-calendar-plus:before{content:""}.fa-calendar-week:before{content:""}.fa-calendar-times:before,.fa-calendar-xmark:before{content:""}.fa-camera-alt:before,.fa-camera:before{content:""}.fa-camera-retro:before{content:""}.fa-camera-rotate:before{content:""}.fa-campground:before{content:""}.fa-candy-cane:before{content:""}.fa-cannabis:before{content:""}.fa-capsules:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-battery-car:before,.fa-car-battery:before{content:""}.fa-car-crash:before{content:""}.fa-car-alt:before,.fa-car-rear:before{content:""}.fa-car-side:before{content:""}.fa-caravan:before{content:""}.fa-caret-down:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-caret-up:before{content:""}.fa-carrot:before{content:""}.fa-cart-arrow-down:before{content:""}.fa-cart-flatbed:before,.fa-dolly-flatbed:before{content:""}.fa-cart-flatbed-suitcase:before,.fa-luggage-cart:before{content:""}.fa-cart-plus:before{content:""}.fa-cart-shopping:before,.fa-shopping-cart:before{content:""}.fa-cash-register:before{content:""}.fa-cat:before{content:""}.fa-cedi-sign:before{content:""}.fa-cent-sign:before{content:""}.fa-certificate:before{content:""}.fa-chair:before{content:""}.fa-blackboard:before,.fa-chalkboard:before{content:""}.fa-chalkboard-teacher:before,.fa-chalkboard-user:before{content:""}.fa-champagne-glasses:before,.fa-glass-cheers:before{content:""}.fa-charging-station:before{content:""}.fa-area-chart:before,.fa-chart-area:before{content:""}.fa-bar-chart:before,.fa-chart-bar:before{content:""}.fa-chart-column:before{content:""}.fa-chart-gantt:before{content:""}.fa-chart-line:before,.fa-line-chart:before{content:""}.fa-chart-pie:before,.fa-pie-chart:before{content:""}.fa-check:before{content:""}.fa-check-double:before{content:""}.fa-check-to-slot:before,.fa-vote-yea:before{content:""}.fa-cheese:before{content:""}.fa-chess:before{content:""}.fa-chess-bishop:before{content:""}.fa-chess-board:before{content:""}.fa-chess-king:before{content:""}.fa-chess-knight:before{content:""}.fa-chess-pawn:before{content:""}.fa-chess-queen:before{content:""}.fa-chess-rook:before{content:""}.fa-chevron-down:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-chevron-up:before{content:""}.fa-child:before{content:""}.fa-church:before{content:""}.fa-circle:before{content:""}.fa-arrow-circle-down:before,.fa-circle-arrow-down:before{content:""}.fa-arrow-circle-left:before,.fa-circle-arrow-left:before{content:""}.fa-arrow-circle-right:before,.fa-circle-arrow-right:before{content:""}.fa-arrow-circle-up:before,.fa-circle-arrow-up:before{content:""}.fa-check-circle:before,.fa-circle-check:before{content:""}.fa-chevron-circle-down:before,.fa-circle-chevron-down:before{content:""}.fa-chevron-circle-left:before,.fa-circle-chevron-left:before{content:""}.fa-chevron-circle-right:before,.fa-circle-chevron-right:before{content:""}.fa-chevron-circle-up:before,.fa-circle-chevron-up:before{content:""}.fa-circle-dollar-to-slot:before,.fa-donate:before{content:""}.fa-circle-dot:before,.fa-dot-circle:before{content:""}.fa-arrow-alt-circle-down:before,.fa-circle-down:before{content:""}.fa-circle-exclamation:before,.fa-exclamation-circle:before{content:""}.fa-circle-h:before,.fa-hospital-symbol:before{content:""}.fa-adjust:before,.fa-circle-half-stroke:before{content:""}.fa-circle-info:before,.fa-info-circle:before{content:""}.fa-arrow-alt-circle-left:before,.fa-circle-left:before{content:""}.fa-circle-minus:before,.fa-minus-circle:before{content:""}.fa-circle-notch:before{content:""}.fa-circle-pause:before,.fa-pause-circle:before{content:""}.fa-circle-play:before,.fa-play-circle:before{content:""}.fa-circle-plus:before,.fa-plus-circle:before{content:""}.fa-circle-question:before,.fa-question-circle:before{content:""}.fa-circle-radiation:before,.fa-radiation-alt:before{content:""}.fa-arrow-alt-circle-right:before,.fa-circle-right:before{content:""}.fa-circle-stop:before,.fa-stop-circle:before{content:""}.fa-arrow-alt-circle-up:before,.fa-circle-up:before{content:""}.fa-circle-user:before,.fa-user-circle:before{content:""}.fa-circle-xmark:before,.fa-times-circle:before,.fa-xmark-circle:before{content:""}.fa-city:before{content:""}.fa-clapperboard:before{content:""}.fa-clipboard:before{content:""}.fa-clipboard-check:before{content:""}.fa-clipboard-list:before{content:""}.fa-clock-four:before,.fa-clock:before{content:""}.fa-clock-rotate-left:before,.fa-history:before{content:""}.fa-clone:before{content:""}.fa-closed-captioning:before{content:""}.fa-cloud:before{content:""}.fa-cloud-arrow-down:before,.fa-cloud-download-alt:before,.fa-cloud-download:before{content:""}.fa-cloud-arrow-up:before,.fa-cloud-upload-alt:before,.fa-cloud-upload:before{content:""}.fa-cloud-meatball:before{content:""}.fa-cloud-moon:before{content:""}.fa-cloud-moon-rain:before{content:""}.fa-cloud-rain:before{content:""}.fa-cloud-showers-heavy:before{content:""}.fa-cloud-sun:before{content:""}.fa-cloud-sun-rain:before{content:""}.fa-clover:before{content:""}.fa-code:before{content:""}.fa-code-branch:before{content:""}.fa-code-commit:before{content:""}.fa-code-compare:before{content:""}.fa-code-fork:before{content:""}.fa-code-merge:before{content:""}.fa-code-pull-request:before{content:""}.fa-coins:before{content:""}.fa-colon-sign:before{content:""}.fa-comment:before{content:""}.fa-comment-dollar:before{content:""}.fa-comment-dots:before,.fa-commenting:before{content:""}.fa-comment-medical:before{content:""}.fa-comment-slash:before{content:""}.fa-comment-sms:before,.fa-sms:before{content:""}.fa-comments:before{content:""}.fa-comments-dollar:before{content:""}.fa-compact-disc:before{content:""}.fa-compass:before{content:""}.fa-compass-drafting:before,.fa-drafting-compass:before{content:""}.fa-compress:before{content:""}.fa-computer-mouse:before,.fa-mouse:before{content:""}.fa-cookie:before{content:""}.fa-cookie-bite:before{content:""}.fa-copy:before{content:""}.fa-copyright:before{content:""}.fa-couch:before{content:""}.fa-credit-card-alt:before,.fa-credit-card:before{content:""}.fa-crop:before{content:""}.fa-crop-alt:before,.fa-crop-simple:before{content:""}.fa-cross:before{content:""}.fa-crosshairs:before{content:""}.fa-crow:before{content:""}.fa-crown:before{content:""}.fa-crutch:before{content:""}.fa-cruzeiro-sign:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-d:before{content:"D"}.fa-database:before{content:""}.fa-backspace:before,.fa-delete-left:before{content:""}.fa-democrat:before{content:""}.fa-desktop-alt:before,.fa-desktop:before{content:""}.fa-dharmachakra:before{content:""}.fa-diagram-next:before{content:""}.fa-diagram-predecessor:before{content:""}.fa-diagram-project:before,.fa-project-diagram:before{content:""}.fa-diagram-successor:before{content:""}.fa-diamond:before{content:""}.fa-diamond-turn-right:before,.fa-directions:before{content:""}.fa-dice:before{content:""}.fa-dice-d20:before{content:""}.fa-dice-d6:before{content:""}.fa-dice-five:before{content:""}.fa-dice-four:before{content:""}.fa-dice-one:before{content:""}.fa-dice-six:before{content:""}.fa-dice-three:before{content:""}.fa-dice-two:before{content:""}.fa-disease:before{content:""}.fa-divide:before{content:""}.fa-dna:before{content:""}.fa-dog:before{content:""}.fa-dollar-sign:before,.fa-dollar:before,.fa-usd:before{content:"$"}.fa-dolly-box:before,.fa-dolly:before{content:""}.fa-dong-sign:before{content:""}.fa-door-closed:before{content:""}.fa-door-open:before{content:""}.fa-dove:before{content:""}.fa-compress-alt:before,.fa-down-left-and-up-right-to-center:before{content:""}.fa-down-long:before,.fa-long-arrow-alt-down:before{content:""}.fa-download:before{content:""}.fa-dragon:before{content:""}.fa-draw-polygon:before{content:""}.fa-droplet:before,.fa-tint:before{content:""}.fa-droplet-slash:before,.fa-tint-slash:before{content:""}.fa-drum:before{content:""}.fa-drum-steelpan:before{content:""}.fa-drumstick-bite:before{content:""}.fa-dumbbell:before{content:""}.fa-dumpster:before{content:""}.fa-dumpster-fire:before{content:""}.fa-dungeon:before{content:""}.fa-e:before{content:"E"}.fa-deaf:before,.fa-deafness:before,.fa-ear-deaf:before,.fa-hard-of-hearing:before{content:""}.fa-assistive-listening-systems:before,.fa-ear-listen:before{content:""}.fa-earth-africa:before,.fa-globe-africa:before{content:""}.fa-earth-america:before,.fa-earth-americas:before,.fa-earth:before,.fa-globe-americas:before{content:""}.fa-earth-asia:before,.fa-globe-asia:before{content:""}.fa-earth-europe:before,.fa-globe-europe:before{content:""}.fa-earth-oceania:before,.fa-globe-oceania:before{content:""}.fa-egg:before{content:""}.fa-eject:before{content:""}.fa-elevator:before{content:""}.fa-ellipsis-h:before,.fa-ellipsis:before{content:""}.fa-ellipsis-v:before,.fa-ellipsis-vertical:before{content:""}.fa-envelope:before{content:""}.fa-envelope-open:before{content:""}.fa-envelope-open-text:before{content:""}.fa-envelopes-bulk:before,.fa-mail-bulk:before{content:""}.fa-equals:before{content:"="}.fa-eraser:before{content:""}.fa-ethernet:before{content:""}.fa-eur:before,.fa-euro-sign:before,.fa-euro:before{content:""}.fa-exclamation:before{content:"!"}.fa-expand:before{content:""}.fa-eye:before{content:""}.fa-eye-dropper-empty:before,.fa-eye-dropper:before,.fa-eyedropper:before{content:""}.fa-eye-low-vision:before,.fa-low-vision:before{content:""}.fa-eye-slash:before{content:""}.fa-f:before{content:"F"}.fa-angry:before,.fa-face-angry:before{content:""}.fa-dizzy:before,.fa-face-dizzy:before{content:""}.fa-face-flushed:before,.fa-flushed:before{content:""}.fa-face-frown:before,.fa-frown:before{content:""}.fa-face-frown-open:before,.fa-frown-open:before{content:""}.fa-face-grimace:before,.fa-grimace:before{content:""}.fa-face-grin:before,.fa-grin:before{content:""}.fa-face-grin-beam:before,.fa-grin-beam:before{content:""}.fa-face-grin-beam-sweat:before,.fa-grin-beam-sweat:before{content:""}.fa-face-grin-hearts:before,.fa-grin-hearts:before{content:""}.fa-face-grin-squint:before,.fa-grin-squint:before{content:""}.fa-face-grin-squint-tears:before,.fa-grin-squint-tears:before{content:""}.fa-face-grin-stars:before,.fa-grin-stars:before{content:""}.fa-face-grin-tears:before,.fa-grin-tears:before{content:""}.fa-face-grin-tongue:before,.fa-grin-tongue:before{content:""}.fa-face-grin-tongue-squint:before,.fa-grin-tongue-squint:before{content:""}.fa-face-grin-tongue-wink:before,.fa-grin-tongue-wink:before{content:""}.fa-face-grin-wide:before,.fa-grin-alt:before{content:""}.fa-face-grin-wink:before,.fa-grin-wink:before{content:""}.fa-face-kiss:before,.fa-kiss:before{content:""}.fa-face-kiss-beam:before,.fa-kiss-beam:before{content:""}.fa-face-kiss-wink-heart:before,.fa-kiss-wink-heart:before{content:""}.fa-face-laugh:before,.fa-laugh:before{content:""}.fa-face-laugh-beam:before,.fa-laugh-beam:before{content:""}.fa-face-laugh-squint:before,.fa-laugh-squint:before{content:""}.fa-face-laugh-wink:before,.fa-laugh-wink:before{content:""}.fa-face-meh:before,.fa-meh:before{content:""}.fa-face-meh-blank:before,.fa-meh-blank:before{content:""}.fa-face-rolling-eyes:before,.fa-meh-rolling-eyes:before{content:""}.fa-face-sad-cry:before,.fa-sad-cry:before{content:""}.fa-face-sad-tear:before,.fa-sad-tear:before{content:""}.fa-face-smile:before,.fa-smile:before{content:""}.fa-face-smile-beam:before,.fa-smile-beam:before{content:""}.fa-face-smile-wink:before,.fa-smile-wink:before{content:""}.fa-face-surprise:before,.fa-surprise:before{content:""}.fa-face-tired:before,.fa-tired:before{content:""}.fa-fan:before{content:""}.fa-faucet:before{content:""}.fa-fax:before{content:""}.fa-feather:before{content:""}.fa-feather-alt:before,.fa-feather-pointed:before{content:""}.fa-file:before{content:""}.fa-file-arrow-down:before,.fa-file-download:before{content:""}.fa-file-arrow-up:before,.fa-file-upload:before{content:""}.fa-file-audio:before{content:""}.fa-file-code:before{content:""}.fa-file-contract:before{content:""}.fa-file-csv:before{content:""}.fa-file-excel:before{content:""}.fa-arrow-right-from-file:before,.fa-file-export:before{content:""}.fa-file-image:before{content:""}.fa-arrow-right-to-file:before,.fa-file-import:before{content:""}.fa-file-invoice:before{content:""}.fa-file-invoice-dollar:before{content:""}.fa-file-alt:before,.fa-file-lines:before,.fa-file-text:before{content:""}.fa-file-medical:before{content:""}.fa-file-pdf:before{content:""}.fa-file-powerpoint:before{content:""}.fa-file-prescription:before{content:""}.fa-file-signature:before{content:""}.fa-file-video:before{content:""}.fa-file-medical-alt:before,.fa-file-waveform:before{content:""}.fa-file-word:before{content:""}.fa-file-archive:before,.fa-file-zipper:before{content:""}.fa-fill:before{content:""}.fa-fill-drip:before{content:""}.fa-film:before{content:""}.fa-filter:before{content:""}.fa-filter-circle-dollar:before,.fa-funnel-dollar:before{content:""}.fa-filter-circle-xmark:before{content:""}.fa-fingerprint:before{content:""}.fa-fire:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-fire-alt:before,.fa-fire-flame-curved:before{content:""}.fa-burn:before,.fa-fire-flame-simple:before{content:""}.fa-fish:before{content:""}.fa-flag:before{content:""}.fa-flag-checkered:before{content:""}.fa-flag-usa:before{content:""}.fa-flask:before{content:""}.fa-floppy-disk:before,.fa-save:before{content:""}.fa-florin-sign:before{content:""}.fa-folder:before{content:""}.fa-folder-minus:before{content:""}.fa-folder-open:before{content:""}.fa-folder-plus:before{content:""}.fa-folder-tree:before{content:""}.fa-font:before{content:""}.fa-football-ball:before,.fa-football:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before,.fa-forward-fast:before{content:""}.fa-forward-step:before,.fa-step-forward:before{content:""}.fa-franc-sign:before{content:""}.fa-frog:before{content:""}.fa-futbol-ball:before,.fa-futbol:before,.fa-soccer-ball:before{content:""}.fa-g:before{content:"G"}.fa-gamepad:before{content:""}.fa-gas-pump:before{content:""}.fa-dashboard:before,.fa-gauge-med:before,.fa-gauge:before,.fa-tachometer-alt-average:before{content:""}.fa-gauge-high:before,.fa-tachometer-alt-fast:before,.fa-tachometer-alt:before{content:""}.fa-gauge-simple-med:before,.fa-gauge-simple:before,.fa-tachometer-average:before{content:""}.fa-gauge-simple-high:before,.fa-tachometer-fast:before,.fa-tachometer:before{content:""}.fa-gavel:before,.fa-legal:before{content:""}.fa-cog:before,.fa-gear:before{content:""}.fa-cogs:before,.fa-gears:before{content:""}.fa-gem:before{content:""}.fa-genderless:before{content:""}.fa-ghost:before{content:""}.fa-gift:before{content:""}.fa-gifts:before{content:""}.fa-glasses:before{content:""}.fa-globe:before{content:""}.fa-golf-ball-tee:before,.fa-golf-ball:before{content:""}.fa-gopuram:before{content:""}.fa-graduation-cap:before,.fa-mortar-board:before{content:""}.fa-greater-than:before{content:">"}.fa-greater-than-equal:before{content:""}.fa-grip-horizontal:before,.fa-grip:before{content:""}.fa-grip-lines:before{content:""}.fa-grip-lines-vertical:before{content:""}.fa-grip-vertical:before{content:""}.fa-guarani-sign:before{content:""}.fa-guitar:before{content:""}.fa-gun:before{content:""}.fa-h:before{content:"H"}.fa-hammer:before{content:""}.fa-hamsa:before{content:""}.fa-hand-paper:before,.fa-hand:before{content:""}.fa-hand-back-fist:before,.fa-hand-rock:before{content:""}.fa-allergies:before,.fa-hand-dots:before{content:""}.fa-fist-raised:before,.fa-hand-fist:before{content:""}.fa-hand-holding:before{content:""}.fa-hand-holding-dollar:before,.fa-hand-holding-usd:before{content:""}.fa-hand-holding-droplet:before,.fa-hand-holding-water:before{content:""}.fa-hand-holding-heart:before{content:""}.fa-hand-holding-medical:before{content:""}.fa-hand-lizard:before{content:""}.fa-hand-middle-finger:before{content:""}.fa-hand-peace:before{content:""}.fa-hand-point-down:before{content:""}.fa-hand-point-left:before{content:""}.fa-hand-point-right:before{content:""}.fa-hand-point-up:before{content:""}.fa-hand-pointer:before{content:""}.fa-hand-scissors:before{content:""}.fa-hand-sparkles:before{content:""}.fa-hand-spock:before{content:""}.fa-hands:before,.fa-sign-language:before,.fa-signing:before{content:""}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before,.fa-hands-american-sign-language-interpreting:before,.fa-hands-asl-interpreting:before{content:""}.fa-hands-bubbles:before,.fa-hands-wash:before{content:""}.fa-hands-clapping:before{content:""}.fa-hands-holding:before{content:""}.fa-hands-praying:before,.fa-praying-hands:before{content:""}.fa-handshake:before{content:""}.fa-hands-helping:before,.fa-handshake-angle:before{content:""}.fa-handshake-alt-slash:before,.fa-handshake-simple-slash:before{content:""}.fa-handshake-slash:before{content:""}.fa-hanukiah:before{content:""}.fa-hard-drive:before,.fa-hdd:before{content:""}.fa-hashtag:before{content:"#"}.fa-hat-cowboy:before{content:""}.fa-hat-cowboy-side:before{content:""}.fa-hat-wizard:before{content:""}.fa-head-side-cough:before{content:""}.fa-head-side-cough-slash:before{content:""}.fa-head-side-mask:before{content:""}.fa-head-side-virus:before{content:""}.fa-header:before,.fa-heading:before{content:""}.fa-headphones:before{content:""}.fa-headphones-alt:before,.fa-headphones-simple:before{content:""}.fa-headset:before{content:""}.fa-heart:before{content:""}.fa-heart-broken:before,.fa-heart-crack:before{content:""}.fa-heart-pulse:before,.fa-heartbeat:before{content:""}.fa-helicopter:before{content:""}.fa-hard-hat:before,.fa-hat-hard:before,.fa-helmet-safety:before{content:""}.fa-highlighter:before{content:""}.fa-hippo:before{content:""}.fa-hockey-puck:before{content:""}.fa-holly-berry:before{content:""}.fa-horse:before{content:""}.fa-horse-head:before{content:""}.fa-hospital-alt:before,.fa-hospital-wide:before,.fa-hospital:before{content:""}.fa-hospital-user:before{content:""}.fa-hot-tub-person:before,.fa-hot-tub:before{content:""}.fa-hotdog:before{content:""}.fa-hotel:before{content:""}.fa-hourglass-2:before,.fa-hourglass-half:before,.fa-hourglass:before{content:""}.fa-hourglass-empty:before{content:""}.fa-hourglass-3:before,.fa-hourglass-end:before{content:""}.fa-hourglass-1:before,.fa-hourglass-start:before{content:""}.fa-home-alt:before,.fa-home-lg-alt:before,.fa-home:before,.fa-house:before{content:""}.fa-home-lg:before,.fa-house-chimney:before{content:""}.fa-house-chimney-crack:before,.fa-house-damage:before{content:""}.fa-clinic-medical:before,.fa-house-chimney-medical:before{content:""}.fa-house-chimney-user:before{content:""}.fa-house-chimney-window:before{content:""}.fa-house-crack:before{content:""}.fa-house-laptop:before,.fa-laptop-house:before{content:""}.fa-house-medical:before{content:""}.fa-home-user:before,.fa-house-user:before{content:""}.fa-hryvnia-sign:before,.fa-hryvnia:before{content:""}.fa-i:before{content:"I"}.fa-i-cursor:before{content:""}.fa-ice-cream:before{content:""}.fa-icicles:before{content:""}.fa-heart-music-camera-bolt:before,.fa-icons:before{content:""}.fa-id-badge:before{content:""}.fa-drivers-license:before,.fa-id-card:before{content:""}.fa-id-card-alt:before,.fa-id-card-clip:before{content:""}.fa-igloo:before{content:""}.fa-image:before{content:""}.fa-image-portrait:before,.fa-portrait:before{content:""}.fa-images:before{content:""}.fa-inbox:before{content:""}.fa-indent:before{content:""}.fa-indian-rupee-sign:before,.fa-indian-rupee:before,.fa-inr:before{content:""}.fa-industry:before{content:""}.fa-infinity:before{content:""}.fa-info:before{content:""}.fa-italic:before{content:""}.fa-j:before{content:"J"}.fa-jedi:before{content:""}.fa-fighter-jet:before,.fa-jet-fighter:before{content:""}.fa-joint:before{content:""}.fa-k:before{content:"K"}.fa-kaaba:before{content:""}.fa-key:before{content:""}.fa-keyboard:before{content:""}.fa-khanda:before{content:""}.fa-kip-sign:before{content:""}.fa-first-aid:before,.fa-kit-medical:before{content:""}.fa-kiwi-bird:before{content:""}.fa-l:before{content:"L"}.fa-landmark:before{content:""}.fa-language:before{content:""}.fa-laptop:before{content:""}.fa-laptop-code:before{content:""}.fa-laptop-medical:before{content:""}.fa-lari-sign:before{content:""}.fa-layer-group:before{content:""}.fa-leaf:before{content:""}.fa-left-long:before,.fa-long-arrow-alt-left:before{content:""}.fa-arrows-alt-h:before,.fa-left-right:before{content:""}.fa-lemon:before{content:""}.fa-less-than:before{content:"<"}.fa-less-than-equal:before{content:""}.fa-life-ring:before{content:""}.fa-lightbulb:before{content:""}.fa-chain:before,.fa-link:before{content:""}.fa-chain-broken:before,.fa-chain-slash:before,.fa-link-slash:before,.fa-unlink:before{content:""}.fa-lira-sign:before{content:""}.fa-list-squares:before,.fa-list:before{content:""}.fa-list-check:before,.fa-tasks:before{content:""}.fa-list-1-2:before,.fa-list-numeric:before,.fa-list-ol:before{content:""}.fa-list-dots:before,.fa-list-ul:before{content:""}.fa-litecoin-sign:before{content:""}.fa-location-arrow:before{content:""}.fa-location-crosshairs:before,.fa-location:before{content:""}.fa-location-dot:before,.fa-map-marker-alt:before{content:""}.fa-location-pin:before,.fa-map-marker:before{content:""}.fa-lock:before{content:""}.fa-lock-open:before{content:""}.fa-lungs:before{content:""}.fa-lungs-virus:before{content:""}.fa-m:before{content:"M"}.fa-magnet:before{content:""}.fa-magnifying-glass:before,.fa-search:before{content:""}.fa-magnifying-glass-dollar:before,.fa-search-dollar:before{content:""}.fa-magnifying-glass-location:before,.fa-search-location:before{content:""}.fa-magnifying-glass-minus:before,.fa-search-minus:before{content:""}.fa-magnifying-glass-plus:before,.fa-search-plus:before{content:""}.fa-manat-sign:before{content:""}.fa-map:before{content:""}.fa-map-location:before,.fa-map-marked:before{content:""}.fa-map-location-dot:before,.fa-map-marked-alt:before{content:""}.fa-map-pin:before{content:""}.fa-marker:before{content:""}.fa-mars:before{content:""}.fa-mars-and-venus:before{content:""}.fa-mars-double:before{content:""}.fa-mars-stroke:before{content:""}.fa-mars-stroke-h:before,.fa-mars-stroke-right:before{content:""}.fa-mars-stroke-up:before,.fa-mars-stroke-v:before{content:""}.fa-glass-martini-alt:before,.fa-martini-glass:before{content:""}.fa-cocktail:before,.fa-martini-glass-citrus:before{content:""}.fa-glass-martini:before,.fa-martini-glass-empty:before{content:""}.fa-mask:before{content:""}.fa-mask-face:before{content:""}.fa-masks-theater:before,.fa-theater-masks:before{content:""}.fa-expand-arrows-alt:before,.fa-maximize:before{content:""}.fa-medal:before{content:""}.fa-memory:before{content:""}.fa-menorah:before{content:""}.fa-mercury:before{content:""}.fa-comment-alt:before,.fa-message:before{content:""}.fa-meteor:before{content:""}.fa-microchip:before{content:""}.fa-microphone:before{content:""}.fa-microphone-alt:before,.fa-microphone-lines:before{content:""}.fa-microphone-alt-slash:before,.fa-microphone-lines-slash:before{content:""}.fa-microphone-slash:before{content:""}.fa-microscope:before{content:""}.fa-mill-sign:before{content:""}.fa-compress-arrows-alt:before,.fa-minimize:before{content:""}.fa-minus:before,.fa-subtract:before{content:""}.fa-mitten:before{content:""}.fa-mobile-android:before,.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-mobile-button:before{content:""}.fa-mobile-alt:before,.fa-mobile-screen-button:before{content:""}.fa-money-bill:before{content:""}.fa-money-bill-1:before,.fa-money-bill-alt:before{content:""}.fa-money-bill-1-wave:before,.fa-money-bill-wave-alt:before{content:""}.fa-money-bill-wave:before{content:""}.fa-money-check:before{content:""}.fa-money-check-alt:before,.fa-money-check-dollar:before{content:""}.fa-monument:before{content:""}.fa-moon:before{content:""}.fa-mortar-pestle:before{content:""}.fa-mosque:before{content:""}.fa-motorcycle:before{content:""}.fa-mountain:before{content:""}.fa-mug-hot:before{content:""}.fa-coffee:before,.fa-mug-saucer:before{content:""}.fa-music:before{content:""}.fa-n:before{content:"N"}.fa-naira-sign:before{content:""}.fa-network-wired:before{content:""}.fa-neuter:before{content:""}.fa-newspaper:before{content:""}.fa-not-equal:before{content:""}.fa-note-sticky:before,.fa-sticky-note:before{content:""}.fa-notes-medical:before{content:""}.fa-o:before{content:"O"}.fa-object-group:before{content:""}.fa-object-ungroup:before{content:""}.fa-oil-can:before{content:""}.fa-om:before{content:""}.fa-otter:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-p:before{content:"P"}.fa-pager:before{content:""}.fa-paint-roller:before{content:""}.fa-paint-brush:before,.fa-paintbrush:before{content:""}.fa-palette:before{content:""}.fa-pallet:before{content:""}.fa-panorama:before{content:""}.fa-paper-plane:before{content:""}.fa-paperclip:before{content:""}.fa-parachute-box:before{content:""}.fa-paragraph:before{content:""}.fa-passport:before{content:""}.fa-file-clipboard:before,.fa-paste:before{content:""}.fa-pause:before{content:""}.fa-paw:before{content:""}.fa-peace:before{content:""}.fa-pen:before{content:""}.fa-pen-alt:before,.fa-pen-clip:before{content:""}.fa-pen-fancy:before{content:""}.fa-pen-nib:before{content:""}.fa-pen-ruler:before,.fa-pencil-ruler:before{content:""}.fa-edit:before,.fa-pen-to-square:before{content:""}.fa-pencil-alt:before,.fa-pencil:before{content:""}.fa-people-arrows-left-right:before,.fa-people-arrows:before{content:""}.fa-people-carry-box:before,.fa-people-carry:before{content:""}.fa-pepper-hot:before{content:""}.fa-percent:before,.fa-percentage:before{content:"%"}.fa-male:before,.fa-person:before{content:""}.fa-biking:before,.fa-person-biking:before{content:""}.fa-person-booth:before{content:""}.fa-diagnoses:before,.fa-person-dots-from-line:before{content:""}.fa-female:before,.fa-person-dress:before{content:""}.fa-hiking:before,.fa-person-hiking:before{content:""}.fa-person-praying:before,.fa-pray:before{content:""}.fa-person-running:before,.fa-running:before{content:""}.fa-person-skating:before,.fa-skating:before{content:""}.fa-person-skiing:before,.fa-skiing:before{content:""}.fa-person-skiing-nordic:before,.fa-skiing-nordic:before{content:""}.fa-person-snowboarding:before,.fa-snowboarding:before{content:""}.fa-person-swimming:before,.fa-swimmer:before{content:""}.fa-person-walking:before,.fa-walking:before{content:""}.fa-blind:before,.fa-person-walking-with-cane:before{content:""}.fa-peseta-sign:before{content:""}.fa-peso-sign:before{content:""}.fa-phone:before{content:""}.fa-phone-alt:before,.fa-phone-flip:before{content:""}.fa-phone-slash:before{content:""}.fa-phone-volume:before,.fa-volume-control-phone:before{content:""}.fa-photo-film:before,.fa-photo-video:before{content:""}.fa-piggy-bank:before{content:""}.fa-pills:before{content:""}.fa-pizza-slice:before{content:""}.fa-place-of-worship:before{content:""}.fa-plane:before{content:""}.fa-plane-arrival:before{content:""}.fa-plane-departure:before{content:""}.fa-plane-slash:before{content:""}.fa-play:before{content:""}.fa-plug:before{content:""}.fa-add:before,.fa-plus:before{content:"+"}.fa-plus-minus:before{content:""}.fa-podcast:before{content:""}.fa-poo:before{content:""}.fa-poo-bolt:before,.fa-poo-storm:before{content:""}.fa-poop:before{content:""}.fa-power-off:before{content:""}.fa-prescription:before{content:""}.fa-prescription-bottle:before{content:""}.fa-prescription-bottle-alt:before,.fa-prescription-bottle-medical:before{content:""}.fa-print:before{content:""}.fa-pump-medical:before{content:""}.fa-pump-soap:before{content:""}.fa-puzzle-piece:before{content:""}.fa-q:before{content:"Q"}.fa-qrcode:before{content:""}.fa-question:before{content:"?"}.fa-quote-left-alt:before,.fa-quote-left:before{content:""}.fa-quote-right-alt:before,.fa-quote-right:before{content:""}.fa-r:before{content:"R"}.fa-radiation:before{content:""}.fa-rainbow:before{content:""}.fa-receipt:before{content:""}.fa-record-vinyl:before{content:""}.fa-ad:before,.fa-rectangle-ad:before{content:""}.fa-list-alt:before,.fa-rectangle-list:before{content:""}.fa-rectangle-times:before,.fa-rectangle-xmark:before,.fa-times-rectangle:before,.fa-window-close:before{content:""}.fa-recycle:before{content:""}.fa-registered:before{content:""}.fa-repeat:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-republican:before{content:""}.fa-restroom:before{content:""}.fa-retweet:before{content:""}.fa-ribbon:before{content:""}.fa-right-from-bracket:before,.fa-sign-out-alt:before{content:""}.fa-exchange-alt:before,.fa-right-left:before{content:""}.fa-long-arrow-alt-right:before,.fa-right-long:before{content:""}.fa-right-to-bracket:before,.fa-sign-in-alt:before{content:""}.fa-ring:before{content:""}.fa-road:before{content:""}.fa-robot:before{content:""}.fa-rocket:before{content:""}.fa-rotate:before,.fa-sync-alt:before{content:""}.fa-rotate-back:before,.fa-rotate-backward:before,.fa-rotate-left:before,.fa-undo-alt:before{content:""}.fa-redo-alt:before,.fa-rotate-forward:before,.fa-rotate-right:before{content:""}.fa-route:before{content:""}.fa-feed:before,.fa-rss:before{content:""}.fa-rouble:before,.fa-rub:before,.fa-ruble-sign:before,.fa-ruble:before{content:""}.fa-ruler:before{content:""}.fa-ruler-combined:before{content:""}.fa-ruler-horizontal:before{content:""}.fa-ruler-vertical:before{content:""}.fa-rupee-sign:before,.fa-rupee:before{content:""}.fa-rupiah-sign:before{content:""}.fa-s:before{content:"S"}.fa-sailboat:before{content:""}.fa-satellite:before{content:""}.fa-satellite-dish:before{content:""}.fa-balance-scale:before,.fa-scale-balanced:before{content:""}.fa-balance-scale-left:before,.fa-scale-unbalanced:before{content:""}.fa-balance-scale-right:before,.fa-scale-unbalanced-flip:before{content:""}.fa-school:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-screwdriver:before{content:""}.fa-screwdriver-wrench:before,.fa-tools:before{content:""}.fa-scroll:before{content:""}.fa-scroll-torah:before,.fa-torah:before{content:""}.fa-sd-card:before{content:""}.fa-section:before{content:""}.fa-seedling:before,.fa-sprout:before{content:""}.fa-server:before{content:""}.fa-shapes:before,.fa-triangle-circle-square:before{content:""}.fa-arrow-turn-right:before,.fa-mail-forward:before,.fa-share:before{content:""}.fa-share-from-square:before,.fa-share-square:before{content:""}.fa-share-alt:before,.fa-share-nodes:before{content:""}.fa-ils:before,.fa-shekel-sign:before,.fa-shekel:before,.fa-sheqel-sign:before,.fa-sheqel:before{content:""}.fa-shield:before{content:""}.fa-shield-alt:before,.fa-shield-blank:before{content:""}.fa-shield-virus:before{content:""}.fa-ship:before{content:""}.fa-shirt:before,.fa-t-shirt:before,.fa-tshirt:before{content:""}.fa-shoe-prints:before{content:""}.fa-shop:before,.fa-store-alt:before{content:""}.fa-shop-slash:before,.fa-store-alt-slash:before{content:""}.fa-shower:before{content:""}.fa-shrimp:before{content:""}.fa-random:before,.fa-shuffle:before{content:""}.fa-shuttle-space:before,.fa-space-shuttle:before{content:""}.fa-sign-hanging:before,.fa-sign:before{content:""}.fa-signal-5:before,.fa-signal-perfect:before,.fa-signal:before{content:""}.fa-signature:before{content:""}.fa-map-signs:before,.fa-signs-post:before{content:""}.fa-sim-card:before{content:""}.fa-sink:before{content:""}.fa-sitemap:before{content:""}.fa-skull:before{content:""}.fa-skull-crossbones:before{content:""}.fa-slash:before{content:""}.fa-sleigh:before{content:""}.fa-sliders-h:before,.fa-sliders:before{content:""}.fa-smog:before{content:""}.fa-smoking:before{content:""}.fa-snowflake:before{content:""}.fa-snowman:before{content:""}.fa-snowplow:before{content:""}.fa-soap:before{content:""}.fa-socks:before{content:""}.fa-solar-panel:before{content:""}.fa-sort:before,.fa-unsorted:before{content:""}.fa-sort-desc:before,.fa-sort-down:before{content:""}.fa-sort-asc:before,.fa-sort-up:before{content:""}.fa-spa:before{content:""}.fa-pastafarianism:before,.fa-spaghetti-monster-flying:before{content:""}.fa-spell-check:before{content:""}.fa-spider:before{content:""}.fa-spinner:before{content:""}.fa-splotch:before{content:""}.fa-spoon:before,.fa-utensil-spoon:before{content:""}.fa-spray-can:before{content:""}.fa-air-freshener:before,.fa-spray-can-sparkles:before{content:""}.fa-square:before{content:""}.fa-external-link-square:before,.fa-square-arrow-up-right:before{content:""}.fa-caret-square-down:before,.fa-square-caret-down:before{content:""}.fa-caret-square-left:before,.fa-square-caret-left:before{content:""}.fa-caret-square-right:before,.fa-square-caret-right:before{content:""}.fa-caret-square-up:before,.fa-square-caret-up:before{content:""}.fa-check-square:before,.fa-square-check:before{content:""}.fa-envelope-square:before,.fa-square-envelope:before{content:""}.fa-square-full:before{content:""}.fa-h-square:before,.fa-square-h:before{content:""}.fa-minus-square:before,.fa-square-minus:before{content:""}.fa-parking:before,.fa-square-parking:before{content:""}.fa-pen-square:before,.fa-pencil-square:before,.fa-square-pen:before{content:""}.fa-phone-square:before,.fa-square-phone:before{content:""}.fa-phone-square-alt:before,.fa-square-phone-flip:before{content:""}.fa-plus-square:before,.fa-square-plus:before{content:""}.fa-poll-h:before,.fa-square-poll-horizontal:before{content:""}.fa-poll:before,.fa-square-poll-vertical:before{content:""}.fa-square-root-alt:before,.fa-square-root-variable:before{content:""}.fa-rss-square:before,.fa-square-rss:before{content:""}.fa-share-alt-square:before,.fa-square-share-nodes:before{content:""}.fa-external-link-square-alt:before,.fa-square-up-right:before{content:""}.fa-square-xmark:before,.fa-times-square:before,.fa-xmark-square:before{content:""}.fa-stairs:before{content:""}.fa-stamp:before{content:""}.fa-star:before{content:""}.fa-star-and-crescent:before{content:""}.fa-star-half:before{content:""}.fa-star-half-alt:before,.fa-star-half-stroke:before{content:""}.fa-star-of-david:before{content:""}.fa-star-of-life:before{content:""}.fa-gbp:before,.fa-pound-sign:before,.fa-sterling-sign:before{content:""}.fa-stethoscope:before{content:""}.fa-stop:before{content:""}.fa-stopwatch:before{content:""}.fa-stopwatch-20:before{content:""}.fa-store:before{content:""}.fa-store-slash:before{content:""}.fa-street-view:before{content:""}.fa-strikethrough:before{content:""}.fa-stroopwafel:before{content:""}.fa-subscript:before{content:""}.fa-suitcase:before{content:""}.fa-medkit:before,.fa-suitcase-medical:before{content:""}.fa-suitcase-rolling:before{content:""}.fa-sun:before{content:""}.fa-superscript:before{content:""}.fa-swatchbook:before{content:""}.fa-synagogue:before{content:""}.fa-syringe:before{content:""}.fa-t:before{content:"T"}.fa-table:before{content:""}.fa-table-cells:before,.fa-th:before{content:""}.fa-table-cells-large:before,.fa-th-large:before{content:""}.fa-columns:before,.fa-table-columns:before{content:""}.fa-table-list:before,.fa-th-list:before{content:""}.fa-ping-pong-paddle-ball:before,.fa-table-tennis-paddle-ball:before,.fa-table-tennis:before{content:""}.fa-tablet-android:before,.fa-tablet:before{content:""}.fa-tablet-button:before{content:""}.fa-tablet-alt:before,.fa-tablet-screen-button:before{content:""}.fa-tablets:before{content:""}.fa-digital-tachograph:before,.fa-tachograph-digital:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-tape:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-teeth:before{content:""}.fa-teeth-open:before{content:""}.fa-temperature-0:before,.fa-temperature-empty:before,.fa-thermometer-0:before,.fa-thermometer-empty:before{content:""}.fa-temperature-4:before,.fa-temperature-full:before,.fa-thermometer-4:before,.fa-thermometer-full:before{content:""}.fa-temperature-2:before,.fa-temperature-half:before,.fa-thermometer-2:before,.fa-thermometer-half:before{content:""}.fa-temperature-high:before{content:""}.fa-temperature-low:before{content:""}.fa-temperature-1:before,.fa-temperature-quarter:before,.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:""}.fa-temperature-3:before,.fa-temperature-three-quarters:before,.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:""}.fa-tenge-sign:before,.fa-tenge:before{content:""}.fa-terminal:before{content:""}.fa-text-height:before{content:""}.fa-remove-format:before,.fa-text-slash:before{content:""}.fa-text-width:before{content:""}.fa-thermometer:before{content:""}.fa-thumbs-down:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumb-tack:before,.fa-thumbtack:before{content:""}.fa-ticket:before{content:""}.fa-ticket-alt:before,.fa-ticket-simple:before{content:""}.fa-timeline:before{content:""}.fa-toggle-off:before{content:""}.fa-toggle-on:before{content:""}.fa-toilet:before{content:""}.fa-toilet-paper:before{content:""}.fa-toilet-paper-slash:before{content:""}.fa-toolbox:before{content:""}.fa-tooth:before{content:""}.fa-torii-gate:before{content:""}.fa-broadcast-tower:before,.fa-tower-broadcast:before{content:""}.fa-tractor:before{content:""}.fa-trademark:before{content:""}.fa-traffic-light:before{content:""}.fa-trailer:before{content:""}.fa-train:before{content:""}.fa-subway:before,.fa-train-subway:before{content:""}.fa-train-tram:before,.fa-tram:before{content:""}.fa-transgender-alt:before,.fa-transgender:before{content:""}.fa-trash:before{content:""}.fa-trash-arrow-up:before,.fa-trash-restore:before{content:""}.fa-trash-alt:before,.fa-trash-can:before{content:""}.fa-trash-can-arrow-up:before,.fa-trash-restore-alt:before{content:""}.fa-tree:before{content:""}.fa-exclamation-triangle:before,.fa-triangle-exclamation:before,.fa-warning:before{content:""}.fa-trophy:before{content:""}.fa-truck:before{content:""}.fa-shipping-fast:before,.fa-truck-fast:before{content:""}.fa-ambulance:before,.fa-truck-medical:before{content:""}.fa-truck-monster:before{content:""}.fa-truck-moving:before{content:""}.fa-truck-pickup:before{content:""}.fa-truck-loading:before,.fa-truck-ramp-box:before{content:""}.fa-teletype:before,.fa-tty:before{content:""}.fa-try:before,.fa-turkish-lira-sign:before,.fa-turkish-lira:before{content:""}.fa-level-down-alt:before,.fa-turn-down:before{content:""}.fa-level-up-alt:before,.fa-turn-up:before{content:""}.fa-television:before,.fa-tv-alt:before,.fa-tv:before{content:""}.fa-u:before{content:"U"}.fa-umbrella:before{content:""}.fa-umbrella-beach:before{content:""}.fa-underline:before{content:""}.fa-universal-access:before{content:""}.fa-unlock:before{content:""}.fa-unlock-alt:before,.fa-unlock-keyhole:before{content:""}.fa-arrows-alt-v:before,.fa-up-down:before{content:""}.fa-arrows-alt:before,.fa-up-down-left-right:before{content:""}.fa-long-arrow-alt-up:before,.fa-up-long:before{content:""}.fa-expand-alt:before,.fa-up-right-and-down-left-from-center:before{content:""}.fa-external-link-alt:before,.fa-up-right-from-square:before{content:""}.fa-upload:before{content:""}.fa-user:before{content:""}.fa-user-astronaut:before{content:""}.fa-user-check:before{content:""}.fa-user-clock:before{content:""}.fa-user-doctor:before,.fa-user-md:before{content:""}.fa-user-cog:before,.fa-user-gear:before{content:""}.fa-user-graduate:before{content:""}.fa-user-friends:before,.fa-user-group:before{content:""}.fa-user-injured:before{content:""}.fa-user-alt:before,.fa-user-large:before{content:""}.fa-user-alt-slash:before,.fa-user-large-slash:before{content:""}.fa-user-lock:before{content:""}.fa-user-minus:before{content:""}.fa-user-ninja:before{content:""}.fa-user-nurse:before{content:""}.fa-user-edit:before,.fa-user-pen:before{content:""}.fa-user-plus:before{content:""}.fa-user-secret:before{content:""}.fa-user-shield:before{content:""}.fa-user-slash:before{content:""}.fa-user-tag:before{content:""}.fa-user-tie:before{content:""}.fa-user-times:before,.fa-user-xmark:before{content:""}.fa-users:before{content:""}.fa-users-cog:before,.fa-users-gear:before{content:""}.fa-users-slash:before{content:""}.fa-cutlery:before,.fa-utensils:before{content:""}.fa-v:before{content:"V"}.fa-shuttle-van:before,.fa-van-shuttle:before{content:""}.fa-vault:before{content:""}.fa-vector-square:before{content:""}.fa-venus:before{content:""}.fa-venus-double:before{content:""}.fa-venus-mars:before{content:""}.fa-vest:before{content:""}.fa-vest-patches:before{content:""}.fa-vial:before{content:""}.fa-vials:before{content:""}.fa-video-camera:before,.fa-video:before{content:""}.fa-video-slash:before{content:""}.fa-vihara:before{content:""}.fa-virus:before{content:""}.fa-virus-covid:before{content:""}.fa-virus-covid-slash:before{content:""}.fa-virus-slash:before{content:""}.fa-viruses:before{content:""}.fa-voicemail:before{content:""}.fa-volleyball-ball:before,.fa-volleyball:before{content:""}.fa-volume-high:before,.fa-volume-up:before{content:""}.fa-volume-down:before,.fa-volume-low:before{content:""}.fa-volume-off:before{content:""}.fa-volume-mute:before,.fa-volume-times:before,.fa-volume-xmark:before{content:""}.fa-vr-cardboard:before{content:""}.fa-w:before{content:"W"}.fa-wallet:before{content:""}.fa-magic:before,.fa-wand-magic:before{content:""}.fa-magic-wand-sparkles:before,.fa-wand-magic-sparkles:before{content:""}.fa-wand-sparkles:before{content:""}.fa-warehouse:before{content:""}.fa-water:before{content:""}.fa-ladder-water:before,.fa-swimming-pool:before,.fa-water-ladder:before{content:""}.fa-wave-square:before{content:""}.fa-weight-hanging:before{content:""}.fa-weight-scale:before,.fa-weight:before{content:""}.fa-wheelchair:before{content:""}.fa-glass-whiskey:before,.fa-whiskey-glass:before{content:""}.fa-wifi-3:before,.fa-wifi-strong:before,.fa-wifi:before{content:""}.fa-wind:before{content:""}.fa-window-maximize:before{content:""}.fa-window-minimize:before{content:""}.fa-window-restore:before{content:""}.fa-wine-bottle:before{content:""}.fa-wine-glass:before{content:""}.fa-wine-glass-alt:before,.fa-wine-glass-empty:before{content:""}.fa-krw:before,.fa-won-sign:before,.fa-won:before{content:""}.fa-wrench:before{content:""}.fa-x:before{content:"X"}.fa-x-ray:before{content:""}.fa-close:before,.fa-multiply:before,.fa-remove:before,.fa-times:before,.fa-xmark:before{content:""}.fa-y:before{content:"Y"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen-sign:before,.fa-yen:before{content:""}.fa-yin-yang:before{content:""}.fa-z:before{content:"Z"}.fa-sr-only,.fa-sr-only-focusable:not(:focus),.sr-only,.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}/*! * Font Awesome Free 6.0.0 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 2022 Fonticons, Inc. diff --git a/packages/modules/web_themes/colors/web/assets/index-OcRV8C3W.js b/packages/modules/web_themes/colors/web/assets/index-OcRV8C3W.js new file mode 100644 index 0000000000..8ba39bf183 --- /dev/null +++ b/packages/modules/web_themes/colors/web/assets/index-OcRV8C3W.js @@ -0,0 +1,6 @@ +var ja=Object.defineProperty;var Fa=(a,e,t)=>e in a?ja(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var b=(a,e,t)=>Fa(a,typeof e!="symbol"?e+"":e,t);import{r as he,m as Na,c as g,a as Y,i as Ha,e as Le,u as jt,t as tt,b as wt,s as le,d as I,p as _a,f as wa,w as Ra,o as l,g as f,h as x,j as n,n as R,k as $,l as w,q as ue,v as _,x as J,y as i,z as v,F as j,A as Z,B as ka,C as Re,D as gt,E as rt,G as ot,H as dt,I as ht,J as it,K as Ja,L as Ne,M as K,N as qa,O as Te,P as mt,Q as Ya,R as Qa,S as xa,T as Za,U as Sa,V as Xa,W as Ka,X as en,Y as tn,Z as an,_ as nn,$ as rn,a0 as on,a1 as sn,a2 as ln}from"./vendor-CmSLe-Fc.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const h of r.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();var $e=(a=>(a.instant_charging="instant_charging",a.pv_charging="pv_charging",a.scheduled_charging="scheduled_charging",a.eco_charging="eco_charging",a.stop="stop",a))($e||{});class $a{constructor(e){b(this,"id");b(this,"name","Wechselrichter");b(this,"color","var(--color-pv)");b(this,"power",0);b(this,"energy",0);b(this,"energy_month",0);b(this,"energy_year",0);b(this,"energy_total",0);this.id=e}}const cn=[["EV","ev_mode"],["Speicher","bat_mode"],["MinSoc","min_soc_bat_mode"]];class un{constructor(e){b(this,"id");b(this,"name","Gerät");b(this,"power",0);b(this,"status","off");b(this,"energy",0);b(this,"runningTime",0);b(this,"configured",!1);b(this,"_showInGraph",!0);b(this,"color","white");b(this,"canSwitch",!1);b(this,"countAsHouse",!1);b(this,"energyPv",0);b(this,"energyBat",0);b(this,"pvPercentage",0);b(this,"tempConfigured",0);b(this,"temp",[300,300,300]);b(this,"on",!1);b(this,"isAutomatic",!0);b(this,"icon","");this.id=e}get showInGraph(){return this._showInGraph}set showInGraph(e){this._showInGraph=e,L.items["sh"+this.id].showInGraph=e,ae()}setShowInGraph(e){this._showInGraph=e}}const te=he(new Map);function Rt(a){te.has(a)?console.info("Duplicate sh device message: "+a):(te.set(a,new un(a)),te.get(a).color="var(--color-sh"+te.size+")")}const dn=0,Ma={host:location.hostname,port:location.protocol=="https:"?443:80,endpoint:"/ws",protocol:location.protocol=="https:"?"wss":"ws",connectTimeout:4e3,reconnectPeriod:4e3,clean:!1,clientId:Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,6)},kt={topic:"",qos:dn};let Be;const{host:hn,port:pn,endpoint:gn,...Pa}=Ma,oa=`${Pa.protocol}://${hn}:${pn}${gn}`;try{console.debug("connectURL",oa),Be=Na.connect(oa,Pa),Be.on("connect",()=>{console.info("MQTT connection successful")}),Be.on("disconnect",()=>{console.info("MQTT disconnected")}),Be.on("error",a=>{console.error("MQTT connection failed: ",a)})}catch(a){console.error("MQTT connect error: ",a)}function mn(a){Be?Be.on("message",a):console.error("MqttRegister: MQTT client not available")}function Ke(a){kt.topic=a;const{topic:e,qos:t}=kt;Be.subscribe(e,{qos:t},o=>{if(o){console.error("MQTT Subscription error: "+o);return}})}function st(a){kt.topic=a;const{topic:e}=kt;Be.unsubscribe(e,t=>{if(t){console.error("MQTT Unsubscribe from "+a+" failed: "+t);return}})}async function xt(a,e){let o=Be.connected,s=0;for(;!o&&s<20;)console.warn("MQTT publish: Not connected. Waiting 0.1 seconds"),await fn(100),o=Be.connected,s+=1;if(s<20)try{Be.publish(a,e,{qos:0},r=>{r&&console.warn("MQTT publish error: ",r),console.info("MQTT publish: Message sent: ["+a+"]("+e+")")})}catch(r){console.warn("MQTT publish: caught error: "+r)}else console.error("MQTT publish: Lost connection to MQTT server. Please reload the page")}function Jt(){return Ma.clientId}function fn(a){return new Promise(e=>setTimeout(e,a))}class vn{constructor(e){b(this,"id");b(this,"name","Ladepunkt");b(this,"icon","Ladepunkt");b(this,"type","");b(this,"ev",0);b(this,"template",0);b(this,"connectedPhases",0);b(this,"phase_1",0);b(this,"autoPhaseSwitchHw",!1);b(this,"controlPilotInterruptionHw",!1);b(this,"isEnabled",!0);b(this,"isPluggedIn",!1);b(this,"isCharging",!1);b(this,"_isLocked",!1);b(this,"_connectedVehicle",0);b(this,"chargeTemplate",null);b(this,"evTemplate",0);b(this,"_chargeMode",$e.pv_charging);b(this,"_hasPriority",!1);b(this,"currentPlan","");b(this,"averageConsumption",0);b(this,"vehicleName","");b(this,"rangeCharged",0);b(this,"rangeUnit","");b(this,"counter",0);b(this,"dailyYield",0);b(this,"energyPv",0);b(this,"energyBat",0);b(this,"pvPercentage",0);b(this,"faultState",0);b(this,"faultStr","");b(this,"phasesInUse",0);b(this,"power",0);b(this,"chargedSincePlugged",0);b(this,"stateStr","");b(this,"current",0);b(this,"currents",[0,0,0]);b(this,"phasesToUse",0);b(this,"isSocConfigured",!0);b(this,"isSocManual",!1);b(this,"waitingForSoc",!1);b(this,"color","white");b(this,"_timedCharging",!1);b(this,"_instantChargeLimitMode","");b(this,"_instantTargetCurrent",0);b(this,"_instantTargetSoc",0);b(this,"_instantMaxEnergy",0);b(this,"_instantTargetPhases",0);b(this,"_pvFeedInLimit",!1);b(this,"_pvMinCurrent",0);b(this,"_pvMaxSoc",0);b(this,"_pvMinSoc",0);b(this,"_pvMinSocCurrent",0);b(this,"_pvMinSocPhases",1);b(this,"_pvChargeLimitMode","");b(this,"_pvTargetSoc",0);b(this,"_pvMaxEnergy",0);b(this,"_pvTargetPhases",0);b(this,"_ecoMinCurrent",0);b(this,"_ecoTargetPhases",0);b(this,"_ecoChargeLimitMode","");b(this,"_ecoTargetSoc",0);b(this,"_ecoMaxEnergy",0);b(this,"_etActive",!1);b(this,"_etMaxPrice",20);this.id=e}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked=e,be("cpLock",e,this.id)}updateIsLocked(e){this._isLocked=e}get connectedVehicle(){return this._connectedVehicle}set connectedVehicle(e){this._connectedVehicle=e,be("cpVehicle",e,this.id)}updateConnectedVehicle(e){this._connectedVehicle=e}get soc(){return Q[this.connectedVehicle]?Q[this.connectedVehicle].soc:0}set soc(e){Q[this.connectedVehicle]&&(Q[this.connectedVehicle].soc=e)}get chargeMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.selected)??$e.stop}set chargeMode(e){console.log("set mode"),this.chargeTemplate&&(console.log("active"),this.chargeTemplate.chargemode.selected=e,oe(this.id))}get hasPriority(){var e;return((e=this.chargeTemplate)==null?void 0:e.prio)??!1}set hasPriority(e){this.chargeTemplate&&(this.chargeTemplate.prio=e,be("cpPriority",e,this.id))}get timedCharging(){return this.chargeTemplate?this.chargeTemplate.time_charging.active:!1}set timedCharging(e){this.chargeTemplate.time_charging.active=e,be("cpTimedCharging",e,this.id)}get instantTargetCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.current)??0}set instantTargetCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.current=e,oe(this.id))}get instantChargeLimitMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.limit.selected)??"none"}set instantChargeLimitMode(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.limit.selected=e,oe(this.id))}get instantTargetSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.limit.soc)??0}set instantTargetSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.limit.soc=e,oe(this.id))}get instantMaxEnergy(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.limit.amount)??0}set instantMaxEnergy(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.limit.amount=e,oe(this.id))}get instantTargetPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.phases_to_use)??0}set instantTargetPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.phases_to_use=e,oe(this.id))}get pvFeedInLimit(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.feed_in_limit)??!1}set pvFeedInLimit(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.feed_in_limit=e,oe(this.id))}get pvMinCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.min_current)??0}set pvMinCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.min_current=e,oe(this.id))}get pvMaxSoc(){return this._pvMaxSoc}set pvMaxSoc(e){this._pvMaxSoc=e,be("cpPvMaxSoc",e,this.id)}updatePvMaxSoc(e){this._pvMaxSoc=e}get pvMinSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.min_soc)??0}set pvMinSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.min_soc=e,oe(this.id))}get pvMinSocCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.min_soc_current)??0}set pvMinSocCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.min_soc_current=e,oe(this.id))}set pvMinSocPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.phases_to_use_min_soc=e,oe(this.id))}get pvMinSocPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.phases_to_use_min_soc)??0}get pvChargeLimitMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.limit.selected)??"none"}set pvChargeLimitMode(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.limit.selected=e,oe(this.id))}get pvTargetSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.limit.soc)??0}set pvTargetSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.limit.soc=e,oe(this.id))}get pvMaxEnergy(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.limit.amount)??0}set pvMaxEnergy(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.limit.amount=e,oe(this.id))}get pvTargetPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.phases_to_use)??0}set pvTargetPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.phases_to_use=e,oe(this.id))}get ecoMinCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.current)??0}set ecoMinCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.current=e,oe(this.id))}get ecoTargetPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.phases_to_use)??0}set ecoTargetPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.phases_to_use=e,oe(this.id))}get ecoChargeLimitMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.limit.selected)??"none"}set ecoChargeLimitMode(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.limit.selected=e,oe(this.id))}get ecoTargetSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.limit.soc)??0}set ecoTargetSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.limit.soc=e,oe(this.id))}get ecoMaxEnergy(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.limit.amount)??0}set ecoMaxEnergy(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.limit.amount=e,oe(this.id))}get etMaxPrice(){var e;return(((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.max_price)??0)*1e5}set etMaxPrice(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.max_price=Math.ceil(e*1e3)/1e8,oe(this.id))}get etActive(){return this.chargeTemplate&&this.chargeTemplate.chargemode.selected==$e.eco_charging}get realCurrent(){switch(this.phasesInUse){case 0:return 0;case 1:return this.currents[0];case 2:return(this.currents[0]+this.currents[1])/2;case 3:return(this.currents[0]+this.currents[1]+this.currents[2])/3;default:return 0}}toPowerItem(){return{name:this.name,power:this.power,energy:this.dailyYield,energyPv:this.energyPv,energyBat:this.energyBat,pvPercentage:this.pvPercentage,color:this.color,icon:this.icon,showInGraph:!0}}}class bn{constructor(e){b(this,"id");b(this,"name","__invalid");b(this,"tags",[]);b(this,"config",{});b(this,"soc",0);b(this,"range",0);b(this,"_chargeTemplateId",0);b(this,"isSocConfigured",!1);b(this,"isSocManual",!1);b(this,"_evTemplateId",0);this.id=e}get chargeTemplateId(){return this._chargeTemplateId}set chargeTemplateId(e){this._chargeTemplateId=e,be("vhChargeTemplateId",e,this.id)}updateChargeTemplateId(e){this._chargeTemplateId=e}get evTemplateId(){return this._evTemplateId}set evTemplateId(e){this._evTemplateId=e,be("vhEvTemplateId",e,this.id)}updateEvTemplateId(e){this._evTemplateId=e}get chargepoint(){for(const e of Object.values(O))if(e.connectedVehicle==this.id)return e}get visible(){return this.name!="__invalid"&&(this.id!=0||m.showStandardVehicle)}}const O=he({}),Q=he({}),Ft=he({}),yn=he({});function _n(a){if(!(a in O)){O[a]=new vn(a);const e="var(--color-cp"+(Object.values(O).length-1)+")";O[a].color=e;const t="cp"+a;se[t]?se["cp"+a].color=e:se[t]={name:"Ladepunkt",color:e,icon:"Ladepunkt"}}}function wn(){Object.keys(O).forEach(a=>{delete O[parseInt(a)]})}const me=g(()=>{const a=[],e=Object.values(O),t=Object.values(Q).filter(r=>r.visible);let o=-1;switch(e.length){case 0:o=t[0]?t[0].id:-1;break;default:o=e[0].connectedVehicle}let s=-1;switch(e.length){case 0:case 1:s=t[0]?t[0].id:-1;break;default:s=e[1].connectedVehicle}return o==s&&(s=t[1]?t[1].id:-1),o!=-1&&a.push(o),s!=-1&&a.push(s),a}),qt=[{name:"keine",id:"none"},{name:"Ladestand",id:"soc"},{name:"Energie",id:"amount"}],Ca={cpLock:"openWB/set/chargepoint/%/set/manual_lock",chargeMode:"openWB/set/vehicle/template/charge_template/%/chargemode/selected",cpPriority:"openWB/set/vehicle/template/charge_template/%/prio",cpTimedCharging:"openWB/set/vehicle/template/charge_template/%/time_charging/active",pvBatteryPriority:"openWB/set/general/chargemode_config/pv_charging/bat_mode",cpVehicle:"openWB/set/chargepoint/%/config/ev",cpInstantChargeLimitMode:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/selected",cpInstantTargetCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/current",cpInstantTargetSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/soc",cpInstantMaxEnergy:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/amount",cpPvFeedInLimit:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/feed_in_limit",cpPvMinCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_current",cpPvMaxSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/max_soc",cpPvMinSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_soc",cpPvMinSocCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_soc_current",cpEtMaxPrice:"openWB/set/vehicle/template/charge_template/%/et/max_price",vhChargeTemplateId:"openWB/set/vehicle/%/charge_template",vhEvTemplateId:"openWB/set/vehicle/%/ev_template",shSetManual:"openWB/set/LegacySmartHome/config/set/Devices/%/mode",shSwitchOn:"openWB/set/LegacySmartHome/config/set/Devices/%/device_manual_control",socUpdate:"openWB/set/vehicle/%/get/force_soc_update",setSoc:"openWB/set/vehicle/%/soc_module/calculated_soc_state/manual_soc",priceCharging:"openWB/set/vehicle/template/charge_template/%/et/active",chargeTemplate:"openWB/set/chargepoint/%/set/charge_template"};function be(a,e,t=0){if(isNaN(t)){console.warn("Invalid index");return}let o=Ca[a];if(!o){console.warn("No topic for update type "+a);return}switch(a){default:o=o.replace("%",String(t))}switch(typeof e){case"number":xt(o,JSON.stringify(+e));break;default:xt(o,JSON.stringify(e))}}function Yt(a){xt("openWB/set/command/"+Jt()+"/todo",JSON.stringify(a))}function oe(a){xt(Ca.chargeTemplate.replace("%",String(a)),JSON.stringify(O[a].chargeTemplate))}const _e=500,Me=500,N={top:15,right:20,bottom:10,left:25},Qt=["charging","house","batIn","devices"];class kn{constructor(){b(this,"data",[]);b(this,"_graphMode","");b(this,"waitForData",!0)}get graphMode(){return this._graphMode}set graphMode(e){this._graphMode=e}}const y=he(new kn),Ia=Y(Ha),Qe=g(()=>[0,_e-N.left-2*N.right].map(a=>Ia.value.applyX(a)));let pt=!0,lt=!0;function sa(){pt=!1}function ia(){pt=!0}function la(){lt=!1}function ca(){lt=!0}function xn(a){lt=a}function ft(a){y.data=a,y.waitForData=!1}const ge=he({refreshTopicPrefix:"openWB/graph/alllivevaluesJson",updateTopic:"openWB/graph/lastlivevaluesJson",configTopic:"openWB/graph/config/#",initialized:!1,initCounter:0,graphRefreshCounter:0,rawDataPacks:[],duration:0,activate(a){this.unsubscribeUpdates(),this.subscribeRefresh(),a&&(y.data=[]),y.waitForData=!0,Ke(this.configTopic),this.initialized=!1,this.initCounter=0,this.graphRefreshCounter=0,this.rawDataPacks=[],Cn(),ct.value=!0},deactivate(){this.unsubscribeRefresh(),this.unsubscribeUpdates(),st(this.configTopic)},subscribeRefresh(){for(let a=1;a<17;a++)Ke(this.refreshTopicPrefix+a)},unsubscribeRefresh(){for(let a=1;a<17;a++)st(this.refreshTopicPrefix+a)},subscribeUpdates(){Ke(this.updateTopic)},unsubscribeUpdates(){st(this.updateTopic)}}),ce=he({topic:"openWB/log/daily/#",date:new Date,activate(a){if(y.graphMode=="day"||y.graphMode=="today"){y.graphMode=="today"&&(this.date=new Date);const e=this.date.getFullYear().toString()+(this.date.getMonth()+1).toString().padStart(2,"0")+this.date.getDate().toString().padStart(2,"0");this.topic="openWB/log/daily/"+e,Ke(this.topic),a&&(y.data=[]),y.waitForData=!0,Yt({command:"getDailyLog",data:{date:e}})}},deactivate(){st(this.topic)},back(){this.date=new Date(this.date.setTime(this.date.getTime()-864e5))},forward(){this.date=new Date(this.date.setTime(this.date.getTime()+864e5))},setDate(a){this.date=a},getDate(){return this.date}}),Ee=he({topic:"openWB/log/monthly/#",month:new Date().getMonth()+1,year:new Date().getFullYear(),activate(a){const e=this.year.toString()+this.month.toString().padStart(2,"0");y.data=[],Ke(this.topic),a&&(y.data=[]),y.waitForData=!0,Yt({command:"getMonthlyLog",data:{date:e}})},deactivate(){st(this.topic)},back(){this.month-=1,this.month<1&&(this.month=12,this.year-=1),this.activate()},forward(){const a=new Date;a.getFullYear()==this.year?this.month-112&&(this.month=1,this.year+=1)),this.activate()},getDate(){return new Date(this.year,this.month)}}),qe=he({topic:"openWB/log/yearly/#",month:new Date().getMonth()+1,year:new Date().getFullYear(),activate(a){const e=this.year.toString();Ke(this.topic),a&&(y.data=[]),y.waitForData=!0,Yt({command:"getYearlyLog",data:{date:e}})},deactivate(){st(this.topic)},back(){this.year-=1,this.activate()},forward(){this.year0&&(L.items[a].energyPv+=1e3/12*(e[a]*(e.pv-e.evuOut))/(e.pv-e.evuOut+e.evuIn+e.batOut),L.items[a].energyBat+=1e3/12*(e[a]*e.batOut)/(e.pv-e.evuOut+e.evuIn+e.batOut))}function Mn(a,e){e[a]>0&&(L.items[a].energyPv+=1e3*(e[a]*(e.pv-e.evuOut))/(e.pv-e.evuOut+e.evuIn+e.batOut),L.items[a].energyBat+=1e3*(e[a]*e.batOut)/(e.pv-e.evuOut+e.evuIn+e.batOut))}const Pn=["evuIn","pv","batOut","evuOut"],Ze=Y(!1);function Zt(a,e){Object.entries(a).length>0?(Ze.value=!1,Object.entries(a.counter).forEach(([t,o])=>{(e.length==0||e.includes(t))&&(L.items.evuIn.energy+=o.energy_imported,L.items.evuOut.energy+=o.energy_exported)}),L.items.pv.energy=a.pv.all.energy_exported,a.bat.all&&(L.items.batIn.energy=a.bat.all.energy_imported,L.items.batOut.energy=a.bat.all.energy_exported),Object.entries(a.cp).forEach(([t,o])=>{t=="all"?(L.setEnergy("charging",o.energy_imported),o.energy_imported_pv!=null&&(L.setEnergyPv("charging",o.energy_imported_pv),L.setEnergyBat("charging",o.energy_imported_bat))):L.setEnergy(t,o.energy_imported)}),L.setEnergy("devices",0),Object.entries(a.sh).forEach(([t,o])=>{L.setEnergy(t,o.energy_imported);const s=t.substring(2);te.get(+s).countAsHouse||(L.items.devices.energy+=o.energy_imported)}),a.hc&&a.hc.all?(L.setEnergy("house",a.hc.all.energy_imported),a.hc.all.energy_imported_pv!=null&&(L.setEnergyPv("house",a.hc.all.energy_imported_pv),L.setEnergyBat("house",a.hc.all.energy_imported_bat))):L.calculateHouseEnergy(),L.keys().forEach(t=>{Pn.includes(t)||(L.setPvPercentage(t,Math.round((L.items[t].energyPv+L.items[t].energyBat)/L.items[t].energy*100)),Qt.includes(t)&&(H[t].energy=L.items[t].energy,H[t].energyPv=L.items[t].energyPv,H[t].energyBat=L.items[t].energyBat,H[t].pvPercentage=L.items[t].pvPercentage))}),y.graphMode=="today"&&(Object.values(O).forEach(t=>{const o=L.items["cp"+t.id];o&&(t.energyPv=o.energyPv,t.energyBat=o.energyBat,t.pvPercentage=o.pvPercentage)}),te.forEach(t=>{const o=L.items["sh"+t.id];o&&(t.energy=o.energy,t.energyPv=o.energyPv,t.energyBat=o.energyBat,t.pvPercentage=o.pvPercentage)}))):Ze.value=!0,ct.value=!0}const Ve=g(()=>{const a=Le(y.data,e=>new Date(e.date));return a[0]&&a[1]?jt().domain(a).range([0,_e-N.left-2*N.right]):tt().range([0,0])});function Cn(){L.keys().forEach(a=>{Qt.includes(a)&&(H[a].energy=L.items[a].energy,H[a].energyPv=0,H[a].energyBat=0,H[a].pvPercentage=0)}),Object.values(O).forEach(a=>{a.energyPv=0,a.energyBat=0,a.pvPercentage=0}),te.forEach(a=>{a.energyPv=0,a.energyBat=0,a.pvPercentage=0})}const Ye=g(()=>{const a=Le(y.data,e=>e.date);return a[1]?wt().domain(Array.from({length:a[1]},(e,t)=>t+1)).paddingInner(.4).range([0,_e-N.left-2]):wt().range([0,0])});function Pt(){switch(y.graphMode){case"live":y.graphMode="today",m.showRightButton=!0,fe();break;case"today":y.graphMode="day",ce.deactivate(),ce.back(),ce.activate(),fe();break;case"day":ce.back(),fe();break;case"month":Ee.back();break;case"year":qe.back();break}}function Xt(){const a=new Date;switch(y.graphMode){case"live":break;case"today":y.graphMode="live",m.showRightButton=!1,fe();break;case"day":ce.forward(),ce.date.getDate()==a.getDate()&&ce.date.getMonth()==a.getMonth()&&ce.date.getFullYear()==a.getFullYear()&&(y.graphMode="today"),fe();break;case"month":Ee.forward();break;case"year":qe.forward();break}}function Kt(){switch(y.graphMode){case"live":Pt();break;case"day":case"today":y.graphMode="month",fe();break;case"month":y.graphMode="year",fe();break}}function ea(){switch(y.graphMode){case"year":y.graphMode="month",fe();break;case"month":y.graphMode="today",fe();break;case"today":case"day":y.graphMode="live",fe();break}}function ua(a){if(y.graphMode=="day"||y.graphMode=="today"){ce.setDate(a);const e=new Date;ce.date.getDate()==e.getDate()&&ce.date.getMonth()==e.getMonth()&&ce.date.getFullYear()==e.getFullYear()?y.graphMode="today":y.graphMode="day",fe()}}const Fe=Y(new Map);class In{constructor(){b(this,"_showRelativeArcs",!1);b(this,"showTodayGraph",!0);b(this,"_graphPreference","today");b(this,"_usageStackOrder",0);b(this,"_displayMode","dark");b(this,"_showGrid",!1);b(this,"_smartHomeColors","normal");b(this,"_decimalPlaces",1);b(this,"_showQuickAccess",!0);b(this,"_simpleCpList",!1);b(this,"_shortCpList","no");b(this,"_showAnimations",!0);b(this,"_preferWideBoxes",!1);b(this,"_maxPower",4e3);b(this,"_fluidDisplay",!1);b(this,"_showClock","no");b(this,"_showButtonBar",!0);b(this,"_showCounters",!1);b(this,"_showVehicles",!1);b(this,"_showStandardVehicle",!0);b(this,"_showPrices",!1);b(this,"_showInverters",!1);b(this,"_alternativeEnergy",!1);b(this,"_sslPrefs",!1);b(this,"_debug",!1);b(this,"_lowerPriceBound",0);b(this,"_upperPriceBound",0);b(this,"isEtEnabled",!1);b(this,"etPrice",20.5);b(this,"showRightButton",!0);b(this,"showLeftButton",!0);b(this,"animationDuration",300);b(this,"animationDelay",100);b(this,"zoomGraph",!1);b(this,"zoomedWidget",1)}get showRelativeArcs(){return this._showRelativeArcs}set showRelativeArcs(e){this._showRelativeArcs=e,ae()}setShowRelativeArcs(e){this._showRelativeArcs=e}get graphPreference(){return this._graphPreference}set graphPreference(e){this._graphPreference=e,ae()}setGraphPreference(e){this._graphPreference=e}get usageStackOrder(){return this._usageStackOrder}set usageStackOrder(e){this._usageStackOrder=e,ae()}setUsageStackOrder(e){this._usageStackOrder=e}get displayMode(){return this._displayMode}set displayMode(e){this._displayMode=e,Tn(e)}setDisplayMode(e){this._displayMode=e}get showGrid(){return this._showGrid}set showGrid(e){this._showGrid=e,ae()}setShowGrid(e){this._showGrid=e}get decimalPlaces(){return this._decimalPlaces}set decimalPlaces(e){this._decimalPlaces=e,ae()}setDecimalPlaces(e){this._decimalPlaces=e}get smartHomeColors(){return this._smartHomeColors}set smartHomeColors(e){this._smartHomeColors=e,da(e),ae()}setSmartHomeColors(e){this._smartHomeColors=e,da(e)}get showQuickAccess(){return this._showQuickAccess}set showQuickAccess(e){this._showQuickAccess=e,ae()}setShowQuickAccess(e){this._showQuickAccess=e}get simpleCpList(){return this._simpleCpList}set simpleCpList(e){this._simpleCpList=e,ae()}setSimpleCpList(e){this._simpleCpList=e}get shortCpList(){return this._shortCpList}set shortCpList(e){this._shortCpList=e,ae()}setShortCpList(e){this._shortCpList=e}get showAnimations(){return this._showAnimations}set showAnimations(e){this._showAnimations=e,ae()}setShowAnimations(e){this._showAnimations=e}get preferWideBoxes(){return this._preferWideBoxes}set preferWideBoxes(e){this._preferWideBoxes=e,ae()}setPreferWideBoxes(e){this._preferWideBoxes=e}get maxPower(){return this._maxPower}set maxPower(e){this._maxPower=e,ae()}setMaxPower(e){this._maxPower=e}get fluidDisplay(){return this._fluidDisplay}set fluidDisplay(e){this._fluidDisplay=e,ae()}setFluidDisplay(e){this._fluidDisplay=e}get showClock(){return this._showClock}set showClock(e){this._showClock=e,ae()}setShowClock(e){this._showClock=e}get sslPrefs(){return this._sslPrefs}set sslPrefs(e){this._sslPrefs=e,ae()}setSslPrefs(e){this.sslPrefs=e}get debug(){return this._debug}set debug(e){this._debug=e,ae()}setDebug(e){this._debug=e}get showButtonBar(){return this._showButtonBar}set showButtonBar(e){this._showButtonBar=e,ae()}setShowButtonBar(e){this._showButtonBar=e}get showCounters(){return this._showCounters}set showCounters(e){this._showCounters=e,ae()}setShowCounters(e){this._showCounters=e}get showVehicles(){return this._showVehicles}set showVehicles(e){this._showVehicles=e,ae()}setShowVehicles(e){this._showVehicles=e}get showStandardVehicle(){return this._showStandardVehicle}set showStandardVehicle(e){this._showStandardVehicle=e,ae()}setShowStandardVehicle(e){this._showStandardVehicle=e}get showPrices(){return this._showPrices}set showPrices(e){this._showPrices=e,ae()}setShowPrices(e){this._showPrices=e}get showInverters(){return this._showInverters}set showInverters(e){this._showInverters=e,ia(),ca(),ae()}setShowInverters(e){this._showInverters=e}get alternativeEnergy(){return this._alternativeEnergy}set alternativeEnergy(e){this._alternativeEnergy=e,ia(),ca(),ae()}setAlternativeEnergy(e){this._alternativeEnergy=e}get lowerPriceBound(){return this._lowerPriceBound}set lowerPriceBound(e){this._lowerPriceBound=e,ae()}setLowerPriceBound(e){this._lowerPriceBound=e}get upperPriceBound(){return this._upperPriceBound}set upperPriceBound(e){this._upperPriceBound=e,ae()}setUpperPriceBound(e){this._upperPriceBound=e}}const m=he(new In);function Ba(){En();const a=le("html");a.classed("theme-dark",m.displayMode=="dark"),a.classed("theme-light",m.displayMode=="light"),a.classed("theme-blue",m.displayMode=="blue"),a.classed("shcolors-standard",m.smartHomeColors=="standard"),a.classed("shcolors-advanced",m.smartHomeColors=="advanced"),a.classed("shcolors-normal",m.smartHomeColors=="normal")}const Bn=992,St=he({x:document.documentElement.clientWidth,y:document.documentElement.clientHeight});function Vn(){St.x=document.documentElement.clientWidth,St.y=document.documentElement.clientHeight,Ba()}const De=g(()=>St.x>=Bn),ve={instant_charging:{mode:$e.instant_charging,name:"Sofort",color:"var(--color-charging)",icon:"fa-bolt"},pv_charging:{mode:$e.pv_charging,name:"PV",color:"var(--color-pv)",icon:"fa-solar-panel"},scheduled_charging:{mode:$e.scheduled_charging,name:"Zielladen",color:"var(--color-battery)",icon:"fa-bullseye"},eco_charging:{mode:$e.eco_charging,name:"Eco",color:"var(--color-devices)",icon:"fa-coins"},stop:{mode:$e.stop,name:"Stop",color:"var(--color-fg)",icon:"fa-power-off"}};class Ln{constructor(){b(this,"batterySoc",0);b(this,"isBatteryConfigured",!0);b(this,"chargeMode","0");b(this,"_pvBatteryPriority","ev_mode");b(this,"displayLiveGraph",!0);b(this,"isEtEnabled",!0);b(this,"etMaxPrice",0);b(this,"etCurrentPrice",0);b(this,"cpDailyExported",0);b(this,"evuId",0);b(this,"etProvider","")}get pvBatteryPriority(){return this._pvBatteryPriority}set pvBatteryPriority(e){this._pvBatteryPriority=e,be("pvBatteryPriority",e)}updatePvBatteryPriority(e){this._pvBatteryPriority=e}}function ae(){An()}function Tn(a){const e=le("html");e.classed("theme-dark",a=="dark"),e.classed("theme-light",a=="light"),e.classed("theme-blue",a=="blue"),ae()}function On(){m.maxPower=q.evuIn.power+q.pv.power+q.batOut.power,ae()}function da(a){const e=le("html");e.classed("shcolors-normal",a=="normal"),e.classed("shcolors-standard",a=="standard"),e.classed("shcolors-advanced",a=="advanced")}const Je={chargemode:"Der Lademodus für das Fahrzeug an diesem Ladepunkt",vehicle:"Das Fahrzeug, das an diesem Ladepounkt geladen wird",locked:"Für das Laden sperren",priority:"Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar",timeplan:"Das Laden nach Zeitplan für dieses Fahrzeug aktivieren",minsoc:"Immer mindestens bis zum eingestellten Ladestand laden. Wenn notwendig mit Netzstrom.",minpv:"Durchgehend mit mindestens dem eingestellten Strom laden. Wenn notwendig mit Netzstrom.",pricebased:"Laden bei dynamischem Stromtarif, wenn eingestellter Maximalpreis unterboten wird.",pvpriority:"Ladepriorität bei PV-Produktion. Bevorzung von Fahzeugen, Speicher, oder Fahrzeugen bis zum eingestellten Mindest-Ladestand. Die Einstellung ist für alle Ladepunkte gleich."};function An(){const a={};a.hideSH=[...te.values()].filter(e=>!e.showInGraph).map(e=>e.id),a.showLG=m.graphPreference=="live",a.displayM=m.displayMode,a.stackO=m.usageStackOrder,a.showGr=m.showGrid,a.decimalP=m.decimalPlaces,a.smartHomeC=m.smartHomeColors,a.relPM=m.showRelativeArcs,a.maxPow=m.maxPower,a.showQA=m.showQuickAccess,a.simpleCP=m.simpleCpList,a.shortCP=m.shortCpList,a.animation=m.showAnimations,a.wideB=m.preferWideBoxes,a.fluidD=m.fluidDisplay,a.clock=m.showClock,a.showButtonBar=m.showButtonBar,a.showCounters=m.showCounters,a.showVehicles=m.showVehicles,a.showStandardV=m.showStandardVehicle,a.showPrices=m.showPrices,a.showInv=m.showInverters,a.altEngy=m.alternativeEnergy,a.lowerP=m.lowerPriceBound,a.upperP=m.upperPriceBound,a.sslPrefs=m.sslPrefs,a.debug=m.debug,document.cookie="openWBColorTheme="+JSON.stringify(a)+";max-age=16000000;"+(m.sslPrefs?"SameSite=None;Secure":"SameSite=Strict")}function En(){const e=document.cookie.split(";").filter(t=>t.split("=")[0]==="openWBColorTheme");if(e.length>0){const t=JSON.parse(e[0].split("=")[1]);t.decimalP!==void 0&&m.setDecimalPlaces(+t.decimalP),t.smartHomeC!==void 0&&m.setSmartHomeColors(t.smartHomeC),t.hideSH!==void 0&&t.hideSH.forEach(o=>{te.get(o)==null&&Rt(o),te.get(o).setShowInGraph(!1)}),t.showLG!==void 0&&m.setGraphPreference(t.showLG?"live":"today"),t.maxPow!==void 0&&m.setMaxPower(+t.maxPow),t.relPM!==void 0&&m.setShowRelativeArcs(t.relPM),t.displayM!==void 0&&m.setDisplayMode(t.displayM),t.stackO!==void 0&&m.setUsageStackOrder(t.stackO),t.showGr!==void 0&&m.setShowGrid(t.showGr),t.showQA!==void 0&&m.setShowQuickAccess(t.showQA),t.simpleCP!==void 0&&m.setSimpleCpList(t.simpleCP),t.shortCP!==void 0&&m.setShortCpList(t.shortCP),t.animation!=null&&m.setShowAnimations(t.animation),t.wideB!=null&&m.setPreferWideBoxes(t.wideB),t.fluidD!=null&&m.setFluidDisplay(t.fluidD),t.clock!=null&&m.setShowClock(t.clock),t.showButtonBar!==void 0&&m.setShowButtonBar(t.showButtonBar),t.showCounters!==void 0&&m.setShowCounters(t.showCounters),t.showVehicles!==void 0&&m.setShowVehicles(t.showVehicles),t.showStandardV!==void 0&&m.setShowStandardVehicle(t.showStandardV),t.showPrices!==void 0&&m.setShowPrices(t.showPrices),t.showInv!==void 0&&m.setShowInverters(t.showInv),t.altEngy!==void 0&&m.setAlternativeEnergy(t.altEngy),t.lowerP!==void 0&&m.setLowerPriceBound(t.lowerP),t.upperP!==void 0&&m.setUpperPriceBound(t.upperP),t.sslPrefs!==void 0&&m.setSslPrefs(t.sslPrefs),t.debug!==void 0&&m.setDebug(t.debug)}}const se=he({evuIn:{name:"Netz",color:"var(--color-evu)",icon:""},pv:{name:"PV",color:"var(--color-pv",icon:""},batOut:{name:"Bat >",color:"var(--color-battery)",icon:""},evuOut:{name:"Export",color:"var(--color-export)",icon:""},charging:{name:"Laden",color:"var(--color-charging)",icon:""},devices:{name:"Geräte",color:"var(--color-devices)",icon:""},batIn:{name:"> Bat",color:"var(--color-battery)",icon:""},house:{name:"Haus",color:"var(--color-house)",icon:""},cp1:{name:"Ladepunkt",color:"var(--color-cp1)",icon:"Ladepunkt"},cp2:{name:"Ladepunkt",color:"var(--color-cp2)",icon:"Ladepunkt"},cp3:{name:"Ladepunkt",color:"var(--color-cp3)",icon:"Ladepunkt"},cp4:{name:"Ladepunkt",color:"var(--color-cp4)",icon:"Ladepunkt"},cp5:{name:"Ladepunkt",color:"var(--color-cp5)",icon:"Ladepunkt"},cp6:{name:"Ladepunkt",color:"var(--color-cp6)",icon:"Ladepunkt"},cp7:{name:"Ladepunkt",color:"var(--color-cp7)",icon:"Ladepunkt"},cp8:{name:"Ladepunkt",color:"var(--color-cp8)",icon:"Ladepunkt"},sh1:{name:"Gerät",color:"var(--color-sh1)",icon:"Gerät"},sh2:{name:"Gerät",color:"var(--color-sh2)",icon:"Gerät"},sh3:{name:"Gerät",color:"var(--color-sh3)",icon:"Gerät"},sh4:{name:"Gerät",color:"var(--color-sh4)",icon:"Gerät"},sh5:{name:"Gerät",color:"var(--color-sh5)",icon:"Gerät"},sh6:{name:"Gerät",color:"var(--color-sh6)",icon:"Gerät"},sh7:{name:"Gerät",color:"var(--color-sh7)",icon:"Gerät"},sh8:{name:"Gerät",color:"var(--color-sh8)",icon:"Gerät"},sh9:{name:"Gerät",color:"var(--color-sh9)",icon:"Gerät"},pv1:{name:"PV",color:"var(--color-pv1)",icon:"Wechselrichter"},pv2:{name:"PV",color:"var(--color-pv2)",icon:"Wechselrichter"},pv3:{name:"PV",color:"var(--color-pv3)",icon:"Wechselrichter"},pv4:{name:"PV",color:"var(--color-pv4)",icon:"Wechselrichter"},pv5:{name:"PV",color:"var(--color-pv5)",icon:"Wechselrichter"},pv6:{name:"PV",color:"var(--color-pv6)",icon:"Wechselrichter"},pv7:{name:"PV",color:"var(--color-pv7)",icon:"Wechselrichter"},pv8:{name:"PV",color:"var(--color-pv8)",icon:"Wechselrichter"},pv9:{name:"PV",color:"var(--color-pv9)",icon:"Wechselrichter"},bat1:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat2:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat3:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat4:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat5:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat6:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat7:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat8:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat9:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"}});class Va{constructor(){b(this,"_items",{});this.addItem("evuIn"),this.addItem("pv"),this.addItem("batOut"),this.addItem("evuOut"),this.addItem("charging"),this.addItem("devices"),this.addItem("batIn"),this.addItem("house")}get items(){return this._items}keys(){return Object.keys(this._items)}values(){return Object.values(this._items)}addItem(e,t){this._items[e]=t?ze(e,t):ze(e)}setEnergy(e,t){this.keys().includes(e)||this.addItem(e),this._items[e].energy=t}setEnergyPv(e,t){this.keys().includes(e)||this.addItem(e),this._items[e].energyPv=t}setEnergyBat(e,t){this.keys().includes(e)||this.addItem(e),this._items[e].energyBat=t}setPvPercentage(e,t){this.keys().includes(e)||this.addItem(e),this._items[e].pvPercentage=t<=100?t:100}calculateHouseEnergy(){this._items.house.energy=this._items.evuIn.energy+this._items.pv.energy+this._items.batOut.energy-this._items.evuOut.energy-this._items.batIn.energy-this._items.charging.energy-this._items.devices.energy}}let L=he(new Va);function ta(){L=new Va}const q=he({evuIn:ze("evuIn"),pv:ze("pv"),batOut:ze("batOut")}),H=he({evuOut:ze("evuOut"),charging:ze("charging"),devices:ze("devices"),batIn:ze("batIn"),house:ze("house")}),de=he(new Ln);Y("");const ct=Y(!1);function ze(a,e){return{name:se[a]?se[a].name:"item",power:0,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:e||(se[a]?se[a].color:"var(--color-charging)"),icon:se[a]?se[a].icon:"",showInGraph:!0}}const Nt=Y(new Date),we=Y(new Map),zn=a=>{we.value.set(a,new $a(a)),we.value.get(a).color=se["pv"+we.value.size].color},Dn=["origin"],Wn=I({__name:"PMSourceArc",props:{radius:{},cornerRadius:{},circleGapSize:{},emptyPower:{}},setup(a){const e=a,t=g(()=>{let o={name:"",power:e.emptyPower,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-bg)",icon:"",showInGraph:!0},s=q;s["zz-empty"]=o;const r=Object.values(q).length-1,h=_a().value(d=>d.power).startAngle(-Math.PI/2+e.circleGapSize).endAngle(Math.PI/2-e.circleGapSize).sort(null),p=wa().innerRadius(e.radius/6*5).outerRadius(e.radius).cornerRadius(e.cornerRadius).padAngle(0),u=le("g#pmSourceArc");return u.selectAll("*").remove(),u.selectAll("sources").data(h(Object.values(s))).enter().append("path").attr("d",p).attr("fill",d=>d.data.color).attr("stroke",(d,c)=>c==r?d.data.power>0?"var(--color-scale)":"null":d.data.color),"pmSourceArc.vue"});return Ra(()=>{let o=q.pv.power+q.evuIn.power+q.batOut.power;o>m.maxPower&&(m.maxPower=o)}),(o,s)=>(l(),f("g",{id:"pmSourceArc",origin:t.value},null,8,Dn))}}),Gn=["origin"],Un=I({__name:"PMUsageArc",props:{radius:{},cornerRadius:{},circleGapSize:{},emptyPower:{}},setup(a){const e=a,t=g(()=>{let o={name:"",power:e.emptyPower,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-bg)",icon:"",showInGraph:!0};const s=[H.evuOut,H.charging].concat([...te.values()].filter(d=>d.configured&&!d.countAsHouse).sort((d,c)=>c.power-d.power)).concat([H.batIn,H.house]).concat(o),r=s.length-1,h=_a().value(d=>d.power).startAngle(Math.PI*1.5-e.circleGapSize).endAngle(Math.PI/2+e.circleGapSize).sort(null),p=wa().innerRadius(e.radius/6*5).outerRadius(e.radius).cornerRadius(e.cornerRadius),u=le("g#pmUsageArc");return u.selectAll("*").remove(),u.selectAll("consumers").data(h(s)).enter().append("path").attr("d",p).attr("fill",d=>d.data.color).attr("stroke",(d,c)=>c==r?d.data.power>0?"var(--color-scale)":"null":d.data.color),"pmUsageArc.vue"});return(o,s)=>(l(),f("g",{id:"pmUsageArc",origin:t.value},null,8,Gn))}});function Pe(a,e=1){let t;if(a>=1e3&&e<4){switch(e){case 0:t=Math.round(a/1e3);break;case 1:t=Math.round(a/100)/10;break;case 2:t=Math.round(a/10)/100;break;case 3:t=Math.round(a)/1e3;break;default:t=Math.round(a/100)/10;break}return(t==null?void 0:t.toLocaleString(void 0,{minimumFractionDigits:e}))+" kW"}else return Math.round(a).toLocaleString()+" W"}function He(a,e=1,t=!1){let o;if(a>1e6&&(t=!0,a=a/1e3),a>=1e3&&e<4){switch(e){case 0:o=Math.round(a/1e3);break;case 1:o=Math.round(a/100)/10;break;case 2:o=Math.round(a/10)/100;break;case 3:o=Math.round(a)/1e3;break;default:o=Math.round(a/100)/10;break}return o.toLocaleString(void 0,{minimumFractionDigits:e})+(t?" MWh":" kWh")}else return Math.round(a).toLocaleString()+(t?" kWh":" Wh")}function jn(a){const e=Math.floor(a/3600),t=(a%3600/60).toFixed(0);return e>0?e+"h "+t+" min":t+" min"}function La(a){return a.toLocaleTimeString(["de-DE"],{hour:"2-digit",minute:"2-digit"})}function Fn(a,e){return["Jan","Feb","März","April","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Dez"][a]+" "+e}function Nn(a){return a!=999?(Math.round(a*10)/10).toLocaleString(void 0,{minimumFractionDigits:1})+"°":"-"}const vt=I({__name:"FormatWatt",props:{watt:{}},setup(a){const e=a,t=g(()=>Pe(e.watt,m.decimalPlaces));return(o,s)=>x(t.value)}}),Hn={key:0,id:"pmLabel"},Rn=["x","y","fill","text-anchor"],Jn=22,Ae=I({__name:"PMLabel",props:{x:{},y:{},data:{},props:{},anchor:{},labeltext:{},labelicon:{},labelcolor:{}},setup(a){const e=a,t=g(()=>e.labeltext?e.labeltext:e.props?e.props.icon+" ":e.labelicon?e.labelicon+" ":""),o=g(()=>e.labelcolor?e.labelcolor:e.props?e.props.color:""),s=g(()=>!e.data||e.data.power>0),r=g(()=>e.labeltext?"":"fas");return(h,p)=>s.value?(l(),f("g",Hn,[n("text",{x:h.x,y:h.y,fill:o.value,"text-anchor":h.anchor,"font-size":Jn,class:"pmLabel"},[n("tspan",{class:R(r.value)},x(t.value),3),n("tspan",null,[h.data!==void 0?(l(),$(vt,{key:0,watt:h.data.power},null,8,["watt"])):w("",!0)])],8,Rn)])):w("",!0)}}),qn={class:"wb-widget p-0 m-0 shadow"},Yn={class:"d-flex justify-content-between"},Qn={class:"m-4 me-0 mb-0"},Zn={class:"p-4 pb-0 ps-0 m-0",style:{"text-align":"right"}},Xn={class:"px-4 pt-4 pb-2 wb-subwidget"},Kn={class:"row"},er={class:"col m-0 p-0"},tr={class:"container-fluid m-0 p-0"},ar={key:0},nr={class:"px-4 py-2 wb-subwidget"},rr={class:"row"},or={class:"col"},sr={class:"container-fluid m-0 p-0"},bt=I({__name:"WBWidget",props:{variableWidth:{type:Boolean},fullWidth:{type:Boolean}},setup(a){const e=a,t=g(()=>e.fullWidth?"col-12":e.variableWidth&&m.preferWideBoxes?"col-lg-6":"col-lg-4");return(o,s)=>(l(),f("div",{class:R(["p-2 m-0 d-flex",t.value])},[n("div",qn,[n("div",Yn,[n("h3",Qn,[ue(o.$slots,"title",{},()=>[s[0]||(s[0]=n("div",{class:"p-0"},"(title goes here)",-1))]),ue(o.$slots,"subtitle")]),n("div",Zn,[ue(o.$slots,"buttons")])]),n("div",Xn,[n("div",Kn,[n("div",er,[n("div",tr,[ue(o.$slots,"default")])])])]),o.$slots.footer!=null?(l(),f("div",ar,[s[1]||(s[1]=n("hr",null,null,-1)),n("div",nr,[n("div",rr,[n("div",or,[n("div",sr,[ue(o.$slots,"footer")])])])])])):w("",!0)])],2))}});class ir{constructor(){b(this,"active",!1);b(this,"etPriceList",new Map);b(this,"etProvider","");b(this,"etMaxPrice",0)}get etCurrentPriceString(){const[e]=re.etPriceList.values();return(Math.round(e*10)/10).toFixed(1)+" ct"}}const re=he(new ir),lr={id:"powermeter",class:"p-0 m-0"},cr=["viewBox"],ur=["transform"],dr=["x"],Xe=500,je=20,ha=1,hr=I({__name:"PowerMeter",setup(a){const e=Xe,t=Math.PI/40,o=[[4],[4,6],[1,4,6],[0,2,4,6],[0,2,3,5,6]],s=[{x:-85,y:e/2*1/5},{x:0,y:e/2*1/5},{x:85,y:e/2*1/5},{x:-85,y:e/2*2/5},{x:0,y:e/2*2/5},{x:85,y:e/2*2/5},{x:0,y:e/2*3/5}],r=g(()=>Xe/2-je),h=g(()=>{let E="",T=Object.values(q).filter(M=>M.power>0);return T.length==1&&T[0].name=="PV"?E="Aktueller Verbrauch: ":E="Bezug/Verbrauch: ",E+Pe(H.house.power+H.charging.power+H.devices.power+H.batIn.power,m.decimalPlaces)}),p=g(()=>{let E=q.pv.power+q.evuIn.power+q.batOut.power;return m.maxPower>E?Pe(m.maxPower,m.decimalPlaces):Pe(E,m.decimalPlaces)}),u=g(()=>Object.values(O)),d=g(()=>{let E=0;return m.showRelativeArcs&&(E=m.maxPower-(q.pv.power+q.evuIn.power+q.batOut.power)),E<0?0:E}),c=g(()=>[H.evuOut,H.charging,H.devices,H.batIn,H.house].filter(E=>E.power>0)),k=g(()=>o[c.value.length-1]);function P(E){return s[k.value[E]]}function A(E){return E.length>12?E.slice(0,11)+".":E}const G=g(()=>{const[E]=re.etPriceList.values();return Math.round(E*10)/10});return(E,T)=>(l(),$(bt,{"full-width":!0},{title:_(()=>T[0]||(T[0]=[J(" Aktuelle Leistung ")])),default:_(()=>[n("figure",lr,[(l(),f("svg",{viewBox:"0 0 "+Xe+" "+i(e)},[n("g",{transform:"translate("+Xe/2+","+i(e)/2+")"},[v(Wn,{radius:r.value,"corner-radius":ha,"circle-gap-size":t,"empty-power":d.value},null,8,["radius","empty-power"]),v(Un,{"sh-device":i(te),radius:r.value,"corner-radius":ha,"circle-gap-size":t,"empty-power":d.value},null,8,["sh-device","radius","empty-power"]),v(Ae,{x:0,y:-i(e)/10*2,data:i(q).pv,props:i(se).pv,anchor:"middle",config:i(m)},null,8,["y","data","props","config"]),v(Ae,{x:0,y:-i(e)/10*3,data:i(q).evuIn,props:i(se).evuIn,anchor:"middle",config:i(m)},null,8,["y","data","props","config"]),v(Ae,{x:0,y:-i(e)/10,data:i(q).batOut,props:i(se).batOut,anchor:"middle",config:i(m)},null,8,["y","data","props","config"]),i(re).active?(l(),$(Ae,{key:0,x:0,y:-i(e)/10,data:i(q).batOut,props:i(se).batOut,anchor:"middle",config:i(m)},null,8,["y","data","props","config"])):w("",!0),(l(!0),f(j,null,Z(c.value,(M,V)=>(l(),$(Ae,{key:V,x:P(V).x,y:P(V).y,data:M,labelicon:M.icon,labelcolor:M.color,anchor:"middle",config:i(m)},null,8,["x","y","data","labelicon","labelcolor","config"]))),128)),i(me)[0]!=null&&i(Q)[i(me)[0]]!=null?(l(),$(Ae,{key:1,x:-500/2-je/4+10,y:-i(e)/2+je+5,labeltext:A(i(Q)[i(me)[0]].name)+": "+Math.round(i(Q)[i(me)[0]].soc)+"%",labelcolor:u.value[0]?u.value[0].color:"var(--color-charging)",anchor:"start",config:i(m)},null,8,["x","y","labeltext","labelcolor","config"])):w("",!0),i(me)[1]!=null&&i(Q)[i(me)[1]]!=null?(l(),$(Ae,{key:2,x:Xe/2+je/4-10,y:-i(e)/2+je+5,labeltext:A(i(Q)[i(me)[1]].name)+": "+Math.round(i(Q)[i(me)[1]].soc)+"%",labelcolor:u.value[1]?u.value[1].color:"var(--color-charging)",anchor:"end",config:i(m)},null,8,["x","y","labeltext","labelcolor","config"])):w("",!0),i(de).batterySoc>0?(l(),$(Ae,{key:3,x:-500/2-je/4+10,y:i(e)/2-je+15,labeltext:"Speicher: "+i(de).batterySoc+"%",labelcolor:i(H).batIn.color,anchor:"start",config:i(m)},null,8,["x","y","labeltext","labelcolor","config"])):w("",!0),i(re).active?(l(),$(Ae,{key:4,x:Xe/2+je/4-10,y:i(e)/2-je+15,value:G.value,labeltext:i(re).etCurrentPriceString,labelcolor:"var(--color-charging)",anchor:"end",config:i(m)},null,8,["x","y","value","labeltext","config"])):w("",!0),v(Ae,{x:0,y:0,labeltext:h.value,labelcolor:"var(--color-fg)",anchor:"middle",config:i(m)},null,8,["labeltext","config"]),i(m).showRelativeArcs?(l(),f("text",{key:5,x:Xe/2-44,y:"2","text-anchor":"middle",fill:"var(--color-axis)","font-size":"12"}," Peak: "+x(p.value),9,dr)):w("",!0)],8,ur)],8,cr))])]),_:1}))}}),pr=["origin","origin2","transform"],gr=I({__name:"PgSourceGraph",props:{width:{},height:{},margin:{}},setup(a){const e=a,t={house:"var(--color-house)",batIn:"var(--color-battery)",inverter:"var(--color-pv)",batOut:"var(--color-battery)",selfUsage:"var(--color-pv)",pv:"var(--color-pv)",evuOut:"var(--color-export)",evuIn:"var(--color-evu)"};var o,s;const r=m.showAnimations?m.animationDuration:0,h=m.showAnimations?m.animationDelay:0,p=g(()=>{const C=le("g#pgSourceGraph");if(y.data.length>0){y.graphMode=="month"||y.graphMode=="year"?V(C,Ye.value):M(C,Ve.value),C.selectAll(".axis").remove();const D=C.append("g").attr("class","axis");D.call(G.value),D.selectAll(".tick").attr("font-size",12),D.selectAll(".tick line").attr("stroke",T.value).attr("stroke-width",E.value),D.select(".domain").attr("stroke","var(--color-bg)")}return"pgSourceGraph.vue"}),u=g(()=>ka().value((C,D)=>C[D]??0).keys(k.value)),d=g(()=>u.value(y.data)),c=g(()=>Re().range([e.height-10,0]).domain(y.graphMode=="year"?[0,Math.ceil(P.value[1]*10)/10]:[0,Math.ceil(P.value[1])])),k=g(()=>{let C=[];const D=["batOut","evuIn"];if(m.showInverters){const z=/pv\d+/;y.data.length>0&&(C=Object.keys(y.data[0]).reduce((B,ne)=>(ne.match(z)&&B.push(ne),B),[]))}switch(y.graphMode){case"live":return m.showInverters?["pv","batOut","evuIn"]:["selfUsage","evuOut","batOut","evuIn"];case"today":case"day":return C.forEach((z,B)=>{t[z]="var(--color-pv"+(B+1)+")"}),m.showInverters?[...C,...D]:["selfUsage","evuOut","batOut","evuIn"];default:return["evuIn","batOut","selfUsage","evuOut"]}}),P=g(()=>{let C=Le(y.data,D=>Math.max(D.pv+D.evuIn+D.batOut,D.selfUsage+D.evuOut));return C[0]!=null&&C[1]!=null?(y.graphMode=="year"&&(C[0]=C[0]/1e3,C[1]=C[1]/1e3),C):[0,0]}),A=g(()=>y.graphMode=="month"||y.graphMode=="year"?-e.width-e.margin.right-22:-e.width),G=g(()=>gt(c.value).tickSizeInner(A.value).ticks(4).tickFormat(C=>(C==0?"":Math.round(C*10)/10).toLocaleString(void 0))),E=g(()=>m.showGrid?"0.5":"1"),T=g(()=>m.showGrid?"var(--color-grid)":"var(--color-bg)");function M(C,D){const z=rt().x((ne,Se)=>D(y.data[Se].date)).y(c.value(0)).curve(ot),B=rt().x((ne,Se)=>D(y.data[Se].date)).y0(ne=>c.value(y.graphMode=="year"?ne[0]/1e3:ne[0])).y1(ne=>c.value(y.graphMode=="year"?ne[1]/1e3:ne[1])).curve(ot);pt?(C.selectAll("*").remove(),o=C.append("svg").attr("x",0).attr("width",e.width).selectAll(".sourceareas").data(d.value).enter().append("path").attr("fill",(Se,W)=>t[k.value[W]]).attr("d",Se=>z(Se)),o.transition().duration(r).delay(h).ease(dt).attr("d",Se=>B(Se)),sa()):o.data(d.value).transition().duration(0).ease(dt).attr("d",ne=>B(ne))}function V(C,D){y.data.length>0&&(pt?(C.selectAll("*").remove(),s=C.selectAll(".sourcebar").data(d.value).enter().append("g").attr("fill",(z,B)=>t[k.value[B]]).selectAll("rect").data(z=>z).enter().append("rect").attr("x",(z,B)=>D(y.data[B].date)??0).attr("y",()=>c.value(0)).attr("height",0).attr("width",D.bandwidth()),s.transition().duration(r).delay(h).ease(dt).attr("height",z=>y.graphMode=="year"?c.value(z[0]/1e3)-c.value(z[1]/1e3):c.value(z[0])-c.value(z[1])).attr("y",z=>y.graphMode=="year"?c.value(z[1]/1e3):c.value(z[1])),sa()):(C.selectAll("*").remove(),s=C.selectAll(".sourcebar").data(d.value).enter().append("g").attr("fill",(z,B)=>t[k.value[B]]).selectAll("rect").data(z=>z).enter().append("rect").attr("x",(z,B)=>D(y.data[B].date)??0).attr("y",z=>y.graphMode=="year"?c.value(z[1]/1e3):c.value(z[1])).attr("width",D.bandwidth()).attr("height",z=>y.graphMode=="year"?c.value(z[0]/1e3)-c.value(z[1]/1e3):c.value(z[0])-c.value(z[1]))))}const S=g(()=>{const C=le("g#pgSourceGraph");if(y.graphMode!="month"&&y.graphMode!="year"&&y.data.length>0){Ve.value.range(Qe.value);const D=rt().x((z,B)=>Ve.value(y.data[B].date)).y0(z=>c.value(z[0])).y1(z=>c.value(z[1])).curve(ot);C.selectAll("path").attr("d",z=>z?D(z):""),C.selectAll("g#sourceToolTips").select("rect").attr("x",z=>Ve.value(z.date)).attr("width",e.width/y.data.length)}return"zoomed"});return(C,D)=>(l(),f("g",{id:"pgSourceGraph",origin:p.value,origin2:S.value,transform:"translate("+C.margin.left+","+C.margin.top+")"},null,8,pr))}}),mr=["origin","origin2","transform"],fr=I({__name:"PgUsageGraph",props:{width:{},height:{},margin:{},stackOrder:{}},setup(a){const e=a,t=g(()=>m.showInverters?[["house","charging","devices","batIn","evuOut"],["charging","devices","batIn","house","evuOut"],["devices","batIn","charging","house","evuOut"],["batIn","charging","house","devices","evuOut"]]:[["house","charging","devices","batIn"],["charging","devices","batIn","house"],["devices","batIn","charging","house"],["batIn","charging","house","devices"]]),o={house:"var(--color-house)",charging:"var(--color-charging)",batIn:"var(--color-battery)",batOut:"var(--color-battery)",selfUsage:"var(--color-pv)",evuOut:"var(--color-export)",evuIn:"var(--color-evu)",cp0:"var(--color-cp0)",cp1:"var(--color-cp1)",cp2:"var(--color-cp2)",cp3:"var(--color-cp3)",sh1:"var(--color-sh1)",sh2:"var(--color-sh2)",sh3:"var(--color-sh3)",sh4:"var(--color-sh4)",devices:"var(--color-devices)"};var s,r;const h=m.showAnimations?m.animationDuration:0,p=m.showAnimations?m.animationDelay:0,u=g(()=>{const S=le("g#pgUsageGraph");y.graphMode=="month"||y.graphMode=="year"?M(S):T(S),S.selectAll(".axis").remove();const C=S.append("g").attr("class","axis");return C.call(E.value),C.selectAll(".tick").attr("font-size",12).attr("color","var(--color-axis)"),m.showGrid?C.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):C.selectAll(".tick line").attr("stroke","var(--color-bg)"),C.select(".domain").attr("stroke","var(--color-bg)"),"pgUsageGraph.vue"}),d=g(()=>ka().value((S,C)=>S[C]??0).keys(P.value)),c=g(()=>d.value(y.data)),k=g(()=>Re().range([e.height+10,2*e.height]).domain(y.graphMode=="year"?[0,Math.ceil(A.value[1]*10)/10]:[0,Math.ceil(A.value[1])])),P=g(()=>{if(y.graphMode!="today"&&y.graphMode!="day"&&y.graphMode!="live")return t.value[e.stackOrder];{const S=t.value[e.stackOrder].slice(),C=S.indexOf("charging");S.splice(C,1);const D=/cp\d+/;let z=[];return y.data.length>0&&(z=Object.keys(y.data[0]).reduce((B,ne)=>(ne.match(D)&&B.push(ne),B),[])),z.forEach((B,ne)=>{var Se;S.splice(C+ne,0,B),o[B]=((Se=O[+B.slice(2)])==null?void 0:Se.color)??"black"}),S}}),A=g(()=>{let S=Le(y.data,C=>C.house+C.charging+C.batIn+C.devices+C.evuOut);return S[0]!=null&&S[1]!=null?(y.graphMode=="year"&&(S[0]=S[0]/1e3,S[1]=S[1]/1e3),S):[0,0]}),G=g(()=>y.graphMode=="month"||y.graphMode=="year"?-e.width-e.margin.right-22:-e.width),E=g(()=>gt(k.value).tickSizeInner(G.value).ticks(4).tickFormat(S=>(S==0?"":Math.round(S*10)/10).toLocaleString(void 0)));function T(S){const C=rt().x((z,B)=>Ve.value(y.data[B].date)).y(k.value(0)).curve(ot),D=rt().x((z,B)=>Ve.value(y.data[B].date)).y0(z=>k.value(z[0])).y1(z=>k.value(z[1])).curve(ot);m.showAnimations?lt?(S.selectAll("*").remove(),s=S.append("svg").attr("x",0).attr("width",e.width).selectAll(".usageareas").data(c.value).enter().append("path").attr("d",B=>C(B)).attr("fill",(B,ne)=>o[P.value[ne]]),s.transition().duration(300).delay(100).ease(dt).attr("d",B=>D(B)),la()):(S.selectAll("*").remove(),S.append("svg").attr("x",0).attr("width",e.width).selectAll(".usageareas").data(c.value).enter().append("path").attr("d",B=>D(B)).attr("fill",(B,ne)=>o[P.value[ne]])):(S.selectAll("*").remove(),S.append("svg").attr("x",0).attr("width",e.width).selectAll(".usageareas").data(c.value).enter().append("path").attr("d",B=>D(B)).attr("fill",(B,ne)=>o[P.value[ne]]))}function M(S){lt?(S.selectAll("*").remove(),r=S.selectAll(".usagebar").data(c.value).enter().append("g").attr("fill",(C,D)=>o[t.value[e.stackOrder][D]]).selectAll("rect").data(C=>C).enter().append("rect").attr("x",(C,D)=>Ye.value(y.data[D].date)??0).attr("y",()=>k.value(0)).attr("height",0).attr("width",Ye.value.bandwidth()),r.transition().duration(h).delay(p).ease(dt).attr("y",C=>y.graphMode=="year"?k.value(C[0]/1e3):k.value(C[0])).attr("height",C=>y.graphMode=="year"?k.value(C[1]/1e3)-k.value(C[0]/1e3):k.value(C[1])-k.value(C[0])),la()):(S.selectAll("*").remove(),r=S.selectAll(".usagebar").data(c.value).enter().append("g").attr("fill",(C,D)=>o[t.value[e.stackOrder][D]]).selectAll("rect").data(C=>C).enter().append("rect").attr("x",(C,D)=>Ye.value(y.data[D].date)??0).attr("y",C=>y.graphMode=="year"?k.value(C[0]/1e3):k.value(C[0])).attr("height",C=>y.graphMode=="year"?k.value(C[1]/1e3)-k.value(C[0]/1e3):k.value(C[1])-k.value(C[0])).attr("width",Ye.value.bandwidth()))}const V=g(()=>{const S=le("g#pgUsageGraph");if(y.graphMode!="month"&&y.graphMode!="year"){Ve.value.range(Qe.value);const C=rt().x((D,z)=>Ve.value(y.data[z].date)).y0(D=>k.value(D[0])).y1(D=>k.value(D[1])).curve(ot);S.selectAll("path").attr("d",D=>D?C(D):"")}return"zoomed"});return(S,C)=>(l(),f("g",{id:"pgUsageGraph",origin:u.value,origin2:V.value,transform:"translate("+S.margin.left+","+S.margin.top+")"},null,8,mr))}}),vr=["width"],br=["transform"],yr=["width"],_r=["transform"],wr=["origin","origin2","transform"],kr=["origin","transform"],xr={key:0},Sr=["width","height"],$r={key:1},Mr=["y","width","height"],It=12,Pr=I({__name:"PgXAxis",props:{width:{},height:{},margin:{}},setup(a){const e=a,t=g(()=>ht(Ve.value).ticks(6).tickSizeInner(h.value).tickFormat(it("%H:%M"))),o=g(()=>Ja(Ve.value).ticks(6).tickSizeInner(h.value+3).tickFormat(it(""))),s=g(()=>ht(Ye.value).ticks(4).tickSizeInner(h.value).tickFormat(c=>c.toString())),r=g(()=>ht(Ye.value).ticks(4).tickSizeInner(h.value).tickFormat(()=>"")),h=g(()=>y.graphMode!=="month"&&y.graphMode!=="year"?m.showGrid?-(e.height/2-7):-10:0),p=g(()=>{let c=le("g#PGXAxis"),k=le("g#PgUnit");return c.selectAll("*").remove(),k.selectAll("*").remove(),y.graphMode=="month"||y.graphMode=="year"?c.call(s.value):c.call(t.value),c.selectAll(".tick > text").attr("fill",(P,A)=>A>=0||y.graphMode=="month"||y.graphMode=="year"?"var(--color-axis)":"var(--color-bg)").attr("font-size",It),m.showGrid?c.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):c.selectAll(".tick line").attr("stroke","var(--color-bg)"),c.select(".domain").attr("stroke","var(--color-bg)"),k.append("text").attr("x",0).attr("y",12).attr("fill","var(--color-axis)").attr("font-size",It).text(y.graphMode=="year"?"MW":"kW").attr("text-anchor","start"),"PGXAxis.vue"}),u=g(()=>{let c=le("g#PGXAxis2");return c.selectAll("*").remove(),y.graphMode=="month"||y.graphMode=="year"?c.call(r.value):c.call(o.value),c.selectAll(".tick > text").attr("fill",(k,P)=>P>=0||y.graphMode=="month"||y.graphMode=="year"?"var(--color-axis)":"var(--color-bg)").attr("font-size",It),m.showGrid?(c.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"),c.select(".domain").attr("stroke","var(--color-bg)")):c.selectAll(".tick line").attr("stroke","var(--color-bg)"),c.select(".domain").attr("stroke","var(--color-bg)"),"PGXAxis2.vue"}),d=g(()=>{if(y.graphMode!="month"&&y.graphMode!="year"){const c=le("g#PGXAxis"),k=le("g#PGXAxis2");y.graphMode=="month"||y.graphMode=="year"?(Ye.value.range(Qe.value),c.call(s.value),k.call(r.value)):(Ve.value.range(Qe.value),c.call(t.value),k.call(o.value))}return"zoomed"});return(c,k)=>(l(),f(j,null,[(l(),f("svg",{x:"0",width:e.width},[n("g",{id:"PgUnit",transform:"translate(0,"+(c.height/2+9)+")"},null,8,br)],8,vr)),(l(),f("svg",{x:0,width:e.width+10},[n("g",{transform:"translate("+c.margin.left+","+c.margin.top+")"},[n("g",{id:"PGXAxis",class:"axis",origin:p.value,origin2:d.value,transform:"translate(0,"+(c.height/2-6)+")"},null,8,wr),n("g",{id:"PGXAxis2",class:"axis",origin:u.value,transform:"translate(0,"+(c.height/2+-6)+")"},null,8,kr),i(m).showGrid?(l(),f("g",xr,[n("rect",{x:"0",y:"0",width:c.width,height:c.height/2-10,fill:"none",stroke:"var(--color-grid)","stroke-width":"0.5"},null,8,Sr)])):w("",!0),i(m).showGrid?(l(),f("g",$r,[n("rect",{x:"0",y:c.height/2+10,width:c.width,height:c.height/2-10,fill:"none",stroke:"var(--color-grid)","stroke-width":"0.5"},null,8,Mr)])):w("",!0)],8,_r)],8,yr))],64))}}),Cr=["width"],Ir=["id",".origin","d"],Br=["id","d","stroke"],Vr=["x","y","text-anchor"],Bt=I({__name:"PgSoc",props:{width:{},height:{},margin:{},order:{}},setup(a){const e=a,t=g(()=>{let P=Le(y.data,A=>A.date);return P[0]&&P[1]?tt().domain(P).range([0,e.width]):tt().range([0,0])}),o=g(()=>Re().range([e.height-10,0]).domain([0,100])),s=g(()=>{let A=Ne().x(G=>t.value(G.date)).y(G=>o.value(e.order==2?G.batSoc:e.order==0?G["soc"+me.value[0]]:G["soc"+me.value[1]])??o.value(0))(y.data);return A||""}),r=g(()=>e.order),h=g(()=>{switch(e.order){case 2:return"Speicher";case 1:return Q[me.value[1]]!=null?Q[me.value[1]].name:"???";default:return Q[me.value[0]]!=null?Q[me.value[0]].name:"???"}}),p=g(()=>{switch(e.order){case 0:return"var(--color-cp1)";case 1:return"var(--color-cp2)";case 2:return"var(--color-battery)";default:return"red"}}),u=g(()=>{switch(e.order){case 0:return 3;case 1:return e.width-3;case 2:return e.width/2;default:return 0}}),d=g(()=>{if(y.data.length>0){let P;switch(e.order){case 0:return P=0,o.value(y.data[P]["soc"+me.value[0]]+2);case 1:return P=y.data.length-1,Math.max(12,o.value(y.data[P]["soc"+me.value[1]]+2));case 2:return P=Math.round(y.data.length/2),o.value(y.data[P].batSoc+2);default:return 0}}else return 0}),c=g(()=>{switch(e.order){case 0:return"start";case 1:return"end";case 2:return"middle";default:return"middle"}}),k=g(()=>{if(y.graphMode!="month"&&y.graphMode!="year"){const P=le("path#soc-"+r.value),A=le("path#socdashes-"+r.value);t.value.range(Qe.value);const G=Ne().x(E=>t.value(E.date)).y(E=>o.value(e.order==2?E.batSoc:e.order==1?E["soc"+me.value[0]]:E["soc"+me.value[1]])??o.value(0));P.attr("d",G(y.data)),A.attr("d",G(y.data))}return"zoomed"});return(P,A)=>(l(),f("svg",{x:"0",width:e.width},[n("g",null,[n("path",{id:"soc-"+r.value,".origin":k.value,class:"soc-baseline",d:s.value,stroke:"var(--color-bg)","stroke-width":"1",fill:"none"},null,40,Ir),n("path",{id:"socdashes-"+r.value,class:"soc-dashes",d:s.value,stroke:p.value,"stroke-width":"1",style:{strokeDasharray:"3,3"},fill:"none"},null,8,Br),n("text",{class:"cpname",x:u.value,y:d.value,style:K({fill:p.value,fontSize:10}),"text-anchor":c.value},x(h.value),13,Vr)])],8,Cr))}}),Lr=["transform"],Tr=I({__name:"PgSocAxis",props:{width:{},height:{},margin:{}},setup(a){const e=a,t=g(()=>Re().range([e.height-10,0]).domain([0,100])),o=g(()=>qa(t.value).ticks(5).tickFormat(r=>r.toString()+"%"));function s(){let r=le("g#PGSocAxis");r.call(o.value),r.selectAll(".tick").attr("font-size",12),r.selectAll(".tick line").attr("stroke","var(--color-bg)"),r.select(".domain").attr("stroke","var(--color-bg)")}return Te(()=>{s()}),(r,h)=>(l(),f("g",{id:"PGSocAxis",class:"axis",transform:"translate("+(r.width-20)+",0)"},null,8,Lr))}}),Or={class:"d-flex align-self-top justify-content-center align-items-center"},Ar={class:"input-group input-group-xs"},Er={key:0,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},zr={class:"dropdown-menu"},Dr={class:"table optiontable"},Wr=["onClick"],Gr={key:1,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},Ur={class:"dropdown-menu"},jr={class:"table optiontable"},Fr=["onClick"],Nr={key:2,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},Hr={class:"dropdown-menu"},Rr={class:"table optiontable"},Jr=["onClick"],qr=I({__name:"DateInput",props:{modelValue:{type:Date,required:!0},mode:{type:String,default:"day"}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=new Date().getFullYear();let s=Array.from({length:10},(A,G)=>o-G);const r=Y(!0),h=e,p=[[0,1,2,3],[4,5,6,7],[8,9,10,11]],u=Y(t.modelValue.getDate()),d=Y(t.modelValue.getMonth()),c=Y(t.modelValue.getFullYear()),k=g(()=>{const G=new Date(c.value,d.value,1).getDay();let E=0;switch(d.value){case 1:case 3:case 5:case 7:case 8:case 10:case 12:E=31;break;case 4:case 6:case 9:case 11:E=30;break;case 2:Math.trunc(c.value/4)*4==c.value?E=29:E=28}let T=[],M=[0,0,0,0,0,0,0],V=G;for(let S=0;S(l(),f("span",Or,[n("div",Ar,[t.mode=="day"||t.mode=="today"?(l(),f("button",Er,x(u.value),1)):w("",!0),n("div",zr,[n("table",Dr,[(l(!0),f(j,null,Z(k.value,(E,T)=>(l(),f("tr",{key:T,class:""},[(l(!0),f(j,null,Z(E,(M,V)=>(l(),f("td",{key:V},[M!=0?(l(),f("span",{key:0,type:"button",class:"btn optionbutton",onClick:S=>u.value=M},x(M),9,Wr)):w("",!0)]))),128))]))),128))])]),t.mode!="year"&&t.mode!="live"?(l(),f("button",Gr,x(d.value+1),1)):w("",!0),n("div",Ur,[n("table",jr,[(l(),f(j,null,Z(p,(E,T)=>n("tr",{key:T,class:""},[(l(!0),f(j,null,Z(E,(M,V)=>(l(),f("td",{key:V,class:"p-0 m-0"},[n("span",{type:"button",class:"btn btn-sm optionbutton",onClick:S=>d.value=M},x(M+1),9,Fr)]))),128))])),64))])]),t.mode!="live"?(l(),f("button",Nr,x(c.value),1)):w("",!0),n("div",Hr,[n("table",Rr,[(l(!0),f(j,null,Z(i(s),(E,T)=>(l(),f("tr",{key:T,class:""},[n("td",null,[n("span",{type:"button",class:"btn optionbutton",onClick:M=>c.value=E},x(E),9,Jr)])]))),128))])]),t.mode!="live"?(l(),f("button",{key:3,class:"button-outline-secondary",type:"button",onClick:P},G[0]||(G[0]=[n("span",{class:"fa-solid fa-circle-check"},null,-1)]))):w("",!0)])]))}}),F=(a,e)=>{const t=a.__vccOpts||a;for(const[o,s]of e)t[o]=s;return t},Yr=F(qr,[["__scopeId","data-v-98690e5d"]]),Qr={class:"btn-group m-0",role:"group","aria-label":"radiobar"},Zr=["id","value"],Xr=I({__name:"RadioBarInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=e,s=g({get(){return t.modelValue},set(p){o("update:modelValue",p)}});function r(p){let u=t.options[p].color?t.options[p].color:"var(--color-fg)";return t.options[p].active?{color:"var(--color-bg)",background:u}:{color:u}}function h(p){let u=p.target;for(;u&&!u.value&&u.parentElement;)u=u.parentElement;u.value&&(s.value=u.value)}return(p,u)=>(l(),f("div",null,[n("div",Qr,[(l(!0),f(j,null,Z(p.options,(d,c)=>(l(),f("button",{id:"radio-"+d.value,key:c,class:R(["btn btn-outline-secondary btn-sm radiobutton mx-0 mb-0 px-2",d.value==s.value?"active":""]),value:d.value,style:K(r(c)),onClick:h},[n("span",{style:K(r(c))},[d.icon?(l(),f("i",{key:0,class:R(["fa-solid",d.icon])},null,2)):w("",!0),J(" "+x(d.text),1)],4)],14,Zr))),128))])]))}}),Ta=F(Xr,[["__scopeId","data-v-82ab6829"]]),Kr=I({__name:"PgSelector",props:{widgetid:{},showLeftButton:{type:Boolean},showRightButton:{type:Boolean},ignoreLive:{type:Boolean}},emits:["shiftLeft","shiftRight","shiftUp","shiftDown"],setup(a){const e=a,t=Y(0),o=g(()=>{if(y.waitForData)return"Lädt";switch(y.graphMode){case"live":return e.ignoreLive?"heute":`${ge.duration} min`;case"today":return"heute";case"day":return ce.date.getDate()+"."+(ce.date.getMonth()+1)+".";case"month":return Fn(Ee.month-1,Ee.year);case"year":return qe.year.toString();default:return"???"}}),s=["live","today","day","month","year"],r=["Live","Heute","Tag","Monat","Jahr"],h=g({get(){return y.graphMode},set(V){switch(V){case"day":k();break;case"today":P();break;case"live":c();break;case"month":A();break;case"year":G()}}}),p=g(()=>{switch(y.graphMode){case"live":case"today":return ce.getDate();case"month":return Ee.getDate();default:return ce.getDate()}});function u(V){ua(V)}function d(){t.value+=1,t.value>2&&(t.value=0)}function c(){y.graphMode!="live"&&(y.graphMode="live",fe())}function k(){y.graphMode!="day"&&y.graphMode!="today"&&(y.graphMode="day",fe())}function P(){y.graphMode!="today"&&(y.graphMode="today",ua(new Date),fe())}function A(){y.graphMode!="month"&&(y.graphMode="month",fe())}function G(){y.graphMode!="year"&&(y.graphMode="year",fe())}const E=g(()=>t.value>0?{border:"1px solid var(--color-frame)"}:""),T=g(()=>t.value==1?"justify-content-between":"justify-content-end"),M=g(()=>t.value==1?"justify-content-between":"justify-content-center");return(V,S)=>(l(),f("div",{class:"d-flex flex-column justify-content-center pgselector rounded",style:K(E.value)},[t.value==2?(l(),$(Ta,{key:0,id:"pgm2",modelValue:h.value,"onUpdate:modelValue":S[0]||(S[0]=C=>h.value=C),class:"m-2",options:s.map((C,D)=>({text:r[D],value:C,color:"var(--color-menu)",active:C==i(y).graphMode}))},null,8,["modelValue","options"])):w("",!0),t.value==1?(l(),f("span",{key:1,type:"button",class:R(["arrowButton d-flex align-self-center mb-3 mt-3",{disabled:!e.showLeftButton}]),onClick:S[1]||(S[1]=C=>V.$emit("shiftUp"))},S[6]||(S[6]=[n("i",{class:"fa-solid fa-xl fa-chevron-circle-up"},null,-1)]),2)):w("",!0),n("div",{class:R(["d-flex align-items-center",M.value])},[t.value==1?(l(),f("span",{key:0,type:"button",class:R(["p-1",{disabled:!e.showLeftButton}]),onClick:S[2]||(S[2]=C=>V.$emit("shiftLeft"))},S[7]||(S[7]=[n("span",{class:"fa-solid fa-xl fa-chevron-circle-left arrowButton"},null,-1)]),2)):w("",!0),t.value<2?(l(),f("span",{key:1,type:"button",class:"btn-outline-secondary p-2 px-3 badge rounded-pill datebadge",onClick:d},x(o.value),1)):w("",!0),t.value==2?(l(),$(Yr,{key:2,"model-value":p.value,mode:i(y).graphMode,"onUpdate:modelValue":u},null,8,["model-value","mode"])):w("",!0),t.value==1?(l(),f("span",{key:3,id:"graphRightButton",type:"button",class:R(["arrowButton fa-solid fa-xl fa-chevron-circle-right p-1",{disabled:!e.showRightButton}]),onClick:S[3]||(S[3]=C=>V.$emit("shiftRight"))},null,2)):w("",!0)],2),n("div",{class:R(["d-flex align-items-center",T.value])},[t.value==1?(l(),f("span",{key:0,type:"button",class:"p-1",onClick:d},S[8]||(S[8]=[n("span",{class:"fa-solid fa-xl fa-gear"},null,-1)]))):w("",!0),t.value==1?(l(),f("span",{key:1,id:"graphLeftButton",type:"button",class:R(["arrowButton fa-solid fa-xl fa-chevron-circle-down p-1",{disabled:!e.showLeftButton}]),onClick:S[4]||(S[4]=C=>V.$emit("shiftDown"))},null,2)):w("",!0),t.value>0?(l(),f("span",{key:2,type:"button",class:"p-1",onClick:S[5]||(S[5]=C=>t.value=0)},S[9]||(S[9]=[n("span",{class:"fa-solid fa-xl fa-circle-check"},null,-1)]))):w("",!0)],2)],4))}}),aa=F(Kr,[["__scopeId","data-v-d75ec1a4"]]),eo=["x","fill"],to=["x"],Ie=I({__name:"PgToolTipLine",props:{cat:{},name:{},indent:{},power:{},width:{}},setup(a){const e=a;return(t,o)=>(l(),f(j,null,[t.power>0?(l(),f("tspan",{key:0,x:t.indent,dy:"1.3em",class:R(t.name?"":"fas"),fill:i(se)[t.cat].color},x(t.name?t.name:i(se)[t.cat].icon)+"   ",11,eo)):w("",!0),n("tspan",{"text-anchor":"end",x:t.width-t.indent},[e.power>0?(l(),$(vt,{key:0,watt:t.power*1e3},null,8,["watt"])):w("",!0)],8,to)],64))}}),ao=["transform"],no=["width","height"],ro={"text-anchor":"start",x:"5",y:"20","font-size":"16",fill:"var(--color-fg)"},oo=["x"],so=I({__name:"PgToolTipItem",props:{entry:{},boxwidth:{},xScale:{type:[Function,Object]}},setup(a){const e=a,t=g(()=>Object.values(e.entry).filter(u=>u>0).length),o=g(()=>t.value*16),s=g(()=>Object.entries(e.entry).filter(([u,d])=>u.startsWith("pv")&&u.length>2&&d>0).map(([u,d])=>({power:d,name:Fe.value.get(u)?p(Fe.value.get(u)):"Wechselr.",id:u}))),r=g(()=>Object.entries(e.entry).filter(([u,d])=>u.startsWith("cp")&&u.length>2&&d>0).map(([u,d])=>({power:d,name:Fe.value.get(u)?p(Fe.value.get(u)):"Ladep.",id:u}))),h=g(()=>Object.entries(e.entry).filter(([u,d])=>u.startsWith("sh")&&u.length>2&&d>0).map(([u,d])=>({power:d,name:Fe.value.get(u)?p(Fe.value.get(u)):"Gerät",id:u})));function p(u){return u.length>6?u.slice(0,6)+"...":u}return(u,d)=>(l(),f("g",{class:"ttmessage",transform:"translate("+u.xScale(u.entry.date)+",0)"},[n("rect",{rx:"5",width:u.boxwidth,height:o.value,fill:"var(--color-bg)",opacity:"80%",stroke:"var(--color-menu)"},null,8,no),n("text",ro,[n("tspan",{"text-anchor":"middle",x:u.boxwidth/2,dy:"0em"},x(i(it)("%H:%M")(new Date(u.entry.date))),9,oo),d[0]||(d[0]=n("line",{y:"120",x1:"5",x2:"100",stroke:"var(--color-fg)","stroke-width":"1"},null,-1)),v(Ie,{cat:"evuIn",indent:5,power:u.entry.evuIn,width:u.boxwidth},null,8,["power","width"]),v(Ie,{cat:"batOut",indent:5,power:u.entry.batOut,width:u.boxwidth},null,8,["power","width"]),v(Ie,{cat:"pv",indent:5,power:u.entry.pv,width:u.boxwidth},null,8,["power","width"]),(l(!0),f(j,null,Z(s.value,c=>(l(),$(Ie,{key:c.id,cat:"pv",name:c.name,power:c.power,indent:10,width:u.boxwidth},null,8,["name","power","width"]))),128)),v(Ie,{cat:"house",indent:5,power:u.entry.house,width:u.boxwidth},null,8,["power","width"]),v(Ie,{cat:"charging",indent:5,power:u.entry.charging,width:u.boxwidth},null,8,["power","width"]),(l(!0),f(j,null,Z(r.value,c=>(l(),$(Ie,{key:c.id,cat:"charging",name:c.name,power:c.power,indent:10,width:u.boxwidth},null,8,["name","power","width"]))),128)),v(Ie,{cat:"devices",indent:5,power:u.entry.devices,width:u.boxwidth},null,8,["power","width"]),(l(!0),f(j,null,Z(h.value,c=>(l(),$(Ie,{key:c.id,cat:"devices",name:c.name,power:c.power,indent:10,width:u.boxwidth},null,8,["name","power","width"]))),128)),v(Ie,{cat:"batIn",indent:5,power:u.entry.batIn,width:u.boxwidth},null,8,["power","width"]),v(Ie,{cat:"evuOut",indent:5,power:u.entry.evuOut,width:u.boxwidth},null,8,["power","width"])])],8,ao))}}),io=["origin","transform"],lo=["x","height","width"],pa=140,co=I({__name:"PgToolTips",props:{width:{},height:{},margin:{},data:{}},setup(a){const e=a,t=g(()=>{const r=Le(e.data,h=>new Date(h.date));return r[0]&&r[1]?jt().domain(r).range([0,e.width-e.margin.right]):tt().range([0,0])}),o=g(()=>{const r=Le(e.data,h=>new Date(h.date));return r[0]&&r[1]?jt().domain(r).range([0,e.width-e.margin.right-pa]):tt().range([0,0])}),s=g(()=>((y.graphMode=="day"||y.graphMode=="today")&&(t.value.range(Qe.value),le("g#pgToolTips").selectAll("g.ttarea").select("rect").attr("x",(r,h)=>e.data.length>h?t.value(e.data[h].date):0).attr("width",e.data.length>0?(Qe.value[1]-Qe.value[0])/e.data.length:0)),"PgToolTips.vue:autozoom"));return(r,h)=>(l(),f("g",{id:"pgToolTips",origin:s.value,transform:"translate("+r.margin.left+","+r.margin.top+")"},[(l(!0),f(j,null,Z(r.data,p=>(l(),f("g",{key:p.date,class:"ttarea"},[n("rect",{x:t.value(p.date),y:"0",height:r.height,class:"ttrect",width:i(y).data.length>0?r.width/i(y).data.length:0,opacity:"1%",fill:"var(--color-charging)"},null,8,lo),v(so,{entry:p,boxwidth:pa,"x-scale":o.value},null,8,["entry","x-scale"])]))),128))],8,io))}}),uo={class:"d-flex justify-content-end"},ho={id:"powergraphFigure",class:"p-0 m-0"},po=["viewBox"],go=["transform"],mo=["x","y"],fo=2,vo="Leistung / Ladestand ",bo=I({__name:"PowerGraph",setup(a){function e(){let h=m.usageStackOrder+1;h>fo&&(h=0),m.usageStackOrder=h,xn(!0)}function t(h){const p=[[0,N.top],[_e,Me-N.top]];h.call(Qa().scaleExtent([1,8]).translateExtent([[0,0],[_e,Me]]).extent(p).filter(s).on("zoom",o))}function o(h){Ia.value=h.transform}function s(h){return h.preventDefault(),(!h.ctrlKey||h.type==="wheel")&&!h.button}function r(){m.zoomedWidget=1,m.zoomGraph=!m.zoomGraph}return Te(()=>{const h=le("svg#powergraph");t(h)}),(h,p)=>(l(),$(bt,{"full-width":!0},{title:_(()=>[J(x(vo))]),buttons:_(()=>[n("div",uo,[v(aa,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!1,onShiftLeft:i(Pt),onShiftRight:i(Xt),onShiftUp:i(Kt),onShiftDown:i(ea)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),i(De)?(l(),f("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:r},p[0]||(p[0]=[n("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)]))):w("",!0)])]),default:_(()=>[mt(n("figure",ho,[(l(),f("svg",{id:"powergraph",class:"powergraphSvg",viewBox:"0 0 "+i(_e)+" "+i(Me)},[v(gr,{width:i(_e)-i(N).left-2*i(N).right,height:(i(Me)-i(N).top-i(N).bottom)/2,margin:i(N)},null,8,["width","height","margin"]),v(fr,{width:i(_e)-i(N).left-2*i(N).right,height:(i(Me)-i(N).top-i(N).bottom)/2,margin:i(N),"stack-order":i(m).usageStackOrder},null,8,["width","height","margin","stack-order"]),v(Pr,{width:i(_e)-i(N).left-i(N).right,height:i(Me)-i(N).top-i(N).bottom,margin:i(N)},null,8,["width","height","margin"]),n("g",{transform:"translate("+i(N).left+","+i(N).top+")"},[(i(y).graphMode=="day"||i(y).graphMode=="today"||i(y).graphMode=="live")&&Object.values(i(Q)).filter(u=>u.visible).length>0?(l(),$(Bt,{key:0,width:i(_e)-i(N).left-2*i(N).right,height:(i(Me)-i(N).top-i(N).bottom)/2,margin:i(N),order:0},null,8,["width","height","margin"])):w("",!0),(i(y).graphMode=="day"||i(y).graphMode=="today"||i(y).graphMode=="live")&&Object.values(i(Q)).filter(u=>u.visible).length>1?(l(),$(Bt,{key:1,width:i(_e)-i(N).left-2*i(N).right,height:(i(Me)-i(N).top-i(N).bottom)/2,margin:i(N),order:1},null,8,["width","height","margin"])):w("",!0),(i(y).graphMode=="day"||i(y).graphMode=="today"||i(y).graphMode=="live")&&i(de).isBatteryConfigured?(l(),$(Bt,{key:2,width:i(_e)-i(N).left-2*i(N).right,height:(i(Me)-i(N).top-i(N).bottom)/2,margin:i(N),order:2},null,8,["width","height","margin"])):w("",!0),i(y).graphMode=="day"||i(y).graphMode=="today"||i(y).graphMode=="live"?(l(),$(Tr,{key:3,width:i(_e)-i(N).left-i(N).right,height:(i(Me)-i(N).top-i(N).bottom)/2,margin:i(N)},null,8,["width","height","margin"])):w("",!0)],8,go),i(y).graphMode=="day"||i(y).graphMode=="today"?(l(),$(co,{key:0,width:i(_e)-i(N).left-i(N).right,height:i(Me)-i(N).top-i(N).bottom,margin:i(N),data:i(y).data},null,8,["width","height","margin","data"])):w("",!0),n("g",{id:"button",type:"button",onClick:e},[n("text",{x:i(_e)-10,y:i(Me)-10,color:"var(--color-menu)","text-anchor":"end"},p[1]||(p[1]=[n("tspan",{fill:"var(--color-menu)",class:"fas fa-lg"},x(""),-1)]),8,mo)])],8,po))],512),[[Ya,i(y).data.length>0]])]),_:1}))}}),yo=F(bo,[["__scopeId","data-v-47f3d429"]]),_o=["id"],wo=["x","width","height","fill"],ko=["x","width","height"],xo=["x","y","width","height"],So=I({__name:"EmBar",props:{item:{},xScale:{},yScale:{},margin:{},height:{},barcount:{},autarchy:{},autText:{}},setup(a){const e=a,t=g(()=>e.height-e.yScale(e.item.energy)-e.margin.top-e.margin.bottom),o=g(()=>{let r=0;return e.item.energyPv>0&&(r=e.height-e.yScale(e.item.energyPv)-e.margin.top-e.margin.bottom),r>t.value&&(r=t.value),r}),s=g(()=>{let r=0;return e.item.energyBat>0&&(r=e.height-e.yScale(e.item.energyBat)-e.margin.top-e.margin.bottom),r>t.value&&(r=t.value),r});return(r,h)=>(l(),f("g",{id:"bar-"+e.item.name,transform:"scale(1,-1) translate (0,-445)"},[n("rect",{class:"bar",x:e.xScale(r.item.name),y:"0",width:e.xScale.bandwidth(),height:t.value,fill:r.item.color},null,8,wo),n("rect",{class:"bar",x:e.xScale(r.item.name)+e.xScale.bandwidth()/6,y:"0",width:e.xScale.bandwidth()*2/3,height:o.value,fill:"var(--color-pv)","fill-opacity":"66%"},null,8,ko),n("rect",{class:"bar",x:e.xScale(r.item.name)+e.xScale.bandwidth()/6,y:o.value,width:e.xScale.bandwidth()*2/3,height:s.value,fill:"var(--color-battery)","fill-opacity":"66%"},null,8,xo)],8,_o))}}),$o={id:"emBargraph"},Mo=I({__name:"EMBarGraph",props:{plotdata:{},xScale:{},yScale:{},margin:{},height:{}},setup(a){const e=a;function t(s){if(s.name=="PV"){const r=y.graphMode=="live"||y.graphMode=="day"?q:L.items,p=(y.graphMode=="live"||y.graphMode=="day"?H:L.items).evuOut.energy,u=r.pv.energy;return Math.round((u-p)/u*100)}else if(s.name=="Netz"){const r=y.graphMode=="live"||y.graphMode=="day"?q:L.items,h=y.graphMode=="live"||y.graphMode=="day"?H:L.items,p=h.evuOut.energy,u=r.evuIn.energy,d=r.pv.energy,c=r.batOut.energy,k=h.batIn.energy;return Math.round((d+c-p-k)/(d+c+u-p-k)*100)}else return s.pvPercentage}function o(s){return s.name=="PV"?"Eigen":"Aut"}return(s,r)=>(l(),f("g",$o,[(l(!0),f(j,null,Z(e.plotdata,(h,p)=>(l(),f("g",{key:p},[v(So,{item:h,"x-scale":e.xScale,"y-scale":e.yScale,margin:e.margin,height:e.height,barcount:e.plotdata.length,"aut-text":o(h),autarchy:t(h)},null,8,["item","x-scale","y-scale","margin","height","barcount","aut-text","autarchy"])]))),128)),r[0]||(r[0]=n("animateTransform",{"attribute-name":"transform",type:"scale",from:"1 0",to:"1 1",begin:"0s",dur:"2s"},null,-1))]))}}),Po=["origin"],Co=I({__name:"EMYAxis",props:{yScale:{type:[Function,Object]},width:{},fontsize:{}},setup(a){const e=a,t=g(()=>gt(e.yScale).tickFormat(r=>s(r)).ticks(6).tickSizeInner(-e.width)),o=g(()=>{const r=le("g#emYAxis");return r.attr("class","axis").call(t.value),r.append("text").attr("y",6).attr("dy","0.71em").attr("text-anchor","end").text("energy"),r.selectAll(".tick").attr("font-size",e.fontsize),m.showGrid?r.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):r.selectAll(".tick line").attr("stroke","var(--color-bg)"),r.select(".domain").attr("stroke","var(--color-bg)"),"emYAxis.vue"});function s(r){return r>0?y.graphMode=="year"?(r/1e6).toString():(r/1e3).toString():""}return(r,h)=>(l(),f("g",{id:"emYAxis",class:"axis",origin:o.value},null,8,Po))}}),Io=["id"],Bo=["x","y","font-size"],Vo=["x","y","font-size","fill"],Lo=["x","y","font-size","fill"],To=I({__name:"EmLabel",props:{item:{},xScale:{},yScale:{},margin:{},height:{},barcount:{},autarchy:{},autText:{}},setup(a){const e=a,t=g(()=>e.autarchy?e.yScale(e.item.energy)-25:e.yScale(e.item.energy)-10),o=g(()=>{let u=16,d=e.barcount;return d<=5?u=16:d==6?u=14:d>6&&d<=8?u=13:d==9?u=11:d==10?u=10:u=9,u}),s=g(()=>{let u=12,d=e.barcount;return d<=5?u=12:d==6?u=11:d>6&&d<=8||d==9?u=8:d==10?u=7:u=6,u});function r(u,d){return d.length>s.value?d.substring(0,s.value)+".":d}function h(){return e.autarchy?e.autText+": "+e.autarchy.toLocaleString(void 0)+" %":""}function p(){return"var(--color-pv)"}return(u,d)=>(l(),f("g",{id:"barlabel-"+e.item.name},[n("text",{x:e.xScale(u.item.name)+e.xScale.bandwidth()/2,y:t.value,"font-size":o.value,"text-anchor":"middle",fill:"var(--color-menu)"},x(i(He)(u.item.energy,i(m).decimalPlaces,!1)),9,Bo),n("text",{x:e.xScale(u.item.name)+e.xScale.bandwidth()/2,y:e.yScale(u.item.energy)-10,"font-size":o.value-2,"text-anchor":"middle",fill:p()},x(h()),9,Vo),n("text",{x:e.xScale(u.item.name)+e.xScale.bandwidth()/2,y:e.height-e.margin.bottom-5,"font-size":o.value,"text-anchor":"middle",fill:u.item.color,class:R(u.item.icon.length<=2?"fas":"")},x(r(u.item.name,u.item.icon)),11,Lo)],8,Io))}}),Oo={id:"emBarLabels"},Ao=I({__name:"EMLabels",props:{plotdata:{},xScale:{},yScale:{},height:{},margin:{}},setup(a){const e=a;function t(s){if(s.name=="PV"){const r=y.graphMode=="live"||y.graphMode=="today"?q:L.items,p=(y.graphMode=="live"||y.graphMode=="today"?H:L.items).evuOut.energy,u=r.pv.energy;return Math.round((u-p)/u*100)}else if(s.name=="Netz"){const r=y.graphMode=="live"||y.graphMode=="today"?q:L.items,h=y.graphMode=="live"||y.graphMode=="today"?H:L.items,p=h.evuOut.energy,u=r.evuIn.energy,d=r.pv.energy,c=r.batOut.energy,k=h.batIn.energy;return d+c-p-k>0?Math.round((d+c-p-k)/(d+c+u-p-k)*100):0}else return s.pvPercentage}function o(s){return s.name=="PV"?"Eigen":"Aut"}return(s,r)=>(l(),f("g",Oo,[(l(!0),f(j,null,Z(e.plotdata,(h,p)=>(l(),f("g",{key:p},[v(To,{item:h,"x-scale":e.xScale,"y-scale":e.yScale,margin:e.margin,height:e.height,barcount:e.plotdata.length,"aut-text":o(h),autarchy:t(h)},null,8,["item","x-scale","y-scale","margin","height","barcount","aut-text","autarchy"])]))),128))]))}}),Eo={class:"d-flex justify-content-end"},zo={id:"energymeter",class:"p-0 m-0"},Do={viewBox:"0 0 500 500"},Wo=["transform"],Go=["x"],Uo={key:0},ga=500,Vt=500,ma=12,jo="Energie",Fo=I({__name:"EnergyMeter",setup(a){const e={top:25,bottom:30,left:25,right:0},t=g(()=>{let u=Object.values(q),d=r.value;const c=L.items;let k=[];switch(m.debug&&h(),ct.value==!0&&(ct.value=!1),y.graphMode){default:case"live":case"today":k=u.concat(d);break;case"day":case"month":case"year":Object.values(c).length==0?Ze.value=!0:(Ze.value=!1,k=[c.evuIn,c.pv,c.evuOut,c.batOut,c.charging],Object.values(O).length>1&&Object.keys(O).forEach(P=>{c["cp"+P]&&k.push(c["cp"+P])}),k.push(c.devices),te.forEach((P,A)=>{P.showInGraph&&c["sh"+A]&&k.push(c["sh"+A])}),k=k.concat([c.batIn,c.house]))}return k.filter(P=>P.energy&&P.energy>0)}),o=g(()=>wt().range([0,ga-e.left-e.right]).domain(t.value.map(u=>u.name)).padding(.4)),s=g(()=>Re().range([Vt-e.bottom-e.top,15]).domain([0,xa(t.value,u=>u.energy)])),r=g(()=>{const u=Object.values(O).length,d=[...te.values()].filter(k=>k.configured).length;let c=H;return[...[c.evuOut,c.charging].concat(u>1?Object.values(O).map(k=>k.toPowerItem()):[]),...[c.devices].concat(d>1?[...te.values()].filter(k=>k.configured&&k.showInGraph):[]).concat([H.batIn,H.house])]});function h(){console.debug(["source summary:",q]),console.debug(["usage details:",r.value]),console.debug(["historic summary:",L])}function p(){m.zoomedWidget=2,m.zoomGraph=!m.zoomGraph}return(u,d)=>(l(),$(bt,{"full-width":!0},{title:_(()=>[J(x(jo))]),buttons:_(()=>[n("div",Eo,[v(aa,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!0,onShiftLeft:i(Pt),onShiftRight:i(Xt),onShiftUp:i(Kt),onShiftDown:i(ea)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),i(De)?(l(),f("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:p},d[0]||(d[0]=[n("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)]))):w("",!0)])]),default:_(()=>[n("figure",zo,[(l(),f("svg",Do,[n("g",{transform:"translate("+e.left+","+e.top+")"},[v(Mo,{plotdata:t.value,"x-scale":o.value,"y-scale":s.value,height:Vt,margin:e},null,8,["plotdata","x-scale","y-scale"]),v(Co,{"y-scale":s.value,width:ga,fontsize:ma,config:i(m)},null,8,["y-scale","config"]),n("text",{x:-e.left,y:"-15",fill:"var(--color-axis)","font-size":ma},x(i(y).graphMode=="year"?"MWh":"kWh"),9,Go),v(Ao,{plotdata:t.value,"x-scale":o.value,"y-scale":s.value,height:Vt,margin:e,config:i(m)},null,8,["plotdata","x-scale","y-scale","config"])],8,Wo)]))]),i(Ze)?(l(),f("p",Uo,"No data")):w("",!0)]),_:1}))}}),No=F(Fo,[["__scopeId","data-v-32c82102"]]),Ho=["id"],Ro=["y","width","fill"],Jo=["y","width"],qo=["y","x","width"],Yo=I({__name:"EnergyBar",props:{id:{},item:{},yScale:{},xScale:{},itemHeight:{}},setup(a){const e=a,t=g(()=>e.xScale(e.item.energy)),o=g(()=>{let r=0;return e.item.energyPv>0&&(r=e.xScale(e.item.energyPv)),r>t.value&&(r=t.value),r}),s=g(()=>{let r=0;return e.item.energyBat>0&&(r=e.xScale(e.item.energyBat)),r>t.value&&(r=t.value),r});return(r,h)=>(l(),f("g",{id:`bar-${e.item.name}`},[n("rect",{class:"bar",y:e.yScale(e.id)+e.itemHeight/2-4,x:"0",rx:"6",ry:"6",height:"12",width:t.value,fill:r.item.color},null,8,Ro),n("rect",{class:"bar",y:e.yScale(e.id)+e.itemHeight/2+10,x:"0",rx:"3",ry:"3",height:"7",width:o.value,fill:"var(--color-pv)","fill-opacity":"100%"},null,8,Jo),n("rect",{class:"bar",y:e.yScale(e.id)+e.itemHeight/2+10,x:o.value,rx:"3",ry:"3",height:"7",width:s.value,fill:"var(--color-battery)","fill-opacity":"100%"},null,8,qo)],8,Ho))}}),Qo={id:"emBargraph"},Zo=I({__name:"BarGraph",props:{plotdata:{},yscale:{},xscale:{},itemHeight:{}},setup(a){const e=a;return(t,o)=>(l(),f("g",Qo,[(l(!0),f(j,null,Z(e.plotdata,(s,r)=>(l(),f("g",{key:r},[v(Yo,{id:r.toString(),item:s,"x-scale":e.xscale,"y-scale":e.yscale,"item-height":t.itemHeight},null,8,["id","item","x-scale","y-scale","item-height"])]))),128))]))}}),Xo=["id"],Ko=["y","x","fill"],es=["y","x"],ts=["y","x","font-size"],Lt=24,as=I({__name:"EnergyLabel",props:{id:{},item:{},yscale:{},margin:{},width:{},itemHeight:{},autarchy:{},autText:{}},setup(a){const e=a,t=g(()=>e.yscale(e.id)+e.itemHeight/3);function o(){return e.autarchy?e.autText+": "+e.autarchy.toLocaleString(void 0)+" %":""}function s(r){return r.length>14?r.slice(0,13)+"...":r}return(r,h)=>(l(),f("g",{id:"barlabel-"+e.id},[n("text",{y:t.value,x:e.margin.left,"font-size":Lt,"text-anchor":"start",fill:r.item.color,class:R(r.item.icon.length<=2?"fas":"")},x(s(e.item.icon)),11,Ko),n("text",{y:t.value,x:e.width/2+e.margin.left,"font-size":Lt,"text-anchor":"middle",fill:"var(--color-menu)"},x(i(He)(r.item.energy,i(m).decimalPlaces,!1)),9,es),n("text",{y:t.value,x:e.width-e.margin.right,"font-size":Lt-2,"text-anchor":"end",fill:"var(--color-pv)"},x(o()),9,ts)],8,Xo))}}),ns={id:"emBarLabels"},rs=I({__name:"EnergyLabels",props:{plotdata:{},yscale:{},width:{},itemHeight:{},margin:{}},setup(a){const e=a;function t(s){if(s.name=="PV"){const r=y.graphMode=="live"||y.graphMode=="today"?q:L.items,p=(y.graphMode=="live"||y.graphMode=="today"?H:L.items).evuOut.energy,u=r.pv.energy;return Math.round((u-p)/u*100)}else if(s.name=="Netz"){const r=y.graphMode=="live"||y.graphMode=="today"?q:L.items,h=y.graphMode=="live"||y.graphMode=="today"?H:L.items,p=h.evuOut.energy,u=r.evuIn.energy,d=r.pv.energy,c=r.batOut.energy,k=h.batIn.energy;return d+c-p-k>0?Math.round((d+c-p-k)/(d+c+u-p-k)*100):0}else return s.pvPercentage}function o(s){return s.name=="PV"?"Eigen":"Aut"}return(s,r)=>(l(),f("g",ns,[(l(!0),f(j,null,Z(e.plotdata,(h,p)=>(l(),f("g",{key:p},[v(as,{id:p.toString(),item:h,yscale:e.yscale,margin:e.margin,width:e.width,"item-height":s.itemHeight,"aut-text":o(h),autarchy:t(h)},null,8,["id","item","yscale","margin","width","item-height","aut-text","autarchy"])]))),128))]))}});class os{constructor(e){b(this,"id");b(this,"name","Speicher");b(this,"color","var(--color-battery)");b(this,"dailyYieldExport",0);b(this,"dailyYieldImport",0);b(this,"monthlyYieldExport",0);b(this,"monthlyYieldImport",0);b(this,"yearlyYieldExport",0);b(this,"yearlyYieldImport",0);b(this,"exported",0);b(this,"faultState",0);b(this,"faultStr","");b(this,"imported",0);b(this,"power",0);b(this,"soc",0);this.id=e}}class ss{constructor(){b(this,"dailyExport",0);b(this,"dailyImport",0);b(this,"exported",0);b(this,"imported",0);b(this,"power",0);b(this,"soc",0)}}he(new ss);const pe=Y(new Map),Oa=a=>{pe.value.set(a,new os(a)),pe.value.get(a).color=se["bat"+pe.value.size].color};function is(){pe.value=new Map}const ls={class:"d-flex justify-content-end"},cs={id:"energymeter",class:"p-0 m-0"},us=["viewBox"],ds=["transform"],hs=["x"],ps={key:0},fa=500,Tt=60,gs=12,ms="Energie",fs=I({__name:"EnergyMeter2",setup(a){const e={top:0,bottom:30,left:0,right:0},t=g(()=>o.value.length*Tt+e.top+e.bottom),o=g(()=>{let c=Object.values(q),k=h.value;const P=L.items;let A=[];switch(m.debug&&u(),ct.value==!0&&(ct.value=!1),y.graphMode){default:case"live":case"today":A=p(c).concat(k);break;case"day":case"month":case"year":Object.values(P).length==0?Ze.value=!0:(Ze.value=!1,A=[P.evuIn,P.pv,P.evuOut,P.batOut,P.charging],Object.values(O).length>1&&Object.keys(O).forEach(G=>{P["cp"+G]&&A.push(P["cp"+G])}),A.push(P.devices),te.forEach((G,E)=>{G.showInGraph&&P["sh"+E]&&A.push(P["sh"+E])}),A=A.concat([P.batIn,P.house]))}return A.filter(G=>G.energy&&G.energy>0)}),s=g(()=>Re().range([0,fa-e.left-e.right]).domain([0,xa(o.value,c=>c.energy)])),r=g(()=>wt().range([e.top,t.value-e.bottom]).domain(o.value.map((c,k)=>k.toString())).padding(.1)),h=g(()=>{const c=Object.values(O).length,k=[...te.values()].filter(A=>A.configured).length;let P=H;return[...[P.evuOut,P.charging].concat(c>1?Object.values(O).map(A=>A.toPowerItem()):[]),...[P.devices].concat(k>1?[...te.values()].filter(A=>A.configured&&A.showInGraph):[]).concat([H.batIn,H.house])]});function p(c){let k=0;return we.value.size>1&&we.value.forEach(P=>{c.splice(2+k++,0,{name:P.name,power:P.power,energy:P.energy,energyPv:0,energyBat:0,pvPercentage:0,color:P.color,icon:P.name,showInGraph:!0})}),pe.value.size>1&&pe.value.forEach(P=>{c.splice(3+k++,0,{name:P.name,power:P.power,energy:P.dailyYieldExport,energyPv:0,energyBat:0,pvPercentage:0,color:P.color,icon:P.name,showInGraph:!0})}),c}function u(){console.debug(["source summary:",q]),console.debug(["usage details:",h.value]),console.debug(["historic summary:",L])}function d(){m.zoomedWidget=2,m.zoomGraph=!m.zoomGraph}return(c,k)=>(l(),$(bt,{"full-width":!0},{title:_(()=>[J(x(ms))]),buttons:_(()=>[n("div",ls,[v(aa,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!0,onShiftLeft:i(Pt),onShiftRight:i(Xt),onShiftUp:i(Kt),onShiftDown:i(ea)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),i(De)?(l(),f("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:d},k[0]||(k[0]=[n("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)]))):w("",!0)])]),default:_(()=>[n("figure",cs,[(l(),f("svg",{viewBox:"0 0 500 "+t.value},[n("g",{transform:"translate("+e.left+","+e.top+")"},[v(Zo,{plotdata:o.value,xscale:s.value,yscale:r.value,"item-height":Tt},null,8,["plotdata","xscale","yscale"]),n("text",{x:-e.left,y:"-15",fill:"var(--color-axis)","font-size":gs},x(i(y).graphMode=="year"?"MWh":"kWh"),9,hs),v(rs,{plotdata:o.value,yscale:r.value,width:fa,"item-height":Tt,margin:e},null,8,["plotdata","yscale"])],8,ds)],8,us))]),i(Ze)?(l(),f("p",ps,"No data")):w("",!0)]),_:1}))}}),vs=F(fs,[["__scopeId","data-v-63a4748e"]]),bs={class:"d-flex flex-column align-items-center justify-content-start infoitem"},ys=I({__name:"InfoItem",props:{heading:{},small:{type:Boolean}},setup(a){const e=a,t=g(()=>e.small?{"font-size":"var(--font-small)"}:{"font-size":"var(--font-small)"}),o=g(()=>e.small?{"font-size":"var(--font-small)"}:{"font-size":"var(--font-normal)"}),s=g(()=>e.small?"mt-0":"mt-1");return(r,h)=>(l(),f("span",bs,[n("span",{class:R(["d-flex heading",s.value]),style:K(t.value)},x(e.heading),7),n("span",{class:"d-flex my-0 me-0 align-items-center content",style:K(o.value)},[ue(r.$slots,"default",{},void 0,!0)],4)]))}}),ee=F(ys,[["__scopeId","data-v-f6af00e8"]]),_s={class:"d-flex justify-content-between align-items-center titlerow"},ws={class:"buttonarea d-flex float-right justify-content-end align-items-center"},ks={class:"contentrow grid-col-12"},xs=I({__name:"WbSubwidget",props:{titlecolor:{},fullwidth:{type:Boolean},small:{type:Boolean}},setup(a){const e=a,t=g(()=>{let s={"font-weight":"bold",color:"var(--color-fg)","font-size":"var(--font-normal)"};return e.titlecolor&&(s.color=e.titlecolor),e.small&&(s["font-size"]="var(--font-verysmall)"),s}),o=g(()=>e.fullwidth?"grid-col-12":"grid-col-4");return(s,r)=>(l(),f("div",{class:R(["wb-subwidget-noborder px-0 pe-1 my-0 pb-2",o.value])},[n("div",_s,[n("div",{class:"d-flex widgetname p-0 m-0",style:K(t.value)},[ue(s.$slots,"title",{},void 0,!0)],4),n("div",ws,[ue(s.$slots,"buttons",{},void 0,!0)])]),n("div",ks,[ue(s.$slots,"default",{},void 0,!0)])],2))}}),at=F(xs,[["__scopeId","data-v-2aa2b95f"]]),Ss={class:"grid-col-12 mt-0 mb-0 px-0 py-0 configitem"},$s={class:"titlecolumn m-0 p-0 d-flex justify-content-between align-items-baseline"},Ms={class:"d-flex justify-content-end align-items-baseline"},Ps={class:"d-flex align-items-center"},Cs={class:"d-flex"},Is={class:"d-flex justify-content-end m-0 p-0"},Bs={class:"ms-1 mb-2 p-0 pt-2 d-flex justify-content-stretch align-items-center contentrow"},Vs=I({__name:"ConfigItem",props:{title:{},infotext:{},icon:{},fullwidth:{type:Boolean}},setup(a){const e=a,t=Y(!1);function o(){t.value=!t.value}const s=g(()=>{let r={color:"var(--color-charging)"};return t.value&&(r.color="var(--color-battery)"),r});return(r,h)=>(l(),$(at,{fullwidth:!!r.fullwidth},{default:_(()=>[n("div",Ss,[n("div",$s,[n("span",Ms,[n("span",{class:"d-flex align-items-baseline m-0 p-0",onClick:o},[e.icon?(l(),f("i",{key:0,class:R(["fa-solid fa-sm m-0 p-0 me-2 item-icon",e.icon])},null,2)):w("",!0),J(" "+x(r.title),1)])]),n("span",Ps,[n("span",Cs,[e.infotext?(l(),f("i",{key:0,class:"fa-solid fa-sm fa-circle-question ms-4 me-2",style:K(s.value),onClick:o},null,4)):w("",!0)]),n("span",Is,[ue(r.$slots,"inline-item",{},void 0,!0)])])]),t.value?(l(),f("p",{key:0,class:"infotext shadow m-0 ps-2 mb-1 p-1",onClick:o},[h[0]||(h[0]=n("i",{class:"me-1 fa-solid fa-sm fa-circle-info"},null,-1)),J(" "+x(r.infotext),1)])):w("",!0),n("div",Bs,[ue(r.$slots,"default",{},void 0,!0)])])]),_:3},8,["fullwidth"]))}}),U=F(Vs,[["__scopeId","data-v-25ab3fbb"]]),Ls={class:"d-flex flex-column rangeinput"},Ts={class:"d-flex flex-fill justify-content-between align-items-center"},Os={class:"d-flex flex-fill flex-column justify-content-center m-0 p-0"},As={key:0,id:"rangeIndicator",class:"rangeIndicator"},Es={viewBox:"0 0 100 2"},zs=["width"],Ds=["x","width"],Ws=["x","width"],Gs=["id","min","max","step"],Us={class:"d-flex justify-content-between align-items-center"},js={class:"minlabel ps-4"},Fs={class:"valuelabel"},Ns={class:"maxlabel pe-4"},Hs=I({__name:"RangeInput",props:{id:{},min:{},max:{},step:{},unit:{},decimals:{},showSubrange:{type:Boolean},subrangeMin:{},subrangeMax:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=t.decimals??0,s=e,r=g({get(){return Math.round(t.modelValue*Math.pow(10,o))/Math.pow(10,o)},set(k){s("update:modelValue",k)}});function h(){r.value>t.min&&(r.value=Math.round((r.value-t.step)*Math.pow(10,o))/Math.pow(10,o))}function p(){r.valueRe().domain([t.min,t.max]).range([0,100])),d=g(()=>u.value(t.subrangeMin?t.subrangeMin:0)),c=g(()=>t.subrangeMin&&t.subrangeMax?u.value(t.subrangeMax)-u.value(t.subrangeMin):0);return(k,P)=>(l(),f("span",Ls,[n("span",Ts,[n("span",{type:"button",class:"minusButton",onClick:h},P[1]||(P[1]=[n("i",{class:"fa fa-xl fa-minus-square me-2"},null,-1)])),n("div",Os,[t.showSubrange?(l(),f("figure",As,[(l(),f("svg",Es,[n("g",null,[n("rect",{class:"below",x:0,y:"0",width:d.value,height:"2",rx:"1",ry:"1",fill:"var(--color-evu)"},null,8,zs),n("rect",{class:"bar",x:d.value,y:"0",width:c.value,height:"2",rx:"1",ry:"1",fill:"var(--color-charging)"},null,8,Ds),n("rect",{class:"above",x:d.value+c.value,y:"0",width:d.value,height:"2",rx:"1",ry:"1",fill:"var(--color-pv)"},null,8,Ws)])]))])):w("",!0),mt(n("input",{id:k.id,"onUpdate:modelValue":P[0]||(P[0]=A=>r.value=A),type:"range",class:"form-range flex-fill",min:k.min,max:k.max,step:k.step},null,8,Gs),[[Za,r.value,void 0,{number:!0}]])]),n("span",{type:"button",class:"plusButton",onClick:p},P[2]||(P[2]=[n("i",{class:"fa fa-xl fa-plus-square ms-2"},null,-1)]))]),n("span",Us,[n("span",js,x(k.min),1),n("span",Fs,x(r.value)+" "+x(k.unit),1),n("span",Ns,x(k.max),1)])]))}}),ye=F(Hs,[["__scopeId","data-v-af945965"]]),Rs=["id","value"],Js=I({__name:"RadioInput2",props:{options:{},modelValue:{},columns:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=e,s=g({get(){return t.modelValue},set(p){o("update:modelValue",p)}});function r(p){const u=t.options[p][2]||"var(--color-fg)",d="var(--color-bg)";return t.options[p][1]==s.value?{color:d,background:t.options[p][2]||"var(--color-menu)"}:{color:u,background:d}}function h(p){let u=p.target;for(;u&&!u.value&&u.parentElement;)u=u.parentElement;u.value&&(typeof t.options[0][1]=="number"?s.value=Number(u.value):s.value=u.value)}return(p,u)=>(l(),f("div",{class:"buttongrid",style:K({"grid-template-columns":"repeat("+(t.columns||3)+", 1fr)"})},[(l(!0),f(j,null,Z(t.options,(d,c)=>(l(),f("button",{id:"radio-"+d[1],key:c,class:R(["btn btn-outline-secondary radiobutton me-0 mb-0 px-2",d[1]==s.value?"active":""]),value:d[1],style:K(r(c)),onClick:h},[n("span",{style:K(r(c))},[d[3]?(l(),f("i",{key:0,class:R(["fa-solid",d[3]])},null,2)):w("",!0),J(" "+x(d[0]),1)],4)],14,Rs))),128))],4))}}),ke=F(Js,[["__scopeId","data-v-88c9ea7a"]]),qs={class:"mt-2"},Ys={key:0},Qs=I({__name:"ConfigInstant",props:{chargepoint:{}},setup(a){const t=Y(a.chargepoint),o=g({get(){return t.value.instantMaxEnergy/1e3},set(s){t.value.instantMaxEnergy=s*1e3}});return(s,r)=>(l(),f("div",qs,[r[5]||(r[5]=n("p",{class:"heading ms-1"},"Sofortladen:",-1)),v(U,{title:"Stromstärke",icon:"fa-bolt",fullwidth:!0},{default:_(()=>[v(ye,{id:"targetCurrent",modelValue:t.value.instantTargetCurrent,"onUpdate:modelValue":r[0]||(r[0]=h=>t.value.instantTargetCurrent=h),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),_:1}),v(U,{title:"Anzahl Phasen",icon:"fa-plug",fullwidth:!0},{default:_(()=>[v(ke,{modelValue:t.value.instantTargetPhases,"onUpdate:modelValue":r[1]||(r[1]=h=>t.value.instantTargetPhases=h),options:[["1",1],["Maximum",3],["Auto",0]]},null,8,["modelValue"])]),_:1}),t.value.instantChargeLimitMode!="none"?(l(),f("hr",Ys)):w("",!0),v(U,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:_(()=>[v(ke,{modelValue:t.value.instantChargeLimitMode,"onUpdate:modelValue":r[2]||(r[2]=h=>t.value.instantChargeLimitMode=h),options:i(qt).map(h=>[h.name,h.id])},null,8,["modelValue","options"])]),_:1}),t.value.instantChargeLimitMode=="soc"?(l(),$(U,{key:1,title:"Maximaler Ladestand",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[v(ye,{id:"maxSoc",modelValue:t.value.instantTargetSoc,"onUpdate:modelValue":r[3]||(r[3]=h=>t.value.instantTargetSoc=h),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):w("",!0),t.value.instantChargeLimitMode=="amount"?(l(),$(U,{key:2,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[v(ye,{id:"maxEnergy",modelValue:o.value,"onUpdate:modelValue":r[4]||(r[4]=h=>o.value=h),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):w("",!0)]))}}),Zs=F(Qs,[["__scopeId","data-v-de6b86dd"]]),Xs={class:"form-check form-switch"},ie=I({__name:"SwitchInput",props:{modelValue:{type:Boolean},onColor:{},offColor:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=e,s=g({get(){return t.modelValue},set(h){o("update:modelValue",h)}}),r=g(()=>s.value?{"background-color":"green"}:{"background-color":"white"});return(h,p)=>(l(),f("div",Xs,[mt(n("input",{"onUpdate:modelValue":p[0]||(p[0]=u=>s.value=u),class:"form-check-input",type:"checkbox",role:"switch",style:K(r.value)},null,4),[[Sa,s.value]])]))}}),Ks={class:"pt-2 d-flex flex-column"},ei={class:"subconfigstack grid-col-12"},ti={key:0,class:"subconfig subgrid"},ai={key:0,class:"subconfigstack"},ni={class:"subconfig subgrid"},ri={class:"subconfig subgrid"},oi={class:"subconfig subgrid"},si=I({__name:"ConfigPv",props:{chargepoint:{}},setup(a){const t=Y(a.chargepoint),o=g({get(){return t.value.pvMaxEnergy/1e3},set(h){t.value.pvMaxEnergy=h*1e3}}),s=g({get(){return t.value.pvMinCurrent>5},set(h){h?t.value.pvMinCurrent=6:t.value.pvMinCurrent=0}}),r=g({get(){return t.value.pvMinSoc>0},set(h){h?t.value.pvMinSoc=50:t.value.pvMinSoc=0}});return(h,p)=>(l(),f("div",Ks,[p[16]||(p[16]=n("div",{class:"heading ms-1"},"PV-Laden:",-1)),v(U,{title:"Minimaler Ladestrom",icon:"fa-bolt",infotext:i(Je).minpv,fullwidth:!0},{"inline-item":_(()=>[v(ie,{modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=u=>s.value=u)},null,8,["modelValue"])]),default:_(()=>[n("div",ei,[s.value?(l(),f("div",ti,[p[11]||(p[11]=n("span",{class:"subconfigtitle grid-col-1"},"Stärke:",-1)),v(ye,{id:"minCurrent",modelValue:t.value.pvMinCurrent,"onUpdate:modelValue":p[1]||(p[1]=u=>t.value.pvMinCurrent=u),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])])):w("",!0)])]),_:1},8,["infotext"]),v(U,{title:"Anzahl Phasen",icon:"fa-plug",fullwidth:!0},{default:_(()=>[v(ke,{modelValue:t.value.pvTargetPhases,"onUpdate:modelValue":p[2]||(p[2]=u=>t.value.pvTargetPhases=u),options:[["1",1],["Maximum",3],["Auto",0]]},null,8,["modelValue"])]),_:1}),v(U,{title:"Mindest-Ladestand",icon:"fa-battery-half",infotext:i(Je).minsoc,fullwidth:!0},{"inline-item":_(()=>[v(ie,{modelValue:r.value,"onUpdate:modelValue":p[3]||(p[3]=u=>r.value=u),class:"grid-col-3"},null,8,["modelValue"])]),default:_(()=>[r.value?(l(),f("div",ai,[n("div",ni,[p[12]||(p[12]=n("span",{class:"subconfigtitle grid-col-1"},"SoC:",-1)),v(ye,{id:"minSoc",modelValue:t.value.pvMinSoc,"onUpdate:modelValue":p[4]||(p[4]=u=>t.value.pvMinSoc=u),class:"grid-col-2",min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),n("div",ri,[p[13]||(p[13]=n("span",{class:"subconfigtitle grid-col-1"},"Ladestrom:",-1)),v(ye,{id:"minSocCurrent",modelValue:t.value.pvMinSocCurrent,"onUpdate:modelValue":p[5]||(p[5]=u=>t.value.pvMinSocCurrent=u),class:"grid-col-2",min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),n("div",oi,[p[14]||(p[14]=n("span",{class:"subconfigtitle grid-col-1"},"Phasen:",-1)),v(ke,{modelValue:t.value.pvMinSocPhases,"onUpdate:modelValue":p[6]||(p[6]=u=>t.value.pvMinSocPhases=u),class:"grid-col-1",columns:2,options:[["1",1],["Maximum",3]]},null,8,["modelValue"])]),p[15]||(p[15]=n("hr",{class:"grid-col-3"},null,-1))])):w("",!0)]),_:1},8,["infotext"]),v(U,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:_(()=>[v(ke,{modelValue:t.value.pvChargeLimitMode,"onUpdate:modelValue":p[7]||(p[7]=u=>t.value.pvChargeLimitMode=u),options:i(qt).map(u=>[u.name,u.id])},null,8,["modelValue","options"])]),_:1}),t.value.pvChargeLimitMode=="soc"?(l(),$(U,{key:0,title:"Maximaler Ladestand",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[v(ye,{id:"maxSoc",modelValue:t.value.pvTargetSoc,"onUpdate:modelValue":p[8]||(p[8]=u=>t.value.pvTargetSoc=u),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):w("",!0),t.value.pvChargeLimitMode=="amount"?(l(),$(U,{key:1,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[v(ye,{id:"maxEnergy",modelValue:o.value,"onUpdate:modelValue":p[9]||(p[9]=u=>o.value=u),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):w("",!0),v(U,{title:"Einspeisegrenze beachten",icon:"fa-hand",fullwidth:!0},{"inline-item":_(()=>[v(ie,{modelValue:t.value.pvFeedInLimit,"onUpdate:modelValue":p[10]||(p[10]=u=>t.value.pvFeedInLimit=u)},null,8,["modelValue"])]),_:1})]))}}),ii=F(si,[["__scopeId","data-v-d7ee4d2a"]]),li={class:"plandetails d-flex flex-cloumn"},ci={class:"heading"},ui={key:0},di=I({__name:"ScheduleDetails",props:{plan:{}},emits:["close"],setup(a){const e=a,t=g(()=>e.plan.limit.selected=="soc"?`Lade bis ${e.plan.time} auf ${e.plan.limit.soc_scheduled}% (maximal ${e.plan.limit.soc_limit}% mit PV)`:e.plan.limit.selected=="amount"?`Energiemenge: ${He(e.plan.limit.amount)}`:"Keine Begrenzung"),o=g(()=>{let r="Wiederholung ";switch(e.plan.frequency.selected){case"daily":r+="täglich";break;case"once":r+=`einmal (${e.plan.frequency.once})`;break;case"weekly":r+="wöchentlich "+s.value;break;default:r+="unbekannt"}return r}),s=g(()=>{const r=["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"];let h="(";return e.plan.frequency.weekly.forEach((p,u)=>{p&&(h+=`${r[u]} `)}),h=h.trim(),h+=")",h});return(r,h)=>(l(),f("div",li,[h[1]||(h[1]=n("hr",null,null,-1)),n("span",ci,"Details für "+x(e.plan.name)+":",1),n("ul",null,[n("li",null,x(t.value),1),n("li",null,x(o.value),1),e.plan.et_active?(l(),f("li",ui,"Preisbasiert laden")):w("",!0)]),n("button",{class:"btn btn-outline-secondary btn-sm",onClick:h[0]||(h[0]=p=>r.$emit("close"))}," Ok ")]))}}),hi=F(di,[["__scopeId","data-v-2f5cb5c1"]]),pi={key:0,class:"table table-borderless"},gi={class:"tablecell left"},mi=["onClick"],fi={class:"tablecell left"},vi={class:"tablecell"},bi={class:"tablecell"},yi={class:"tablecell"},_i={class:"tablecell right"},wi={key:1,class:"ms-1"},ki={key:2},xi=I({__name:"ConfigScheduled",props:{chargePoint:{}},setup(a){const e=Y(!1),t={daily:"Täglich",once:"Einmal",weekly:"Woche"},o=a,s=g(()=>{var u,d;return((d=(u=o.chargePoint)==null?void 0:u.chargeTemplate)==null?void 0:d.chargemode.scheduled_charging.plans)??[]});function r(u){return s.value[u].time}function h(u){return{color:s.value[u].active?"var(--color-switchGreen)":"var(--color-switchRed)"}}function p(u){o.chargePoint.chargeTemplate.chargemode.scheduled_charging.plans[u].active=!s.value[u].active,oe(o.chargePoint.id)}return(u,d)=>(l(),f(j,null,[d[3]||(d[3]=n("p",{class:"heading ms-1 pt-2"},"Pläne für Zielladen:",-1)),s.value.length>0?(l(),f("table",pi,[d[2]||(d[2]=n("thead",null,[n("tr",null,[n("th",{class:"tableheader left"}),n("th",{class:"tableheader left"},"Plan"),n("th",{class:"tableheader"},"Zeit"),n("th",{class:"tableheader"},"Ziel"),n("th",{class:"tableheader"},"Wiederh."),n("th",{class:"tableheader right"})])],-1)),n("tbody",null,[(l(!0),f(j,null,Z(s.value,(c,k)=>{var P;return l(),f("tr",{key:k,class:R(c.active?"text-bold":"text-normal")},[n("td",gi,[((P=o.chargePoint.chargeTemplate)==null?void 0:P.id)!=null?(l(),f("a",{key:0,onClick:A=>p(k)},[n("span",{class:R([c.active?"fa-toggle-on":"fa-toggle-off","fa"]),style:K(h(k)),type:"button"},null,6)],8,mi)):w("",!0)]),n("td",fi,x(c.name),1),n("td",vi,x(r(k)),1),n("td",bi,x(c.limit.selected=="soc"?c.limit.soc_scheduled+"%":i(He)(c.limit.amount,0)),1),n("td",yi,x(t[c.frequency.selected]),1),n("td",_i,[n("i",{class:"me-1 fa-solid fa-sm fa-circle-info",onClick:d[0]||(d[0]=A=>e.value=!e.value)})])],2)}),128))])])):(l(),f("p",wi," Pläne für das Zielladen können in den Einstellungen des Ladeprofils angelegt werden . ")),e.value?(l(),f("div",ki,[(l(!0),f(j,null,Z(s.value,c=>(l(),$(hi,{key:c.id,plan:c,onClose:d[1]||(d[1]=k=>e.value=!1)},null,8,["plan"]))),128))])):w("",!0)],64))}}),Si=F(xi,[["__scopeId","data-v-08df44d8"]]),$i={class:"plandetails d-flex flex-cloumn"},Mi={class:"heading"},Pi=I({__name:"TimePlanDetails",props:{plan:{}},emits:["close"],setup(a){const e=a,t=g(()=>`Lade von ${e.plan.time[0]} bis ${e.plan.time[1]} mit ${e.plan.current}A`),o=g(()=>e.plan.limit.selected=="soc"?`Lade bis maximal ${e.plan.limit.soc}%`:e.plan.limit.selected=="amount"?`Lade maximal ${He(e.plan.limit.amount)}`:"Keine Begrenzung"),s=g(()=>{let h="Wiederholung ";switch(e.plan.frequency.selected){case"daily":h+="täglich";break;case"once":h+=`einmal (${e.plan.frequency.once})`;break;case"weekly":h+="wöchentlich "+r.value;break;default:h+="unbekannt"}return h}),r=g(()=>{const h=["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"];let p="(";return e.plan.frequency.weekly.forEach((u,d)=>{u&&(p+=`${h[d]} `)}),p=p.trim(),p+=")",p});return(h,p)=>(l(),f("div",$i,[p[1]||(p[1]=n("hr",null,null,-1)),n("span",Mi,"Details für "+x(e.plan.name)+":",1),n("ul",null,[n("li",null,x(t.value),1),n("li",null,x(o.value),1),n("li",null,x(s.value),1)]),n("button",{class:"btn btn-outline-secondary btn-sm",onClick:p[0]||(p[0]=u=>h.$emit("close"))}," Ok ")]))}}),Ci=F(Pi,[["__scopeId","data-v-eaa44cb2"]]),Ii={class:"table table-borderless"},Bi={class:"tablecell left"},Vi=["onClick"],Li={class:"tablecell"},Ti={class:"tablecell"},Oi={class:"tablecell"},Ai={class:"tablecell"},Ei={class:"tablecell right"},zi={key:0},Di=I({__name:"ConfigTimed",props:{chargePoint:{}},setup(a){const e=a,t=Y(!1),o=e.chargePoint,s={daily:"Täglich",once:"Einmal",weekly:"Woche"},r=g(()=>{var u,d;return((d=(u=e.chargePoint)==null?void 0:u.chargeTemplate)==null?void 0:d.time_charging.plans)??[]});function h(u){return{color:r.value[u].active?"var(--color-switchGreen)":"var(--color-switchRed)"}}function p(u){e.chargePoint.chargeTemplate.time_charging.plans[u].active=!r.value[u].active,oe(e.chargePoint.id)}return(u,d)=>(l(),f(j,null,[v(U,{title:"Zeitplan aktiv",icon:"fa-clock",fullwidth:!0},{"inline-item":_(()=>[v(ie,{modelValue:i(o).timedCharging,"onUpdate:modelValue":d[0]||(d[0]=c=>i(o).timedCharging=c)},null,8,["modelValue"])]),_:1}),d[4]||(d[4]=n("p",{class:"heading ms-1 pt-2"},"Zeitpläne:",-1)),n("table",Ii,[d[3]||(d[3]=n("thead",null,[n("tr",null,[n("th",{class:"tableheader left"}),n("th",{class:"tableheader"},"Von"),n("th",{class:"tableheader"},"Bis"),n("th",{class:"tableheader"},"Strom"),n("th",{class:"tableheader"},"Wiederh."),n("th",{class:"tableheader right"})])],-1)),n("tbody",null,[(l(!0),f(j,null,Z(r.value,(c,k)=>{var P;return l(),f("tr",{key:k,class:R(c.active?"text-bold":"text-normal")},[n("td",Bi,[((P=e.chargePoint.chargeTemplate)==null?void 0:P.id)!=null?(l(),f("span",{key:0,onClick:A=>p(k)},[n("span",{class:R([c.active?"fa-toggle-on":"fa-toggle-off","fa"]),style:K(h(k)),type:"button"},null,6)],8,Vi)):w("",!0)]),n("td",Li,x(c.time[0]),1),n("td",Ti,x(c.time[1]),1),n("td",Oi,x(c.current)+" A",1),n("td",Ai,x(s[c.frequency.selected]),1),n("td",Ei,[n("i",{class:"me-1 fa-solid fa-sm fa-circle-info",onClick:d[1]||(d[1]=A=>t.value=!t.value)})])],2)}),128))])]),t.value?(l(),f("div",zi,[(l(!0),f(j,null,Z(r.value,c=>(l(),$(Ci,{key:c.id,plan:c,onClose:d[2]||(d[2]=k=>t.value=!1)},null,8,["plan"]))),128))])):w("",!0)],64))}}),Wi=F(Di,[["__scopeId","data-v-543e8ca2"]]),Gi={class:"providername ms-1"},Ui={class:"container"},ji={id:"pricechart",class:"p-0 m-0"},Fi={viewBox:"0 0 400 300"},Ni=["id","origin","transform"],Hi={key:0,class:"p-3"},Ri={key:1,class:"d-flex justify-content-end"},Ji=["disabled"],nt=400,va=250,ba=12,qi=I({__name:"PriceChart",props:{chargepoint:{},globalview:{type:Boolean}},setup(a){const e=a;let t=e.chargepoint?Y(e.chargepoint.etMaxPrice):Y(0);const o=Y(!1),s=Y(e.chargepoint),r=g({get(){return t.value},set(W){t.value=W,o.value=!0}});function h(){s.value&&(O[s.value.id].etMaxPrice=r.value),o.value=!1}const p=Y(!1),u={top:0,bottom:15,left:20,right:5},d=g(()=>{let W=[];return re.etPriceList.size>0&&re.etPriceList.forEach((X,Oe)=>{W.push([Oe,X])}),W}),c=g(()=>d.value.length>1?(nt-u.left-u.right)/d.value.length-1:0),k=g(()=>o.value?{background:"var(--color-charging)"}:{background:"var(--color-menu)"}),P=g(()=>{let W=Le(d.value,X=>X[0]);return W[1]&&(W[1]=new Date(W[1]),W[1].setTime(W[1].getTime()+36e5)),tt().range([u.left,nt-u.right]).domain(W)}),A=g(()=>{let W=[0,0];return d.value.length>0?(W=Le(d.value,X=>X[1]),W[0]=Math.floor(W[0]-1),W[1]=Math.floor(W[1]+1)):W=[0,0],W}),G=g(()=>Re().range([va-u.bottom,0]).domain(A.value)),E=g(()=>{const W=Ne(),X=[[u.left,G.value(r.value)],[nt-u.right,G.value(r.value)]];return W(X)}),T=g(()=>{const W=Ne(),X=[[u.left,G.value(m.lowerPriceBound)],[nt-u.right,G.value(m.lowerPriceBound)]];return W(X)}),M=g(()=>{const W=Ne(),X=[[u.left,G.value(m.upperPriceBound)],[nt-u.right,G.value(m.upperPriceBound)]];return W(X)}),V=g(()=>{const W=Ne(),X=[[u.left,G.value(0)],[nt-u.right,G.value(0)]];return W(X)}),S=g(()=>ht(P.value).ticks(6).tickSize(5).tickFormat(it("%H:%M"))),C=g(()=>gt(G.value).ticks(A.value[1]-A.value[0]).tickSizeInner(-375).tickFormat(W=>W%5!=0?"":W.toString())),D=g(()=>{p.value==!0;const W=le("g#"+z.value);W.selectAll("*").remove(),W.selectAll("bar").data(d.value).enter().append("g").append("rect").attr("class","bar").attr("x",Ue=>P.value(Ue[0])).attr("y",Ue=>G.value(Ue[1])).attr("width",c.value).attr("height",Ue=>G.value(A.value[0])-G.value(Ue[1])).attr("fill",Ue=>Ue[1]<=r.value?"var(--color-charging)":"var(--color-axis)");const Oe=W.append("g").attr("class","axis").call(S.value);Oe.attr("transform","translate(0,"+(va-u.bottom)+")"),Oe.selectAll(".tick").attr("font-size",ba).attr("color","var(--color-bg)"),Oe.selectAll(".tick line").attr("stroke","var(--color-fg)").attr("stroke-width","0.5"),Oe.select(".domain").attr("stroke","var(--color-bg");const yt=W.append("g").attr("class","axis").call(C.value);return yt.attr("transform","translate("+u.left+",0)"),yt.selectAll(".tick").attr("font-size",ba).attr("color","var(--color-bg)"),yt.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",Ue=>Ue%5==0?"2":"0.5"),yt.select(".domain").attr("stroke","var(--color-bg)"),A.value[0]<0&&W.append("path").attr("d",V.value).attr("stroke","var(--color-fg)"),W.append("path").attr("d",T.value).attr("stroke","green"),W.append("path").attr("d",M.value).attr("stroke","red"),W.append("path").attr("d",E.value).attr("stroke","yellow"),"PriceChart.vue"}),z=g(()=>e.chargepoint?"priceChartCanvas"+e.chargepoint.id:"priceChartCanvasGlobal"),B=g(()=>{let W=[];return re.etPriceList.forEach(X=>{W.push(X)}),W.sort((X,Oe)=>X-Oe)});function ne(){let W=B.value[0];for(let X of B.value){if(X>=r.value)break;W=X}r.value=W}function Se(){let W=B.value[0];for(let X of B.value)if(X>r.value){W=X;break}else W=X;r.value=W}return Te(()=>{p.value=!p.value}),(W,X)=>(l(),f(j,null,[n("p",Gi,"Anbieter: "+x(i(re).etProvider),1),X[3]||(X[3]=n("hr",null,null,-1)),n("div",Ui,[n("figure",ji,[(l(),f("svg",Fi,[n("g",{id:z.value,origin:D.value,transform:"translate("+u.top+","+u.right+")"},null,8,Ni)]))])]),W.chargepoint!=null?(l(),f("div",Hi,[v(ye,{id:"pricechart_local",modelValue:r.value,"onUpdate:modelValue":X[0]||(X[0]=Oe=>r.value=Oe),min:Math.floor(B.value[0]-1),max:Math.ceil(B.value[B.value.length-1]+1),step:.1,decimals:2,"show-subrange":!0,"subrange-min":B.value[0],"subrange-max":B.value[B.value.length-1],unit:"ct"},null,8,["modelValue","min","max","subrange-min","subrange-max"])])):w("",!0),n("div",{class:"d-flex justify-content-between px-3 pb-2 pt-0 mt-0"},[n("button",{type:"button",class:"btn btn-sm jumpbutton",onClick:ne},X[1]||(X[1]=[n("i",{class:"fa fa-sm fa-arrow-left"},null,-1)])),n("button",{type:"button",class:"btn btn-sm jumpbutton",onClick:Se},X[2]||(X[2]=[n("i",{class:"fa fa-sm fa-arrow-right"},null,-1)]))]),W.chargepoint!=null?(l(),f("div",Ri,[n("span",{class:"me-3 pt-0",onClick:h},[n("button",{type:"button",class:"btn btn-secondary confirmButton",style:K(k.value),disabled:!o.value}," Bestätigen ",12,Ji)])])):w("",!0)],64))}}),Aa=F(qi,[["__scopeId","data-v-28b81885"]]),Yi={class:"pt-2 d-flex flex-column"},Qi={class:"subconfigstack grid-col-12"},Zi={class:"subconfig subgrid"},Xi=I({__name:"ConfigEco",props:{chargepoint:{}},setup(a){const t=Y(a.chargepoint),o=g({get(){return t.value.ecoMaxEnergy/1e3},set(s){t.value.ecoMaxEnergy=s*1e3}});return(s,r)=>(l(),f("div",Yi,[r[6]||(r[6]=n("div",{class:"heading ms-1"},"Eco-Laden:",-1)),i(re).active?(l(),$(Aa,{key:0,chargepoint:t.value},null,8,["chargepoint"])):w("",!0),i(re).active?(l(),$(U,{key:1,title:"Minimaler Ladestrom unter der Preisgrenze:",icon:"fa-bolt",fullwidth:!0},{default:_(()=>[n("div",Qi,[n("div",Zi,[r[5]||(r[5]=n("span",{class:"subconfigtitle grid-col-1"},"Stärke:",-1)),v(ye,{id:"minCurrent",modelValue:t.value.ecoMinCurrent,"onUpdate:modelValue":r[0]||(r[0]=h=>t.value.ecoMinCurrent=h),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])])])]),_:1})):w("",!0),v(U,{title:"Anzahl Phasen",icon:"fa-plug",fullwidth:!0},{default:_(()=>[v(ke,{modelValue:t.value.ecoTargetPhases,"onUpdate:modelValue":r[1]||(r[1]=h=>t.value.ecoTargetPhases=h),options:[["1",1],["Maximum",3],["Auto",0]]},null,8,["modelValue"])]),_:1}),v(U,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:_(()=>[v(ke,{modelValue:t.value.ecoChargeLimitMode,"onUpdate:modelValue":r[2]||(r[2]=h=>t.value.ecoChargeLimitMode=h),options:i(qt).map(h=>[h.name,h.id])},null,8,["modelValue","options"])]),_:1}),t.value.ecoChargeLimitMode=="soc"?(l(),$(U,{key:2,title:"Maximaler Ladestand",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[v(ye,{id:"maxSoc",modelValue:t.value.ecoTargetSoc,"onUpdate:modelValue":r[3]||(r[3]=h=>t.value.ecoTargetSoc=h),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):w("",!0),t.value.ecoChargeLimitMode=="amount"?(l(),$(U,{key:3,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[v(ye,{id:"maxEnergy",modelValue:o.value,"onUpdate:modelValue":r[4]||(r[4]=h=>o.value=h),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):w("",!0)]))}}),Ki=F(Xi,[["__scopeId","data-v-106a9fca"]]),el={class:"settingsheader mt-2 ms-1"},tl=I({__name:"ConfigGeneral",props:{chargepoint:{}},emits:["closeConfig"],setup(a){const t=a.chargepoint;return(o,s)=>(l(),f(j,null,[n("p",el," Ladeeinstellungen für "+x(i(t).vehicleName)+": ",1),v(U,{title:"Lademodus",icon:"fa-charging-station",infotext:i(Je).chargemode,fullwidth:!0},{default:_(()=>[v(ke,{modelValue:i(t).chargeMode,"onUpdate:modelValue":s[0]||(s[0]=r=>i(t).chargeMode=r),columns:3,options:Object.keys(i(ve)).map(r=>[i(ve)[r].name,r,i(ve)[r].color,i(ve)[r].icon])},null,8,["modelValue","options"])]),_:1},8,["infotext"]),Object.values(i(Q)).filter(r=>r.visible).length>1?(l(),$(U,{key:0,title:"Fahrzeug wechseln",icon:"fa-car",infotext:i(Je).vehicle,fullwidth:!0},{default:_(()=>[v(ke,{modelValue:i(t).connectedVehicle,"onUpdate:modelValue":s[1]||(s[1]=r=>i(t).connectedVehicle=r),modelModifiers:{number:!0},options:Object.values(i(Q)).filter(r=>r.visible).map(r=>[r.name,r.id])},null,8,["modelValue","options"])]),_:1},8,["infotext"])):w("",!0),v(U,{title:"Sperren",icon:"fa-lock",infotext:i(Je).locked,fullwidth:!0},{"inline-item":_(()=>[v(ie,{modelValue:i(t).isLocked,"onUpdate:modelValue":s[2]||(s[2]=r=>i(t).isLocked=r)},null,8,["modelValue"])]),_:1},8,["infotext"]),v(U,{title:"Priorität",icon:"fa-star",infotext:i(Je).priority,fullwidth:!0},{"inline-item":_(()=>[v(ie,{modelValue:i(t).hasPriority,"onUpdate:modelValue":s[3]||(s[3]=r=>i(t).hasPriority=r)},null,8,["modelValue"])]),_:1},8,["infotext"]),v(U,{title:"Zeitplan",icon:"fa-clock",infotext:i(Je).timeplan,fullwidth:!0},{"inline-item":_(()=>[v(ie,{modelValue:i(t).timedCharging,"onUpdate:modelValue":s[4]||(s[4]=r=>i(t).timedCharging=r)},null,8,["modelValue"])]),_:1},8,["infotext"]),i(de).isBatteryConfigured?(l(),$(U,{key:1,title:"PV-Priorität",icon:"fa-car-battery",infotext:i(Je).pvpriority,fullwidth:!0},{default:_(()=>[v(ke,{modelValue:i(de).pvBatteryPriority,"onUpdate:modelValue":s[5]||(s[5]=r=>i(de).pvBatteryPriority=r),options:i(cn)},null,8,["modelValue","options"])]),_:1},8,["infotext"])):w("",!0)],64))}}),al=F(tl,[["__scopeId","data-v-e6ae9e07"]]),nl={class:"status-string"},rl={style:{color:"red"}},ol={class:"m-0 mt-4 p-0 grid-col-12 tabarea"},sl={class:"nav nav-tabs nav-justified mx-1 mt-1",role:"tablist"},il=["data-bs-target"],ll=["data-bs-target"],cl=["data-bs-target"],ul=["data-bs-target"],dl=["data-bs-target"],hl=["data-bs-target"],pl={id:"settingsPanes",class:"tab-content mx-1 p-1 pb-3"},gl=["id"],ml=["id"],fl=["id"],vl=["id"],bl=["id"],yl=["id"],_l=I({__name:"ChargeConfigPanel",props:{chargepoint:{}},emits:["closeConfig"],setup(a){const t=a.chargepoint,o=g(()=>{var r;return((r=t.chargeTemplate)==null?void 0:r.id)??0}),s=g(()=>t.id);return Te(()=>{}),(r,h)=>(l(),f(j,null,[v(U,{title:"Status",icon:"fa-info-circle",fullwidth:!0,class:"item"},{default:_(()=>[n("span",nl,x(i(t).stateStr),1)]),_:1}),i(t).faultState!=0?(l(),$(U,{key:0,title:"Fehler",class:"grid-col-12",icon:"fa-triangle-exclamation"},{default:_(()=>[n("span",rl,x(i(t).faultStr),1)]),_:1})):w("",!0),n("div",ol,[n("nav",sl,[n("a",{class:"nav-link active","data-bs-toggle":"tab","data-bs-target":"#chargeSettings"+s.value},h[0]||(h[0]=[n("i",{class:"fa-solid fa-charging-station"},null,-1)]),8,il),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#instantSettings"+s.value},h[1]||(h[1]=[n("i",{class:"fa-solid fa-lg fa-bolt"},null,-1)]),8,ll),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#pvSettings"+s.value},h[2]||(h[2]=[n("i",{class:"fa-solid fa-solar-panel me-1"},null,-1)]),8,cl),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#scheduledSettings"+s.value},h[3]||(h[3]=[n("i",{class:"fa-solid fa-bullseye me-1"},null,-1)]),8,ul),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#ecoSettings"+s.value},h[4]||(h[4]=[n("i",{class:"fa-solid fa-coins"},null,-1)]),8,dl),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#timedSettings"+s.value},h[5]||(h[5]=[n("i",{class:"fa-solid fa-clock"},null,-1)]),8,hl)]),n("div",pl,[n("div",{id:"chargeSettings"+s.value,class:"tab-pane active",role:"tabpanel","aria-labelledby":"instant-tab"},[v(al,{chargepoint:r.chargepoint},null,8,["chargepoint"])],8,gl),n("div",{id:"instantSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"instant-tab"},[v(Zs,{chargepoint:i(t),vehicles:i(Q),"charge-templates":i(Ft)},null,8,["chargepoint","vehicles","charge-templates"])],8,ml),n("div",{id:"pvSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"pv-tab"},[v(ii,{chargepoint:i(t),vehicles:i(Q),"charge-templates":i(Ft)},null,8,["chargepoint","vehicles","charge-templates"])],8,fl),n("div",{id:"scheduledSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"scheduled-tab"},[o.value!=null?(l(),$(Si,{key:0,"charge-point":i(t)},null,8,["charge-point"])):w("",!0)],8,vl),n("div",{id:"ecoSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"eco-tab"},[o.value!=null?(l(),$(Ki,{key:0,chargepoint:i(t)},null,8,["chargepoint"])):w("",!0)],8,bl),n("div",{id:"timedSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"scheduled-tab"},[o.value!=null?(l(),$(Wi,{key:0,"charge-point":i(t)},null,8,["charge-point"])):w("",!0)],8,yl)])])],64))}}),Ht=F(_l,[["__scopeId","data-v-cd92fe69"]]),We=I({__name:"FormatWattH",props:{wattH:{}},setup(a){const e=a,t=g(()=>He(e.wattH,m.decimalPlaces));return(o,s)=>(l(),f("span",null,x(t.value),1))}}),wl={class:"wb-widget p-0 m-0 shadow widgetWidth"},kl={class:"py-4 px-3 d-flex justify-content-between align-items-center titlerow"},xl={class:"d-flex align-items-center widgetname p-0 m-0"},Sl={class:"buttonrea d-flex float-right justify-content-end align-items-center"},$l={class:"grid12 pb-3 px-3"},Ml=I({__name:"WbWidgetFlex",props:{variableWidth:{type:Boolean},fullWidth:{type:Boolean}},setup(a){const e=a,t=g(()=>e.fullWidth?"col-12":e.variableWidth&&m.preferWideBoxes?"col-lg-6":"col-lg-4");return(o,s)=>(l(),f("div",{class:R(["p-2 m-0",t.value])},[n("div",wl,[n("div",kl,[n("div",xl,[ue(o.$slots,"title",{},()=>[s[0]||(s[0]=n("div",{class:"p-0"},"(title goes here)",-1))],!0),ue(o.$slots,"subtitle",{},void 0,!0)]),n("div",Sl,[ue(o.$slots,"buttons",{},void 0,!0)])]),n("div",$l,[ue(o.$slots,"default",{},void 0,!0)])])],2))}}),Ge=F(Ml,[["__scopeId","data-v-fb6ac7a4"]]),Pl={class:"d-flex justify-content-center align-items-center"},Cl=I({__name:"BatterySymbol",props:{soc:{},color:{}},setup(a){const e=a,t=g(()=>e.soc<=12?"fa-battery-empty":e.soc<38?"fa-battery-quarter":e.soc<62?"fa-battery-half":e.soc<87?"fa-battery-three-quarters":"fa-battery-full"),o=g(()=>({color:e.color??"var(--color-menu)"}));return(s,r)=>(l(),f("span",Pl,[n("i",{class:R(["fa me-1",t.value]),style:K(o.value)},null,6),J(" "+x(Math.round(s.soc)+"%"),1)]))}}),Ct=F(Cl,[["__scopeId","data-v-a68c844a"]]),Il=I({__name:"WbBadge",props:{color:{},bgcolor:{}},setup(a){const e=a,t=g(()=>({color:e.color??"var(--color-bg)","background-color":e.bgcolor??"var(--color-menu)"}));return(o,s)=>(l(),f("span",{class:"pillWbBadge rounded-pill ms-2 px-2",style:K(t.value)},[ue(o.$slots,"default",{},void 0,!0)],4))}}),Ce=F(Il,[["__scopeId","data-v-36112fa3"]]),Bl={style:{color:"var(--color-charging)"}},Vl={style:{color:"var(--color-charging)"}},Ll={style:{color:"var(--color-charging)"}},Tl={class:"targetCurrent"},Ol=I({__name:"ChargingState",props:{chargepoint:{},fullWidth:{type:Boolean}},setup(a){const e=a,t=g(()=>(Math.round(e.chargepoint.current*10)/10).toLocaleString(void 0)+" A"),o=g(()=>(Math.round(e.chargepoint.realCurrent*10)/10).toLocaleString(void 0)+" A");return(s,r)=>(l(),f(j,null,[e.chargepoint.power>0?(l(),$(ee,{key:0,heading:"Leistung:",class:"grid-col-3 grid-left mb-3"},{default:_(()=>[n("span",Bl,[v(vt,{watt:e.chargepoint.power},null,8,["watt"])])]),_:1})):w("",!0),e.chargepoint.power>0?(l(),$(ee,{key:1,heading:"Strom:",class:"grid-col-3"},{default:_(()=>[n("span",Vl,x(o.value),1)]),_:1})):w("",!0),e.chargepoint.power>0?(l(),$(ee,{key:2,heading:"Phasen:",class:"grid-col-3"},{default:_(()=>[n("span",Ll,x(e.chargepoint.phasesInUse),1)]),_:1})):w("",!0),e.chargepoint.power>0?(l(),$(ee,{key:3,heading:"Sollstrom:",class:"grid-col-3 grid-right"},{default:_(()=>[n("span",Tl,x(t.value),1)]),_:1})):w("",!0)],64))}}),Al=F(Ol,[["__scopeId","data-v-2cc82367"]]),El={class:"carTitleLine d-flex justify-content-between align-items-center"},zl={key:1,class:"me-1 fa-solid fa-xs fa-star ps-1"},Dl={key:2,class:"me-0 fa-solid fa-xs fa-clock ps-1"},Wl={key:0,class:"carSelector p-4 m-2"},Gl={class:"grid12"},Ul={key:2,class:"socEditor rounded mt-2 d-flex flex-column align-items-center grid-col-12 grid-left"},jl={class:"d-flex justify-content-stretch align-items-center"},Fl={key:0,class:"fa-solid fa-sm fas fa-edit ms-2"},Nl=["id"],Hl=I({__name:"VehicleData",props:{chargepoint:{},fullWidth:{type:Boolean}},setup(a){const e=a,t=e.chargepoint,o=Y(!1),s=Y(!1),r=Y(!1),h=g({get(){return t.chargeMode},set(M){t.chargeMode=M}}),p=g(()=>{const M=e.chargepoint.rangeCharged,V=e.chargepoint.chargedSincePlugged,S=e.chargepoint.dailyYield;return V>0?Math.round(M/V*S).toString()+" "+e.chargepoint.rangeUnit:"0 km"}),u=g(()=>e.chargepoint.soc),d=g({get(){return e.chargepoint.soc},set(M){O[e.chargepoint.id].soc=M}}),c=g(()=>{const[M]=re.etPriceList.values();return(Math.round(M*10)/10).toFixed(1)}),k=g(()=>e.chargepoint.etMaxPrice>=+c.value?{color:"var(--color-charging)"}:{color:"var(--color-menu)"}),P=g(()=>Object.values(Q).filter(M=>M.visible)),A=g(()=>e.chargepoint.soc<20?"var(--color-evu)":e.chargepoint.soc>=80?"var(--color-pv)":"var(--color-battery)"),G=g(()=>{switch(e.chargepoint.chargeMode){case"stop":return{color:"var(--fg)"};default:return{color:ve[e.chargepoint.chargeMode].color}}});function E(){be("socUpdate",1,e.chargepoint.connectedVehicle),O[e.chargepoint.id].waitingForSoc=!0}function T(){be("setSoc",d.value,e.chargepoint.connectedVehicle),o.value=!1}return(M,V)=>(l(),f(j,null,[n("div",El,[n("h3",{onClick:V[0]||(V[0]=S=>r.value=!r.value)},[V[8]||(V[8]=n("i",{class:"fa-solid fa-sm fa-car me-2"},null,-1)),J(" "+x(M.chargepoint.vehicleName)+" ",1),P.value.length>1?(l(),f("span",{key:0,class:R(["fa-solid fa-xs me-2",r.value?"fa-caret-up":"fa-caret-down"])},null,2)):w("",!0),M.chargepoint.hasPriority?(l(),f("span",zl)):w("",!0),M.chargepoint.timedCharging?(l(),f("span",Dl)):w("",!0)]),M.chargepoint.isSocConfigured?(l(),$(Ce,{key:0,bgcolor:A.value},{default:_(()=>[v(Ct,{soc:u.value??0,color:"var(--color-bg)",class:"me-2"},null,8,["soc"]),M.chargepoint.isSocManual?(l(),f("i",{key:0,class:"fa-solid fa-sm fas fa-edit",style:{color:"var(--color-bg)"},onClick:V[1]||(V[1]=S=>o.value=!o.value)})):w("",!0),M.chargepoint.isSocManual?w("",!0):(l(),f("i",{key:1,type:"button",class:R(["fa-solid fa-sm",M.chargepoint.waitingForSoc?"fa-spinner fa-spin":"fa-sync"]),onClick:E},null,2))]),_:1},8,["bgcolor"])):w("",!0)]),r.value?(l(),f("div",Wl,[V[9]||(V[9]=n("span",{class:"changeCarTitle mb-2"},"Fahrzeug wechseln:",-1)),v(ke,{modelValue:i(t).connectedVehicle,"onUpdate:modelValue":[V[2]||(V[2]=S=>i(t).connectedVehicle=S),V[3]||(V[3]=S=>r.value=!1)],modelModifiers:{number:!0},options:P.value.map(S=>[S.name,S.id])},null,8,["modelValue","options"])])):w("",!0),n("div",Gl,[v(Ta,{id:"chargemode-"+M.chargepoint.name,modelValue:h.value,"onUpdate:modelValue":V[4]||(V[4]=S=>h.value=S),class:"chargemodes mt-3 mb-3",options:Object.keys(i(ve)).map(S=>({text:i(ve)[S].name,value:S,color:i(ve)[S].color,icon:i(ve)[S].icon,active:i(ve)[S].mode==M.chargepoint.chargeMode}))},null,8,["id","modelValue","options"]),M.chargepoint.power>0?(l(),$(Al,{key:0,chargepoint:M.chargepoint,"full-width":e.fullWidth},null,8,["chargepoint","full-width"])):w("",!0),v(ee,{heading:"letzte Ladung:",class:"grid-col-4 grid-left"},{default:_(()=>[v(We,{"watt-h":Math.max(M.chargepoint.chargedSincePlugged,0)},null,8,["watt-h"])]),_:1}),v(ee,{heading:"gel. Reichw.:",class:"grid-col-4"},{default:_(()=>[J(x(p.value),1)]),_:1}),M.chargepoint.isSocConfigured?(l(),$(ee,{key:1,heading:"Reichweite:",class:"grid-col-4 grid-right"},{default:_(()=>[J(x(i(Q)[e.chargepoint.connectedVehicle]?Math.round(i(Q)[e.chargepoint.connectedVehicle].range):0)+" km ",1)]),_:1})):w("",!0),o.value?(l(),f("div",Ul,[V[10]||(V[10]=n("span",{class:"d-flex m-1 p-0 socEditTitle"},"Ladestand einstellen:",-1)),n("span",jl,[n("span",null,[v(ye,{id:"manualSoc",modelValue:d.value,"onUpdate:modelValue":V[5]||(V[5]=S=>d.value=S),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])])]),n("span",{type:"button",class:"fa-solid d-flex fa-lg me-2 mb-3 align-self-end fa-circle-check",onClick:T})])):w("",!0),V[12]||(V[12]=n("hr",{class:"divider grid-col-12"},null,-1)),i(re).active?(l(),$(ee,{key:3,heading:"Strompreis:",class:"grid-col-4 grid-left"},{default:_(()=>[n("span",{style:K(k.value)},x(c.value)+" ct ",5)]),_:1})):w("",!0),i(t).etActive?(l(),$(ee,{key:4,heading:"max. Preis:",class:"grid-col-4"},{default:_(()=>[n("span",{type:"button",onClick:V[6]||(V[6]=S=>s.value=!s.value)},[J(x(e.chargepoint.etActive?(Math.round(e.chargepoint.etMaxPrice*10)/10).toFixed(1)+" ct":"-")+" ",1),e.chargepoint.etActive?(l(),f("i",Fl)):w("",!0)])]),_:1})):w("",!0),s.value?(l(),f("div",{key:5,id:"priceChartInline"+e.chargepoint.id,class:"d-flex flex-column rounded priceEditor grid-col-12"},[i(Q)[e.chargepoint.connectedVehicle]!=null?(l(),$(Aa,{key:0,chargepoint:e.chargepoint},null,8,["chargepoint"])):w("",!0),n("span",{class:"d-flex ms-2 my-4 pe-3 pt-1 d-flex align-self-end",style:K(G.value),onClick:V[7]||(V[7]=S=>s.value=!1)},V[11]||(V[11]=[n("span",{type:"button",class:"d-flex fa-solid fa-lg ps-1 fa-circle-check"},null,-1)]),4)],8,Nl)):w("",!0)])],64))}}),Rl=F(Hl,[["__scopeId","data-v-e3fcbd86"]]),Jl={class:"d-flex justify-content-center align-items-center"},ql={key:0,class:"WbBadge rounded-pill errorWbBadge ms-3"},Yl={key:0},Ql={key:1,class:"row m-0 mt-0 p-0"},Zl={class:"col m-0 p-0"},Xl=I({__name:"CPChargePoint",props:{chargepoint:{},fullWidth:{type:Boolean}},setup(a){const e=a,t=Y(e.chargepoint),o=Y(!1),s=g(()=>e.chargepoint.isLocked?"Gesperrt":e.chargepoint.isCharging?"Lädt":e.chargepoint.isPluggedIn?"Bereit":"Frei"),r=g(()=>e.chargepoint.isLocked?"var(--color-evu)":e.chargepoint.isCharging?"var(--color-charging)":e.chargepoint.isPluggedIn?"var(--color-battery)":"var(--color-axis)"),h=g(()=>{let d="";return e.chargepoint.isLocked?d="fa-lock":e.chargepoint.isCharging?d=" fa-bolt":e.chargepoint.isPluggedIn&&(d="fa-plug"),"fa "+d}),p=g(()=>{switch(e.chargepoint.chargeMode){case"stop":return{color:"var(--fg)"};default:return{color:ve[e.chargepoint.chargeMode].color}}}),u=g(()=>({color:e.chargepoint.color}));return(d,c)=>o.value?(l(),$(Ge,{key:1,"full-width":e.fullWidth},{title:_(()=>[n("span",{style:K(u.value),onClick:c[3]||(c[3]=k=>o.value=!o.value)},[c[8]||(c[8]=n("span",{class:"fas fa-gear"}," ",-1)),J(" Einstellungen "+x(e.chargepoint.name),1)],4)]),buttons:_(()=>[n("span",{class:"ms-2 pt-1",style:K(p.value),onClick:c[4]||(c[4]=k=>o.value=!o.value)},c[9]||(c[9]=[n("span",{class:"fa-solid fa-lg ps-1 fa-circle-check"},null,-1)]),4)]),default:_(()=>[d.chargepoint!=null?(l(),$(Ht,{key:0,chargepoint:d.chargepoint},null,8,["chargepoint"])):w("",!0),n("button",{type:"button",class:"close-config-button btn ms-2 pt-1",onClick:c[5]||(c[5]=k=>o.value=!o.value)}," OK ")]),_:1},8,["full-width"])):(l(),$(bt,{key:0,"variable-width":!0,"full-width":e.fullWidth},{title:_(()=>[n("span",Jl,[n("span",{style:K(u.value),onClick:c[0]||(c[0]=k=>o.value=!o.value)},[c[6]||(c[6]=n("span",{class:"fa-solid fa-charging-station"}," ",-1)),J(" "+x(e.chargepoint.name),1)],4),t.value.faultState==2?(l(),f("span",ql,"Fehler")):w("",!0)])]),buttons:_(()=>[n("span",{type:"button",class:"ms-2 ps-1 pt-1",style:K(p.value),onClick:c[1]||(c[1]=k=>o.value=!o.value)},c[7]||(c[7]=[n("span",{class:"fa-solid fa-lg ps-1 fa-ellipsis-vertical"},null,-1)]),4)]),footer:_(()=>[o.value?w("",!0):(l(),$(Rl,{key:0,chargepoint:e.chargepoint,"full-width":e.fullWidth},null,8,["chargepoint","full-width"]))]),default:_(()=>[o.value?w("",!0):(l(),f("div",Yl,[n("div",{class:"grid12",onClick:c[2]||(c[2]=k=>o.value=!o.value)},[v(ee,{heading:"Status:",class:"grid-col-4 grid-left"},{default:_(()=>[n("span",{style:K({color:r.value})},[n("i",{class:R(h.value)},null,2),J(" "+x(s.value),1)],4)]),_:1}),v(ee,{heading:"Geladen:",class:"grid-col-4 grid-left"},{default:_(()=>[v(We,{"watt-h":d.chargepoint.dailyYield},null,8,["watt-h"])]),_:1})])])),o.value?(l(),f("div",Ql,[n("div",Zl,[d.chargepoint!=null?(l(),$(Ht,{key:0,chargepoint:d.chargepoint},null,8,["chargepoint"])):w("",!0)])])):w("",!0)]),_:1},8,["full-width"]))}}),Kl=F(Xl,[["__scopeId","data-v-0000854e"]]),ec=["id"],tc={class:"modal-dialog modal-lg modal-fullscreen-lg-down"},ac={class:"modal-content"},nc={class:"modal-header"},rc={class:"modal-title"},oc={class:"modal-body",style:{"background-color":"var(--color-bg)"}},sc=I({__name:"ModalComponent",props:{modalId:{}},setup(a){const e=a;return Te(()=>{}),(t,o)=>(l(),f("div",{id:e.modalId,class:"modal fade"},[n("div",tc,[n("div",ac,[n("div",nc,[n("h3",rc,[ue(t.$slots,"title",{},void 0,!0)]),o[0]||(o[0]=n("button",{type:"button",class:"btn-close buttonTextSize d-flex justify-content-center pt-3 pb-0","data-bs-dismiss":"modal"},[n("i",{class:"fa-solid fa-lg fa-rectangle-xmark m-0 p-0"})],-1))]),n("div",oc,[ue(t.$slots,"default",{},void 0,!0),o[1]||(o[1]=n("button",{class:"btn btn-secondary float-end mt-3 ms-1","data-bs-dismiss":"modal"}," Schließen ",-1))])])])],8,ec))}}),Ea=F(sc,[["__scopeId","data-v-eaefae30"]]),ic={class:"d-flex align-items-center"},lc={class:"cpname"},cc={class:"d-flex float-right justify-content-end align-items-center"},uc=["data-bs-target"],dc=["data-bs-target"],hc={class:"subgrid"},pc={key:0,class:"d-flex justify-content-center align-items-center vehiclestatus"},gc={class:"d-flex flex-column align-items-center px-0"},mc={class:"d-flex justify-content-center flex-wrap"},fc={class:"d-flex align-items-center"},vc={class:"badge phasesInUse rounded-pill"},bc={class:"d-flex flex-wrap justify-content-center chargeinfo"},yc={class:"me-1"},_c={key:0,class:"subgrid socEditRow m-0 p-0"},wc={class:"socEditor rounded mt-2 d-flex flex-column align-items-center grid-col-12"},kc={class:"d-flex justify-content-stretch align-items-center"},xc=I({__name:"CpsListItem2",props:{chargepoint:{}},setup(a){const e=a,t=Y(!1),o=g(()=>ve[e.chargepoint.chargeMode].icon),s=g(()=>{let M="";return e.chargepoint.isLocked?M="fa-lock":e.chargepoint.isCharging?M=" fa-bolt":e.chargepoint.isPluggedIn&&(M="fa-plug"),"fa "+M}),r=g(()=>{let M="var(--color-axis)";return e.chargepoint.isLocked?M="var(--color-evu)":e.chargepoint.isCharging?M="var(--color-charging)":e.chargepoint.isPluggedIn&&(M="var(--color-battery)"),{color:M,border:`0.5px solid ${M} `}}),h=g(()=>{switch(e.chargepoint.chargeMode){case"stop":return{"background-color":"var(--color-input)"};default:return{"background-color":ve[e.chargepoint.chargeMode].color}}}),p=g(()=>Pe(e.chargepoint.power,m.decimalPlaces)),u=g(()=>e.chargepoint.current+" A"),d=g(()=>e.chargepoint.phasesInUse),c=g(()=>e.chargepoint.dailyYield>0?He(e.chargepoint.dailyYield,m.decimalPlaces):"0 Wh"),k=g(()=>"("+Math.round(e.chargepoint.rangeCharged).toString()+" "+e.chargepoint.rangeUnit+")"),P=g(()=>ve[e.chargepoint.chargeMode].name);function A(){be("socUpdate",1,e.chargepoint.connectedVehicle),O[e.chargepoint.id].waitingForSoc=!0}function G(){be("setSoc",E.value,e.chargepoint.connectedVehicle),t.value=!1}const E=g({get(){return e.chargepoint.soc},set(M){O[e.chargepoint.id].soc=M}}),T=g(()=>e.chargepoint.isLocked?"Gesperrt":e.chargepoint.isCharging?"Lädt":e.chargepoint.isPluggedIn?"Bereit":"Frei");return(M,V)=>(l(),f(j,null,[v(at,{titlecolor:M.chargepoint.color,fullwidth:!0,small:!0},{title:_(()=>[n("div",ic,[n("span",lc,x(M.chargepoint.name),1),n("span",{class:"badge rounded-pill statusbadge mx-2",style:K(r.value)},[n("i",{class:R([s.value,"me-1"])},null,2),J(" "+x(T.value),1)],4)])]),buttons:_(()=>[n("div",cc,[n("span",{class:"badge rounded-pill modebadge mx-2",type:"button",style:K(h.value),"data-bs-toggle":"modal","data-bs-target":"#cpsconfig-"+M.chargepoint.id},[n("i",{class:R(["fa me-1",o.value])},null,2),J(" "+x(P.value),1)],12,uc),n("span",{class:"fa-solid ms-2 fa-lg fa-edit ps-1",type:"button","data-bs-toggle":"modal","data-bs-target":"#cpsconfig-"+M.chargepoint.id},null,8,dc)])]),default:_(()=>[n("div",hc,[v(ee,{heading:M.chargepoint.vehicleName,small:!0,class:"grid-left grid-col-4"},{default:_(()=>[M.chargepoint.isSocConfigured?(l(),f("span",pc,[M.chargepoint.soc?(l(),$(Ct,{key:0,class:"me-1",soc:M.chargepoint.soc},null,8,["soc"])):w("",!0),M.chargepoint.isSocConfigured&&M.chargepoint.isSocManual?(l(),f("i",{key:1,type:"button",class:"fa-solid fa-sm fas fa-edit",style:{color:"var(--color-menu)"},onClick:V[0]||(V[0]=S=>t.value=!t.value)})):w("",!0),M.chargepoint.isSocConfigured&&!M.chargepoint.isSocManual?(l(),f("i",{key:2,type:"button",class:R(["fa-solid fa-sm me-2",M.chargepoint.waitingForSoc?"fa-spinner fa-spin":"fa-sync"]),style:{color:"var(--color-menu)"},onClick:A},null,2)):w("",!0)])):w("",!0)]),_:1},8,["heading"]),v(ee,{heading:"Parameter:",small:!0,class:"grid-col-4"},{default:_(()=>[n("div",gc,[n("span",mc,[n("span",null,x(p.value),1),n("span",fc,[n("span",vc,x(d.value),1),n("span",null,x(u.value),1)])])])]),_:1}),v(ee,{heading:"Geladen:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[n("div",bc,[n("span",yc,x(c.value),1),n("span",null,x(k.value),1)])]),_:1})]),t.value?(l(),f("div",_c,[n("div",wc,[V[2]||(V[2]=n("span",{class:"d-flex m-1 p-0 socEditTitle"},"Ladestand einstellen:",-1)),n("span",kc,[n("span",null,[v(ye,{id:"manualSoc",modelValue:E.value,"onUpdate:modelValue":V[1]||(V[1]=S=>E.value=S),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])])]),n("span",{type:"button",class:"fa-solid d-flex fa-lg me-2 mb-3 align-self-end fa-circle-check",onClick:G})])])):w("",!0)]),_:1},8,["titlecolor"]),(l(),$(Xa,{to:"body"},[(l(),$(Ea,{key:M.chargepoint.id,"modal-id":"cpsconfig-"+M.chargepoint.id},{title:_(()=>[J(" Konfiguration: "+x(M.chargepoint.name),1)]),default:_(()=>[M.chargepoint!=null?(l(),$(Ht,{key:0,chargepoint:M.chargepoint},null,8,["chargepoint"])):w("",!0)]),_:1},8,["modal-id"]))]))],64))}}),Sc=F(xc,[["__scopeId","data-v-9260919a"]]),$c=I({__name:"CpSimpleList2",setup(a){const e=g(()=>Object.values(O));return(t,o)=>(l(),$(Ge,{"variable-width":!0},{title:_(()=>o[0]||(o[0]=[n("span",{class:"fa-solid fa-charging-station"}," ",-1),J(" Ladepunkte ")])),buttons:_(()=>[i(re).active?(l(),$(Ce,{key:0,bgcolor:"var(--color-menu)"},{default:_(()=>[J("Strompreis: "+x(i(re).etCurrentPriceString),1)]),_:1})):w("",!0)]),default:_(()=>[(l(!0),f(j,null,Z(e.value,(s,r)=>(l(),f("div",{key:r,class:"subgrid pb-2"},[v(Sc,{chargepoint:s},null,8,["chargepoint"])]))),128))]),_:1}))}}),Mc=F($c,[["__scopeId","data-v-b8c6b557"]]),Ot=I({__name:"ChargePointList",props:{id:{},compact:{type:Boolean}},setup(a){let e,t;const o=a,s=g(()=>{let d=Object.values(O);return u(),d}),r=g(()=>h.value+" "+p.value),h=g(()=>{switch(Object.values(O).length){case 0:return m.preferWideBoxes?"col-lg-6":"col-lg-4";case 1:return m.preferWideBoxes?"col-lg-6":"col-lg-4";case 2:return m.preferWideBoxes?"col-lg-12":"col-lg-8 ";default:return"col-lg-12"}}),p=g(()=>"swiper-chargepoints-"+o.id);function u(){let d=document.querySelector("."+p.value);if(d&&(t=d,e=t.swiper),e){let c="1";if(De.value)switch(Object.values(O).length){case 0:case 1:c="1";break;case 2:c="2";break;default:c="3"}t.setAttribute("slides-per-view",c),e.update()}}return Te(()=>{let d=document.querySelector("."+p.value);d&&(t=d,e=t.swiper),window.addEventListener("resize",u),window.document.addEventListener("visibilitychange",u)}),(d,c)=>(l(),f(j,null,[o.compact?w("",!0):(l(),f("swiper-container",{key:0,"space-between":0,"slides-per-view":1,pagination:{clickable:!0},class:R(["cplist m-0 p-0 d-flex align-items-stretch",r.value])},[(l(!0),f(j,null,Z(s.value,k=>(l(),f("swiper-slide",{key:k.id},[n("div",{class:R([i(De)?"mb-0":"mb-5","d-flex align-items-stretch flex-fill"])},[v(Kl,{chargepoint:k,"full-width":!0},null,8,["chargepoint"])],2)]))),128))],2)),o.compact?(l(),$(Mc,{key:1})):w("",!0)],64))}}),Pc={class:"container-fluid p-0 m-0"},Cc={class:"row p-0 m-0"},Ic={class:"d-grid gap-2"},Bc=["onClick"],Vc={class:"col-md-4 p-1"},Lc={class:"d-grid gap-2"},Tc={key:0},Oc={class:"row justify-content-center m-1 p-0"},Ac={class:"col-lg-4 p-1 m-0"},Ec={class:"d-grid gap-2"},zc={class:"col-lg-4 p-1 m-0"},Dc={class:"d-grid gap-2"},Wc={class:"col-lg-4 p-1 m-0"},Gc={class:"d-grid gap-2"},Uc=I({__name:"BBSelect",props:{cpId:{}},setup(a){const e=a,t=[{mode:"instant_charging",name:"Sofort",color:"var(--color-charging)"},{mode:"pv_charging",name:"PV",color:"var(--color-pv)"},{mode:"scheduled_charging",name:"Zielladen",color:"var(--color-battery)"},{mode:"eco_charging",name:"Eco",color:"var(--color-devices)"},{mode:"stop",name:"Stop",color:"var(--color-axis)"}],o=g(()=>O[e.cpId]);function s(d){return d==o.value.chargeMode?"btn btn-success buttonTextSize":"btn btn-secondary buttonTextSize"}function r(d){return de.pvBatteryPriority==d?"btn-success":"btn-secondary"}function h(d){o.value.chargeMode=d}function p(d){o.value.isLocked=d}function u(d){de.pvBatteryPriority=d}return(d,c)=>(l(),f("div",Pc,[n("div",Cc,[(l(),f(j,null,Z(t,(k,P)=>n("div",{key:P,class:"col-md-4 p-1"},[n("div",Ic,[n("button",{type:"button",class:R(s(k.mode)),style:{},onClick:A=>h(k.mode)},x(k.name),11,Bc)])])),64)),n("div",Vc,[n("div",Lc,[o.value.isLocked?(l(),f("button",{key:0,type:"button",class:"btn btn-outline-success buttonTextSize","data-bs-dismiss":"modal",onClick:c[0]||(c[0]=k=>p(!1))}," Entsperren ")):w("",!0),o.value.isLocked?w("",!0):(l(),f("button",{key:1,type:"button",class:"btn btn-outline-danger buttonTextSize","data-bs-dismiss":"modal",onClick:c[1]||(c[1]=k=>p(!0))}," Sperren "))])])]),i(de).isBatteryConfigured?(l(),f("div",Tc,[c[8]||(c[8]=n("hr",null,null,-1)),c[9]||(c[9]=n("div",{class:"row"},[n("div",{class:"col text-center"},"Vorrang im Lademodus PV-Laden:")],-1)),n("div",Oc,[n("div",Ac,[n("div",Ec,[n("button",{id:"evPriorityBtn",type:"button",class:R(["priorityModeBtn btn btn-secondary buttonTextSize",r("ev_mode")]),"data-dismiss":"modal",priority:"1",onClick:c[2]||(c[2]=k=>u("ev_mode"))},c[5]||(c[5]=[J(" EV "),n("span",{class:"fas fa-car ms-2"}," ",-1)]),2)])]),n("div",zc,[n("div",Dc,[n("button",{id:"batteryPriorityBtn",type:"button",class:R(["priorityModeBtn btn btn-secondary buttonTextSize",r("bat_mode")]),"data-dismiss":"modal",priority:"0",onClick:c[3]||(c[3]=k=>u("bat_mode"))},c[6]||(c[6]=[J(" Speicher "),n("span",{class:"fas fa-car-battery ms-2"}," ",-1)]),2)])]),n("div",Wc,[n("div",Gc,[n("button",{id:"minsocPriorityBtn",type:"button",class:R(["priorityModeBtn btn btn-secondary buttonTextSize",r("min_soc_bat_mode")]),"data-dismiss":"modal",priority:"0",onClick:c[4]||(c[4]=k=>u("min_soc_bat_mode"))},c[7]||(c[7]=[J(" MinSoc "),n("span",{class:"fas fa-battery-half"}," ",-1)]),2)])])])])):w("",!0)]))}}),jc={class:"col-lg-4 p-0 m-0 mt-1"},Fc={class:"d-grid gap-2"},Nc=["data-bs-target"],Hc={class:"m-0 p-0 d-flex justify-content-between align-items-center"},Rc={class:"mx-1 badge rounded-pill smallTextSize plugIndicator"},Jc={key:0,class:"ms-2"},qc={class:"m-0 p-0"},Yc={key:0,class:"ps-1"},Qc=I({__name:"BbChargeButton",props:{chargepoint:{}},setup(a){const e=a,t="chargeSelectModal"+e.chargepoint.id,o=g(()=>ve[e.chargepoint.chargeMode].name),s=g(()=>{let c={background:"var(--color-menu)"};return e.chargepoint.isLocked?c.background="var(--color-evu)":e.chargepoint.isCharging?c.background="var(--color-charging)":e.chargepoint.isPluggedIn&&(c.background="var(--color-battery)"),c}),r=g(()=>{{let c={background:ve[e.chargepoint.chargeMode].color,color:"white"};switch(e.chargepoint.chargeMode){case $e.instant_charging:e.chargepoint.isCharging&&!e.chargepoint.isLocked&&(c=d(c));break;case $e.stop:c.background="darkgrey",c.color="black";break;case $e.scheduled_charging:e.chargepoint.isPluggedIn&&!e.chargepoint.isCharging&&!e.chargepoint.isLocked&&(c=d(c));break}return c}}),h=g(()=>ve[e.chargepoint.chargeMode].icon),p=g(()=>{switch(de.pvBatteryPriority){case"ev_mode":return"fa-car";case"bat_mode":return"fa-car-battery";case"min_soc_bat_mode":return"fa-battery-half";default:return console.log("default"),""}}),u=g(()=>{let c="fa-ellipsis";return e.chargepoint.isLocked?c="fa-lock":e.chargepoint.isCharging?c=" fa-bolt":e.chargepoint.isPluggedIn&&(c="fa-plug"),"fa "+c});function d(c){let k=c.color;return c.color=c.background,c.background=k,c}return(c,k)=>(l(),f("div",jc,[n("div",Fc,[n("button",{type:"button",class:"btn mx-1 mb-0 p-1 mediumTextSize chargeButton shadow",style:K(s.value),"data-bs-toggle":"modal","data-bs-target":"#"+t},[n("div",Hc,[n("span",Rc,[n("i",{class:R(u.value)},null,2),c.chargepoint.isCharging?(l(),f("span",Jc,x(i(Pe)(c.chargepoint.power)),1)):w("",!0)]),n("span",qc,x(c.chargepoint.name),1),n("span",{class:"mx-2 m-0 badge rounded-pill smallTextSize modeIndicator",style:K(r.value)},[n("i",{class:R(["fa me-1",h.value])},null,2),J(" "+x(o.value)+" ",1),c.chargepoint.chargeMode==i($e).pv_charging&&i(de).isBatteryConfigured?(l(),f("span",Yc,[k[0]||(k[0]=J(" ( ")),n("i",{class:R(["fa m-0",p.value])},null,2),k[1]||(k[1]=J(") "))])):w("",!0)],4)])],12,Nc)]),v(Ea,{"modal-id":t},{title:_(()=>[J(" Lademodus für "+x(c.chargepoint.vehicleName),1)]),default:_(()=>[v(Uc,{"cp-id":c.chargepoint.id},null,8,["cp-id"])]),_:1})]))}}),Zc=F(Qc,[["__scopeId","data-v-71bb7e5f"]]),Xc={class:"row p-0 mt-0 mb-1 m-0"},Kc={class:"col p-0 m-0"},eu={class:"container-fluid p-0 m-0"},tu={class:"row p-0 m-0 d-flex justify-content-center align-items-center"},au={key:0,class:"col time-display"},nu=I({__name:"ButtonBar",setup(a){return(e,t)=>(l(),f("div",Xc,[n("div",Kc,[n("div",eu,[n("div",tu,[i(m).showClock=="buttonbar"?(l(),f("span",au,x(i(La)(i(Nt))),1)):w("",!0),(l(!0),f(j,null,Z(i(O),(o,s)=>(l(),$(Zc,{key:s,chargepoint:o,"charge-point-count":Object.values(i(O)).length},null,8,["chargepoint","charge-point-count"]))),128))])])])]))}}),ru=F(nu,[["__scopeId","data-v-791e4be0"]]),ou={class:"battery-title"},su={class:"subgrid pt-1"},iu=I({__name:"BLBattery",props:{bat:{}},setup(a){const e=a,t=g(()=>e.bat.power<0?`Liefert (${Pe(-e.bat.power)})`:e.bat.power>0?`Lädt (${Pe(e.bat.power)})`:"Bereit"),o=g(()=>e.bat.power<0?"var(--color-pv)":e.bat.power>0?"var(--color-battery)":"var(--color-menu)");return(s,r)=>(l(),$(at,{titlecolor:"var(--color-title)",fullwidth:!0},{title:_(()=>[n("span",ou,x(s.bat.name),1)]),buttons:_(()=>[v(Ce,{bgcolor:o.value},{default:_(()=>[J(x(t.value),1)]),_:1},8,["bgcolor"])]),default:_(()=>[n("div",su,[v(ee,{heading:"Ladestand:",small:!0,class:"grid-left grid-col-4"},{default:_(()=>[v(Ct,{soc:e.bat.soc},null,8,["soc"])]),_:1}),v(ee,{heading:"Geladen:",small:!0,class:"grid-col-4"},{default:_(()=>[v(We,{"watt-h":e.bat.dailyYieldImport},null,8,["watt-h"])]),_:1}),v(ee,{heading:"Geliefert:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[v(We,{"watt-h":e.bat.dailyYieldExport},null,8,["watt-h"])]),_:1})])]),_:1}))}}),lu=F(iu,[["__scopeId","data-v-f7f825f7"]]),cu={class:"subgrid grid-12"},uu=I({__name:"BatteryList",setup(a){const e=g(()=>q.batOut.power>0?`Liefert (${Pe(q.batOut.power)})`:H.batIn.power>0?`Lädt (${Pe(H.batIn.power)})`:"Bereit:"),t=g(()=>q.batOut.power>0?"var(--color-pv)":H.batIn.power>0?"var(--color-battery)":"var(--color-menu)"),o=g(()=>{let s=0;return pe.value.forEach(r=>{s+=r.dailyYieldImport}),s});return(s,r)=>i(de).isBatteryConfigured?(l(),$(Ge,{key:0,"variable-width":!0,"full-width":!1},{title:_(()=>r[0]||(r[0]=[n("span",{class:"fas fa-car-battery me-2",style:{color:"var(--color-battery)"}}," ",-1),n("span",null,"Speicher",-1)])),buttons:_(()=>[v(Ce,{bgcolor:t.value},{default:_(()=>[J(x(e.value),1)]),_:1},8,["bgcolor"])]),default:_(()=>[n("div",cu,[v(ee,{heading:"Ladestand:",class:"grid-left grid-col-4"},{default:_(()=>[v(Ct,{color:"var(--color-battery)",soc:i(de).batterySoc},null,8,["soc"])]),_:1}),v(ee,{heading:"Geladen:",class:"grid-col-4"},{default:_(()=>[n("span",null,x(i(He)(o.value)),1)]),_:1}),v(ee,{heading:"Geliefert",class:"grid-right grid-col-4"},{default:_(()=>[n("span",null,x(i(He)(i(q).batOut.energy)),1)]),_:1})]),(l(!0),f(j,null,Z(i(pe),([h,p])=>(l(),$(lu,{key:h,bat:p,class:"px-0"},null,8,["bat"]))),128))]),_:1})):w("",!0)}}),At=F(uu,[["__scopeId","data-v-325bd635"]]),du={class:"devicename"},hu={class:"subgrid"},pu=I({__name:"SHListItem",props:{device:{}},setup(a){const e=a,t=g(()=>e.device.status=="on"?"fa-toggle-on fa-xl":e.device.status=="waiting"?"fa-spinner fa-spin":"fa-toggle-off fa-xl"),o=g(()=>{let p="var(--color-switchRed)";switch(e.device.status){case"on":p="var(--color-switchGreen)";break;case"detection":p="var(--color-switchBlue)";break;case"timeout":p="var(--color-switchWhite)";break;case"waiting":p="var(--color-menu)";break;default:p="var(--color-switchRed)"}return{color:p}});function s(){e.device.isAutomatic||(e.device.status=="on"?be("shSwitchOn",0,e.device.id):be("shSwitchOn",1,e.device.id),te.get(e.device.id).status="waiting")}function r(){e.device.isAutomatic?be("shSetManual",1,e.device.id):be("shSetManual",0,e.device.id)}const h=g(()=>e.device.isAutomatic?"Auto":"Man");return(p,u)=>(l(),$(at,{titlecolor:p.device.color,fullwidth:!0},{title:_(()=>[n("span",du,x(p.device.name),1)]),buttons:_(()=>[(l(!0),f(j,null,Z(p.device.temp,(d,c)=>(l(),f("span",{key:c},[d<300?(l(),$(Ce,{key:0,bgcolor:"var(--color-battery)"},{default:_(()=>[n("span",null,x(i(Nn)(d)),1)]),_:2},1024)):w("",!0)]))),128)),e.device.canSwitch?(l(),f("span",{key:0,class:R([t.value,"fa-solid statusbutton mr-2 ms-2"]),style:K(o.value),onClick:s},null,6)):w("",!0),e.device.canSwitch?(l(),$(Ce,{key:1,type:"button",onClick:r},{default:_(()=>[J(x(h.value),1)]),_:1})):w("",!0)]),default:_(()=>[n("div",hu,[v(ee,{heading:"Leistung:",small:!0,class:"grid-col-4 grid-left"},{default:_(()=>[v(vt,{watt:p.device.power},null,8,["watt"])]),_:1}),v(ee,{heading:"Energie:",small:!0,class:"grid-col-4"},{default:_(()=>[v(We,{"watt-h":p.device.energy},null,8,["watt-h"])]),_:1}),v(ee,{heading:"Laufzeit:",small:!0,class:"grid-col-4 grid-right"},{default:_(()=>[J(x(i(jn)(p.device.runningTime)),1)]),_:1})])]),_:1},8,["titlecolor"]))}}),gu=F(pu,[["__scopeId","data-v-20651ac6"]]),mu={class:"sh-title py-4"},fu=["id","onUpdate:modelValue","value"],vu=["for"],bu=3,yu=I({__name:"SmartHomeList",setup(a){const e=g(()=>De.value?t.value.reduce((h,p)=>{const u=h;let d=h[h.length-1];return d.length>=bu?h.push([p]):d.push(p),u},[[]]):[t.value]),t=g(()=>[...te.values()].filter(h=>h.configured));function o(h){return"Geräte"+(De.value&&e.value.length>1?"("+(h+1)+")":"")}function s(){r.value=!r.value}const r=Y(!1);return(h,p)=>(l(),f(j,null,[(l(!0),f(j,null,Z(e.value,(u,d)=>(l(),$(Ge,{key:d,"variable-width":!0},{title:_(()=>[n("span",{onClick:s},[p[0]||(p[0]=n("span",{class:"fas fa-plug me-2",style:{color:"var(--color-devices)"}}," ",-1)),n("span",mu,x(o(d)),1)])]),buttons:_(()=>[n("span",{class:"ms-2 pt-1",onClick:s},p[1]||(p[1]=[n("span",{class:"fa-solid fa-lg ps-1 fa-ellipsis-vertical"},null,-1)]))]),default:_(()=>[(l(!0),f(j,null,Z(u,c=>(l(),$(gu,{key:c.id,device:c,class:"subgrid pb-2"},null,8,["device"]))),128))]),_:2},1024))),128)),r.value?(l(),$(Ge,{key:0},{title:_(()=>[n("span",{class:"smarthome",onClick:s},p[2]||(p[2]=[n("span",{class:"fas fa-gear"}," ",-1),J(" Einstellungen")]))]),buttons:_(()=>[n("span",{class:"ms-2 pt-1",onClick:s},p[3]||(p[3]=[n("span",{class:"fa-solid fa-lg ps-1 fa-circle-check"},null,-1)]))]),default:_(()=>[v(U,{title:"Im Energie-Graph anzeigen:",icon:"fa-chart-column",fullwidth:!0},{default:_(()=>[(l(!0),f(j,null,Z(t.value,(u,d)=>(l(),f("div",{key:d},[mt(n("input",{id:"check"+d,"onUpdate:modelValue":c=>u.showInGraph=c,class:"form-check-input",type:"checkbox",value:u},null,8,fu),[[Sa,u.showInGraph]]),n("label",{class:"form-check-label px-2",for:"check"+d},x(u.name),9,vu)]))),128))]),_:1}),n("div",{class:"row p-0 m-0",onClick:s},p[4]||(p[4]=[n("div",{class:"col-12 mb-3 pe-3 mt-0"},[n("button",{class:"btn btn-sm btn-secondary float-end"},"Schließen")],-1)]))]),_:1})):w("",!0)],64))}}),Et=F(yu,[["__scopeId","data-v-5b5cf6b3"]]),_u={class:"countername"},wu={class:"subgrid pt-1"},ku=I({__name:"ClCounter",props:{counter:{}},setup(a){const e=a,t=g(()=>e.counter.power>0?"Bezug":"Export"),o=g(()=>e.counter.power>0?"var(--color-evu)":"var(--color-pv)");return(s,r)=>(l(),$(at,{titlecolor:"var(--color-title)",fullwidth:!0},{title:_(()=>[n("span",_u,x(s.counter.name),1)]),buttons:_(()=>[e.counter.power!=0?(l(),$(Ce,{key:0,bgcolor:o.value},{default:_(()=>[J(x(t.value),1)]),_:1},8,["bgcolor"])):w("",!0),v(Ce,{color:"var(--color-bg)"},{default:_(()=>[J(" ID: "+x(e.counter.id),1)]),_:1})]),default:_(()=>[n("div",wu,[v(ee,{heading:"Leistung:",small:!0,class:"grid-left grid-col-4"},{default:_(()=>[v(vt,{watt:Math.abs(e.counter.power)},null,8,["watt"])]),_:1}),v(ee,{heading:"Bezogen:",small:!0,class:"grid-col-4"},{default:_(()=>[v(We,{"watt-h":e.counter.energy_imported},null,8,["watt-h"])]),_:1}),v(ee,{heading:"Exportiert:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[v(We,{"watt-h":e.counter.energy_exported},null,8,["watt-h"])]),_:1})])]),_:1}))}}),xu=F(ku,[["__scopeId","data-v-01dd8c4d"]]);class Su{constructor(e){b(this,"id");b(this,"name","Zähler");b(this,"power",0);b(this,"energy_imported",0);b(this,"energy_exported",0);b(this,"grid",!1);b(this,"type","counter");b(this,"color","var(--color-evu)");b(this,"energyPv",0);b(this,"energyBat",0);b(this,"pvPercentage",0);b(this,"icon","");this.id=e}}const xe=he({});function $u(a,e){if(a in xe)console.info("Duplicate counter message: "+a);else switch(xe[a]=new Su(a),xe[a].type=e,e){case"counter":xe[a].color="var(--color-evu)";break;case"inverter":xe[a].color="var(--color-pv)";break;case"cp":xe[a].color="var(--color-charging)";break;case"bat":xe[a].color="var(--color-bat)";break}}const Mu=I({__name:"CounterList",setup(a){return(e,t)=>(l(),$(Ge,{"variable-width":!0},{title:_(()=>t[0]||(t[0]=[n("span",{class:"fas fa-bolt me-2",style:{color:"var(--color-evu)"}}," ",-1),n("span",null,"Zähler",-1)])),default:_(()=>[(l(!0),f(j,null,Z(i(xe),(o,s)=>(l(),f("div",{key:s,class:"subgrid pb-2"},[v(xu,{counter:o},null,8,["counter"])]))),128))]),_:1}))}}),zt=F(Mu,[["__scopeId","data-v-5f059284"]]),Pu={class:"vehiclename"},Cu={class:"subgrid"},Iu=I({__name:"VlVehicle",props:{vehicle:{}},setup(a){const e=a,t=g(()=>{let s="Unterwegs",r=e.vehicle.chargepoint;return r!=null&&(r.isCharging?s="Lädt ("+r.name+")":r.isPluggedIn&&(s="Bereit ("+r.name+")")),s}),o=g(()=>{let s=e.vehicle.chargepoint;return s!=null?s.isLocked?"var(--color-evu)":s.isCharging?"var(--color-charging)":s.isPluggedIn?"var(--color-battery)":"var(--color-axis)":"var(--color-axis)"});return(s,r)=>(l(),$(at,{titlecolor:"var(--color-title)",fullwidth:!0},{title:_(()=>[n("span",Pu,x(e.vehicle.name),1)]),default:_(()=>[n("div",Cu,[v(ee,{heading:"Status:",small:!0,class:"grid-left grid-col-4"},{default:_(()=>[n("span",{style:K({color:o.value}),class:"d-flex justify-content-center align-items-center status-string"},x(t.value),5)]),_:1}),v(ee,{heading:"Ladestand:",small:!0,class:"grid-col-4"},{default:_(()=>[J(x(Math.round(e.vehicle.soc))+" % ",1)]),_:1}),v(ee,{heading:"Reichweite:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[J(x(Math.round(e.vehicle.range))+" km ",1)]),_:1})])]),_:1}))}}),Bu=F(Iu,[["__scopeId","data-v-9e2cb63e"]]),Vu=I({__name:"VehicleList",setup(a){return(e,t)=>(l(),$(Ge,{"variable-width":!0},{title:_(()=>t[0]||(t[0]=[n("span",{class:"fas fa-car me-2",style:{color:"var(--color-charging)"}}," ",-1),n("span",null,"Fahrzeuge",-1)])),default:_(()=>[(l(!0),f(j,null,Z(Object.values(i(Q)).filter(o=>o.visible),(o,s)=>(l(),f("div",{key:s,class:"subgrid px-4"},[v(Bu,{vehicle:o},null,8,["vehicle"])]))),128))]),_:1}))}}),Dt=F(Vu,[["__scopeId","data-v-716be083"]]),Lu={class:"grapharea"},Tu={id:"pricechart",class:"p-1 m-0 pricefigure"},Ou={viewBox:"0 0 400 280"},Au=["id","origin","transform"],ut=380,ya=250,Wt=12,Eu=I({__name:"GlobalPriceChart",props:{id:{}},setup(a){const e=a,t=Y(!1),o={top:0,bottom:15,left:20,right:0},s=g(()=>{let T=[];return re.etPriceList.size>0&&re.etPriceList.forEach((M,V)=>{T.push([V,M])}),T}),r=g(()=>s.value.length>1?(ut-o.left-o.right)/s.value.length:0),h=g(()=>{let T=Le(s.value,M=>M[0]);return T[1]&&(T[1]=new Date(T[1]),T[1].setTime(T[1].getTime()+36e5)),tt().range([o.left,ut-o.right]).domain(T)}),p=g(()=>{let T=[0,0];return s.value.length>0&&(T=Le(s.value,M=>M[1]),T[0]=Math.floor(T[0])-1,T[1]=Math.floor(T[1])+1),T}),u=g(()=>Re().range([ya-o.bottom,0]).domain(p.value)),d=g(()=>{const T=Ne(),M=[[o.left,u.value(m.lowerPriceBound)],[ut-o.right,u.value(m.lowerPriceBound)]];return T(M)}),c=g(()=>{const T=Ne(),M=[[o.left,u.value(m.upperPriceBound)],[ut-o.right,u.value(m.upperPriceBound)]];return T(M)}),k=g(()=>{const T=Ne(),M=[[o.left,u.value(0)],[ut-o.right,u.value(0)]];return T(M)}),P=g(()=>ht(h.value).ticks(s.value.length).tickSize(5).tickSizeInner(-250).tickFormat(T=>T.getHours()%6==0?it("%H:%M")(T):"")),A=g(()=>gt(u.value).ticks(p.value[1]-p.value[0]).tickSize(0).tickSizeInner(-360).tickFormat(T=>T%5!=0?"":T.toString())),G=g(()=>{t.value==!0;const T=le("g#"+E.value);T.selectAll("*").remove(),T.selectAll("bar").data(s.value).enter().append("g").append("rect").attr("class","bar").attr("x",B=>h.value(B[0])).attr("y",B=>u.value(B[1])).attr("width",r.value).attr("height",B=>u.value(p.value[0])-u.value(B[1])).attr("fill","var(--color-charging)");const V=T.append("g").attr("class","axis").call(P.value);V.attr("transform","translate(0,"+(ya-o.bottom)+")"),V.selectAll(".tick").attr("font-size",Wt).attr("color","var(--color-bg)"),V.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",B=>B.getHours()%6==0?"2":"0.5"),V.select(".domain").attr("stroke","var(--color-bg");const S=T.append("g").attr("class","axis").call(A.value);S.attr("transform","translate("+o.left+",0)"),S.selectAll(".tick").attr("font-size",Wt).attr("color","var(--color-bg)"),S.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",B=>B%5==0?"2":"0.5"),S.select(".domain").attr("stroke","var(--color-bg)"),p.value[0]<0&&T.append("path").attr("d",k.value).attr("stroke","var(--color-fg)"),T.append("path").attr("d",d.value).attr("stroke","green"),T.append("path").attr("d",c.value).attr("stroke","red");const C=T.selectAll("ttip").data(s.value).enter().append("g").attr("class","ttarea");C.append("rect").attr("x",B=>h.value(B[0])).attr("y",B=>u.value(B[1])).attr("height",B=>u.value(p.value[0])-u.value(B[1])).attr("class","ttrect").attr("width",r.value).attr("opacity","1%").attr("fill","var(--color-charging)");const D=C.append("g").attr("class","ttmessage").attr("transform",B=>"translate("+(h.value(B[0])-30+r.value/2)+","+(u.value(B[1])-16)+")");D.append("rect").attr("rx",5).attr("width","60").attr("height","30").attr("fill","var(--color-menu)");const z=D.append("text").attr("text-anchor","middle").attr("x",30).attr("y",12).attr("font-size",Wt).attr("fill","var(--color-bg)");return z.append("tspan").attr("x",30).attr("dy","0em").text(B=>it("%H:%M")(B[0])),z.append("tspan").attr("x",30).attr("dy","1.1em").text(B=>Math.round(B[1]*10)/10+" ct"),"PriceChart.vue"}),E=g(()=>"priceChartCanvas"+e.id);return Te(()=>{t.value=!t.value}),(T,M)=>(l(),$(Ge,{"variable-width":!0},{title:_(()=>M[0]||(M[0]=[n("span",{class:"fas fa-coins me-2",style:{color:"var(--color-battery)"}}," ",-1),n("span",null,"Strompreis",-1)])),buttons:_(()=>[i(re).active?(l(),$(Ce,{key:0,bgcolor:"var(--color-charging)"},{default:_(()=>[J(x(i(re).etCurrentPriceString),1)]),_:1})):w("",!0),i(re).active?(l(),$(Ce,{key:1,bgcolor:"var(--color-menu)"},{default:_(()=>[J(x(i(re).etProvider),1)]),_:1})):w("",!0)]),default:_(()=>[n("div",Lu,[n("figure",Tu,[(l(),f("svg",Ou,[n("g",{id:E.value,origin:G.value,transform:"translate("+o.top+","+o.left+") "},null,8,Au)]))])])]),_:1}))}}),Gt=F(Eu,[["__scopeId","data-v-578b98b5"]]),zu={class:"subgrid pt-1"},Du=I({__name:"IlInverter",props:{inverter:{}},setup(a){const e=a,t=g(()=>({color:e.inverter.color}));return(o,s)=>(l(),$(at,{titlecolor:"var(--color-title)",fullwidth:!0},{title:_(()=>[n("span",{class:"invertername",style:K(t.value)},x(o.inverter.name),5)]),buttons:_(()=>[e.inverter.power<0?(l(),$(Ce,{key:0,bgcolor:"var(--color-pv)"},{default:_(()=>[J(x(i(Pe)(-e.inverter.power)),1)]),_:1})):w("",!0)]),default:_(()=>[n("div",zu,[v(ee,{heading:"Heute:",small:!0,class:"grid-col-4 grid-left"},{default:_(()=>[v(We,{"watt-h":e.inverter.energy},null,8,["watt-h"])]),_:1}),v(ee,{heading:"Monat:",small:!0,class:"grid-col-4"},{default:_(()=>[v(We,{"watt-h":e.inverter.energy_month},null,8,["watt-h"])]),_:1}),v(ee,{heading:"Jahr:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[v(We,{"watt-h":e.inverter.energy_year},null,8,["watt-h"])]),_:1})])]),_:1}))}}),Wu=F(Du,[["__scopeId","data-v-258d8f17"]]),Gu=I({__name:"InverterList",setup(a){return(e,t)=>(l(),$(Ge,{"variable-width":!0},{title:_(()=>t[0]||(t[0]=[n("span",{class:"fas fa-solar-panel me-2",style:{color:"var(--color-pv)"}}," ",-1),n("span",null,"Wechselrichter",-1)])),buttons:_(()=>[i(q).pv.power>0?(l(),$(Ce,{key:0,bgcolor:"var(--color-pv)"},{default:_(()=>[J(x(i(Pe)(i(q).pv.power)),1)]),_:1})):w("",!0)]),default:_(()=>[(l(!0),f(j,null,Z(i(we),([o,s])=>(l(),f("div",{key:o,class:"subgrid pb-2"},[v(Wu,{inverter:s},null,8,["inverter"])]))),128))]),_:1}))}}),Ut=F(Gu,[["__scopeId","data-v-b7a71f81"]]),Uu={class:"row py-0 px-0 m-0"},ju=["breakpoints"],Fu=I({__name:"CarouselFix",setup(a){let e,t;const o=Y(!1),s=g(()=>o.value?{992:{slidesPerView:1,spaceBetween:0}}:{992:{slidesPerView:3,spaceBetween:0}});return Ka(()=>m.zoomGraph,r=>{if(e){let h=r?"1":"3";t.setAttribute("slides-per-view",h),e.activeIndex=m.zoomedWidget,e.update()}}),Te(()=>{let r=document.querySelector(".swiper-carousel");r&&(t=r,e=t.swiper)}),(r,h)=>(l(),f("div",Uu,[n("swiper-container",{"space-between":0,pagination:{clickable:!0},"slides-per-view":"1",class:"p-0 m-0 swiper-carousel",breakpoints:s.value},[n("swiper-slide",null,[n("div",{class:R([i(De)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[ue(r.$slots,"item1",{},void 0,!0)],2)]),n("swiper-slide",null,[n("div",{class:R([i(De)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[ue(r.$slots,"item2",{},void 0,!0)],2)]),n("swiper-slide",null,[n("div",{class:R([i(De)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[ue(r.$slots,"item3",{},void 0,!0)],2)])],8,ju)]))}}),Nu=F(Fu,[["__scopeId","data-v-17424929"]]);function Hu(a,e){a=="openWB/graph/boolDisplayLiveGraph"?de.displayLiveGraph=+e==1:a.match(/^openwb\/graph\/alllivevaluesJson[1-9][0-9]*$/i)?Ru(a,e):a=="openWB/graph/lastlivevaluesJson"?Ju(a,e):a=="openWB/graph/config/duration"&&(ge.duration=JSON.parse(e))}function Ru(a,e){if(!ge.initialized){let t=[];const o=e.toString().split(` +`);o.length>1?t=o.map(h=>JSON.parse(h)):t=[];const s=a.match(/(\d+)$/g),r=s?s[0]:"";r!=""&&typeof ge.rawDataPacks[+r-1]>"u"&&(ge.rawDataPacks[+r-1]=t,ge.initCounter++)}if(ge.initCounter==16){const t=[];ge.unsubscribeRefresh(),ge.initialized=!0,ge.rawDataPacks.forEach(o=>{o.forEach(s=>{const r=za(s);t.push(r)})}),ft(t),ge.subscribeUpdates()}}function Ju(a,e){const t=JSON.parse(e),o=za(t);ge.graphRefreshCounter++,ft(y.data.concat(o)),ge.graphRefreshCounter>60&&ge.activate()}function za(a){const e=Object.values(O).length>0?Object.values(O)[0].connectedVehicle:0,t=Object.values(O).length>1?Object.values(O)[1].connectedVehicle:1,o="ev"+e+"-soc",s="ev"+t+"-soc",r={};r.date=+a.timestamp*1e3,+a.grid>0?(r.evuIn=+a.grid,r.evuOut=0):+a.grid<=0?(r.evuIn=0,r.evuOut=-a.grid):(r.evuIn=0,r.evuOut=0),+a["pv-all"]>=0?(r.pv=+a["pv-all"],r.inverter=0):(r.pv=0,r.inverter=-a["pv-all"]),r.house=+a["house-power"],+a["bat-all-power"]>0?(r.batOut=0,r.batIn=+a["bat-all-power"]):+a["bat-all-power"]<0?(r.batOut=-a["bat-all-power"],r.batIn=0):(r.batOut=0,r.batIn=0),a["bat-all-soc"]?r.batSoc=+a["bat-all-soc"]:r.batSoc=0,a[o]&&(r["soc"+e]=+a[o]),a[s]&&(r["soc"+t]=+a[s]),r.charging=+a["charging-all"];for(let h=0;h<10;h++){const p="cp"+h;r[p]=+(a[p+"-power"]??0)}return r.selfUsage=r.pv-r.evuOut,r.selfUsage<0&&(r.selfUsage=0),r.devices=0,r}const qu=["evuIn","pv","batOut","evuOut","charging","house"];let $t=[];function Yu(a,e){const{entries:t,names:o,totals:s}=JSON.parse(e);Fe.value=new Map(Object.entries(o)),ta(),$t=[],Qt.forEach(h=>{L.setEnergyPv(h,0),L.setEnergyBat(h,0)});const r=Qu(t);ft(r),Zt(s,$t),m.debug&&Xu(t,s,r),y.graphMode=="today"&&setTimeout(()=>ce.activate(),3e5)}function Qu(a){const e=[];let t={};return a.forEach(o=>{t=Zu(o);const s=t;e.push(s)}),e}function Zu(a){const e={};e.date=a.timestamp*1e3,e.evuOut=0,e.evuIn=0,Object.entries(a.counter).forEach(([s,r])=>{r.grid&&(e.evuOut+=r.power_exported,e.evuIn+=r.power_imported,$t.includes(s)||$t.push(s))}),e.evuOut==0&&e.evuIn==0&&Object.entries(a.counter).forEach(s=>{e.evuOut+=s[1].power_exported,e.evuIn+=s[1].power_imported}),Object.entries(a.pv).forEach(([s,r])=>{s!="all"?e[s]=r.power_exported:e.pv=r.power_exported}),Object.entries(a.bat).length>0?(e.batIn=a.bat.all.power_imported,e.batOut=a.bat.all.power_exported,e.batSoc=a.bat.all.soc??0):(e.batIn=0,e.batOut=0,e.batSoc=0),Object.entries(a.cp).forEach(([s,r])=>{s!="all"?(e[s]=r.power_imported,L.keys().includes(s)||L.addItem(s)):e.charging=r.power_imported}),Object.entries(a.ev).forEach(([s,r])=>{s!="all"&&(e["soc"+s.substring(2)]=r.soc)}),e.devices=0;let t=0;return Object.entries(a.sh).forEach(([s,r])=>{var h;s!="all"&&(e[s]=r.power_imported??0,L.keys().includes(s)||(L.addItem(s),L.items[s].showInGraph=te.get(+s.slice(2)).showInGraph),(h=te.get(+s.slice(2)))!=null&&h.countAsHouse?t+=e[s]:e.devices+=r.power_imported??0)}),e.selfUsage=Math.max(0,e.pv-e.evuOut),a.hc&&a.hc.all?e.house=a.hc.all.power_imported-t:e.house=e.evuIn+e.batOut+e.pv-e.evuOut-e.charging-e.devices-e.batOut,e.evuIn+e.batOut+e.pv>0?L.keys().filter(s=>!qu.includes(s)&&s!="charging").forEach(s=>{$n(s,e)}):Object.keys(e).forEach(s=>{e[s+"Pv"]=0,e[s+"Bat"]=0}),e}function Xu(a,e,t){console.debug("---------------------------------------- Graph Data -"),console.debug(["--- Incoming graph data:",a]),console.debug(["--- Incoming energy data:",e]),console.debug(["--- Data to be displayed:",t]),console.debug("-----------------------------------------------------")}let _t={};const na=["charging","house","batIn","devices"],Ku=["evuIn","pv","batOut","batIn","evuOut","devices","sh1","sh2","sh3","sh4","sh5","sh6","sh7","sh8","sh9"];let et=[];function ed(a,e){const{entries:t,names:o,totals:s}=JSON.parse(e);Fe.value=new Map(Object.entries(o)),ta(),et=[],na.forEach(r=>{L.items[r].energyPv=0,L.items[r].energyBat=0}),t.length>0&&ft(Da(t)),Zt(s,et)}function td(a,e){const{entries:t,names:o,totals:s}=JSON.parse(e);Fe.value=new Map(Object.entries(o)),ta(),et=[],na.forEach(r=>{L.items[r].energyPv=0,L.items[r].energyBat=0}),t.length>0&&ft(Da(t)),Zt(s,et)}function Da(a){const e=[];let t={};return _t={},a.forEach(o=>{t=ad(o),e.push(t),Object.keys(t).forEach(s=>{s!="date"&&(t[s]<0&&(console.warn(`Negative energy value for ${s} in row ${t.date}. Ignoring the value.`),t[s]=0),_t[s]?_t[s]+=t[s]:_t[s]=t[s])})}),e}function ad(a){const e={},t=en("%Y%m%d")(a.date);t&&(e.date=y.graphMode=="month"?t.getDate():t.getMonth()+1),e.evuOut=0,e.evuIn=0;let o=0,s=0;return Object.entries(a.counter).forEach(([h,p])=>{o+=p.energy_exported,s+=p.energy_imported,p.grid&&(e.evuOut+=p.energy_exported,e.evuIn+=p.energy_imported,et.includes(h)||et.push(h))}),et.length==0&&(e.evuOut=o,e.evuIn=s),e.pv=a.pv.all.energy_exported,Object.entries(a.bat).length>0?(a.bat.all.energy_imported>=0?e.batIn=a.bat.all.energy_imported:(console.warn("ignoring negative value for batIn on day "+e.date),e.batIn=0),a.bat.all.energy_exported>=0?e.batOut=a.bat.all.energy_exported:(console.warn("ignoring negative value for batOut on day "+e.date),e.batOut=0)):(e.batIn=0,e.batOut=0),Object.entries(a.cp).forEach(([h,p])=>{h!="all"?(L.keys().includes(h)||L.addItem(h),e[h]=p.energy_imported):e.charging=p.energy_imported}),Object.entries(a.ev).forEach(([h,p])=>{h!="all"&&(e["soc-"+h]=p.soc)}),e.devices=Object.entries(a.sh).reduce((h,p)=>(L.keys().includes(p[0])||L.addItem(p[0]),p[1].energy_imported>=0?h+=p[1].energy_imported:console.warn(`Negative energy value for device ${p[0]} in row ${e.date}. Ignoring this value`),h),0),a.hc&&a.hc.all?e.house=a.hc.all.energy_imported:e.house=e.pv+e.evuIn+e.batOut-e.evuOut-e.batIn-e.charging,e.selfUsage=e.pv-e.evuOut,e.evuIn+e.batOut+e.pv>0?L.keys().filter(h=>!Ku.includes(h)).forEach(h=>{Mn(h,e)}):na.map(h=>{e[h+"Pv"]=0,e[h+"Bat"]=0}),e}function nd(a,e){const t=rd(a);if(t&&!pe.value.has(t)){console.warn("Invalid battery index: ",t);return}a=="openWB/bat/config/configured"?de.isBatteryConfigured=e=="true":a=="openWB/bat/get/power"?+e>0?(H.batIn.power=+e,q.batOut.power=0):(H.batIn.power=0,q.batOut.power=-e):a=="openWB/bat/get/soc"?de.batterySoc=+e:a=="openWB/bat/get/daily_exported"?q.batOut.energy=+e:a=="openWB/bat/get/daily_imported"?H.batIn.energy=+e:t&&pe.value.has(t)&&(a.match(/^openwb\/bat\/[0-9]+\/get\/daily_exported$/i)?pe.value.get(t).dailyYieldExport=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/daily_imported$/i)?pe.value.get(t).dailyYieldImport=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/exported$/i)?pe.value.get(t).exported=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/fault_state$/i)?pe.value.get(t).faultState=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/fault_str$/i)?pe.value.get(t).faultStr=e:a.match(/^openwb\/bat\/[0-9]+\/get\/imported$/i)?pe.value.get(t).imported=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/power$/i)?pe.value.get(t).power=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/soc$/i)&&(pe.value.get(t).soc=+e))}function rd(a){let e=0;try{const t=a.match(/(?:\/)([0-9]+)(?=\/)/g);return t?(e=+t[0].replace(/[^0-9]+/g,""),e):void 0}catch(t){console.warn("Parser error in getIndex for topic "+a+": "+t)}}function od(a,e){if(a=="openWB/optional/et/provider")JSON.parse(e).type==null?re.active=!1:(re.active=!0,re.etProvider=JSON.parse(e).name);else if(a=="openWB/optional/et/get/prices"){const t=JSON.parse(e);re.etPriceList=new Map,Object.keys(t).forEach(o=>{re.etPriceList.set(new Date(+o*1e3),t[o]*1e5)})}}function sd(a,e){const t=Wa(a);if(t&&!(t in O)){console.warn("Invalid chargepoint id received: "+t);return}if(a=="openWB/chargepoint/get/power"?H.charging.power=+e:a=="openWB/chargepoint/get/daily_imported"&&(H.charging.energy=+e),a=="openWB/chargepoint/get/daily_exported")de.cpDailyExported=+e;else if(t)if(a.match(/^openwb\/chargepoint\/[0-9]+\/config$/i))if(O[t]){const o=JSON.parse(e);O[t].name=o.name,O[t].icon=o.name,se["cp"+t]?(se["cp"+t].name=o.name,se["cp"+t].icon=o.name):se["cp"+t]={name:o.name,icon:o.name,color:"var(--color-charging)"}}else console.warn("invalid chargepoint index: "+t);else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/state_str$/i))O[t].stateStr=JSON.parse(e);else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/fault_str$/i))O[t].faultStr=JSON.parse(e);else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/fault_state$/i))O[t].faultState=+e;else if(a.match(/^openWB\/chargepoint\/[0-9]+\/get\/power$/i))O[t].power=+e;else if(a.match(/^openWB\/chargepoint\/[0-9]+\/get\/daily_imported$/i))O[t].dailyYield=+e;else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/plug_state$/i))O[t].isPluggedIn=e=="true";else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/charge_state$/i))O[t].isCharging=e=="true";else if(a.match(/^openwb\/chargepoint\/[0-9]+\/set\/manual_lock$/i))O[t].updateIsLocked(e=="true");else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/enabled$/i))O[t].isEnabled=e=="1";else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/phases_in_use/i))O[t].phasesInUse=+e;else if(a.match(/^openwb\/chargepoint\/[0-9]+\/set\/current/i))O[t].current=+e;else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/currents/i))O[t].currents=JSON.parse(e);else if(a.match(/^openwb\/chargepoint\/[0-9]+\/set\/log/i)){const o=JSON.parse(e);O[t].chargedSincePlugged=o.imported_since_plugged}else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/soc$/i)){const o=JSON.parse(e);O[t].soc=o.soc,O[t].waitingForSoc=!1,O[t].rangeCharged=o.range_charged,O[t].rangeUnit=o.range_unit}else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/info$/i)){const o=JSON.parse(e);O[t].vehicleName=String(o.name),O[t].updateConnectedVehicle(+o.id)}else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/config$/i)){const o=JSON.parse(e);O[t].averageConsumption=o.average_consumption}else a.match(/^openwb\/chargepoint\/[0-9]+\/set\/charge_template$/i)&&(O[t].chargeTemplate=JSON.parse(e))}function id(a,e){const t=Wa(a);if(t!=null){if(!(t in Q)){const o=new bn(t);Q[t]=o}if(a.match(/^openwb\/vehicle\/[0-9]+\/name$/i))Object.values(O).forEach(o=>{o.connectedVehicle==t&&(o.vehicleName=JSON.parse(e))}),Q[t].name=JSON.parse(e);else if(a.match(/^openwb\/vehicle\/[0-9]+\/get\/soc$/i))Q[t].soc=JSON.parse(e);else if(a.match(/^openwb\/vehicle\/[0-9]+\/get\/range$/i))isNaN(+e)?Q[t].range=0:Q[t].range=+e;else if(a.match(/^openwb\/vehicle\/[0-9]+\/charge_template$/i))Q[t].updateChargeTemplateId(+e);else if(a.match(/^openwb\/vehicle\/[0-9]+\/ev_template$/i))Q[t].updateEvTemplateId(+e);else if(a.match(/^openwb\/vehicle\/[0-9]+\/soc_module\/config$/i)){const o=JSON.parse(e);Object.values(O).forEach(s=>{s.connectedVehicle==t&&(s.isSocConfigured=o.type!==null,s.isSocManual=o.type=="manual")}),Q[t].isSocConfigured=o.type!==null,Q[t].isSocManual=o.type=="manual"}}}function ld(a,e){if(a.match(/^openwb\/vehicle\/template\/charge_template\/[0-9]+$/i)){const t=a.match(/[0-9]+$/i);if(t){const o=+t[0];Ft[o]=JSON.parse(e)}}else if(a.match(/^openwb\/vehicle\/template\/ev_template\/[0-9]+$/i)){const t=a.match(/[0-9]+$/i);if(t){const o=+t[0],s=JSON.parse(e);yn[o]=s}}}function Wa(a){let e=0;try{const t=a.match(/(?:\/)([0-9]+)(?=\/)/g);return t?(e=+t[0].replace(/[^0-9]+/g,""),e):void 0}catch(t){console.warn("Parser error in getIndex for topic "+a+": "+t)}}function cd(a,e){a.match(/^openWB\/LegacySmarthome\/config\//i)?ud(a,e):a.match(/^openWB\/LegacySmarthome\/Devices\//i)&&dd(a,e)}function ud(a,e){const t=Ga(a);if(t==null)return;te.has(t)||Rt(t);const o=te.get(t);a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_configured$/i)?o.configured=e!="0":a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_name$/i)?(o.name=e.toString(),o.icon=e.toString(),se["sh"+t].name=e.toString(),se["sh"+t].icon=e.toString()):a.match(/^openWB\/LegacySmarthome\/config\/set\/Devices\/[0-9]+\/mode$/i)?o.isAutomatic=e=="0":a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_canSwitch$/i)?o.canSwitch=e=="1":a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_homeConsumtion$/i)?o.countAsHouse=e=="1":a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_temperatur_configured$/i)&&(o.tempConfigured=+e)}function dd(a,e){const t=Ga(a);if(t==null){console.warn("Smarthome: Missing index in "+a);return}te.has(t)||Rt(t);const o=te.get(t);if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/Watt$/i))o.power=+e,hd("power");else if(!a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/Wh$/i)){if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/RunningTimeToday$/i))o.runningTime=+e;else if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor0$/i))o.temp[0]=+e;else if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor1$/i))o.temp[1]=+e;else if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor2$/i))o.temp[2]=+e;else if(a.match(/^openWB\/LegacySmartHome\/Devices\/[0-9]+\/Status$/i))switch(+e){case 10:o.status="off";break;case 11:o.status="on";break;case 20:o.status="detection";break;case 30:o.status="timeout";break;default:o.status="off"}}}function hd(a){switch(a){case"power":H.devices.power=[...te.values()].filter(e=>e.configured&&!e.countAsHouse).reduce((e,t)=>e+t.power,0);break;case"energy":H.devices.energy=[...te.values()].filter(e=>e.configured&&!e.countAsHouse).reduce((e,t)=>e+t.energy,0);break;default:console.error("Unknown category")}}function Ga(a){let e=0;try{const t=a.match(/(?:\/)([0-9]+)(?=\/)/g);return t?(e=+t[0].replace(/[^0-9]+/g,""),e):void 0}catch(t){console.warn("Parser error in getIndex for topic "+a+": "+t)}}const Mt=he([]);class ra{constructor(e,t,o,s){b(this,"name");b(this,"children");b(this,"count");b(this,"lastValue");this.name=e,this.children=t,this.count=o,this.lastValue=s}insert(e,t){if(e.length){const o=e.splice(1);if(e[0]==this.name)if(o.length){let s=!1;if(this.children.forEach(r=>{r.name==o[0]&&(r.insert(o,t),s=!0)}),!s){const r=new ra(o[0],[],0,"");r.insert(o,t),this.children.push(r)}}else this.count=this.count+1,this.lastValue=t}}}function pd(a,e){const t=a.split("/");if(t.length){let o=!1;if(Mt.forEach(s=>{s.name==t[0]&&(s.insert(t,e),o=!0)}),!o){const s=new ra(t[0],[],0,"");Mt.push(s),s.insert(t,e)}}}const gd=["openWB/counter/#","openWB/bat/#","openWB/pv/#","openWB/chargepoint/#","openWB/vehicle/#","openWB/general/chargemode_config/pv_charging/#","openWB/optional/et/#","openWB/system/#","openWB/LegacySmartHome/#","openWB/command/"+Jt()+"/#"];function md(){mn(fd),gd.forEach(a=>{Ke(a)}),fe()}function fd(a,e){pd(a,e.toString());const t=e.toString();a.match(/^openwb\/counter\/[0-9]+\//i)?vd(a,t):a.match(/^openwb\/counter\//i)?bd(a,t):a.match(/^openwb\/bat\//i)?nd(a,t):a.match(/^openwb\/pv\//i)?yd(a,t):a.match(/^openwb\/chargepoint\//i)?sd(a,t):a.match(/^openwb\/vehicle\/template\//i)?ld(a,t):a.match(/^openwb\/vehicle\//i)?id(a,t):a.match(/^openwb\/general\/chargemode_config\/pv_charging\//i)?_d(a,t):a.match(/^openwb\/graph\//i)?Hu(a,t):a.match(/^openwb\/log\/daily\//i)?Yu(a,t):a.match(/^openwb\/log\/monthly\//i)?ed(a,t):a.match(/^openwb\/log\/yearly\//i)?td(a,t):a.match(/^openwb\/optional\/et\//i)?od(a,t):a.match(/^openwb\/system\//i)?kd(a,t):a.match(/^openwb\/LegacySmartHome\//i)?cd(a,t):a.match(/^openwb\/command\//i)&&xd(a,t)}function vd(a,e){const t=a.split("/"),o=+t[2];if(o==de.evuId?wd(a,e):t[3]=="config",t[3]=="get"&&o in xe)switch(t[4]){case"power":xe[o].power=+e;break;case"config":break;case"fault_str":break;case"fault_state":break;case"power_factors":break;case"imported":break;case"exported":break;case"frequency":break;case"daily_imported":xe[o].energy_imported=+e;break;case"daily_exported":xe[o].energy_exported=+e;break}}function bd(a,e){if(a.match(/^openwb\/counter\/get\/hierarchy$/i)){const t=JSON.parse(e);if(t.length){wn(),is();for(const o of t)o.type=="counter"&&(de.evuId=o.id);Ua(t[0])}}else a.match(/^openwb\/counter\/set\/home_consumption$/i)?H.house.power=+e:a.match(/^openwb\/counter\/set\/daily_yield_home_consumption$/i)&&(H.house.energy=+e)}function Ua(a){switch(a.type){case"counter":$u(a.id,a.type);break;case"cp":_n(a.id);break;case"bat":Oa(a.id);break}a.children.forEach(e=>Ua(e))}function yd(a,e){const t=Sd(a);t&&!we.value.has(t)&&zn(t),a=="openWB/pv/get/power"?q.pv.power=-e:a=="openWB/pv/get/daily_exported"?q.pv.energy=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/power$/i)?we.value.get(t).power=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/daily_exported$/i)?we.value.get(t).energy=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/monthly_exported$/i)?we.value.get(t).energy_month=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/yearly_exported$/i)?we.value.get(t).energy_year=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/exported$/i)&&(we.value.get(t).energy_total=+e)}function _d(a,e){const t=a.split("/");if(t.length>0)switch(t[4]){case"bat_mode":de.updatePvBatteryPriority(JSON.parse(e));break}}function wd(a,e){switch(a.split("/")[4]){case"power":+e>0?(q.evuIn.power=+e,H.evuOut.power=0):(q.evuIn.power=0,H.evuOut.power=-e);break;case"daily_imported":q.evuIn.energy=+e;break;case"daily_exported":H.evuOut.energy=+e;break}}function kd(a,e){if(a.match(/^openWB\/system\/device\/[0-9]+\/component\/[0-9]+\/config$/i)){const t=JSON.parse(e);switch(t.type){case"counter":case"consumption_counter":xe[t.id]&&(xe[t.id].name=t.name);break;case"inverter":case"inverter_secondary":we.value.has(t.id)||we.value.set(t.id,new $a(t.id)),we.value.get(t.id).name=t.name;break;case"bat":pe.value.has(t.id)||Oa(t.id),pe.value.get(t.id).name=t.name}}}function xd(a,e){const t=a.split("/");if(a.match(/^openWB\/command\/[a-z]+\/error$/i)&&t[2]==Jt()){const o=JSON.parse(e);console.error(`Error message from openWB: +Command: ${o.command} +Data: JSON.stringify(err.data) +Error: + ${o.error}`)}}function Sd(a){let e=0;try{const t=a.match(/(?:\/)([0-9]+)(?=\/)/g);return t?(e=+t[0].replace(/[^0-9]+/g,""),e):void 0}catch(t){console.warn("Parser error in getIndex for topic "+a+": "+t)}}const $d={key:0,class:"fas fa-caret-down"},Md={key:1,class:"fas fa-caret-right"},Pd={key:0,class:"content p-2 m-2"},Cd={key:1,class:"sublist col-md-9 m-0 p-0 ps-2"},Id=I({__name:"MqttNode",props:{node:{},level:{},hide:{type:Boolean},expandAll:{type:Boolean}},setup(a){const e=a;let t=Y(!e.hide),o=Y(!1);const s=g(()=>e.node.name),r=g(()=>[...e.node.children].sort((c,k)=>c.namee.node.count>0?"("+e.node.count+")":""),p=g(()=>e.node.children.length),u=g(()=>e.node.lastValue!=""?{"font-style":"italic","grid-column-start":e.level,"grid-column-end":-1}:{"grid-column-start":e.level,"grid-column-end":-1});function d(){p.value>0&&(t.value=!t.value),e.node.lastValue!=""&&(o.value=!o.value)}return(c,k)=>{const P=tn("MqttNode",!0);return l(),f(j,null,[n("div",{class:"name py-2 px-2 m-0",style:K(u.value),onClick:d},[(i(t)||e.expandAll)&&p.value>0||i(o)?(l(),f("span",$d)):(l(),f("span",Md)),J(" "+x(s.value)+x(h.value),1)],4),i(o)?(l(),f("div",Pd,[n("code",null,x(e.node.lastValue),1)])):w("",!0),(i(t)||e.expandAll)&&p.value>0?(l(),f("div",Cd,[(l(!0),f(j,null,Z(r.value,(A,G)=>(l(),$(P,{key:G,level:e.level+1,node:A,hide:!0,"expand-all":e.expandAll},null,8,["level","node","expand-all"]))),128))])):w("",!0)],64)}}}),Bd=F(Id,[["__scopeId","data-v-df7e578a"]]),Vd={class:"mqviewer"},Ld={class:"row pt-2"},Td={class:"col"},Od={key:0,class:"topiclist"},Ad=I({__name:"MQTTViewer",setup(a){Te(()=>{});const e=Y(!1);function t(){e.value=!e.value}const o=g(()=>e.value?"active":"");return(s,r)=>(l(),f("div",Vd,[n("div",Ld,[n("div",Td,[r[0]||(r[0]=n("h3",{class:"mqtitle ps-2"},"MQTT Message Viewer",-1)),r[1]||(r[1]=n("hr",null,null,-1)),n("button",{class:R(["btn btn-small btn-outline-primary ms-2",o.value]),onClick:t}," Expand All ",2),r[2]||(r[2]=n("hr",null,null,-1))])]),i(Mt)[0]?(l(),f("div",Od,[(l(!0),f(j,null,Z(i(Mt)[0].children.sort((h,p)=>h.name(l(),$(Bd,{key:p,node:h,level:1,hide:!0,"expand-all":e.value},null,8,["node","expand-all"]))),128))])):w("",!0)]))}}),Ed=F(Ad,[["__scopeId","data-v-a349646d"]]),zd=["value"],Dd=I({__name:"SelectInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=e,s=g({get(){return t.modelValue},set(r){o("update:modelValue",r)}});return(r,h)=>mt((l(),f("select",{id:"selectme","onUpdate:modelValue":h[0]||(h[0]=p=>s.value=p),class:"form-select"},[(l(!0),f(j,null,Z(r.options,(p,u)=>(l(),f("option",{key:u,value:p[1]},x(p[0]),9,zd))),128))],512)),[[an,s.value]])}}),Wd=F(Dd,[["__scopeId","data-v-5e33ce1f"]]),Gd={class:"subgrid m-0 p-0"},Ud={class:"settingscolumn"},jd={class:"settingscolumn"},Fd={class:"settingscolumn"},Nd=I({__name:"ThemeSettings",emits:["reset-arcs"],setup(a,{emit:e}){const t=e,o=[["Dunkel","dark"],["Hell","light"],["Blau","blue"]],s=[["3 kW","0"],["3,1 kW","1"],["3,14 kW","2"],["3,141 kW","3"],["3141 W","4"]],r=[["Orange","normal"],["Grün/Violett","standard"],["Bunt","advanced"]],h=[["Aus","off"],["Menü","navbar"],["Buttonleiste","buttonbar"]],p=[["Aus","no"],['"Alles"-Reiter',"infoview"],["Immer","always"]];return(u,d)=>(l(),$(Ge,{"full-width":!0},{title:_(()=>d[23]||(d[23]=[J(" Look & Feel ")])),buttons:_(()=>d[24]||(d[24]=[n("span",{type:"button",class:"float-end mt-0 ms-1","data-bs-toggle":"collapse","data-bs-target":"#themesettings"},[n("span",null,[n("i",{class:"fa-solid fa-circle-check"})])],-1)])),default:_(()=>[n("div",Gd,[n("div",Ud,[v(U,{fullwidth:!0,title:"Farbschema",icon:"fa-adjust",infotext:"Hintergrundfarbe"},{default:_(()=>[v(ke,{modelValue:i(m).displayMode,"onUpdate:modelValue":d[0]||(d[0]=c=>i(m).displayMode=c),options:o},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Farbschema Smart-Home-Geräte",icon:"fa-palette",infotext:"Für die Smart-Home-Geräte stehen mehrere Schemata zur Verfügung."},{default:_(()=>[v(ke,{modelValue:i(m).smartHomeColors,"onUpdate:modelValue":d[1]||(d[1]=c=>i(m).smartHomeColors=c),options:r},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Grafik: Raster",icon:"fa-th",infotext:"Verwende ein Hintergrundraster in den Grafiken"},{"inline-item":_(()=>[v(ie,{modelValue:i(m).showGrid,"onUpdate:modelValue":d[2]||(d[2]=c=>i(m).showGrid=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Variable Bogenlänge",icon:"fa-chart-area",infotext:"Im Graph 'Aktuelle Leistung' können die Bögen immer die volle Länge haben, oder entsprechend des aktuellen Gesamtleistung verkürzt dargestellt werden."},{"inline-item":_(()=>[v(ie,{modelValue:i(m).showRelativeArcs,"onUpdate:modelValue":d[3]||(d[3]=c=>i(m).showRelativeArcs=c)},null,8,["modelValue"])]),_:1}),i(m).showRelativeArcs?(l(),$(U,{key:0,fullwidth:!0,title:"Bögen zurücksetzen",icon:"fa-undo",infotext:"Durch Click auf den Button wird die Maximallänge der Bögen auf den aktuellen Wert gesetzt."},{default:_(()=>[i(m).showRelativeArcs?(l(),f("button",{key:0,class:"btn btn-secondary",onClick:d[4]||(d[4]=c=>t("reset-arcs"))}," Reset ")):w("",!0)]),_:1})):w("",!0),v(U,{fullwidth:!0,title:"Anzahl Dezimalstellen",icon:"fa-sliders-h",infotext:"Alle kW- und kWh-Werte werden mit der gewählten Anzahl an Stellen angezeigt."},{default:_(()=>[v(Wd,{modelValue:i(m).decimalPlaces,"onUpdate:modelValue":d[5]||(d[5]=c=>i(m).decimalPlaces=c),options:s},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Uhrzeit anzeigen",icon:"fa-clock",infotext:"Zeige die aktuelle Uhrzeit an. In der Menüleiste oder neben den Lade-Buttons."},{default:_(()=>[v(ke,{modelValue:i(m).showClock,"onUpdate:modelValue":d[6]||(d[6]=c=>i(m).showClock=c),options:h},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Kompakte Ladepunktliste",icon:"fa-list",infotext:"Zeige eine einzelne Ladepunktliste statt separater Element pro Ladepunkt."},{default:_(()=>[v(ke,{modelValue:i(m).shortCpList,"onUpdate:modelValue":d[7]||(d[7]=c=>i(m).shortCpList=c),options:p},null,8,["modelValue"])]),_:1})]),n("div",jd,[v(U,{fullwidth:!0,title:"Buttonleiste für Ladepunkte",icon:"fa-window-maximize",infotext:"Informationen zu Ladepunkten über den Diagrammen anzeigen."},{"inline-item":_(()=>[v(ie,{modelValue:i(m).showButtonBar,"onUpdate:modelValue":d[8]||(d[8]=c=>i(m).showButtonBar=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Filter-Buttons",icon:"fa-filter",infotext:"Hauptseite mit Buttons zur Auswahl der Kategorie."},{"inline-item":_(()=>[v(ie,{modelValue:i(m).showQuickAccess,"onUpdate:modelValue":d[9]||(d[9]=c=>i(m).showQuickAccess=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Breite Widgets",icon:"fa-desktop",infotext:"Widgets immer breit machen"},{"inline-item":_(()=>[v(ie,{modelValue:i(m).preferWideBoxes,"onUpdate:modelValue":d[10]||(d[10]=c=>i(m).preferWideBoxes=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Stufenlose Displaybreite",icon:"fa-maximize",infotext:"Die Breite des Displays wird immer voll ausgenutzt. Dies kann in einigen Fällen zu inkorrekter Darstellung führen."},{"inline-item":_(()=>[v(ie,{modelValue:i(m).fluidDisplay,"onUpdate:modelValue":d[11]||(d[11]=c=>i(m).fluidDisplay=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Animationen",icon:"fa-film",infotext:"Animationen anzeigen"},{"inline-item":_(()=>[v(ie,{modelValue:i(m).showAnimations,"onUpdate:modelValue":d[12]||(d[12]=c=>i(m).showAnimations=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Zähler anzeigen",icon:"fa-chart-bar",infotext:"Zeige die Werte zusätzlich angelegter Zähler"},{"inline-item":_(()=>[v(ie,{modelValue:i(m).showCounters,"onUpdate:modelValue":d[13]||(d[13]=c=>i(m).showCounters=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Fahrzeuge anzeigen",icon:"fa-car",infotext:"Zeige alle Fahrzeuge mit Ladestand und Reichweite"},{"inline-item":_(()=>[v(ie,{modelValue:i(m).showVehicles,"onUpdate:modelValue":d[14]||(d[14]=c=>i(m).showVehicles=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Standardfahrzeug anzeigen",icon:"fa-car",infotext:"Zeige das Standard-Fahrzeug in der Fahzeugliste"},{"inline-item":_(()=>[v(ie,{modelValue:i(m).showStandardVehicle,"onUpdate:modelValue":d[15]||(d[15]=c=>i(m).showStandardVehicle=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Wechselrichter-Details anzeigen",icon:"fa-solar-panel",infotext:"Zeige Details zu den einzelnen Wechselrichtern"},{"inline-item":_(()=>[v(ie,{modelValue:i(m).showInverters,"onUpdate:modelValue":d[16]||(d[16]=c=>i(m).showInverters=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Alternatives Energie-Widget",icon:"fa-chart-area",infotext:"Horizontale Darstellung der Energie-Werte"},{"inline-item":_(()=>[v(ie,{modelValue:i(m).alternativeEnergy,"onUpdate:modelValue":d[17]||(d[17]=c=>i(m).alternativeEnergy=c)},null,8,["modelValue"])]),_:1})]),n("div",Fd,[v(U,{fullwidth:!0,title:"Preistabelle anzeigen",icon:"fa-car",infotext:"Zeige die Strompreistabelle in einer separaten Box an"},{"inline-item":_(()=>[v(ie,{modelValue:i(m).showPrices,"onUpdate:modelValue":d[18]||(d[18]=c=>i(m).showPrices=c)},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Untere Markierung in der Preistabelle",icon:"fa-car",infotext:"Position der unteren Markierung festlegen"},{default:_(()=>[v(ye,{id:"lowerPriceBound",modelValue:i(m).lowerPriceBound,"onUpdate:modelValue":d[19]||(d[19]=c=>i(m).lowerPriceBound=c),min:-25,max:95,step:.1,decimals:1,unit:"ct"},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"Obere Markierung in der Preistabelle",icon:"fa-car",infotext:"Position der oberen Markierung festlegen"},{default:_(()=>[v(ye,{id:"upperPriceBound",modelValue:i(m).upperPriceBound,"onUpdate:modelValue":d[20]||(d[20]=c=>i(m).upperPriceBound=c),min:-25,max:95,step:.1,decimals:1,unit:"ct"},null,8,["modelValue"])]),_:1}),v(U,{fullwidth:!0,title:"IFrame-Support für Einstellungen (Experimentell)",icon:"fa-gear",infotext:"Erlaubt das Lesen der Einstellungen, wenn das UI in andere Applikationen eingebettet ist (z.B. HomeAssistant). Erfordert eine mit SSL verschlüsselte Verbindung über HTTPS! Experimentelles Feature."},{"inline-item":_(()=>[v(ie,{modelValue:i(m).sslPrefs,"onUpdate:modelValue":d[21]||(d[21]=c=>i(m).sslPrefs=c)},null,8,["modelValue"])]),_:1}),d[25]||(d[25]=n("hr",null,null,-1)),v(U,{fullwidth:!0,title:"Debug-Modus",icon:"fa-bug-slash",infotext:"Kontrollausgaben in der Console sowie Anzeige von Bildschirmbreite und MQ-Viewer"},{"inline-item":_(()=>[v(ie,{modelValue:i(m).debug,"onUpdate:modelValue":d[22]||(d[22]=c=>i(m).debug=c)},null,8,["modelValue"])]),_:1}),d[26]||(d[26]=n("hr",null,null,-1))]),d[27]||(d[27]=n("div",{class:"grid-col-12 mb-3 me-3"},[n("button",{class:"btn btn-sm btn-secondary float-end","data-bs-toggle":"collapse","data-bs-target":"#themesettings"}," Schließen ")],-1))])]),_:1}))}}),Hd=F(Nd,[["__scopeId","data-v-785bc80b"]]),Rd={class:"container-fluid px-2 m-0 theme-colors"},Jd={id:"themesettings",class:"collapse"},qd={class:"row py-0 px-0 m-0"},Yd={key:1,class:"row py-0 m-0 d-flex justify-content-center"},Qd={key:2,class:"nav nav-tabs nav-justified mx-1 mt-2",role:"tablist"},Zd={key:0,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#pricecharttabbed"},Xd={key:1,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#vehiclelist"},Kd={key:2,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#batterylist"},eh={key:3,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#smarthomelist"},th={key:4,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#counterlist"},ah={key:5,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#inverterlist"},nh={key:3,id:"cpContent",class:"tab-content mx-0 pt-1"},rh={id:"showAll",class:"tab-pane active",role:"tabpanel","aria-labelledby":"showall-tab"},oh={class:"row py-0 m-0 d-flex justify-content-center"},sh={id:"chargepointlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"chargepoint-tab"},ih={class:"row py-0 m-0 d-flex justify-content-center"},lh={id:"vehiclelist",class:"tab-pane",role:"tabpanel","aria-labelledby":"vehicle-tab"},ch={key:0,class:"row py-0 m-0 d-flex justify-content-center"},uh={id:"batterylist",class:"tab-pane",role:"tabpanel","aria-labelledby":"battery-tab"},dh={class:"row py-0 m-0 d-flex justify-content-center"},hh={id:"smarthomelist",class:"tab-pane",role:"tabpanel","aria-labelledby":"smarthome-tab"},ph={key:0,class:"row py-0 m-0 d-flex justify-content-center"},gh={id:"counterlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"counter-tab"},mh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},fh={id:"inverterlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"inverter-tab"},vh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},bh={id:"pricecharttabbed",class:"tab-pane",role:"tabpanel","aria-labelledby":"price-tab"},yh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},_h={key:0,class:"row p-2 mt-5"},wh={class:"col p-2"},kh={class:"d-flex justify-content-between"},xh={class:"mx-4"},Sh={key:0},$h=I({__name:"ColorsTheme",setup(a){const e=Y(!1),t=g(()=>[...te.values()].filter(h=>h.configured).length>0);function o(){Ba()}function s(){e.value=!e.value}Te(()=>{o(),window.addEventListener("resize",Vn),window.addEventListener("focus",r),md()});function r(){document.hasFocus()&&fe(!0)}return(h,p)=>(l(),f(j,null,[n("div",Rd,[n("div",Jd,[v(Hd,{onResetArcs:i(On)},null,8,["onResetArcs"])]),i(m).showButtonBar?(l(),$(ru,{key:0})):w("",!0),n("div",qd,[v(Nu,null,nn({item1:_(()=>[v(hr)]),item2:_(()=>[v(yo)]),_:2},[i(m).alternativeEnergy?{name:"item3",fn:_(()=>[v(vs)]),key:"0"}:{name:"item3",fn:_(()=>[v(No)]),key:"1"}]),1024)]),i(m).showQuickAccess?w("",!0):(l(),f("div",Yd,[v(Ot,{id:"1",compact:i(m).shortCpList=="always"},null,8,["compact"]),i(m).showPrices?(l(),$(Gt,{key:0,id:"NoTabs"})):w("",!0),i(m).showVehicles?(l(),$(Dt,{key:1})):w("",!0),v(At),t.value?(l(),$(Et,{key:2})):w("",!0),i(m).showCounters?(l(),$(zt,{key:3})):w("",!0),i(m).showInverters?(l(),$(Ut,{key:4})):w("",!0)])),i(m).showQuickAccess?(l(),f("nav",Qd,[p[6]||(p[6]=rn('AllesLadepunkte',2)),i(m).showPrices?(l(),f("a",Zd,p[0]||(p[0]=[n("i",{class:"fa-solid fa-lg fa-coins"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Strompreis",-1)]))):w("",!0),i(m).showVehicles?(l(),f("a",Xd,p[1]||(p[1]=[n("i",{class:"fa-solid fa-lg fa-car"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Fahrzeuge",-1)]))):w("",!0),i(de).isBatteryConfigured?(l(),f("a",Kd,p[2]||(p[2]=[n("i",{class:"fa-solid fa-lg fa-car-battery"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Speicher",-1)]))):w("",!0),t.value?(l(),f("a",eh,p[3]||(p[3]=[n("i",{class:"fa-solid fa-lg fa-plug"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Smart Home",-1)]))):w("",!0),i(m).showCounters?(l(),f("a",th,p[4]||(p[4]=[n("i",{class:"fa-solid fa-lg fa-bolt"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Zähler",-1)]))):w("",!0),i(m).showInverters?(l(),f("a",ah,p[5]||(p[5]=[n("i",{class:"fa-solid fa-lg fa-solar-panel"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Wechselrichter",-1)]))):w("",!0)])):w("",!0),i(m).showQuickAccess?(l(),f("div",nh,[n("div",rh,[n("div",oh,[v(Ot,{id:"2",compact:i(m).shortCpList!="no"},null,8,["compact"]),i(m).showPrices?(l(),$(Gt,{key:0,id:"Overview"})):w("",!0),i(m).showVehicles?(l(),$(Dt,{key:1})):w("",!0),v(At),t.value?(l(),$(Et,{key:2})):w("",!0),i(m).showCounters?(l(),$(zt,{key:3})):w("",!0),i(m).showInverters?(l(),$(Ut,{key:4})):w("",!0)])]),n("div",sh,[n("div",ih,[v(Ot,{id:"3",compact:i(m).shortCpList=="always"},null,8,["compact"])])]),n("div",lh,[i(m).showVehicles?(l(),f("div",ch,[v(Dt)])):w("",!0)]),n("div",uh,[n("div",dh,[v(At)])]),n("div",hh,[t.value?(l(),f("div",ph,[v(Et)])):w("",!0)]),n("div",gh,[i(m).showCounters?(l(),f("div",mh,[v(zt)])):w("",!0)]),n("div",fh,[i(m).showInverters?(l(),f("div",vh,[v(Ut)])):w("",!0)]),n("div",bh,[i(m).showPrices?(l(),f("div",yh,[v(Gt,{id:"Tabbed"})])):w("",!0)])])):w("",!0)]),i(m).debug?(l(),f("div",_h,[n("div",wh,[p[7]||(p[7]=n("hr",null,null,-1)),n("div",kh,[n("p",xh,"Screen Width: "+x(i(St).x),1),n("button",{class:"btn btn-sm btn-secondary mx-4",onClick:s}," MQ Viewer ")]),e.value?(l(),f("hr",Sh)):w("",!0),e.value?(l(),$(Ed,{key:1})):w("",!0)])])):w("",!0)],64))}}),Mh=F($h,[["__scopeId","data-v-0542a138"]]),Ph={class:"navbar navbar-expand-lg px-0 mb-0"},Ch={key:0,class:"position-absolute-50 navbar-text ms-4 navbar-time",style:{color:"var(--color-menu)"}},Ih=I({__name:"NavigationBar",setup(a){let e;const t=g(()=>m.fluidDisplay?"container-fluid":"container-lg");return Te(()=>{e=setInterval(()=>{Nt.value=new Date},1e3)}),on(()=>{clearInterval(e)}),(o,s)=>(l(),f(j,null,[n("nav",Ph,[n("div",{class:R(t.value)},[s[0]||(s[0]=n("a",{href:"/",class:"navbar-brand"},[n("span",null,"openWB")],-1)),i(m).showClock=="navbar"?(l(),f("span",Ch,x(i(La)(i(Nt))),1)):w("",!0),s[1]||(s[1]=n("button",{class:"navbar-toggler togglebutton ps-5",type:"button","data-bs-toggle":"collapse","data-bs-target":"#mainNavbar","aria-controls":"mainNavbar","aria-expanded":"false","aria-label":"Toggle navigation"},[n("span",{class:"fa-solid fa-ellipsis-vertical"})],-1)),s[2]||(s[2]=n("div",{id:"mainNavbar",class:"collapse navbar-collapse justify-content-end"},[n("div",{class:"nav navbar-nav"},[n("a",{id:"navStatus",class:"nav-link",href:"../../settings/#/Status"},"Status"),n("div",{class:"nav-item dropdown"},[n("a",{id:"loggingDropdown",class:"nav-link",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[J("Auswertungen "),n("i",{class:"fa-solid fa-caret-down"})]),n("div",{class:"dropdown-menu","aria-labelledby":"loggingDropdown"},[n("a",{href:"../../settings/#/Logging/ChargeLog",class:"dropdown-item"},"Ladeprotokoll"),n("a",{href:"../../settings/#/Logging/Chart",class:"dropdown-item"},"Diagramme")])]),n("div",{class:"nav-item dropdown"},[n("a",{id:"settingsDropdown",class:"nav-link",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[J("Einstellungen "),n("span",{class:"fa-solid fa-caret-down"})]),n("div",{class:"dropdown-menu","aria-labelledby":"settingsDropdown"},[n("a",{id:"navSettings",class:"nav-link",href:"../../settings/index.html"},"openWB"),n("a",{class:"nav-link","data-bs-toggle":"collapse","data-bs-target":"#themesettings","aria-expanded":"false","aria-controls":"themeSettings"},[n("span",null,[J("Look&Feel"),n("span",{class:"fa-solid fa-caret-down"})])])])])])],-1))],2)]),n("div",{class:R(t.value)},s[3]||(s[3]=[n("hr",{class:"m-0 p-0 mb-2"},null,-1)]),2)],64))}}),Bh=F(Ih,[["__scopeId","data-v-ed619966"]]),Vh={id:"app",class:"m-0 p-0"},Lh={class:"row p-0 m-0"},Th={class:"col-12 p-0 m-0"},Oh=I({__name:"App",setup(a){const e=g(()=>m.fluidDisplay?"container-fluid":"container-lg");return(t,o)=>(l(),f("div",Vh,[v(Bh),n("div",{class:R(["p-0",e.value])},[n("div",Lh,[n("div",Th,[v(Mh)])])],2)]))}}),Ah=sn(Oh);ln();Ah.mount("#app"); diff --git a/packages/modules/web_themes/colors/web/index.html b/packages/modules/web_themes/colors/web/index.html index 944890e514..7fd994e424 100644 --- a/packages/modules/web_themes/colors/web/index.html +++ b/packages/modules/web_themes/colors/web/index.html @@ -24,9 +24,9 @@ openWB - + - + diff --git a/packages/modules/web_themes/koala/source/src/components/BaseCarousel.vue b/packages/modules/web_themes/koala/source/src/components/BaseCarousel.vue index 04ee7100e0..b4d20a0014 100644 --- a/packages/modules/web_themes/koala/source/src/components/BaseCarousel.vue +++ b/packages/modules/web_themes/koala/source/src/components/BaseCarousel.vue @@ -41,12 +41,12 @@ import { nextTick, onMounted, onBeforeUnmount, + provide, } from 'vue'; import { useQuasar } from 'quasar'; const props = defineProps<{ items: number[]; - cardWidth?: number; }>(); const $q = useQuasar(); @@ -113,6 +113,13 @@ onBeforeUnmount(() => { const effectiveCardWidth = ref(undefined); +// Function provided to child components +const setCardWidth = (width: number | undefined) => { + effectiveCardWidth.value = width ? width + 72 : undefined; // Add 72px to account for padding / margins / navigation buttons in carousel +}; + +provide('setCardWidth', setCardWidth); + // Computes how many cards can fit in the carousel based on carousel width and the card width const groupSize = computed(() => { return effectiveCardWidth.value @@ -164,16 +171,6 @@ const handleSlideChange = () => { window.scrollTo(0, currentScroll); }); }; - -// watches cardWidth prop because it takes time to be emitted and passed through component hierarchy -watch( - () => props.cardWidth, - (newVal) => { - if (newVal && newVal > 0) { - effectiveCardWidth.value = newVal + 72; // Add 72px to account for padding / margins / navigation buttons in carousel - } - }, -); diff --git a/packages/modules/web_themes/koala/source/src/components/charts/historyChart/HistoryChartLegendCategoriesGroup.vue b/packages/modules/web_themes/koala/source/src/components/charts/historyChart/HistoryChartLegendCategoriesGroup.vue new file mode 100644 index 0000000000..2215427764 --- /dev/null +++ b/packages/modules/web_themes/koala/source/src/components/charts/historyChart/HistoryChartLegendCategoriesGroup.vue @@ -0,0 +1,47 @@ + + + diff --git a/packages/modules/web_themes/koala/source/src/components/charts/historyChart/HistoryChartLegendCategory.vue b/packages/modules/web_themes/koala/source/src/components/charts/historyChart/HistoryChartLegendCategory.vue new file mode 100644 index 0000000000..65a9ad58d1 --- /dev/null +++ b/packages/modules/web_themes/koala/source/src/components/charts/historyChart/HistoryChartLegendCategory.vue @@ -0,0 +1,87 @@ + + + + + diff --git a/packages/modules/web_themes/koala/source/src/components/charts/historyChart/HistoryChartLegendStandard.vue b/packages/modules/web_themes/koala/source/src/components/charts/historyChart/HistoryChartLegendStandard.vue new file mode 100644 index 0000000000..4930b478ee --- /dev/null +++ b/packages/modules/web_themes/koala/source/src/components/charts/historyChart/HistoryChartLegendStandard.vue @@ -0,0 +1,83 @@ + + + + + diff --git a/packages/modules/web_themes/koala/source/src/components/charts/historyChart/history-chart-model.ts b/packages/modules/web_themes/koala/source/src/components/charts/historyChart/history-chart-model.ts index efacd28589..59b420e469 100644 --- a/packages/modules/web_themes/koala/source/src/components/charts/historyChart/history-chart-model.ts +++ b/packages/modules/web_themes/koala/source/src/components/charts/historyChart/history-chart-model.ts @@ -1,4 +1,4 @@ -import { TooltipItem, Chart } from 'chart.js'; // Importieren des TooltipItem-Typs +import type { Chart, ChartDataset, TooltipItem } from 'chart.js'; // Importieren des TooltipItem-Typs export interface HistoryChartTooltipItem extends TooltipItem<'line'> { dataset: TooltipItem<'line'>['dataset'] & { unit?: string; @@ -9,3 +9,11 @@ export interface HistoryChartTooltipItem extends TooltipItem<'line'> { export interface ChartComponentRef { chart?: Chart; } + +export type Category = 'chargepoint' | 'vehicle' | 'battery' | 'component'; + +// Add category to the chart datasets +export interface CategorizedDataset + extends ChartDataset<'line', { x: number; y: number }> { + category: Category; +} diff --git a/packages/modules/web_themes/koala/web/assets/ErrorNotFound-N1XZu9vF.js b/packages/modules/web_themes/koala/web/assets/ErrorNotFound-DSHFrUlv.js similarity index 91% rename from packages/modules/web_themes/koala/web/assets/ErrorNotFound-N1XZu9vF.js rename to packages/modules/web_themes/koala/web/assets/ErrorNotFound-DSHFrUlv.js index a3a1bf5a38..d02de3946a 100644 --- a/packages/modules/web_themes/koala/web/assets/ErrorNotFound-N1XZu9vF.js +++ b/packages/modules/web_themes/koala/web/assets/ErrorNotFound-DSHFrUlv.js @@ -1 +1 @@ -import{x as s,_ as n,z as a,a2 as l,a3 as o,C as u,Q as c}from"./index-D17w0IYB.js";const d=s({name:"ErrorNotFound",__name:"ErrorNotFound",setup(r,{expose:e}){e();const t={};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}}),p={class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"};function i(r,e,t,_,f,x){return a(),l("div",p,[o("div",null,[e[0]||(e[0]=o("div",{style:{"font-size":"30vh"}},"404",-1)),e[1]||(e[1]=o("div",{class:"text-h2",style:{opacity:"0.4"}},"Oops. Nothing here...",-1)),u(c,{class:"q-mt-xl",color:"white","text-color":"blue",unelevated:"",to:"/",label:"Go Home","no-caps":""})])])}const v=n(d,[["render",i],["__file","ErrorNotFound.vue"]]);export{v as default}; +import{x as s,_ as n,z as a,a2 as l,a3 as o,C as u,Q as c}from"./index-v0G7K8Rw.js";const d=s({name:"ErrorNotFound",__name:"ErrorNotFound",setup(r,{expose:e}){e();const t={};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}}),p={class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"};function i(r,e,t,_,f,x){return a(),l("div",p,[o("div",null,[e[0]||(e[0]=o("div",{style:{"font-size":"30vh"}},"404",-1)),e[1]||(e[1]=o("div",{class:"text-h2",style:{opacity:"0.4"}},"Oops. Nothing here...",-1)),u(c,{class:"q-mt-xl",color:"white","text-color":"blue",unelevated:"",to:"/",label:"Go Home","no-caps":""})])])}const v=n(d,[["render",i],["__file","ErrorNotFound.vue"]]);export{v as default}; diff --git a/packages/modules/web_themes/koala/web/assets/IndexPage-BPvL5jsZ.js b/packages/modules/web_themes/koala/web/assets/IndexPage-DVYGiijA.js similarity index 55% rename from packages/modules/web_themes/koala/web/assets/IndexPage-BPvL5jsZ.js rename to packages/modules/web_themes/koala/web/assets/IndexPage-DVYGiijA.js index 0bb51ad4b6..10afd00809 100644 --- a/packages/modules/web_themes/koala/web/assets/IndexPage-BPvL5jsZ.js +++ b/packages/modules/web_themes/koala/web/assets/IndexPage-DVYGiijA.js @@ -1,28 +1,28 @@ -var Bg=Object.defineProperty;var Ng=(t,e,n)=>e in t?Bg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ae=(t,e,n)=>Ng(t,typeof e!="symbol"?e+"":e,n);import{i as Vs,e as xn,r as N,a as g,o as Ot,j as Wt,F as fd,k as an,R as gd,h as w,G as Js,H as Va,I as Pt,E as _e,v as di,g as $e,c as ze,w as ge,p as Wg,J as er,K as tr,d as Ge,L as md,M as Jn,N as vd,O as Hg,P as Go,S as Or,T as Es,U as Dr,V as Po,W as jg,X as $g,m as nr,l as Ug,q as Yg,Y as Zg,Z as Ea,$ as Ol,a0 as To,Q as Ve,x as Se,a1 as pd,_ as Me,z as V,a2 as K,a3 as q,a4 as Oe,a5 as Je,a6 as Tt,a7 as ue,D as qe,a8 as le,a9 as bd,aa as Xg,u as Kg,ab as Sn,n as ut,ac as yd,ad as Qg,A as ne,B as L,C as I,ae as _d,af as Gg,ag as xd,ah as oi,ai as nn,s as Jg,aj as Sd,ak as em,al as wd,am as ei,an as qn,ao as tm,ap as wn,f as nm,aq as Dl,ar as Aa,as as Ra,at as im,au as om,av as eo,aw as Vl,ax as ks,ay as sm,az as rm,aA as am,aB as lm,aC as El,aD as Al,aE as cm,aF as kd,aG as um,aH as qa,aI as dm,aJ as hm,aK as fm}from"./index-D17w0IYB.js";import{t as yo,d as Io,Q as gm,v as Rl,w as ql,x as mm,a as un,c as dn,k as In,m as ir,n as or,o as Oo,q as sr,l as vm,u as Cd,y as La,b as Md,z as Pd,A as Td,e as Id,f as pm,B as rr,h as bm,C as ym,D as _m,E as xm,F as Od,G as Dd,H as Sm,I as Ll,J as wm,K as km,L as Cm,M as Fl,N as Mm,O as zl,P as Pm,R as Tm,S as Bl,p as _o,g as Pi,T as Im,s as ln,r as pn}from"./use-quasar-BcbqF7R8.js";import{u as Be}from"./mqtt-store-DXcyZOMZ.js";let Vr,Jo=0;const St=new Array(256);for(let t=0;t<256;t++)St[t]=(t+256).toString(16).substring(1);const Om=(()=>{const t=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(t!==void 0){if(t.randomBytes!==void 0)return t.randomBytes;if(t.getRandomValues!==void 0)return e=>{const n=new Uint8Array(e);return t.getRandomValues(n),n}}return e=>{const n=[];for(let i=e;i>0;i--)n.push(Math.floor(Math.random()*256));return n}})(),Nl=4096;function sa(){(Vr===void 0||Jo+16>Nl)&&(Jo=0,Vr=Om(Nl));const t=Array.prototype.slice.call(Vr,Jo,Jo+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,St[t[0]]+St[t[1]]+St[t[2]]+St[t[3]]+"-"+St[t[4]]+St[t[5]]+"-"+St[t[6]]+St[t[7]]+"-"+St[t[8]]+St[t[9]]+"-"+St[t[10]]+St[t[11]]+St[t[12]]+St[t[13]]+St[t[14]]+St[t[15]]}let Dm=0;const Vm=["click","keydown"],Em={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${Dm++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function Am(t,e,n,i){const o=Vs(fd,xn);if(o===xn)return console.error("QTab/QRouteTab component needs to be child of QTabs"),xn;const{proxy:s}=$e(),r=N(null),a=N(null),l=N(null),c=g(()=>t.disable===!0||t.ripple===!1?!1:Object.assign({keyCodes:[13,32],early:!0},t.ripple===!0?{}:t.ripple)),u=g(()=>o.currentModel.value===t.name),d=g(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(u.value===!0?" q-tab--active"+(o.tabProps.value.activeClass?" "+o.tabProps.value.activeClass:"")+(o.tabProps.value.activeColor?` text-${o.tabProps.value.activeColor}`:"")+(o.tabProps.value.activeBgColor?` bg-${o.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(t.icon&&t.label&&o.tabProps.value.inlineLabel===!1?" q-tab--full":"")+(t.noCaps===!0||o.tabProps.value.noCaps===!0?" q-tab--no-caps":"")+(t.disable===!0?" disabled":" q-focusable q-hoverable cursor-pointer")),h=g(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(o.tabProps.value.inlineLabel===!0?"row no-wrap q-tab__content--inline":"column")+(t.contentClass!==void 0?` ${t.contentClass}`:"")),f=g(()=>t.disable===!0||o.hasFocus.value===!0||u.value===!1&&o.hasActiveTab.value===!0?-1:t.tabindex||0);function m(y,_){if(_!==!0&&r.value!==null&&r.value.focus(),t.disable!==!0){o.updateModel({name:t.name}),n("click",y);return}}function p(y){Js(y,[13,32])?m(y,!0):Va(y)!==!0&&y.keyCode>=35&&y.keyCode<=40&&y.altKey!==!0&&y.metaKey!==!0&&o.onKbdNavigate(y.keyCode,s.$el)===!0&&Pt(y),n("keydown",y)}function v(){const y=o.tabProps.value.narrowIndicator,_=[],C=w("div",{ref:l,class:["q-tab__indicator",o.tabProps.value.indicatorClass]});t.icon!==void 0&&_.push(w(_e,{class:"q-tab__icon",name:t.icon})),t.label!==void 0&&_.push(w("div",{class:"q-tab__label"},t.label)),t.alert!==!1&&_.push(t.alertIcon!==void 0?w(_e,{class:"q-tab__alert-icon",color:t.alert!==!0?t.alert:void 0,name:t.alertIcon}):w("div",{class:"q-tab__alert"+(t.alert!==!0?` text-${t.alert}`:"")})),y===!0&&_.push(C);const S=[w("div",{class:"q-focus-helper",tabindex:-1,ref:r}),w("div",{class:h.value},di(e.default,_))];return y===!1&&S.push(C),S}const b={name:g(()=>t.name),rootRef:a,tabIndicatorRef:l,routeData:i};Ot(()=>{o.unregisterTab(b)}),Wt(()=>{o.registerTab(b)});function x(y,_){const C={ref:a,class:d.value,tabindex:f.value,role:"tab","aria-selected":u.value===!0?"true":"false","aria-disabled":t.disable===!0?"true":void 0,onClick:m,onKeydown:p,..._};return an(w(y,C,v()),[[gd,c.value]])}return{renderTab:x,$tabs:o}}const Er=ze({name:"QTab",props:Em,emits:Vm,setup(t,{slots:e,emit:n}){const{renderTab:i}=Am(t,e,n);return()=>i("div")}});let Do=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const e=document.createElement("div");Object.assign(e.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(e),t.scrollLeft=-1e3,Do=t.scrollLeft>=0,t.remove()}function Rm(t,e,n){const i=n===!0?["left","right"]:["top","bottom"];return`absolute-${e===!0?i[0]:i[1]}${t?` text-${t}`:""}`}const qm=["left","center","right","justify"],Lm=ze({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:t=>qm.includes(t)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(t,{slots:e,emit:n}){const{proxy:i}=$e(),{$q:o}=i,{registerTick:s}=yo(),{registerTick:r}=yo(),{registerTick:a}=yo(),{registerTimeout:l,removeTimeout:c}=Io(),{registerTimeout:u,removeTimeout:d}=Io(),h=N(null),f=N(null),m=N(t.modelValue),p=N(!1),v=N(!0),b=N(!1),x=N(!1),y=[],_=N(0),C=N(!1);let S=null,E=null,A;const D=g(()=>({activeClass:t.activeClass,activeColor:t.activeColor,activeBgColor:t.activeBgColor,indicatorClass:Rm(t.indicatorColor,t.switchIndicator,t.vertical),narrowIndicator:t.narrowIndicator,inlineLabel:t.inlineLabel,noCaps:t.noCaps})),P=g(()=>{const $=_.value,re=m.value;for(let X=0;X<$;X++)if(y[X].name.value===re)return!0;return!1}),R=g(()=>`q-tabs__content--align-${p.value===!0?"left":x.value===!0?"justify":t.align}`),M=g(()=>`q-tabs row no-wrap items-center q-tabs--${p.value===!0?"":"not-"}scrollable q-tabs--${t.vertical===!0?"vertical":"horizontal"} q-tabs__arrows--${t.outsideArrows===!0?"outside":"inside"} q-tabs--mobile-with${t.mobileArrows===!0?"":"out"}-arrows`+(t.dense===!0?" q-tabs--dense":"")+(t.shrink===!0?" col-shrink":"")+(t.stretch===!0?" self-stretch":"")),H=g(()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+R.value+(t.contentClass!==void 0?` ${t.contentClass}`:"")),z=g(()=>t.vertical===!0?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),U=g(()=>t.vertical!==!0&&o.lang.rtl===!0),j=g(()=>Do===!1&&U.value===!0);ge(U,T),ge(()=>t.modelValue,$=>{G({name:$,setCurrent:!0,skipEmit:!0})}),ge(()=>t.outsideArrows,Y);function G({name:$,setCurrent:re,skipEmit:X}){m.value!==$&&(X!==!0&&t["onUpdate:modelValue"]!==void 0&&n("update:modelValue",$),(re===!0||t["onUpdate:modelValue"]===void 0)&&(de(m.value,$),m.value=$))}function Y(){s(()=>{te({width:h.value.offsetWidth,height:h.value.offsetHeight})})}function te($){if(z.value===void 0||f.value===null)return;const re=$[z.value.container],X=Math.min(f.value[z.value.scroll],Array.prototype.reduce.call(f.value.children,(De,ye)=>De+(ye[z.value.content]||0),0)),ce=re>0&&X>re;p.value=ce,ce===!0&&r(T),x.value=reDe.name.value===$):null,ce=re!=null&&re!==""?y.find(De=>De.name.value===re):null;if(lt===!0)lt=!1;else if(X&&ce){const De=X.tabIndicatorRef.value,ye=ce.tabIndicatorRef.value;S!==null&&(clearTimeout(S),S=null),De.style.transition="none",De.style.transform="none",ye.style.transition="none",ye.style.transform="none";const Pe=De.getBoundingClientRect(),ot=ye.getBoundingClientRect();ye.style.transform=t.vertical===!0?`translate3d(0,${Pe.top-ot.top}px,0) scale3d(1,${ot.height?Pe.height/ot.height:1},1)`:`translate3d(${Pe.left-ot.left}px,0,0) scale3d(${ot.width?Pe.width/ot.width:1},1,1)`,a(()=>{S=setTimeout(()=>{S=null,ye.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",ye.style.transform="none"},70)})}ce&&p.value===!0&&O(ce.rootRef.value)}function O($){const{left:re,width:X,top:ce,height:De}=f.value.getBoundingClientRect(),ye=$.getBoundingClientRect();let Pe=t.vertical===!0?ye.top-ce:ye.left-re;if(Pe<0){f.value[t.vertical===!0?"scrollTop":"scrollLeft"]+=Math.floor(Pe),T();return}Pe+=t.vertical===!0?ye.height-De:ye.width-X,Pe>0&&(f.value[t.vertical===!0?"scrollTop":"scrollLeft"]+=Math.ceil(Pe),T())}function T(){const $=f.value;if($===null)return;const re=$.getBoundingClientRect(),X=t.vertical===!0?$.scrollTop:Math.abs($.scrollLeft);U.value===!0?(v.value=Math.ceil(X+re.width)<$.scrollWidth-1,b.value=X>0):(v.value=X>0,b.value=t.vertical===!0?Math.ceil(X+re.height)<$.scrollHeight:Math.ceil(X+re.width)<$.scrollWidth)}function Q($){E!==null&&clearInterval(E),E=setInterval(()=>{Z($)===!0&&B()},5)}function ae(){Q(j.value===!0?Number.MAX_SAFE_INTEGER:0)}function fe(){Q(j.value===!0?0:Number.MAX_SAFE_INTEGER)}function B(){E!==null&&(clearInterval(E),E=null)}function J($,re){const X=Array.prototype.filter.call(f.value.children,ot=>ot===re||ot.matches&&ot.matches(".q-tab.q-focusable")===!0),ce=X.length;if(ce===0)return;if($===36)return O(X[0]),X[0].focus(),!0;if($===35)return O(X[ce-1]),X[ce-1].focus(),!0;const De=$===(t.vertical===!0?38:37),ye=$===(t.vertical===!0?40:39),Pe=De===!0?-1:ye===!0?1:void 0;if(Pe!==void 0){const ot=U.value===!0?-1:1,tt=X.indexOf(re)+Pe*ot;return tt>=0&&ttj.value===!0?{get:$=>Math.abs($.scrollLeft),set:($,re)=>{$.scrollLeft=-re}}:t.vertical===!0?{get:$=>$.scrollTop,set:($,re)=>{$.scrollTop=re}}:{get:$=>$.scrollLeft,set:($,re)=>{$.scrollLeft=re}});function Z($){const re=f.value,{get:X,set:ce}=we.value;let De=!1,ye=X(re);const Pe=$=$)&&(De=!0,ye=$),ce(re,ye),T(),De}function Ee($,re){for(const X in $)if($[X]!==re[X])return!1;return!0}function Xe(){let $=null,re={matchedLen:0,queryDiff:9999,hrefLen:0};const X=y.filter(Pe=>Pe.routeData!==void 0&&Pe.routeData.hasRouterLink.value===!0),{hash:ce,query:De}=i.$route,ye=Object.keys(De).length;for(const Pe of X){const ot=Pe.routeData.exact.value===!0;if(Pe.routeData[ot===!0?"linkIsExactActive":"linkIsActive"].value!==!0)continue;const{hash:tt,query:vt,matched:At,href:W}=Pe.routeData.resolvedLink.value,me=Object.keys(vt).length;if(ot===!0){if(tt!==ce||me!==ye||Ee(De,vt)===!1)continue;$=Pe.name.value;break}if(tt!==""&&tt!==ce||me!==0&&Ee(vt,De)===!1)continue;const ke={matchedLen:At.length,queryDiff:ye-me,hrefLen:W.length-tt.length};if(ke.matchedLen>re.matchedLen){$=Pe.name.value,re=ke;continue}else if(ke.matchedLen!==re.matchedLen)continue;if(ke.queryDiffre.hrefLen&&($=Pe.name.value,re=ke)}if($===null&&y.some(Pe=>Pe.routeData===void 0&&Pe.name.value===m.value)===!0){lt=!1;return}G({name:$,setCurrent:!0})}function _t($){if(c(),C.value!==!0&&h.value!==null&&$.target&&typeof $.target.closest=="function"){const re=$.target.closest(".q-tab");re&&h.value.contains(re)===!0&&(C.value=!0,p.value===!0&&O(re))}}function et(){l(()=>{C.value=!1},30)}function dt(){Vt.avoidRouteWatcher===!1?u(Xe):d()}function mt(){if(A===void 0){const $=ge(()=>i.$route.fullPath,dt);A=()=>{$(),A=void 0}}}function ht($){y.push($),_.value++,Y(),$.routeData===void 0||i.$route===void 0?u(()=>{if(p.value===!0){const re=m.value,X=re!=null&&re!==""?y.find(ce=>ce.name.value===re):null;X&&O(X.rootRef.value)}}):(mt(),$.routeData.hasRouterLink.value===!0&&dt())}function Dt($){y.splice(y.indexOf($),1),_.value--,Y(),A!==void 0&&$.routeData!==void 0&&(y.every(re=>re.routeData===void 0)===!0&&A(),dt())}const Vt={currentModel:m,tabProps:D,hasFocus:C,hasActiveTab:P,registerTab:ht,unregisterTab:Dt,verifyRouteModel:dt,updateModel:G,onKbdNavigate:J,avoidRouteWatcher:!1};Wg(fd,Vt);function Ut(){S!==null&&clearTimeout(S),B(),A!==void 0&&A()}let Et,lt;return Ot(Ut),er(()=>{Et=A!==void 0,Ut()}),tr(()=>{Et===!0&&(mt(),lt=!0,dt()),Y()}),()=>w("div",{ref:h,class:M.value,role:"tablist",onFocusin:_t,onFocusout:et},[w(gm,{onResize:te}),w("div",{ref:f,class:H.value,onScroll:T},Ge(e.default)),w(_e,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(v.value===!0?"":" q-tabs__arrow--faded"),name:t.leftIcon||o.iconSet.tabs[t.vertical===!0?"up":"left"],onMousedownPassive:ae,onTouchstartPassive:ae,onMouseupPassive:B,onMouseleavePassive:B,onTouchendPassive:B}),w(_e,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(b.value===!0?"":" q-tabs__arrow--faded"),name:t.rightIcon||o.iconSet.tabs[t.vertical===!0?"down":"right"],onMousedownPassive:fe,onTouchstartPassive:fe,onMouseupPassive:B,onMouseleavePassive:B,onTouchendPassive:B})])}});function Fm(t){const e=[.06,6,50];return typeof t=="string"&&t.length&&t.split(":").forEach((n,i)=>{const o=parseFloat(n);o&&(e[i]=o)}),e}const zm=md({name:"touch-swipe",beforeMount(t,{value:e,arg:n,modifiers:i}){if(i.mouse!==!0&&Jn.has.touch!==!0)return;const o=i.mouseCapture===!0?"Capture":"",s={handler:e,sensitivity:Fm(n),direction:Rl(i),noop:vd,mouseStart(r){ql(r,s)&&Hg(r)&&(Go(s,"temp",[[document,"mousemove","move",`notPassive${o}`],[document,"mouseup","end","notPassiveCapture"]]),s.start(r,!0))},touchStart(r){if(ql(r,s)){const a=r.target;Go(s,"temp",[[a,"touchmove","move","notPassiveCapture"],[a,"touchcancel","end","notPassiveCapture"],[a,"touchend","end","notPassiveCapture"]]),s.start(r)}},start(r,a){Jn.is.firefox===!0&&Or(t,!0);const l=Es(r);s.event={x:l.left,y:l.top,time:Date.now(),mouse:a===!0,dir:!1}},move(r){if(s.event===void 0)return;if(s.event.dir!==!1){Pt(r);return}const a=Date.now()-s.event.time;if(a===0)return;const l=Es(r),c=l.left-s.event.x,u=Math.abs(c),d=l.top-s.event.y,h=Math.abs(d);if(s.event.mouse!==!0){if(us.sensitivity[0]&&(s.event.dir=d<0?"up":"down"),s.direction.horizontal===!0&&u>h&&h<100&&f>s.sensitivity[0]&&(s.event.dir=c<0?"left":"right"),s.direction.up===!0&&us.sensitivity[0]&&(s.event.dir="up"),s.direction.down===!0&&u0&&u<100&&m>s.sensitivity[0]&&(s.event.dir="down"),s.direction.left===!0&&u>h&&c<0&&h<100&&f>s.sensitivity[0]&&(s.event.dir="left"),s.direction.right===!0&&u>h&&c>0&&h<100&&f>s.sensitivity[0]&&(s.event.dir="right"),s.event.dir!==!1?(Pt(r),s.event.mouse===!0&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),mm(),s.styleCleanup=p=>{s.styleCleanup=void 0,document.body.classList.remove("non-selectable");const v=()=>{document.body.classList.remove("no-pointer-events--children")};p===!0?setTimeout(v,50):v()}),s.handler({evt:r,touch:s.event.mouse!==!0,mouse:s.event.mouse,direction:s.event.dir,duration:a,distance:{x:u,y:h}})):s.end(r)},end(r){s.event!==void 0&&(Dr(s,"temp"),Jn.is.firefox===!0&&Or(t,!1),s.styleCleanup!==void 0&&s.styleCleanup(!0),r!==void 0&&s.event.dir!==!1&&Pt(r),s.event=void 0)}};if(t.__qtouchswipe=s,i.mouse===!0){const r=i.mouseCapture===!0||i.mousecapture===!0?"Capture":"";Go(s,"main",[[t,"mousedown","mouseStart",`passive${r}`]])}Jn.has.touch===!0&&Go(s,"main",[[t,"touchstart","touchStart",`passive${i.capture===!0?"Capture":""}`],[t,"touchmove","noop","notPassiveCapture"]])},updated(t,e){const n=t.__qtouchswipe;n!==void 0&&(e.oldValue!==e.value&&(typeof e.value!="function"&&n.end(),n.handler=e.value),n.direction=Rl(e.modifiers))},beforeUnmount(t){const e=t.__qtouchswipe;e!==void 0&&(Dr(e,"main"),Dr(e,"temp"),Jn.is.firefox===!0&&Or(t,!1),e.styleCleanup!==void 0&&e.styleCleanup(),delete t.__qtouchswipe)}});function Bm(){let t=Object.create(null);return{getCache:(e,n)=>t[e]===void 0?t[e]=typeof n=="function"?n():n:t[e],setCache(e,n){t[e]=n},hasCache(e){return Object.hasOwnProperty.call(t,e)},clearCache(e){e!==void 0?delete t[e]:t=Object.create(null)}}}const Vd={name:{required:!0},disable:Boolean},Wl={setup(t,{slots:e}){return()=>w("div",{class:"q-panel scroll",role:"tabpanel"},Ge(e.default))}},Ed={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},Ad=["update:modelValue","beforeTransition","transition"];function Rd(){const{props:t,emit:e,proxy:n}=$e(),{getCache:i}=Bm(),{registerTimeout:o}=Io();let s,r;const a=N(null),l=N(null);function c(z){const U=t.vertical===!0?"up":"left";A((n.$q.lang.rtl===!0?-1:1)*(z.direction===U?1:-1))}const u=g(()=>[[zm,c,void 0,{horizontal:t.vertical!==!0,vertical:t.vertical,mouse:!0}]]),d=g(()=>t.transitionPrev||`slide-${t.vertical===!0?"down":"right"}`),h=g(()=>t.transitionNext||`slide-${t.vertical===!0?"up":"left"}`),f=g(()=>`--q-transition-duration: ${t.transitionDuration}ms`),m=g(()=>typeof t.modelValue=="string"||typeof t.modelValue=="number"?t.modelValue:String(t.modelValue)),p=g(()=>({include:t.keepAliveInclude,exclude:t.keepAliveExclude,max:t.keepAliveMax})),v=g(()=>t.keepAliveInclude!==void 0||t.keepAliveExclude!==void 0);ge(()=>t.modelValue,(z,U)=>{const j=_(z)===!0?C(z):-1;r!==!0&&E(j===-1?0:j{e("transition",z,U)},t.transitionDuration))});function b(){A(1)}function x(){A(-1)}function y(z){e("update:modelValue",z)}function _(z){return z!=null&&z!==""}function C(z){return s.findIndex(U=>U.props.name===z&&U.props.disable!==""&&U.props.disable!==!0)}function S(){return s.filter(z=>z.props.disable!==""&&z.props.disable!==!0)}function E(z){const U=z!==0&&t.animated===!0&&a.value!==-1?"q-transition--"+(z===-1?d.value:h.value):null;l.value!==U&&(l.value=U)}function A(z,U=a.value){let j=U+z;for(;j!==-1&&j{r=!1});return}j+=z}t.infinite===!0&&s.length!==0&&U!==-1&&U!==s.length&&A(z,z===-1?s.length:-1)}function D(){const z=C(t.modelValue);return a.value!==z&&(a.value=z),!0}function P(){const z=_(t.modelValue)===!0&&D()&&s[a.value];return t.keepAlive===!0?[w($g,p.value,[w(v.value===!0?i(m.value,()=>({...Wl,name:m.value})):Wl,{key:m.value,style:f.value},()=>z)])]:[w("div",{class:"q-panel scroll",style:f.value,key:m.value,role:"tabpanel"},[z])]}function R(){if(s.length!==0)return t.animated===!0?[w(Po,{name:l.value},P)]:P()}function M(z){return s=jg(Ge(z.default,[])).filter(U=>U.props!==null&&U.props.slot===void 0&&_(U.props.name)===!0),s.length}function H(){return s}return Object.assign(n,{next:b,previous:x,goTo:y}),{panelIndex:a,panelDirectives:u,updatePanelsList:M,updatePanelIndex:D,getPanelContent:R,getEnabledPanels:S,getPanels:H,isValidPanelName:_,keepAliveProps:p,needsUniqueKeepAliveWrapper:v,goToPanelByOffset:A,goToPanel:y,nextPanel:b,previousPanel:x}}const Ar=ze({name:"QTabPanel",props:Vd,setup(t,{slots:e}){return()=>w("div",{class:"q-tab-panel",role:"tabpanel"},Ge(e.default))}}),Nm=ze({name:"QTabPanels",props:{...Ed,...un},emits:Ad,setup(t,{slots:e}){const n=$e(),i=dn(t,n.proxy.$q),{updatePanelsList:o,getPanelContent:s,panelDirectives:r}=Rd(),a=g(()=>"q-tab-panels q-panel-parent"+(i.value===!0?" q-tab-panels--dark q-dark":""));return()=>(o(e),nr("div",{class:a.value},s(),"pan",t.swipeable,()=>r.value))}}),Wm=ze({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(t,{slots:e}){const{proxy:{$q:n}}=$e(),i=Vs(Ug,xn);if(i===xn)return console.error("QPage needs to be a deep child of QLayout"),xn;if(Vs(Yg,xn)===xn)return console.error("QPage needs to be child of QPageContainer"),xn;const s=g(()=>{const a=(i.header.space===!0?i.header.size:0)+(i.footer.space===!0?i.footer.size:0);if(typeof t.styleFn=="function"){const l=i.isContainer.value===!0?i.containerHeight.value:n.screen.height;return t.styleFn(a,l)}return{minHeight:i.isContainer.value===!0?i.containerHeight.value-a+"px":n.screen.height===0?a!==0?`calc(100vh - ${a}px)`:"100vh":n.screen.height-a+"px"}}),r=g(()=>`q-page${t.padding===!0?" q-layout-padding":""}`);return()=>w("main",{class:r.value,style:s.value},Ge(e.default))}}),qd=ze({name:"QCarouselSlide",props:{...Vd,imgSrc:String},setup(t,{slots:e}){const n=g(()=>t.imgSrc?{backgroundImage:`url("${t.imgSrc}")`}:{});return()=>w("div",{class:"q-carousel__slide",style:n.value},Ge(e.default))}}),Hm=ze({name:"QCarouselControl",props:{position:{type:String,default:"bottom-right",validator:t=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(t)},offset:{type:Array,default:()=>[18,18],validator:t=>t.length===2}},setup(t,{slots:e}){const n=g(()=>`q-carousel__control absolute absolute-${t.position}`),i=g(()=>({margin:`${t.offset[1]}px ${t.offset[0]}px`}));return()=>w("div",{class:n.value,style:i.value},Ge(e.default))}});let to=0;const Ld={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Fd=["update:fullscreen","fullscreen"];function zd(){const t=$e(),{props:e,emit:n,proxy:i}=t;let o,s,r;const a=N(!1);Zg(t)===!0&&ge(()=>i.$route.fullPath,()=>{e.noRouteFullscreenExit!==!0&&u()}),ge(()=>e.fullscreen,d=>{a.value!==d&&l()}),ge(a,d=>{n("update:fullscreen",d),n("fullscreen",d)});function l(){a.value===!0?u():c()}function c(){a.value!==!0&&(a.value=!0,r=i.$el.parentNode,r.replaceChild(s,i.$el),document.body.appendChild(i.$el),to++,to===1&&document.body.classList.add("q-body--fullscreen-mixin"),o={handler:u},Ol.add(o))}function u(){a.value===!0&&(o!==void 0&&(Ol.remove(o),o=void 0),r.replaceChild(i.$el,s),a.value=!1,to=Math.max(0,to-1),to===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),i.$el.scrollIntoView!==void 0&&setTimeout(()=>{i.$el.scrollIntoView()})))}return Ea(()=>{s=document.createElement("span")}),Wt(()=>{e.fullscreen===!0&&c()}),Ot(u),Object.assign(i,{toggleFullscreen:l,setFullscreen:c,exitFullscreen:u}),{inFullscreen:a,toggleFullscreen:l}}const jm=["top","right","bottom","left"],$m=["regular","flat","outline","push","unelevated"],Bd=ze({name:"QCarousel",props:{...un,...Ed,...Ld,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:t=>$m.includes(t),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:t=>jm.includes(t)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...Fd,...Ad],setup(t,{slots:e}){const{proxy:{$q:n}}=$e(),i=dn(t,n);let o=null,s;const{updatePanelsList:r,getPanelContent:a,panelDirectives:l,goToPanel:c,previousPanel:u,nextPanel:d,getEnabledPanels:h,panelIndex:f}=Rd(),{inFullscreen:m}=zd(),p=g(()=>m.value!==!0&&t.height!==void 0?{height:t.height}:{}),v=g(()=>t.vertical===!0?"vertical":"horizontal"),b=g(()=>t.navigationPosition||(t.vertical===!0?"right":"bottom")),x=g(()=>`q-carousel q-panel-parent q-carousel--with${t.padding===!0?"":"out"}-padding`+(m.value===!0?" fullscreen":"")+(i.value===!0?" q-carousel--dark q-dark":"")+(t.arrows===!0?` q-carousel--arrows-${v.value}`:"")+(t.navigation===!0?` q-carousel--navigation-${b.value}`:"")),y=g(()=>{const P=[t.prevIcon||n.iconSet.carousel[t.vertical===!0?"up":"left"],t.nextIcon||n.iconSet.carousel[t.vertical===!0?"down":"right"]];return t.vertical===!1&&n.lang.rtl===!0?P.reverse():P}),_=g(()=>t.navigationIcon||n.iconSet.carousel.navigationIcon),C=g(()=>t.navigationActiveIcon||_.value),S=g(()=>({color:t.controlColor,textColor:t.controlTextColor,round:!0,[t.controlType]:!0,dense:!0}));ge(()=>t.modelValue,()=>{t.autoplay&&E()}),ge(()=>t.autoplay,P=>{P?E():o!==null&&(clearTimeout(o),o=null)});function E(){const P=To(t.autoplay)===!0?Math.abs(t.autoplay):5e3;o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,P>=0?d():u()},P)}Wt(()=>{t.autoplay&&E()}),Ot(()=>{o!==null&&clearTimeout(o)});function A(P,R){return w("div",{class:`q-carousel__control q-carousel__navigation no-wrap absolute flex q-carousel__navigation--${P} q-carousel__navigation--${b.value}`+(t.controlColor!==void 0?` text-${t.controlColor}`:"")},[w("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},h().map(R))])}function D(){const P=[];if(t.navigation===!0){const R=e["navigation-icon"]!==void 0?e["navigation-icon"]:H=>w(Ve,{key:"nav"+H.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${H.active===!0?"":"in"}active`,...H.btnProps,onClick:H.onClick}),M=s-1;P.push(A("buttons",(H,z)=>{const U=H.props.name,j=f.value===z;return R({index:z,maxIndex:M,name:U,active:j,btnProps:{icon:j===!0?C.value:_.value,size:"sm",...S.value},onClick:()=>{c(U)}})}))}else if(t.thumbnails===!0){const R=t.controlColor!==void 0?` text-${t.controlColor}`:"";P.push(A("thumbnails",M=>{const H=M.props;return w("img",{key:"tmb#"+H.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${H.name===t.modelValue?"":"in"}active`+R,src:H.imgSrc||H["img-src"],onClick:()=>{c(H.name)}})}))}return t.arrows===!0&&f.value>=0&&((t.infinite===!0||f.value>0)&&P.push(w("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${v.value} absolute flex flex-center`},[w(Ve,{icon:y.value[0],...S.value,onClick:u})])),(t.infinite===!0||f.value(s=r(e),w("div",{class:x.value,style:p.value},[nr("div",{class:"q-carousel__slides-container"},a(),"sl-cont",t.swipeable,()=>l.value)].concat(D())))}}),Um=Se({__name:"EnergyFlowChart",setup(t,{expose:e}){e(),pd(X=>({"7061f1f7":s.value,"7c22ee07":l.value}));const n=Be(),i=N({xMin:0,xMax:150,yMin:0,yMax:105,circleRadius:10,strokeWidth:.5,textSize:5,numRows:4,numColumns:3}),o=g(()=>`${i.value.xMin} ${i.value.yMin} ${i.value.xMax} ${i.value.yMax}`),s=g(()=>i.value.strokeWidth),r=g(()=>i.value.circleRadius),a=g(()=>i.value.circleRadius),l=g(()=>`${i.value.textSize}px`),c=X=>{let ce={...X};return ce.textValue&&(ce.textValue=ce.textValue.replace(/^-/,"")),ce.value&&(ce.value=Math.abs(ce.value)),ce.scaledValue&&(ce.scaledValue=Math.abs(ce.scaledValue)),ce},u=g(()=>n.getGridPower("object")),d=g(()=>Number(u.value.value)>0),h=g(()=>Number(u.value.value)<0),f=g(()=>n.batteryTotalPower("object")),m=g(()=>Number(n.batteryTotalPower("value"))<0),p=g(()=>Number(n.batteryTotalPower("value"))>0),v=g(()=>Number(n.batterySocTotal)/100),b=g(()=>n.getHomePower("object")),x=g(()=>Number(b.value.value)>0),y=g(()=>Number(b.value.value)<0),_=g(()=>n.getPvPower("object")),C=g(()=>{const X=Number(_.value.value);return Math.abs(X)>=50}),S=g(()=>n.chargePointIds),E=g(()=>n.chargePointName(S.value[0])||"---"),A=g(()=>n.chargePointName(S.value[1])||"---"),D=g(()=>n.chargePointName(S.value[2])||"---"),P=g(()=>S.value.length>0?n.chargePointPower(S.value[0],"object")||{textValue:"Loading..."}:{textValue:"N/A"}),R=g(()=>S.value.length>0?n.chargePointPower(S.value[1],"object")||{textValue:"Loading..."}:{textValue:"N/A"}),M=g(()=>S.value.length>0?n.chargePointPower(S.value[2],"object")||{textValue:"Loading..."}:{textValue:"N/A"}),H=g(()=>Number(P.value.value)>0),z=g(()=>Number(P.value.value)<0),U=g(()=>Number(R.value.value)>0),j=g(()=>Number(R.value.value)<0),G=g(()=>Number(M.value.value)>0),Y=g(()=>Number(M.value.value)<0),te=X=>{switch(X){case"instant_charging":return{label:"Sofort",class:"danger"};case"pv_charging":return{label:"PV",class:"success"};case"scheduled_charging":return{label:"Zielladen",class:"primary"};case"time_charging":return{label:"Zeitladen",class:"warning"};case"eco_charging":return{label:"Eco",class:"secondary"};case"stop":return{label:"Stop",class:"dark"};default:return{label:"Stop",class:"dark"}}},de=g(()=>n.chargePointPlugState(S.value[0])),O=g(()=>{const X=n.chargePointConnectedVehicleChargeMode(S.value[0]);return te(X.value||"")}),T=g(()=>n.chargePointConnectedVehicleInfo(S.value[0]).value?.name||"---"),Q=g(()=>n.chargePointConnectedVehicleSoc(S.value[0])),ae=g(()=>n.chargePointPlugState(S.value[1])),fe=g(()=>{const X=n.chargePointConnectedVehicleChargeMode(S.value[1]);return te(X.value||"")}),B=g(()=>n.chargePointConnectedVehicleInfo(S.value[1]).value?.name||"---"),J=g(()=>n.chargePointConnectedVehicleSoc(S.value[1])),we=g(()=>n.chargePointPlugState(S.value[2])),Z=g(()=>{const X=n.chargePointConnectedVehicleChargeMode(S.value[2]);return te(X.value||"")}),Ee=g(()=>n.chargePointConnectedVehicleInfo(S.value[2]).value?.name||"---"),Xe=g(()=>n.chargePointConnectedVehicleSoc(S.value[2])),_t=g(()=>n.chargePointSumPower("object")),et=g(()=>Number(_t.value.value)<0),dt=g(()=>Number(_t.value.value)>0),mt=g(()=>{const X=[];return X.push({id:"grid",class:{base:"grid",valueLabel:h.value?"fill-success":d.value?"fill-danger":"",animated:d.value,animatedReverse:h.value},position:{row:0,column:0},label:["EVU",c(u.value).textValue],icon:"icons/owbGrid.svg"}),X.push({id:"home",class:{base:"home",valueLabel:"",animated:y.value,animatedReverse:x.value},position:{row:0,column:2},label:["Haus",c(b.value).textValue],icon:"icons/owbHouse.svg"}),n.getPvConfigured&&X.push({id:"pv",class:{base:"pv",valueLabel:"fill-success",animated:C.value,animatedReverse:!1},position:{row:1,column:0},label:["PV",c(_.value).textValue],icon:"icons/owbPV.svg"}),n.batteryConfigured&&X.push({id:"battery",class:{base:"battery",valueLabel:"",animated:m.value,animatedReverse:p.value},position:{row:1,column:2},label:["Speicher",c(f.value).textValue],soc:v.value,icon:"icons/owbBattery.svg"}),S.value.length>0&&(S.value.length<=3?(X.push({id:"charge-point-1",class:{base:"charge-point",valueLabel:"",animated:z.value,animatedReverse:H.value},position:{row:2,column:S.value.length>1?0:1},label:[E.value,c(P.value).textValue],icon:"icons/owbChargePoint.svg"}),de.value&&X.push({id:"vehicle-1",class:{base:"vehicle",valueLabel:"fill-"+O.value.class,animated:z.value,animatedReverse:H.value},position:{row:3,column:S.value.length>1?0:1},label:[T.value||"---",O.value.label||"---"],soc:(Q.value.value?.soc||0)/100,icon:"icons/owbVehicle.svg"}),S.value.length>1&&X.push({id:"charge-point-2",class:{base:"charge-point",valueLabel:"",animated:j.value,animatedReverse:U.value},position:{row:2,column:S.value.length>2?1:2},label:[A.value,c(R.value).textValue],icon:"icons/owbChargePoint.svg"}),ae.value&&X.push({id:"vehicle-2",class:{base:"vehicle",valueLabel:"fill-"+fe.value.class,animated:j.value,animatedReverse:U.value},position:{row:3,column:S.value.length>2?1:2},label:[B.value||"---",fe.value.label||"---"],soc:(J.value.value?.soc||0)/100,icon:"icons/owbVehicle.svg"}),S.value.length>2&&X.push({id:"charge-point-3",class:{base:"charge-point",valueLabel:"",animated:Y.value,animatedReverse:G.value},position:{row:2,column:2},label:[D.value,c(M.value).textValue],icon:"icons/owbChargePoint.svg"}),we.value&&X.push({id:"vehicle-3",class:{base:"vehicle",valueLabel:"fill-"+Z.value.class,animated:Y.value,animatedReverse:G.value},position:{row:3,column:2},label:[Ee.value||"---",Z.value.label||"---"],soc:(Xe.value.value?.soc||0)/100,icon:"icons/owbVehicle.svg"})):X.push({id:"charge-point-sum",class:{base:"charge-point",valueLabel:"",animated:et.value,animatedReverse:dt.value},position:{row:2,column:1},label:["Ladepunkte",c(_t.value).textValue],icon:"icons/owbChargePoint.svg"})),X}),ht=g(()=>S.value?.length>0?S.value.length>3?3:4:3);ge(ht,X=>{i.value.numRows=X},{immediate:!0});const Dt=X=>{const ce=i.value.yMin+i.value.strokeWidth+i.value.circleRadius,ye=i.value.yMax-i.value.strokeWidth-i.value.circleRadius-ce;return X*(ye/(i.value.numRows-1))+ce},Vt=X=>{const ce=i.value.xMin+i.value.strokeWidth+$.value/2,ye=i.value.xMax-i.value.strokeWidth-$.value/2-ce;return X*(ye/(i.value.numColumns-1))+ce},Ut=X=>{const ce=Vt(X);return X<(i.value.numColumns-1)/2?ce+$.value/2-i.value.circleRadius:X>(i.value.numColumns-1)/2?ce-$.value/2+i.value.circleRadius:ce},Et=X=>{const ce=document.getElementById(X);if(ce==null||!(ce instanceof SVGGraphicsElement))return{x:0,y:0,width:0,height:0};const De=ce.getBBox();return{x:De.x,y:De.y,width:De.width,height:De.height}},lt=X=>{const ce=document.querySelector(`#${X}`);ce&&ce.beginElement()},$=g(()=>(i.value.xMax-i.value.xMin-i.value.strokeWidth-i.value.numColumns)/i.value.numColumns),re={mqttStore:n,svgSize:i,svgViewBox:o,svgStrokeWidth:s,svgIconWidth:r,svgIconHeight:a,svgFontSize:l,absoluteValueObject:c,gridPower:u,gridConsumption:d,gridFeedIn:h,batteryPower:f,batteryDischarging:m,batteryCharging:p,batterySoc:v,homePower:b,homeConsumption:x,homeProduction:y,pvPower:_,pvProduction:C,connectedChargePoints:S,chargePoint1Name:E,chargePoint2Name:A,chargePoint3Name:D,chargePoint1Power:P,chargePoint2Power:R,chargePoint3Power:M,chargePoint1Charging:H,chargePoint1Discharging:z,chargePoint2Charging:U,chargePoint2Discharging:j,chargePoint3Charging:G,chargePoint3Discharging:Y,translateChargeMode:te,chargePoint1VehicleConnected:de,chargePoint1ConnectedVehicleChargeMode:O,chargePoint1ConnectedVehicleName:T,chargePoint1ConnectedVehicleSoc:Q,chargePoint2VehicleConnected:ae,chargePoint2ConnectedVehicleChargeMode:fe,chargePoint2ConnectedVehicleName:B,chargePoint2ConnectedVehicleSoc:J,chargePoint3VehicleConnected:we,chargePoint3ConnectedVehicleChargeMode:Z,chargePoint3ConnectedVehicleName:Ee,chargePoint3ConnectedVehicleSoc:Xe,chargePointSumPower:_t,chargePointSumDischarging:et,chargePointSumCharging:dt,svgComponents:mt,calculatedRows:ht,calcRowY:Dt,calcColumnX:Vt,calcFlowLineAnchorX:Ut,calcSvgElementBoundingBox:Et,beginAnimation:lt,svgRectWidth:$};return Object.defineProperty(re,"__isScriptSetup",{enumerable:!1,value:!0}),re}}),Ym={class:"svg-container"},Zm=["viewBox"],Xm={id:"layer1",style:{display:"inline"}},Km=["d"],Qm={id:"layer2",style:{display:"inline"}},Gm=["cx","cy","r"],Jm=["transform","onClick"],ev=["id"],tv=["x","y","width","height"],nv=["id"],iv=["x","y","width","height","rx","ry"],ov=["x","y","width","height","rx","ry"],sv=["clip-path"],rv=["id","x","y"],av=["id","values"],lv=["id","x","y"],cv=["transform"],uv=["r"],dv=["r"],hv=["r","clip-path"],fv=["href","x","y","height","width"];function gv(t,e,n,i,o,s){return V(),K("div",Ym,[(V(),K("svg",{viewBox:i.svgViewBox,version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"},[q("g",Xm,[(V(!0),K(Oe,null,Je(i.svgComponents,r=>(V(),K("path",{key:r.id,class:Tt([r.class.base,{animated:r.class.animated},{animatedReverse:r.class.animatedReverse}]),d:r.class.base!=="vehicle"?`M ${i.calcFlowLineAnchorX(r.position.column)}, ${i.calcRowY(r.position.row)} ${i.calcColumnX(1)}, ${i.calcRowY(1)}`:`M ${i.calcFlowLineAnchorX(r.position.column)}, ${i.calcRowY(r.position.row)} ${i.calcFlowLineAnchorX(r.position.column)}, ${i.calcRowY(r.position.row-1)}`},null,10,Km))),128))]),q("g",Qm,[q("circle",{id:"center",cx:i.calcColumnX(1),cy:i.calcRowY(1),r:i.svgSize.circleRadius/3},null,8,Gm),(V(!0),K(Oe,null,Je(i.svgComponents,r=>(V(),K("g",{key:r.id,class:Tt(r.class.base),transform:`translate(${i.calcColumnX(r.position.column)}, ${i.calcRowY(r.position.row)})`,onClick:a=>i.beginAnimation(`animate-label-${r.id}`)},[q("defs",null,[r.soc?(V(),K("clipPath",{key:0,id:`clip-soc-${r.id}`},[q("rect",{x:-i.svgSize.circleRadius-i.svgSize.strokeWidth,y:(i.svgSize.circleRadius+i.svgSize.strokeWidth)*(1-2*r.soc),width:(i.svgSize.circleRadius+i.svgSize.strokeWidth)*2,height:(i.svgSize.circleRadius+i.svgSize.strokeWidth)*2*r.soc},null,8,tv)],8,ev)):ue("",!0),q("clipPath",{id:`clip-label-${r.id}`},[q("rect",{x:-i.svgRectWidth/2,y:-i.svgSize.circleRadius,width:i.svgRectWidth,height:i.svgSize.circleRadius*2,rx:i.svgSize.circleRadius,ry:i.svgSize.circleRadius},null,8,iv)],8,nv)]),q("rect",{x:-i.svgRectWidth/2,y:-i.svgSize.circleRadius,width:i.svgRectWidth,height:i.svgSize.circleRadius*2,rx:i.svgSize.circleRadius,ry:i.svgSize.circleRadius},null,8,ov),q("text",{"clip-path":`url(#clip-label-${r.id})`},[q("tspan",{id:`label-${r.id}`,"text-anchor":"start",x:-i.svgRectWidth/2+2*i.svgSize.circleRadius+i.svgSize.strokeWidth,y:-i.svgSize.textSize/2},[i.calcSvgElementBoundingBox(`label-${r.id}`).width>i.svgRectWidth-2*i.svgSize.circleRadius-2*i.svgSize.strokeWidth?(V(),K("animate",{key:0,id:`animate-label-${r.id}`,xmlns:"http://www.w3.org/2000/svg",attributeName:"x",dur:"5s",values:"0; "+(-i.calcSvgElementBoundingBox(`label-${r.id}`).width+i.svgRectWidth-2.5*i.svgSize.circleRadius-2*i.svgSize.strokeWidth)+"; 0;",repeatCount:"0",additive:"sum"},null,8,av)):ue("",!0),qe(" "+le(r.label[0]),1)],8,rv),q("tspan",{id:`value-${r.id}`,class:Tt(r.class.valueLabel),"text-anchor":"end",x:2*i.svgSize.circleRadius+i.svgSize.strokeWidth,y:i.svgSize.textSize},le(r.label[1]),11,lv)],8,sv),q("g",{transform:`translate(${i.svgSize.circleRadius-i.svgRectWidth/2}, 0)`},[q("circle",{cx:"0",cy:"0",r:i.svgSize.circleRadius,class:"background-circle"},null,8,uv),q("circle",{cx:"0",cy:"0",r:i.svgSize.circleRadius,class:Tt({soc:r.soc})},null,10,dv),r.soc?(V(),K("circle",{key:0,cx:"0",cy:"0",r:i.svgSize.circleRadius,"clip-path":`url(#clip-soc-${r.id})`},null,8,hv)):ue("",!0),q("image",{href:r.icon,x:-i.svgIconWidth/2,y:-i.svgIconHeight/2,height:i.svgIconHeight,width:i.svgIconWidth},null,8,fv)],8,cv)],10,Jm))),128))])],8,Zm))])}const mv=Me(Um,[["render",gv],["__scopeId","data-v-62f971c1"],["__file","EnergyFlowChart.vue"]]);/*! +var Ng=Object.defineProperty;var Wg=(t,e,n)=>e in t?Ng(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ae=(t,e,n)=>Wg(t,typeof e!="symbol"?e+"":e,n);import{i as li,e as xn,r as N,a as g,o as Ot,j as Wt,F as fd,k as rn,R as gd,h as w,G as Js,H as Vr,I as Pt,E as _e,v as hi,g as $e,c as ze,w as ge,p as md,J as ea,K as ta,d as Ge,L as vd,M as Jn,N as pd,O as Hg,P as Jo,S as Oa,T as Es,U as Da,V as To,W as jg,X as $g,m as na,l as Ug,q as Yg,Y as Zg,Z as Er,$ as Ol,a0 as Io,Q as Ve,x as Se,a1 as bd,_ as Me,z as V,a2 as K,a3 as q,a4 as Oe,a5 as Je,a6 as Tt,a7 as ue,D as qe,a8 as le,a9 as yd,aa as Xg,u as Kg,ab as Sn,n as ut,ac as _d,ad as Qg,A as ne,B as L,C as I,ae as xd,af as Gg,ag as Sd,ah as oi,ai as nn,s as Jg,aj as wd,ak as em,al as kd,am as ei,an as qn,ao as tm,ap as wn,f as nm,aq as Dl,ar as Ar,as as Rr,at as im,au as om,av as to,aw as Vl,ax as Cs,ay as sm,az as am,aA as rm,aB as lm,aC as El,aD as Al,aE as cm,aF as Cd,aG as um,aH as qr,aI as dm,aJ as hm,aK as fm}from"./index-v0G7K8Rw.js";import{t as _o,d as Oo,Q as gm,v as Rl,w as ql,x as mm,a as un,c as dn,k as In,m as ia,n as oa,o as Do,q as sa,l as vm,u as Md,y as Lr,b as Pd,z as Td,A as Id,e as Od,f as pm,B as aa,h as bm,C as ym,D as _m,E as xm,F as Dd,G as Vd,H as Sm,I as Ll,J as wm,K as km,L as Cm,M as Fl,N as Mm,O as zl,P as Pm,R as Tm,S as Bl,p as xo,g as Ti,T as Im,s as ln,r as pn}from"./use-quasar-D-0UrVnZ.js";import{u as Be}from"./mqtt-store-DM4t93V9.js";let Va,es=0;const St=new Array(256);for(let t=0;t<256;t++)St[t]=(t+256).toString(16).substring(1);const Om=(()=>{const t=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(t!==void 0){if(t.randomBytes!==void 0)return t.randomBytes;if(t.getRandomValues!==void 0)return e=>{const n=new Uint8Array(e);return t.getRandomValues(n),n}}return e=>{const n=[];for(let i=e;i>0;i--)n.push(Math.floor(Math.random()*256));return n}})(),Nl=4096;function sr(){(Va===void 0||es+16>Nl)&&(es=0,Va=Om(Nl));const t=Array.prototype.slice.call(Va,es,es+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,St[t[0]]+St[t[1]]+St[t[2]]+St[t[3]]+"-"+St[t[4]]+St[t[5]]+"-"+St[t[6]]+St[t[7]]+"-"+St[t[8]]+St[t[9]]+"-"+St[t[10]]+St[t[11]]+St[t[12]]+St[t[13]]+St[t[14]]+St[t[15]]}let Dm=0;const Vm=["click","keydown"],Em={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${Dm++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function Am(t,e,n,i){const o=li(fd,xn);if(o===xn)return console.error("QTab/QRouteTab component needs to be child of QTabs"),xn;const{proxy:s}=$e(),a=N(null),r=N(null),l=N(null),c=g(()=>t.disable===!0||t.ripple===!1?!1:Object.assign({keyCodes:[13,32],early:!0},t.ripple===!0?{}:t.ripple)),u=g(()=>o.currentModel.value===t.name),d=g(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(u.value===!0?" q-tab--active"+(o.tabProps.value.activeClass?" "+o.tabProps.value.activeClass:"")+(o.tabProps.value.activeColor?` text-${o.tabProps.value.activeColor}`:"")+(o.tabProps.value.activeBgColor?` bg-${o.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(t.icon&&t.label&&o.tabProps.value.inlineLabel===!1?" q-tab--full":"")+(t.noCaps===!0||o.tabProps.value.noCaps===!0?" q-tab--no-caps":"")+(t.disable===!0?" disabled":" q-focusable q-hoverable cursor-pointer")),h=g(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(o.tabProps.value.inlineLabel===!0?"row no-wrap q-tab__content--inline":"column")+(t.contentClass!==void 0?` ${t.contentClass}`:"")),f=g(()=>t.disable===!0||o.hasFocus.value===!0||u.value===!1&&o.hasActiveTab.value===!0?-1:t.tabindex||0);function m(_,x){if(x!==!0&&a.value!==null&&a.value.focus(),t.disable!==!0){o.updateModel({name:t.name}),n("click",_);return}}function p(_){Js(_,[13,32])?m(_,!0):Vr(_)!==!0&&_.keyCode>=35&&_.keyCode<=40&&_.altKey!==!0&&_.metaKey!==!0&&o.onKbdNavigate(_.keyCode,s.$el)===!0&&Pt(_),n("keydown",_)}function v(){const _=o.tabProps.value.narrowIndicator,x=[],C=w("div",{ref:l,class:["q-tab__indicator",o.tabProps.value.indicatorClass]});t.icon!==void 0&&x.push(w(_e,{class:"q-tab__icon",name:t.icon})),t.label!==void 0&&x.push(w("div",{class:"q-tab__label"},t.label)),t.alert!==!1&&x.push(t.alertIcon!==void 0?w(_e,{class:"q-tab__alert-icon",color:t.alert!==!0?t.alert:void 0,name:t.alertIcon}):w("div",{class:"q-tab__alert"+(t.alert!==!0?` text-${t.alert}`:"")})),_===!0&&x.push(C);const S=[w("div",{class:"q-focus-helper",tabindex:-1,ref:a}),w("div",{class:h.value},hi(e.default,x))];return _===!1&&S.push(C),S}const b={name:g(()=>t.name),rootRef:r,tabIndicatorRef:l,routeData:i};Ot(()=>{o.unregisterTab(b)}),Wt(()=>{o.registerTab(b)});function y(_,x){const C={ref:r,class:d.value,tabindex:f.value,role:"tab","aria-selected":u.value===!0?"true":"false","aria-disabled":t.disable===!0?"true":void 0,onClick:m,onKeydown:p,...x};return rn(w(_,C,v()),[[gd,c.value]])}return{renderTab:y,$tabs:o}}const Ea=ze({name:"QTab",props:Em,emits:Vm,setup(t,{slots:e,emit:n}){const{renderTab:i}=Am(t,e,n);return()=>i("div")}});let Vo=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const e=document.createElement("div");Object.assign(e.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(e),t.scrollLeft=-1e3,Vo=t.scrollLeft>=0,t.remove()}function Rm(t,e,n){const i=n===!0?["left","right"]:["top","bottom"];return`absolute-${e===!0?i[0]:i[1]}${t?` text-${t}`:""}`}const qm=["left","center","right","justify"],Lm=ze({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:t=>qm.includes(t)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(t,{slots:e,emit:n}){const{proxy:i}=$e(),{$q:o}=i,{registerTick:s}=_o(),{registerTick:a}=_o(),{registerTick:r}=_o(),{registerTimeout:l,removeTimeout:c}=Oo(),{registerTimeout:u,removeTimeout:d}=Oo(),h=N(null),f=N(null),m=N(t.modelValue),p=N(!1),v=N(!0),b=N(!1),y=N(!1),_=[],x=N(0),C=N(!1);let S=null,E=null,A;const D=g(()=>({activeClass:t.activeClass,activeColor:t.activeColor,activeBgColor:t.activeBgColor,indicatorClass:Rm(t.indicatorColor,t.switchIndicator,t.vertical),narrowIndicator:t.narrowIndicator,inlineLabel:t.inlineLabel,noCaps:t.noCaps})),M=g(()=>{const j=x.value,ae=m.value;for(let X=0;X`q-tabs__content--align-${p.value===!0?"left":y.value===!0?"justify":t.align}`),P=g(()=>`q-tabs row no-wrap items-center q-tabs--${p.value===!0?"":"not-"}scrollable q-tabs--${t.vertical===!0?"vertical":"horizontal"} q-tabs__arrows--${t.outsideArrows===!0?"outside":"inside"} q-tabs--mobile-with${t.mobileArrows===!0?"":"out"}-arrows`+(t.dense===!0?" q-tabs--dense":"")+(t.shrink===!0?" col-shrink":"")+(t.stretch===!0?" self-stretch":"")),H=g(()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+R.value+(t.contentClass!==void 0?` ${t.contentClass}`:"")),z=g(()=>t.vertical===!0?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),$=g(()=>t.vertical!==!0&&o.lang.rtl===!0),U=g(()=>Vo===!1&&$.value===!0);ge($,T),ge(()=>t.modelValue,j=>{G({name:j,setCurrent:!0,skipEmit:!0})}),ge(()=>t.outsideArrows,Y);function G({name:j,setCurrent:ae,skipEmit:X}){m.value!==j&&(X!==!0&&t["onUpdate:modelValue"]!==void 0&&n("update:modelValue",j),(ae===!0||t["onUpdate:modelValue"]===void 0)&&(de(m.value,j),m.value=j))}function Y(){s(()=>{te({width:h.value.offsetWidth,height:h.value.offsetHeight})})}function te(j){if(z.value===void 0||f.value===null)return;const ae=j[z.value.container],X=Math.min(f.value[z.value.scroll],Array.prototype.reduce.call(f.value.children,(De,ye)=>De+(ye[z.value.content]||0),0)),ce=ae>0&&X>ae;p.value=ce,ce===!0&&a(T),y.value=aeDe.name.value===j):null,ce=ae!=null&&ae!==""?_.find(De=>De.name.value===ae):null;if(lt===!0)lt=!1;else if(X&&ce){const De=X.tabIndicatorRef.value,ye=ce.tabIndicatorRef.value;S!==null&&(clearTimeout(S),S=null),De.style.transition="none",De.style.transform="none",ye.style.transition="none",ye.style.transform="none";const Pe=De.getBoundingClientRect(),ot=ye.getBoundingClientRect();ye.style.transform=t.vertical===!0?`translate3d(0,${Pe.top-ot.top}px,0) scale3d(1,${ot.height?Pe.height/ot.height:1},1)`:`translate3d(${Pe.left-ot.left}px,0,0) scale3d(${ot.width?Pe.width/ot.width:1},1,1)`,r(()=>{S=setTimeout(()=>{S=null,ye.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",ye.style.transform="none"},70)})}ce&&p.value===!0&&O(ce.rootRef.value)}function O(j){const{left:ae,width:X,top:ce,height:De}=f.value.getBoundingClientRect(),ye=j.getBoundingClientRect();let Pe=t.vertical===!0?ye.top-ce:ye.left-ae;if(Pe<0){f.value[t.vertical===!0?"scrollTop":"scrollLeft"]+=Math.floor(Pe),T();return}Pe+=t.vertical===!0?ye.height-De:ye.width-X,Pe>0&&(f.value[t.vertical===!0?"scrollTop":"scrollLeft"]+=Math.ceil(Pe),T())}function T(){const j=f.value;if(j===null)return;const ae=j.getBoundingClientRect(),X=t.vertical===!0?j.scrollTop:Math.abs(j.scrollLeft);$.value===!0?(v.value=Math.ceil(X+ae.width)0):(v.value=X>0,b.value=t.vertical===!0?Math.ceil(X+ae.height){Z(j)===!0&&B()},5)}function re(){Q(U.value===!0?Number.MAX_SAFE_INTEGER:0)}function fe(){Q(U.value===!0?0:Number.MAX_SAFE_INTEGER)}function B(){E!==null&&(clearInterval(E),E=null)}function J(j,ae){const X=Array.prototype.filter.call(f.value.children,ot=>ot===ae||ot.matches&&ot.matches(".q-tab.q-focusable")===!0),ce=X.length;if(ce===0)return;if(j===36)return O(X[0]),X[0].focus(),!0;if(j===35)return O(X[ce-1]),X[ce-1].focus(),!0;const De=j===(t.vertical===!0?38:37),ye=j===(t.vertical===!0?40:39),Pe=De===!0?-1:ye===!0?1:void 0;if(Pe!==void 0){const ot=$.value===!0?-1:1,tt=X.indexOf(ae)+Pe*ot;return tt>=0&&ttU.value===!0?{get:j=>Math.abs(j.scrollLeft),set:(j,ae)=>{j.scrollLeft=-ae}}:t.vertical===!0?{get:j=>j.scrollTop,set:(j,ae)=>{j.scrollTop=ae}}:{get:j=>j.scrollLeft,set:(j,ae)=>{j.scrollLeft=ae}});function Z(j){const ae=f.value,{get:X,set:ce}=we.value;let De=!1,ye=X(ae);const Pe=j=j)&&(De=!0,ye=j),ce(ae,ye),T(),De}function Ee(j,ae){for(const X in j)if(j[X]!==ae[X])return!1;return!0}function Xe(){let j=null,ae={matchedLen:0,queryDiff:9999,hrefLen:0};const X=_.filter(Pe=>Pe.routeData!==void 0&&Pe.routeData.hasRouterLink.value===!0),{hash:ce,query:De}=i.$route,ye=Object.keys(De).length;for(const Pe of X){const ot=Pe.routeData.exact.value===!0;if(Pe.routeData[ot===!0?"linkIsExactActive":"linkIsActive"].value!==!0)continue;const{hash:tt,query:vt,matched:At,href:W}=Pe.routeData.resolvedLink.value,me=Object.keys(vt).length;if(ot===!0){if(tt!==ce||me!==ye||Ee(De,vt)===!1)continue;j=Pe.name.value;break}if(tt!==""&&tt!==ce||me!==0&&Ee(vt,De)===!1)continue;const ke={matchedLen:At.length,queryDiff:ye-me,hrefLen:W.length-tt.length};if(ke.matchedLen>ae.matchedLen){j=Pe.name.value,ae=ke;continue}else if(ke.matchedLen!==ae.matchedLen)continue;if(ke.queryDiffae.hrefLen&&(j=Pe.name.value,ae=ke)}if(j===null&&_.some(Pe=>Pe.routeData===void 0&&Pe.name.value===m.value)===!0){lt=!1;return}G({name:j,setCurrent:!0})}function _t(j){if(c(),C.value!==!0&&h.value!==null&&j.target&&typeof j.target.closest=="function"){const ae=j.target.closest(".q-tab");ae&&h.value.contains(ae)===!0&&(C.value=!0,p.value===!0&&O(ae))}}function et(){l(()=>{C.value=!1},30)}function dt(){Vt.avoidRouteWatcher===!1?u(Xe):d()}function mt(){if(A===void 0){const j=ge(()=>i.$route.fullPath,dt);A=()=>{j(),A=void 0}}}function ht(j){_.push(j),x.value++,Y(),j.routeData===void 0||i.$route===void 0?u(()=>{if(p.value===!0){const ae=m.value,X=ae!=null&&ae!==""?_.find(ce=>ce.name.value===ae):null;X&&O(X.rootRef.value)}}):(mt(),j.routeData.hasRouterLink.value===!0&&dt())}function Dt(j){_.splice(_.indexOf(j),1),x.value--,Y(),A!==void 0&&j.routeData!==void 0&&(_.every(ae=>ae.routeData===void 0)===!0&&A(),dt())}const Vt={currentModel:m,tabProps:D,hasFocus:C,hasActiveTab:M,registerTab:ht,unregisterTab:Dt,verifyRouteModel:dt,updateModel:G,onKbdNavigate:J,avoidRouteWatcher:!1};md(fd,Vt);function Ut(){S!==null&&clearTimeout(S),B(),A!==void 0&&A()}let Et,lt;return Ot(Ut),ea(()=>{Et=A!==void 0,Ut()}),ta(()=>{Et===!0&&(mt(),lt=!0,dt()),Y()}),()=>w("div",{ref:h,class:P.value,role:"tablist",onFocusin:_t,onFocusout:et},[w(gm,{onResize:te}),w("div",{ref:f,class:H.value,onScroll:T},Ge(e.default)),w(_e,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(v.value===!0?"":" q-tabs__arrow--faded"),name:t.leftIcon||o.iconSet.tabs[t.vertical===!0?"up":"left"],onMousedownPassive:re,onTouchstartPassive:re,onMouseupPassive:B,onMouseleavePassive:B,onTouchendPassive:B}),w(_e,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(b.value===!0?"":" q-tabs__arrow--faded"),name:t.rightIcon||o.iconSet.tabs[t.vertical===!0?"down":"right"],onMousedownPassive:fe,onTouchstartPassive:fe,onMouseupPassive:B,onMouseleavePassive:B,onTouchendPassive:B})])}});function Fm(t){const e=[.06,6,50];return typeof t=="string"&&t.length&&t.split(":").forEach((n,i)=>{const o=parseFloat(n);o&&(e[i]=o)}),e}const zm=vd({name:"touch-swipe",beforeMount(t,{value:e,arg:n,modifiers:i}){if(i.mouse!==!0&&Jn.has.touch!==!0)return;const o=i.mouseCapture===!0?"Capture":"",s={handler:e,sensitivity:Fm(n),direction:Rl(i),noop:pd,mouseStart(a){ql(a,s)&&Hg(a)&&(Jo(s,"temp",[[document,"mousemove","move",`notPassive${o}`],[document,"mouseup","end","notPassiveCapture"]]),s.start(a,!0))},touchStart(a){if(ql(a,s)){const r=a.target;Jo(s,"temp",[[r,"touchmove","move","notPassiveCapture"],[r,"touchcancel","end","notPassiveCapture"],[r,"touchend","end","notPassiveCapture"]]),s.start(a)}},start(a,r){Jn.is.firefox===!0&&Oa(t,!0);const l=Es(a);s.event={x:l.left,y:l.top,time:Date.now(),mouse:r===!0,dir:!1}},move(a){if(s.event===void 0)return;if(s.event.dir!==!1){Pt(a);return}const r=Date.now()-s.event.time;if(r===0)return;const l=Es(a),c=l.left-s.event.x,u=Math.abs(c),d=l.top-s.event.y,h=Math.abs(d);if(s.event.mouse!==!0){if(us.sensitivity[0]&&(s.event.dir=d<0?"up":"down"),s.direction.horizontal===!0&&u>h&&h<100&&f>s.sensitivity[0]&&(s.event.dir=c<0?"left":"right"),s.direction.up===!0&&us.sensitivity[0]&&(s.event.dir="up"),s.direction.down===!0&&u0&&u<100&&m>s.sensitivity[0]&&(s.event.dir="down"),s.direction.left===!0&&u>h&&c<0&&h<100&&f>s.sensitivity[0]&&(s.event.dir="left"),s.direction.right===!0&&u>h&&c>0&&h<100&&f>s.sensitivity[0]&&(s.event.dir="right"),s.event.dir!==!1?(Pt(a),s.event.mouse===!0&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),mm(),s.styleCleanup=p=>{s.styleCleanup=void 0,document.body.classList.remove("non-selectable");const v=()=>{document.body.classList.remove("no-pointer-events--children")};p===!0?setTimeout(v,50):v()}),s.handler({evt:a,touch:s.event.mouse!==!0,mouse:s.event.mouse,direction:s.event.dir,duration:r,distance:{x:u,y:h}})):s.end(a)},end(a){s.event!==void 0&&(Da(s,"temp"),Jn.is.firefox===!0&&Oa(t,!1),s.styleCleanup!==void 0&&s.styleCleanup(!0),a!==void 0&&s.event.dir!==!1&&Pt(a),s.event=void 0)}};if(t.__qtouchswipe=s,i.mouse===!0){const a=i.mouseCapture===!0||i.mousecapture===!0?"Capture":"";Jo(s,"main",[[t,"mousedown","mouseStart",`passive${a}`]])}Jn.has.touch===!0&&Jo(s,"main",[[t,"touchstart","touchStart",`passive${i.capture===!0?"Capture":""}`],[t,"touchmove","noop","notPassiveCapture"]])},updated(t,e){const n=t.__qtouchswipe;n!==void 0&&(e.oldValue!==e.value&&(typeof e.value!="function"&&n.end(),n.handler=e.value),n.direction=Rl(e.modifiers))},beforeUnmount(t){const e=t.__qtouchswipe;e!==void 0&&(Da(e,"main"),Da(e,"temp"),Jn.is.firefox===!0&&Oa(t,!1),e.styleCleanup!==void 0&&e.styleCleanup(),delete t.__qtouchswipe)}});function Bm(){let t=Object.create(null);return{getCache:(e,n)=>t[e]===void 0?t[e]=typeof n=="function"?n():n:t[e],setCache(e,n){t[e]=n},hasCache(e){return Object.hasOwnProperty.call(t,e)},clearCache(e){e!==void 0?delete t[e]:t=Object.create(null)}}}const Ed={name:{required:!0},disable:Boolean},Wl={setup(t,{slots:e}){return()=>w("div",{class:"q-panel scroll",role:"tabpanel"},Ge(e.default))}},Ad={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},Rd=["update:modelValue","beforeTransition","transition"];function qd(){const{props:t,emit:e,proxy:n}=$e(),{getCache:i}=Bm(),{registerTimeout:o}=Oo();let s,a;const r=N(null),l=N(null);function c(z){const $=t.vertical===!0?"up":"left";A((n.$q.lang.rtl===!0?-1:1)*(z.direction===$?1:-1))}const u=g(()=>[[zm,c,void 0,{horizontal:t.vertical!==!0,vertical:t.vertical,mouse:!0}]]),d=g(()=>t.transitionPrev||`slide-${t.vertical===!0?"down":"right"}`),h=g(()=>t.transitionNext||`slide-${t.vertical===!0?"up":"left"}`),f=g(()=>`--q-transition-duration: ${t.transitionDuration}ms`),m=g(()=>typeof t.modelValue=="string"||typeof t.modelValue=="number"?t.modelValue:String(t.modelValue)),p=g(()=>({include:t.keepAliveInclude,exclude:t.keepAliveExclude,max:t.keepAliveMax})),v=g(()=>t.keepAliveInclude!==void 0||t.keepAliveExclude!==void 0);ge(()=>t.modelValue,(z,$)=>{const U=x(z)===!0?C(z):-1;a!==!0&&E(U===-1?0:U{e("transition",z,$)},t.transitionDuration))});function b(){A(1)}function y(){A(-1)}function _(z){e("update:modelValue",z)}function x(z){return z!=null&&z!==""}function C(z){return s.findIndex($=>$.props.name===z&&$.props.disable!==""&&$.props.disable!==!0)}function S(){return s.filter(z=>z.props.disable!==""&&z.props.disable!==!0)}function E(z){const $=z!==0&&t.animated===!0&&r.value!==-1?"q-transition--"+(z===-1?d.value:h.value):null;l.value!==$&&(l.value=$)}function A(z,$=r.value){let U=$+z;for(;U!==-1&&U{a=!1});return}U+=z}t.infinite===!0&&s.length!==0&&$!==-1&&$!==s.length&&A(z,z===-1?s.length:-1)}function D(){const z=C(t.modelValue);return r.value!==z&&(r.value=z),!0}function M(){const z=x(t.modelValue)===!0&&D()&&s[r.value];return t.keepAlive===!0?[w($g,p.value,[w(v.value===!0?i(m.value,()=>({...Wl,name:m.value})):Wl,{key:m.value,style:f.value},()=>z)])]:[w("div",{class:"q-panel scroll",style:f.value,key:m.value,role:"tabpanel"},[z])]}function R(){if(s.length!==0)return t.animated===!0?[w(To,{name:l.value},M)]:M()}function P(z){return s=jg(Ge(z.default,[])).filter($=>$.props!==null&&$.props.slot===void 0&&x($.props.name)===!0),s.length}function H(){return s}return Object.assign(n,{next:b,previous:y,goTo:_}),{panelIndex:r,panelDirectives:u,updatePanelsList:P,updatePanelIndex:D,getPanelContent:R,getEnabledPanels:S,getPanels:H,isValidPanelName:x,keepAliveProps:p,needsUniqueKeepAliveWrapper:v,goToPanelByOffset:A,goToPanel:_,nextPanel:b,previousPanel:y}}const Aa=ze({name:"QTabPanel",props:Ed,setup(t,{slots:e}){return()=>w("div",{class:"q-tab-panel",role:"tabpanel"},Ge(e.default))}}),Nm=ze({name:"QTabPanels",props:{...Ad,...un},emits:Rd,setup(t,{slots:e}){const n=$e(),i=dn(t,n.proxy.$q),{updatePanelsList:o,getPanelContent:s,panelDirectives:a}=qd(),r=g(()=>"q-tab-panels q-panel-parent"+(i.value===!0?" q-tab-panels--dark q-dark":""));return()=>(o(e),na("div",{class:r.value},s(),"pan",t.swipeable,()=>a.value))}}),Wm=ze({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(t,{slots:e}){const{proxy:{$q:n}}=$e(),i=li(Ug,xn);if(i===xn)return console.error("QPage needs to be a deep child of QLayout"),xn;if(li(Yg,xn)===xn)return console.error("QPage needs to be child of QPageContainer"),xn;const s=g(()=>{const r=(i.header.space===!0?i.header.size:0)+(i.footer.space===!0?i.footer.size:0);if(typeof t.styleFn=="function"){const l=i.isContainer.value===!0?i.containerHeight.value:n.screen.height;return t.styleFn(r,l)}return{minHeight:i.isContainer.value===!0?i.containerHeight.value-r+"px":n.screen.height===0?r!==0?`calc(100vh - ${r}px)`:"100vh":n.screen.height-r+"px"}}),a=g(()=>`q-page${t.padding===!0?" q-layout-padding":""}`);return()=>w("main",{class:a.value,style:s.value},Ge(e.default))}}),Ld=ze({name:"QCarouselSlide",props:{...Ed,imgSrc:String},setup(t,{slots:e}){const n=g(()=>t.imgSrc?{backgroundImage:`url("${t.imgSrc}")`}:{});return()=>w("div",{class:"q-carousel__slide",style:n.value},Ge(e.default))}}),Hm=ze({name:"QCarouselControl",props:{position:{type:String,default:"bottom-right",validator:t=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(t)},offset:{type:Array,default:()=>[18,18],validator:t=>t.length===2}},setup(t,{slots:e}){const n=g(()=>`q-carousel__control absolute absolute-${t.position}`),i=g(()=>({margin:`${t.offset[1]}px ${t.offset[0]}px`}));return()=>w("div",{class:n.value,style:i.value},Ge(e.default))}});let no=0;const Fd={fullscreen:Boolean,noRouteFullscreenExit:Boolean},zd=["update:fullscreen","fullscreen"];function Bd(){const t=$e(),{props:e,emit:n,proxy:i}=t;let o,s,a;const r=N(!1);Zg(t)===!0&&ge(()=>i.$route.fullPath,()=>{e.noRouteFullscreenExit!==!0&&u()}),ge(()=>e.fullscreen,d=>{r.value!==d&&l()}),ge(r,d=>{n("update:fullscreen",d),n("fullscreen",d)});function l(){r.value===!0?u():c()}function c(){r.value!==!0&&(r.value=!0,a=i.$el.parentNode,a.replaceChild(s,i.$el),document.body.appendChild(i.$el),no++,no===1&&document.body.classList.add("q-body--fullscreen-mixin"),o={handler:u},Ol.add(o))}function u(){r.value===!0&&(o!==void 0&&(Ol.remove(o),o=void 0),a.replaceChild(i.$el,s),r.value=!1,no=Math.max(0,no-1),no===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),i.$el.scrollIntoView!==void 0&&setTimeout(()=>{i.$el.scrollIntoView()})))}return Er(()=>{s=document.createElement("span")}),Wt(()=>{e.fullscreen===!0&&c()}),Ot(u),Object.assign(i,{toggleFullscreen:l,setFullscreen:c,exitFullscreen:u}),{inFullscreen:r,toggleFullscreen:l}}const jm=["top","right","bottom","left"],$m=["regular","flat","outline","push","unelevated"],Nd=ze({name:"QCarousel",props:{...un,...Ad,...Fd,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:t=>$m.includes(t),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:t=>jm.includes(t)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...zd,...Rd],setup(t,{slots:e}){const{proxy:{$q:n}}=$e(),i=dn(t,n);let o=null,s;const{updatePanelsList:a,getPanelContent:r,panelDirectives:l,goToPanel:c,previousPanel:u,nextPanel:d,getEnabledPanels:h,panelIndex:f}=qd(),{inFullscreen:m}=Bd(),p=g(()=>m.value!==!0&&t.height!==void 0?{height:t.height}:{}),v=g(()=>t.vertical===!0?"vertical":"horizontal"),b=g(()=>t.navigationPosition||(t.vertical===!0?"right":"bottom")),y=g(()=>`q-carousel q-panel-parent q-carousel--with${t.padding===!0?"":"out"}-padding`+(m.value===!0?" fullscreen":"")+(i.value===!0?" q-carousel--dark q-dark":"")+(t.arrows===!0?` q-carousel--arrows-${v.value}`:"")+(t.navigation===!0?` q-carousel--navigation-${b.value}`:"")),_=g(()=>{const M=[t.prevIcon||n.iconSet.carousel[t.vertical===!0?"up":"left"],t.nextIcon||n.iconSet.carousel[t.vertical===!0?"down":"right"]];return t.vertical===!1&&n.lang.rtl===!0?M.reverse():M}),x=g(()=>t.navigationIcon||n.iconSet.carousel.navigationIcon),C=g(()=>t.navigationActiveIcon||x.value),S=g(()=>({color:t.controlColor,textColor:t.controlTextColor,round:!0,[t.controlType]:!0,dense:!0}));ge(()=>t.modelValue,()=>{t.autoplay&&E()}),ge(()=>t.autoplay,M=>{M?E():o!==null&&(clearTimeout(o),o=null)});function E(){const M=Io(t.autoplay)===!0?Math.abs(t.autoplay):5e3;o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,M>=0?d():u()},M)}Wt(()=>{t.autoplay&&E()}),Ot(()=>{o!==null&&clearTimeout(o)});function A(M,R){return w("div",{class:`q-carousel__control q-carousel__navigation no-wrap absolute flex q-carousel__navigation--${M} q-carousel__navigation--${b.value}`+(t.controlColor!==void 0?` text-${t.controlColor}`:"")},[w("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},h().map(R))])}function D(){const M=[];if(t.navigation===!0){const R=e["navigation-icon"]!==void 0?e["navigation-icon"]:H=>w(Ve,{key:"nav"+H.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${H.active===!0?"":"in"}active`,...H.btnProps,onClick:H.onClick}),P=s-1;M.push(A("buttons",(H,z)=>{const $=H.props.name,U=f.value===z;return R({index:z,maxIndex:P,name:$,active:U,btnProps:{icon:U===!0?C.value:x.value,size:"sm",...S.value},onClick:()=>{c($)}})}))}else if(t.thumbnails===!0){const R=t.controlColor!==void 0?` text-${t.controlColor}`:"";M.push(A("thumbnails",P=>{const H=P.props;return w("img",{key:"tmb#"+H.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${H.name===t.modelValue?"":"in"}active`+R,src:H.imgSrc||H["img-src"],onClick:()=>{c(H.name)}})}))}return t.arrows===!0&&f.value>=0&&((t.infinite===!0||f.value>0)&&M.push(w("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${v.value} absolute flex flex-center`},[w(Ve,{icon:_.value[0],...S.value,onClick:u})])),(t.infinite===!0||f.value(s=a(e),w("div",{class:y.value,style:p.value},[na("div",{class:"q-carousel__slides-container"},r(),"sl-cont",t.swipeable,()=>l.value)].concat(D())))}}),Um=Se({__name:"EnergyFlowChart",setup(t,{expose:e}){e(),bd(X=>({"7061f1f7":s.value,"7c22ee07":l.value}));const n=Be(),i=N({xMin:0,xMax:150,yMin:0,yMax:105,circleRadius:10,strokeWidth:.5,textSize:5,numRows:4,numColumns:3}),o=g(()=>`${i.value.xMin} ${i.value.yMin} ${i.value.xMax} ${i.value.yMax}`),s=g(()=>i.value.strokeWidth),a=g(()=>i.value.circleRadius),r=g(()=>i.value.circleRadius),l=g(()=>`${i.value.textSize}px`),c=X=>{let ce={...X};return ce.textValue&&(ce.textValue=ce.textValue.replace(/^-/,"")),ce.value&&(ce.value=Math.abs(ce.value)),ce.scaledValue&&(ce.scaledValue=Math.abs(ce.scaledValue)),ce},u=g(()=>n.getGridPower("object")),d=g(()=>Number(u.value.value)>0),h=g(()=>Number(u.value.value)<0),f=g(()=>n.batteryTotalPower("object")),m=g(()=>Number(n.batteryTotalPower("value"))<0),p=g(()=>Number(n.batteryTotalPower("value"))>0),v=g(()=>Number(n.batterySocTotal)/100),b=g(()=>n.getHomePower("object")),y=g(()=>Number(b.value.value)>0),_=g(()=>Number(b.value.value)<0),x=g(()=>n.getPvPower("object")),C=g(()=>{const X=Number(x.value.value);return Math.abs(X)>=50}),S=g(()=>n.chargePointIds),E=g(()=>n.chargePointName(S.value[0])||"---"),A=g(()=>n.chargePointName(S.value[1])||"---"),D=g(()=>n.chargePointName(S.value[2])||"---"),M=g(()=>S.value.length>0?n.chargePointPower(S.value[0],"object")||{textValue:"Loading..."}:{textValue:"N/A"}),R=g(()=>S.value.length>0?n.chargePointPower(S.value[1],"object")||{textValue:"Loading..."}:{textValue:"N/A"}),P=g(()=>S.value.length>0?n.chargePointPower(S.value[2],"object")||{textValue:"Loading..."}:{textValue:"N/A"}),H=g(()=>Number(M.value.value)>0),z=g(()=>Number(M.value.value)<0),$=g(()=>Number(R.value.value)>0),U=g(()=>Number(R.value.value)<0),G=g(()=>Number(P.value.value)>0),Y=g(()=>Number(P.value.value)<0),te=X=>{switch(X){case"instant_charging":return{label:"Sofort",class:"danger"};case"pv_charging":return{label:"PV",class:"success"};case"scheduled_charging":return{label:"Zielladen",class:"primary"};case"time_charging":return{label:"Zeitladen",class:"warning"};case"eco_charging":return{label:"Eco",class:"secondary"};case"stop":return{label:"Stop",class:"dark"};default:return{label:"Stop",class:"dark"}}},de=g(()=>n.chargePointPlugState(S.value[0])),O=g(()=>{const X=n.chargePointConnectedVehicleChargeMode(S.value[0]);return te(X.value||"")}),T=g(()=>n.chargePointConnectedVehicleInfo(S.value[0]).value?.name||"---"),Q=g(()=>n.chargePointConnectedVehicleSoc(S.value[0])),re=g(()=>n.chargePointPlugState(S.value[1])),fe=g(()=>{const X=n.chargePointConnectedVehicleChargeMode(S.value[1]);return te(X.value||"")}),B=g(()=>n.chargePointConnectedVehicleInfo(S.value[1]).value?.name||"---"),J=g(()=>n.chargePointConnectedVehicleSoc(S.value[1])),we=g(()=>n.chargePointPlugState(S.value[2])),Z=g(()=>{const X=n.chargePointConnectedVehicleChargeMode(S.value[2]);return te(X.value||"")}),Ee=g(()=>n.chargePointConnectedVehicleInfo(S.value[2]).value?.name||"---"),Xe=g(()=>n.chargePointConnectedVehicleSoc(S.value[2])),_t=g(()=>n.chargePointSumPower("object")),et=g(()=>Number(_t.value.value)<0),dt=g(()=>Number(_t.value.value)>0),mt=g(()=>{const X=[];return X.push({id:"grid",class:{base:"grid",valueLabel:h.value?"fill-success":d.value?"fill-danger":"",animated:d.value,animatedReverse:h.value},position:{row:0,column:0},label:["EVU",c(u.value).textValue],icon:"icons/owbGrid.svg"}),X.push({id:"home",class:{base:"home",valueLabel:"",animated:_.value,animatedReverse:y.value},position:{row:0,column:2},label:["Haus",c(b.value).textValue],icon:"icons/owbHouse.svg"}),n.getPvConfigured&&X.push({id:"pv",class:{base:"pv",valueLabel:"fill-success",animated:C.value,animatedReverse:!1},position:{row:1,column:0},label:["PV",c(x.value).textValue],icon:"icons/owbPV.svg"}),n.batteryConfigured&&X.push({id:"battery",class:{base:"battery",valueLabel:"",animated:m.value,animatedReverse:p.value},position:{row:1,column:2},label:["Speicher",c(f.value).textValue],soc:v.value,icon:"icons/owbBattery.svg"}),S.value.length>0&&(S.value.length<=3?(X.push({id:"charge-point-1",class:{base:"charge-point",valueLabel:"",animated:z.value,animatedReverse:H.value},position:{row:2,column:S.value.length>1?0:1},label:[E.value,c(M.value).textValue],icon:"icons/owbChargePoint.svg"}),de.value&&X.push({id:"vehicle-1",class:{base:"vehicle",valueLabel:"fill-"+O.value.class,animated:z.value,animatedReverse:H.value},position:{row:3,column:S.value.length>1?0:1},label:[T.value||"---",O.value.label||"---"],soc:(Q.value.value?.soc||0)/100,icon:"icons/owbVehicle.svg"}),S.value.length>1&&X.push({id:"charge-point-2",class:{base:"charge-point",valueLabel:"",animated:U.value,animatedReverse:$.value},position:{row:2,column:S.value.length>2?1:2},label:[A.value,c(R.value).textValue],icon:"icons/owbChargePoint.svg"}),re.value&&X.push({id:"vehicle-2",class:{base:"vehicle",valueLabel:"fill-"+fe.value.class,animated:U.value,animatedReverse:$.value},position:{row:3,column:S.value.length>2?1:2},label:[B.value||"---",fe.value.label||"---"],soc:(J.value.value?.soc||0)/100,icon:"icons/owbVehicle.svg"}),S.value.length>2&&X.push({id:"charge-point-3",class:{base:"charge-point",valueLabel:"",animated:Y.value,animatedReverse:G.value},position:{row:2,column:2},label:[D.value,c(P.value).textValue],icon:"icons/owbChargePoint.svg"}),we.value&&X.push({id:"vehicle-3",class:{base:"vehicle",valueLabel:"fill-"+Z.value.class,animated:Y.value,animatedReverse:G.value},position:{row:3,column:2},label:[Ee.value||"---",Z.value.label||"---"],soc:(Xe.value.value?.soc||0)/100,icon:"icons/owbVehicle.svg"})):X.push({id:"charge-point-sum",class:{base:"charge-point",valueLabel:"",animated:et.value,animatedReverse:dt.value},position:{row:2,column:1},label:["Ladepunkte",c(_t.value).textValue],icon:"icons/owbChargePoint.svg"})),X}),ht=g(()=>S.value?.length>0?S.value.length>3?3:4:3);ge(ht,X=>{i.value.numRows=X},{immediate:!0});const Dt=X=>{const ce=i.value.yMin+i.value.strokeWidth+i.value.circleRadius,ye=i.value.yMax-i.value.strokeWidth-i.value.circleRadius-ce;return X*(ye/(i.value.numRows-1))+ce},Vt=X=>{const ce=i.value.xMin+i.value.strokeWidth+j.value/2,ye=i.value.xMax-i.value.strokeWidth-j.value/2-ce;return X*(ye/(i.value.numColumns-1))+ce},Ut=X=>{const ce=Vt(X);return X<(i.value.numColumns-1)/2?ce+j.value/2-i.value.circleRadius:X>(i.value.numColumns-1)/2?ce-j.value/2+i.value.circleRadius:ce},Et=X=>{const ce=document.getElementById(X);if(ce==null||!(ce instanceof SVGGraphicsElement))return{x:0,y:0,width:0,height:0};const De=ce.getBBox();return{x:De.x,y:De.y,width:De.width,height:De.height}},lt=X=>{const ce=document.querySelector(`#${X}`);ce&&ce.beginElement()},j=g(()=>(i.value.xMax-i.value.xMin-i.value.strokeWidth-i.value.numColumns)/i.value.numColumns),ae={mqttStore:n,svgSize:i,svgViewBox:o,svgStrokeWidth:s,svgIconWidth:a,svgIconHeight:r,svgFontSize:l,absoluteValueObject:c,gridPower:u,gridConsumption:d,gridFeedIn:h,batteryPower:f,batteryDischarging:m,batteryCharging:p,batterySoc:v,homePower:b,homeConsumption:y,homeProduction:_,pvPower:x,pvProduction:C,connectedChargePoints:S,chargePoint1Name:E,chargePoint2Name:A,chargePoint3Name:D,chargePoint1Power:M,chargePoint2Power:R,chargePoint3Power:P,chargePoint1Charging:H,chargePoint1Discharging:z,chargePoint2Charging:$,chargePoint2Discharging:U,chargePoint3Charging:G,chargePoint3Discharging:Y,translateChargeMode:te,chargePoint1VehicleConnected:de,chargePoint1ConnectedVehicleChargeMode:O,chargePoint1ConnectedVehicleName:T,chargePoint1ConnectedVehicleSoc:Q,chargePoint2VehicleConnected:re,chargePoint2ConnectedVehicleChargeMode:fe,chargePoint2ConnectedVehicleName:B,chargePoint2ConnectedVehicleSoc:J,chargePoint3VehicleConnected:we,chargePoint3ConnectedVehicleChargeMode:Z,chargePoint3ConnectedVehicleName:Ee,chargePoint3ConnectedVehicleSoc:Xe,chargePointSumPower:_t,chargePointSumDischarging:et,chargePointSumCharging:dt,svgComponents:mt,calculatedRows:ht,calcRowY:Dt,calcColumnX:Vt,calcFlowLineAnchorX:Ut,calcSvgElementBoundingBox:Et,beginAnimation:lt,svgRectWidth:j};return Object.defineProperty(ae,"__isScriptSetup",{enumerable:!1,value:!0}),ae}}),Ym={class:"svg-container"},Zm=["viewBox"],Xm={id:"layer1",style:{display:"inline"}},Km=["d"],Qm={id:"layer2",style:{display:"inline"}},Gm=["cx","cy","r"],Jm=["transform","onClick"],ev=["id"],tv=["x","y","width","height"],nv=["id"],iv=["x","y","width","height","rx","ry"],ov=["x","y","width","height","rx","ry"],sv=["clip-path"],av=["id","x","y"],rv=["id","values"],lv=["id","x","y"],cv=["transform"],uv=["r"],dv=["r"],hv=["r","clip-path"],fv=["href","x","y","height","width"];function gv(t,e,n,i,o,s){return V(),K("div",Ym,[(V(),K("svg",{viewBox:i.svgViewBox,version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"},[q("g",Xm,[(V(!0),K(Oe,null,Je(i.svgComponents,a=>(V(),K("path",{key:a.id,class:Tt([a.class.base,{animated:a.class.animated},{animatedReverse:a.class.animatedReverse}]),d:a.class.base!=="vehicle"?`M ${i.calcFlowLineAnchorX(a.position.column)}, ${i.calcRowY(a.position.row)} ${i.calcColumnX(1)}, ${i.calcRowY(1)}`:`M ${i.calcFlowLineAnchorX(a.position.column)}, ${i.calcRowY(a.position.row)} ${i.calcFlowLineAnchorX(a.position.column)}, ${i.calcRowY(a.position.row-1)}`},null,10,Km))),128))]),q("g",Qm,[q("circle",{id:"center",cx:i.calcColumnX(1),cy:i.calcRowY(1),r:i.svgSize.circleRadius/3},null,8,Gm),(V(!0),K(Oe,null,Je(i.svgComponents,a=>(V(),K("g",{key:a.id,class:Tt(a.class.base),transform:`translate(${i.calcColumnX(a.position.column)}, ${i.calcRowY(a.position.row)})`,onClick:r=>i.beginAnimation(`animate-label-${a.id}`)},[q("defs",null,[a.soc?(V(),K("clipPath",{key:0,id:`clip-soc-${a.id}`},[q("rect",{x:-i.svgSize.circleRadius-i.svgSize.strokeWidth,y:(i.svgSize.circleRadius+i.svgSize.strokeWidth)*(1-2*a.soc),width:(i.svgSize.circleRadius+i.svgSize.strokeWidth)*2,height:(i.svgSize.circleRadius+i.svgSize.strokeWidth)*2*a.soc},null,8,tv)],8,ev)):ue("",!0),q("clipPath",{id:`clip-label-${a.id}`},[q("rect",{x:-i.svgRectWidth/2,y:-i.svgSize.circleRadius,width:i.svgRectWidth,height:i.svgSize.circleRadius*2,rx:i.svgSize.circleRadius,ry:i.svgSize.circleRadius},null,8,iv)],8,nv)]),q("rect",{x:-i.svgRectWidth/2,y:-i.svgSize.circleRadius,width:i.svgRectWidth,height:i.svgSize.circleRadius*2,rx:i.svgSize.circleRadius,ry:i.svgSize.circleRadius},null,8,ov),q("text",{"clip-path":`url(#clip-label-${a.id})`},[q("tspan",{id:`label-${a.id}`,"text-anchor":"start",x:-i.svgRectWidth/2+2*i.svgSize.circleRadius+i.svgSize.strokeWidth,y:-i.svgSize.textSize/2},[i.calcSvgElementBoundingBox(`label-${a.id}`).width>i.svgRectWidth-2*i.svgSize.circleRadius-2*i.svgSize.strokeWidth?(V(),K("animate",{key:0,id:`animate-label-${a.id}`,xmlns:"http://www.w3.org/2000/svg",attributeName:"x",dur:"5s",values:"0; "+(-i.calcSvgElementBoundingBox(`label-${a.id}`).width+i.svgRectWidth-2.5*i.svgSize.circleRadius-2*i.svgSize.strokeWidth)+"; 0;",repeatCount:"0",additive:"sum"},null,8,rv)):ue("",!0),qe(" "+le(a.label[0]),1)],8,av),q("tspan",{id:`value-${a.id}`,class:Tt(a.class.valueLabel),"text-anchor":"end",x:2*i.svgSize.circleRadius+i.svgSize.strokeWidth,y:i.svgSize.textSize},le(a.label[1]),11,lv)],8,sv),q("g",{transform:`translate(${i.svgSize.circleRadius-i.svgRectWidth/2}, 0)`},[q("circle",{cx:"0",cy:"0",r:i.svgSize.circleRadius,class:"background-circle"},null,8,uv),q("circle",{cx:"0",cy:"0",r:i.svgSize.circleRadius,class:Tt({soc:a.soc})},null,10,dv),a.soc?(V(),K("circle",{key:0,cx:"0",cy:"0",r:i.svgSize.circleRadius,"clip-path":`url(#clip-soc-${a.id})`},null,8,hv)):ue("",!0),q("image",{href:a.icon,x:-i.svgIconWidth/2,y:-i.svgIconHeight/2,height:i.svgIconHeight,width:i.svgIconWidth},null,8,fv)],8,cv)],10,Jm))),128))])],8,Zm))])}const mv=Me(Um,[["render",gv],["__scopeId","data-v-62f971c1"],["__file","EnergyFlowChart.vue"]]);/*! * @kurkle/color v0.3.4 * https://github.com/kurkle/color#readme * (c) 2024 Jukka Kurkela * Released under the MIT License - */function zo(t){return t+.5|0}const Fn=(t,e,n)=>Math.max(Math.min(t,n),e);function ho(t){return Fn(zo(t*2.55),0,255)}function Bn(t){return Fn(zo(t*255),0,255)}function kn(t){return Fn(zo(t/2.55)/100,0,1)}function Hl(t){return Fn(zo(t*100),0,100)}const Yt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ra=[..."0123456789ABCDEF"],vv=t=>ra[t&15],pv=t=>ra[(t&240)>>4]+ra[t&15],es=t=>(t&240)>>4===(t&15),bv=t=>es(t.r)&&es(t.g)&&es(t.b)&&es(t.a);function yv(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Yt[t[1]]*17,g:255&Yt[t[2]]*17,b:255&Yt[t[3]]*17,a:e===5?Yt[t[4]]*17:255}:(e===7||e===9)&&(n={r:Yt[t[1]]<<4|Yt[t[2]],g:Yt[t[3]]<<4|Yt[t[4]],b:Yt[t[5]]<<4|Yt[t[6]],a:e===9?Yt[t[7]]<<4|Yt[t[8]]:255})),n}const _v=(t,e)=>t<255?e(t):"";function xv(t){var e=bv(t)?vv:pv;return t?"#"+e(t.r)+e(t.g)+e(t.b)+_v(t.a,e):void 0}const Sv=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Nd(t,e,n){const i=e*Math.min(n,1-n),o=(s,r=(s+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[o(0),o(8),o(4)]}function wv(t,e,n){const i=(o,s=(o+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function kv(t,e,n){const i=Nd(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function Cv(t,e,n,i,o){return t===o?(e-n)/i+(e.5?u/(2-s-r):u/(s+r),l=Cv(n,i,o,u,s),l=l*60+.5),[l|0,c||0,a]}function za(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(Bn)}function Ba(t,e,n){return za(Nd,t,e,n)}function Mv(t,e,n){return za(kv,t,e,n)}function Pv(t,e,n){return za(wv,t,e,n)}function Wd(t){return(t%360+360)%360}function Tv(t){const e=Sv.exec(t);let n=255,i;if(!e)return;e[5]!==i&&(n=e[6]?ho(+e[5]):Bn(+e[5]));const o=Wd(+e[2]),s=+e[3]/100,r=+e[4]/100;return e[1]==="hwb"?i=Mv(o,s,r):e[1]==="hsv"?i=Pv(o,s,r):i=Ba(o,s,r),{r:i[0],g:i[1],b:i[2],a:n}}function Iv(t,e){var n=Fa(t);n[0]=Wd(n[0]+e),n=Ba(n),t.r=n[0],t.g=n[1],t.b=n[2]}function Ov(t){if(!t)return;const e=Fa(t),n=e[0],i=Hl(e[1]),o=Hl(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${kn(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}const jl={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},$l={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Dv(){const t={},e=Object.keys($l),n=Object.keys(jl);let i,o,s,r,a;for(i=0;i>16&255,s>>8&255,s&255]}return t}let ts;function Vv(t){ts||(ts=Dv(),ts.transparent=[0,0,0,0]);const e=ts[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const Ev=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Av(t){const e=Ev.exec(t);let n=255,i,o,s;if(e){if(e[7]!==i){const r=+e[7];n=e[8]?ho(r):Fn(r*255,0,255)}return i=+e[1],o=+e[3],s=+e[5],i=255&(e[2]?ho(i):Fn(i,0,255)),o=255&(e[4]?ho(o):Fn(o,0,255)),s=255&(e[6]?ho(s):Fn(s,0,255)),{r:i,g:o,b:s,a:n}}}function Rv(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${kn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Rr=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,xi=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function qv(t,e,n){const i=xi(kn(t.r)),o=xi(kn(t.g)),s=xi(kn(t.b));return{r:Bn(Rr(i+n*(xi(kn(e.r))-i))),g:Bn(Rr(o+n*(xi(kn(e.g))-o))),b:Bn(Rr(s+n*(xi(kn(e.b))-s))),a:t.a+n*(e.a-t.a)}}function ns(t,e,n){if(t){let i=Fa(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,e===0?360:1)),i=Ba(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Hd(t,e){return t&&Object.assign(e||{},t)}function Ul(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Bn(t[3]))):(e=Hd(t,{r:0,g:0,b:0,a:1}),e.a=Bn(e.a)),e}function Lv(t){return t.charAt(0)==="r"?Av(t):Tv(t)}class Vo{constructor(e){if(e instanceof Vo)return e;const n=typeof e;let i;n==="object"?i=Ul(e):n==="string"&&(i=yv(e)||Vv(e)||Lv(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=Hd(this._rgb);return e&&(e.a=kn(e.a)),e}set rgb(e){this._rgb=Ul(e)}rgbString(){return this._valid?Rv(this._rgb):void 0}hexString(){return this._valid?xv(this._rgb):void 0}hslString(){return this._valid?Ov(this._rgb):void 0}mix(e,n){if(e){const i=this.rgb,o=e.rgb;let s;const r=n===s?.5:n,a=2*r-1,l=i.a-o.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,i.r=255&c*i.r+s*o.r+.5,i.g=255&c*i.g+s*o.g+.5,i.b=255&c*i.b+s*o.b+.5,i.a=r*i.a+(1-r)*o.a,this.rgb=i}return this}interpolate(e,n){return e&&(this._rgb=qv(this._rgb,e._rgb,n)),this}clone(){return new Vo(this.rgb)}alpha(e){return this._rgb.a=Bn(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=zo(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return ns(this._rgb,2,e),this}darken(e){return ns(this._rgb,2,-e),this}saturate(e){return ns(this._rgb,1,e),this}desaturate(e){return ns(this._rgb,1,-e),this}rotate(e){return Iv(this._rgb,e),this}}/*! + */function Bo(t){return t+.5|0}const Fn=(t,e,n)=>Math.max(Math.min(t,n),e);function fo(t){return Fn(Bo(t*2.55),0,255)}function Bn(t){return Fn(Bo(t*255),0,255)}function kn(t){return Fn(Bo(t/2.55)/100,0,1)}function Hl(t){return Fn(Bo(t*100),0,100)}const Yt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ar=[..."0123456789ABCDEF"],vv=t=>ar[t&15],pv=t=>ar[(t&240)>>4]+ar[t&15],ts=t=>(t&240)>>4===(t&15),bv=t=>ts(t.r)&&ts(t.g)&&ts(t.b)&&ts(t.a);function yv(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Yt[t[1]]*17,g:255&Yt[t[2]]*17,b:255&Yt[t[3]]*17,a:e===5?Yt[t[4]]*17:255}:(e===7||e===9)&&(n={r:Yt[t[1]]<<4|Yt[t[2]],g:Yt[t[3]]<<4|Yt[t[4]],b:Yt[t[5]]<<4|Yt[t[6]],a:e===9?Yt[t[7]]<<4|Yt[t[8]]:255})),n}const _v=(t,e)=>t<255?e(t):"";function xv(t){var e=bv(t)?vv:pv;return t?"#"+e(t.r)+e(t.g)+e(t.b)+_v(t.a,e):void 0}const Sv=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Wd(t,e,n){const i=e*Math.min(n,1-n),o=(s,a=(s+t/30)%12)=>n-i*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function wv(t,e,n){const i=(o,s=(o+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function kv(t,e,n){const i=Wd(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function Cv(t,e,n,i,o){return t===o?(e-n)/i+(e.5?u/(2-s-a):u/(s+a),l=Cv(n,i,o,u,s),l=l*60+.5),[l|0,c||0,r]}function zr(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(Bn)}function Br(t,e,n){return zr(Wd,t,e,n)}function Mv(t,e,n){return zr(kv,t,e,n)}function Pv(t,e,n){return zr(wv,t,e,n)}function Hd(t){return(t%360+360)%360}function Tv(t){const e=Sv.exec(t);let n=255,i;if(!e)return;e[5]!==i&&(n=e[6]?fo(+e[5]):Bn(+e[5]));const o=Hd(+e[2]),s=+e[3]/100,a=+e[4]/100;return e[1]==="hwb"?i=Mv(o,s,a):e[1]==="hsv"?i=Pv(o,s,a):i=Br(o,s,a),{r:i[0],g:i[1],b:i[2],a:n}}function Iv(t,e){var n=Fr(t);n[0]=Hd(n[0]+e),n=Br(n),t.r=n[0],t.g=n[1],t.b=n[2]}function Ov(t){if(!t)return;const e=Fr(t),n=e[0],i=Hl(e[1]),o=Hl(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${kn(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}const jl={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},$l={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Dv(){const t={},e=Object.keys($l),n=Object.keys(jl);let i,o,s,a,r;for(i=0;i>16&255,s>>8&255,s&255]}return t}let ns;function Vv(t){ns||(ns=Dv(),ns.transparent=[0,0,0,0]);const e=ns[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const Ev=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Av(t){const e=Ev.exec(t);let n=255,i,o,s;if(e){if(e[7]!==i){const a=+e[7];n=e[8]?fo(a):Fn(a*255,0,255)}return i=+e[1],o=+e[3],s=+e[5],i=255&(e[2]?fo(i):Fn(i,0,255)),o=255&(e[4]?fo(o):Fn(o,0,255)),s=255&(e[6]?fo(s):Fn(s,0,255)),{r:i,g:o,b:s,a:n}}}function Rv(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${kn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Ra=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Si=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function qv(t,e,n){const i=Si(kn(t.r)),o=Si(kn(t.g)),s=Si(kn(t.b));return{r:Bn(Ra(i+n*(Si(kn(e.r))-i))),g:Bn(Ra(o+n*(Si(kn(e.g))-o))),b:Bn(Ra(s+n*(Si(kn(e.b))-s))),a:t.a+n*(e.a-t.a)}}function is(t,e,n){if(t){let i=Fr(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,e===0?360:1)),i=Br(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function jd(t,e){return t&&Object.assign(e||{},t)}function Ul(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Bn(t[3]))):(e=jd(t,{r:0,g:0,b:0,a:1}),e.a=Bn(e.a)),e}function Lv(t){return t.charAt(0)==="r"?Av(t):Tv(t)}class Eo{constructor(e){if(e instanceof Eo)return e;const n=typeof e;let i;n==="object"?i=Ul(e):n==="string"&&(i=yv(e)||Vv(e)||Lv(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=jd(this._rgb);return e&&(e.a=kn(e.a)),e}set rgb(e){this._rgb=Ul(e)}rgbString(){return this._valid?Rv(this._rgb):void 0}hexString(){return this._valid?xv(this._rgb):void 0}hslString(){return this._valid?Ov(this._rgb):void 0}mix(e,n){if(e){const i=this.rgb,o=e.rgb;let s;const a=n===s?.5:n,r=2*a-1,l=i.a-o.a,c=((r*l===-1?r:(r+l)/(1+r*l))+1)/2;s=1-c,i.r=255&c*i.r+s*o.r+.5,i.g=255&c*i.g+s*o.g+.5,i.b=255&c*i.b+s*o.b+.5,i.a=a*i.a+(1-a)*o.a,this.rgb=i}return this}interpolate(e,n){return e&&(this._rgb=qv(this._rgb,e._rgb,n)),this}clone(){return new Eo(this.rgb)}alpha(e){return this._rgb.a=Bn(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=Bo(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return is(this._rgb,2,e),this}darken(e){return is(this._rgb,2,-e),this}saturate(e){return is(this._rgb,1,e),this}desaturate(e){return is(this._rgb,1,-e),this}rotate(e){return Iv(this._rgb,e),this}}/*! * Chart.js v4.4.8 * https://www.chartjs.org * (c) 2025 Chart.js Contributors * Released under the MIT License - */function bn(){}const Fv=(()=>{let t=0;return()=>t++})();function Ze(t){return t==null}function Qe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function xe(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function yt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function hn(t,e){return yt(t)?t:e}function Ce(t,e){return typeof t>"u"?e:t}const zv=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,jd=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function je(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Ne(t,e,n,i){let o,s,r;if(Qe(t))for(s=t.length,o=0;ot,x:t=>t.x,y:t=>t.y};function Wv(t){const e=t.split("."),n=[];let i="";for(const o of e)i+=o,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function Hv(t){const e=Wv(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function Ao(t,e){return(Yl[e]||(Yl[e]=Hv(e)))(t)}function Na(t){return t.charAt(0).toUpperCase()+t.slice(1)}const $t=t=>typeof t<"u",Nt=t=>typeof t=="function",Zl=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function jv(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const We=Math.PI,pt=2*We,$v=pt+We,qs=Number.POSITIVE_INFINITY,Wa=We/180,wt=We/2,Xt=We/4,Ls=We*2/3,aa=Math.log10,Li=Math.sign;function So(t,e,n){return Math.abs(t-e)o-s).pop(),e}function Yv(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function li(t){return!Yv(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Zv(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function Xv(t,e,n){let i,o,s;for(i=0,o=t.length;il&&c=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Ha(t,e,n){n=n||(r=>t[r]1;)s=o+i>>1,n(s)?o=s:i=s;return{lo:o,hi:i}}const ti=(t,e,n,i)=>Ha(t,n,i?o=>{const s=t[o][e];return st[o][e]Ha(t,n,i=>t[i][e]>=n);function Jv(t,e,n){let i=0,o=t.length;for(;ii&&t[o-1]>n;)o--;return i>0||o{const i="_onData"+Na(n),o=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const r=o.apply(this,s);return t._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...s)}),r}})})}function Ql(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,o=i.indexOf(e);o!==-1&&i.splice(o,1),!(i.length>0)&&(Yd.forEach(s=>{delete t[s]}),delete t._chartjs)}function tp(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Zd=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Xd(t,e){let n=[],i=!1;return function(...o){n=o,i||(i=!0,Zd.call(window,()=>{i=!1,t.apply(e,n)}))}}function np(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const Kd=t=>t==="start"?"left":t==="end"?"right":"center",Ht=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,ip=(t,e,n,i)=>t===(i?"left":"right")?n:t==="center"?(e+n)/2:e;function op(t,e,n){const i=e.length;let o=0,s=i;if(t._sorted){const{iScale:r,vScale:a,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,u=r.axis,{min:d,max:h,minDefined:f,maxDefined:m}=r.getUserBounds();if(f){if(o=Math.min(ti(l,u,d).lo,n?i:ti(e,u,r.getPixelForValue(d)).lo),c){const p=l.slice(0,o+1).reverse().findIndex(v=>!Ze(v[a.axis]));o-=Math.max(0,p)}o=sn(o,0,i-1)}if(m){let p=Math.max(ti(l,r.axis,h,!0).hi+1,n?0:ti(e,u,r.getPixelForValue(h),!0).hi+1);if(c){const v=l.slice(p-1).findIndex(b=>!Ze(b[a.axis]));p+=Math.max(0,v)}s=sn(p,o,i)-o}else s=i-o}return{start:o,count:s}}function sp(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=o,!0;const s=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),s}const is=t=>t===0||t===1,Gl=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*pt/n)),Jl=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*pt/n)+1,wo={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*wt)+1,easeOutSine:t=>Math.sin(t*wt),easeInOutSine:t=>-.5*(Math.cos(We*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>is(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>is(t)?t:Gl(t,.075,.3),easeOutElastic:t=>is(t)?t:Jl(t,.075,.3),easeInOutElastic(t){return is(t)?t:t<.5?.5*Gl(t*2,.1125,.45):.5+.5*Jl(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-wo.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?wo.easeInBounce(t*2)*.5:wo.easeOutBounce(t*2-1)*.5+.5};function ja(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function ec(t){return ja(t)?t:new Vo(t)}function qr(t){return ja(t)?t:new Vo(t).saturate(.5).darken(.1).hexString()}const rp=["x","y","borderWidth","radius","tension"],ap=["color","borderColor","backgroundColor"];function lp(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:ap},numbers:{type:"number",properties:rp}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function cp(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const tc=new Map;function up(t,e){e=e||{};const n=t+JSON.stringify(e);let i=tc.get(n);return i||(i=new Intl.NumberFormat(t,e),tc.set(n,i)),i}function $a(t,e,n){return up(e,n).format(t)}const Qd={values(t){return Qe(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let o,s=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),s=dp(t,n)}const r=aa(Math.abs(s)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),$a(t,i,l)},logarithmic(t,e,n){if(t===0)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(aa(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?Qd.numeric.call(this,t,e,n):""}};function dp(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var Gd={formatters:Qd};function hp(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Gd.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const ci=Object.create(null),ca=Object.create(null);function ko(t,e){if(!e)return t;const n=e.split(".");for(let i=0,o=n.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,o)=>qr(o.backgroundColor),this.hoverBorderColor=(i,o)=>qr(o.borderColor),this.hoverColor=(i,o)=>qr(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return Lr(this,e,n)}get(e){return ko(this,e)}describe(e,n){return Lr(ca,e,n)}override(e,n){return Lr(ci,e,n)}route(e,n,i,o){const s=ko(this,e),r=ko(this,i),a="_"+n;Object.defineProperties(s,{[a]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[o];return xe(l)?Object.assign({},c,l):Ce(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var at=new fp({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[lp,cp,hp]);function gp(t){return!t||Ze(t.size)||Ze(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function nc(t,e,n,i,o){let s=e[o];return s||(s=e[o]=t.measureText(o).width,n.push(o)),s>i&&(i=s),i}function Yn(t,e,n){const i=t.currentDevicePixelRatio,o=n!==0?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function ic(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function ua(t,e,n,i){Jd(t,e,n,i,null)}function Jd(t,e,n,i,o){let s,r,a,l,c,u,d,h;const f=e.pointStyle,m=e.rotation,p=e.radius;let v=(m||0)*Wa;if(f&&typeof f=="object"&&(s=f.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(n,i),t.rotate(v),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),f){default:o?t.ellipse(n,i,o/2,p,0,0,pt):t.arc(n,i,p,0,pt),t.closePath();break;case"triangle":u=o?o/2:p,t.moveTo(n+Math.sin(v)*u,i-Math.cos(v)*p),v+=Ls,t.lineTo(n+Math.sin(v)*u,i-Math.cos(v)*p),v+=Ls,t.lineTo(n+Math.sin(v)*u,i-Math.cos(v)*p),t.closePath();break;case"rectRounded":c=p*.516,l=p-c,r=Math.cos(v+Xt)*l,d=Math.cos(v+Xt)*(o?o/2-c:l),a=Math.sin(v+Xt)*l,h=Math.sin(v+Xt)*(o?o/2-c:l),t.arc(n-d,i-a,c,v-We,v-wt),t.arc(n+h,i-r,c,v-wt,v),t.arc(n+d,i+a,c,v,v+wt),t.arc(n-h,i+r,c,v+wt,v+We),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,u=o?o/2:l,t.rect(n-u,i-l,2*u,2*l);break}v+=Xt;case"rectRot":d=Math.cos(v)*(o?o/2:p),r=Math.cos(v)*p,a=Math.sin(v)*p,h=Math.sin(v)*(o?o/2:p),t.moveTo(n-d,i-a),t.lineTo(n+h,i-r),t.lineTo(n+d,i+a),t.lineTo(n-h,i+r),t.closePath();break;case"crossRot":v+=Xt;case"cross":d=Math.cos(v)*(o?o/2:p),r=Math.cos(v)*p,a=Math.sin(v)*p,h=Math.sin(v)*(o?o/2:p),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+h,i-r),t.lineTo(n-h,i+r);break;case"star":d=Math.cos(v)*(o?o/2:p),r=Math.cos(v)*p,a=Math.sin(v)*p,h=Math.sin(v)*(o?o/2:p),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+h,i-r),t.lineTo(n-h,i+r),v+=Xt,d=Math.cos(v)*(o?o/2:p),r=Math.cos(v)*p,a=Math.sin(v)*p,h=Math.sin(v)*(o?o/2:p),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+h,i-r),t.lineTo(n-h,i+r);break;case"line":r=o?o/2:Math.cos(v)*p,a=Math.sin(v)*p,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(v)*(o?o/2:p),i+Math.sin(v)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Ro(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&s.strokeColor!=="";let l,c;for(t.save(),t.font=o.string,pp(t,s),l=0;l+t||0;function eh(t,e){const n={},i=xe(e),o=i?Object.keys(e):e,s=xe(t)?i?r=>Ce(t[r],t[e[r]]):r=>t[r]:()=>t;for(const r of o)n[r]=wp(s(r));return n}function kp(t){return eh(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Oi(t){return eh(t,["topLeft","topRight","bottomLeft","bottomRight"])}function qt(t){const e=kp(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function kt(t,e){t=t||{},e=e||at.font;let n=Ce(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let i=Ce(t.style,e.style);i&&!(""+i).match(xp)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const o={family:Ce(t.family,e.family),lineHeight:Sp(Ce(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:Ce(t.weight,e.weight),string:""};return o.string=gp(o),o}function os(t,e,n,i){let o,s,r;for(o=0,s=t.length;on&&a===0?0:a+l;return{min:r(i,-Math.abs(s)),max:r(o,s)}}function hi(t,e){return Object.assign(Object.create(t),e)}function Ua(t,e=[""],n,i,o=()=>t[0]){const s=n||t;typeof i>"u"&&(i=oh("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:o,override:a=>Ua([a,...t],e,s,i)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return nh(a,l,()=>Ep(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return sc(a).includes(l)},ownKeys(a){return sc(a)},set(a,l,c){const u=a._storage||(a._storage=o());return a[l]=u[l]=c,delete a._keys,!0}})}function zi(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:th(t,i),setContext:s=>zi(t,s,n,i),override:s=>zi(t.override(s),e,n,i)};return new Proxy(o,{deleteProperty(s,r){return delete s[r],delete t[r],!0},get(s,r,a){return nh(s,r,()=>Pp(s,r,a))},getOwnPropertyDescriptor(s,r){return s._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,r){return Reflect.has(t,r)},ownKeys(){return Reflect.ownKeys(t)},set(s,r,a){return t[r]=a,delete s[r],!0}})}function th(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:Nt(n)?n:()=>n,isIndexable:Nt(i)?i:()=>i}}const Mp=(t,e)=>t?t+Na(e):e,Ya=(t,e)=>xe(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function nh(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const i=n();return t[e]=i,i}function Pp(t,e,n){const{_proxy:i,_context:o,_subProxy:s,_descriptors:r}=t;let a=i[e];return Nt(a)&&r.isScriptable(e)&&(a=Tp(e,a,t,n)),Qe(a)&&a.length&&(a=Ip(e,a,t,r.isIndexable)),Ya(e,a)&&(a=zi(a,o,s&&s[e],r)),a}function Tp(t,e,n,i){const{_proxy:o,_context:s,_subProxy:r,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(s,r||i);return a.delete(t),Ya(t,l)&&(l=Za(o._scopes,o,t,l)),l}function Ip(t,e,n,i){const{_proxy:o,_context:s,_subProxy:r,_descriptors:a}=n;if(typeof s.index<"u"&&i(t))return e[s.index%e.length];if(xe(e[0])){const l=e,c=o._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=Za(c,o,t,u);e.push(zi(d,s,r&&r[t],a))}}return e}function ih(t,e,n){return Nt(t)?t(e,n):t}const Op=(t,e)=>t===!0?e:typeof t=="string"?Ao(e,t):void 0;function Dp(t,e,n,i,o){for(const s of e){const r=Op(n,s);if(r){t.add(r);const a=ih(r._fallback,n,o);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(r===!1&&typeof i<"u"&&n!==i)return null}return!1}function Za(t,e,n,i){const o=e._rootScopes,s=ih(e._fallback,n,i),r=[...t,...o],a=new Set;a.add(i);let l=oc(a,r,n,s||n,i);return l===null||typeof s<"u"&&s!==n&&(l=oc(a,r,s,l,i),l===null)?!1:Ua(Array.from(a),[""],o,s,()=>Vp(e,n,i))}function oc(t,e,n,i,o){for(;n;)n=Dp(t,e,n,i,o);return n}function Vp(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];return Qe(o)&&xe(n)?n:o||{}}function Ep(t,e,n,i){let o;for(const s of e)if(o=oh(Mp(s,t),n),typeof o<"u")return Ya(t,o)?Za(n,i,t,o):o}function oh(t,e){for(const n of e){if(!n)continue;const i=n[t];if(typeof i<"u")return i}}function sc(t){let e=t._keys;return e||(e=t._keys=Ap(t._scopes)),e}function Ap(t){const e=new Set;for(const n of t)for(const i of Object.keys(n).filter(o=>!o.startsWith("_")))e.add(i);return Array.from(e)}const Rp=Number.EPSILON||1e-14,Bi=(t,e)=>et==="x"?"y":"x";function qp(t,e,n,i){const o=t.skip?e:t,s=e,r=n.skip?e:n,a=Fi(s,o),l=Fi(r,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,h=i*u;return{previous:{x:s.x-d*(r.x-o.x),y:s.y-d*(r.y-o.y)},next:{x:s.x+h*(r.x-o.x),y:s.y+h*(r.y-o.y)}}}function Lp(t,e,n){const i=t.length;let o,s,r,a,l,c=Bi(t,0);for(let u=0;u!c.skip)),e.cubicInterpolationMode==="monotone")zp(t,o);else{let c=i?t[t.length-1]:t[0];for(s=0,r=t.length;st.ownerDocument.defaultView.getComputedStyle(t,null);function Wp(t,e){return ar(t).getPropertyValue(e)}const Hp=["top","right","bottom","left"];function si(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const s=Hp[o];i[s]=parseFloat(t[e+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const jp=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function $p(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:s}=i;let r=!1,a,l;if(jp(o,s,t.target))a=o,l=s;else{const c=e.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Qn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=ar(n),s=o.boxSizing==="border-box",r=si(o,"padding"),a=si(o,"border","width"),{x:l,y:c,box:u}=$p(t,n),d=r.left+(u&&a.left),h=r.top+(u&&a.top);let{width:f,height:m}=e;return s&&(f-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-d)/f*n.width/i),y:Math.round((c-h)/m*n.height/i)}}function Up(t,e,n){let i,o;if(e===void 0||n===void 0){const s=t&&Ka(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const r=s.getBoundingClientRect(),a=ar(s),l=si(a,"border","width"),c=si(a,"padding");e=r.width-c.width-l.width,n=r.height-c.height-l.height,i=Ns(a.maxWidth,s,"clientWidth"),o=Ns(a.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:i||qs,maxHeight:o||qs}}const rs=t=>Math.round(t*10)/10;function Yp(t,e,n,i){const o=ar(t),s=si(o,"margin"),r=Ns(o.maxWidth,t,"clientWidth")||qs,a=Ns(o.maxHeight,t,"clientHeight")||qs,l=Up(t,e,n);let{width:c,height:u}=l;if(o.boxSizing==="content-box"){const h=si(o,"border","width"),f=si(o,"padding");c-=f.width+h.width,u-=f.height+h.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=rs(Math.min(c,r,l.maxWidth)),u=rs(Math.min(u,a,l.maxHeight)),c&&!u&&(u=rs(c/2)),(e!==void 0||n!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=rs(Math.floor(u*i))),{width:c,height:u}}function rc(t,e,n){const i=e||1,o=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const r=t.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||r.height!==o||r.width!==s?(t.currentDevicePixelRatio=i,r.height=o,r.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}const Zp=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Xa()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function ac(t,e){const n=Wp(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Gn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Xp(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:i==="middle"?n<.5?t.y:e.y:i==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function Kp(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},r=Gn(t,o,n),a=Gn(o,s,n),l=Gn(s,e,n),c=Gn(r,a,n),u=Gn(a,l,n);return Gn(c,u,n)}const Qp=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},Gp=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Di(t,e,n){return t?Qp(e,n):Gp()}function rh(t,e){let n,i;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function ah(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function lh(t){return t==="angle"?{between:Fs,compare:Kv,normalize:mn}:{between:Ti,compare:(e,n)=>e-n,normalize:e=>e}}function lc({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n===0,style:o}}function Jp(t,e,n){const{property:i,start:o,end:s}=n,{between:r,normalize:a}=lh(i),l=e.length;let{start:c,end:u,loop:d}=t,h,f;if(d){for(c+=l,u+=l,h=0,f=l;hl(o,y,b)&&a(o,y)!==0,C=()=>a(s,b)===0||l(s,y,b),S=()=>p||_(),E=()=>!p||C();for(let A=u,D=u;A<=d;++A)x=e[A%r],!x.skip&&(b=c(x[i]),b!==y&&(p=l(b,o,s),v===null&&S()&&(v=a(b,o)===0?A:D),v!==null&&E()&&(m.push(lc({start:v,end:A,loop:h,count:r,style:f})),v=null),D=A,y=b));return v!==null&&m.push(lc({start:v,end:d,loop:h,count:r,style:f})),m}function uh(t,e){const n=[],i=t.segments;for(let o=0;oo&&t[s%e].skip;)s--;return s%=e,{start:o,end:s}}function tb(t,e,n,i){const o=t.length,s=[];let r=e,a=t[e],l;for(l=e+1;l<=n;++l){const c=t[l%o];c.skip||c.stop?a.skip||(i=!1,s.push({start:e%o,end:(l-1)%o,loop:i}),e=r=c.stop?l:null):(r=l,a.skip&&(e=l)),a=c}return r!==null&&s.push({start:e%o,end:r%o,loop:i}),s}function nb(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const s=!!t._loop,{start:r,end:a}=eb(n,o,s,i);if(i===!0)return cc(t,[{start:r,end:a,loop:s}],n,e);const l=a{let t=0;return()=>t++})();function Ze(t){return t==null}function Qe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function xe(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function yt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function hn(t,e){return yt(t)?t:e}function Ce(t,e){return typeof t>"u"?e:t}const zv=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,$d=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function je(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Ne(t,e,n,i){let o,s,a;if(Qe(t))for(s=t.length,o=0;ot,x:t=>t.x,y:t=>t.y};function Wv(t){const e=t.split("."),n=[];let i="";for(const o of e)i+=o,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function Hv(t){const e=Wv(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function Ro(t,e){return(Yl[e]||(Yl[e]=Hv(e)))(t)}function Nr(t){return t.charAt(0).toUpperCase()+t.slice(1)}const $t=t=>typeof t<"u",Nt=t=>typeof t=="function",Zl=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function jv(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const We=Math.PI,pt=2*We,$v=pt+We,qs=Number.POSITIVE_INFINITY,Wr=We/180,wt=We/2,Xt=We/4,Ls=We*2/3,rr=Math.log10,Fi=Math.sign;function wo(t,e,n){return Math.abs(t-e)o-s).pop(),e}function Yv(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function ci(t){return!Yv(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Zv(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function Xv(t,e,n){let i,o,s;for(i=0,o=t.length;il&&c=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Hr(t,e,n){n=n||(a=>t[a]1;)s=o+i>>1,n(s)?o=s:i=s;return{lo:o,hi:i}}const ti=(t,e,n,i)=>Hr(t,n,i?o=>{const s=t[o][e];return st[o][e]Hr(t,n,i=>t[i][e]>=n);function Jv(t,e,n){let i=0,o=t.length;for(;ii&&t[o-1]>n;)o--;return i>0||o{const i="_onData"+Nr(n),o=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const a=o.apply(this,s);return t._chartjs.listeners.forEach(r=>{typeof r[i]=="function"&&r[i](...s)}),a}})})}function Ql(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,o=i.indexOf(e);o!==-1&&i.splice(o,1),!(i.length>0)&&(Zd.forEach(s=>{delete t[s]}),delete t._chartjs)}function tp(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Xd=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Kd(t,e){let n=[],i=!1;return function(...o){n=o,i||(i=!0,Xd.call(window,()=>{i=!1,t.apply(e,n)}))}}function np(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const Qd=t=>t==="start"?"left":t==="end"?"right":"center",Ht=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,ip=(t,e,n,i)=>t===(i?"left":"right")?n:t==="center"?(e+n)/2:e;function op(t,e,n){const i=e.length;let o=0,s=i;if(t._sorted){const{iScale:a,vScale:r,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,u=a.axis,{min:d,max:h,minDefined:f,maxDefined:m}=a.getUserBounds();if(f){if(o=Math.min(ti(l,u,d).lo,n?i:ti(e,u,a.getPixelForValue(d)).lo),c){const p=l.slice(0,o+1).reverse().findIndex(v=>!Ze(v[r.axis]));o-=Math.max(0,p)}o=sn(o,0,i-1)}if(m){let p=Math.max(ti(l,a.axis,h,!0).hi+1,n?0:ti(e,u,a.getPixelForValue(h),!0).hi+1);if(c){const v=l.slice(p-1).findIndex(b=>!Ze(b[r.axis]));p+=Math.max(0,v)}s=sn(p,o,i)-o}else s=i-o}return{start:o,count:s}}function sp(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=o,!0;const s=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),s}const os=t=>t===0||t===1,Gl=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*pt/n)),Jl=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*pt/n)+1,ko={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*wt)+1,easeOutSine:t=>Math.sin(t*wt),easeInOutSine:t=>-.5*(Math.cos(We*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>os(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>os(t)?t:Gl(t,.075,.3),easeOutElastic:t=>os(t)?t:Jl(t,.075,.3),easeInOutElastic(t){return os(t)?t:t<.5?.5*Gl(t*2,.1125,.45):.5+.5*Jl(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-ko.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?ko.easeInBounce(t*2)*.5:ko.easeOutBounce(t*2-1)*.5+.5};function jr(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function ec(t){return jr(t)?t:new Eo(t)}function qa(t){return jr(t)?t:new Eo(t).saturate(.5).darken(.1).hexString()}const ap=["x","y","borderWidth","radius","tension"],rp=["color","borderColor","backgroundColor"];function lp(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:rp},numbers:{type:"number",properties:ap}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function cp(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const tc=new Map;function up(t,e){e=e||{};const n=t+JSON.stringify(e);let i=tc.get(n);return i||(i=new Intl.NumberFormat(t,e),tc.set(n,i)),i}function $r(t,e,n){return up(e,n).format(t)}const Gd={values(t){return Qe(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let o,s=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),s=dp(t,n)}const a=rr(Math.abs(s)),r=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),$r(t,i,l)},logarithmic(t,e,n){if(t===0)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(rr(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?Gd.numeric.call(this,t,e,n):""}};function dp(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var Jd={formatters:Gd};function hp(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Jd.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const ui=Object.create(null),cr=Object.create(null);function Co(t,e){if(!e)return t;const n=e.split(".");for(let i=0,o=n.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,o)=>qa(o.backgroundColor),this.hoverBorderColor=(i,o)=>qa(o.borderColor),this.hoverColor=(i,o)=>qa(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return La(this,e,n)}get(e){return Co(this,e)}describe(e,n){return La(cr,e,n)}override(e,n){return La(ui,e,n)}route(e,n,i,o){const s=Co(this,e),a=Co(this,i),r="_"+n;Object.defineProperties(s,{[r]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[r],c=a[o];return xe(l)?Object.assign({},c,l):Ce(l,c)},set(l){this[r]=l}}})}apply(e){e.forEach(n=>n(this))}}var rt=new fp({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[lp,cp,hp]);function gp(t){return!t||Ze(t.size)||Ze(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function nc(t,e,n,i,o){let s=e[o];return s||(s=e[o]=t.measureText(o).width,n.push(o)),s>i&&(i=s),i}function Yn(t,e,n){const i=t.currentDevicePixelRatio,o=n!==0?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function ic(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function ur(t,e,n,i){eh(t,e,n,i,null)}function eh(t,e,n,i,o){let s,a,r,l,c,u,d,h;const f=e.pointStyle,m=e.rotation,p=e.radius;let v=(m||0)*Wr;if(f&&typeof f=="object"&&(s=f.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(n,i),t.rotate(v),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),f){default:o?t.ellipse(n,i,o/2,p,0,0,pt):t.arc(n,i,p,0,pt),t.closePath();break;case"triangle":u=o?o/2:p,t.moveTo(n+Math.sin(v)*u,i-Math.cos(v)*p),v+=Ls,t.lineTo(n+Math.sin(v)*u,i-Math.cos(v)*p),v+=Ls,t.lineTo(n+Math.sin(v)*u,i-Math.cos(v)*p),t.closePath();break;case"rectRounded":c=p*.516,l=p-c,a=Math.cos(v+Xt)*l,d=Math.cos(v+Xt)*(o?o/2-c:l),r=Math.sin(v+Xt)*l,h=Math.sin(v+Xt)*(o?o/2-c:l),t.arc(n-d,i-r,c,v-We,v-wt),t.arc(n+h,i-a,c,v-wt,v),t.arc(n+d,i+r,c,v,v+wt),t.arc(n-h,i+a,c,v+wt,v+We),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,u=o?o/2:l,t.rect(n-u,i-l,2*u,2*l);break}v+=Xt;case"rectRot":d=Math.cos(v)*(o?o/2:p),a=Math.cos(v)*p,r=Math.sin(v)*p,h=Math.sin(v)*(o?o/2:p),t.moveTo(n-d,i-r),t.lineTo(n+h,i-a),t.lineTo(n+d,i+r),t.lineTo(n-h,i+a),t.closePath();break;case"crossRot":v+=Xt;case"cross":d=Math.cos(v)*(o?o/2:p),a=Math.cos(v)*p,r=Math.sin(v)*p,h=Math.sin(v)*(o?o/2:p),t.moveTo(n-d,i-r),t.lineTo(n+d,i+r),t.moveTo(n+h,i-a),t.lineTo(n-h,i+a);break;case"star":d=Math.cos(v)*(o?o/2:p),a=Math.cos(v)*p,r=Math.sin(v)*p,h=Math.sin(v)*(o?o/2:p),t.moveTo(n-d,i-r),t.lineTo(n+d,i+r),t.moveTo(n+h,i-a),t.lineTo(n-h,i+a),v+=Xt,d=Math.cos(v)*(o?o/2:p),a=Math.cos(v)*p,r=Math.sin(v)*p,h=Math.sin(v)*(o?o/2:p),t.moveTo(n-d,i-r),t.lineTo(n+d,i+r),t.moveTo(n+h,i-a),t.lineTo(n-h,i+a);break;case"line":a=o?o/2:Math.cos(v)*p,r=Math.sin(v)*p,t.moveTo(n-a,i-r),t.lineTo(n+a,i+r);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(v)*(o?o/2:p),i+Math.sin(v)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function qo(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&s.strokeColor!=="";let l,c;for(t.save(),t.font=o.string,pp(t,s),l=0;l+t||0;function th(t,e){const n={},i=xe(e),o=i?Object.keys(e):e,s=xe(t)?i?a=>Ce(t[a],t[e[a]]):a=>t[a]:()=>t;for(const a of o)n[a]=wp(s(a));return n}function kp(t){return th(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Di(t){return th(t,["topLeft","topRight","bottomLeft","bottomRight"])}function qt(t){const e=kp(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function kt(t,e){t=t||{},e=e||rt.font;let n=Ce(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let i=Ce(t.style,e.style);i&&!(""+i).match(xp)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const o={family:Ce(t.family,e.family),lineHeight:Sp(Ce(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:Ce(t.weight,e.weight),string:""};return o.string=gp(o),o}function ss(t,e,n,i){let o,s,a;for(o=0,s=t.length;on&&r===0?0:r+l;return{min:a(i,-Math.abs(s)),max:a(o,s)}}function fi(t,e){return Object.assign(Object.create(t),e)}function Ur(t,e=[""],n,i,o=()=>t[0]){const s=n||t;typeof i>"u"&&(i=sh("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:o,override:r=>Ur([r,...t],e,s,i)};return new Proxy(a,{deleteProperty(r,l){return delete r[l],delete r._keys,delete t[0][l],!0},get(r,l){return ih(r,l,()=>Ep(l,e,t,r))},getOwnPropertyDescriptor(r,l){return Reflect.getOwnPropertyDescriptor(r._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(r,l){return sc(r).includes(l)},ownKeys(r){return sc(r)},set(r,l,c){const u=r._storage||(r._storage=o());return r[l]=u[l]=c,delete r._keys,!0}})}function Bi(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:nh(t,i),setContext:s=>Bi(t,s,n,i),override:s=>Bi(t.override(s),e,n,i)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete t[a],!0},get(s,a,r){return ih(s,a,()=>Pp(s,a,r))},getOwnPropertyDescriptor(s,a){return s._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(s,a,r){return t[a]=r,delete s[a],!0}})}function nh(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:Nt(n)?n:()=>n,isIndexable:Nt(i)?i:()=>i}}const Mp=(t,e)=>t?t+Nr(e):e,Yr=(t,e)=>xe(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function ih(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const i=n();return t[e]=i,i}function Pp(t,e,n){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=t;let r=i[e];return Nt(r)&&a.isScriptable(e)&&(r=Tp(e,r,t,n)),Qe(r)&&r.length&&(r=Ip(e,r,t,a.isIndexable)),Yr(e,r)&&(r=Bi(r,o,s&&s[e],a)),r}function Tp(t,e,n,i){const{_proxy:o,_context:s,_subProxy:a,_stack:r}=n;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);r.add(t);let l=e(s,a||i);return r.delete(t),Yr(t,l)&&(l=Zr(o._scopes,o,t,l)),l}function Ip(t,e,n,i){const{_proxy:o,_context:s,_subProxy:a,_descriptors:r}=n;if(typeof s.index<"u"&&i(t))return e[s.index%e.length];if(xe(e[0])){const l=e,c=o._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=Zr(c,o,t,u);e.push(Bi(d,s,a&&a[t],r))}}return e}function oh(t,e,n){return Nt(t)?t(e,n):t}const Op=(t,e)=>t===!0?e:typeof t=="string"?Ro(e,t):void 0;function Dp(t,e,n,i,o){for(const s of e){const a=Op(n,s);if(a){t.add(a);const r=oh(a._fallback,n,o);if(typeof r<"u"&&r!==n&&r!==i)return r}else if(a===!1&&typeof i<"u"&&n!==i)return null}return!1}function Zr(t,e,n,i){const o=e._rootScopes,s=oh(e._fallback,n,i),a=[...t,...o],r=new Set;r.add(i);let l=oc(r,a,n,s||n,i);return l===null||typeof s<"u"&&s!==n&&(l=oc(r,a,s,l,i),l===null)?!1:Ur(Array.from(r),[""],o,s,()=>Vp(e,n,i))}function oc(t,e,n,i,o){for(;n;)n=Dp(t,e,n,i,o);return n}function Vp(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];return Qe(o)&&xe(n)?n:o||{}}function Ep(t,e,n,i){let o;for(const s of e)if(o=sh(Mp(s,t),n),typeof o<"u")return Yr(t,o)?Zr(n,i,t,o):o}function sh(t,e){for(const n of e){if(!n)continue;const i=n[t];if(typeof i<"u")return i}}function sc(t){let e=t._keys;return e||(e=t._keys=Ap(t._scopes)),e}function Ap(t){const e=new Set;for(const n of t)for(const i of Object.keys(n).filter(o=>!o.startsWith("_")))e.add(i);return Array.from(e)}const Rp=Number.EPSILON||1e-14,Ni=(t,e)=>et==="x"?"y":"x";function qp(t,e,n,i){const o=t.skip?e:t,s=e,a=n.skip?e:n,r=zi(s,o),l=zi(a,s);let c=r/(r+l),u=l/(r+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,h=i*u;return{previous:{x:s.x-d*(a.x-o.x),y:s.y-d*(a.y-o.y)},next:{x:s.x+h*(a.x-o.x),y:s.y+h*(a.y-o.y)}}}function Lp(t,e,n){const i=t.length;let o,s,a,r,l,c=Ni(t,0);for(let u=0;u!c.skip)),e.cubicInterpolationMode==="monotone")zp(t,o);else{let c=i?t[t.length-1]:t[0];for(s=0,a=t.length;st.ownerDocument.defaultView.getComputedStyle(t,null);function Wp(t,e){return ra(t).getPropertyValue(e)}const Hp=["top","right","bottom","left"];function si(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const s=Hp[o];i[s]=parseFloat(t[e+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const jp=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function $p(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:s}=i;let a=!1,r,l;if(jp(o,s,t.target))r=o,l=s;else{const c=e.getBoundingClientRect();r=i.clientX-c.left,l=i.clientY-c.top,a=!0}return{x:r,y:l,box:a}}function Qn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=ra(n),s=o.boxSizing==="border-box",a=si(o,"padding"),r=si(o,"border","width"),{x:l,y:c,box:u}=$p(t,n),d=a.left+(u&&r.left),h=a.top+(u&&r.top);let{width:f,height:m}=e;return s&&(f-=a.width+r.width,m-=a.height+r.height),{x:Math.round((l-d)/f*n.width/i),y:Math.round((c-h)/m*n.height/i)}}function Up(t,e,n){let i,o;if(e===void 0||n===void 0){const s=t&&Kr(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const a=s.getBoundingClientRect(),r=ra(s),l=si(r,"border","width"),c=si(r,"padding");e=a.width-c.width-l.width,n=a.height-c.height-l.height,i=Ns(r.maxWidth,s,"clientWidth"),o=Ns(r.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:i||qs,maxHeight:o||qs}}const rs=t=>Math.round(t*10)/10;function Yp(t,e,n,i){const o=ra(t),s=si(o,"margin"),a=Ns(o.maxWidth,t,"clientWidth")||qs,r=Ns(o.maxHeight,t,"clientHeight")||qs,l=Up(t,e,n);let{width:c,height:u}=l;if(o.boxSizing==="content-box"){const h=si(o,"border","width"),f=si(o,"padding");c-=f.width+h.width,u-=f.height+h.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=rs(Math.min(c,a,l.maxWidth)),u=rs(Math.min(u,r,l.maxHeight)),c&&!u&&(u=rs(c/2)),(e!==void 0||n!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=rs(Math.floor(u*i))),{width:c,height:u}}function ac(t,e,n){const i=e||1,o=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==o||a.width!==s?(t.currentDevicePixelRatio=i,a.height=o,a.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}const Zp=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Xr()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function rc(t,e){const n=Wp(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Gn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Xp(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:i==="middle"?n<.5?t.y:e.y:i==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function Kp(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},a=Gn(t,o,n),r=Gn(o,s,n),l=Gn(s,e,n),c=Gn(a,r,n),u=Gn(r,l,n);return Gn(c,u,n)}const Qp=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},Gp=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Vi(t,e,n){return t?Qp(e,n):Gp()}function rh(t,e){let n,i;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function lh(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function ch(t){return t==="angle"?{between:Fs,compare:Kv,normalize:mn}:{between:Ii,compare:(e,n)=>e-n,normalize:e=>e}}function lc({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n===0,style:o}}function Jp(t,e,n){const{property:i,start:o,end:s}=n,{between:a,normalize:r}=ch(i),l=e.length;let{start:c,end:u,loop:d}=t,h,f;if(d){for(c+=l,u+=l,h=0,f=l;hl(o,_,b)&&r(o,_)!==0,C=()=>r(s,b)===0||l(s,_,b),S=()=>p||x(),E=()=>!p||C();for(let A=u,D=u;A<=d;++A)y=e[A%a],!y.skip&&(b=c(y[i]),b!==_&&(p=l(b,o,s),v===null&&S()&&(v=r(b,o)===0?A:D),v!==null&&E()&&(m.push(lc({start:v,end:A,loop:h,count:a,style:f})),v=null),D=A,_=b));return v!==null&&m.push(lc({start:v,end:d,loop:h,count:a,style:f})),m}function dh(t,e){const n=[],i=t.segments;for(let o=0;oo&&t[s%e].skip;)s--;return s%=e,{start:o,end:s}}function tb(t,e,n,i){const o=t.length,s=[];let a=e,r=t[e],l;for(l=e+1;l<=n;++l){const c=t[l%o];c.skip||c.stop?r.skip||(i=!1,s.push({start:e%o,end:(l-1)%o,loop:i}),e=a=c.stop?l:null):(a=l,r.skip&&(e=l)),r=c}return a!==null&&s.push({start:e%o,end:a%o,loop:i}),s}function nb(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const s=!!t._loop,{start:a,end:r}=eb(n,o,s,i);if(i===!0)return cc(t,[{start:a,end:r,loop:s}],n,e);const l=ra({chart:e,initial:n.initial,numSteps:r,currentStep:Math.min(i-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Zd.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,o)=>{if(!i.running||!i.items.length)return;const s=i.items;let r=s.length-1,a=!1,l;for(;r>=0;--r)l=s[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(e),a=!0):(s[r]=s[s.length-1],s.pop());a&&(o.draw(),this._notify(o,i,e,"progress")),s.length||(i.running=!1,this._notify(o,i,e,"complete"),i.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,o)=>Math.max(i,o._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let o=i.length-1;for(;o>=0;--o)i[o].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var yn=new sb;const dc="transparent",rb={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=ec(t||dc),o=i.valid&&ec(e||dc);return o&&o.valid?o.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class ab{constructor(e,n,i,o){const s=n[i];o=os([e.to,o,s,e.from]);const r=os([e.from,s,o]);this._active=!0,this._fn=e.fn||rb[e.type||typeof r],this._easing=wo[e.easing]||wo.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=r,this._to=o,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const o=this._target[this._prop],s=i-this._start,r=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(r,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=os([e.to,n,o,e.from]),this._from=os([e.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,o=this._prop,s=this._from,r=this._loop,a=this._to;let l;if(this._active=s!==a&&(r||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(s,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let o=0;o{const s=e[o];if(!xe(s))return;const r={};for(const a of n)r[a]=s[a];(Qe(s.properties)&&s.properties||[o]).forEach(a=>{(a===o||!i.has(a))&&i.set(a,r)})})}_animateOptions(e,n){const i=n.options,o=cb(e,i);if(!o)return[];const s=this._createAnimations(o,i);return i.$shared&&lb(e.options.$animations,i).then(()=>{e.options=i},()=>{}),s}_createAnimations(e,n){const i=this._properties,o=[],s=e.$animations||(e.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(e,n));continue}const u=n[c];let d=s[c];const h=i.get(c);if(d)if(h&&d.active()){d.update(h,u,a);continue}else d.cancel();if(!h||!h.duration){e[c]=u;continue}s[c]=d=new ab(h,e,c,u),o.push(d)}return o}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return yn.add(this._chart,i),!0}}function lb(t,e){const n=[],i=Object.keys(e);for(let o=0;o0||!n&&s<0)return o.index}return null}function mc(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:s,vScale:r,index:a}=i,l=s.axis,c=r.axis,u=fb(s,r,i),d=e.length;let h;for(let f=0;fn[i].axis===e).shift()}function vb(t,e){return hi(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function pb(t,e,n){return hi(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function no(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const o of e){const s=o._stacks;if(!s||s[i]===void 0||s[i][n]===void 0)return;delete s[i][n],s[i]._visualValues!==void 0&&s[i]._visualValues[n]!==void 0&&delete s[i]._visualValues[n]}}}const Br=t=>t==="reset"||t==="none",vc=(t,e)=>e?t:Object.assign({},t),bb=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:dh(n,!0),values:null};class Vi{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Fr(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&no(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),o=(d,h,f,m)=>d==="x"?h:d==="r"?m:f,s=n.xAxisID=Ce(i.xAxisID,zr(e,"x")),r=n.yAxisID=Ce(i.yAxisID,zr(e,"y")),a=n.rAxisID=Ce(i.rAxisID,zr(e,"r")),l=n.indexAxis,c=n.iAxisID=o(l,s,r,a),u=n.vAxisID=o(l,r,s,a);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Ql(this._data,this),e._stacked&&no(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(xe(n)){const o=this._cachedMeta;this._data=hb(n,o)}else if(i!==n){if(i){Ql(i,this);const o=this._cachedMeta;no(o),o._parsed=[]}n&&Object.isExtensible(n)&&ep(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,i=this.getDataset();let o=!1;this._dataCheck();const s=n._stacked;n._stacked=Fr(n.vScale,n),n.stack!==i.stack&&(o=!0,no(n),n.stack=i.stack),this._resyncElements(e),(o||s!==n._stacked)&&(mc(this,n._parsed),n._stacked=Fr(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:o}=this,{iScale:s,_stacked:r}=i,a=s.axis;let l=e===0&&n===o.length?!0:i._sorted,c=e>0&&i._parsed[e-1],u,d,h;if(this._parsing===!1)i._parsed=o,i._sorted=!0,h=o;else{Qe(o[e])?h=this.parseArrayData(i,o,e,n):xe(o[e])?h=this.parseObjectData(i,o,e,n):h=this.parsePrimitiveData(i,o,e,n);const f=()=>d[a]===null||c&&d[a]p||d=0;--h)if(!m()){this.updateRangeFromParsed(c,e,f,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let o,s,r;for(o=0,s=n.length;o=0&&ethis.getContext(i,o,n),p=c.resolveNamedOptions(h,f,m,d);return p.$shared&&(p.$shared=l,s[r]=Object.freeze(vc(p,l))),p}_resolveAnimations(e,n,i){const o=this.chart,s=this._cachedDataOpts,r=`animation-${n}`,a=s[r];if(a)return a;let l;if(o.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(e,i,n))}const c=new Qa(o,l&&l.animations);return l&&l._cacheable&&(s[r]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Br(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),o=this._sharedOptions,s=this.getSharedOptions(i),r=this.includeOptions(n,s)||s!==o;return this.updateSharedOptions(s,n,i),{sharedOptions:s,includeOptions:r}}updateElement(e,n,i,o){Br(o)?Object.assign(e,i):this._resolveAnimations(n,o).update(e,i)}updateSharedOptions(e,n,i){e&&!Br(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,o){e.active=o;const s=this.getStyle(n,o);this._resolveAnimations(n,i,o).update(e,{options:!o&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const o=i.length,s=n.length,r=Math.min(s,o);r&&this.parse(0,r),s>o?this._insertElements(o,s-o,e):s{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(s),a=e;aFs(y,a,l,!0)?1:Math.max(_,_*n,C,C*n),m=(y,_,C)=>Fs(y,a,l,!0)?-1:Math.min(_,_*n,C,C*n),p=f(0,c,d),v=f(wt,u,h),b=m(We,c,d),x=m(We+wt,u,h);i=(p-b)/2,o=(v-x)/2,s=-(p+b)/2,r=-(v+x)/2}return{ratioX:i,ratioY:o,offsetX:s,offsetY:r}}class fo extends Vi{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const i=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=i;else{let s=l=>+i[l];if(xe(i[e])){const{key:l="value"}=this._parsing;s=c=>+Ao(i[c],l)}let r,a;for(r=e,a=e+n;r0&&!isNaN(e)?pt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,o=i.data.labels||[],s=$a(n._parsed[e],i.options.locale);return{label:o[e]||"",value:s}}getMaxBorderWidth(e){let n=0;const i=this.chart;let o,s,r,a,l;if(!e){for(o=0,s=i.data.datasets.length;oe!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),Ae(fo,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:o}}=e.legend.options;return n.labels.map((s,r)=>{const l=e.getDatasetMeta(0).controller.getStyle(r);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:o,lineWidth:l.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class Ei extends Vi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:i,data:o=[],_dataset:s}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=op(n,o,r);this._drawStart=a,this._drawCount=l,sp(n)&&(a=0,l=o.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=o;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:c},e),this.updateElements(o,a,l,e)}updateElements(e,n,i,o){const s=o==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,o),h=r.axis,f=a.axis,{spanGaps:m,segment:p}=this.options,v=li(m)?m:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||o==="none",x=n+i,y=e.length;let _=n>0&&this.getParsed(n-1);for(let C=0;C=x){E.skip=!0;continue}const A=this.getParsed(C),D=Ze(A[f]),P=E[h]=r.getPixelForValue(A[h],C),R=E[f]=s||D?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,A,l):A[f],C);E.skip=isNaN(P)||isNaN(R)||D,E.stop=C>0&&Math.abs(A[h]-_[h])>v,p&&(E.parsed=A,E.raw=c.data[C]),d&&(E.options=u||this.resolveDataElementOptions(C,S.active?"active":o)),b||this.updateElement(S,C,E,o),_=A}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,i=n.options&&n.options.borderWidth||0,o=e.data||[];if(!o.length)return i;const s=o[0].size(this.resolveDataElementOptions(0)),r=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(i,s,r)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}Ae(Ei,"id","line"),Ae(Ei,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Ae(Ei,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Zn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Ga{static override(e){Object.assign(Ga.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return Zn()}parse(){return Zn()}format(){return Zn()}add(){return Zn()}diff(){return Zn()}startOf(){return Zn()}endOf(){return Zn()}}var hh={_date:Ga};function _b(t,e,n,i){const{controller:o,data:s,_sorted:r}=t,a=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&r&&s.length){const c=a._reversePixels?Gv:ti;if(i){if(o._sharedOptions){const u=s[0],d=typeof u.getRange=="function"&&u.getRange(e);if(d){const h=c(s,e,n-d),f=c(s,e,n+d);return{lo:h.lo,hi:f.hi}}}}else{const u=c(s,e,n);if(l){const{vScale:d}=o._cachedMeta,{_parsed:h}=t,f=h.slice(0,u.lo+1).reverse().findIndex(p=>!Ze(p[d.axis]));u.lo-=Math.max(0,f);const m=h.slice(u.hi).findIndex(p=>!Ze(p[d.axis]));u.hi+=Math.max(0,m)}return u}}return{lo:0,hi:s.length-1}}function Wo(t,e,n,i,o){const s=t.getSortedVisibleDatasetMetas(),r=n[e];for(let a=0,l=s.length;a{l[r]&&l[r](e[n],o)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,o))}),i&&!a?[]:s}var kb={evaluateInteractionItems:Wo,modes:{index(t,e,n,i){const o=Qn(e,t),s=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?Nr(t,o,s,i,r):Wr(t,o,s,!1,i,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,i){const o=Qn(e,t),s=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?Nr(t,o,s,i,r):Wr(t,o,s,!1,i,r);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;un.pos===e)}function bc(t,e){return t.filter(n=>fh.indexOf(n.pos)===-1&&n.box.axis===e)}function oo(t,e){return t.sort((n,i)=>{const o=e?i:n,s=e?n:i;return o.weight===s.weight?o.index-s.index:o.weight-s.weight})}function Cb(t){const e=[];let n,i,o,s,r,a;for(n=0,i=(t||[]).length;nc.box.fullSize),!0),i=oo(io(e,"left"),!0),o=oo(io(e,"right")),s=oo(io(e,"top"),!0),r=oo(io(e,"bottom")),a=bc(e,"x"),l=bc(e,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:o.concat(l).concat(r).concat(a),chartArea:io(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:s.concat(r).concat(a)}}function yc(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function gh(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ib(t,e,n,i){const{pos:o,box:s}=n,r=t.maxPadding;if(!xe(o)){n.size&&(t[o]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?s.height:s.width),n.size=d.size/d.count,t[o]+=n.size}s.getPadding&&gh(r,s.getPadding());const a=Math.max(0,e.outerWidth-yc(r,t,"left","right")),l=Math.max(0,e.outerHeight-yc(r,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Ob(t){const e=t.maxPadding;function n(i){const o=Math.max(e[i]-t[i],0);return t[i]+=o,o}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function Db(t,e){const n=e.maxPadding;function i(o){const s={left:0,top:0,right:0,bottom:0};return o.forEach(r=>{s[r]=Math.max(e[r],n[r])}),s}return i(t?["left","right"]:["top","bottom"])}function go(t,e,n,i){const o=[];let s,r,a,l,c,u;for(s=0,r=t.length,c=0;s{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=l.reduce((p,v)=>v.box.options&&v.box.options.display===!1?p:p+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:s,availableHeight:r,vBoxMaxWidth:s/2/u,hBoxMaxHeight:r/2}),h=Object.assign({},o);gh(h,qt(i));const f=Object.assign({maxPadding:h,w:s,h:r,x:o.left,y:o.top},o),m=Pb(l.concat(c),d);go(a.fullSize,f,d,m),go(l,f,d,m),go(c,f,d,m)&&go(l,f,d,m),Ob(f),_c(a.leftAndTop,f,d,m),f.x+=f.w,f.y+=f.h,_c(a.rightAndBottom,f,d,m),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Ne(a.chartArea,p=>{const v=p.box;Object.assign(v,t.chartArea),v.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class mh{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,o){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,o?Math.floor(n/o):i)}}isAttached(e){return!0}updateConfig(e){}}class Vb extends mh{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Cs="$chartjs",Eb={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},xc=t=>t===null||t==="";function Ab(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Cs]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",xc(o)){const s=ac(t,"width");s!==void 0&&(t.width=s)}if(xc(i))if(t.style.height==="")t.height=t.width/(e||2);else{const s=ac(t,"height");s!==void 0&&(t.height=s)}return t}const vh=Zp?{passive:!0}:!1;function Rb(t,e,n){t&&t.addEventListener(e,n,vh)}function qb(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,vh)}function Lb(t,e){const n=Eb[t.type]||t.type,{x:i,y:o}=Qn(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:o!==void 0?o:null}}function Ws(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Fb(t,e,n){const i=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||Ws(a.addedNodes,i),r=r&&!Ws(a.removedNodes,i);r&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function zb(t,e,n){const i=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||Ws(a.removedNodes,i),r=r&&!Ws(a.addedNodes,i);r&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const qo=new Map;let Sc=0;function ph(){const t=window.devicePixelRatio;t!==Sc&&(Sc=t,qo.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Bb(t,e){qo.size||window.addEventListener("resize",ph),qo.set(t,e)}function Nb(t){qo.delete(t),qo.size||window.removeEventListener("resize",ph)}function Wb(t,e,n){const i=t.canvas,o=i&&Ka(i);if(!o)return;const s=Xd((a,l)=>{const c=o.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||s(c,u)});return r.observe(o),Bb(t,s),r}function Hr(t,e,n){n&&n.disconnect(),e==="resize"&&Nb(t)}function Hb(t,e,n){const i=t.canvas,o=Xd(s=>{t.ctx!==null&&n(Lb(s,t))},t);return Rb(i,e,o),o}class jb extends mh{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(Ab(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[Cs])return!1;const i=n[Cs].initial;["height","width"].forEach(s=>{const r=i[s];Ze(r)?n.removeAttribute(s):n.setAttribute(s,r)});const o=i.style||{};return Object.keys(o).forEach(s=>{n.style[s]=o[s]}),n.width=n.width,delete n[Cs],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const o=e.$proxies||(e.$proxies={}),r={attach:Fb,detach:zb,resize:Wb}[n]||Hb;o[n]=r(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),o=i[n];if(!o)return;({attach:Hr,detach:Hr,resize:Hr}[n]||qb)(e,n,o),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,o){return Yp(e,n,i,o)}isAttached(e){const n=e&&Ka(e);return!!(n&&n.isConnected)}}function $b(t){return!Xa()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Vb:jb}class Lt{x;y;active=!1;options;$animations;tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return li(this.x)&&li(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const o={};return e.forEach(s=>{o[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),o}}Ae(Lt,"defaults",{}),Ae(Lt,"defaultRoutes");function Ub(t,e){const n=t.options.ticks,i=Yb(t),o=Math.min(n.maxTicksLimit||i,i),s=n.major.enabled?Xb(e):[],r=s.length,a=s[0],l=s[r-1],c=[];if(r>o)return Kb(e,c,s,r/o),c;const u=Zb(s,e,o);if(r>0){let d,h;const f=r>1?Math.round((l-a)/(r-1)):null;for(ls(e,c,u,Ze(f)?0:a-f,a),d=0,h=r-1;do)return l}return Math.max(o,1)}function Xb(t){const e=[];let n,i;for(n=0,i=t.length;nt==="left"?"right":t==="right"?"left":t,wc=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,kc=(t,e)=>Math.min(e||t,t);function Cc(t,e){const n=[],i=t.length/e,o=t.length;let s=0;for(;sr+a)))return l}function ey(t,e){Ne(t,n=>{const i=n.gc,o=i.length/2;let s;if(o>e){for(s=0;si?i:n,i=o&&n>i?n:i,{min:hn(n,hn(i,n)),max:hn(i,hn(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){je(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:o,grace:s,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Cp(this,s,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=s||i<=1||!this.isHorizontal()){this.labelRotation=o;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,f=sn(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/i:f/(i-1),d+6>a&&(a=f/(i-(e.offset?.5:1)),l=this.maxHeight-so(e.grid)-n.padding-Mc(e.title,this.chart.options.font),c=Math.sqrt(d*d+h*h),r=Ud(Math.min(Math.asin(sn((u.highest.height+6)/a,-1,1)),Math.asin(sn(l/c,-1,1))-Math.asin(sn(h/c,-1,1)))),r=Math.max(o,Math.min(s,r))),this.labelRotation=r}afterCalculateLabelRotation(){je(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){je(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:o,grid:s}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=Mc(o,n.options.font);if(a?(e.width=this.maxWidth,e.height=so(s)+l):(e.height=this.maxHeight,e.width=so(s)+l),i.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:h}=this._getLabelSizes(),f=i.padding*2,m=bt(this.labelRotation),p=Math.cos(m),v=Math.sin(m);if(a){const b=i.mirror?0:v*d.width+p*h.height;e.height=Math.min(this.maxHeight,e.height+b+f)}else{const b=i.mirror?0:p*d.width+v*h.height;e.width=Math.min(this.maxWidth,e.width+b+f)}this._calculatePadding(c,u,v,p)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,i,o){const{ticks:{align:s,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?c?(h=o*e.width,f=i*n.height):(h=i*e.height,f=o*n.width):s==="start"?f=n.width:s==="end"?h=e.width:s!=="inner"&&(h=e.width/2,f=n.width/2),this.paddingLeft=Math.max((h-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-d+r)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;s==="start"?(u=0,d=e.height):s==="end"&&(u=n.height,d=0),this.paddingTop=u+r,this.paddingBottom=d+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){je(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,i;for(n=0,i=e.length;n({width:r[D]||0,height:a[D]||0});return{first:A(0),last:A(n-1),widest:A(S),highest:A(E),widths:r,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return Qv(this._alignToPixels?Yn(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&ea*o?a/i:l/o:l*o0}_computeGridLineItems(e){const n=this.axis,i=this.chart,o=this.options,{grid:s,position:r,border:a}=o,l=s.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=so(s),f=[],m=a.setContext(this.getContext()),p=m.display?m.width:0,v=p/2,b=function(j){return Yn(i,j,p)};let x,y,_,C,S,E,A,D,P,R,M,H;if(r==="top")x=b(this.bottom),E=this.bottom-h,D=x-v,R=b(e.top)+v,H=e.bottom;else if(r==="bottom")x=b(this.top),R=e.top,H=b(e.bottom)-v,E=x+v,D=this.top+h;else if(r==="left")x=b(this.right),S=this.right-h,A=x-v,P=b(e.left)+v,M=e.right;else if(r==="right")x=b(this.left),P=e.left,M=b(e.right)-v,S=x+v,A=this.left+h;else if(n==="x"){if(r==="center")x=b((e.top+e.bottom)/2+.5);else if(xe(r)){const j=Object.keys(r)[0],G=r[j];x=b(this.chart.scales[j].getPixelForValue(G))}R=e.top,H=e.bottom,E=x+v,D=E+h}else if(n==="y"){if(r==="center")x=b((e.left+e.right)/2);else if(xe(r)){const j=Object.keys(r)[0],G=r[j];x=b(this.chart.scales[j].getPixelForValue(G))}S=x-v,A=S-h,P=e.left,M=e.right}const z=Ce(o.ticks.maxTicksLimit,d),U=Math.max(1,Math.ceil(d/z));for(y=0;y0&&(B-=ae/2);break}O={left:B,top:fe,width:ae+T.width,height:Q+T.height,color:U.backdropColor}}v.push({label:_,font:D,textOffset:M,options:{rotation:p,color:G,strokeColor:Y,strokeWidth:te,textAlign:de,textBaseline:H,translation:[C,S],backdrop:O}})}return v}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-bt(this.labelRotation))return e==="top"?"left":"right";let o="center";return n.align==="start"?o="left":n.align==="end"?o="right":n.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:o,padding:s}}=this.options,r=this._getLabelSizes(),a=e+s,l=r.widest.width;let c,u;return n==="left"?o?(u=this.right+s,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?o?(u=this.left+s,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:i,top:o,width:s,height:r}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,o,s,r),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const o=this.ticks.findIndex(s=>s.value===e);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,r;const a=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(s=0,r=o.length;s{this.draw(s)}}]:[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",o=[];let s,r;for(s=0,r=n.length;s{const i=n.split("."),o=i.pop(),s=[t].concat(i).join("."),r=e[n].split("."),a=r.pop(),l=r.join(".");at.route(s,o,l,a)})}function ay(t){return"id"in t&&"defaults"in t}class ly{constructor(){this.controllers=new cs(Vi,"datasets",!0),this.elements=new cs(Lt,"elements"),this.plugins=new cs(Object,"plugins"),this.scales=new cs(Ho,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,i){[...n].forEach(o=>{const s=i||this._getRegistryForType(o);i||s.isForType(o)||s===this.plugins&&o.id?this._exec(e,s,o):Ne(o,r=>{const a=i||this._getRegistryForType(r);this._exec(e,a,r)})})}_exec(e,n,i){const o=Na(e);je(i["before"+o],[],i),n[e](i),je(i["after"+o],[],i)}_getRegistryForType(e){for(let n=0;ns.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(o(n,i),e,"stop"),this._notify(o(i,n),e,"start")}}function uy(t){const e={},n=[],i=Object.keys(gn.plugins.items);for(let s=0;s1&&Pc(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Tc(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function py(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(n.length)return Tc(t,"x",n[0])||Tc(t,"y",n[0])}return{}}function by(t,e){const n=ci[t.type]||{scales:{}},i=e.scales||{},o=da(t.type,e),s=Object.create(null);return Object.keys(i).forEach(r=>{const a=i[r];if(!xe(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=ha(r,a,py(r,t),at.scales[a.type]),c=my(l,o),u=n.scales||{};s[r]=xo(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(r=>{const a=r.type||t.type,l=r.indexAxis||da(a,e),u=(ci[a]||{}).scales||{};Object.keys(u).forEach(d=>{const h=gy(d,l),f=r[h+"AxisID"]||h;s[f]=s[f]||Object.create(null),xo(s[f],[{axis:h},i[f],u[d]])})}),Object.keys(s).forEach(r=>{const a=s[r];xo(a,[at.scales[a.type],at.scale])}),s}function bh(t){const e=t.options||(t.options={});e.plugins=Ce(e.plugins,{}),e.scales=by(t,e)}function yh(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function yy(t){return t=t||{},t.data=yh(t.data),bh(t),t}const Ic=new Map,_h=new Set;function us(t,e){let n=Ic.get(t);return n||(n=e(),Ic.set(t,n),_h.add(n)),n}const ro=(t,e,n)=>{const i=Ao(e,n);i!==void 0&&t.add(i)};class _y{constructor(e){this._config=yy(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=yh(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),bh(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return us(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return us(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return us(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return us(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let o=i.get(e);return(!o||n)&&(o=new Map,i.set(e,o)),o}getOptionScopes(e,n,i){const{options:o,type:s}=this,r=this._cachedScopes(e,i),a=r.get(n);if(a)return a;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>ro(l,e,d))),u.forEach(d=>ro(l,o,d)),u.forEach(d=>ro(l,ci[s]||{},d)),u.forEach(d=>ro(l,at,d)),u.forEach(d=>ro(l,ca,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),_h.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,ci[n]||{},at.datasets[n]||{},{type:n},at,ca]}resolveNamedOptions(e,n,i,o=[""]){const s={$shared:!0},{resolver:r,subPrefixes:a}=Oc(this._resolverCache,e,o);let l=r;if(Sy(r,n)){s.$shared=!1,i=Nt(i)?i():i;const c=this.createResolver(e,i,a);l=zi(r,i,c)}for(const c of n)s[c]=l[c];return s}createResolver(e,n,i=[""],o){const{resolver:s}=Oc(this._resolverCache,e,i);return xe(n)?zi(s,n,void 0,o):s}}function Oc(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let s=i.get(o);return s||(s={resolver:Ua(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(o,s)),s}const xy=t=>xe(t)&&Object.getOwnPropertyNames(t).some(e=>Nt(t[e]));function Sy(t,e){const{isScriptable:n,isIndexable:i}=th(t);for(const o of e){const s=n(o),r=i(o),a=(r||s)&&t[o];if(s&&(Nt(a)||xy(a))||r&&Qe(a))return!0}return!1}var wy="4.4.8";const ky=["top","bottom","left","right","chartArea"];function Dc(t,e){return t==="top"||t==="bottom"||ky.indexOf(t)===-1&&e==="x"}function Vc(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Ec(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),je(n&&n.onComplete,[t],e)}function Cy(t){const e=t.chart,n=e.options.animation;je(n&&n.onProgress,[t],e)}function xh(t){return Xa()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Ms={},Ac=t=>{const e=xh(t);return Object.values(Ms).filter(n=>n.canvas===e).pop()};function My(t,e,n){const i=Object.keys(t);for(const o of i){const s=+o;if(s>=e){const r=t[o];delete t[o],(n>0||s>e)&&(t[s+n]=r)}}}function Py(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}function ds(t,e,n){return t.options.clip?t[n]:e[n]}function Ty(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:ds(n,e,"left"),right:ds(n,e,"right"),top:ds(i,e,"top"),bottom:ds(i,e,"bottom")}:e}var En;let Nn=(En=class{static register(...e){gn.add(...e),Rc()}static unregister(...e){gn.remove(...e),Rc()}constructor(e,n){const i=this.config=new _y(n),o=xh(e),s=Ac(o);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||$b(o)),this.platform.updateConfig(i);const a=this.platform.acquireContext(o,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=Fv(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new cy,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=np(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],Ms[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}yn.listen(this,"complete",Ec),yn.listen(this,"progress",Cy),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:o,_aspectRatio:s}=this;return Ze(e)?n&&s?s:o?i/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return gn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():rc(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ic(this.canvas,this.ctx),this}stop(){return yn.stop(this),this}resize(e,n){yn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,o=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(o,e,n,s),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,rc(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),je(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ne(n,(i,o)=>{i.id=o})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,o=Object.keys(i).reduce((r,a)=>(r[a]=!1,r),{});let s=[];n&&(s=s.concat(Object.keys(n).map(r=>{const a=n[r],l=ha(r,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Ne(s,r=>{const a=r.options,l=a.id,c=ha(l,a),u=Ce(a.type,r.dtype);(a.position===void 0||Dc(a.position,c)!==Dc(r.dposition))&&(a.position=r.dposition),o[l]=!0;let d=null;if(l in i&&i[l].type===u)d=i[l];else{const h=gn.getScale(u);d=new h({id:l,type:u,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(a,e)}),Ne(o,(r,a)=>{r||delete i[a]}),Ne(i,r=>{zn.configure(this,r,r.options),zn.addBox(this,r)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((o,s)=>o.index-s.index),i>n){for(let o=n;on.length&&delete this._stacks,e.forEach((i,o)=>{n.filter(s=>s===i._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,o;for(this._removeUnreferencedMetasets(),i=0,o=n.length;i{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Vc("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Ne(this.scales,e=>{zn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!Zl(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:o,count:s}of n){const r=i==="_removeElements"?-s:s;My(e,o,r)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=s=>new Set(e.filter(r=>r[0]===s).map((r,a)=>a+","+r.splice(1).join(","))),o=i(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;zn.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],Ne(this.boxes,o=>{i&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,s)=>{o._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,i=e._clip,o=!i.disabled,s=Ty(e,this.chartArea),r={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Bo(n,{left:i.left===!1?0:s.left-i.left,right:i.right===!1?this.width:s.right+i.right,top:i.top===!1?0:s.top-i.top,bottom:i.bottom===!1?this.height:s.bottom+i.bottom}),e.controller.draw(),o&&No(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Ro(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,o){const s=kb.modes[n];return typeof s=="function"?s(this,e,i,o):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let o=i.filter(s=>s&&s._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},i.push(o)),o}getContext(){return this.$context||(this.$context=hi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const i=this.getDatasetMeta(e);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(e,n){const i=this.getDatasetMeta(e);i.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,i){const o=i?"show":"hide",s=this.getDatasetMeta(e),r=s.controller._resolveAnimations(void 0,o);$t(n)?(s.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),r.update(s,{visible:i}),this.update(a=>a.datasetIndex===e?o:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),yn.remove(this),e=0,n=this.data.datasets.length;e{n.addEventListener(this,s,r),e[s]=r},o=(s,r,a)=>{s.offsetX=r,s.offsetY=a,this._eventHandler(s)};Ne(this.options.events,s=>i(s,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},o=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{o("attach",a),this.attached=!0,this.resize(),i("resize",s),i("detach",r)};r=()=>{this.attached=!1,o("resize",s),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){Ne(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Ne(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const o=i?"set":"remove";let s,r,a,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=e.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[r],index:r}});!As(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,i){const o=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),r=s(n,e),a=i?e:s(e,n);r.length&&this.updateHoverStyle(r,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},o=r=>(r.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,o)===!1)return;const s=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,o),(s||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:o=[],options:s}=this,r=n,a=this._getActiveElements(e,o,i,r),l=jv(e),c=Py(e,this._lastEvent,i,l);i&&(this._lastEvent=null,je(s.onHover,[e,a,this],this),l&&je(s.onClick,[e,a,this],this));const u=!As(a,o);return(u||n)&&(this._active=a,this._updateHoverStyles(a,o,n)),this._lastEvent=c,u}_getActiveElements(e,n,i,o){if(e.type==="mouseout")return[];if(!i)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,o)}},Ae(En,"defaults",at),Ae(En,"instances",Ms),Ae(En,"overrides",ci),Ae(En,"registry",gn),Ae(En,"version",wy),Ae(En,"getChart",Ac),En);function Rc(){return Ne(Nn.instances,t=>t._plugins.invalidate())}function Sh(t,e,n=e){t.lineCap=Ce(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Ce(n.borderDash,e.borderDash)),t.lineDashOffset=Ce(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Ce(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Ce(n.borderWidth,e.borderWidth),t.strokeStyle=Ce(n.borderColor,e.borderColor)}function Iy(t,e,n){t.lineTo(n.x,n.y)}function Oy(t){return t.stepped?mp:t.tension||t.cubicInterpolationMode==="monotone"?vp:Iy}function wh(t,e,n={}){const i=t.length,{start:o=0,end:s=i-1}=n,{start:r,end:a}=e,l=Math.max(o,r),c=Math.min(s,a),u=oa&&s>a;return{count:i,start:l,loop:e.loop,ilen:c(r+(c?a-_:_))%s,y=()=>{p!==v&&(t.lineTo(u,v),t.lineTo(u,p),t.lineTo(u,b))};for(l&&(f=o[x(0)],t.moveTo(f.x,f.y)),h=0;h<=a;++h){if(f=o[x(h)],f.skip)continue;const _=f.x,C=f.y,S=_|0;S===m?(Cv&&(v=C),u=(d*u+_)/++d):(y(),t.lineTo(_,C),m=S,d=0,p=v=C),b=C}y()}function fa(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?Vy:Dy}function Ey(t){return t.stepped?Xp:t.tension||t.cubicInterpolationMode==="monotone"?Kp:Gn}function Ay(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),Sh(t,e.options),t.stroke(o)}function Ry(t,e,n,i){const{segments:o,options:s}=e,r=fa(e);for(const a of o)Sh(t,s,a.style),t.beginPath(),r(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const qy=typeof Path2D=="function";function Ly(t,e,n,i){qy&&!e.options.segment?Ay(t,e,n,i):Ry(t,e,n,i)}class Cn extends Lt{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const o=i.spanGaps?this._loop:this._fullLoop;Np(this._points,i,e,o,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=nb(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,i=e.length;return i&&n[e[i-1].end]}interpolate(e,n){const i=this.options,o=e[n],s=this.points,r=uh(this,{property:n,start:o,end:o});if(!r.length)return;const a=[],l=Ey(i);let c,u;for(c=0,u=r.length;ce!=="borderDash"&&e!=="fill"});function qc(t,e,n,i){const o=t.options,{[n]:s}=t.getProps([n],i);return Math.abs(e-s){a=Ja(r,a,o);const l=o[r],c=o[a];i!==null?(s.push({x:l.x,y:i}),s.push({x:c.x,y:i})):n!==null&&(s.push({x:n,y:l.y}),s.push({x:n,y:c.y}))}),s}function Ja(t,e,n){for(;e>t;e--){const i=n[e];if(!isNaN(i.x)&&!isNaN(i.y))break}return e}function Lc(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function kh(t,e){let n=[],i=!1;return Qe(t)?(i=!0,n=t):n=zy(t,e),n.length?new Cn({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function Fc(t){return t&&t.fill!==!1}function By(t,e,n){let o=t[e].fill;const s=[e];let r;if(!n)return o;for(;o!==!1&&s.indexOf(o)===-1;){if(!yt(o))return o;if(r=t[o],!r)return!1;if(r.visible)return o;s.push(o),o=r.fill}return!1}function Ny(t,e,n){const i=$y(t);if(xe(i))return isNaN(i.value)?!1:i;let o=parseFloat(i);return yt(o)&&Math.floor(o)===o?Wy(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Wy(t,e,n,i){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=i?!1:n}function Hy(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:xe(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function jy(t,e,n){let i;return t==="start"?i=n:t==="end"?i=e.options.reverse?e.min:e.max:xe(t)?i=t.value:i=e.getBaseValue(),i}function $y(t){const e=t.options,n=e.fill;let i=Ce(n&&n.target,n);return i===void 0&&(i=!!e.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function Uy(t){const{scale:e,index:n,line:i}=t,o=[],s=i.segments,r=i.points,a=Yy(e,n);a.push(kh({x:null,y:e.bottom},i));for(let l=0;l=0;--r){const a=o[r].$filler;a&&(a.line.updateControlPoints(s,a.axis),i&&a.fill&&jr(t.ctx,a,s))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=t.getSortedVisibleDatasetMetas();for(let o=i.length-1;o>=0;--o){const s=i[o].$filler;Fc(s)&&jr(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;!Fc(i)||n.drawTime!=="beforeDatasetDraw"||jr(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Wc=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},i0=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Hc extends Lt{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,i){this.maxWidth=e,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=je(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(i=>e.filter(i,this.chart.data))),e.sort&&(n=n.sort((i,o)=>e.sort(i,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const i=e.labels,o=kt(i.font),s=o.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Wc(i,s);let c,u;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,o,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,i,o){const{ctx:s,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=o+a;let d=e;s.textAlign="left",s.textBaseline="middle";let h=-1,f=-u;return this.legendItems.forEach((m,p)=>{const v=i+n/2+s.measureText(m.text).width;(p===0||c[c.length-1]+v+2*a>r)&&(d+=u,c[c.length-(p>0?0:1)]=0,f+=u,h++),l[p]={left:0,top:f,row:h,width:v,height:o},c[c.length-1]+=v+a}),d}_fitCols(e,n,i,o){const{ctx:s,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-e;let d=a,h=0,f=0,m=0,p=0;return this.legendItems.forEach((v,b)=>{const{itemWidth:x,itemHeight:y}=o0(i,n,s,v,o);b>0&&f+y+2*a>u&&(d+=h+a,c.push({width:h,height:f}),m+=h+a,p++,h=f=0),l[b]={left:m,top:f,col:p,width:x,height:y},h=Math.max(h,x),f+=y+a}),d+=h,c.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:o},rtl:s}}=this,r=Di(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=Ht(i,this.left+o,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Ht(i,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+e+o,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+o}else{let a=0,l=Ht(i,this.top+e+o,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Ht(i,this.top+e+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Bo(e,this),this._draw(),No(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:i,ctx:o}=this,{align:s,labels:r}=e,a=at.color,l=Di(e.rtl,this.left,this.width),c=kt(r.font),{padding:u}=r,d=c.size,h=d/2;let f;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:m,boxHeight:p,itemHeight:v}=Wc(r,d),b=function(S,E,A){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;o.save();const D=Ce(A.lineWidth,1);if(o.fillStyle=Ce(A.fillStyle,a),o.lineCap=Ce(A.lineCap,"butt"),o.lineDashOffset=Ce(A.lineDashOffset,0),o.lineJoin=Ce(A.lineJoin,"miter"),o.lineWidth=D,o.strokeStyle=Ce(A.strokeStyle,a),o.setLineDash(Ce(A.lineDash,[])),r.usePointStyle){const P={radius:p*Math.SQRT2/2,pointStyle:A.pointStyle,rotation:A.rotation,borderWidth:D},R=l.xPlus(S,m/2),M=E+h;Jd(o,P,R,M,r.pointStyleWidth&&m)}else{const P=E+Math.max((d-p)/2,0),R=l.leftForLtr(S,m),M=Oi(A.borderRadius);o.beginPath(),Object.values(M).some(H=>H!==0)?Bs(o,{x:R,y:P,w:m,h:p,radius:M}):o.rect(R,P,m,p),o.fill(),D!==0&&o.stroke()}o.restore()},x=function(S,E,A){zs(o,A.text,S,E+v/2,c,{strikethrough:A.hidden,textAlign:l.textAlign(A.textAlign)})},y=this.isHorizontal(),_=this._computeTitleHeight();y?f={x:Ht(s,this.left+u,this.right-i[0]),y:this.top+u+_,line:0}:f={x:this.left+u,y:Ht(s,this.top+_+u,this.bottom-n[0].height),line:0},rh(this.ctx,e.textDirection);const C=v+u;this.legendItems.forEach((S,E)=>{o.strokeStyle=S.fontColor,o.fillStyle=S.fontColor;const A=o.measureText(S.text).width,D=l.textAlign(S.textAlign||(S.textAlign=r.textAlign)),P=m+h+A;let R=f.x,M=f.y;l.setWidth(this.width),y?E>0&&R+P+u>this.right&&(M=f.y+=C,f.line++,R=f.x=Ht(s,this.left+u,this.right-i[f.line])):E>0&&M+C>this.bottom&&(R=f.x=R+n[f.line].width+u,f.line++,M=f.y=Ht(s,this.top+_+u,this.bottom-n[f.line].height));const H=l.x(R);if(b(H,M,S),R=ip(D,R+m+h,y?R+P:this.right,e.rtl),x(l.x(R),M,S),y)f.x+=P+u;else if(typeof S.text!="string"){const z=c.lineHeight;f.y+=Ph(S,z)+u}else f.y+=C}),ah(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,i=kt(n.font),o=qt(n.padding);if(!n.display)return;const s=Di(e.rtl,this.left,this.width),r=this.ctx,a=n.position,l=i.size/2,c=o.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=Ht(e.align,d,this.right-h);else{const m=this.columnSizes.reduce((p,v)=>Math.max(p,v.height),0);u=c+Ht(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const f=Ht(a,d,d+h);r.textAlign=s.textAlign(Kd(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=i.string,zs(r,n.text,f,u,i)}_computeTitleHeight(){const e=this.options.title,n=kt(e.font),i=qt(e.padding);return e.display?n.lineHeight+i.height:0}_getLegendItemAt(e,n){let i,o,s;if(Ti(e,this.left,this.right)&&Ti(n,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;is.length>r.length?s:r)),e+n.size/2+i.measureText(o).width}function r0(t,e,n){let i=t;return typeof e.text!="string"&&(i=Ph(e,n)),i}function Ph(t,e){const n=t.text?t.text.length:0;return e*n}function a0(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var Th={id:"legend",_element:Hc,start(t,e,n){const i=t.legend=new Hc({ctx:t.ctx,options:n,chart:t});zn.configure(t,i,n),zn.addBox(t,i)},stop(t){zn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;zn.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:s,useBorderRadius:r,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=qt(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const mo={average(t){if(!t.length)return!1;let e,n,i=new Set,o=0,s=0;for(e=0,n=t.length;ea+l)/i.size,y:o/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,o=Number.POSITIVE_INFINITY,s,r,a;for(s=0,r=t.length;sr({chart:e,initial:n.initial,numSteps:a,currentStep:Math.min(i-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Xd.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,o)=>{if(!i.running||!i.items.length)return;const s=i.items;let a=s.length-1,r=!1,l;for(;a>=0;--a)l=s[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(e),r=!0):(s[a]=s[s.length-1],s.pop());r&&(o.draw(),this._notify(o,i,e,"progress")),s.length||(i.running=!1,this._notify(o,i,e,"complete"),i.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,o)=>Math.max(i,o._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let o=i.length-1;for(;o>=0;--o)i[o].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var yn=new sb;const dc="transparent",ab={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=ec(t||dc),o=i.valid&&ec(e||dc);return o&&o.valid?o.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class rb{constructor(e,n,i,o){const s=n[i];o=ss([e.to,o,s,e.from]);const a=ss([e.from,s,o]);this._active=!0,this._fn=e.fn||ab[e.type||typeof a],this._easing=ko[e.easing]||ko.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const o=this._target[this._prop],s=i-this._start,a=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=ss([e.to,n,o,e.from]),this._from=ss([e.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,o=this._prop,s=this._from,a=this._loop,r=this._to;let l;if(this._active=s!==r&&(a||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(s,r,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let o=0;o{const s=e[o];if(!xe(s))return;const a={};for(const r of n)a[r]=s[r];(Qe(s.properties)&&s.properties||[o]).forEach(r=>{(r===o||!i.has(r))&&i.set(r,a)})})}_animateOptions(e,n){const i=n.options,o=cb(e,i);if(!o)return[];const s=this._createAnimations(o,i);return i.$shared&&lb(e.options.$animations,i).then(()=>{e.options=i},()=>{}),s}_createAnimations(e,n){const i=this._properties,o=[],s=e.$animations||(e.$animations={}),a=Object.keys(n),r=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(e,n));continue}const u=n[c];let d=s[c];const h=i.get(c);if(d)if(h&&d.active()){d.update(h,u,r);continue}else d.cancel();if(!h||!h.duration){e[c]=u;continue}s[c]=d=new rb(h,e,c,u),o.push(d)}return o}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return yn.add(this._chart,i),!0}}function lb(t,e){const n=[],i=Object.keys(e);for(let o=0;o0||!n&&s<0)return o.index}return null}function mc(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:s,vScale:a,index:r}=i,l=s.axis,c=a.axis,u=fb(s,a,i),d=e.length;let h;for(let f=0;fn[i].axis===e).shift()}function vb(t,e){return fi(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function pb(t,e,n){return fi(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function io(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const o of e){const s=o._stacks;if(!s||s[i]===void 0||s[i][n]===void 0)return;delete s[i][n],s[i]._visualValues!==void 0&&s[i]._visualValues[n]!==void 0&&delete s[i]._visualValues[n]}}}const Ba=t=>t==="reset"||t==="none",vc=(t,e)=>e?t:Object.assign({},t),bb=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:hh(n,!0),values:null};class Ei{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Fa(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&io(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),o=(d,h,f,m)=>d==="x"?h:d==="r"?m:f,s=n.xAxisID=Ce(i.xAxisID,za(e,"x")),a=n.yAxisID=Ce(i.yAxisID,za(e,"y")),r=n.rAxisID=Ce(i.rAxisID,za(e,"r")),l=n.indexAxis,c=n.iAxisID=o(l,s,a,r),u=n.vAxisID=o(l,a,s,r);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(r),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Ql(this._data,this),e._stacked&&io(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(xe(n)){const o=this._cachedMeta;this._data=hb(n,o)}else if(i!==n){if(i){Ql(i,this);const o=this._cachedMeta;io(o),o._parsed=[]}n&&Object.isExtensible(n)&&ep(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,i=this.getDataset();let o=!1;this._dataCheck();const s=n._stacked;n._stacked=Fa(n.vScale,n),n.stack!==i.stack&&(o=!0,io(n),n.stack=i.stack),this._resyncElements(e),(o||s!==n._stacked)&&(mc(this,n._parsed),n._stacked=Fa(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:o}=this,{iScale:s,_stacked:a}=i,r=s.axis;let l=e===0&&n===o.length?!0:i._sorted,c=e>0&&i._parsed[e-1],u,d,h;if(this._parsing===!1)i._parsed=o,i._sorted=!0,h=o;else{Qe(o[e])?h=this.parseArrayData(i,o,e,n):xe(o[e])?h=this.parseObjectData(i,o,e,n):h=this.parsePrimitiveData(i,o,e,n);const f=()=>d[r]===null||c&&d[r]p||d=0;--h)if(!m()){this.updateRangeFromParsed(c,e,f,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let o,s,a;for(o=0,s=n.length;o=0&&ethis.getContext(i,o,n),p=c.resolveNamedOptions(h,f,m,d);return p.$shared&&(p.$shared=l,s[a]=Object.freeze(vc(p,l))),p}_resolveAnimations(e,n,i){const o=this.chart,s=this._cachedDataOpts,a=`animation-${n}`,r=s[a];if(r)return r;let l;if(o.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(e,i,n))}const c=new Qr(o,l&&l.animations);return l&&l._cacheable&&(s[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Ba(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),o=this._sharedOptions,s=this.getSharedOptions(i),a=this.includeOptions(n,s)||s!==o;return this.updateSharedOptions(s,n,i),{sharedOptions:s,includeOptions:a}}updateElement(e,n,i,o){Ba(o)?Object.assign(e,i):this._resolveAnimations(n,o).update(e,i)}updateSharedOptions(e,n,i){e&&!Ba(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,o){e.active=o;const s=this.getStyle(n,o);this._resolveAnimations(n,i,o).update(e,{options:!o&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,i=this._cachedMeta.data;for(const[r,l,c]of this._syncList)this[r](l,c);this._syncList=[];const o=i.length,s=n.length,a=Math.min(s,o);a&&this.parse(0,a),s>o?this._insertElements(o,s-o,e):s{for(c.length+=n,r=c.length-1;r>=a;r--)c[r]=c[r-n]};for(l(s),r=e;rFs(_,r,l,!0)?1:Math.max(x,x*n,C,C*n),m=(_,x,C)=>Fs(_,r,l,!0)?-1:Math.min(x,x*n,C,C*n),p=f(0,c,d),v=f(wt,u,h),b=m(We,c,d),y=m(We+wt,u,h);i=(p-b)/2,o=(v-y)/2,s=-(p+b)/2,a=-(v+y)/2}return{ratioX:i,ratioY:o,offsetX:s,offsetY:a}}class go extends Ei{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const i=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=i;else{let s=l=>+i[l];if(xe(i[e])){const{key:l="value"}=this._parsing;s=c=>+Ro(i[c],l)}let a,r;for(a=e,r=e+n;a0&&!isNaN(e)?pt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,o=i.data.labels||[],s=$r(n._parsed[e],i.options.locale);return{label:o[e]||"",value:s}}getMaxBorderWidth(e){let n=0;const i=this.chart;let o,s,a,r,l;if(!e){for(o=0,s=i.data.datasets.length;oe!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),Ae(go,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:o}}=e.legend.options;return n.labels.map((s,a)=>{const l=e.getDatasetMeta(0).controller.getStyle(a);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:o,lineWidth:l.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(a),index:a}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class Ai extends Ei{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:i,data:o=[],_dataset:s}=n,a=this.chart._animationsDisabled;let{start:r,count:l}=op(n,o,a);this._drawStart=r,this._drawCount=l,sp(n)&&(r=0,l=o.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=o;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:c},e),this.updateElements(o,r,l,e)}updateElements(e,n,i,o){const s=o==="reset",{iScale:a,vScale:r,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,o),h=a.axis,f=r.axis,{spanGaps:m,segment:p}=this.options,v=ci(m)?m:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||o==="none",y=n+i,_=e.length;let x=n>0&&this.getParsed(n-1);for(let C=0;C<_;++C){const S=e[C],E=b?S:{};if(C=y){E.skip=!0;continue}const A=this.getParsed(C),D=Ze(A[f]),M=E[h]=a.getPixelForValue(A[h],C),R=E[f]=s||D?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,A,l):A[f],C);E.skip=isNaN(M)||isNaN(R)||D,E.stop=C>0&&Math.abs(A[h]-x[h])>v,p&&(E.parsed=A,E.raw=c.data[C]),d&&(E.options=u||this.resolveDataElementOptions(C,S.active?"active":o)),b||this.updateElement(S,C,E,o),x=A}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,i=n.options&&n.options.borderWidth||0,o=e.data||[];if(!o.length)return i;const s=o[0].size(this.resolveDataElementOptions(0)),a=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(i,s,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}Ae(Ai,"id","line"),Ae(Ai,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Ae(Ai,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Zn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Gr{static override(e){Object.assign(Gr.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return Zn()}parse(){return Zn()}format(){return Zn()}add(){return Zn()}diff(){return Zn()}startOf(){return Zn()}endOf(){return Zn()}}var fh={_date:Gr};function _b(t,e,n,i){const{controller:o,data:s,_sorted:a}=t,r=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(r&&e===r.axis&&e!=="r"&&a&&s.length){const c=r._reversePixels?Gv:ti;if(i){if(o._sharedOptions){const u=s[0],d=typeof u.getRange=="function"&&u.getRange(e);if(d){const h=c(s,e,n-d),f=c(s,e,n+d);return{lo:h.lo,hi:f.hi}}}}else{const u=c(s,e,n);if(l){const{vScale:d}=o._cachedMeta,{_parsed:h}=t,f=h.slice(0,u.lo+1).reverse().findIndex(p=>!Ze(p[d.axis]));u.lo-=Math.max(0,f);const m=h.slice(u.hi).findIndex(p=>!Ze(p[d.axis]));u.hi+=Math.max(0,m)}return u}}return{lo:0,hi:s.length-1}}function Ho(t,e,n,i,o){const s=t.getSortedVisibleDatasetMetas(),a=n[e];for(let r=0,l=s.length;r{l[a]&&l[a](e[n],o)&&(s.push({element:l,datasetIndex:c,index:u}),r=r||l.inRange(e.x,e.y,o))}),i&&!r?[]:s}var kb={evaluateInteractionItems:Ho,modes:{index(t,e,n,i){const o=Qn(e,t),s=n.axis||"x",a=n.includeInvisible||!1,r=n.intersect?Na(t,o,s,i,a):Wa(t,o,s,!1,i,a),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=r[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,i){const o=Qn(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;let r=n.intersect?Na(t,o,s,i,a):Wa(t,o,s,!1,i,a);if(r.length>0){const l=r[0].datasetIndex,c=t.getDatasetMeta(l).data;r=[];for(let u=0;un.pos===e)}function bc(t,e){return t.filter(n=>gh.indexOf(n.pos)===-1&&n.box.axis===e)}function so(t,e){return t.sort((n,i)=>{const o=e?i:n,s=e?n:i;return o.weight===s.weight?o.index-s.index:o.weight-s.weight})}function Cb(t){const e=[];let n,i,o,s,a,r;for(n=0,i=(t||[]).length;nc.box.fullSize),!0),i=so(oo(e,"left"),!0),o=so(oo(e,"right")),s=so(oo(e,"top"),!0),a=so(oo(e,"bottom")),r=bc(e,"x"),l=bc(e,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:o.concat(l).concat(a).concat(r),chartArea:oo(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:s.concat(a).concat(r)}}function yc(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function mh(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ib(t,e,n,i){const{pos:o,box:s}=n,a=t.maxPadding;if(!xe(o)){n.size&&(t[o]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?s.height:s.width),n.size=d.size/d.count,t[o]+=n.size}s.getPadding&&mh(a,s.getPadding());const r=Math.max(0,e.outerWidth-yc(a,t,"left","right")),l=Math.max(0,e.outerHeight-yc(a,t,"top","bottom")),c=r!==t.w,u=l!==t.h;return t.w=r,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Ob(t){const e=t.maxPadding;function n(i){const o=Math.max(e[i]-t[i],0);return t[i]+=o,o}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function Db(t,e){const n=e.maxPadding;function i(o){const s={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{s[a]=Math.max(e[a],n[a])}),s}return i(t?["left","right"]:["top","bottom"])}function mo(t,e,n,i){const o=[];let s,a,r,l,c,u;for(s=0,a=t.length,c=0;s{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=l.reduce((p,v)=>v.box.options&&v.box.options.display===!1?p:p+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/u,hBoxMaxHeight:a/2}),h=Object.assign({},o);mh(h,qt(i));const f=Object.assign({maxPadding:h,w:s,h:a,x:o.left,y:o.top},o),m=Pb(l.concat(c),d);mo(r.fullSize,f,d,m),mo(l,f,d,m),mo(c,f,d,m)&&mo(l,f,d,m),Ob(f),_c(r.leftAndTop,f,d,m),f.x+=f.w,f.y+=f.h,_c(r.rightAndBottom,f,d,m),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Ne(r.chartArea,p=>{const v=p.box;Object.assign(v,t.chartArea),v.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class vh{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,o){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,o?Math.floor(n/o):i)}}isAttached(e){return!0}updateConfig(e){}}class Vb extends vh{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Ms="$chartjs",Eb={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},xc=t=>t===null||t==="";function Ab(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Ms]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",xc(o)){const s=rc(t,"width");s!==void 0&&(t.width=s)}if(xc(i))if(t.style.height==="")t.height=t.width/(e||2);else{const s=rc(t,"height");s!==void 0&&(t.height=s)}return t}const ph=Zp?{passive:!0}:!1;function Rb(t,e,n){t&&t.addEventListener(e,n,ph)}function qb(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,ph)}function Lb(t,e){const n=Eb[t.type]||t.type,{x:i,y:o}=Qn(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:o!==void 0?o:null}}function Ws(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Fb(t,e,n){const i=t.canvas,o=new MutationObserver(s=>{let a=!1;for(const r of s)a=a||Ws(r.addedNodes,i),a=a&&!Ws(r.removedNodes,i);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function zb(t,e,n){const i=t.canvas,o=new MutationObserver(s=>{let a=!1;for(const r of s)a=a||Ws(r.removedNodes,i),a=a&&!Ws(r.addedNodes,i);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Lo=new Map;let Sc=0;function bh(){const t=window.devicePixelRatio;t!==Sc&&(Sc=t,Lo.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Bb(t,e){Lo.size||window.addEventListener("resize",bh),Lo.set(t,e)}function Nb(t){Lo.delete(t),Lo.size||window.removeEventListener("resize",bh)}function Wb(t,e,n){const i=t.canvas,o=i&&Kr(i);if(!o)return;const s=Kd((r,l)=>{const c=o.clientWidth;n(r,l),c{const l=r[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||s(c,u)});return a.observe(o),Bb(t,s),a}function Ha(t,e,n){n&&n.disconnect(),e==="resize"&&Nb(t)}function Hb(t,e,n){const i=t.canvas,o=Kd(s=>{t.ctx!==null&&n(Lb(s,t))},t);return Rb(i,e,o),o}class jb extends vh{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(Ab(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[Ms])return!1;const i=n[Ms].initial;["height","width"].forEach(s=>{const a=i[s];Ze(a)?n.removeAttribute(s):n.setAttribute(s,a)});const o=i.style||{};return Object.keys(o).forEach(s=>{n.style[s]=o[s]}),n.width=n.width,delete n[Ms],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const o=e.$proxies||(e.$proxies={}),a={attach:Fb,detach:zb,resize:Wb}[n]||Hb;o[n]=a(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),o=i[n];if(!o)return;({attach:Ha,detach:Ha,resize:Ha}[n]||qb)(e,n,o),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,o){return Yp(e,n,i,o)}isAttached(e){const n=e&&Kr(e);return!!(n&&n.isConnected)}}function $b(t){return!Xr()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Vb:jb}class Lt{x;y;active=!1;options;$animations;tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return ci(this.x)&&ci(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const o={};return e.forEach(s=>{o[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),o}}Ae(Lt,"defaults",{}),Ae(Lt,"defaultRoutes");function Ub(t,e){const n=t.options.ticks,i=Yb(t),o=Math.min(n.maxTicksLimit||i,i),s=n.major.enabled?Xb(e):[],a=s.length,r=s[0],l=s[a-1],c=[];if(a>o)return Kb(e,c,s,a/o),c;const u=Zb(s,e,o);if(a>0){let d,h;const f=a>1?Math.round((l-r)/(a-1)):null;for(cs(e,c,u,Ze(f)?0:r-f,r),d=0,h=a-1;do)return l}return Math.max(o,1)}function Xb(t){const e=[];let n,i;for(n=0,i=t.length;nt==="left"?"right":t==="right"?"left":t,wc=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,kc=(t,e)=>Math.min(e||t,t);function Cc(t,e){const n=[],i=t.length/e,o=t.length;let s=0;for(;sa+r)))return l}function ey(t,e){Ne(t,n=>{const i=n.gc,o=i.length/2;let s;if(o>e){for(s=0;si?i:n,i=o&&n>i?n:i,{min:hn(n,hn(i,n)),max:hn(i,hn(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){je(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:o,grace:s,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Cp(this,s,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=r=s||i<=1||!this.isHorizontal()){this.labelRotation=o;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,f=sn(this.chart.width-d,0,this.maxWidth);r=e.offset?this.maxWidth/i:f/(i-1),d+6>r&&(r=f/(i-(e.offset?.5:1)),l=this.maxHeight-ao(e.grid)-n.padding-Mc(e.title,this.chart.options.font),c=Math.sqrt(d*d+h*h),a=Yd(Math.min(Math.asin(sn((u.highest.height+6)/r,-1,1)),Math.asin(sn(l/c,-1,1))-Math.asin(sn(h/c,-1,1)))),a=Math.max(o,Math.min(s,a))),this.labelRotation=a}afterCalculateLabelRotation(){je(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){je(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:o,grid:s}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const l=Mc(o,n.options.font);if(r?(e.width=this.maxWidth,e.height=ao(s)+l):(e.height=this.maxHeight,e.width=ao(s)+l),i.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:h}=this._getLabelSizes(),f=i.padding*2,m=bt(this.labelRotation),p=Math.cos(m),v=Math.sin(m);if(r){const b=i.mirror?0:v*d.width+p*h.height;e.height=Math.min(this.maxHeight,e.height+b+f)}else{const b=i.mirror?0:p*d.width+v*h.height;e.width=Math.min(this.maxWidth,e.width+b+f)}this._calculatePadding(c,u,v,p)}}this._handleMargins(),r?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,i,o){const{ticks:{align:s,padding:a},position:r}=this.options,l=this.labelRotation!==0,c=r!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?c?(h=o*e.width,f=i*n.height):(h=i*e.height,f=o*n.width):s==="start"?f=n.width:s==="end"?h=e.width:s!=="inner"&&(h=e.width/2,f=n.width/2),this.paddingLeft=Math.max((h-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-d+a)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;s==="start"?(u=0,d=e.height):s==="end"&&(u=n.height,d=0),this.paddingTop=u+a,this.paddingBottom=d+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){je(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,i;for(n=0,i=e.length;n({width:a[D]||0,height:r[D]||0});return{first:A(0),last:A(n-1),widest:A(S),highest:A(E),widths:a,heights:r}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return Qv(this._alignToPixels?Yn(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&er*o?r/i:l/o:l*o0}_computeGridLineItems(e){const n=this.axis,i=this.chart,o=this.options,{grid:s,position:a,border:r}=o,l=s.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=ao(s),f=[],m=r.setContext(this.getContext()),p=m.display?m.width:0,v=p/2,b=function(U){return Yn(i,U,p)};let y,_,x,C,S,E,A,D,M,R,P,H;if(a==="top")y=b(this.bottom),E=this.bottom-h,D=y-v,R=b(e.top)+v,H=e.bottom;else if(a==="bottom")y=b(this.top),R=e.top,H=b(e.bottom)-v,E=y+v,D=this.top+h;else if(a==="left")y=b(this.right),S=this.right-h,A=y-v,M=b(e.left)+v,P=e.right;else if(a==="right")y=b(this.left),M=e.left,P=b(e.right)-v,S=y+v,A=this.left+h;else if(n==="x"){if(a==="center")y=b((e.top+e.bottom)/2+.5);else if(xe(a)){const U=Object.keys(a)[0],G=a[U];y=b(this.chart.scales[U].getPixelForValue(G))}R=e.top,H=e.bottom,E=y+v,D=E+h}else if(n==="y"){if(a==="center")y=b((e.left+e.right)/2);else if(xe(a)){const U=Object.keys(a)[0],G=a[U];y=b(this.chart.scales[U].getPixelForValue(G))}S=y-v,A=S-h,M=e.left,P=e.right}const z=Ce(o.ticks.maxTicksLimit,d),$=Math.max(1,Math.ceil(d/z));for(_=0;_0&&(B-=re/2);break}O={left:B,top:fe,width:re+T.width,height:Q+T.height,color:$.backdropColor}}v.push({label:x,font:D,textOffset:P,options:{rotation:p,color:G,strokeColor:Y,strokeWidth:te,textAlign:de,textBaseline:H,translation:[C,S],backdrop:O}})}return v}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-bt(this.labelRotation))return e==="top"?"left":"right";let o="center";return n.align==="start"?o="left":n.align==="end"?o="right":n.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:o,padding:s}}=this.options,a=this._getLabelSizes(),r=e+s,l=a.widest.width;let c,u;return n==="left"?o?(u=this.right+s,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-r,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?o?(u=this.left+s,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+r,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:i,top:o,width:s,height:a}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,o,s,a),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const o=this.ticks.findIndex(s=>s.value===e);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,a;const r=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(s=0,a=o.length;s{this.draw(s)}}]:[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",o=[];let s,a;for(s=0,a=n.length;s{const i=n.split("."),o=i.pop(),s=[t].concat(i).join("."),a=e[n].split("."),r=a.pop(),l=a.join(".");rt.route(s,o,l,r)})}function ry(t){return"id"in t&&"defaults"in t}class ly{constructor(){this.controllers=new us(Ei,"datasets",!0),this.elements=new us(Lt,"elements"),this.plugins=new us(Object,"plugins"),this.scales=new us(jo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,i){[...n].forEach(o=>{const s=i||this._getRegistryForType(o);i||s.isForType(o)||s===this.plugins&&o.id?this._exec(e,s,o):Ne(o,a=>{const r=i||this._getRegistryForType(a);this._exec(e,r,a)})})}_exec(e,n,i){const o=Nr(e);je(i["before"+o],[],i),n[e](i),je(i["after"+o],[],i)}_getRegistryForType(e){for(let n=0;ns.filter(r=>!a.some(l=>r.plugin.id===l.plugin.id));this._notify(o(n,i),e,"stop"),this._notify(o(i,n),e,"start")}}function uy(t){const e={},n=[],i=Object.keys(gn.plugins.items);for(let s=0;s1&&Pc(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Tc(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function py(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(n.length)return Tc(t,"x",n[0])||Tc(t,"y",n[0])}return{}}function by(t,e){const n=ui[t.type]||{scales:{}},i=e.scales||{},o=dr(t.type,e),s=Object.create(null);return Object.keys(i).forEach(a=>{const r=i[a];if(!xe(r))return console.error(`Invalid scale configuration for scale: ${a}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=hr(a,r,py(a,t),rt.scales[r.type]),c=my(l,o),u=n.scales||{};s[a]=So(Object.create(null),[{axis:l},r,u[l],u[c]])}),t.data.datasets.forEach(a=>{const r=a.type||t.type,l=a.indexAxis||dr(r,e),u=(ui[r]||{}).scales||{};Object.keys(u).forEach(d=>{const h=gy(d,l),f=a[h+"AxisID"]||h;s[f]=s[f]||Object.create(null),So(s[f],[{axis:h},i[f],u[d]])})}),Object.keys(s).forEach(a=>{const r=s[a];So(r,[rt.scales[r.type],rt.scale])}),s}function yh(t){const e=t.options||(t.options={});e.plugins=Ce(e.plugins,{}),e.scales=by(t,e)}function _h(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function yy(t){return t=t||{},t.data=_h(t.data),yh(t),t}const Ic=new Map,xh=new Set;function ds(t,e){let n=Ic.get(t);return n||(n=e(),Ic.set(t,n),xh.add(n)),n}const ro=(t,e,n)=>{const i=Ro(e,n);i!==void 0&&t.add(i)};class _y{constructor(e){this._config=yy(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=_h(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),yh(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return ds(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return ds(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return ds(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return ds(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let o=i.get(e);return(!o||n)&&(o=new Map,i.set(e,o)),o}getOptionScopes(e,n,i){const{options:o,type:s}=this,a=this._cachedScopes(e,i),r=a.get(n);if(r)return r;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>ro(l,e,d))),u.forEach(d=>ro(l,o,d)),u.forEach(d=>ro(l,ui[s]||{},d)),u.forEach(d=>ro(l,rt,d)),u.forEach(d=>ro(l,cr,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),xh.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,ui[n]||{},rt.datasets[n]||{},{type:n},rt,cr]}resolveNamedOptions(e,n,i,o=[""]){const s={$shared:!0},{resolver:a,subPrefixes:r}=Oc(this._resolverCache,e,o);let l=a;if(Sy(a,n)){s.$shared=!1,i=Nt(i)?i():i;const c=this.createResolver(e,i,r);l=Bi(a,i,c)}for(const c of n)s[c]=l[c];return s}createResolver(e,n,i=[""],o){const{resolver:s}=Oc(this._resolverCache,e,i);return xe(n)?Bi(s,n,void 0,o):s}}function Oc(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let s=i.get(o);return s||(s={resolver:Ur(e,n),subPrefixes:n.filter(r=>!r.toLowerCase().includes("hover"))},i.set(o,s)),s}const xy=t=>xe(t)&&Object.getOwnPropertyNames(t).some(e=>Nt(t[e]));function Sy(t,e){const{isScriptable:n,isIndexable:i}=nh(t);for(const o of e){const s=n(o),a=i(o),r=(a||s)&&t[o];if(s&&(Nt(r)||xy(r))||a&&Qe(r))return!0}return!1}var wy="4.4.8";const ky=["top","bottom","left","right","chartArea"];function Dc(t,e){return t==="top"||t==="bottom"||ky.indexOf(t)===-1&&e==="x"}function Vc(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Ec(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),je(n&&n.onComplete,[t],e)}function Cy(t){const e=t.chart,n=e.options.animation;je(n&&n.onProgress,[t],e)}function Sh(t){return Xr()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Ps={},Ac=t=>{const e=Sh(t);return Object.values(Ps).filter(n=>n.canvas===e).pop()};function My(t,e,n){const i=Object.keys(t);for(const o of i){const s=+o;if(s>=e){const a=t[o];delete t[o],(n>0||s>e)&&(t[s+n]=a)}}}function Py(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}function hs(t,e,n){return t.options.clip?t[n]:e[n]}function Ty(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:hs(n,e,"left"),right:hs(n,e,"right"),top:hs(i,e,"top"),bottom:hs(i,e,"bottom")}:e}var En;let Nn=(En=class{static register(...e){gn.add(...e),Rc()}static unregister(...e){gn.remove(...e),Rc()}constructor(e,n){const i=this.config=new _y(n),o=Sh(e),s=Ac(o);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||$b(o)),this.platform.updateConfig(i);const r=this.platform.acquireContext(o,a.aspectRatio),l=r&&r.canvas,c=l&&l.height,u=l&&l.width;if(this.id=Fv(),this.ctx=r,this.canvas=l,this.width=u,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new cy,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=np(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],Ps[this.id]=this,!r||!l){console.error("Failed to create chart: can't acquire context from the given item");return}yn.listen(this,"complete",Ec),yn.listen(this,"progress",Cy),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:o,_aspectRatio:s}=this;return Ze(e)?n&&s?s:o?i/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return gn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ac(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ic(this.canvas,this.ctx),this}stop(){return yn.stop(this),this}resize(e,n){yn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,o=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,e,n,s),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,ac(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),je(i.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ne(n,(i,o)=>{i.id=o})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,o=Object.keys(i).reduce((a,r)=>(a[r]=!1,a),{});let s=[];n&&(s=s.concat(Object.keys(n).map(a=>{const r=n[a],l=hr(a,r),c=l==="r",u=l==="x";return{options:r,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Ne(s,a=>{const r=a.options,l=r.id,c=hr(l,r),u=Ce(r.type,a.dtype);(r.position===void 0||Dc(r.position,c)!==Dc(a.dposition))&&(r.position=a.dposition),o[l]=!0;let d=null;if(l in i&&i[l].type===u)d=i[l];else{const h=gn.getScale(u);d=new h({id:l,type:u,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(r,e)}),Ne(o,(a,r)=>{a||delete i[r]}),Ne(i,a=>{zn.configure(this,a,a.options),zn.addBox(this,a)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((o,s)=>o.index-s.index),i>n){for(let o=n;on.length&&delete this._stacks,e.forEach((i,o)=>{n.filter(s=>s===i._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,o;for(this._removeUnreferencedMetasets(),i=0,o=n.length;i{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Vc("z","_idx"));const{_active:r,_lastEvent:l}=this;l?this._eventHandler(l,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){Ne(this.scales,e=>{zn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!Zl(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:o,count:s}of n){const a=i==="_removeElements"?-s:s;My(e,o,a)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=s=>new Set(e.filter(a=>a[0]===s).map((a,r)=>r+","+a.splice(1).join(","))),o=i(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;zn.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],Ne(this.boxes,o=>{i&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,s)=>{o._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,i=e._clip,o=!i.disabled,s=Ty(e,this.chartArea),a={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&No(n,{left:i.left===!1?0:s.left-i.left,right:i.right===!1?this.width:s.right+i.right,top:i.top===!1?0:s.top-i.top,bottom:i.bottom===!1?this.height:s.bottom+i.bottom}),e.controller.draw(),o&&Wo(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(e){return qo(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,o){const s=kb.modes[n];return typeof s=="function"?s(this,e,i,o):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let o=i.filter(s=>s&&s._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},i.push(o)),o}getContext(){return this.$context||(this.$context=fi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const i=this.getDatasetMeta(e);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(e,n){const i=this.getDatasetMeta(e);i.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,i){const o=i?"show":"hide",s=this.getDatasetMeta(e),a=s.controller._resolveAnimations(void 0,o);$t(n)?(s.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),a.update(s,{visible:i}),this.update(r=>r.datasetIndex===e?o:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),yn.remove(this),e=0,n=this.data.datasets.length;e{n.addEventListener(this,s,a),e[s]=a},o=(s,a,r)=>{s.offsetX=a,s.offsetY=r,this._eventHandler(s)};Ne(this.options.events,s=>i(s,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},o=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const r=()=>{o("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",a)};a=()=>{this.attached=!1,o("resize",s),this._stop(),this._resize(0,0),i("attach",r)},n.isAttached(this.canvas)?r():a()}unbindEvents(){Ne(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Ne(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const o=i?"set":"remove";let s,a,r,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+o+"DatasetHoverStyle"]()),r=0,l=e.length;r{const r=this.getDatasetMeta(s);if(!r)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:r.data[a],index:a}});!As(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,i){const o=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),a=s(n,e),r=i?e:s(e,n);a.length&&this.updateHoverStyle(a,o.mode,!1),r.length&&o.mode&&this.updateHoverStyle(r,o.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},o=a=>(a.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,o)===!1)return;const s=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,o),(s||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:o=[],options:s}=this,a=n,r=this._getActiveElements(e,o,i,a),l=jv(e),c=Py(e,this._lastEvent,i,l);i&&(this._lastEvent=null,je(s.onHover,[e,r,this],this),l&&je(s.onClick,[e,r,this],this));const u=!As(r,o);return(u||n)&&(this._active=r,this._updateHoverStyles(r,o,n)),this._lastEvent=c,u}_getActiveElements(e,n,i,o){if(e.type==="mouseout")return[];if(!i)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,o)}},Ae(En,"defaults",rt),Ae(En,"instances",Ps),Ae(En,"overrides",ui),Ae(En,"registry",gn),Ae(En,"version",wy),Ae(En,"getChart",Ac),En);function Rc(){return Ne(Nn.instances,t=>t._plugins.invalidate())}function wh(t,e,n=e){t.lineCap=Ce(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Ce(n.borderDash,e.borderDash)),t.lineDashOffset=Ce(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Ce(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Ce(n.borderWidth,e.borderWidth),t.strokeStyle=Ce(n.borderColor,e.borderColor)}function Iy(t,e,n){t.lineTo(n.x,n.y)}function Oy(t){return t.stepped?mp:t.tension||t.cubicInterpolationMode==="monotone"?vp:Iy}function kh(t,e,n={}){const i=t.length,{start:o=0,end:s=i-1}=n,{start:a,end:r}=e,l=Math.max(o,a),c=Math.min(s,r),u=or&&s>r;return{count:i,start:l,loop:e.loop,ilen:c(a+(c?r-x:x))%s,_=()=>{p!==v&&(t.lineTo(u,v),t.lineTo(u,p),t.lineTo(u,b))};for(l&&(f=o[y(0)],t.moveTo(f.x,f.y)),h=0;h<=r;++h){if(f=o[y(h)],f.skip)continue;const x=f.x,C=f.y,S=x|0;S===m?(Cv&&(v=C),u=(d*u+x)/++d):(_(),t.lineTo(x,C),m=S,d=0,p=v=C),b=C}_()}function fr(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?Vy:Dy}function Ey(t){return t.stepped?Xp:t.tension||t.cubicInterpolationMode==="monotone"?Kp:Gn}function Ay(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),wh(t,e.options),t.stroke(o)}function Ry(t,e,n,i){const{segments:o,options:s}=e,a=fr(e);for(const r of o)wh(t,s,r.style),t.beginPath(),a(t,e,r,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const qy=typeof Path2D=="function";function Ly(t,e,n,i){qy&&!e.options.segment?Ay(t,e,n,i):Ry(t,e,n,i)}class Cn extends Lt{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const o=i.spanGaps?this._loop:this._fullLoop;Np(this._points,i,e,o,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=nb(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,i=e.length;return i&&n[e[i-1].end]}interpolate(e,n){const i=this.options,o=e[n],s=this.points,a=dh(this,{property:n,start:o,end:o});if(!a.length)return;const r=[],l=Ey(i);let c,u;for(c=0,u=a.length;ce!=="borderDash"&&e!=="fill"});function qc(t,e,n,i){const o=t.options,{[n]:s}=t.getProps([n],i);return Math.abs(e-s){r=Jr(a,r,o);const l=o[a],c=o[r];i!==null?(s.push({x:l.x,y:i}),s.push({x:c.x,y:i})):n!==null&&(s.push({x:n,y:l.y}),s.push({x:n,y:c.y}))}),s}function Jr(t,e,n){for(;e>t;e--){const i=n[e];if(!isNaN(i.x)&&!isNaN(i.y))break}return e}function Lc(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function Ch(t,e){let n=[],i=!1;return Qe(t)?(i=!0,n=t):n=zy(t,e),n.length?new Cn({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function Fc(t){return t&&t.fill!==!1}function By(t,e,n){let o=t[e].fill;const s=[e];let a;if(!n)return o;for(;o!==!1&&s.indexOf(o)===-1;){if(!yt(o))return o;if(a=t[o],!a)return!1;if(a.visible)return o;s.push(o),o=a.fill}return!1}function Ny(t,e,n){const i=$y(t);if(xe(i))return isNaN(i.value)?!1:i;let o=parseFloat(i);return yt(o)&&Math.floor(o)===o?Wy(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Wy(t,e,n,i){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=i?!1:n}function Hy(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:xe(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function jy(t,e,n){let i;return t==="start"?i=n:t==="end"?i=e.options.reverse?e.min:e.max:xe(t)?i=t.value:i=e.getBaseValue(),i}function $y(t){const e=t.options,n=e.fill;let i=Ce(n&&n.target,n);return i===void 0&&(i=!!e.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function Uy(t){const{scale:e,index:n,line:i}=t,o=[],s=i.segments,a=i.points,r=Yy(e,n);r.push(Ch({x:null,y:e.bottom},i));for(let l=0;l=0;--a){const r=o[a].$filler;r&&(r.line.updateControlPoints(s,r.axis),i&&r.fill&&ja(t.ctx,r,s))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=t.getSortedVisibleDatasetMetas();for(let o=i.length-1;o>=0;--o){const s=i[o].$filler;Fc(s)&&ja(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;!Fc(i)||n.drawTime!=="beforeDatasetDraw"||ja(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Wc=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},i0=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Hc extends Lt{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,i){this.maxWidth=e,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=je(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(i=>e.filter(i,this.chart.data))),e.sort&&(n=n.sort((i,o)=>e.sort(i,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const i=e.labels,o=kt(i.font),s=o.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:l}=Wc(i,s);let c,u;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,s,r,l)+10):(u=this.maxHeight,c=this._fitCols(a,o,r,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,i,o){const{ctx:s,maxWidth:a,options:{labels:{padding:r}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=o+r;let d=e;s.textAlign="left",s.textBaseline="middle";let h=-1,f=-u;return this.legendItems.forEach((m,p)=>{const v=i+n/2+s.measureText(m.text).width;(p===0||c[c.length-1]+v+2*r>a)&&(d+=u,c[c.length-(p>0?0:1)]=0,f+=u,h++),l[p]={left:0,top:f,row:h,width:v,height:o},c[c.length-1]+=v+r}),d}_fitCols(e,n,i,o){const{ctx:s,maxHeight:a,options:{labels:{padding:r}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=a-e;let d=r,h=0,f=0,m=0,p=0;return this.legendItems.forEach((v,b)=>{const{itemWidth:y,itemHeight:_}=o0(i,n,s,v,o);b>0&&f+_+2*r>u&&(d+=h+r,c.push({width:h,height:f}),m+=h+r,p++,h=f=0),l[b]={left:m,top:f,col:p,width:y,height:_},h=Math.max(h,y),f+=_+r}),d+=h,c.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:o},rtl:s}}=this,a=Vi(s,this.left,this.width);if(this.isHorizontal()){let r=0,l=Ht(i,this.left+o,this.right-this.lineWidths[r]);for(const c of n)r!==c.row&&(r=c.row,l=Ht(i,this.left+o,this.right-this.lineWidths[r])),c.top+=this.top+e+o,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+o}else{let r=0,l=Ht(i,this.top+e+o,this.bottom-this.columnSizes[r].height);for(const c of n)c.col!==r&&(r=c.col,l=Ht(i,this.top+e+o,this.bottom-this.columnSizes[r].height)),c.top=l,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;No(e,this),this._draw(),Wo(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:i,ctx:o}=this,{align:s,labels:a}=e,r=rt.color,l=Vi(e.rtl,this.left,this.width),c=kt(a.font),{padding:u}=a,d=c.size,h=d/2;let f;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:m,boxHeight:p,itemHeight:v}=Wc(a,d),b=function(S,E,A){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;o.save();const D=Ce(A.lineWidth,1);if(o.fillStyle=Ce(A.fillStyle,r),o.lineCap=Ce(A.lineCap,"butt"),o.lineDashOffset=Ce(A.lineDashOffset,0),o.lineJoin=Ce(A.lineJoin,"miter"),o.lineWidth=D,o.strokeStyle=Ce(A.strokeStyle,r),o.setLineDash(Ce(A.lineDash,[])),a.usePointStyle){const M={radius:p*Math.SQRT2/2,pointStyle:A.pointStyle,rotation:A.rotation,borderWidth:D},R=l.xPlus(S,m/2),P=E+h;eh(o,M,R,P,a.pointStyleWidth&&m)}else{const M=E+Math.max((d-p)/2,0),R=l.leftForLtr(S,m),P=Di(A.borderRadius);o.beginPath(),Object.values(P).some(H=>H!==0)?Bs(o,{x:R,y:M,w:m,h:p,radius:P}):o.rect(R,M,m,p),o.fill(),D!==0&&o.stroke()}o.restore()},y=function(S,E,A){zs(o,A.text,S,E+v/2,c,{strikethrough:A.hidden,textAlign:l.textAlign(A.textAlign)})},_=this.isHorizontal(),x=this._computeTitleHeight();_?f={x:Ht(s,this.left+u,this.right-i[0]),y:this.top+u+x,line:0}:f={x:this.left+u,y:Ht(s,this.top+x+u,this.bottom-n[0].height),line:0},rh(this.ctx,e.textDirection);const C=v+u;this.legendItems.forEach((S,E)=>{o.strokeStyle=S.fontColor,o.fillStyle=S.fontColor;const A=o.measureText(S.text).width,D=l.textAlign(S.textAlign||(S.textAlign=a.textAlign)),M=m+h+A;let R=f.x,P=f.y;l.setWidth(this.width),_?E>0&&R+M+u>this.right&&(P=f.y+=C,f.line++,R=f.x=Ht(s,this.left+u,this.right-i[f.line])):E>0&&P+C>this.bottom&&(R=f.x=R+n[f.line].width+u,f.line++,P=f.y=Ht(s,this.top+x+u,this.bottom-n[f.line].height));const H=l.x(R);if(b(H,P,S),R=ip(D,R+m+h,_?R+M:this.right,e.rtl),y(l.x(R),P,S),_)f.x+=M+u;else if(typeof S.text!="string"){const z=c.lineHeight;f.y+=Th(S,z)+u}else f.y+=C}),lh(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,i=kt(n.font),o=qt(n.padding);if(!n.display)return;const s=Vi(e.rtl,this.left,this.width),a=this.ctx,r=n.position,l=i.size/2,c=o.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=Ht(e.align,d,this.right-h);else{const m=this.columnSizes.reduce((p,v)=>Math.max(p,v.height),0);u=c+Ht(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const f=Ht(r,d,d+h);a.textAlign=s.textAlign(Qd(r)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=i.string,zs(a,n.text,f,u,i)}_computeTitleHeight(){const e=this.options.title,n=kt(e.font),i=qt(e.padding);return e.display?n.lineHeight+i.height:0}_getLegendItemAt(e,n){let i,o,s;if(Ii(e,this.left,this.right)&&Ii(n,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;is.length>a.length?s:a)),e+n.size/2+i.measureText(o).width}function a0(t,e,n){let i=t;return typeof e.text!="string"&&(i=Th(e,n)),i}function Th(t,e){const n=t.text?t.text.length:0;return e*n}function r0(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var Ih={id:"legend",_element:Hc,start(t,e,n){const i=t.legend=new Hc({ctx:t.ctx,options:n,chart:t});zn.configure(t,i,n),zn.addBox(t,i)},stop(t){zn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;zn.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:s,useBorderRadius:a,borderRadius:r}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=qt(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(r||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const vo={average(t){if(!t.length)return!1;let e,n,i=new Set,o=0,s=0;for(e=0,n=t.length;er+l)/i.size,y:o/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,o=Number.POSITIVE_INFINITY,s,a,r;for(s=0,a=t.length;s-1?t.split(` -`):t}function l0(t,e){const{element:n,datasetIndex:i,index:o}=e,s=t.getDatasetMeta(i).controller,{label:r,value:a}=s.getLabelAndValue(o);return{chart:t,label:r,parsed:s.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:a,dataset:s.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function jc(t,e){const n=t.chart.ctx,{body:i,footer:o,title:s}=t,{boxWidth:r,boxHeight:a}=e,l=kt(e.bodyFont),c=kt(e.titleFont),u=kt(e.footerFont),d=s.length,h=o.length,f=i.length,m=qt(e.padding);let p=m.height,v=0,b=i.reduce((_,C)=>_+C.before.length+C.lines.length+C.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,d&&(p+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b){const _=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=f*_+(b-f)*l.lineHeight+(b-1)*e.bodySpacing}h&&(p+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let x=0;const y=function(_){v=Math.max(v,n.measureText(_).width+x)};return n.save(),n.font=c.string,Ne(t.title,y),n.font=l.string,Ne(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?r+2+e.boxPadding:0,Ne(i,_=>{Ne(_.before,y),Ne(_.lines,y),Ne(_.after,y)}),x=0,n.font=u.string,Ne(t.footer,y),n.restore(),v+=m.width,{width:v,height:p}}function c0(t,e){const{y:n,height:i}=e;return nt.height-i/2?"bottom":"center"}function u0(t,e,n,i){const{x:o,width:s}=i,r=n.caretSize+n.caretPadding;if(t==="left"&&o+s+r>e.width||t==="right"&&o-s-r<0)return!0}function d0(t,e,n,i){const{x:o,width:s}=n,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return i==="center"?c=o<=(a+l)/2?"left":"right":o<=s/2?c="left":o>=r-s/2&&(c="right"),u0(c,t,e,n)&&(c="center"),c}function $c(t,e,n){const i=n.yAlign||e.yAlign||c0(t,n);return{xAlign:n.xAlign||e.xAlign||d0(t,e,n,i),yAlign:i}}function h0(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function f0(t,e,n){let{y:i,height:o}=t;return e==="top"?i+=n:e==="bottom"?i-=o+n:i-=o/2,i}function Uc(t,e,n,i){const{caretSize:o,caretPadding:s,cornerRadius:r}=t,{xAlign:a,yAlign:l}=n,c=o+s,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=Oi(r);let m=h0(e,a);const p=f0(e,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(u,h)+o:a==="right"&&(m+=Math.max(d,f)+o),{x:sn(m,0,i.width-e.width),y:sn(p,0,i.height-e.height)}}function hs(t,e,n){const i=qt(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function Yc(t){return fn([],_n(t))}function g0(t,e,n){return hi(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Zc(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const Ih={beforeTitle:bn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex"u"?Ih[e].call(n,i):o}class ma extends Lt{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,i=this.options.setContext(this.getContext()),o=i.enabled&&n.options.animation&&i.animations,s=new Qa(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=g0(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,o=zt(i,"beforeTitle",this,e),s=zt(i,"title",this,e),r=zt(i,"afterTitle",this,e);let a=[];return a=fn(a,_n(o)),a=fn(a,_n(s)),a=fn(a,_n(r)),a}getBeforeBody(e,n){return Yc(zt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:i}=n,o=[];return Ne(e,s=>{const r={before:[],lines:[],after:[]},a=Zc(i,s);fn(r.before,_n(zt(a,"beforeLabel",this,s))),fn(r.lines,zt(a,"label",this,s)),fn(r.after,_n(zt(a,"afterLabel",this,s))),o.push(r)}),o}getAfterBody(e,n){return Yc(zt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:i}=n,o=zt(i,"beforeFooter",this,e),s=zt(i,"footer",this,e),r=zt(i,"afterFooter",this,e);let a=[];return a=fn(a,_n(o)),a=fn(a,_n(s)),a=fn(a,_n(r)),a}_createItems(e){const n=this._active,i=this.chart.data,o=[],s=[],r=[];let a=[],l,c;for(l=0,c=n.length;le.filter(u,d,h,i))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,i))),Ne(a,u=>{const d=Zc(e.callbacks,u);o.push(zt(d,"labelColor",this,u)),s.push(zt(d,"labelPointStyle",this,u)),r.push(zt(d,"labelTextColor",this,u))}),this.labelColors=o,this.labelPointStyles=s,this.labelTextColors=r,this.dataPoints=a,a}update(e,n){const i=this.options.setContext(this.getContext()),o=this._active;let s,r=[];if(!o.length)this.opacity!==0&&(s={opacity:0});else{const a=mo[i.position].call(this,o,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const l=this._size=jc(this,i),c=Object.assign({},a,l),u=$c(this.chart,i,c),d=Uc(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,s={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,o){const s=this.getCaretPosition(e,i,o);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,i){const{xAlign:o,yAlign:s}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Oi(a),{x:h,y:f}=e,{width:m,height:p}=n;let v,b,x,y,_,C;return s==="center"?(_=f+p/2,o==="left"?(v=h,b=v-r,y=_+r,C=_-r):(v=h+m,b=v+r,y=_-r,C=_+r),x=v):(o==="left"?b=h+Math.max(l,u)+r:o==="right"?b=h+m-Math.max(c,d)-r:b=this.caretX,s==="top"?(y=f,_=y-r,v=b-r,x=b+r):(y=f+p,_=y+r,v=b+r,x=b-r),C=y),{x1:v,x2:b,x3:x,y1:y,y2:_,y3:C}}drawTitle(e,n,i){const o=this.title,s=o.length;let r,a,l;if(s){const c=Di(i.rtl,this.x,this.width);for(e.x=hs(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",r=kt(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=r.string,l=0;lx!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,Bs(e,{x:p,y:m,w:c,h:l,radius:b}),e.fill(),e.stroke(),e.fillStyle=r.backgroundColor,e.beginPath(),Bs(e,{x:v,y:m+1,w:c-2,h:l-2,radius:b}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(p,m,c,l),e.strokeRect(p,m,c,l),e.fillStyle=r.backgroundColor,e.fillRect(v,m+1,c-2,l-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:o}=this,{bodySpacing:s,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=i,d=kt(i.bodyFont);let h=d.lineHeight,f=0;const m=Di(i.rtl,this.x,this.width),p=function(A){n.fillText(A,m.x(e.x+f),e.y+h/2),e.y+=h+s},v=m.textAlign(r);let b,x,y,_,C,S,E;for(n.textAlign=r,n.textBaseline="middle",n.font=d.string,e.x=hs(this,v,i),n.fillStyle=i.bodyColor,Ne(this.beforeBody,p),f=a&&v!=="right"?r==="center"?c/2+u:c+2+u:0,_=0,S=o.length;_0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,o=i&&i.x,s=i&&i.y;if(o||s){const r=mo[e.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=jc(this,e),l=Object.assign({},r,this._size),c=$c(n,e,l),u=Uc(e,l,c,n);(o._to!==u.x||s._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=qt(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=i,this.drawBackground(s,e,o,n),rh(e,n.textDirection),s.y+=r.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),ah(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,o=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),s=!As(i,o),r=this._positionChanged(o,n);(s||r)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,s=this._active||[],r=this._getActiveElements(e,s,n,i),a=this._positionChanged(r,e),l=n||!As(r,s)||a;return l&&(this._active=r,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,i,o){const s=this.options;if(e.type==="mouseout")return[];if(!o)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(e,s.mode,s,i);return s.reverse&&r.reverse(),r}_positionChanged(e,n){const{caretX:i,caretY:o,options:s}=this,r=mo[s.position].call(this,e,n);return r!==!1&&(i!==r.x||o!==r.y)}}Ae(ma,"positioners",mo);var m0={id:"tooltip",_element:ma,positioners:mo,afterInit(t,e,n){n&&(t.tooltip=new ma({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Ih},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function v0(t,e){const n=[],{bounds:o,step:s,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:h}=t,f=s||1,m=u-1,{min:p,max:v}=e,b=!Ze(r),x=!Ze(a),y=!Ze(c),_=(v-p)/(d+1);let C=Xl((v-p)/m/f)*f,S,E,A,D;if(C<1e-14&&!b&&!x)return[{value:p},{value:v}];D=Math.ceil(v/C)-Math.floor(p/C),D>m&&(C=Xl(D*C/m/f)*f),Ze(l)||(S=Math.pow(10,l),C=Math.ceil(C*S)/S),o==="ticks"?(E=Math.floor(p/C)*C,A=Math.ceil(v/C)*C):(E=p,A=v),b&&x&&s&&Zv((a-r)/s,C/1e3)?(D=Math.round(Math.min((a-r)/C,u)),C=(a-r)/D,E=r,A=a):y?(E=b?r:E,A=x?a:A,D=c-1,C=(A-E)/D):(D=(A-E)/C,So(D,Math.round(D),C/1e3)?D=Math.round(D):D=Math.ceil(D));const P=Math.max(Kl(C),Kl(E));S=Math.pow(10,Ze(l)?P:l),E=Math.round(E*S)/S,A=Math.round(A*S)/S;let R=0;for(b&&(h&&E!==r?(n.push({value:r}),Ea)break;n.push({value:M})}return x&&h&&A!==a?n.length&&So(n[n.length-1].value,a,Xc(a,_,t))?n[n.length-1].value=a:n.push({value:a}):(!x||A===a)&&n.push({value:A}),n}function Xc(t,e,{horizontal:n,minRotation:i}){const o=bt(i),s=(n?Math.sin(o):Math.cos(o))||.001,r=.75*e*(""+t).length;return Math.min(e/s,r)}class p0 extends Ho{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Ze(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:o,max:s}=this;const r=l=>o=n?o:l,a=l=>s=i?s:l;if(e){const l=Li(o),c=Li(s);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(o===s){let l=s===0?1:Math.abs(s*.05);a(s+l),e||r(o-l)}this.min=o,this.max=s}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,o;return i?(o=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const o={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,r=v0(o,s);return e.bounds==="ticks"&&Xv(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const o=(i-n)/Math.max(e.length-1,1)/2;n-=o,i+=o}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return $a(e,this.chart.options.locale,this.options.ticks.format)}}class Hs extends p0{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=yt(e)?e:0,this.max=yt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=bt(this.options.ticks.minRotation),o=(e?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/o))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}Ae(Hs,"id","linear"),Ae(Hs,"defaults",{ticks:{callback:Gd.formatters.numeric}});const lr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Bt=Object.keys(lr);function Kc(t,e){return t-e}function Qc(t,e){if(Ze(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:s}=t._parseOpts;let r=e;return typeof i=="function"&&(r=i(r)),yt(r)||(r=typeof i=="string"?n.parse(r,i):n.parse(r)),r===null?null:(o&&(r=o==="week"&&(li(s)||s===!0)?n.startOf(r,"isoWeek",s):n.startOf(r,o)),+r)}function Gc(t,e,n,i){const o=Bt.length;for(let s=Bt.indexOf(t);s=Bt.indexOf(n);s--){const r=Bt[s];if(lr[r].common&&t._adapter.diff(o,i,r)>=e-1)return r}return Bt[n?Bt.indexOf(n):0]}function y0(t){for(let e=Bt.indexOf(t)+1,n=Bt.length;e=e?n[i]:n[o];t[s]=!0}}function _0(t,e,n,i){const o=t._adapter,s=+o.startOf(e[0].value,i),r=e[e.length-1].value;let a,l;for(a=s;a<=r;a=+o.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}function eu(t,e,n){const i=[],o={},s=e.length;let r,a;for(r=0;r+e.value))}initOffsets(e=[]){let n=0,i=0,o,s;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?n=1-o:n=(this.getDecimalForValue(e[1])-o)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?i=s:i=(s-this.getDecimalForValue(e[e.length-2]))/2);const r=e.length<3?.5:.25;n=sn(n,0,r),i=sn(i,0,r),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,o=this.options,s=o.time,r=s.unit||Gc(s.minUnit,n,i,this._getLabelCapacity(n)),a=Ce(o.ticks.stepSize,1),l=r==="week"?s.isoWeekday:!1,c=li(l)||l===!0,u={};let d=n,h,f;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":r),e.diff(i,n,r)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+r);const m=o.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h+p)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}format(e,n){const o=this.options.time.displayFormats,s=this._unit,r=n||o[s];return this._adapter.format(e,r)}_tickFormatFunction(e,n,i,o){const s=this.options,r=s.ticks.callback;if(r)return je(r,[e,n,i],this);const a=s.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],h=i[n],f=c&&d&&h&&h.major;return this._adapter.format(e,o||(f?d:u))}generateTickLabels(e){let n,i,o;for(n=0,i=e.length;n0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,i=o.length;n=t[i].pos&&e<=t[o].pos&&({lo:i,hi:o}=ti(t,"pos",e)),{pos:s,time:a}=t[i],{pos:r,time:l}=t[o]):(e>=t[i].time&&e<=t[o].time&&({lo:i,hi:o}=ti(t,"time",e)),{time:s,pos:a}=t[i],{time:r,pos:l}=t[o]);const c=r-s;return c?a+(l-a)*(e-s)/c:a}class tu extends Ni{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=fs(n,this.min),this._tableRange=fs(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,o=[],s=[];let r,a,l,c,u;for(r=0,a=e.length;r=n&&c<=i&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(r=0,a=o.length;ro-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(fs(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return fs(this._table,i*this._tableRange+this._minPos,!0)}}Ae(tu,"id","timeseries"),Ae(tu,"defaults",Ni.defaults);const Oh={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},x0={ariaLabel:{type:String},ariaDescribedby:{type:String}},S0={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Oh,...x0},w0=Xg[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function Si(t){return yd(t)?Sn(t):t}function k0(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return yd(e)?new Proxy(t,{}):t}function C0(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function Dh(t,e){t.labels=e}function Vh(t,e,n){const i=[];t.datasets=e.map(o=>{const s=t.datasets.find(r=>r[n]===o[n]);return!s||!o.data||i.includes(s)?{...o}:(i.push(s),Object.assign(s,o),s)})}function M0(t,e){const n={labels:[],datasets:[]};return Dh(n,t.labels),Vh(n,t.datasets,e),n}const P0=Se({props:S0,setup(t,e){let{expose:n,slots:i}=e;const o=N(null),s=bd(null);n({chart:s});const r=()=>{if(!o.value)return;const{type:c,data:u,options:d,plugins:h,datasetIdKey:f}=t,m=M0(u,f),p=k0(m,u);s.value=new Nn(o.value,{type:c,data:p,options:{...d},plugins:h})},a=()=>{const c=Sn(s.value);c&&(t.destroyDelay>0?setTimeout(()=>{c.destroy(),s.value=null},t.destroyDelay):(c.destroy(),s.value=null))},l=c=>{c.update(t.updateMode)};return Wt(r),Kg(a),ge([()=>t.options,()=>t.data],(c,u)=>{let[d,h]=c,[f,m]=u;const p=Sn(s.value);if(!p)return;let v=!1;if(d){const b=Si(d),x=Si(f);b&&b!==x&&(C0(p,b),v=!0)}if(h){const b=Si(h.labels),x=Si(m.labels),y=Si(h.datasets),_=Si(m.datasets);b!==x&&(Dh(p.config.data,b),v=!0),y&&y!==_&&(Vh(p.config.data,y,t.datasetIdKey),v=!0)}v&&ut(()=>{l(p)})},{deep:!0}),()=>w("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:o},[w("p",{},[i.default?i.default():""])])}});function T0(t,e){return Nn.register(e),Se({props:Oh,setup(n,i){let{expose:o}=i;const s=bd(null),r=a=>{s.value=a?.chart};return o({chart:s}),()=>w(P0,w0({ref:r},{type:t,...n}))}})}const Eh=T0("line",Ei),el=Qg("localData",()=>{const t=In(),e=N(!t.platform.is.mobile),n=()=>{e.value=!e.value},i=N([]),o=l=>{i.value.includes(l)||i.value.push(l)},s=l=>{i.value=i.value.filter(c=>c!==l)};return{hiddenDatasets:i,isDatasetHidden:l=>i.value.includes(l),toggleDataset:l=>{i.value.includes(l)?s(l):o(l)},hideDataset:o,showDataset:s,legendVisible:e,toggleLegendVisibility:n}}),I0=Se({__name:"HistoryChartLegend",props:{chart:{}},setup(t,{expose:e}){e();const n=t,i=el(),o=N([]),s=()=>{if(!n.chart)return;const d=n.chart.options.plugins?.legend?.labels?.generateLabels?.(n.chart)||[];d.forEach(h=>{h.text&&i.isDatasetHidden(h.text)&&(h.hidden=!0)}),o.value=d},r=d=>!n.chart||d.datasetIndex===void 0?"#ccc":n.chart.data.datasets[d.datasetIndex].borderColor||"#ccc",a=(d,h)=>{!n.chart||!d||h===void 0||(i.toggleDataset(d),i.isDatasetHidden(d)?n.chart.hide(h):n.chart.show(h),s(),n.chart.update())};ge(()=>n.chart,d=>{d&&(d.data.datasets.forEach((h,f)=>{typeof h.label=="string"&&i.isDatasetHidden(h.label)&&d.hide(f)}),d.update(),s())},{immediate:!0});const u={props:n,localDataStore:i,legendItems:o,updateLegendItems:s,getItemColor:r,toggleDataset:a,thumbStyle:{borderRadius:"5px",backgroundColor:"var(--q-primary)",width:"6px",opacity:"1"},barStyle:{borderRadius:"5px",backgroundColor:"var(--q-secondary)",width:"6px",opacity:"1"}};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),O0={class:"row wrap q-pa-none items-center justify-center"};function D0(t,e,n,i,o,s){return n.chart?(V(),ne(vm,{key:0,"thumb-style":i.thumbStyle,"bar-style":i.barStyle,class:"custom-legend-container"},{default:L(()=>[I(ir,{dense:"",class:"q-pa-none"},{default:L(()=>[q("div",O0,[(V(!0),K(Oe,null,Je(i.legendItems,(r,a)=>(V(),ne(or,{key:r.text||a,clickable:"",dense:"",class:Tt(["q-py-none",{"legend-item-hidden":r.hidden}]),onClick:l=>i.toggleDataset(r.text,r.datasetIndex)},{default:L(()=>[I(Oo,{avatar:"",class:"q-pr-none"},{default:L(()=>[q("div",{class:"legend-color-box q-mr-sm",style:_d({backgroundColor:i.getItemColor(r)})},null,4)]),_:2},1024),I(Oo,null,{default:L(()=>[I(sr,{class:"text-caption"},{default:L(()=>[qe(le(r.text),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))])]),_:1})]),_:1})):ue("",!0)}const V0=Me(I0,[["render",D0],["__scopeId","data-v-84b08d2c"],["__file","HistoryChartLegend.vue"]]);class fi extends Error{}class E0 extends fi{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class A0 extends fi{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class R0 extends fi{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Ii extends fi{}class Ah extends fi{constructor(e){super(`Invalid unit ${e}`)}}class Mt extends fi{}class Dn extends fi{constructor(){super("Zone is an abstract class")}}const ee="numeric",cn="short",jt="long",js={year:ee,month:ee,day:ee},Rh={year:ee,month:cn,day:ee},q0={year:ee,month:cn,day:ee,weekday:cn},qh={year:ee,month:jt,day:ee},Lh={year:ee,month:jt,day:ee,weekday:jt},Fh={hour:ee,minute:ee},zh={hour:ee,minute:ee,second:ee},Bh={hour:ee,minute:ee,second:ee,timeZoneName:cn},Nh={hour:ee,minute:ee,second:ee,timeZoneName:jt},Wh={hour:ee,minute:ee,hourCycle:"h23"},Hh={hour:ee,minute:ee,second:ee,hourCycle:"h23"},jh={hour:ee,minute:ee,second:ee,hourCycle:"h23",timeZoneName:cn},$h={hour:ee,minute:ee,second:ee,hourCycle:"h23",timeZoneName:jt},Uh={year:ee,month:ee,day:ee,hour:ee,minute:ee},Yh={year:ee,month:ee,day:ee,hour:ee,minute:ee,second:ee},Zh={year:ee,month:cn,day:ee,hour:ee,minute:ee},Xh={year:ee,month:cn,day:ee,hour:ee,minute:ee,second:ee},L0={year:ee,month:cn,day:ee,weekday:cn,hour:ee,minute:ee},Kh={year:ee,month:jt,day:ee,hour:ee,minute:ee,timeZoneName:cn},Qh={year:ee,month:jt,day:ee,hour:ee,minute:ee,second:ee,timeZoneName:cn},Gh={year:ee,month:jt,day:ee,weekday:jt,hour:ee,minute:ee,timeZoneName:jt},Jh={year:ee,month:jt,day:ee,weekday:jt,hour:ee,minute:ee,second:ee,timeZoneName:jt};class jo{get type(){throw new Dn}get name(){throw new Dn}get ianaName(){return this.name}get isUniversal(){throw new Dn}offsetName(e,n){throw new Dn}formatOffset(e,n){throw new Dn}offset(e){throw new Dn}equals(e){throw new Dn}get isValid(){throw new Dn}}let $r=null;class cr extends jo{static get instance(){return $r===null&&($r=new cr),$r}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return cf(e,n,i)}formatOffset(e,n){return Mo(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Ps={};function F0(t){return Ps[t]||(Ps[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ps[t]}const z0={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function B0(t,e){const n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,s,r,a,l,c,u]=i;return[r,o,s,a,l,c,u]}function N0(t,e){const n=t.formatToParts(e),i=[];for(let o=0;o=0?m:1e3+m,(h-f)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let nu={};function W0(t,e={}){const n=JSON.stringify([t,e]);let i=nu[n];return i||(i=new Intl.ListFormat(t,e),nu[n]=i),i}let va={};function pa(t,e={}){const n=JSON.stringify([t,e]);let i=va[n];return i||(i=new Intl.DateTimeFormat(t,e),va[n]=i),i}let ba={};function H0(t,e={}){const n=JSON.stringify([t,e]);let i=ba[n];return i||(i=new Intl.NumberFormat(t,e),ba[n]=i),i}let ya={};function j0(t,e={}){const{base:n,...i}=e,o=JSON.stringify([t,i]);let s=ya[o];return s||(s=new Intl.RelativeTimeFormat(t,e),ya[o]=s),s}let vo=null;function $0(){return vo||(vo=new Intl.DateTimeFormat().resolvedOptions().locale,vo)}let iu={};function U0(t){let e=iu[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,iu[t]=e}return e}function Y0(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let i,o;try{i=pa(t).resolvedOptions(),o=t}catch{const l=t.substring(0,n);i=pa(l).resolvedOptions(),o=l}const{numberingSystem:s,calendar:r}=i;return[o,s,r]}}function Z0(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function X0(t){const e=[];for(let n=1;n<=12;n++){const i=he.utc(2009,n,1);e.push(t(i))}return e}function K0(t){const e=[];for(let n=1;n<=7;n++){const i=he.utc(2016,11,13+n);e.push(t(i))}return e}function ms(t,e,n,i){const o=t.listingMode();return o==="error"?null:o==="en"?n(e):i(e)}function Q0(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class G0{constructor(e,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:o,floor:s,...r}=i;if(!n||Object.keys(r).length>0){const a={useGrouping:!1,...i};i.padTo>0&&(a.minimumIntegerDigits=i.padTo),this.inf=H0(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):sl(e,3);return gt(n,this.padTo)}}}class J0{constructor(e,n,i){this.opts=i,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const r=-1*(e.offset/60),a=r>=0?`Etc/GMT+${r}`:`Etc/GMT${r}`;e.offset!==0&&Pn.create(a).valid?(o=a,this.dt=e):(o="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,o=e.zone.name):(o="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||o,this.dtf=pa(n,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class e_{constructor(e,n,i){this.opts={style:"long",...i},!n&&af()&&(this.rtf=j0(e,i))}format(e,n){return this.rtf?this.rtf.format(e,n):w_(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const t_={firstDay:1,minimalDays:4,weekend:[6,7]};class Fe{static fromOpts(e){return Fe.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,i,o,s=!1){const r=e||rt.defaultLocale,a=r||(s?"en-US":$0()),l=n||rt.defaultNumberingSystem,c=i||rt.defaultOutputCalendar,u=_a(o)||rt.defaultWeekSettings;return new Fe(a,l,c,u,r)}static resetCache(){vo=null,va={},ba={},ya={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:i,weekSettings:o}={}){return Fe.create(e,n,i,o)}constructor(e,n,i,o,s){const[r,a,l]=Y0(e);this.locale=r,this.numberingSystem=n||a||null,this.outputCalendar=i||l||null,this.weekSettings=o,this.intl=Z0(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Q0(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Fe.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,_a(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return ms(this,e,hf,()=>{const i=n?{month:e,day:"numeric"}:{month:e},o=n?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=X0(s=>this.extract(s,i,"month"))),this.monthsCache[o][e]})}weekdays(e,n=!1){return ms(this,e,mf,()=>{const i=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=n?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=K0(s=>this.extract(s,i,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return ms(this,void 0,()=>vf,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[he.utc(2016,11,13,9),he.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ms(this,e,pf,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[he.utc(-40,1,1),he.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[e]})}extract(e,n,i){const o=this.dtFormatter(e,n),s=o.formatToParts(),r=s.find(a=>a.type.toLowerCase()===i);return r?r.value:null}numberFormatter(e={}){return new G0(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new J0(e,this.intl,n)}relFormatter(e={}){return new e_(this.intl,this.isEnglish(),e)}listFormatter(e={}){return W0(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:lf()?U0(this.locale):t_}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Ur=null;class Rt extends jo{static get utcInstance(){return Ur===null&&(Ur=new Rt(0)),Ur}static instance(e){return e===0?Rt.utcInstance:new Rt(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Rt(hr(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Mo(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Mo(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Mo(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class n_ extends jo{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ln(t,e){if(be(t)||t===null)return e;if(t instanceof jo)return t;if(l_(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?cr.instance:n==="utc"||n==="gmt"?Rt.utcInstance:Rt.parseSpecifier(n)||Pn.create(t)}else return Wn(t)?Rt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new n_(t)}const tl={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ou={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},i_=tl.hanidec.replace(/[\[|\]]/g,"").split("");function o_(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n=s&&i<=r&&(e+=i-s)}}return parseInt(e,10)}else return e}let Mi={};function s_(){Mi={}}function en({numberingSystem:t},e=""){const n=t||"latn";return Mi[n]||(Mi[n]={}),Mi[n][e]||(Mi[n][e]=new RegExp(`${tl[n]}${e}`)),Mi[n][e]}let su=()=>Date.now(),ru="system",au=null,lu=null,cu=null,uu=60,du,hu=null;class rt{static get now(){return su}static set now(e){su=e}static set defaultZone(e){ru=e}static get defaultZone(){return Ln(ru,cr.instance)}static get defaultLocale(){return au}static set defaultLocale(e){au=e}static get defaultNumberingSystem(){return lu}static set defaultNumberingSystem(e){lu=e}static get defaultOutputCalendar(){return cu}static set defaultOutputCalendar(e){cu=e}static get defaultWeekSettings(){return hu}static set defaultWeekSettings(e){hu=_a(e)}static get twoDigitCutoffYear(){return uu}static set twoDigitCutoffYear(e){uu=e%100}static get throwOnInvalid(){return du}static set throwOnInvalid(e){du=e}static resetCaches(){Fe.resetCache(),Pn.resetCache(),he.resetCache(),s_()}}class rn{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ef=[0,31,59,90,120,151,181,212,243,273,304,334],tf=[0,31,60,91,121,152,182,213,244,274,305,335];function Kt(t,e){return new rn("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function nl(t,e,n){const i=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const o=i.getUTCDay();return o===0?7:o}function nf(t,e,n){return n+($o(t)?tf:ef)[e-1]}function of(t,e){const n=$o(t)?tf:ef,i=n.findIndex(s=>sLo(i,e,n)?(c=i+1,l=1):c=i,{weekYear:c,weekNumber:l,weekday:a,...fr(t)}}function fu(t,e=4,n=1){const{weekYear:i,weekNumber:o,weekday:s}=t,r=il(nl(i,1,e),n),a=Ai(i);let l=o*7+s-r-7+e,c;l<1?(c=i-1,l+=Ai(c)):l>a?(c=i+1,l-=Ai(i)):c=i;const{month:u,day:d}=of(c,l);return{year:c,month:u,day:d,...fr(t)}}function Yr(t){const{year:e,month:n,day:i}=t,o=nf(e,n,i);return{year:e,ordinal:o,...fr(t)}}function gu(t){const{year:e,ordinal:n}=t,{month:i,day:o}=of(e,n);return{year:e,month:i,day:o,...fr(t)}}function mu(t,e){if(!be(t.localWeekday)||!be(t.localWeekNumber)||!be(t.localWeekYear)){if(!be(t.weekday)||!be(t.weekNumber)||!be(t.weekYear))throw new Ii("Cannot mix locale-based week fields with ISO-based week fields");return be(t.localWeekday)||(t.weekday=t.localWeekday),be(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),be(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function r_(t,e=4,n=1){const i=ur(t.weekYear),o=Qt(t.weekNumber,1,Lo(t.weekYear,e,n)),s=Qt(t.weekday,1,7);return i?o?s?!1:Kt("weekday",t.weekday):Kt("week",t.weekNumber):Kt("weekYear",t.weekYear)}function a_(t){const e=ur(t.year),n=Qt(t.ordinal,1,Ai(t.year));return e?n?!1:Kt("ordinal",t.ordinal):Kt("year",t.year)}function sf(t){const e=ur(t.year),n=Qt(t.month,1,12),i=Qt(t.day,1,Us(t.year,t.month));return e?n?i?!1:Kt("day",t.day):Kt("month",t.month):Kt("year",t.year)}function rf(t){const{hour:e,minute:n,second:i,millisecond:o}=t,s=Qt(e,0,23)||e===24&&n===0&&i===0&&o===0,r=Qt(n,0,59),a=Qt(i,0,59),l=Qt(o,0,999);return s?r?a?l?!1:Kt("millisecond",o):Kt("second",i):Kt("minute",n):Kt("hour",e)}function be(t){return typeof t>"u"}function Wn(t){return typeof t=="number"}function ur(t){return typeof t=="number"&&t%1===0}function l_(t){return typeof t=="string"}function c_(t){return Object.prototype.toString.call(t)==="[object Date]"}function af(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function lf(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function u_(t){return Array.isArray(t)?t:[t]}function vu(t,e,n){if(t.length!==0)return t.reduce((i,o)=>{const s=[e(o),o];return i&&n(i[0],s[0])===i[0]?i:s},null)[1]}function d_(t,e){return e.reduce((n,i)=>(n[i]=t[i],n),{})}function Wi(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function _a(t){if(t==null)return null;if(typeof t!="object")throw new Mt("Week settings must be an object");if(!Qt(t.firstDay,1,7)||!Qt(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Qt(e,1,7)))throw new Mt("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Qt(t,e,n){return ur(t)&&t>=e&&t<=n}function h_(t,e){return t-e*Math.floor(t/e)}function gt(t,e=2){const n=t<0;let i;return n?i="-"+(""+-t).padStart(e,"0"):i=(""+t).padStart(e,"0"),i}function Rn(t){if(!(be(t)||t===null||t===""))return parseInt(t,10)}function Xn(t){if(!(be(t)||t===null||t===""))return parseFloat(t)}function ol(t){if(!(be(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function sl(t,e,n=!1){const i=10**e;return(n?Math.trunc:Math.round)(t*i)/i}function $o(t){return t%4===0&&(t%100!==0||t%400===0)}function Ai(t){return $o(t)?366:365}function Us(t,e){const n=h_(e-1,12)+1,i=t+(e-n)/12;return n===2?$o(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function dr(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function pu(t,e,n){return-il(nl(t,1,e),n)+e-1}function Lo(t,e=4,n=1){const i=pu(t,e,n),o=pu(t+1,e,n);return(Ai(t)-i+o)/7}function xa(t){return t>99?t:t>rt.twoDigitCutoffYear?1900+t:2e3+t}function cf(t,e,n,i=null){const o=new Date(t),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(s.timeZone=i);const r={timeZoneName:e,...s},a=new Intl.DateTimeFormat(n,r).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function hr(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const i=parseInt(e,10)||0,o=n<0||Object.is(n,-0)?-i:i;return n*60+o}function uf(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Mt(`Invalid unit value ${t}`);return e}function Ys(t,e){const n={};for(const i in t)if(Wi(t,i)){const o=t[i];if(o==null)continue;n[e(i)]=uf(o)}return n}function Mo(t,e){const n=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${gt(n,2)}:${gt(i,2)}`;case"narrow":return`${o}${n}${i>0?`:${i}`:""}`;case"techie":return`${o}${gt(n,2)}${gt(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function fr(t){return d_(t,["hour","minute","second","millisecond"])}const f_=["January","February","March","April","May","June","July","August","September","October","November","December"],df=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g_=["J","F","M","A","M","J","J","A","S","O","N","D"];function hf(t){switch(t){case"narrow":return[...g_];case"short":return[...df];case"long":return[...f_];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ff=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],gf=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],m_=["M","T","W","T","F","S","S"];function mf(t){switch(t){case"narrow":return[...m_];case"short":return[...gf];case"long":return[...ff];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const vf=["AM","PM"],v_=["Before Christ","Anno Domini"],p_=["BC","AD"],b_=["B","A"];function pf(t){switch(t){case"narrow":return[...b_];case"short":return[...p_];case"long":return[...v_];default:return null}}function y_(t){return vf[t.hour<12?0:1]}function __(t,e){return mf(e)[t.weekday-1]}function x_(t,e){return hf(e)[t.month-1]}function S_(t,e){return pf(e)[t.year<0?0:1]}function w_(t,e,n="always",i=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&s){const d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${o[t][0]}`;case-1:return d?"yesterday":`last ${o[t][0]}`;case 0:return d?"today":`this ${o[t][0]}`}}const r=Object.is(e,-0)||e<0,a=Math.abs(e),l=a===1,c=o[t],u=i?l?c[1]:c[2]||c[1]:l?o[t][0]:t;return r?`${a} ${u} ago`:`in ${a} ${u}`}function bu(t,e){let n="";for(const i of t)i.literal?n+=i.val:n+=e(i.val);return n}const k_={D:js,DD:Rh,DDD:qh,DDDD:Lh,t:Fh,tt:zh,ttt:Bh,tttt:Nh,T:Wh,TT:Hh,TTT:jh,TTTT:$h,f:Uh,ff:Zh,fff:Kh,ffff:Gh,F:Yh,FF:Xh,FFF:Qh,FFFF:Jh};class It{static create(e,n={}){return new It(e,n)}static parseFormat(e){let n=null,i="",o=!1;const s=[];for(let r=0;r0&&s.push({literal:o||/^\s+$/.test(i),val:i}),n=null,i="",o=!o):o||a===n?i+=a:(i.length>0&&s.push({literal:/^\s+$/.test(i),val:i}),i=a,n=a)}return i.length>0&&s.push({literal:o||/^\s+$/.test(i),val:i}),s}static macroTokenToFormatOpts(e){return k_[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return gt(e,n);const i={...this.opts};return n>0&&(i.padTo=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,n){const i=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(f,m)=>this.loc.extract(e,f,m),r=f=>e.isOffsetFixed&&e.offset===0&&f.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,f.format):"",a=()=>i?y_(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(f,m)=>i?x_(e,f):s(m?{month:f}:{month:f,day:"numeric"},"month"),c=(f,m)=>i?__(e,f):s(m?{weekday:f}:{weekday:f,month:"long",day:"numeric"},"weekday"),u=f=>{const m=It.macroTokenToFormatOpts(f);return m?this.formatWithSystemDefault(e,m):f},d=f=>i?S_(e,f):s({era:f},"era"),h=f=>{switch(f){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return o?s({day:"numeric"},"day"):this.num(e.day);case"dd":return o?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return o?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?s({month:"numeric"},"month"):this.num(e.month);case"MM":return o?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?s({year:"numeric"},"year"):this.num(e.year);case"yy":return o?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return o?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return o?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(f)}};return bu(It.parseFormat(n),h)}formatDurationFromString(e,n){const i=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=l=>c=>{const u=i(c);return u?this.num(l.get(u),c.length):c},s=It.parseFormat(n),r=s.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),a=e.shiftTo(...r.map(i).filter(l=>l));return bu(s,o(a))}}const bf=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function $i(...t){const e=t.reduce((n,i)=>n+i.source,"");return RegExp(`^${e}$`)}function Ui(...t){return e=>t.reduce(([n,i,o],s)=>{const[r,a,l]=s(e,o);return[{...n,...r},a||i,l]},[{},null,1]).slice(0,2)}function Yi(t,...e){if(t==null)return[null,null];for(const[n,i]of e){const o=n.exec(t);if(o)return i(o)}return[null,null]}function yf(...t){return(e,n)=>{const i={};let o;for(o=0;of!==void 0&&(m||f&&u)?-f:f;return[{years:h(Xn(n)),months:h(Xn(i)),weeks:h(Xn(o)),days:h(Xn(s)),hours:h(Xn(r)),minutes:h(Xn(a)),seconds:h(Xn(l),l==="-0"),milliseconds:h(ol(c),d)}]}const L_={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ll(t,e,n,i,o,s,r){const a={year:e.length===2?xa(Rn(e)):Rn(e),month:df.indexOf(n)+1,day:Rn(i),hour:Rn(o),minute:Rn(s)};return r&&(a.second=Rn(r)),t&&(a.weekday=t.length>3?ff.indexOf(t)+1:gf.indexOf(t)+1),a}const F_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function z_(t){const[,e,n,i,o,s,r,a,l,c,u,d]=t,h=ll(e,o,i,n,s,r,a);let f;return l?f=L_[l]:c?f=0:f=hr(u,d),[h,new Rt(f)]}function B_(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const N_=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,W_=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,H_=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function yu(t){const[,e,n,i,o,s,r,a]=t;return[ll(e,o,i,n,s,r,a),Rt.utcInstance]}function j_(t){const[,e,n,i,o,s,r,a]=t;return[ll(e,a,n,i,o,s,r),Rt.utcInstance]}const $_=$i(M_,al),U_=$i(P_,al),Y_=$i(T_,al),Z_=$i(xf),wf=Ui(E_,Zi,Uo,Yo),X_=Ui(I_,Zi,Uo,Yo),K_=Ui(O_,Zi,Uo,Yo),Q_=Ui(Zi,Uo,Yo);function G_(t){return Yi(t,[$_,wf],[U_,X_],[Y_,K_],[Z_,Q_])}function J_(t){return Yi(B_(t),[F_,z_])}function ex(t){return Yi(t,[N_,yu],[W_,yu],[H_,j_])}function tx(t){return Yi(t,[R_,q_])}const nx=Ui(Zi);function ix(t){return Yi(t,[A_,nx])}const ox=$i(D_,V_),sx=$i(Sf),rx=Ui(Zi,Uo,Yo);function ax(t){return Yi(t,[ox,wf],[sx,rx])}const _u="Invalid Duration",kf={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},lx={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kf},Zt=146097/400,wi=146097/4800,cx={years:{quarters:4,months:12,weeks:Zt/7,days:Zt,hours:Zt*24,minutes:Zt*24*60,seconds:Zt*24*60*60,milliseconds:Zt*24*60*60*1e3},quarters:{months:3,weeks:Zt/28,days:Zt/4,hours:Zt*24/4,minutes:Zt*24*60/4,seconds:Zt*24*60*60/4,milliseconds:Zt*24*60*60*1e3/4},months:{weeks:wi/7,days:wi,hours:wi*24,minutes:wi*24*60,seconds:wi*24*60*60,milliseconds:wi*24*60*60*1e3},...kf},ni=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ux=ni.slice(0).reverse();function Vn(t,e,n=!1){const i={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Re(i)}function Cf(t,e){let n=e.milliseconds??0;for(const i of ux.slice(1))e[i]&&(n+=e[i]*t[i].milliseconds);return n}function xu(t,e){const n=Cf(t,e)<0?-1:1;ni.reduceRight((i,o)=>{if(be(e[o]))return i;if(i){const s=e[i]*n,r=t[o][i],a=Math.floor(s/r);e[o]+=a*n,e[i]-=a*r*n}return o},null),ni.reduce((i,o)=>{if(be(e[o]))return i;if(i){const s=e[i]%1;e[i]-=s,e[o]+=s*t[i][o]}return o},null)}function dx(t){const e={};for(const[n,i]of Object.entries(t))i!==0&&(e[n]=i);return e}class Re{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let i=n?cx:lx;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||Fe.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,n){return Re.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Mt(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Re({values:Ys(e,Re.normalizeUnit),loc:Fe.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(Wn(e))return Re.fromMillis(e);if(Re.isDuration(e))return e;if(typeof e=="object")return Re.fromObject(e);throw new Mt(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[i]=tx(e);return i?Re.fromObject(i,n):Re.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[i]=ix(e);return i?Re.fromObject(i,n):Re.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Mt("need to specify a reason the Duration is invalid");const i=e instanceof rn?e:new rn(e,n);if(rt.throwOnInvalid)throw new R0(i);return new Re({invalid:i})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Ah(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?It.create(this.loc,i).formatDurationFromString(this,e):_u}toHuman(e={}){if(!this.isValid)return _u;const n=ni.map(i=>{const o=this.values[i];return be(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(o)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=sl(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},he.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Cf(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=Re.fromDurationLike(e),i={};for(const o of ni)(Wi(n.values,o)||Wi(this.values,o))&&(i[o]=n.get(o)+this.get(o));return Vn(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const n=Re.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=uf(e(this.values[i],i));return Vn(this,{values:n},!0)}get(e){return this[Re.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Ys(e,Re.normalizeUnit)};return Vn(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:i,matrix:o}={}){const r={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:o,conversionAccuracy:i};return Vn(this,r)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return xu(this.matrix,e),Vn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=dx(this.normalize().shiftToAll().toObject());return Vn(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(r=>Re.normalizeUnit(r));const n={},i={},o=this.toObject();let s;for(const r of ni)if(e.indexOf(r)>=0){s=r;let a=0;for(const c in i)a+=this.matrix[c][r]*i[c],i[c]=0;Wn(o[r])&&(a+=o[r]);const l=Math.trunc(a);n[r]=l,i[r]=(a*1e3-l*1e3)/1e3}else Wn(o[r])&&(i[r]=o[r]);for(const r in i)i[r]!==0&&(n[s]+=r===s?i[r]:i[r]/this.matrix[s][r]);return xu(this.matrix,n),Vn(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Vn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(i,o){return i===void 0||i===0?o===void 0||o===0:i===o}for(const i of ni)if(!n(this.values[i],e.values[i]))return!1;return!0}}const ki="Invalid Interval";function hx(t,e){return!t||!t.isValid?st.invalid("missing or invalid start"):!e||!e.isValid?st.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?st.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(ao).filter(r=>this.contains(r)).sort((r,a)=>r.toMillis()-a.toMillis()),i=[];let{s:o}=this,s=0;for(;o+this.e?this.e:r;i.push(st.fromDateTimes(o,a)),o=a,s+=1}return i}splitBy(e){const n=Re.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,o=1,s;const r=[];for(;il*o));s=+a>+this.e?this.e:a,r.push(st.fromDateTimes(i,s)),i=s,o+=1}return r}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,i=this.e=i?null:st.fromDateTimes(n,i)}union(e){if(!this.isValid)return this;const n=this.se.e?this.e:e.e;return st.fromDateTimes(n,i)}static merge(e){const[n,i]=e.sort((o,s)=>o.s-s.s).reduce(([o,s],r)=>s?s.overlaps(r)||s.abutsStart(r)?[o,s.union(r)]:[o.concat([s]),r]:[o,r],[[],null]);return i&&n.push(i),n}static xor(e){let n=null,i=0;const o=[],s=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),r=Array.prototype.concat(...s),a=r.sort((l,c)=>l.time-c.time);for(const l of a)i+=l.type==="s"?1:-1,i===1?n=l.time:(n&&+n!=+l.time&&o.push(st.fromDateTimes(n,l.time)),n=null);return st.merge(o)}difference(...e){return st.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ki}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=js,n={}){return this.isValid?It.create(this.s.loc.clone(n),e).formatInterval(this):ki}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ki}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ki}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ki}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:ki}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):Re.invalid(this.invalidReason)}mapEndpoints(e){return st.fromDateTimes(e(this.s),e(this.e))}}class vs{static hasDST(e=rt.defaultZone){const n=he.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Pn.isValidZone(e)}static normalizeZone(e){return Ln(e,rt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||Fe.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||Fe.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||Fe.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:i=null,locObj:o=null,outputCalendar:s="gregory"}={}){return(o||Fe.create(n,i,s)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:o=null,outputCalendar:s="gregory"}={}){return(o||Fe.create(n,i,s)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:i=null,locObj:o=null}={}){return(o||Fe.create(n,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:o=null}={}){return(o||Fe.create(n,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Fe.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return Fe.create(n,null,"gregory").eras(e)}static features(){return{relative:af(),localeWeek:lf()}}}function Su(t,e){const n=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(e)-n(t);return Math.floor(Re.fromMillis(i).as("days"))}function fx(t,e,n){const i=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=Su(l,c);return(u-u%7)/7}],["days",Su]],o={},s=t;let r,a;for(const[l,c]of i)n.indexOf(l)>=0&&(r=l,o[l]=c(t,e),a=s.plus(o),a>e?(o[l]--,t=s.plus(o),t>e&&(a=t,o[l]--,t=s.plus(o))):t=a);return[t,o,a,r]}function gx(t,e,n,i){let[o,s,r,a]=fx(t,e,n);const l=e-o,c=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(r0?Re.fromMillis(l,i).shiftTo(...c).plus(u):u}const mx="missing Intl.DateTimeFormat.formatToParts support";function Le(t,e=n=>n){return{regex:t,deser:([n])=>e(o_(n))}}const vx=" ",Mf=`[ ${vx}]`,Pf=new RegExp(Mf,"g");function px(t){return t.replace(/\./g,"\\.?").replace(Pf,Mf)}function wu(t){return t.replace(/\./g,"").replace(Pf," ").toLowerCase()}function tn(t,e){return t===null?null:{regex:RegExp(t.map(px).join("|")),deser:([n])=>t.findIndex(i=>wu(n)===wu(i))+e}}function ku(t,e){return{regex:t,deser:([,n,i])=>hr(n,i),groups:e}}function ps(t){return{regex:t,deser:([e])=>e}}function bx(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function yx(t,e){const n=en(e),i=en(e,"{2}"),o=en(e,"{3}"),s=en(e,"{4}"),r=en(e,"{6}"),a=en(e,"{1,2}"),l=en(e,"{1,3}"),c=en(e,"{1,6}"),u=en(e,"{1,9}"),d=en(e,"{2,4}"),h=en(e,"{4,6}"),f=v=>({regex:RegExp(bx(v.val)),deser:([b])=>b,literal:!0}),p=(v=>{if(t.literal)return f(v);switch(v.val){case"G":return tn(e.eras("short"),0);case"GG":return tn(e.eras("long"),0);case"y":return Le(c);case"yy":return Le(d,xa);case"yyyy":return Le(s);case"yyyyy":return Le(h);case"yyyyyy":return Le(r);case"M":return Le(a);case"MM":return Le(i);case"MMM":return tn(e.months("short",!0),1);case"MMMM":return tn(e.months("long",!0),1);case"L":return Le(a);case"LL":return Le(i);case"LLL":return tn(e.months("short",!1),1);case"LLLL":return tn(e.months("long",!1),1);case"d":return Le(a);case"dd":return Le(i);case"o":return Le(l);case"ooo":return Le(o);case"HH":return Le(i);case"H":return Le(a);case"hh":return Le(i);case"h":return Le(a);case"mm":return Le(i);case"m":return Le(a);case"q":return Le(a);case"qq":return Le(i);case"s":return Le(a);case"ss":return Le(i);case"S":return Le(l);case"SSS":return Le(o);case"u":return ps(u);case"uu":return ps(a);case"uuu":return Le(n);case"a":return tn(e.meridiems(),0);case"kkkk":return Le(s);case"kk":return Le(d,xa);case"W":return Le(a);case"WW":return Le(i);case"E":case"c":return Le(n);case"EEE":return tn(e.weekdays("short",!1),1);case"EEEE":return tn(e.weekdays("long",!1),1);case"ccc":return tn(e.weekdays("short",!0),1);case"cccc":return tn(e.weekdays("long",!0),1);case"Z":case"ZZ":return ku(new RegExp(`([+-]${a.source})(?::(${i.source}))?`),2);case"ZZZ":return ku(new RegExp(`([+-]${a.source})(${i.source})?`),2);case"z":return ps(/[a-z_+-/]{1,256}?/i);case" ":return ps(/[^\S\n\r]/);default:return f(v)}})(t)||{invalidReason:mx};return p.token=t,p}const _x={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function xx(t,e,n){const{type:i,value:o}=t;if(i==="literal"){const l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}const s=e[i];let r=i;i==="hour"&&(e.hour12!=null?r=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?r="hour12":r="hour24":r=n.hour12?"hour12":"hour24");let a=_x[r];if(typeof a=="object"&&(a=a[s]),a)return{literal:!1,val:a}}function Sx(t){return[`^${t.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,t]}function wx(t,e,n){const i=t.match(e);if(i){const o={};let s=1;for(const r in n)if(Wi(n,r)){const a=n[r],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(o[a.token.val[0]]=a.deser(i.slice(s,s+l))),s+=l}return[i,o]}else return[i,{}]}function kx(t){const e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return be(t.z)||(n=Pn.create(t.z)),be(t.Z)||(n||(n=new Rt(t.Z)),i=t.Z),be(t.q)||(t.M=(t.q-1)*3+1),be(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),be(t.u)||(t.S=ol(t.u)),[Object.keys(t).reduce((s,r)=>{const a=e(r);return a&&(s[a]=t[r]),s},{}),n,i]}let Zr=null;function Cx(){return Zr||(Zr=he.fromMillis(1555555555555)),Zr}function Mx(t,e){if(t.literal)return t;const n=It.macroTokenToFormatOpts(t.val),i=Df(n,e);return i==null||i.includes(void 0)?t:i}function Tf(t,e){return Array.prototype.concat(...t.map(n=>Mx(n,e)))}class If{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=Tf(It.parseFormat(n),e),this.units=this.tokens.map(i=>yx(i,e)),this.disqualifyingUnit=this.units.find(i=>i.invalidReason),!this.disqualifyingUnit){const[i,o]=Sx(this.units);this.regex=RegExp(i,"i"),this.handlers=o}}explainFromTokens(e){if(this.isValid){const[n,i]=wx(e,this.regex,this.handlers),[o,s,r]=i?kx(i):[null,null,void 0];if(Wi(i,"a")&&Wi(i,"H"))throw new Ii("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:i,result:o,zone:s,specificOffset:r}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Of(t,e,n){return new If(t,n).explainFromTokens(e)}function Px(t,e,n){const{result:i,zone:o,specificOffset:s,invalidReason:r}=Of(t,e,n);return[i,o,s,r]}function Df(t,e){if(!t)return null;const i=It.create(e,t).dtFormatter(Cx()),o=i.formatToParts(),s=i.resolvedOptions();return o.map(r=>xx(r,t,s))}const Xr="Invalid DateTime",Cu=864e13;function po(t){return new rn("unsupported zone",`the zone "${t.name}" is not supported`)}function Kr(t){return t.weekData===null&&(t.weekData=$s(t.c)),t.weekData}function Qr(t){return t.localWeekData===null&&(t.localWeekData=$s(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Kn(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new he({...n,...e,old:n})}function Vf(t,e,n){let i=t-e*60*1e3;const o=n.offset(i);if(e===o)return[i,e];i-=(o-e)*60*1e3;const s=n.offset(i);return o===s?[i,o]:[t-Math.min(o,s)*60*1e3,Math.max(o,s)]}function bs(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Ts(t,e,n){return Vf(dr(t),e,n)}function Mu(t,e){const n=t.o,i=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,s={...t.c,year:i,month:o,day:Math.min(t.c.day,Us(i,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},r=Re.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=dr(s);let[l,c]=Vf(a,n,t.zone);return r!==0&&(l+=r,c=t.zone.offset(l)),{ts:l,o:c}}function Ci(t,e,n,i,o,s){const{setZone:r,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const l=e||a,c=he.fromObject(t,{...n,zone:l,specificOffset:s});return r?c:c.setZone(a)}else return he.invalid(new rn("unparsable",`the input "${o}" can't be parsed as ${i}`))}function ys(t,e,n=!0){return t.isValid?It.create(Fe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Gr(t,e){const n=t.c.year>9999||t.c.year<0;let i="";return n&&t.c.year>=0&&(i+="+"),i+=gt(t.c.year,n?6:4),e?(i+="-",i+=gt(t.c.month),i+="-",i+=gt(t.c.day)):(i+=gt(t.c.month),i+=gt(t.c.day)),i}function Pu(t,e,n,i,o,s){let r=gt(t.c.hour);return e?(r+=":",r+=gt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(r+=":")):r+=gt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(r+=gt(t.c.second),(t.c.millisecond!==0||!i)&&(r+=".",r+=gt(t.c.millisecond,3))),o&&(t.isOffsetFixed&&t.offset===0&&!s?r+="Z":t.o<0?(r+="-",r+=gt(Math.trunc(-t.o/60)),r+=":",r+=gt(Math.trunc(-t.o%60))):(r+="+",r+=gt(Math.trunc(t.o/60)),r+=":",r+=gt(Math.trunc(t.o%60)))),s&&(r+="["+t.zone.ianaName+"]"),r}const Ef={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Tx={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ix={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Af=["year","month","day","hour","minute","second","millisecond"],Ox=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Dx=["year","ordinal","hour","minute","second","millisecond"];function Vx(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Ah(t);return e}function Tu(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Vx(t)}}function Ex(t){return Os[t]||(Is===void 0&&(Is=rt.now()),Os[t]=t.offset(Is)),Os[t]}function Iu(t,e){const n=Ln(e.zone,rt.defaultZone);if(!n.isValid)return he.invalid(po(n));const i=Fe.fromObject(e);let o,s;if(be(t.year))o=rt.now();else{for(const l of Af)be(t[l])&&(t[l]=Ef[l]);const r=sf(t)||rf(t);if(r)return he.invalid(r);const a=Ex(n);[o,s]=Ts(t,a,n)}return new he({ts:o,zone:n,loc:i,o:s})}function Ou(t,e,n){const i=be(n.round)?!0:n.round,o=(r,a)=>(r=sl(r,i||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(r,a)),s=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return o(s(n.unit),n.unit);for(const r of n.units){const a=s(r);if(Math.abs(a)>=1)return o(a,r)}return o(t>e?-0:0,n.units[n.units.length-1])}function Du(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let Is,Os={};class he{constructor(e){const n=e.zone||rt.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new rn("invalid input"):null)||(n.isValid?null:po(n));this.ts=be(e.ts)?rt.now():e.ts;let o=null,s=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[o,s]=[e.old.c,e.old.o];else{const a=Wn(e.o)&&!e.old?e.o:n.offset(this.ts);o=bs(this.ts,a),i=Number.isNaN(o.year)?new rn("invalid input"):null,o=i?null:o,s=i?null:a}this._zone=n,this.loc=e.loc||Fe.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=o,this.o=s,this.isLuxonDateTime=!0}static now(){return new he({})}static local(){const[e,n]=Du(arguments),[i,o,s,r,a,l,c]=n;return Iu({year:i,month:o,day:s,hour:r,minute:a,second:l,millisecond:c},e)}static utc(){const[e,n]=Du(arguments),[i,o,s,r,a,l,c]=n;return e.zone=Rt.utcInstance,Iu({year:i,month:o,day:s,hour:r,minute:a,second:l,millisecond:c},e)}static fromJSDate(e,n={}){const i=c_(e)?e.valueOf():NaN;if(Number.isNaN(i))return he.invalid("invalid input");const o=Ln(n.zone,rt.defaultZone);return o.isValid?new he({ts:i,zone:o,loc:Fe.fromObject(n)}):he.invalid(po(o))}static fromMillis(e,n={}){if(Wn(e))return e<-Cu||e>Cu?he.invalid("Timestamp out of range"):new he({ts:e,zone:Ln(n.zone,rt.defaultZone),loc:Fe.fromObject(n)});throw new Mt(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(Wn(e))return new he({ts:e*1e3,zone:Ln(n.zone,rt.defaultZone),loc:Fe.fromObject(n)});throw new Mt("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const i=Ln(n.zone,rt.defaultZone);if(!i.isValid)return he.invalid(po(i));const o=Fe.fromObject(n),s=Ys(e,Tu),{minDaysInFirstWeek:r,startOfWeek:a}=mu(s,o),l=rt.now(),c=be(n.specificOffset)?i.offset(l):n.specificOffset,u=!be(s.ordinal),d=!be(s.year),h=!be(s.month)||!be(s.day),f=d||h,m=s.weekYear||s.weekNumber;if((f||u)&&m)throw new Ii("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&u)throw new Ii("Can't mix ordinal dates with month/day");const p=m||s.weekday&&!f;let v,b,x=bs(l,c);p?(v=Ox,b=Tx,x=$s(x,r,a)):u?(v=Dx,b=Ix,x=Yr(x)):(v=Af,b=Ef);let y=!1;for(const P of v){const R=s[P];be(R)?y?s[P]=b[P]:s[P]=x[P]:y=!0}const _=p?r_(s,r,a):u?a_(s):sf(s),C=_||rf(s);if(C)return he.invalid(C);const S=p?fu(s,r,a):u?gu(s):s,[E,A]=Ts(S,c,i),D=new he({ts:E,zone:i,o:A,loc:o});return s.weekday&&f&&e.weekday!==D.weekday?he.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${D.toISO()}`):D.isValid?D:he.invalid(D.invalid)}static fromISO(e,n={}){const[i,o]=G_(e);return Ci(i,o,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[i,o]=J_(e);return Ci(i,o,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[i,o]=ex(e);return Ci(i,o,n,"HTTP",n)}static fromFormat(e,n,i={}){if(be(e)||be(n))throw new Mt("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:s=null}=i,r=Fe.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0}),[a,l,c,u]=Px(r,e,n);return u?he.invalid(u):Ci(a,l,i,`format ${n}`,e,c)}static fromString(e,n,i={}){return he.fromFormat(e,n,i)}static fromSQL(e,n={}){const[i,o]=ax(e);return Ci(i,o,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Mt("need to specify a reason the DateTime is invalid");const i=e instanceof rn?e:new rn(e,n);if(rt.throwOnInvalid)throw new E0(i);return new he({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const i=Df(e,Fe.fromObject(n));return i?i.map(o=>o?o.val:null).join(""):null}static expandFormat(e,n={}){return Tf(It.parseFormat(e),Fe.fromObject(n)).map(o=>o.val).join("")}static resetCache(){Is=void 0,Os={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Kr(this).weekYear:NaN}get weekNumber(){return this.isValid?Kr(this).weekNumber:NaN}get weekday(){return this.isValid?Kr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Qr(this).weekday:NaN}get localWeekNumber(){return this.isValid?Qr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Qr(this).weekYear:NaN}get ordinal(){return this.isValid?Yr(this.c).ordinal:NaN}get monthShort(){return this.isValid?vs.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?vs.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?vs.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?vs.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,i=dr(this.c),o=this.zone.offset(i-e),s=this.zone.offset(i+e),r=this.zone.offset(i-o*n),a=this.zone.offset(i-s*n);if(r===a)return[this];const l=i-r*n,c=i-a*n,u=bs(l,r),d=bs(c,a);return u.hour===d.hour&&u.minute===d.minute&&u.second===d.second&&u.millisecond===d.millisecond?[Kn(this,{ts:l}),Kn(this,{ts:c})]:[this]}get isInLeapYear(){return $o(this.year)}get daysInMonth(){return Us(this.year,this.month)}get daysInYear(){return this.isValid?Ai(this.year):NaN}get weeksInWeekYear(){return this.isValid?Lo(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Lo(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:i,calendar:o}=It.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:o}}toUTC(e=0,n={}){return this.setZone(Rt.instance(e),n)}toLocal(){return this.setZone(rt.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(e=Ln(e,rt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(n||i){const s=e.offset(this.ts),r=this.toObject();[o]=Ts(r,s,e)}return Kn(this,{ts:o,zone:e})}else return he.invalid(po(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:i}={}){const o=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:i});return Kn(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Ys(e,Tu),{minDaysInFirstWeek:i,startOfWeek:o}=mu(n,this.loc),s=!be(n.weekYear)||!be(n.weekNumber)||!be(n.weekday),r=!be(n.ordinal),a=!be(n.year),l=!be(n.month)||!be(n.day),c=a||l,u=n.weekYear||n.weekNumber;if((c||r)&&u)throw new Ii("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&r)throw new Ii("Can't mix ordinal dates with month/day");let d;s?d=fu({...$s(this.c,i,o),...n},i,o):be(n.ordinal)?(d={...this.toObject(),...n},be(n.day)&&(d.day=Math.min(Us(d.year,d.month),d.day))):d=gu({...Yr(this.c),...n});const[h,f]=Ts(d,this.o,this.zone);return Kn(this,{ts:h,o:f})}plus(e){if(!this.isValid)return this;const n=Re.fromDurationLike(e);return Kn(this,Mu(this,n))}minus(e){if(!this.isValid)return this;const n=Re.fromDurationLike(e).negate();return Kn(this,Mu(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const i={},o=Re.normalizeUnit(e);switch(o){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(o==="weeks")if(n){const s=this.loc.getStartOfWeek(),{weekday:r}=this;rthis.valueOf(),a=r?this:e,l=r?e:this,c=gx(a,l,s,o);return r?c.negate():c}diffNow(e="milliseconds",n={}){return this.diff(he.now(),e,n)}until(e){return this.isValid?st.fromDateTimes(this,e):this}hasSame(e,n,i){if(!this.isValid)return!1;const o=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(n,i)<=o&&o<=s.endOf(n,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||he.fromObject({},{zone:this.zone}),i=e.padding?thisn.valueOf(),Math.min)}static max(...e){if(!e.every(he.isDateTime))throw new Mt("max requires all arguments be DateTimes");return vu(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,i={}){const{locale:o=null,numberingSystem:s=null}=i,r=Fe.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0});return Of(r,e,n)}static fromStringExplain(e,n,i={}){return he.fromFormatExplain(e,n,i)}static buildFormatParser(e,n={}){const{locale:i=null,numberingSystem:o=null}=n,s=Fe.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return new If(s,e)}static fromFormatParser(e,n,i={}){if(be(e)||be(n))throw new Mt("fromFormatParser requires an input string and a format parser");const{locale:o=null,numberingSystem:s=null}=i,r=Fe.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0});if(!r.equals(n.locale))throw new Mt(`fromFormatParser called with a locale of ${r}, but the format parser was created for ${n.locale}`);const{result:a,zone:l,specificOffset:c,invalidReason:u}=n.explainFromTokens(e);return u?he.invalid(u):Ci(a,l,i,`format ${n.format}`,e,c)}static get DATE_SHORT(){return js}static get DATE_MED(){return Rh}static get DATE_MED_WITH_WEEKDAY(){return q0}static get DATE_FULL(){return qh}static get DATE_HUGE(){return Lh}static get TIME_SIMPLE(){return Fh}static get TIME_WITH_SECONDS(){return zh}static get TIME_WITH_SHORT_OFFSET(){return Bh}static get TIME_WITH_LONG_OFFSET(){return Nh}static get TIME_24_SIMPLE(){return Wh}static get TIME_24_WITH_SECONDS(){return Hh}static get TIME_24_WITH_SHORT_OFFSET(){return jh}static get TIME_24_WITH_LONG_OFFSET(){return $h}static get DATETIME_SHORT(){return Uh}static get DATETIME_SHORT_WITH_SECONDS(){return Yh}static get DATETIME_MED(){return Zh}static get DATETIME_MED_WITH_SECONDS(){return Xh}static get DATETIME_MED_WITH_WEEKDAY(){return L0}static get DATETIME_FULL(){return Kh}static get DATETIME_FULL_WITH_SECONDS(){return Qh}static get DATETIME_HUGE(){return Gh}static get DATETIME_HUGE_WITH_SECONDS(){return Jh}}function ao(t){if(he.isDateTime(t))return t;if(t&&t.valueOf&&Wn(t.valueOf()))return he.fromJSDate(t);if(t&&typeof t=="object")return he.fromObject(t);throw new Mt(`Unknown datetime argument: ${t}, of type ${typeof t}`)}/*! +`):t}function l0(t,e){const{element:n,datasetIndex:i,index:o}=e,s=t.getDatasetMeta(i).controller,{label:a,value:r}=s.getLabelAndValue(o);return{chart:t,label:a,parsed:s.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:r,dataset:s.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function jc(t,e){const n=t.chart.ctx,{body:i,footer:o,title:s}=t,{boxWidth:a,boxHeight:r}=e,l=kt(e.bodyFont),c=kt(e.titleFont),u=kt(e.footerFont),d=s.length,h=o.length,f=i.length,m=qt(e.padding);let p=m.height,v=0,b=i.reduce((x,C)=>x+C.before.length+C.lines.length+C.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,d&&(p+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b){const x=e.displayColors?Math.max(r,l.lineHeight):l.lineHeight;p+=f*x+(b-f)*l.lineHeight+(b-1)*e.bodySpacing}h&&(p+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let y=0;const _=function(x){v=Math.max(v,n.measureText(x).width+y)};return n.save(),n.font=c.string,Ne(t.title,_),n.font=l.string,Ne(t.beforeBody.concat(t.afterBody),_),y=e.displayColors?a+2+e.boxPadding:0,Ne(i,x=>{Ne(x.before,_),Ne(x.lines,_),Ne(x.after,_)}),y=0,n.font=u.string,Ne(t.footer,_),n.restore(),v+=m.width,{width:v,height:p}}function c0(t,e){const{y:n,height:i}=e;return nt.height-i/2?"bottom":"center"}function u0(t,e,n,i){const{x:o,width:s}=i,a=n.caretSize+n.caretPadding;if(t==="left"&&o+s+a>e.width||t==="right"&&o-s-a<0)return!0}function d0(t,e,n,i){const{x:o,width:s}=n,{width:a,chartArea:{left:r,right:l}}=t;let c="center";return i==="center"?c=o<=(r+l)/2?"left":"right":o<=s/2?c="left":o>=a-s/2&&(c="right"),u0(c,t,e,n)&&(c="center"),c}function $c(t,e,n){const i=n.yAlign||e.yAlign||c0(t,n);return{xAlign:n.xAlign||e.xAlign||d0(t,e,n,i),yAlign:i}}function h0(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function f0(t,e,n){let{y:i,height:o}=t;return e==="top"?i+=n:e==="bottom"?i-=o+n:i-=o/2,i}function Uc(t,e,n,i){const{caretSize:o,caretPadding:s,cornerRadius:a}=t,{xAlign:r,yAlign:l}=n,c=o+s,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=Di(a);let m=h0(e,r);const p=f0(e,l,c);return l==="center"?r==="left"?m+=c:r==="right"&&(m-=c):r==="left"?m-=Math.max(u,h)+o:r==="right"&&(m+=Math.max(d,f)+o),{x:sn(m,0,i.width-e.width),y:sn(p,0,i.height-e.height)}}function fs(t,e,n){const i=qt(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function Yc(t){return fn([],_n(t))}function g0(t,e,n){return fi(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Zc(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const Oh={beforeTitle:bn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex"u"?Oh[e].call(n,i):o}class mr extends Lt{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,i=this.options.setContext(this.getContext()),o=i.enabled&&n.options.animation&&i.animations,s=new Qr(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=g0(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,o=zt(i,"beforeTitle",this,e),s=zt(i,"title",this,e),a=zt(i,"afterTitle",this,e);let r=[];return r=fn(r,_n(o)),r=fn(r,_n(s)),r=fn(r,_n(a)),r}getBeforeBody(e,n){return Yc(zt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:i}=n,o=[];return Ne(e,s=>{const a={before:[],lines:[],after:[]},r=Zc(i,s);fn(a.before,_n(zt(r,"beforeLabel",this,s))),fn(a.lines,zt(r,"label",this,s)),fn(a.after,_n(zt(r,"afterLabel",this,s))),o.push(a)}),o}getAfterBody(e,n){return Yc(zt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:i}=n,o=zt(i,"beforeFooter",this,e),s=zt(i,"footer",this,e),a=zt(i,"afterFooter",this,e);let r=[];return r=fn(r,_n(o)),r=fn(r,_n(s)),r=fn(r,_n(a)),r}_createItems(e){const n=this._active,i=this.chart.data,o=[],s=[],a=[];let r=[],l,c;for(l=0,c=n.length;le.filter(u,d,h,i))),e.itemSort&&(r=r.sort((u,d)=>e.itemSort(u,d,i))),Ne(r,u=>{const d=Zc(e.callbacks,u);o.push(zt(d,"labelColor",this,u)),s.push(zt(d,"labelPointStyle",this,u)),a.push(zt(d,"labelTextColor",this,u))}),this.labelColors=o,this.labelPointStyles=s,this.labelTextColors=a,this.dataPoints=r,r}update(e,n){const i=this.options.setContext(this.getContext()),o=this._active;let s,a=[];if(!o.length)this.opacity!==0&&(s={opacity:0});else{const r=vo[i.position].call(this,o,this._eventPosition);a=this._createItems(i),this.title=this.getTitle(a,i),this.beforeBody=this.getBeforeBody(a,i),this.body=this.getBody(a,i),this.afterBody=this.getAfterBody(a,i),this.footer=this.getFooter(a,i);const l=this._size=jc(this,i),c=Object.assign({},r,l),u=$c(this.chart,i,c),d=Uc(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,s={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:r.x,caretY:r.y}}this._tooltipItems=a,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,o){const s=this.getCaretPosition(e,i,o);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,i){const{xAlign:o,yAlign:s}=this,{caretSize:a,cornerRadius:r}=i,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Di(r),{x:h,y:f}=e,{width:m,height:p}=n;let v,b,y,_,x,C;return s==="center"?(x=f+p/2,o==="left"?(v=h,b=v-a,_=x+a,C=x-a):(v=h+m,b=v+a,_=x-a,C=x+a),y=v):(o==="left"?b=h+Math.max(l,u)+a:o==="right"?b=h+m-Math.max(c,d)-a:b=this.caretX,s==="top"?(_=f,x=_-a,v=b-a,y=b+a):(_=f+p,x=_+a,v=b+a,y=b-a),C=_),{x1:v,x2:b,x3:y,y1:_,y2:x,y3:C}}drawTitle(e,n,i){const o=this.title,s=o.length;let a,r,l;if(s){const c=Vi(i.rtl,this.x,this.width);for(e.x=fs(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",a=kt(i.titleFont),r=i.titleSpacing,n.fillStyle=i.titleColor,n.font=a.string,l=0;ly!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,Bs(e,{x:p,y:m,w:c,h:l,radius:b}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Bs(e,{x:v,y:m+1,w:c-2,h:l-2,radius:b}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(p,m,c,l),e.strokeRect(p,m,c,l),e.fillStyle=a.backgroundColor,e.fillRect(v,m+1,c-2,l-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:o}=this,{bodySpacing:s,bodyAlign:a,displayColors:r,boxHeight:l,boxWidth:c,boxPadding:u}=i,d=kt(i.bodyFont);let h=d.lineHeight,f=0;const m=Vi(i.rtl,this.x,this.width),p=function(A){n.fillText(A,m.x(e.x+f),e.y+h/2),e.y+=h+s},v=m.textAlign(a);let b,y,_,x,C,S,E;for(n.textAlign=a,n.textBaseline="middle",n.font=d.string,e.x=fs(this,v,i),n.fillStyle=i.bodyColor,Ne(this.beforeBody,p),f=r&&v!=="right"?a==="center"?c/2+u:c+2+u:0,x=0,S=o.length;x0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,o=i&&i.x,s=i&&i.y;if(o||s){const a=vo[e.position].call(this,this._active,this._eventPosition);if(!a)return;const r=this._size=jc(this,e),l=Object.assign({},a,this._size),c=$c(n,e,l),u=Uc(e,l,c,n);(o._to!==u.x||s._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=r.width,this.height=r.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=qt(n.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&r&&(e.save(),e.globalAlpha=i,this.drawBackground(s,e,o,n),rh(e,n.textDirection),s.y+=a.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),lh(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,o=e.map(({datasetIndex:r,index:l})=>{const c=this.chart.getDatasetMeta(r);if(!c)throw new Error("Cannot find a dataset at index "+r);return{datasetIndex:r,element:c.data[l],index:l}}),s=!As(i,o),a=this._positionChanged(o,n);(s||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,s=this._active||[],a=this._getActiveElements(e,s,n,i),r=this._positionChanged(a,e),l=n||!As(a,s)||r;return l&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,i,o){const s=this.options;if(e.type==="mouseout")return[];if(!o)return n.filter(r=>this.chart.data.datasets[r.datasetIndex]&&this.chart.getDatasetMeta(r.datasetIndex).controller.getParsed(r.index)!==void 0);const a=this.chart.getElementsAtEventForMode(e,s.mode,s,i);return s.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:i,caretY:o,options:s}=this,a=vo[s.position].call(this,e,n);return a!==!1&&(i!==a.x||o!==a.y)}}Ae(mr,"positioners",vo);var m0={id:"tooltip",_element:mr,positioners:vo,afterInit(t,e,n){n&&(t.tooltip=new mr({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Oh},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function v0(t,e){const n=[],{bounds:o,step:s,min:a,max:r,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:h}=t,f=s||1,m=u-1,{min:p,max:v}=e,b=!Ze(a),y=!Ze(r),_=!Ze(c),x=(v-p)/(d+1);let C=Xl((v-p)/m/f)*f,S,E,A,D;if(C<1e-14&&!b&&!y)return[{value:p},{value:v}];D=Math.ceil(v/C)-Math.floor(p/C),D>m&&(C=Xl(D*C/m/f)*f),Ze(l)||(S=Math.pow(10,l),C=Math.ceil(C*S)/S),o==="ticks"?(E=Math.floor(p/C)*C,A=Math.ceil(v/C)*C):(E=p,A=v),b&&y&&s&&Zv((r-a)/s,C/1e3)?(D=Math.round(Math.min((r-a)/C,u)),C=(r-a)/D,E=a,A=r):_?(E=b?a:E,A=y?r:A,D=c-1,C=(A-E)/D):(D=(A-E)/C,wo(D,Math.round(D),C/1e3)?D=Math.round(D):D=Math.ceil(D));const M=Math.max(Kl(C),Kl(E));S=Math.pow(10,Ze(l)?M:l),E=Math.round(E*S)/S,A=Math.round(A*S)/S;let R=0;for(b&&(h&&E!==a?(n.push({value:a}),Er)break;n.push({value:P})}return y&&h&&A!==r?n.length&&wo(n[n.length-1].value,r,Xc(r,x,t))?n[n.length-1].value=r:n.push({value:r}):(!y||A===r)&&n.push({value:A}),n}function Xc(t,e,{horizontal:n,minRotation:i}){const o=bt(i),s=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/s,a)}class p0 extends jo{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Ze(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:o,max:s}=this;const a=l=>o=n?o:l,r=l=>s=i?s:l;if(e){const l=Fi(o),c=Fi(s);l<0&&c<0?r(0):l>0&&c>0&&a(0)}if(o===s){let l=s===0?1:Math.abs(s*.05);r(s+l),e||a(o-l)}this.min=o,this.max=s}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,o;return i?(o=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const o={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,a=v0(o,s);return e.bounds==="ticks"&&Xv(a,this,"value"),e.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const o=(i-n)/Math.max(e.length-1,1)/2;n-=o,i+=o}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return $r(e,this.chart.options.locale,this.options.ticks.format)}}class Hs extends p0{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=yt(e)?e:0,this.max=yt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=bt(this.options.ticks.minRotation),o=(e?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/o))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}Ae(Hs,"id","linear"),Ae(Hs,"defaults",{ticks:{callback:Jd.formatters.numeric}});const la={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Bt=Object.keys(la);function Kc(t,e){return t-e}function Qc(t,e){if(Ze(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:s}=t._parseOpts;let a=e;return typeof i=="function"&&(a=i(a)),yt(a)||(a=typeof i=="string"?n.parse(a,i):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(ci(s)||s===!0)?n.startOf(a,"isoWeek",s):n.startOf(a,o)),+a)}function Gc(t,e,n,i){const o=Bt.length;for(let s=Bt.indexOf(t);s=Bt.indexOf(n);s--){const a=Bt[s];if(la[a].common&&t._adapter.diff(o,i,a)>=e-1)return a}return Bt[n?Bt.indexOf(n):0]}function y0(t){for(let e=Bt.indexOf(t)+1,n=Bt.length;e=e?n[i]:n[o];t[s]=!0}}function _0(t,e,n,i){const o=t._adapter,s=+o.startOf(e[0].value,i),a=e[e.length-1].value;let r,l;for(r=s;r<=a;r=+o.add(r,1,i))l=n[r],l>=0&&(e[l].major=!0);return e}function eu(t,e,n){const i=[],o={},s=e.length;let a,r;for(a=0;a+e.value))}initOffsets(e=[]){let n=0,i=0,o,s;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?n=1-o:n=(this.getDecimalForValue(e[1])-o)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?i=s:i=(s-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=sn(n,0,a),i=sn(i,0,a),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,o=this.options,s=o.time,a=s.unit||Gc(s.minUnit,n,i,this._getLabelCapacity(n)),r=Ce(o.ticks.stepSize,1),l=a==="week"?s.isoWeekday:!1,c=ci(l)||l===!0,u={};let d=n,h,f;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":a),e.diff(i,n,a)>1e5*r)throw new Error(n+" and "+i+" are too far apart with stepSize of "+r+" "+a);const m=o.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h+p)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}format(e,n){const o=this.options.time.displayFormats,s=this._unit,a=n||o[s];return this._adapter.format(e,a)}_tickFormatFunction(e,n,i,o){const s=this.options,a=s.ticks.callback;if(a)return je(a,[e,n,i],this);const r=s.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&r[l],d=c&&r[c],h=i[n],f=c&&d&&h&&h.major;return this._adapter.format(e,o||(f?d:u))}generateTickLabels(e){let n,i,o;for(n=0,i=e.length;n0?r:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,i=o.length;n=t[i].pos&&e<=t[o].pos&&({lo:i,hi:o}=ti(t,"pos",e)),{pos:s,time:r}=t[i],{pos:a,time:l}=t[o]):(e>=t[i].time&&e<=t[o].time&&({lo:i,hi:o}=ti(t,"time",e)),{time:s,pos:r}=t[i],{time:a,pos:l}=t[o]);const c=a-s;return c?r+(l-r)*(e-s)/c:r}class tu extends Wi{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=gs(n,this.min),this._tableRange=gs(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,o=[],s=[];let a,r,l,c,u;for(a=0,r=e.length;a=n&&c<=i&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(a=0,r=o.length;ao-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(gs(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return gs(this._table,i*this._tableRange+this._minPos,!0)}}Ae(tu,"id","timeseries"),Ae(tu,"defaults",Wi.defaults);const Dh={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},x0={ariaLabel:{type:String},ariaDescribedby:{type:String}},S0={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Dh,...x0},w0=Xg[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function wi(t){return _d(t)?Sn(t):t}function k0(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return _d(e)?new Proxy(t,{}):t}function C0(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function Vh(t,e){t.labels=e}function Eh(t,e,n){const i=[];t.datasets=e.map(o=>{const s=t.datasets.find(a=>a[n]===o[n]);return!s||!o.data||i.includes(s)?{...o}:(i.push(s),Object.assign(s,o),s)})}function M0(t,e){const n={labels:[],datasets:[]};return Vh(n,t.labels),Eh(n,t.datasets,e),n}const P0=Se({props:S0,setup(t,e){let{expose:n,slots:i}=e;const o=N(null),s=yd(null);n({chart:s});const a=()=>{if(!o.value)return;const{type:c,data:u,options:d,plugins:h,datasetIdKey:f}=t,m=M0(u,f),p=k0(m,u);s.value=new Nn(o.value,{type:c,data:p,options:{...d},plugins:h})},r=()=>{const c=Sn(s.value);c&&(t.destroyDelay>0?setTimeout(()=>{c.destroy(),s.value=null},t.destroyDelay):(c.destroy(),s.value=null))},l=c=>{c.update(t.updateMode)};return Wt(a),Kg(r),ge([()=>t.options,()=>t.data],(c,u)=>{let[d,h]=c,[f,m]=u;const p=Sn(s.value);if(!p)return;let v=!1;if(d){const b=wi(d),y=wi(f);b&&b!==y&&(C0(p,b),v=!0)}if(h){const b=wi(h.labels),y=wi(m.labels),_=wi(h.datasets),x=wi(m.datasets);b!==y&&(Vh(p.config.data,b),v=!0),_&&_!==x&&(Eh(p.config.data,_,t.datasetIdKey),v=!0)}v&&ut(()=>{l(p)})},{deep:!0}),()=>w("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:o},[w("p",{},[i.default?i.default():""])])}});function T0(t,e){return Nn.register(e),Se({props:Dh,setup(n,i){let{expose:o}=i;const s=yd(null),a=r=>{s.value=r?.chart};return o({chart:s}),()=>w(P0,w0({ref:a},{type:t,...n}))}})}const Ah=T0("line",Ai),el=Qg("localData",()=>{const t=In(),e=N(!t.platform.is.mobile),n=()=>{e.value=!e.value},i=N([]),o=l=>{i.value.includes(l)||i.value.push(l)},s=l=>{i.value=i.value.filter(c=>c!==l)};return{hiddenDatasets:i,isDatasetHidden:l=>i.value.includes(l),toggleDataset:l=>{i.value.includes(l)?s(l):o(l)},hideDataset:o,showDataset:s,legendVisible:e,toggleLegendVisibility:n}}),I0=Se({__name:"HistoryChartLegend",props:{chart:{}},setup(t,{expose:e}){e();const n=t,i=el(),o=N([]),s=()=>{if(!n.chart)return;const d=n.chart.options.plugins?.legend?.labels?.generateLabels?.(n.chart)||[];d.forEach(h=>{h.text&&i.isDatasetHidden(h.text)&&(h.hidden=!0)}),o.value=d},a=d=>!n.chart||d.datasetIndex===void 0?"#ccc":n.chart.data.datasets[d.datasetIndex].borderColor||"#ccc",r=(d,h)=>{!n.chart||!d||h===void 0||(i.toggleDataset(d),i.isDatasetHidden(d)?n.chart.hide(h):n.chart.show(h),s(),n.chart.update())};ge(()=>n.chart,d=>{d&&(d.data.datasets.forEach((h,f)=>{typeof h.label=="string"&&i.isDatasetHidden(h.label)&&d.hide(f)}),d.update(),s())},{immediate:!0});const u={props:n,localDataStore:i,legendItems:o,updateLegendItems:s,getItemColor:a,toggleDataset:r,thumbStyle:{borderRadius:"5px",backgroundColor:"var(--q-primary)",width:"6px",opacity:"1"},barStyle:{borderRadius:"5px",backgroundColor:"var(--q-secondary)",width:"6px",opacity:"1"}};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),O0={class:"row wrap q-pa-none items-center justify-center"};function D0(t,e,n,i,o,s){return n.chart?(V(),ne(vm,{key:0,"thumb-style":i.thumbStyle,"bar-style":i.barStyle,class:"custom-legend-container"},{default:L(()=>[I(ia,{dense:"",class:"q-pa-none"},{default:L(()=>[q("div",O0,[(V(!0),K(Oe,null,Je(i.legendItems,(a,r)=>(V(),ne(oa,{key:a.text||r,clickable:"",dense:"",class:Tt(["q-py-none",{"legend-item-hidden":a.hidden}]),onClick:l=>i.toggleDataset(a.text,a.datasetIndex)},{default:L(()=>[I(Do,{avatar:"",class:"q-pr-none"},{default:L(()=>[q("div",{class:"legend-color-box q-mr-sm",style:xd({backgroundColor:i.getItemColor(a)})},null,4)]),_:2},1024),I(Do,null,{default:L(()=>[I(sa,{class:"text-caption"},{default:L(()=>[qe(le(a.text),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))])]),_:1})]),_:1})):ue("",!0)}const V0=Me(I0,[["render",D0],["__scopeId","data-v-84b08d2c"],["__file","HistoryChartLegend.vue"]]);class gi extends Error{}class E0 extends gi{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class A0 extends gi{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class R0 extends gi{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Oi extends gi{}class Rh extends gi{constructor(e){super(`Invalid unit ${e}`)}}class Mt extends gi{}class Dn extends gi{constructor(){super("Zone is an abstract class")}}const ee="numeric",cn="short",jt="long",js={year:ee,month:ee,day:ee},qh={year:ee,month:cn,day:ee},q0={year:ee,month:cn,day:ee,weekday:cn},Lh={year:ee,month:jt,day:ee},Fh={year:ee,month:jt,day:ee,weekday:jt},zh={hour:ee,minute:ee},Bh={hour:ee,minute:ee,second:ee},Nh={hour:ee,minute:ee,second:ee,timeZoneName:cn},Wh={hour:ee,minute:ee,second:ee,timeZoneName:jt},Hh={hour:ee,minute:ee,hourCycle:"h23"},jh={hour:ee,minute:ee,second:ee,hourCycle:"h23"},$h={hour:ee,minute:ee,second:ee,hourCycle:"h23",timeZoneName:cn},Uh={hour:ee,minute:ee,second:ee,hourCycle:"h23",timeZoneName:jt},Yh={year:ee,month:ee,day:ee,hour:ee,minute:ee},Zh={year:ee,month:ee,day:ee,hour:ee,minute:ee,second:ee},Xh={year:ee,month:cn,day:ee,hour:ee,minute:ee},Kh={year:ee,month:cn,day:ee,hour:ee,minute:ee,second:ee},L0={year:ee,month:cn,day:ee,weekday:cn,hour:ee,minute:ee},Qh={year:ee,month:jt,day:ee,hour:ee,minute:ee,timeZoneName:cn},Gh={year:ee,month:jt,day:ee,hour:ee,minute:ee,second:ee,timeZoneName:cn},Jh={year:ee,month:jt,day:ee,weekday:jt,hour:ee,minute:ee,timeZoneName:jt},ef={year:ee,month:jt,day:ee,weekday:jt,hour:ee,minute:ee,second:ee,timeZoneName:jt};class $o{get type(){throw new Dn}get name(){throw new Dn}get ianaName(){return this.name}get isUniversal(){throw new Dn}offsetName(e,n){throw new Dn}formatOffset(e,n){throw new Dn}offset(e){throw new Dn}equals(e){throw new Dn}get isValid(){throw new Dn}}let $a=null;class ca extends $o{static get instance(){return $a===null&&($a=new ca),$a}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return uf(e,n,i)}formatOffset(e,n){return Po(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Ts={};function F0(t){return Ts[t]||(Ts[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ts[t]}const z0={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function B0(t,e){const n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,s,a,r,l,c,u]=i;return[a,o,s,r,l,c,u]}function N0(t,e){const n=t.formatToParts(e),i=[];for(let o=0;o=0?m:1e3+m,(h-f)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let nu={};function W0(t,e={}){const n=JSON.stringify([t,e]);let i=nu[n];return i||(i=new Intl.ListFormat(t,e),nu[n]=i),i}let vr={};function pr(t,e={}){const n=JSON.stringify([t,e]);let i=vr[n];return i||(i=new Intl.DateTimeFormat(t,e),vr[n]=i),i}let br={};function H0(t,e={}){const n=JSON.stringify([t,e]);let i=br[n];return i||(i=new Intl.NumberFormat(t,e),br[n]=i),i}let yr={};function j0(t,e={}){const{base:n,...i}=e,o=JSON.stringify([t,i]);let s=yr[o];return s||(s=new Intl.RelativeTimeFormat(t,e),yr[o]=s),s}let po=null;function $0(){return po||(po=new Intl.DateTimeFormat().resolvedOptions().locale,po)}let iu={};function U0(t){let e=iu[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,iu[t]=e}return e}function Y0(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let i,o;try{i=pr(t).resolvedOptions(),o=t}catch{const l=t.substring(0,n);i=pr(l).resolvedOptions(),o=l}const{numberingSystem:s,calendar:a}=i;return[o,s,a]}}function Z0(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function X0(t){const e=[];for(let n=1;n<=12;n++){const i=he.utc(2009,n,1);e.push(t(i))}return e}function K0(t){const e=[];for(let n=1;n<=7;n++){const i=he.utc(2016,11,13+n);e.push(t(i))}return e}function vs(t,e,n,i){const o=t.listingMode();return o==="error"?null:o==="en"?n(e):i(e)}function Q0(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class G0{constructor(e,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:o,floor:s,...a}=i;if(!n||Object.keys(a).length>0){const r={useGrouping:!1,...i};i.padTo>0&&(r.minimumIntegerDigits=i.padTo),this.inf=H0(e,r)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):sl(e,3);return gt(n,this.padTo)}}}class J0{constructor(e,n,i){this.opts=i,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),r=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&Pn.create(r).valid?(o=r,this.dt=e):(o="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,o=e.zone.name):(o="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||o,this.dtf=pr(n,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class e_{constructor(e,n,i){this.opts={style:"long",...i},!n&&lf()&&(this.rtf=j0(e,i))}format(e,n){return this.rtf?this.rtf.format(e,n):w_(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const t_={firstDay:1,minimalDays:4,weekend:[6,7]};class Fe{static fromOpts(e){return Fe.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,i,o,s=!1){const a=e||at.defaultLocale,r=a||(s?"en-US":$0()),l=n||at.defaultNumberingSystem,c=i||at.defaultOutputCalendar,u=_r(o)||at.defaultWeekSettings;return new Fe(r,l,c,u,a)}static resetCache(){po=null,vr={},br={},yr={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:i,weekSettings:o}={}){return Fe.create(e,n,i,o)}constructor(e,n,i,o,s){const[a,r,l]=Y0(e);this.locale=a,this.numberingSystem=n||r||null,this.outputCalendar=i||l||null,this.weekSettings=o,this.intl=Z0(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Q0(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Fe.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,_r(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return vs(this,e,ff,()=>{const i=n?{month:e,day:"numeric"}:{month:e},o=n?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=X0(s=>this.extract(s,i,"month"))),this.monthsCache[o][e]})}weekdays(e,n=!1){return vs(this,e,vf,()=>{const i=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=n?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=K0(s=>this.extract(s,i,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return vs(this,void 0,()=>pf,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[he.utc(2016,11,13,9),he.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return vs(this,e,bf,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[he.utc(-40,1,1),he.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[e]})}extract(e,n,i){const o=this.dtFormatter(e,n),s=o.formatToParts(),a=s.find(r=>r.type.toLowerCase()===i);return a?a.value:null}numberFormatter(e={}){return new G0(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new J0(e,this.intl,n)}relFormatter(e={}){return new e_(this.intl,this.isEnglish(),e)}listFormatter(e={}){return W0(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:cf()?U0(this.locale):t_}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Ua=null;class Rt extends $o{static get utcInstance(){return Ua===null&&(Ua=new Rt(0)),Ua}static instance(e){return e===0?Rt.utcInstance:new Rt(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Rt(ha(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Po(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Po(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Po(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class n_ extends $o{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ln(t,e){if(be(t)||t===null)return e;if(t instanceof $o)return t;if(l_(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?ca.instance:n==="utc"||n==="gmt"?Rt.utcInstance:Rt.parseSpecifier(n)||Pn.create(t)}else return Wn(t)?Rt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new n_(t)}const tl={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ou={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},i_=tl.hanidec.replace(/[\[|\]]/g,"").split("");function o_(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n=s&&i<=a&&(e+=i-s)}}return parseInt(e,10)}else return e}let Pi={};function s_(){Pi={}}function en({numberingSystem:t},e=""){const n=t||"latn";return Pi[n]||(Pi[n]={}),Pi[n][e]||(Pi[n][e]=new RegExp(`${tl[n]}${e}`)),Pi[n][e]}let su=()=>Date.now(),au="system",ru=null,lu=null,cu=null,uu=60,du,hu=null;class at{static get now(){return su}static set now(e){su=e}static set defaultZone(e){au=e}static get defaultZone(){return Ln(au,ca.instance)}static get defaultLocale(){return ru}static set defaultLocale(e){ru=e}static get defaultNumberingSystem(){return lu}static set defaultNumberingSystem(e){lu=e}static get defaultOutputCalendar(){return cu}static set defaultOutputCalendar(e){cu=e}static get defaultWeekSettings(){return hu}static set defaultWeekSettings(e){hu=_r(e)}static get twoDigitCutoffYear(){return uu}static set twoDigitCutoffYear(e){uu=e%100}static get throwOnInvalid(){return du}static set throwOnInvalid(e){du=e}static resetCaches(){Fe.resetCache(),Pn.resetCache(),he.resetCache(),s_()}}class an{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const tf=[0,31,59,90,120,151,181,212,243,273,304,334],nf=[0,31,60,91,121,152,182,213,244,274,305,335];function Kt(t,e){return new an("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function nl(t,e,n){const i=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const o=i.getUTCDay();return o===0?7:o}function of(t,e,n){return n+(Uo(t)?nf:tf)[e-1]}function sf(t,e){const n=Uo(t)?nf:tf,i=n.findIndex(s=>sFo(i,e,n)?(c=i+1,l=1):c=i,{weekYear:c,weekNumber:l,weekday:r,...fa(t)}}function fu(t,e=4,n=1){const{weekYear:i,weekNumber:o,weekday:s}=t,a=il(nl(i,1,e),n),r=Ri(i);let l=o*7+s-a-7+e,c;l<1?(c=i-1,l+=Ri(c)):l>r?(c=i+1,l-=Ri(i)):c=i;const{month:u,day:d}=sf(c,l);return{year:c,month:u,day:d,...fa(t)}}function Ya(t){const{year:e,month:n,day:i}=t,o=of(e,n,i);return{year:e,ordinal:o,...fa(t)}}function gu(t){const{year:e,ordinal:n}=t,{month:i,day:o}=sf(e,n);return{year:e,month:i,day:o,...fa(t)}}function mu(t,e){if(!be(t.localWeekday)||!be(t.localWeekNumber)||!be(t.localWeekYear)){if(!be(t.weekday)||!be(t.weekNumber)||!be(t.weekYear))throw new Oi("Cannot mix locale-based week fields with ISO-based week fields");return be(t.localWeekday)||(t.weekday=t.localWeekday),be(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),be(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function a_(t,e=4,n=1){const i=ua(t.weekYear),o=Qt(t.weekNumber,1,Fo(t.weekYear,e,n)),s=Qt(t.weekday,1,7);return i?o?s?!1:Kt("weekday",t.weekday):Kt("week",t.weekNumber):Kt("weekYear",t.weekYear)}function r_(t){const e=ua(t.year),n=Qt(t.ordinal,1,Ri(t.year));return e?n?!1:Kt("ordinal",t.ordinal):Kt("year",t.year)}function af(t){const e=ua(t.year),n=Qt(t.month,1,12),i=Qt(t.day,1,Us(t.year,t.month));return e?n?i?!1:Kt("day",t.day):Kt("month",t.month):Kt("year",t.year)}function rf(t){const{hour:e,minute:n,second:i,millisecond:o}=t,s=Qt(e,0,23)||e===24&&n===0&&i===0&&o===0,a=Qt(n,0,59),r=Qt(i,0,59),l=Qt(o,0,999);return s?a?r?l?!1:Kt("millisecond",o):Kt("second",i):Kt("minute",n):Kt("hour",e)}function be(t){return typeof t>"u"}function Wn(t){return typeof t=="number"}function ua(t){return typeof t=="number"&&t%1===0}function l_(t){return typeof t=="string"}function c_(t){return Object.prototype.toString.call(t)==="[object Date]"}function lf(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function cf(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function u_(t){return Array.isArray(t)?t:[t]}function vu(t,e,n){if(t.length!==0)return t.reduce((i,o)=>{const s=[e(o),o];return i&&n(i[0],s[0])===i[0]?i:s},null)[1]}function d_(t,e){return e.reduce((n,i)=>(n[i]=t[i],n),{})}function Hi(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function _r(t){if(t==null)return null;if(typeof t!="object")throw new Mt("Week settings must be an object");if(!Qt(t.firstDay,1,7)||!Qt(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Qt(e,1,7)))throw new Mt("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Qt(t,e,n){return ua(t)&&t>=e&&t<=n}function h_(t,e){return t-e*Math.floor(t/e)}function gt(t,e=2){const n=t<0;let i;return n?i="-"+(""+-t).padStart(e,"0"):i=(""+t).padStart(e,"0"),i}function Rn(t){if(!(be(t)||t===null||t===""))return parseInt(t,10)}function Xn(t){if(!(be(t)||t===null||t===""))return parseFloat(t)}function ol(t){if(!(be(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function sl(t,e,n=!1){const i=10**e;return(n?Math.trunc:Math.round)(t*i)/i}function Uo(t){return t%4===0&&(t%100!==0||t%400===0)}function Ri(t){return Uo(t)?366:365}function Us(t,e){const n=h_(e-1,12)+1,i=t+(e-n)/12;return n===2?Uo(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function da(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function pu(t,e,n){return-il(nl(t,1,e),n)+e-1}function Fo(t,e=4,n=1){const i=pu(t,e,n),o=pu(t+1,e,n);return(Ri(t)-i+o)/7}function xr(t){return t>99?t:t>at.twoDigitCutoffYear?1900+t:2e3+t}function uf(t,e,n,i=null){const o=new Date(t),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(s.timeZone=i);const a={timeZoneName:e,...s},r=new Intl.DateTimeFormat(n,a).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return r?r.value:null}function ha(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const i=parseInt(e,10)||0,o=n<0||Object.is(n,-0)?-i:i;return n*60+o}function df(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Mt(`Invalid unit value ${t}`);return e}function Ys(t,e){const n={};for(const i in t)if(Hi(t,i)){const o=t[i];if(o==null)continue;n[e(i)]=df(o)}return n}function Po(t,e){const n=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${gt(n,2)}:${gt(i,2)}`;case"narrow":return`${o}${n}${i>0?`:${i}`:""}`;case"techie":return`${o}${gt(n,2)}${gt(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function fa(t){return d_(t,["hour","minute","second","millisecond"])}const f_=["January","February","March","April","May","June","July","August","September","October","November","December"],hf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g_=["J","F","M","A","M","J","J","A","S","O","N","D"];function ff(t){switch(t){case"narrow":return[...g_];case"short":return[...hf];case"long":return[...f_];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const gf=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],mf=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],m_=["M","T","W","T","F","S","S"];function vf(t){switch(t){case"narrow":return[...m_];case"short":return[...mf];case"long":return[...gf];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const pf=["AM","PM"],v_=["Before Christ","Anno Domini"],p_=["BC","AD"],b_=["B","A"];function bf(t){switch(t){case"narrow":return[...b_];case"short":return[...p_];case"long":return[...v_];default:return null}}function y_(t){return pf[t.hour<12?0:1]}function __(t,e){return vf(e)[t.weekday-1]}function x_(t,e){return ff(e)[t.month-1]}function S_(t,e){return bf(e)[t.year<0?0:1]}function w_(t,e,n="always",i=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&s){const d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${o[t][0]}`;case-1:return d?"yesterday":`last ${o[t][0]}`;case 0:return d?"today":`this ${o[t][0]}`}}const a=Object.is(e,-0)||e<0,r=Math.abs(e),l=r===1,c=o[t],u=i?l?c[1]:c[2]||c[1]:l?o[t][0]:t;return a?`${r} ${u} ago`:`in ${r} ${u}`}function bu(t,e){let n="";for(const i of t)i.literal?n+=i.val:n+=e(i.val);return n}const k_={D:js,DD:qh,DDD:Lh,DDDD:Fh,t:zh,tt:Bh,ttt:Nh,tttt:Wh,T:Hh,TT:jh,TTT:$h,TTTT:Uh,f:Yh,ff:Xh,fff:Qh,ffff:Jh,F:Zh,FF:Kh,FFF:Gh,FFFF:ef};class It{static create(e,n={}){return new It(e,n)}static parseFormat(e){let n=null,i="",o=!1;const s=[];for(let a=0;a0&&s.push({literal:o||/^\s+$/.test(i),val:i}),n=null,i="",o=!o):o||r===n?i+=r:(i.length>0&&s.push({literal:/^\s+$/.test(i),val:i}),i=r,n=r)}return i.length>0&&s.push({literal:o||/^\s+$/.test(i),val:i}),s}static macroTokenToFormatOpts(e){return k_[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return gt(e,n);const i={...this.opts};return n>0&&(i.padTo=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,n){const i=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(f,m)=>this.loc.extract(e,f,m),a=f=>e.isOffsetFixed&&e.offset===0&&f.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,f.format):"",r=()=>i?y_(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(f,m)=>i?x_(e,f):s(m?{month:f}:{month:f,day:"numeric"},"month"),c=(f,m)=>i?__(e,f):s(m?{weekday:f}:{weekday:f,month:"long",day:"numeric"},"weekday"),u=f=>{const m=It.macroTokenToFormatOpts(f);return m?this.formatWithSystemDefault(e,m):f},d=f=>i?S_(e,f):s({era:f},"era"),h=f=>{switch(f){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return r();case"d":return o?s({day:"numeric"},"day"):this.num(e.day);case"dd":return o?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return o?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?s({month:"numeric"},"month"):this.num(e.month);case"MM":return o?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?s({year:"numeric"},"year"):this.num(e.year);case"yy":return o?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return o?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return o?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(f)}};return bu(It.parseFormat(n),h)}formatDurationFromString(e,n){const i=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=l=>c=>{const u=i(c);return u?this.num(l.get(u),c.length):c},s=It.parseFormat(n),a=s.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),r=e.shiftTo(...a.map(i).filter(l=>l));return bu(s,o(r))}}const yf=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ui(...t){const e=t.reduce((n,i)=>n+i.source,"");return RegExp(`^${e}$`)}function Yi(...t){return e=>t.reduce(([n,i,o],s)=>{const[a,r,l]=s(e,o);return[{...n,...a},r||i,l]},[{},null,1]).slice(0,2)}function Zi(t,...e){if(t==null)return[null,null];for(const[n,i]of e){const o=n.exec(t);if(o)return i(o)}return[null,null]}function _f(...t){return(e,n)=>{const i={};let o;for(o=0;of!==void 0&&(m||f&&u)?-f:f;return[{years:h(Xn(n)),months:h(Xn(i)),weeks:h(Xn(o)),days:h(Xn(s)),hours:h(Xn(a)),minutes:h(Xn(r)),seconds:h(Xn(l),l==="-0"),milliseconds:h(ol(c),d)}]}const L_={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ll(t,e,n,i,o,s,a){const r={year:e.length===2?xr(Rn(e)):Rn(e),month:hf.indexOf(n)+1,day:Rn(i),hour:Rn(o),minute:Rn(s)};return a&&(r.second=Rn(a)),t&&(r.weekday=t.length>3?gf.indexOf(t)+1:mf.indexOf(t)+1),r}const F_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function z_(t){const[,e,n,i,o,s,a,r,l,c,u,d]=t,h=ll(e,o,i,n,s,a,r);let f;return l?f=L_[l]:c?f=0:f=ha(u,d),[h,new Rt(f)]}function B_(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const N_=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,W_=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,H_=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function yu(t){const[,e,n,i,o,s,a,r]=t;return[ll(e,o,i,n,s,a,r),Rt.utcInstance]}function j_(t){const[,e,n,i,o,s,a,r]=t;return[ll(e,r,n,i,o,s,a),Rt.utcInstance]}const $_=Ui(M_,rl),U_=Ui(P_,rl),Y_=Ui(T_,rl),Z_=Ui(Sf),kf=Yi(E_,Xi,Yo,Zo),X_=Yi(I_,Xi,Yo,Zo),K_=Yi(O_,Xi,Yo,Zo),Q_=Yi(Xi,Yo,Zo);function G_(t){return Zi(t,[$_,kf],[U_,X_],[Y_,K_],[Z_,Q_])}function J_(t){return Zi(B_(t),[F_,z_])}function ex(t){return Zi(t,[N_,yu],[W_,yu],[H_,j_])}function tx(t){return Zi(t,[R_,q_])}const nx=Yi(Xi);function ix(t){return Zi(t,[A_,nx])}const ox=Ui(D_,V_),sx=Ui(wf),ax=Yi(Xi,Yo,Zo);function rx(t){return Zi(t,[ox,kf],[sx,ax])}const _u="Invalid Duration",Cf={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},lx={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Cf},Zt=146097/400,ki=146097/4800,cx={years:{quarters:4,months:12,weeks:Zt/7,days:Zt,hours:Zt*24,minutes:Zt*24*60,seconds:Zt*24*60*60,milliseconds:Zt*24*60*60*1e3},quarters:{months:3,weeks:Zt/28,days:Zt/4,hours:Zt*24/4,minutes:Zt*24*60/4,seconds:Zt*24*60*60/4,milliseconds:Zt*24*60*60*1e3/4},months:{weeks:ki/7,days:ki,hours:ki*24,minutes:ki*24*60,seconds:ki*24*60*60,milliseconds:ki*24*60*60*1e3},...Cf},ni=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ux=ni.slice(0).reverse();function Vn(t,e,n=!1){const i={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Re(i)}function Mf(t,e){let n=e.milliseconds??0;for(const i of ux.slice(1))e[i]&&(n+=e[i]*t[i].milliseconds);return n}function xu(t,e){const n=Mf(t,e)<0?-1:1;ni.reduceRight((i,o)=>{if(be(e[o]))return i;if(i){const s=e[i]*n,a=t[o][i],r=Math.floor(s/a);e[o]+=r*n,e[i]-=r*a*n}return o},null),ni.reduce((i,o)=>{if(be(e[o]))return i;if(i){const s=e[i]%1;e[i]-=s,e[o]+=s*t[i][o]}return o},null)}function dx(t){const e={};for(const[n,i]of Object.entries(t))i!==0&&(e[n]=i);return e}class Re{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let i=n?cx:lx;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||Fe.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,n){return Re.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Mt(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Re({values:Ys(e,Re.normalizeUnit),loc:Fe.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(Wn(e))return Re.fromMillis(e);if(Re.isDuration(e))return e;if(typeof e=="object")return Re.fromObject(e);throw new Mt(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[i]=tx(e);return i?Re.fromObject(i,n):Re.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[i]=ix(e);return i?Re.fromObject(i,n):Re.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Mt("need to specify a reason the Duration is invalid");const i=e instanceof an?e:new an(e,n);if(at.throwOnInvalid)throw new R0(i);return new Re({invalid:i})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Rh(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?It.create(this.loc,i).formatDurationFromString(this,e):_u}toHuman(e={}){if(!this.isValid)return _u;const n=ni.map(i=>{const o=this.values[i];return be(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(o)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=sl(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},he.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Mf(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=Re.fromDurationLike(e),i={};for(const o of ni)(Hi(n.values,o)||Hi(this.values,o))&&(i[o]=n.get(o)+this.get(o));return Vn(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const n=Re.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=df(e(this.values[i],i));return Vn(this,{values:n},!0)}get(e){return this[Re.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Ys(e,Re.normalizeUnit)};return Vn(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:i,matrix:o}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:o,conversionAccuracy:i};return Vn(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return xu(this.matrix,e),Vn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=dx(this.normalize().shiftToAll().toObject());return Vn(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>Re.normalizeUnit(a));const n={},i={},o=this.toObject();let s;for(const a of ni)if(e.indexOf(a)>=0){s=a;let r=0;for(const c in i)r+=this.matrix[c][a]*i[c],i[c]=0;Wn(o[a])&&(r+=o[a]);const l=Math.trunc(r);n[a]=l,i[a]=(r*1e3-l*1e3)/1e3}else Wn(o[a])&&(i[a]=o[a]);for(const a in i)i[a]!==0&&(n[s]+=a===s?i[a]:i[a]/this.matrix[s][a]);return xu(this.matrix,n),Vn(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Vn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(i,o){return i===void 0||i===0?o===void 0||o===0:i===o}for(const i of ni)if(!n(this.values[i],e.values[i]))return!1;return!0}}const Ci="Invalid Interval";function hx(t,e){return!t||!t.isValid?st.invalid("missing or invalid start"):!e||!e.isValid?st.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?st.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(lo).filter(a=>this.contains(a)).sort((a,r)=>a.toMillis()-r.toMillis()),i=[];let{s:o}=this,s=0;for(;o+this.e?this.e:a;i.push(st.fromDateTimes(o,r)),o=r,s+=1}return i}splitBy(e){const n=Re.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,o=1,s;const a=[];for(;il*o));s=+r>+this.e?this.e:r,a.push(st.fromDateTimes(i,s)),i=s,o+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,i=this.e=i?null:st.fromDateTimes(n,i)}union(e){if(!this.isValid)return this;const n=this.se.e?this.e:e.e;return st.fromDateTimes(n,i)}static merge(e){const[n,i]=e.sort((o,s)=>o.s-s.s).reduce(([o,s],a)=>s?s.overlaps(a)||s.abutsStart(a)?[o,s.union(a)]:[o.concat([s]),a]:[o,a],[[],null]);return i&&n.push(i),n}static xor(e){let n=null,i=0;const o=[],s=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...s),r=a.sort((l,c)=>l.time-c.time);for(const l of r)i+=l.type==="s"?1:-1,i===1?n=l.time:(n&&+n!=+l.time&&o.push(st.fromDateTimes(n,l.time)),n=null);return st.merge(o)}difference(...e){return st.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Ci}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=js,n={}){return this.isValid?It.create(this.s.loc.clone(n),e).formatInterval(this):Ci}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ci}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ci}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ci}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Ci}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):Re.invalid(this.invalidReason)}mapEndpoints(e){return st.fromDateTimes(e(this.s),e(this.e))}}class ps{static hasDST(e=at.defaultZone){const n=he.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Pn.isValidZone(e)}static normalizeZone(e){return Ln(e,at.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||Fe.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||Fe.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||Fe.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:i=null,locObj:o=null,outputCalendar:s="gregory"}={}){return(o||Fe.create(n,i,s)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:o=null,outputCalendar:s="gregory"}={}){return(o||Fe.create(n,i,s)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:i=null,locObj:o=null}={}){return(o||Fe.create(n,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:o=null}={}){return(o||Fe.create(n,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Fe.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return Fe.create(n,null,"gregory").eras(e)}static features(){return{relative:lf(),localeWeek:cf()}}}function Su(t,e){const n=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(e)-n(t);return Math.floor(Re.fromMillis(i).as("days"))}function fx(t,e,n){const i=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=Su(l,c);return(u-u%7)/7}],["days",Su]],o={},s=t;let a,r;for(const[l,c]of i)n.indexOf(l)>=0&&(a=l,o[l]=c(t,e),r=s.plus(o),r>e?(o[l]--,t=s.plus(o),t>e&&(r=t,o[l]--,t=s.plus(o))):t=r);return[t,o,r,a]}function gx(t,e,n,i){let[o,s,a,r]=fx(t,e,n);const l=e-o,c=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(a0?Re.fromMillis(l,i).shiftTo(...c).plus(u):u}const mx="missing Intl.DateTimeFormat.formatToParts support";function Le(t,e=n=>n){return{regex:t,deser:([n])=>e(o_(n))}}const vx=" ",Pf=`[ ${vx}]`,Tf=new RegExp(Pf,"g");function px(t){return t.replace(/\./g,"\\.?").replace(Tf,Pf)}function wu(t){return t.replace(/\./g,"").replace(Tf," ").toLowerCase()}function tn(t,e){return t===null?null:{regex:RegExp(t.map(px).join("|")),deser:([n])=>t.findIndex(i=>wu(n)===wu(i))+e}}function ku(t,e){return{regex:t,deser:([,n,i])=>ha(n,i),groups:e}}function bs(t){return{regex:t,deser:([e])=>e}}function bx(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function yx(t,e){const n=en(e),i=en(e,"{2}"),o=en(e,"{3}"),s=en(e,"{4}"),a=en(e,"{6}"),r=en(e,"{1,2}"),l=en(e,"{1,3}"),c=en(e,"{1,6}"),u=en(e,"{1,9}"),d=en(e,"{2,4}"),h=en(e,"{4,6}"),f=v=>({regex:RegExp(bx(v.val)),deser:([b])=>b,literal:!0}),p=(v=>{if(t.literal)return f(v);switch(v.val){case"G":return tn(e.eras("short"),0);case"GG":return tn(e.eras("long"),0);case"y":return Le(c);case"yy":return Le(d,xr);case"yyyy":return Le(s);case"yyyyy":return Le(h);case"yyyyyy":return Le(a);case"M":return Le(r);case"MM":return Le(i);case"MMM":return tn(e.months("short",!0),1);case"MMMM":return tn(e.months("long",!0),1);case"L":return Le(r);case"LL":return Le(i);case"LLL":return tn(e.months("short",!1),1);case"LLLL":return tn(e.months("long",!1),1);case"d":return Le(r);case"dd":return Le(i);case"o":return Le(l);case"ooo":return Le(o);case"HH":return Le(i);case"H":return Le(r);case"hh":return Le(i);case"h":return Le(r);case"mm":return Le(i);case"m":return Le(r);case"q":return Le(r);case"qq":return Le(i);case"s":return Le(r);case"ss":return Le(i);case"S":return Le(l);case"SSS":return Le(o);case"u":return bs(u);case"uu":return bs(r);case"uuu":return Le(n);case"a":return tn(e.meridiems(),0);case"kkkk":return Le(s);case"kk":return Le(d,xr);case"W":return Le(r);case"WW":return Le(i);case"E":case"c":return Le(n);case"EEE":return tn(e.weekdays("short",!1),1);case"EEEE":return tn(e.weekdays("long",!1),1);case"ccc":return tn(e.weekdays("short",!0),1);case"cccc":return tn(e.weekdays("long",!0),1);case"Z":case"ZZ":return ku(new RegExp(`([+-]${r.source})(?::(${i.source}))?`),2);case"ZZZ":return ku(new RegExp(`([+-]${r.source})(${i.source})?`),2);case"z":return bs(/[a-z_+-/]{1,256}?/i);case" ":return bs(/[^\S\n\r]/);default:return f(v)}})(t)||{invalidReason:mx};return p.token=t,p}const _x={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function xx(t,e,n){const{type:i,value:o}=t;if(i==="literal"){const l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}const s=e[i];let a=i;i==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let r=_x[a];if(typeof r=="object"&&(r=r[s]),r)return{literal:!1,val:r}}function Sx(t){return[`^${t.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,t]}function wx(t,e,n){const i=t.match(e);if(i){const o={};let s=1;for(const a in n)if(Hi(n,a)){const r=n[a],l=r.groups?r.groups+1:1;!r.literal&&r.token&&(o[r.token.val[0]]=r.deser(i.slice(s,s+l))),s+=l}return[i,o]}else return[i,{}]}function kx(t){const e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return be(t.z)||(n=Pn.create(t.z)),be(t.Z)||(n||(n=new Rt(t.Z)),i=t.Z),be(t.q)||(t.M=(t.q-1)*3+1),be(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),be(t.u)||(t.S=ol(t.u)),[Object.keys(t).reduce((s,a)=>{const r=e(a);return r&&(s[r]=t[a]),s},{}),n,i]}let Za=null;function Cx(){return Za||(Za=he.fromMillis(1555555555555)),Za}function Mx(t,e){if(t.literal)return t;const n=It.macroTokenToFormatOpts(t.val),i=Vf(n,e);return i==null||i.includes(void 0)?t:i}function If(t,e){return Array.prototype.concat(...t.map(n=>Mx(n,e)))}class Of{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=If(It.parseFormat(n),e),this.units=this.tokens.map(i=>yx(i,e)),this.disqualifyingUnit=this.units.find(i=>i.invalidReason),!this.disqualifyingUnit){const[i,o]=Sx(this.units);this.regex=RegExp(i,"i"),this.handlers=o}}explainFromTokens(e){if(this.isValid){const[n,i]=wx(e,this.regex,this.handlers),[o,s,a]=i?kx(i):[null,null,void 0];if(Hi(i,"a")&&Hi(i,"H"))throw new Oi("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:i,result:o,zone:s,specificOffset:a}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Df(t,e,n){return new Of(t,n).explainFromTokens(e)}function Px(t,e,n){const{result:i,zone:o,specificOffset:s,invalidReason:a}=Df(t,e,n);return[i,o,s,a]}function Vf(t,e){if(!t)return null;const i=It.create(e,t).dtFormatter(Cx()),o=i.formatToParts(),s=i.resolvedOptions();return o.map(a=>xx(a,t,s))}const Xa="Invalid DateTime",Cu=864e13;function bo(t){return new an("unsupported zone",`the zone "${t.name}" is not supported`)}function Ka(t){return t.weekData===null&&(t.weekData=$s(t.c)),t.weekData}function Qa(t){return t.localWeekData===null&&(t.localWeekData=$s(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Kn(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new he({...n,...e,old:n})}function Ef(t,e,n){let i=t-e*60*1e3;const o=n.offset(i);if(e===o)return[i,e];i-=(o-e)*60*1e3;const s=n.offset(i);return o===s?[i,o]:[t-Math.min(o,s)*60*1e3,Math.max(o,s)]}function ys(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Is(t,e,n){return Ef(da(t),e,n)}function Mu(t,e){const n=t.o,i=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,s={...t.c,year:i,month:o,day:Math.min(t.c.day,Us(i,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=Re.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),r=da(s);let[l,c]=Ef(r,n,t.zone);return a!==0&&(l+=a,c=t.zone.offset(l)),{ts:l,o:c}}function Mi(t,e,n,i,o,s){const{setZone:a,zone:r}=n;if(t&&Object.keys(t).length!==0||e){const l=e||r,c=he.fromObject(t,{...n,zone:l,specificOffset:s});return a?c:c.setZone(r)}else return he.invalid(new an("unparsable",`the input "${o}" can't be parsed as ${i}`))}function _s(t,e,n=!0){return t.isValid?It.create(Fe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Ga(t,e){const n=t.c.year>9999||t.c.year<0;let i="";return n&&t.c.year>=0&&(i+="+"),i+=gt(t.c.year,n?6:4),e?(i+="-",i+=gt(t.c.month),i+="-",i+=gt(t.c.day)):(i+=gt(t.c.month),i+=gt(t.c.day)),i}function Pu(t,e,n,i,o,s){let a=gt(t.c.hour);return e?(a+=":",a+=gt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(a+=":")):a+=gt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(a+=gt(t.c.second),(t.c.millisecond!==0||!i)&&(a+=".",a+=gt(t.c.millisecond,3))),o&&(t.isOffsetFixed&&t.offset===0&&!s?a+="Z":t.o<0?(a+="-",a+=gt(Math.trunc(-t.o/60)),a+=":",a+=gt(Math.trunc(-t.o%60))):(a+="+",a+=gt(Math.trunc(t.o/60)),a+=":",a+=gt(Math.trunc(t.o%60)))),s&&(a+="["+t.zone.ianaName+"]"),a}const Af={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Tx={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ix={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Rf=["year","month","day","hour","minute","second","millisecond"],Ox=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Dx=["year","ordinal","hour","minute","second","millisecond"];function Vx(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Rh(t);return e}function Tu(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Vx(t)}}function Ex(t){return Ds[t]||(Os===void 0&&(Os=at.now()),Ds[t]=t.offset(Os)),Ds[t]}function Iu(t,e){const n=Ln(e.zone,at.defaultZone);if(!n.isValid)return he.invalid(bo(n));const i=Fe.fromObject(e);let o,s;if(be(t.year))o=at.now();else{for(const l of Rf)be(t[l])&&(t[l]=Af[l]);const a=af(t)||rf(t);if(a)return he.invalid(a);const r=Ex(n);[o,s]=Is(t,r,n)}return new he({ts:o,zone:n,loc:i,o:s})}function Ou(t,e,n){const i=be(n.round)?!0:n.round,o=(a,r)=>(a=sl(a,i||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(a,r)),s=a=>n.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(n.unit)return o(s(n.unit),n.unit);for(const a of n.units){const r=s(a);if(Math.abs(r)>=1)return o(r,a)}return o(t>e?-0:0,n.units[n.units.length-1])}function Du(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let Os,Ds={};class he{constructor(e){const n=e.zone||at.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new an("invalid input"):null)||(n.isValid?null:bo(n));this.ts=be(e.ts)?at.now():e.ts;let o=null,s=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[o,s]=[e.old.c,e.old.o];else{const r=Wn(e.o)&&!e.old?e.o:n.offset(this.ts);o=ys(this.ts,r),i=Number.isNaN(o.year)?new an("invalid input"):null,o=i?null:o,s=i?null:r}this._zone=n,this.loc=e.loc||Fe.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=o,this.o=s,this.isLuxonDateTime=!0}static now(){return new he({})}static local(){const[e,n]=Du(arguments),[i,o,s,a,r,l,c]=n;return Iu({year:i,month:o,day:s,hour:a,minute:r,second:l,millisecond:c},e)}static utc(){const[e,n]=Du(arguments),[i,o,s,a,r,l,c]=n;return e.zone=Rt.utcInstance,Iu({year:i,month:o,day:s,hour:a,minute:r,second:l,millisecond:c},e)}static fromJSDate(e,n={}){const i=c_(e)?e.valueOf():NaN;if(Number.isNaN(i))return he.invalid("invalid input");const o=Ln(n.zone,at.defaultZone);return o.isValid?new he({ts:i,zone:o,loc:Fe.fromObject(n)}):he.invalid(bo(o))}static fromMillis(e,n={}){if(Wn(e))return e<-Cu||e>Cu?he.invalid("Timestamp out of range"):new he({ts:e,zone:Ln(n.zone,at.defaultZone),loc:Fe.fromObject(n)});throw new Mt(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(Wn(e))return new he({ts:e*1e3,zone:Ln(n.zone,at.defaultZone),loc:Fe.fromObject(n)});throw new Mt("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const i=Ln(n.zone,at.defaultZone);if(!i.isValid)return he.invalid(bo(i));const o=Fe.fromObject(n),s=Ys(e,Tu),{minDaysInFirstWeek:a,startOfWeek:r}=mu(s,o),l=at.now(),c=be(n.specificOffset)?i.offset(l):n.specificOffset,u=!be(s.ordinal),d=!be(s.year),h=!be(s.month)||!be(s.day),f=d||h,m=s.weekYear||s.weekNumber;if((f||u)&&m)throw new Oi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&u)throw new Oi("Can't mix ordinal dates with month/day");const p=m||s.weekday&&!f;let v,b,y=ys(l,c);p?(v=Ox,b=Tx,y=$s(y,a,r)):u?(v=Dx,b=Ix,y=Ya(y)):(v=Rf,b=Af);let _=!1;for(const M of v){const R=s[M];be(R)?_?s[M]=b[M]:s[M]=y[M]:_=!0}const x=p?a_(s,a,r):u?r_(s):af(s),C=x||rf(s);if(C)return he.invalid(C);const S=p?fu(s,a,r):u?gu(s):s,[E,A]=Is(S,c,i),D=new he({ts:E,zone:i,o:A,loc:o});return s.weekday&&f&&e.weekday!==D.weekday?he.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${D.toISO()}`):D.isValid?D:he.invalid(D.invalid)}static fromISO(e,n={}){const[i,o]=G_(e);return Mi(i,o,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[i,o]=J_(e);return Mi(i,o,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[i,o]=ex(e);return Mi(i,o,n,"HTTP",n)}static fromFormat(e,n,i={}){if(be(e)||be(n))throw new Mt("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:s=null}=i,a=Fe.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0}),[r,l,c,u]=Px(a,e,n);return u?he.invalid(u):Mi(r,l,i,`format ${n}`,e,c)}static fromString(e,n,i={}){return he.fromFormat(e,n,i)}static fromSQL(e,n={}){const[i,o]=rx(e);return Mi(i,o,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Mt("need to specify a reason the DateTime is invalid");const i=e instanceof an?e:new an(e,n);if(at.throwOnInvalid)throw new E0(i);return new he({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const i=Vf(e,Fe.fromObject(n));return i?i.map(o=>o?o.val:null).join(""):null}static expandFormat(e,n={}){return If(It.parseFormat(e),Fe.fromObject(n)).map(o=>o.val).join("")}static resetCache(){Os=void 0,Ds={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ka(this).weekYear:NaN}get weekNumber(){return this.isValid?Ka(this).weekNumber:NaN}get weekday(){return this.isValid?Ka(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Qa(this).weekday:NaN}get localWeekNumber(){return this.isValid?Qa(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Qa(this).weekYear:NaN}get ordinal(){return this.isValid?Ya(this.c).ordinal:NaN}get monthShort(){return this.isValid?ps.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ps.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ps.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ps.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,i=da(this.c),o=this.zone.offset(i-e),s=this.zone.offset(i+e),a=this.zone.offset(i-o*n),r=this.zone.offset(i-s*n);if(a===r)return[this];const l=i-a*n,c=i-r*n,u=ys(l,a),d=ys(c,r);return u.hour===d.hour&&u.minute===d.minute&&u.second===d.second&&u.millisecond===d.millisecond?[Kn(this,{ts:l}),Kn(this,{ts:c})]:[this]}get isInLeapYear(){return Uo(this.year)}get daysInMonth(){return Us(this.year,this.month)}get daysInYear(){return this.isValid?Ri(this.year):NaN}get weeksInWeekYear(){return this.isValid?Fo(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Fo(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:i,calendar:o}=It.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:o}}toUTC(e=0,n={}){return this.setZone(Rt.instance(e),n)}toLocal(){return this.setZone(at.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(e=Ln(e,at.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(n||i){const s=e.offset(this.ts),a=this.toObject();[o]=Is(a,s,e)}return Kn(this,{ts:o,zone:e})}else return he.invalid(bo(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:i}={}){const o=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:i});return Kn(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Ys(e,Tu),{minDaysInFirstWeek:i,startOfWeek:o}=mu(n,this.loc),s=!be(n.weekYear)||!be(n.weekNumber)||!be(n.weekday),a=!be(n.ordinal),r=!be(n.year),l=!be(n.month)||!be(n.day),c=r||l,u=n.weekYear||n.weekNumber;if((c||a)&&u)throw new Oi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new Oi("Can't mix ordinal dates with month/day");let d;s?d=fu({...$s(this.c,i,o),...n},i,o):be(n.ordinal)?(d={...this.toObject(),...n},be(n.day)&&(d.day=Math.min(Us(d.year,d.month),d.day))):d=gu({...Ya(this.c),...n});const[h,f]=Is(d,this.o,this.zone);return Kn(this,{ts:h,o:f})}plus(e){if(!this.isValid)return this;const n=Re.fromDurationLike(e);return Kn(this,Mu(this,n))}minus(e){if(!this.isValid)return this;const n=Re.fromDurationLike(e).negate();return Kn(this,Mu(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const i={},o=Re.normalizeUnit(e);switch(o){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(o==="weeks")if(n){const s=this.loc.getStartOfWeek(),{weekday:a}=this;athis.valueOf(),r=a?this:e,l=a?e:this,c=gx(r,l,s,o);return a?c.negate():c}diffNow(e="milliseconds",n={}){return this.diff(he.now(),e,n)}until(e){return this.isValid?st.fromDateTimes(this,e):this}hasSame(e,n,i){if(!this.isValid)return!1;const o=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(n,i)<=o&&o<=s.endOf(n,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||he.fromObject({},{zone:this.zone}),i=e.padding?thisn.valueOf(),Math.min)}static max(...e){if(!e.every(he.isDateTime))throw new Mt("max requires all arguments be DateTimes");return vu(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,i={}){const{locale:o=null,numberingSystem:s=null}=i,a=Fe.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0});return Df(a,e,n)}static fromStringExplain(e,n,i={}){return he.fromFormatExplain(e,n,i)}static buildFormatParser(e,n={}){const{locale:i=null,numberingSystem:o=null}=n,s=Fe.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return new Of(s,e)}static fromFormatParser(e,n,i={}){if(be(e)||be(n))throw new Mt("fromFormatParser requires an input string and a format parser");const{locale:o=null,numberingSystem:s=null}=i,a=Fe.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0});if(!a.equals(n.locale))throw new Mt(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:r,zone:l,specificOffset:c,invalidReason:u}=n.explainFromTokens(e);return u?he.invalid(u):Mi(r,l,i,`format ${n.format}`,e,c)}static get DATE_SHORT(){return js}static get DATE_MED(){return qh}static get DATE_MED_WITH_WEEKDAY(){return q0}static get DATE_FULL(){return Lh}static get DATE_HUGE(){return Fh}static get TIME_SIMPLE(){return zh}static get TIME_WITH_SECONDS(){return Bh}static get TIME_WITH_SHORT_OFFSET(){return Nh}static get TIME_WITH_LONG_OFFSET(){return Wh}static get TIME_24_SIMPLE(){return Hh}static get TIME_24_WITH_SECONDS(){return jh}static get TIME_24_WITH_SHORT_OFFSET(){return $h}static get TIME_24_WITH_LONG_OFFSET(){return Uh}static get DATETIME_SHORT(){return Yh}static get DATETIME_SHORT_WITH_SECONDS(){return Zh}static get DATETIME_MED(){return Xh}static get DATETIME_MED_WITH_SECONDS(){return Kh}static get DATETIME_MED_WITH_WEEKDAY(){return L0}static get DATETIME_FULL(){return Qh}static get DATETIME_FULL_WITH_SECONDS(){return Gh}static get DATETIME_HUGE(){return Jh}static get DATETIME_HUGE_WITH_SECONDS(){return ef}}function lo(t){if(he.isDateTime(t))return t;if(t&&t.valueOf&&Wn(t.valueOf()))return he.fromJSDate(t);if(t&&typeof t=="object")return he.fromObject(t);throw new Mt(`Unknown datetime argument: ${t}, of type ${typeof t}`)}/*! * chartjs-adapter-luxon v1.3.1 * https://www.chartjs.org * (c) 2023 chartjs-adapter-luxon Contributors * Released under the MIT license - */const Ax={datetime:he.DATETIME_MED_WITH_SECONDS,millisecond:"h:mm:ss.SSS a",second:he.TIME_WITH_SECONDS,minute:he.TIME_SIMPLE,hour:{hour:"numeric"},day:{day:"numeric",month:"short"},week:"DD",month:{month:"short",year:"numeric"},quarter:"'Q'q - yyyy",year:{year:"numeric"}};hh._date.override({_id:"luxon",_create:function(t){return he.fromMillis(t,this.options)},init(t){this.options.locale||(this.options.locale=t.locale)},formats:function(){return Ax},parse:function(t,e){const n=this.options,i=typeof t;return t===null||i==="undefined"?null:(i==="number"?t=this._create(t):i==="string"?typeof e=="string"?t=he.fromFormat(t,e,n):t=he.fromISO(t,n):t instanceof Date?t=he.fromJSDate(t,n):i==="object"&&!(t instanceof he)&&(t=he.fromObject(t,n)),t.isValid?t.valueOf():null)},format:function(t,e){const n=this._create(t);return typeof e=="string"?n.toFormat(e):n.toLocaleString(e)},add:function(t,e,n){const i={};return i[n]=e,this._create(t).plus(i).valueOf()},diff:function(t,e,n){return this._create(t).diff(this._create(e)).as(n).valueOf()},startOf:function(t,e,n){if(e==="isoWeek"){n=Math.trunc(Math.min(Math.max(0,n),6));const i=this._create(t);return i.minus({days:(i.weekday-n+7)%7}).startOf("day").valueOf()}return e?this._create(t).startOf(e).valueOf():t},endOf:function(t,e){return this._create(t).endOf(e).valueOf()}});const Rx=Se({__name:"HistoryChart",props:{showLegend:{type:Boolean}},setup(t,{expose:e}){e(),Nn.register(Th,Ei,Cn,Co,Hs,Ni,m0,Mh);const n=g(()=>r.showLegend),i=Be(),o=el(),s=In(),r=t,a=N(null),l=g(()=>y?.value?.datasets.length>15),c=S=>{S.data.datasets.forEach((E,A)=>{typeof E.label=="string"&&o.isDatasetHidden(E.label)&&S.hide(A)}),S.update()};ge(()=>a.value?.chart,S=>{S&&c(S)},{immediate:!0});const u=g(()=>{const S=i.chartData,E=Math.floor(Date.now()/1e3);return S.filter(A=>A.timestamp>E-v.value)}),d=g(()=>i.chargePointIds),h=g(()=>i.chargePointName),f=g(()=>{const S=i.getGridId;return S!==void 0?i.getComponentName(S):"Zähler"}),m=g(()=>f.value),p=g(()=>i.vehicleList),v=g(()=>i.themeConfiguration?.history_chart_range||3600),b=g(()=>d.value.map(S=>({label:`${h.value(S)}`,unit:"kW",borderColor:"#4766b5",backgroundColor:"rgba(71, 102, 181, 0.2)",data:u.value.map(E=>({x:E.timestamp*1e3,y:E[`cp${S}-power`]||0})),borderWidth:2,pointRadius:0,pointHoverRadius:4,pointHitRadius:5,fill:!0,yAxisID:"y"}))),x=g(()=>p.value.map(S=>{const E=`ev${S.id}-soc`;if(u.value.some(A=>E in A))return{label:`${S.name} SoC`,unit:"%",borderColor:"#9F8AFF",borderWidth:2,borderDash:[10,5],pointRadius:0,pointHoverRadius:4,pointHitRadius:5,data:u.value.map(A=>({x:A.timestamp*1e3,y:Number(A[E]??0)})),fill:!1,yAxisID:"y2"}}).filter(S=>S!==void 0)),y=g(()=>({datasets:[{label:f.value,unit:"kW",borderColor:"#a33c42",backgroundColor:"rgba(239,182,188, 0.2)",data:u.value.map(S=>({x:S.timestamp*1e3,y:S.grid})),borderWidth:2,pointRadius:0,pointHoverRadius:4,pointHitRadius:5,fill:!0,yAxisID:"y"},{label:"Hausverbrauch",unit:"kW",borderColor:"#949aa1",backgroundColor:"rgba(148, 154, 161, 0.2)",data:u.value.map(S=>({x:S.timestamp*1e3,y:S["house-power"]})),borderWidth:2,pointRadius:0,pointHoverRadius:4,pointHitRadius:5,fill:!0,yAxisID:"y"},{label:"PV ges.",unit:"kW",borderColor:"green",backgroundColor:"rgba(144, 238, 144, 0.2)",data:u.value.map(S=>({x:S.timestamp*1e3,y:S["pv-all"]})),borderWidth:2,pointRadius:0,pointHoverRadius:4,pointHitRadius:5,fill:!0,yAxisID:"y"},{label:"Speicher ges.",unit:"kW",borderColor:"#b5a647",backgroundColor:"rgba(181, 166, 71, 0.2)",data:u.value.map(S=>({x:S.timestamp*1e3,y:S["bat-all-power"]})),borderWidth:2,pointRadius:0,pointHoverRadius:4,pointHitRadius:5,fill:!0,yAxisID:"y"},{label:"Speicher SoC",unit:"%",borderColor:"#FFB96E",borderWidth:2,borderDash:[10,5],pointRadius:0,pointHoverRadius:4,pointHitRadius:5,data:u.value.map(S=>({x:S.timestamp*1e3,y:S["bat-all-soc"]})),fill:!1,yAxisID:"y2"},...b.value,...x.value]})),_=g(()=>({responsive:!0,maintainAspectRatio:!1,animation:!1,plugins:{legend:{display:!l.value&&n.value,fullSize:!0,align:"center",position:"bottom",labels:{boxWidth:19,boxHeight:.1},onClick:(S,E,A)=>{const D=E.datasetIndex,P=A.chart,R=E.text;o.toggleDataset(R),o.isDatasetHidden(R)?P.hide(D):P.show(D)}},tooltip:{mode:"index",intersect:!1,callbacks:{label:S=>`${S.dataset.label}: ${S.formattedValue} ${S.dataset.unit}`}}},scales:{x:{type:"time",time:{unit:"minute",displayFormats:{minute:"HH:mm"}},ticks:{maxTicksLimit:12,source:"auto"},grid:{tickLength:5,color:s.dark.isActive?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.1)"}},y:{position:"left",type:"linear",display:!0,title:{display:!0,text:"Leistung [kW]"},ticks:{stepSize:.2,maxTicksLimit:11},grid:{color:s.dark.isActive?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.1)"}},y2:{position:"right",type:"linear",display:!0,title:{display:!0,text:"SoC [%]"},min:0,max:100,ticks:{stepSize:10},grid:{display:!1}}}})),C={legendDisplay:n,mqttStore:i,localDataStore:o,$q:s,props:r,chartRef:a,legendLarge:l,applyHiddenDatasetsToChart:c,selectedData:u,chargePointIds:d,chargePointNames:h,gridMeterName:f,chartInstanceKey:m,vehicles:p,chartRange:v,chargePointDatasets:b,vehicleDatasets:x,lineChartData:y,chartOptions:_,get ChartjsLine(){return Eh},HistoryChartLegend:V0};return Object.defineProperty(C,"__isScriptSetup",{enumerable:!1,value:!0}),C}}),qx={class:"chart-container"},Lx={class:"chart-wrapper"};function Fx(t,e,n,i,o,s){return V(),K("div",qx,[q("div",Lx,[(V(),ne(i.ChartjsLine,{key:i.chartInstanceKey,data:i.lineChartData,options:i.chartOptions,ref:"chartRef"},null,8,["data","options"]))]),i.legendDisplay&&i.legendLarge?(V(),ne(i.HistoryChartLegend,{key:0,chart:i.chartRef?.chart||null,class:"legend-wrapper q-mt-sm"},null,8,["chart"])):ue("",!0)])}const zx=Me(Rx,[["render",Fx],["__scopeId","data-v-c3a1aa04"],["__file","HistoryChart.vue"]]),Bx=Se({name:"ChartCarousel",__name:"ChartCarousel",setup(t,{expose:e}){e();const n=In(),i=el(),o=N(0),s=()=>{i.toggleLegendVisibility()},r=g(()=>i.legendVisible),a=N(!1),l=[{name:"EnergyFlowChart",component:mv},{name:"HistoryChart",component:zx}],c=N(l[0].name);ge(()=>a.value,(d,h)=>{!d&&h&&c.value==="HistoryChart"&&o.value++});const u={$q:n,localDataStore:i,renderKey:o,toggleLegend:s,legendVisible:r,fullscreen:a,chartCarouselItems:l,currentSlide:c};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}});function Nx(t,e,n,i,o,s){return V(),ne(Bd,{modelValue:i.currentSlide,"onUpdate:modelValue":e[1]||(e[1]=r=>i.currentSlide=r),fullscreen:i.fullscreen,"onUpdate:fullscreen":e[2]||(e[2]=r=>i.fullscreen=r),swipeable:"","control-color":"primary",padding:"",animated:"",infinite:"",navigation:i.chartCarouselItems.length>1,arrows:i.chartCarouselItems.length>1&&i.$q.screen.gt.xs,class:"full-width full-height bg-transparent carousel-height"},{control:L(()=>[I(Hm,{position:"bottom-right"},{default:L(()=>[i.currentSlide==="HistoryChart"?(V(),ne(Ve,{key:0,size:"sm",class:"q-mr-sm legend-button-text",label:"Legend ein/aus",onClick:i.toggleLegend})):ue("",!0),I(Ve,{push:"",round:"",dense:"","text-color":"primary",icon:i.fullscreen?"fullscreen_exit":"fullscreen",onClick:e[0]||(e[0]=r=>i.fullscreen=!i.fullscreen)},null,8,["icon"])]),_:1})]),default:L(()=>[(V(),K(Oe,null,Je(i.chartCarouselItems,r=>I(qd,{key:`${r.name}-${r.name==="HistoryChart"?i.renderKey:0}`,name:r.name},{default:L(()=>[(V(),ne(Gg(r.component),{"show-legend":i.legendVisible},null,8,["show-legend"]))]),_:2},1032,["name"])),64))]),_:1},8,["modelValue","fullscreen","navigation","arrows"])}const Wx=Me(Bx,[["render",Nx],["__scopeId","data-v-85eaf875"],["__file","ChartCarousel.vue"]]),vn=ze({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(t,{slots:e}){const n=$e(),i=g(()=>"q-td"+(t.autoWidth===!0?" q-table--col-auto-width":"")+(t.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(t.props===void 0)return w("td",{class:i.value},Ge(e.default));const o=n.vnode.key,s=(t.props.colsMap!==void 0?t.props.colsMap[o]:null)||t.props.col;if(s===void 0)return;const{row:r}=t.props;return w("td",{class:i.value+s.__tdClass(r),style:s.__tdStyle(r)},Ge(e.default))}}}),ri=[];let Hi;function Hx(t){Hi=t.keyCode===27}function jx(){Hi===!0&&(Hi=!1)}function $x(t){Hi===!0&&(Hi=!1,Js(t,27)===!0&&ri[ri.length-1](t))}function Rf(t){window[t]("keydown",Hx),window[t]("blur",jx),window[t]("keyup",$x),Hi=!1}function qf(t){Jn.is.desktop===!0&&(ri.push(t),ri.length===1&&Rf("addEventListener"))}function Zs(t){const e=ri.indexOf(t);e!==-1&&(ri.splice(e,1),ri.length===0&&Rf("removeEventListener"))}const ai=[];function Lf(t){ai[ai.length-1](t)}function Ff(t){Jn.is.desktop===!0&&(ai.push(t),ai.length===1&&document.body.addEventListener("focusin",Lf))}function Sa(t){const e=ai.indexOf(t);e!==-1&&(ai.splice(e,1),ai.length===0&&document.body.removeEventListener("focusin",Lf))}let _s=0;const Ux={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},Vu={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Xi=ze({name:"QDialog",inheritAttrs:!1,props:{...Cd,...La,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:t=>["standard","top","bottom","left","right"].includes(t)}},emits:[...Md,"shake","click","escapeKey"],setup(t,{slots:e,emit:n,attrs:i}){const o=$e(),s=N(null),r=N(!1),a=N(!1);let l=null,c=null,u,d;const h=g(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:f}=bm(),{registerTimeout:m}=Io(),{registerTick:p,removeTick:v}=yo(),{transitionProps:b,transitionStyle:x}=Pd(t,()=>Vu[t.position][0],()=>Vu[t.position][1]),y=g(()=>x.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:_,hidePortal:C,portalIsAccessible:S,renderPortal:E}=Td(o,s,fe,"dialog"),{hide:A}=Id({showing:r,hideOnRouteChange:h,handleShow:U,handleHide:j,processOnMount:!0}),{addToHistory:D,removeFromHistory:P}=pm(r,A,h),R=g(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${Ux[t.position]}`+(a.value===!0?" q-dialog__inner--animating":"")+(t.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(t.fullHeight===!0?" q-dialog__inner--fullheight":"")+(t.square===!0?" q-dialog__inner--square":"")),M=g(()=>r.value===!0&&t.seamless!==!0),H=g(()=>t.autoClose===!0?{onClick:T}:{}),z=g(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${M.value===!0?"modal":"seamless"}`,i.class]);ge(()=>t.maximized,B=>{r.value===!0&&O(B)}),ge(M,B=>{f(B),B===!0?(Ff(ae),qf(te)):(Sa(ae),Zs(te))});function U(B){D(),c=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,O(t.maximized),_(),a.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),p(G)):v(),m(()=>{if(o.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:J,bottom:we}=document.activeElement.getBoundingClientRect(),{innerHeight:Z}=window,Ee=window.visualViewport!==void 0?window.visualViewport.height:Z;J>0&&we>Ee/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-Ee,we>=Z?1/0:Math.ceil(document.scrollingElement.scrollTop+we-Ee/2))),document.activeElement.scrollIntoView()}d=!0,s.value.click(),d=!1}_(!0),a.value=!1,n("show",B)},t.transitionDuration)}function j(B){v(),P(),de(!0),a.value=!0,C(),c!==null&&(((B&&B.type.indexOf("key")===0?c.closest('[tabindex]:not([tabindex^="-"])'):void 0)||c).focus(),c=null),m(()=>{C(!0),a.value=!1,n("hide",B)},t.transitionDuration)}function G(B){rr(()=>{let J=s.value;if(J!==null){if(B!==void 0){const we=J.querySelector(B);if(we!==null){we.focus({preventScroll:!0});return}}J.contains(document.activeElement)!==!0&&(J=J.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||J.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||J.querySelector("[autofocus], [data-autofocus]")||J,J.focus({preventScroll:!0}))}})}function Y(B){B&&typeof B.focus=="function"?B.focus({preventScroll:!0}):G(),n("shake");const J=s.value;J!==null&&(J.classList.remove("q-animate--scale"),J.classList.add("q-animate--scale"),l!==null&&clearTimeout(l),l=setTimeout(()=>{l=null,s.value!==null&&(J.classList.remove("q-animate--scale"),G())},170))}function te(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&Y():(n("escapeKey"),A()))}function de(B){l!==null&&(clearTimeout(l),l=null),(B===!0||r.value===!0)&&(O(!1),t.seamless!==!0&&(f(!1),Sa(ae),Zs(te))),B!==!0&&(c=null)}function O(B){B===!0?u!==!0&&(_s<1&&document.body.classList.add("q-body--dialog"),_s++,u=!0):u===!0&&(_s<2&&document.body.classList.remove("q-body--dialog"),_s--,u=!1)}function T(B){d!==!0&&(A(B),n("click",B))}function Q(B){t.persistent!==!0&&t.noBackdropDismiss!==!0?A(B):t.noShake!==!0&&Y()}function ae(B){t.allowFocusOutside!==!0&&S.value===!0&&xd(s.value,B.target)!==!0&&G('[tabindex]:not([tabindex="-1"])')}Object.assign(o.proxy,{focus:G,shake:Y,__updateRefocusTarget(B){c=B||null}}),Ot(de);function fe(){return w("div",{role:"dialog","aria-modal":M.value===!0?"true":"false",...i,class:z.value},[w(Po,{name:"q-transition--fade",appear:!0},()=>M.value===!0?w("div",{class:"q-dialog__backdrop fixed-full",style:y.value,"aria-hidden":"true",tabindex:-1,onClick:Q}):null),w(Po,b.value,()=>r.value===!0?w("div",{ref:s,class:R.value,style:x.value,tabindex:-1,...H.value},Ge(e.default)):null)])}return E}});function Eu(t){if(t===!1)return 0;if(t===!0||t===void 0)return 1;const e=parseInt(t,10);return isNaN(e)?0:e}const Mn=md({name:"close-popup",beforeMount(t,{value:e}){const n={depth:Eu(e),handler(i){n.depth!==0&&setTimeout(()=>{const o=ym(t);o!==void 0&&_m(o,i,n.depth)})},handlerKey(i){Js(i,13)===!0&&n.handler(i)}};t.__qclosepopup=n,t.addEventListener("click",n.handler),t.addEventListener("keyup",n.handlerKey)},updated(t,{value:e,oldValue:n}){e!==n&&(t.__qclosepopup.depth=Eu(e))},beforeUnmount(t){const e=t.__qclosepopup;t.removeEventListener("click",e.handler),t.removeEventListener("keyup",e.handlerKey),delete t.__qclosepopup}}),cl=()=>({chargeModes:[{value:"instant_charging",label:"Sofort",color:"negative"},{value:"pv_charging",label:"PV",color:"positive"},{value:"scheduled_charging",label:"Ziel",color:"primary"},{value:"eco_charging",label:"Eco",color:"accent"},{value:"stop",label:"Stop",color:"light"}]}),Yx=Se({__name:"BaseCarousel",props:{items:{},cardWidth:{}},setup(t,{expose:e}){e();const n=t,i=In(),o=N(0),s=N(!0),r=N(null),a=N(0);let l=null;const c=N(0),u=()=>{const b=document.querySelectorAll(".q-carousel__slide--active .item-container"),x=Array.from(b).map(y=>y.offsetHeight);c.value=Math.max(...x)},d=()=>{const b=new MutationObserver(()=>{u()});document.querySelectorAll(".q-carousel__slide--active .item-container").forEach(y=>{b.observe(y,{childList:!0,subtree:!0,attributes:!0})})};Wt(()=>{ut(()=>{r.value&&r.value.$el&&(a.value=r.value.$el.offsetWidth,l=new ResizeObserver(()=>{r.value&&r.value.$el&&(a.value=r.value.$el.offsetWidth,u())}),l.observe(r.value.$el)),u(),d()})}),Ot(()=>{l&&r.value&&r.value.$el&&l.unobserve(r.value.$el)});const h=N(void 0),f=g(()=>h.value?Math.max(1,Math.floor(a.value/h.value)):380),m=g(()=>n.items.reduce((b,x,y)=>{const _=Math.floor(y/f.value);return b[_]||(b[_]=[]),b[_].push(x),b},[]));ge(()=>m.value,async(b,x)=>{const y=_=>b.findIndex(C=>C.includes(_));if(!x||x.length===0){o.value=0;return}s.value=!1,o.value=Math.max(y(x[o.value][0]),0),await ut(),s.value=!0,u(),d()});const p=()=>{const b=window.scrollY;ut(()=>{u(),d(),window.scrollTo(0,b)})};ge(()=>n.cardWidth,b=>{b&&b>0&&(h.value=b+72)});const v={props:n,$q:i,currentSlide:o,animated:s,carouselRef:r,carouselWidth:a,get resizeObserver(){return l},set resizeObserver(b){l=b},maxCardHeight:c,updateMaxCardHeight:u,observeCardChanges:d,effectiveCardWidth:h,groupSize:f,groupedItems:m,handleSlideChange:p};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}});function Zx(t,e,n,i,o,s){return V(),ne(Bd,{ref:"carouselRef",modelValue:i.currentSlide,"onUpdate:modelValue":[e[0]||(e[0]=r=>i.currentSlide=r),i.handleSlideChange],swipeable:"",animated:i.animated,"control-color":"primary",infinite:"",padding:"",navigation:i.groupedItems.length>1,arrows:i.groupedItems.length>1&&i.$q.screen.gt.xs,class:"carousel-height q-mt-md","transition-next":"slide-left","transition-prev":"slide-right",onMousedown:e[1]||(e[1]=nn(()=>{},["prevent"]))},{default:L(()=>[(V(!0),K(Oe,null,Je(i.groupedItems,(r,a)=>(V(),ne(qd,{key:a,name:a,class:"row no-wrap justify-center carousel-slide"},{default:L(()=>[(V(!0),K(Oe,null,Je(r,l=>(V(),K("div",{key:l,class:"item-container",style:_d(`min-height: ${i.maxCardHeight}px`)},[oi(t.$slots,"item",{item:l},void 0,!0)],4))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue","animated","navigation","arrows"])}const ul=Me(Yx,[["render",Zx],["__scopeId","data-v-948b1306"],["__file","BaseCarousel.vue"]]);function Xx(t){return t??null}function Au(t,e){return t??(e===!0?`f_${sa()}`:null)}function zf({getValue:t,required:e=!0}={}){if(Jg.value===!0){const n=t!==void 0?N(Xx(t())):N(null);return e===!0&&n.value===null&&Wt(()=>{n.value=`f_${sa()}`}),t!==void 0&&ge(t,i=>{n.value=Au(i,e)}),n}return t!==void 0?g(()=>Au(t(),e)):N(`f_${sa()}`)}const Ru=/^on[A-Z]/;function Kx(){const{attrs:t,vnode:e}=$e(),n={listeners:N({}),attributes:N({})};function i(){const o={},s={};for(const r in t)r!=="class"&&r!=="style"&&Ru.test(r)===!1&&(o[r]=t[r]);for(const r in e.props)Ru.test(r)===!0&&(s[r]=e.props[r]);n.attributes.value=o,n.listeners.value=s}return Sd(i),i(),n}function Qx({validate:t,resetValidation:e,requiresQForm:n}){const i=Vs(em,!1);if(i!==!1){const{props:o,proxy:s}=$e();Object.assign(s,{validate:t,resetValidation:e}),ge(()=>o.disable,r=>{r===!0?(typeof e=="function"&&e(),i.unbindComponent(s)):i.bindComponent(s)}),Wt(()=>{o.disable!==!0&&i.bindComponent(s)}),Ot(()=>{o.disable!==!0&&i.unbindComponent(s)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const qu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Lu=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Fu=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,xs=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,Ss=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,Jr={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),hexColor:t=>qu.test(t),hexaColor:t=>Lu.test(t),hexOrHexaColor:t=>Fu.test(t),rgbColor:t=>xs.test(t),rgbaColor:t=>Ss.test(t),rgbOrRgbaColor:t=>xs.test(t)||Ss.test(t),hexOrRgbColor:t=>qu.test(t)||xs.test(t),hexaOrRgbaColor:t=>Lu.test(t)||Ss.test(t),anyColor:t=>Fu.test(t)||xs.test(t)||Ss.test(t)},Gx=[!0,!1,"ondemand"],Jx={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>Gx.includes(t)}};function eS(t,e){const{props:n,proxy:i}=$e(),o=N(!1),s=N(null),r=N(!1);Qx({validate:p,resetValidation:m});let a=0,l;const c=g(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),u=g(()=>n.disable!==!0&&c.value===!0&&e.value===!1),d=g(()=>n.error===!0||o.value===!0),h=g(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:s.value);ge(()=>n.modelValue,()=>{r.value=!0,u.value===!0&&n.lazyRules===!1&&v()});function f(){n.lazyRules!=="ondemand"&&u.value===!0&&r.value===!0&&v()}ge(()=>n.reactiveRules,b=>{b===!0?l===void 0&&(l=ge(()=>n.rules,f,{immediate:!0,deep:!0})):l!==void 0&&(l(),l=void 0)},{immediate:!0}),ge(()=>n.lazyRules,f),ge(t,b=>{b===!0?r.value=!0:u.value===!0&&n.lazyRules!=="ondemand"&&v()});function m(){a++,e.value=!1,r.value=!1,o.value=!1,s.value=null,v.cancel()}function p(b=n.modelValue){if(n.disable===!0||c.value===!1)return!0;const x=++a,y=e.value!==!0?()=>{r.value=!0}:()=>{},_=(S,E)=>{S===!0&&y(),o.value=S,s.value=E||null,e.value=!1},C=[];for(let S=0;S{if(S===void 0||Array.isArray(S)===!1||S.length===0)return x===a&&_(!1),!0;const E=S.find(A=>A===!1||typeof A=="string");return x===a&&_(E!==void 0,E),E===void 0},S=>(x===a&&(console.error(S),_(!0)),!1)))}const v=wd(p,0);return Ot(()=>{l!==void 0&&l(),v.cancel()}),Object.assign(i,{resetValidation:m,validate:p}),ei(i,"hasError",()=>d.value),{isDirtyModel:r,hasRules:c,hasError:d,errorMessage:h,validate:p,resetValidation:m}}function Fo(t){return t!=null&&(""+t).length!==0}const tS={...un,...Jx,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},gr={...tS,maxlength:[Number,String]},dl=["update:modelValue","clear","focus","blur"];function hl({requiredForAttr:t=!0,tagProp:e,changeEvent:n=!1}={}){const{props:i,proxy:o}=$e(),s=dn(i,o.$q),r=zf({required:t,getValue:()=>i.for});return{requiredForAttr:t,changeEvent:n,tag:e===!0?g(()=>i.tag):{value:"label"},isDark:s,editable:g(()=>i.disable!==!0&&i.readonly!==!0),innerLoading:N(!1),focused:N(!1),hasPopupOpen:!1,splitAttrs:Kx(),targetUid:r,rootRef:N(null),targetRef:N(null),controlRef:N(null)}}function fl(t){const{props:e,emit:n,slots:i,attrs:o,proxy:s}=$e(),{$q:r}=s;let a=null;t.hasValue===void 0&&(t.hasValue=g(()=>Fo(e.modelValue))),t.emitValue===void 0&&(t.emitValue=Y=>{n("update:modelValue",Y)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:D,onFocusout:P}),Object.assign(t,{clearValue:R,onControlFocusin:D,onControlFocusout:P,focus:E}),t.computedCounter===void 0&&(t.computedCounter=g(()=>{if(e.counter!==!1){const Y=typeof e.modelValue=="string"||typeof e.modelValue=="number"?(""+e.modelValue).length:Array.isArray(e.modelValue)===!0?e.modelValue.length:0,te=e.maxlength!==void 0?e.maxlength:e.maxValues;return Y+(te!==void 0?" / "+te:"")}}));const{isDirtyModel:l,hasRules:c,hasError:u,errorMessage:d,resetValidation:h}=eS(t.focused,t.innerLoading),f=t.floatingLabel!==void 0?g(()=>e.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):g(()=>e.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),m=g(()=>e.bottomSlots===!0||e.hint!==void 0||c.value===!0||e.counter===!0||e.error!==null),p=g(()=>e.filled===!0?"filled":e.outlined===!0?"outlined":e.borderless===!0?"borderless":e.standout?"standout":"standard"),v=g(()=>`q-field row no-wrap items-start q-field--${p.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(e.rounded===!0?" q-field--rounded":"")+(e.square===!0?" q-field--square":"")+(f.value===!0?" q-field--float":"")+(x.value===!0?" q-field--labeled":"")+(e.dense===!0?" q-field--dense":"")+(e.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(t.isDark.value===!0?" q-field--dark":"")+(t.getControl===void 0?" q-field--auto-height":"")+(t.focused.value===!0?" q-field--focused":"")+(u.value===!0?" q-field--error":"")+(u.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(e.hideBottomSpace!==!0&&m.value===!0?" q-field--with-bottom":"")+(e.disable===!0?" q-field--disabled":e.readonly===!0?" q-field--readonly":"")),b=g(()=>"q-field__control relative-position row no-wrap"+(e.bgColor!==void 0?` bg-${e.bgColor}`:"")+(u.value===!0?" text-negative":typeof e.standout=="string"&&e.standout.length!==0&&t.focused.value===!0?` ${e.standout}`:e.color!==void 0?` text-${e.color}`:"")),x=g(()=>e.labelSlot===!0||e.label!==void 0),y=g(()=>"q-field__label no-pointer-events absolute ellipsis"+(e.labelColor!==void 0&&u.value!==!0?` text-${e.labelColor}`:"")),_=g(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:f.value,modelValue:e.modelValue,emitValue:t.emitValue})),C=g(()=>{const Y={};return t.targetUid.value&&(Y.for=t.targetUid.value),e.disable===!0&&(Y["aria-disabled"]="true"),Y});function S(){const Y=document.activeElement;let te=t.targetRef!==void 0&&t.targetRef.value;te&&(Y===null||Y.id!==t.targetUid.value)&&(te.hasAttribute("tabindex")===!0||(te=te.querySelector("[tabindex]")),te&&te!==Y&&te.focus({preventScroll:!0}))}function E(){rr(S)}function A(){xm(S);const Y=document.activeElement;Y!==null&&t.rootRef.value.contains(Y)&&Y.blur()}function D(Y){a!==null&&(clearTimeout(a),a=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,n("focus",Y))}function P(Y,te){a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,!(document.hasFocus()===!0&&(t.hasPopupOpen===!0||t.controlRef===void 0||t.controlRef.value===null||t.controlRef.value.contains(document.activeElement)!==!1))&&(t.focused.value===!0&&(t.focused.value=!1,n("blur",Y)),te!==void 0&&te())})}function R(Y){Pt(Y),r.platform.is.mobile!==!0?(t.targetRef!==void 0&&t.targetRef.value||t.rootRef.value).focus():t.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),e.type==="file"&&(t.inputRef.value.value=null),n("update:modelValue",null),t.changeEvent===!0&&n("change",null),n("clear",e.modelValue),ut(()=>{const te=l.value;h(),l.value=te})}function M(Y){[13,32].includes(Y.keyCode)&&R(Y)}function H(){const Y=[];return i.prepend!==void 0&&Y.push(w("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:qn},i.prepend())),Y.push(w("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},z())),u.value===!0&&e.noErrorIcon===!1&&Y.push(j("error",[w(_e,{name:r.iconSet.field.error,color:"negative"})])),e.loading===!0||t.innerLoading.value===!0?Y.push(j("inner-loading-append",i.loading!==void 0?i.loading():[w(tm,{color:e.color})])):e.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&Y.push(j("inner-clearable-append",[w(_e,{class:"q-field__focusable-action",name:e.clearIcon||r.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":r.lang.label.clear,onKeyup:M,onClick:R})])),i.append!==void 0&&Y.push(w("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:qn},i.append())),t.getInnerAppend!==void 0&&Y.push(j("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&Y.push(t.getControlChild()),Y}function z(){const Y=[];return e.prefix!==void 0&&e.prefix!==null&&Y.push(w("div",{class:"q-field__prefix no-pointer-events row items-center"},e.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&Y.push(t.getShadowControl()),t.getControl!==void 0?Y.push(t.getControl()):i.rawControl!==void 0?Y.push(i.rawControl()):i.control!==void 0&&Y.push(w("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":e.autofocus===!0||void 0},i.control(_.value))),x.value===!0&&Y.push(w("div",{class:y.value},Ge(i.label,e.label))),e.suffix!==void 0&&e.suffix!==null&&Y.push(w("div",{class:"q-field__suffix no-pointer-events row items-center"},e.suffix)),Y.concat(Ge(i.default))}function U(){let Y,te;u.value===!0?d.value!==null?(Y=[w("div",{role:"alert"},d.value)],te=`q--slot-error-${d.value}`):(Y=Ge(i.error),te="q--slot-error"):(e.hideHint!==!0||t.focused.value===!0)&&(e.hint!==void 0?(Y=[w("div",e.hint)],te=`q--slot-hint-${e.hint}`):(Y=Ge(i.hint),te="q--slot-hint"));const de=e.counter===!0||i.counter!==void 0;if(e.hideBottomSpace===!0&&de===!1&&Y===void 0)return;const O=w("div",{key:te,class:"q-field__messages col"},Y);return w("div",{class:"q-field__bottom row items-start q-field__bottom--"+(e.hideBottomSpace!==!0?"animated":"stale"),onClick:qn},[e.hideBottomSpace===!0?O:w(Po,{name:"q-transition--field-message"},()=>O),de===!0?w("div",{class:"q-field__counter"},i.counter!==void 0?i.counter():t.computedCounter.value):null])}function j(Y,te){return te===null?null:w("div",{key:Y,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},te)}let G=!1;return er(()=>{G=!0}),tr(()=>{G===!0&&e.autofocus===!0&&s.focus()}),e.autofocus===!0&&Wt(()=>{s.focus()}),Ot(()=>{a!==null&&clearTimeout(a)}),Object.assign(s,{focus:E,blur:A}),function(){const te=t.getControl===void 0&&i.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":e.autofocus===!0||void 0,...C.value}:C.value;return w(t.tag.value,{ref:t.rootRef,class:[v.value,o.class],style:o.style,...te},[i.before!==void 0?w("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:qn},i.before()):null,w("div",{class:"q-field__inner relative-position col self-stretch"},[w("div",{ref:t.controlRef,class:b.value,tabindex:-1,...t.controlEvents},H()),m.value===!0?U():null]),i.after!==void 0?w("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:qn},i.after()):null])}}const zu={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Xs={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},Bf=Object.keys(Xs);Bf.forEach(t=>{Xs[t].regex=new RegExp(Xs[t].pattern)});const nS=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Bf.join("")+"])|(.)","g"),Bu=/[.*+?^${}()|[\]\\]/g,ft="",iS={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function oS(t,e,n,i){let o,s,r,a,l,c;const u=N(null),d=N(f());function h(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}ge(()=>t.type+t.autogrow,p),ge(()=>t.mask,D=>{if(D!==void 0)v(d.value,!0);else{const P=E(d.value);p(),t.modelValue!==P&&e("update:modelValue",P)}}),ge(()=>t.fillMask+t.reverseFillMask,()=>{u.value===!0&&v(d.value,!0)}),ge(()=>t.unmaskedValue,()=>{u.value===!0&&v(d.value)});function f(){if(p(),u.value===!0){const D=C(E(t.modelValue));return t.fillMask!==!1?A(D):D}return t.modelValue}function m(D){if(D0;H--)P+=ft;R=R.slice(0,M)+P+R.slice(M)}return R}function p(){if(u.value=t.mask!==void 0&&t.mask.length!==0&&h(),u.value===!1){a=void 0,o="",s="";return}const D=zu[t.mask]===void 0?t.mask:zu[t.mask],P=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",R=P.replace(Bu,"\\$&"),M=[],H=[],z=[];let U=t.reverseFillMask===!0,j="",G="";D.replace(nS,(O,T,Q,ae,fe)=>{if(ae!==void 0){const B=Xs[ae];z.push(B),G=B.negate,U===!0&&(H.push("(?:"+G+"+)?("+B.pattern+"+)?(?:"+G+"+)?("+B.pattern+"+)?"),U=!1),H.push("(?:"+G+"+)?("+B.pattern+")?")}else if(Q!==void 0)j="\\"+(Q==="\\"?"":Q),z.push(Q),M.push("([^"+j+"]+)?"+j+"?");else{const B=T!==void 0?T:fe;j=B==="\\"?"\\\\\\\\":B.replace(Bu,"\\\\$&"),z.push(B),M.push("([^"+j+"]+)?"+j+"?")}});const Y=new RegExp("^"+M.join("")+"("+(j===""?".":"[^"+j+"]")+"+)?"+(j===""?"":"["+j+"]*")+"$"),te=H.length-1,de=H.map((O,T)=>T===0&&t.reverseFillMask===!0?new RegExp("^"+R+"*"+O):T===te?new RegExp("^"+O+"("+(G===""?".":G)+"+)?"+(t.reverseFillMask===!0?"$":R+"*")):new RegExp("^"+O));r=z,a=O=>{const T=Y.exec(t.reverseFillMask===!0?O:O.slice(0,z.length+1));T!==null&&(O=T.slice(1).join(""));const Q=[],ae=de.length;for(let fe=0,B=O;fetypeof O=="string"?O:ft).join(""),s=o.split(ft).join(P)}function v(D,P,R){const M=i.value,H=M.selectionEnd,z=M.value.length-H,U=E(D);P===!0&&p();const j=C(U),G=t.fillMask!==!1?A(j):j,Y=d.value!==G;M.value!==G&&(M.value=G),Y===!0&&(d.value=G),document.activeElement===M&&ut(()=>{if(G===s){const de=t.reverseFillMask===!0?s.length:0;M.setSelectionRange(de,de,"forward");return}if(R==="insertFromPaste"&&t.reverseFillMask!==!0){const de=M.selectionEnd;let O=H-1;for(let T=l;T<=O&&Tj.length?1:0:Math.max(0,G.length-(G===s?0:Math.min(j.length,z)+1))+1:H;M.setSelectionRange(de,de,"forward");return}if(t.reverseFillMask===!0)if(Y===!0){const de=Math.max(0,G.length-(G===s?0:Math.min(j.length,z+1)));de===1&&H===1?M.setSelectionRange(de,de,"forward"):x.rightReverse(M,de)}else{const de=G.length-z;M.setSelectionRange(de,de,"backward")}else if(Y===!0){const de=Math.max(0,o.indexOf(ft),Math.min(j.length,H)-1);x.right(M,de)}else{const de=H-1;x.right(M,de)}});const te=t.unmaskedValue===!0?E(G):G;String(t.modelValue)!==te&&(t.modelValue!==null||te!=="")&&n(te,!0)}function b(D,P,R){const M=C(E(D.value));P=Math.max(0,o.indexOf(ft),Math.min(M.length,P)),l=P,D.setSelectionRange(P,R,"forward")}const x={left(D,P){const R=o.slice(P-1).indexOf(ft)===-1;let M=Math.max(0,P-1);for(;M>=0;M--)if(o[M]===ft){P=M,R===!0&&P++;break}if(M<0&&o[P]!==void 0&&o[P]!==ft)return x.right(D,0);P>=0&&D.setSelectionRange(P,P,"backward")},right(D,P){const R=D.value.length;let M=Math.min(R,P+1);for(;M<=R;M++)if(o[M]===ft){P=M;break}else o[M-1]===ft&&(P=M);if(M>R&&o[P-1]!==void 0&&o[P-1]!==ft)return x.left(D,R);D.setSelectionRange(P,P,"forward")},leftReverse(D,P){const R=m(D.value.length);let M=Math.max(0,P-1);for(;M>=0;M--)if(R[M-1]===ft){P=M;break}else if(R[M]===ft&&(P=M,M===0))break;if(M<0&&R[P]!==void 0&&R[P]!==ft)return x.rightReverse(D,0);P>=0&&D.setSelectionRange(P,P,"backward")},rightReverse(D,P){const R=D.value.length,M=m(R),H=M.slice(0,P+1).indexOf(ft)===-1;let z=Math.min(R,P+1);for(;z<=R;z++)if(M[z-1]===ft){P=z,P>0&&H===!0&&P--;break}if(z>R&&M[P-1]!==void 0&&M[P-1]!==ft)return x.leftReverse(D,R);D.setSelectionRange(P,P,"forward")}};function y(D){e("click",D),c=void 0}function _(D){if(e("keydown",D),Va(D)===!0||D.altKey===!0)return;const P=i.value,R=P.selectionStart,M=P.selectionEnd;if(D.shiftKey||(c=void 0),D.keyCode===37||D.keyCode===39){D.shiftKey&&c===void 0&&(c=P.selectionDirection==="forward"?R:M);const H=x[(D.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(D.preventDefault(),H(P,c===R?M:R),D.shiftKey){const z=P.selectionStart;P.setSelectionRange(Math.min(c,z),Math.max(c,z),"forward")}}else D.keyCode===8&&t.reverseFillMask!==!0&&R===M?(x.left(P,R),P.setSelectionRange(P.selectionStart,M,"backward")):D.keyCode===46&&t.reverseFillMask===!0&&R===M&&(x.rightReverse(P,M),P.setSelectionRange(R,P.selectionEnd,"forward"))}function C(D){if(D==null||D==="")return"";if(t.reverseFillMask===!0)return S(D);const P=r;let R=0,M="";for(let H=0;H=0&&M!==-1;z--){const U=P[z];let j=D[M];if(typeof U=="string")H=U+H,j===U&&M--;else if(j!==void 0&&U.regex.test(j))do H=(U.transform!==void 0?U.transform(j):j)+H,M--,j=D[M];while(R===z&&j!==void 0&&U.regex.test(j));else return H}return H}function E(D){return typeof D!="string"||a===void 0?typeof D=="number"?a(""+D):D:a(D)}function A(D){return s.length-D.length<=0?D:t.reverseFillMask===!0&&D.length!==0?s.slice(0,-D.length)+D:D+s.slice(D.length)}return{innerValue:d,hasMask:u,moveCursorForPaste:b,updateMaskValue:v,onMaskedKeydown:_,onMaskedClick:y}}const mr={name:String};function sS(t){return g(()=>({type:"hidden",name:t.name,value:t.modelValue}))}function Nf(t={}){return(e,n,i)=>{e[n](w("input",{class:"hidden"+(i||""),...t.value}))}}function Wf(t){return g(()=>t.name||t.for)}function rS(t,e){function n(){const i=t.modelValue;try{const o="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(i)===i&&("length"in i?Array.from(i):[i]).forEach(s=>{o.items.add(s)}),{files:o.files}}catch{return{files:void 0}}}return g(()=>{if(t.type==="file")return n()})}function Hf(t){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,t(n)}else n.type==="compositionstart"&&(n.target.qComposing=!0)}}const jf=ze({name:"QInput",inheritAttrs:!1,props:{...gr,...iS,...mr,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...dl,"paste","change","keydown","click","animationend"],setup(t,{emit:e,attrs:n}){const{proxy:i}=$e(),{$q:o}=i,s={};let r=NaN,a,l,c=null,u;const d=N(null),h=Wf(t),{innerValue:f,hasMask:m,moveCursorForPaste:p,updateMaskValue:v,onMaskedKeydown:b,onMaskedClick:x}=oS(t,e,j,d),y=rS(t),_=g(()=>Fo(f.value)),C=Hf(z),S=hl({changeEvent:!0}),E=g(()=>t.type==="textarea"||t.autogrow===!0),A=g(()=>E.value===!0||["text","search","url","tel","password"].includes(t.type)),D=g(()=>{const T={...S.splitAttrs.listeners.value,onInput:z,onPaste:H,onChange:Y,onBlur:te,onFocus:wn};return T.onCompositionstart=T.onCompositionupdate=T.onCompositionend=C,m.value===!0&&(T.onKeydown=b,T.onClick=x),t.autogrow===!0&&(T.onAnimationend=U),T}),P=g(()=>{const T={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:h.value,...S.splitAttrs.attributes.value,id:S.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return E.value===!1&&(T.type=t.type),t.autogrow===!0&&(T.rows=1),T});ge(()=>t.type,()=>{d.value&&(d.value.value=t.modelValue)}),ge(()=>t.modelValue,T=>{if(m.value===!0){if(l===!0&&(l=!1,String(T)===r))return;v(T)}else f.value!==T&&(f.value=T,t.type==="number"&&s.hasOwnProperty("value")===!0&&(a===!0?a=!1:delete s.value));t.autogrow===!0&&ut(G)}),ge(()=>t.autogrow,T=>{T===!0?ut(G):d.value!==null&&n.rows>0&&(d.value.style.height="auto")}),ge(()=>t.dense,()=>{t.autogrow===!0&&ut(G)});function R(){rr(()=>{const T=document.activeElement;d.value!==null&&d.value!==T&&(T===null||T.id!==S.targetUid.value)&&d.value.focus({preventScroll:!0})})}function M(){d.value!==null&&d.value.select()}function H(T){if(m.value===!0&&t.reverseFillMask!==!0){const Q=T.target;p(Q,Q.selectionStart,Q.selectionEnd)}e("paste",T)}function z(T){if(!T||!T.target)return;if(t.type==="file"){e("update:modelValue",T.target.files);return}const Q=T.target.value;if(T.target.qComposing===!0){s.value=Q;return}if(m.value===!0)v(Q,!1,T.inputType);else if(j(Q),A.value===!0&&T.target===document.activeElement){const{selectionStart:ae,selectionEnd:fe}=T.target;ae!==void 0&&fe!==void 0&&ut(()=>{T.target===document.activeElement&&Q.indexOf(T.target.value)===0&&T.target.setSelectionRange(ae,fe)})}t.autogrow===!0&&G()}function U(T){e("animationend",T),G()}function j(T,Q){u=()=>{c=null,t.type!=="number"&&s.hasOwnProperty("value")===!0&&delete s.value,t.modelValue!==T&&r!==T&&(r=T,Q===!0&&(l=!0),e("update:modelValue",T),ut(()=>{r===T&&(r=NaN)})),u=void 0},t.type==="number"&&(a=!0,s.value=T),t.debounce!==void 0?(c!==null&&clearTimeout(c),s.value=T,c=setTimeout(u,t.debounce)):u()}function G(){requestAnimationFrame(()=>{const T=d.value;if(T!==null){const Q=T.parentNode.style,{scrollTop:ae}=T,{overflowY:fe,maxHeight:B}=o.platform.is.firefox===!0?{}:window.getComputedStyle(T),J=fe!==void 0&&fe!=="scroll";J===!0&&(T.style.overflowY="hidden"),Q.marginBottom=T.scrollHeight-1+"px",T.style.height="1px",T.style.height=T.scrollHeight+"px",J===!0&&(T.style.overflowY=parseInt(B,10){d.value!==null&&(d.value.value=f.value!==void 0?f.value:"")})}function de(){return s.hasOwnProperty("value")===!0?s.value:f.value!==void 0?f.value:""}Ot(()=>{te()}),Wt(()=>{t.autogrow===!0&&G()}),Object.assign(S,{innerValue:f,fieldClass:g(()=>`q-${E.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:g(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:d,emitValue:j,hasValue:_,floatingLabel:g(()=>_.value===!0&&(t.type!=="number"||isNaN(f.value)===!1)||Fo(t.displayValue)),getControl:()=>w(E.value===!0?"textarea":"input",{ref:d,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...P.value,...D.value,...t.type!=="file"?{value:de()}:y.value}),getShadowControl:()=>w("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(E.value===!0?"":" text-no-wrap")},[w("span",{class:"invisible"},de()),w("span",t.shadowText)])});const O=fl(S);return Object.assign(i,{focus:R,select:M,getNativeElement:()=>d.value}),ei(i,"nativeEl",()=>d.value),O}}),wa=ze({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(t,{slots:e,emit:n}){const i=$e(),{proxy:{$q:o}}=i,s=r=>{n("click",r)};return()=>{if(t.props===void 0)return w("th",{class:t.autoWidth===!0?"q-table--col-auto-width":"",onClick:s},Ge(e.default));let r,a;const l=i.vnode.key;if(l){if(r=t.props.colsMap[l],r===void 0)return}else r=t.props.col;if(r.sortable===!0){const u=r.align==="right"?"unshift":"push";a=nm(e.default,[]),a[u](w(_e,{class:r.__iconClass,name:o.iconSet.table.arrowUp}))}else a=Ge(e.default);const c={class:r.__thClass+(t.autoWidth===!0?" q-table--col-auto-width":""),style:r.headerStyle,onClick:u=>{r.sortable===!0&&t.props.sort(r),s(u)}};return w("th",c,a)}}}),ea=ze({name:"QTr",props:{props:Object,noHover:Boolean},setup(t,{slots:e}){const n=g(()=>"q-tr"+(t.props===void 0||t.props.header===!0?"":" "+t.props.__trClass)+(t.noHover===!0?" q-tr--no-hover":""));return()=>w("tr",{class:n.value},Ge(e.default))}}),aS=["horizontal","vertical","cell","none"],lS=ze({name:"QMarkupTable",props:{...un,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:t=>aS.includes(t)}},setup(t,{slots:e}){const n=$e(),i=dn(t,n.proxy.$q),o=g(()=>`q-markup-table q-table__container q-table__card q-table--${t.separator}-separator`+(i.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(t.dense===!0?" q-table--dense":"")+(t.flat===!0?" q-table--flat":"")+(t.bordered===!0?" q-table--bordered":"")+(t.square===!0?" q-table--square":"")+(t.wrapCells===!1?" q-table--no-wrap":""));return()=>w("div",{class:o.value},[w("table",{class:"q-table"},Ge(e.default))])}});function $f(t,e){return w("div",t,[w("table",{class:"q-table"},e)])}const on=1e3,cS=["start","center","end","start-force","center-force","end-force"],Uf=Array.prototype.filter,uS=window.getComputedStyle(document.body).overflowAnchor===void 0?vd:function(t,e){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const n=t.children||[];Uf.call(n,o=>o.dataset&&o.dataset.qVsAnchor!==void 0).forEach(o=>{delete o.dataset.qVsAnchor});const i=n[e];i&&i.dataset&&(i.dataset.qVsAnchor="")}))};function qi(t,e){return t+e}function ta(t,e,n,i,o,s,r,a){const l=t===window?document.scrollingElement||document.documentElement:t,c=o===!0?"offsetWidth":"offsetHeight",u={scrollStart:0,scrollViewSize:-r-a,scrollMaxSize:0,offsetStart:-r,offsetEnd:-a};if(o===!0?(t===window?(u.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,u.scrollViewSize+=document.documentElement.clientWidth):(u.scrollStart=l.scrollLeft,u.scrollViewSize+=l.clientWidth),u.scrollMaxSize=l.scrollWidth,s===!0&&(u.scrollStart=(Do===!0?u.scrollMaxSize-u.scrollViewSize:0)-u.scrollStart)):(t===window?(u.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,u.scrollViewSize+=document.documentElement.clientHeight):(u.scrollStart=l.scrollTop,u.scrollViewSize+=l.clientHeight),u.scrollMaxSize=l.scrollHeight),n!==null)for(let d=n.previousElementSibling;d!==null;d=d.previousElementSibling)d.classList.contains("q-virtual-scroll--skip")===!1&&(u.offsetStart+=d[c]);if(i!==null)for(let d=i.nextElementSibling;d!==null;d=d.nextElementSibling)d.classList.contains("q-virtual-scroll--skip")===!1&&(u.offsetEnd+=d[c]);if(e!==t){const d=l.getBoundingClientRect(),h=e.getBoundingClientRect();o===!0?(u.offsetStart+=h.left-d.left,u.offsetEnd-=h.width):(u.offsetStart+=h.top-d.top,u.offsetEnd-=h.height),t!==window&&(u.offsetStart+=u.scrollStart),u.offsetEnd+=u.scrollMaxSize-u.offsetStart}return u}function Nu(t,e,n,i){e==="end"&&(e=(t===window?document.body:t)[n===!0?"scrollWidth":"scrollHeight"]),t===window?n===!0?(i===!0&&(e=(Do===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-e),window.scrollTo(e,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,e):n===!0?(i===!0&&(e=(Do===!0?t.scrollWidth-t.offsetWidth:0)-e),t.scrollLeft=e):t.scrollTop=e}function lo(t,e,n,i){if(n>=i)return 0;const o=e.length,s=Math.floor(n/on),r=Math.floor((i-1)/on)+1;let a=t.slice(s,r).reduce(qi,0);return n%on!==0&&(a-=e.slice(s*on,n).reduce(qi,0)),i%on!==0&&i!==o&&(a-=e.slice(i,r*on).reduce(qi,0)),a}const Yf={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Zf=Object.keys(Yf),ka={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Yf};function Xf({virtualScrollLength:t,getVirtualScrollTarget:e,getVirtualScrollEl:n,virtualScrollItemSizeComputed:i}){const o=$e(),{props:s,emit:r,proxy:a}=o,{$q:l}=a;let c,u,d,h=[],f;const m=N(0),p=N(0),v=N({}),b=N(null),x=N(null),y=N(null),_=N({from:0,to:0}),C=g(()=>s.tableColspan!==void 0?s.tableColspan:100);i===void 0&&(i=g(()=>s.virtualScrollItemSize));const S=g(()=>i.value+";"+s.virtualScrollHorizontal),E=g(()=>S.value+";"+s.virtualScrollSliceRatioBefore+";"+s.virtualScrollSliceRatioAfter);ge(E,()=>{j()}),ge(S,A);function A(){U(u,!0)}function D(O){U(O===void 0?u:O)}function P(O,T){const Q=e();if(Q==null||Q.nodeType===8)return;const ae=ta(Q,n(),b.value,x.value,s.virtualScrollHorizontal,l.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd);d!==ae.scrollViewSize&&j(ae.scrollViewSize),M(Q,ae,Math.min(t.value-1,Math.max(0,parseInt(O,10)||0)),0,cS.indexOf(T)!==-1?T:u!==-1&&O>u?"end":"start")}function R(){const O=e();if(O==null||O.nodeType===8)return;const T=ta(O,n(),b.value,x.value,s.virtualScrollHorizontal,l.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd),Q=t.value-1,ae=T.scrollMaxSize-T.offsetStart-T.offsetEnd-p.value;if(c===T.scrollStart)return;if(T.scrollMaxSize<=0){M(O,T,0,0);return}d!==T.scrollViewSize&&j(T.scrollViewSize),H(_.value.from);const fe=Math.floor(T.scrollMaxSize-Math.max(T.scrollViewSize,T.offsetEnd)-Math.min(f[Q],T.scrollViewSize/2));if(fe>0&&Math.ceil(T.scrollStart)>=fe){M(O,T,Q,T.scrollMaxSize-T.offsetEnd-h.reduce(qi,0));return}let B=0,J=T.scrollStart-T.offsetStart,we=J;if(J<=ae&&J+T.scrollViewSize>=m.value)J-=m.value,B=_.value.from,we=J;else for(let Z=0;J>=h[Z]&&B0&&B-T.scrollViewSize?(B++,we=J):we=f[B]+J;M(O,T,B,we)}function M(O,T,Q,ae,fe){const B=typeof fe=="string"&&fe.indexOf("-force")!==-1,J=B===!0?fe.replace("-force",""):fe,we=J!==void 0?J:"start";let Z=Math.max(0,Q-v.value[we]),Ee=Z+v.value.total;Ee>t.value&&(Ee=t.value,Z=Math.max(0,Ee-v.value.total)),c=T.scrollStart;const Xe=Z!==_.value.from||Ee!==_.value.to;if(Xe===!1&&J===void 0){Y(Q);return}const{activeElement:_t}=document,et=y.value;Xe===!0&&et!==null&&et!==_t&&et.contains(_t)===!0&&(et.addEventListener("focusout",z),setTimeout(()=>{et!==null&&et.removeEventListener("focusout",z)})),uS(et,Q-Z);const dt=J!==void 0?f.slice(Z,Q).reduce(qi,0):0;if(Xe===!0){const mt=Ee>=_.value.from&&Z<=_.value.to?_.value.to:Ee;_.value={from:Z,to:mt},m.value=lo(h,f,0,Z),p.value=lo(h,f,Ee,t.value),requestAnimationFrame(()=>{_.value.to!==Ee&&c===T.scrollStart&&(_.value={from:_.value.from,to:Ee},p.value=lo(h,f,Ee,t.value))})}requestAnimationFrame(()=>{if(c!==T.scrollStart)return;Xe===!0&&H(Z);const mt=f.slice(Z,Q).reduce(qi,0),ht=mt+T.offsetStart+m.value,Dt=ht+f[Q];let Vt=ht+ae;if(J!==void 0){const Ut=mt-dt,Et=T.scrollStart+Ut;Vt=B!==!0&&EtZ.classList&&Z.classList.contains("q-virtual-scroll--skip")===!1),ae=Q.length,fe=s.virtualScrollHorizontal===!0?Z=>Z.getBoundingClientRect().width:Z=>Z.offsetHeight;let B=O,J,we;for(let Z=0;Z=ae;B--)f[B]=Q;const fe=Math.floor((t.value-1)/on);h=[];for(let B=0;B<=fe;B++){let J=0;const we=Math.min((B+1)*on,t.value);for(let Z=B*on;Z=0?(H(_.value.from),ut(()=>{P(O)})):te()}function j(O){if(O===void 0&&typeof window<"u"){const J=e();J!=null&&J.nodeType!==8&&(O=ta(J,n(),b.value,x.value,s.virtualScrollHorizontal,l.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd).scrollViewSize)}d=O;const T=parseFloat(s.virtualScrollSliceRatioBefore)||0,Q=parseFloat(s.virtualScrollSliceRatioAfter)||0,ae=1+T+Q,fe=O===void 0||O<=0?1:Math.ceil(O/i.value),B=Math.max(1,fe,Math.ceil((s.virtualScrollSliceSize>0?s.virtualScrollSliceSize:10)/ae));v.value={total:Math.ceil(B*ae),start:Math.ceil(B*T),center:Math.ceil(B*(.5+T)),end:Math.ceil(B*(1+T)),view:fe}}function G(O,T){const Q=s.virtualScrollHorizontal===!0?"width":"height",ae={["--q-virtual-scroll-item-"+Q]:i.value+"px"};return[O==="tbody"?w(O,{class:"q-virtual-scroll__padding",key:"before",ref:b},[w("tr",[w("td",{style:{[Q]:`${m.value}px`,...ae},colspan:C.value})])]):w(O,{class:"q-virtual-scroll__padding",key:"before",ref:b,style:{[Q]:`${m.value}px`,...ae}}),w(O,{class:"q-virtual-scroll__content",key:"content",ref:y,tabindex:-1},T.flat()),O==="tbody"?w(O,{class:"q-virtual-scroll__padding",key:"after",ref:x},[w("tr",[w("td",{style:{[Q]:`${p.value}px`,...ae},colspan:C.value})])]):w(O,{class:"q-virtual-scroll__padding",key:"after",ref:x,style:{[Q]:`${p.value}px`,...ae}})]}function Y(O){u!==O&&(s.onVirtualScroll!==void 0&&r("virtualScroll",{index:O,from:_.value.from,to:_.value.to-1,direction:O{j()});let de=!1;return er(()=>{de=!0}),tr(()=>{if(de!==!0)return;const O=e();c!==void 0&&O!==void 0&&O!==null&&O.nodeType!==8?Nu(O,c,s.virtualScrollHorizontal,l.lang.rtl):P(u)}),Ot(()=>{te.cancel()}),Object.assign(a,{scrollTo:P,reset:A,refresh:D}),{virtualScrollSliceRange:_,virtualScrollSliceSizeComputed:v,setVirtualScrollSize:j,onVirtualScrollEvt:te,localResetVirtualScroll:U,padVirtualScroll:G,scrollTo:P,reset:A,refresh:D}}const dS={list:ir,table:lS},hS=["list","table","__qtable"],fS=ze({name:"QVirtualScroll",props:{...ka,type:{type:String,default:"list",validator:t=>hS.includes(t)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Od},setup(t,{slots:e,attrs:n}){let i;const o=N(null),s=g(()=>t.itemsSize>=0&&t.itemsFn!==void 0?parseInt(t.itemsSize,10):Array.isArray(t.items)?t.items.length:0),{virtualScrollSliceRange:r,localResetVirtualScroll:a,padVirtualScroll:l,onVirtualScrollEvt:c}=Xf({virtualScrollLength:s,getVirtualScrollTarget:m,getVirtualScrollEl:f}),u=g(()=>{if(s.value===0)return[];const x=(y,_)=>({index:r.value.from+_,item:y});return t.itemsFn===void 0?t.items.slice(r.value.from,r.value.to).map(x):t.itemsFn(r.value.from,r.value.to-r.value.from).map(x)}),d=g(()=>"q-virtual-scroll q-virtual-scroll"+(t.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(t.scrollTarget!==void 0?"":" scroll")),h=g(()=>t.scrollTarget!==void 0?{}:{tabindex:0});ge(s,()=>{a()}),ge(()=>t.scrollTarget,()=>{v(),p()});function f(){return o.value.$el||o.value}function m(){return i}function p(){i=Dd(f(),t.scrollTarget),i.addEventListener("scroll",c,Dl.passive)}function v(){i!==void 0&&(i.removeEventListener("scroll",c,Dl.passive),i=void 0)}function b(){let x=l(t.type==="list"?"div":"tbody",u.value.map(e.default));return e.before!==void 0&&(x=e.before().concat(x)),di(e.after,x)}return Ea(()=>{a()}),Wt(()=>{p()}),tr(()=>{p()}),er(()=>{v()}),Ot(()=>{v()}),()=>{if(e.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return t.type==="__qtable"?$f({ref:o,class:"q-table__middle "+d.value},b()):w(dS[t.type],{...n,ref:o,class:[n.class,d.value],...h.value},b)}}}),Kf=ze({name:"QField",inheritAttrs:!1,props:{...gr,tag:{type:String,default:"label"}},emits:dl,setup(){return fl(hl({tagProp:!0}))}}),gS={xs:8,sm:10,md:14,lg:20,xl:24},Ks=ze({name:"QChip",props:{...un,...Aa,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(t,{slots:e,emit:n}){const{proxy:{$q:i}}=$e(),o=dn(t,i),s=Ra(t,gS),r=g(()=>t.selected===!0||t.icon!==void 0),a=g(()=>t.selected===!0?t.iconSelected||i.iconSet.chip.selected:t.icon),l=g(()=>t.iconRemove||i.iconSet.chip.remove),c=g(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),u=g(()=>{const v=t.outline===!0&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(t.outline===!1&&t.color!==void 0?` bg-${t.color}`:"")+(v?` text-${v} q-chip--colored`:"")+(t.disable===!0?" disabled":"")+(t.dense===!0?" q-chip--dense":"")+(t.outline===!0?" q-chip--outline":"")+(t.selected===!0?" q-chip--selected":"")+(c.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(t.square===!0?" q-chip--square":"")+(o.value===!0?" q-chip--dark q-dark":"")}),d=g(()=>{const v=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},b={...v,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||i.lang.label.remove};return{chip:v,remove:b}});function h(v){v.keyCode===13&&f(v)}function f(v){t.disable||(n("update:selected",!t.selected),n("click",v))}function m(v){(v.keyCode===void 0||v.keyCode===13)&&(Pt(v),t.disable===!1&&(n("update:modelValue",!1),n("remove")))}function p(){const v=[];c.value===!0&&v.push(w("div",{class:"q-focus-helper"})),r.value===!0&&v.push(w(_e,{class:"q-chip__icon q-chip__icon--left",name:a.value}));const b=t.label!==void 0?[w("div",{class:"ellipsis"},[t.label])]:void 0;return v.push(w("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},im(e.default,b))),t.iconRight&&v.push(w(_e,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&v.push(w(_e,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:l.value,...d.value.remove,onClick:m,onKeyup:m})),v}return()=>{if(t.modelValue===!1)return;const v={class:u.value,style:s.value};return c.value===!0&&Object.assign(v,d.value.chip,{onClick:f,onKeyup:h}),nr("div",v,p(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[gd,t.ripple]])}}}),Qf=ze({name:"QMenu",inheritAttrs:!1,props:{...Sm,...Cd,...un,...La,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Ll},self:{type:String,validator:Ll},offset:{type:Array,validator:wm},scrollTarget:Od,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Md,"click","escapeKey"],setup(t,{slots:e,emit:n,attrs:i}){let o=null,s,r,a;const l=$e(),{proxy:c}=l,{$q:u}=c,d=N(null),h=N(!1),f=g(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),m=dn(t,u),{registerTick:p,removeTick:v}=yo(),{registerTimeout:b}=Io(),{transitionProps:x,transitionStyle:y}=Pd(t),{localScrollTarget:_,changeScrollEvent:C,unconfigureScrollTarget:S}=km(t,Q),{anchorEl:E,canShow:A}=Cm({showing:h}),{hide:D}=Id({showing:h,canShow:A,handleShow:de,handleHide:O,hideOnRouteChange:f,processOnMount:!0}),{showPortal:P,hidePortal:R,renderPortal:M}=Td(l,d,we,"menu"),H={anchorEl:E,innerRef:d,onClickOutside(Z){if(t.persistent!==!0&&h.value===!0)return D(Z),(Z.type==="touchstart"||Z.target.classList.contains("q-dialog__backdrop"))&&Pt(Z),!0}},z=g(()=>zl(t.anchor||(t.cover===!0?"center middle":"bottom start"),u.lang.rtl)),U=g(()=>t.cover===!0?z.value:zl(t.self||"top start",u.lang.rtl)),j=g(()=>(t.square===!0?" q-menu--square":"")+(m.value===!0?" q-menu--dark q-dark":"")),G=g(()=>t.autoClose===!0?{onClick:ae}:{}),Y=g(()=>h.value===!0&&t.persistent!==!0);ge(Y,Z=>{Z===!0?(qf(B),Tm(H)):(Zs(B),Fl(H))});function te(){rr(()=>{let Z=d.value;Z&&Z.contains(document.activeElement)!==!0&&(Z=Z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Z.querySelector("[autofocus], [data-autofocus]")||Z,Z.focus({preventScroll:!0}))})}function de(Z){if(o=t.noRefocus===!1?document.activeElement:null,Ff(fe),P(),Q(),s=void 0,Z!==void 0&&(t.touchPosition||t.contextMenu)){const Ee=Es(Z);if(Ee.left!==void 0){const{top:Xe,left:_t}=E.value.getBoundingClientRect();s={left:Ee.left-_t,top:Ee.top-Xe}}}r===void 0&&(r=ge(()=>u.screen.width+"|"+u.screen.height+"|"+t.self+"|"+t.anchor+"|"+u.lang.rtl,J)),t.noFocus!==!0&&document.activeElement.blur(),p(()=>{J(),t.noFocus!==!0&&te()}),b(()=>{u.platform.is.ios===!0&&(a=t.autoClose,d.value.click()),J(),P(!0),n("show",Z)},t.transitionDuration)}function O(Z){v(),R(),T(!0),o!==null&&(Z===void 0||Z.qClickOutside!==!0)&&(((Z&&Z.type.indexOf("key")===0?o.closest('[tabindex]:not([tabindex^="-"])'):void 0)||o).focus(),o=null),b(()=>{R(!0),n("hide",Z)},t.transitionDuration)}function T(Z){s=void 0,r!==void 0&&(r(),r=void 0),(Z===!0||h.value===!0)&&(Sa(fe),S(),Fl(H),Zs(B)),Z!==!0&&(o=null)}function Q(){(E.value!==null||t.scrollTarget!==void 0)&&(_.value=Dd(E.value,t.scrollTarget),C(_.value,J))}function ae(Z){a!==!0?(Pm(c,Z),n("click",Z)):a=!1}function fe(Z){Y.value===!0&&t.noFocus!==!0&&xd(d.value,Z.target)!==!0&&te()}function B(Z){n("escapeKey"),D(Z)}function J(){Mm({targetEl:d.value,offset:t.offset,anchorEl:E.value,anchorOrigin:z.value,selfOrigin:U.value,absoluteOffset:s,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function we(){return w(Po,x.value,()=>h.value===!0?w("div",{role:"menu",...i,ref:d,tabindex:-1,class:["q-menu q-position-engine scroll"+j.value,i.class],style:[i.style,y.value],...G.value},Ge(e.default)):null)}return Ot(T),Object.assign(c,{focus:te,updatePosition:J}),M}}),Wu=t=>["add","add-unique","toggle"].includes(t),mS=".*+?^${}()|[]\\",vS=Object.keys(gr);function na(t,e){if(typeof t=="function")return t;const n=t!==void 0?t:e;return i=>i!==null&&typeof i=="object"&&n in i?i[n]:i}const pS=ze({name:"QSelect",inheritAttrs:!1,props:{...ka,...mr,...gr,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Wu},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:t=>["default","menu","dialog"].includes(t),default:"default"},virtualScrollItemSize:ka.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...dl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:e,emit:n}){const{proxy:i}=$e(),{$q:o}=i,s=N(!1),r=N(!1),a=N(-1),l=N(""),c=N(!1),u=N(!1);let d=null,h=null,f,m,p,v=null,b,x,y,_;const C=N(null),S=N(null),E=N(null),A=N(null),D=N(null),P=Wf(t),R=Hf(F),M=g(()=>t.options.length),H=g(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:z,virtualScrollSliceSizeComputed:U,localResetVirtualScroll:j,padVirtualScroll:G,onVirtualScrollEvt:Y,scrollTo:te,setVirtualScrollSize:de}=Xf({virtualScrollLength:M,getVirtualScrollTarget:kr,getVirtualScrollEl:On,virtualScrollItemSizeComputed:H}),O=hl(),T=g(()=>{const k=t.mapOptions===!0&&t.multiple!==!0,oe=t.modelValue!==void 0&&(t.modelValue!==null||k===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0){const se=t.mapOptions===!0&&f!==void 0?f:[],Ie=oe.map(Ye=>W(Ye,se));return t.modelValue===null&&k===!0?Ie.filter(Ye=>Ye!==null):Ie}return oe}),Q=g(()=>{const k={};return vS.forEach(oe=>{const se=t[oe];se!==void 0&&(k[oe]=se)}),k}),ae=g(()=>t.optionsDark===null?O.isDark.value:t.optionsDark),fe=g(()=>Fo(T.value)),B=g(()=>{let k="q-field__input q-placeholder col";return t.hideSelected===!0||T.value.length===0?[k,t.inputClass]:(k+=" q-field__input--padding",t.inputClass===void 0?k:[k,t.inputClass])}),J=g(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),we=g(()=>M.value===0),Z=g(()=>T.value.map(k=>$.value(k)).join(", ")),Ee=g(()=>t.displayValue!==void 0?t.displayValue:Z.value),Xe=g(()=>t.optionsHtml===!0?()=>!0:k=>k!=null&&k.html===!0),_t=g(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||T.value.some(Xe.value))),et=g(()=>O.focused.value===!0?t.tabindex:-1),dt=g(()=>{const k={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":t.readonly===!0?"true":"false","aria-autocomplete":t.useInput===!0?"list":"none","aria-expanded":s.value===!0?"true":"false","aria-controls":`${O.targetUid.value}_lb`};return a.value>=0&&(k["aria-activedescendant"]=`${O.targetUid.value}_${a.value}`),k}),mt=g(()=>({id:`${O.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),ht=g(()=>T.value.map((k,oe)=>({index:oe,opt:k,html:Xe.value(k),selected:!0,removeAtIndex:Pe,toggleOption:tt,tabindex:et.value}))),Dt=g(()=>{if(M.value===0)return[];const{from:k,to:oe}=z.value;return t.options.slice(k,oe).map((se,Ie)=>{const Ye=re.value(se)===!0,Ue=me(se)===!0,xt=k+Ie,ct={clickable:!0,active:Ue,activeClass:Et.value,manualFocus:!0,focused:!1,disable:Ye,tabindex:-1,dense:t.optionsDense,dark:ae.value,role:"option","aria-selected":Ue===!0?"true":"false",id:`${O.targetUid.value}_${xt}`,onClick:()=>{tt(se)}};return Ye!==!0&&(a.value===xt&&(ct.focused=!0),o.platform.is.desktop===!0&&(ct.onMousemove=()=>{s.value===!0&&vt(xt)})),{index:xt,opt:se,html:Xe.value(se),label:$.value(se),selected:ct.active,focused:ct.focused,toggleOption:tt,setOptionIndex:vt,itemProps:ct}})}),Vt=g(()=>t.dropdownIcon!==void 0?t.dropdownIcon:o.iconSet.arrow.dropdown),Ut=g(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),Et=g(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),lt=g(()=>na(t.optionValue,"value")),$=g(()=>na(t.optionLabel,"label")),re=g(()=>na(t.optionDisable,"disable")),X=g(()=>T.value.map(lt.value)),ce=g(()=>{const k={onInput:F,onChange:R,onKeydown:Gt,onKeyup:nt,onKeypress:Ft,onFocus:ke,onClick(oe){m===!0&&wn(oe)}};return k.onCompositionstart=k.onCompositionupdate=k.onCompositionend=R,k});ge(T,k=>{f=k,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&O.innerLoading.value!==!0&&(r.value!==!0&&s.value!==!0||fe.value!==!0)&&(p!==!0&&_i(),(r.value===!0||s.value===!0)&&pe(""))},{immediate:!0}),ge(()=>t.fillInput,_i),ge(s,Tr),ge(M,zg);function De(k){return t.emitValue===!0?lt.value(k):k}function ye(k){if(k!==-1&&k=t.maxValues)return;const Ie=t.modelValue.slice();n("add",{index:Ie.length,value:se}),Ie.push(se),n("update:modelValue",Ie)}function tt(k,oe){if(O.editable.value!==!0||k===void 0||re.value(k)===!0)return;const se=lt.value(k);if(t.multiple!==!0){oe!==!0&&(ve(t.fillInput===!0?$.value(k):"",!0,!0),Un()),S.value!==null&&S.value.focus(),(T.value.length===0||eo(lt.value(T.value[0]),se)!==!0)&&n("update:modelValue",t.emitValue===!0?se:k);return}if((m!==!0||c.value===!0)&&O.focus(),ke(),T.value.length===0){const Ue=t.emitValue===!0?se:k;n("add",{index:0,value:Ue}),n("update:modelValue",t.multiple===!0?[Ue]:Ue);return}const Ie=t.modelValue.slice(),Ye=X.value.findIndex(Ue=>eo(Ue,se));if(Ye!==-1)n("remove",{index:Ye,value:Ie.splice(Ye,1)[0]});else{if(t.maxValues!==void 0&&Ie.length>=t.maxValues)return;const Ue=t.emitValue===!0?se:k;n("add",{index:Ie.length,value:Ue}),Ie.push(Ue)}n("update:modelValue",Ie)}function vt(k){if(o.platform.is.desktop!==!0)return;const oe=k!==-1&&k=0?$.value(t.options[se]):b,!0))}}function W(k,oe){const se=Ie=>eo(lt.value(Ie),k);return t.options.find(se)||oe.find(se)||k}function me(k){const oe=lt.value(k);return X.value.find(se=>eo(se,oe))!==void 0}function ke(k){t.useInput===!0&&S.value!==null&&(k===void 0||S.value===k.target&&k.target.value===Z.value)&&S.value.select()}function He(k){Js(k,27)===!0&&s.value===!0&&(wn(k),Un(),_i()),n("keyup",k)}function nt(k){const{value:oe}=k.target;if(k.keyCode!==void 0){He(k);return}if(k.target.value="",d!==null&&(clearTimeout(d),d=null),h!==null&&(clearTimeout(h),h=null),_i(),typeof oe=="string"&&oe.length!==0){const se=oe.toLocaleLowerCase(),Ie=Ue=>{const xt=t.options.find(ct=>Ue.value(ct).toLocaleLowerCase()===se);return xt===void 0?!1:(T.value.indexOf(xt)===-1?tt(xt):Un(),!0)},Ye=Ue=>{Ie(lt)!==!0&&(Ie($)===!0||Ue===!0||pe(oe,!0,()=>Ye(!0)))};Ye()}else O.clearValue(k)}function Ft(k){n("keypress",k)}function Gt(k){if(n("keydown",k),Va(k)===!0)return;const oe=l.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),se=k.shiftKey!==!0&&t.disableTabSelection!==!0&&t.multiple!==!0&&(a.value!==-1||oe===!0);if(k.keyCode===27){qn(k);return}if(k.keyCode===9&&se===!1){bi();return}if(k.target===void 0||k.target.id!==O.targetUid.value||O.editable.value!==!0)return;if(k.keyCode===40&&O.innerLoading.value!==!0&&s.value===!1){Pt(k),yi();return}if(k.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&l.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?ye(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&n("update:modelValue",null);return}(k.keyCode===35||k.keyCode===36)&&(typeof l.value!="string"||l.value.length===0)&&(Pt(k),a.value=-1,At(k.keyCode===36?1:-1,t.multiple)),(k.keyCode===33||k.keyCode===34)&&U.value!==void 0&&(Pt(k),a.value=Math.max(-1,Math.min(M.value,a.value+(k.keyCode===33?-1:1)*U.value.view)),At(k.keyCode===33?1:-1,t.multiple)),(k.keyCode===38||k.keyCode===40)&&(Pt(k),At(k.keyCode===38?-1:1,t.multiple));const Ie=M.value;if((y===void 0||_0&&t.useInput!==!0&&k.key!==void 0&&k.key.length===1&&k.altKey===!1&&k.ctrlKey===!1&&k.metaKey===!1&&(k.keyCode!==32||y.length!==0)){s.value!==!0&&yi(k);const Ye=k.key.toLocaleLowerCase(),Ue=y.length===1&&y[0]===Ye;_=Date.now()+1500,Ue===!1&&(Pt(k),y+=Ye);const xt=new RegExp("^"+y.split("").map(Ir=>mS.indexOf(Ir)!==-1?"\\"+Ir:Ir).join(".*"),"i");let ct=a.value;if(Ue===!0||ct<0||xt.test($.value(t.options[ct]))!==!0)do ct=Bl(ct+1,-1,Ie-1);while(ct!==a.value&&(re.value(t.options[ct])===!0||xt.test($.value(t.options[ct]))!==!0));a.value!==ct&&ut(()=>{vt(ct),te(ct),ct>=0&&t.useInput===!0&&t.fillInput===!0&&ie($.value(t.options[ct]),!0)});return}if(!(k.keyCode!==13&&(k.keyCode!==32||t.useInput===!0||y!=="")&&(k.keyCode!==9||se===!1))){if(k.keyCode!==9&&Pt(k),a.value!==-1&&a.value{if(xt){if(Wu(xt)!==!0)return}else xt=t.newValueMode;if(ve("",t.multiple!==!0,!0),Ue==null)return;(xt==="toggle"?tt:ot)(Ue,xt==="add-unique"),t.multiple!==!0&&(S.value!==null&&S.value.focus(),Un())};if(t.onNewValue!==void 0?n("newValue",l.value,Ye):Ye(l.value),t.multiple!==!0)return}s.value===!0?bi():O.innerLoading.value!==!0&&yi()}}function On(){return m===!0?D.value:E.value!==null&&E.value.contentEl!==null?E.value.contentEl:void 0}function kr(){return On()}function Cr(){return t.hideSelected===!0?[]:e["selected-item"]!==void 0?ht.value.map(k=>e["selected-item"](k)).slice():e.selected!==void 0?[].concat(e.selected()):t.useChips===!0?ht.value.map((k,oe)=>w(Ks,{key:"option-"+oe,removable:O.editable.value===!0&&re.value(k.opt)!==!0,dense:!0,textColor:t.color,tabindex:et.value,onRemove(){k.removeAtIndex(oe)}},()=>w("span",{class:"ellipsis",[k.html===!0?"innerHTML":"textContent"]:$.value(k.opt)}))):[w("span",{[_t.value===!0?"innerHTML":"textContent"]:Ee.value})]}function Qo(){if(we.value===!0)return e["no-option"]!==void 0?e["no-option"]({inputValue:l.value}):void 0;const k=e.option!==void 0?e.option:se=>w(or,{key:se.index,...se.itemProps},()=>w(Oo,()=>w(sr,()=>w("span",{[se.html===!0?"innerHTML":"textContent"]:se.label}))));let oe=G("div",Dt.value.map(k));return e["before-options"]!==void 0&&(oe=e["before-options"]().concat(oe)),di(e["after-options"],oe)}function Mr(k,oe){const se=oe===!0?{...dt.value,...O.splitAttrs.attributes.value}:void 0,Ie={ref:oe===!0?S:void 0,key:"i_t",class:B.value,style:t.inputStyle,value:l.value!==void 0?l.value:"",type:"search",...se,id:oe===!0?O.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":k===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...ce.value};return k!==!0&&m===!0&&(Array.isArray(Ie.class)===!0?Ie.class=[...Ie.class,"no-pointer-events"]:Ie.class+=" no-pointer-events"),w("input",Ie)}function F(k){d!==null&&(clearTimeout(d),d=null),h!==null&&(clearTimeout(h),h=null),!(k&&k.target&&k.target.qComposing===!0)&&(ie(k.target.value||""),p=!0,b=l.value,O.focused.value!==!0&&(m!==!0||c.value===!0)&&O.focus(),t.onFilter!==void 0&&(d=setTimeout(()=>{d=null,pe(l.value)},t.inputDebounce)))}function ie(k,oe){l.value!==k&&(l.value=k,oe===!0||t.inputDebounce===0||t.inputDebounce==="0"?n("inputValue",k):h=setTimeout(()=>{h=null,n("inputValue",k)},t.inputDebounce))}function ve(k,oe,se){p=se!==!0,t.useInput===!0&&(ie(k,!0),(oe===!0||se!==!0)&&(b=k),oe!==!0&&pe(k))}function pe(k,oe,se){if(t.onFilter===void 0||oe!==!0&&O.focused.value!==!0)return;O.innerLoading.value===!0?n("filterAbort"):(O.innerLoading.value=!0,u.value=!0),k!==""&&t.multiple!==!0&&T.value.length!==0&&p!==!0&&k===$.value(T.value[0])&&(k="");const Ie=setTimeout(()=>{s.value===!0&&(s.value=!1)},10);v!==null&&clearTimeout(v),v=Ie,n("filter",k,(Ye,Ue)=>{(oe===!0||O.focused.value===!0)&&v===Ie&&(clearTimeout(v),typeof Ye=="function"&&Ye(),u.value=!1,ut(()=>{O.innerLoading.value=!1,O.editable.value===!0&&(oe===!0?s.value===!0&&Un():s.value===!0?Tr(!0):s.value=!0),typeof Ue=="function"&&ut(()=>{Ue(i)}),typeof se=="function"&&ut(()=>{se(i)})}))},()=>{O.focused.value===!0&&v===Ie&&(clearTimeout(v),O.innerLoading.value=!1,u.value=!1),s.value===!0&&(s.value=!1)})}function Te(){return w(Qf,{ref:E,class:J.value,style:t.popupContentStyle,modelValue:s.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&we.value!==!0&&t.useInput!==!0,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:ae.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:Ut.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...mt.value,onScrollPassive:Y,onBeforeShow:Pl,onBeforeHide:it,onShow:Ke},Qo)}function it(k){Tl(k),bi()}function Ke(){de()}function Jt(k){wn(k),S.value!==null&&S.value.focus(),c.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Ct(k){wn(k),ut(()=>{c.value=!1})}function vi(){const k=[w(Kf,{class:`col-auto ${O.fieldClass.value}`,...Q.value,for:O.targetUid.value,dark:ae.value,square:!0,loading:u.value,itemAligned:!1,filled:!0,stackLabel:l.value.length!==0,...O.splitAttrs.listeners.value,onFocus:Jt,onBlur:Ct},{...e,rawControl:()=>O.getControl(!0),before:void 0,after:void 0})];return s.value===!0&&k.push(w("div",{ref:D,class:J.value+" scroll",style:t.popupContentStyle,...mt.value,onClick:qn,onScrollPassive:Y},Qo())),w(Xi,{ref:A,modelValue:r.value,position:t.useInput===!0?"top":void 0,transitionShow:x,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Pl,onBeforeHide:pi,onHide:Pr,onShow:Fg},()=>w("div",{class:"q-select__dialog"+(ae.value===!0?" q-select__dialog--dark q-dark":"")+(c.value===!0?" q-select__dialog--focused":"")},k))}function pi(k){Tl(k),A.value!==null&&A.value.__updateRefocusTarget(O.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),O.focused.value=!1}function Pr(k){Un(),O.focused.value===!1&&n("blur",k),_i()}function Fg(){const k=document.activeElement;(k===null||k.id!==O.targetUid.value)&&S.value!==null&&S.value!==k&&S.value.focus(),de()}function bi(){r.value!==!0&&(a.value=-1,s.value===!0&&(s.value=!1),O.focused.value===!1&&(v!==null&&(clearTimeout(v),v=null),O.innerLoading.value===!0&&(n("filterAbort"),O.innerLoading.value=!1,u.value=!1)))}function yi(k){O.editable.value===!0&&(m===!0?(O.onControlFocusin(k),r.value=!0,ut(()=>{O.focus()})):O.focus(),t.onFilter!==void 0?pe(l.value):(we.value!==!0||e["no-option"]!==void 0)&&(s.value=!0))}function Un(){r.value=!1,bi()}function _i(){t.useInput===!0&&ve(t.multiple!==!0&&t.fillInput===!0&&T.value.length!==0&&$.value(T.value[0])||"",!0,!0)}function Tr(k){let oe=-1;if(k===!0){if(T.value.length!==0){const se=lt.value(T.value[0]);oe=t.options.findIndex(Ie=>eo(lt.value(Ie),se))}j(oe)}vt(oe)}function zg(k,oe){s.value===!0&&O.innerLoading.value===!1&&(j(-1,!0),ut(()=>{s.value===!0&&O.innerLoading.value===!1&&(k>oe?j():Tr(!0))}))}function Ml(){r.value===!1&&E.value!==null&&E.value.updatePosition()}function Pl(k){k!==void 0&&wn(k),n("popupShow",k),O.hasPopupOpen=!0,O.onControlFocusin(k)}function Tl(k){k!==void 0&&wn(k),n("popupHide",k),O.hasPopupOpen=!1,O.onControlFocusout(k)}function Il(){m=o.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?e["no-option"]!==void 0||t.onFilter!==void 0||we.value===!1:!0),x=o.platform.is.ios===!0&&m===!0&&t.useInput===!0?"fade":t.transitionShow}return Sd(Il),om(Ml),Il(),Ot(()=>{d!==null&&clearTimeout(d),h!==null&&clearTimeout(h)}),Object.assign(i,{showPopup:yi,hidePopup:Un,removeAtIndex:ye,add:ot,toggleOption:tt,getOptionIndex:()=>a.value,setOptionIndex:vt,moveOptionSelection:At,filter:pe,updateMenuPosition:Ml,updateInputValue:ve,isOptionSelected:me,getEmittingOptionValue:De,isOptionDisabled:(...k)=>re.value.apply(null,k)===!0,getOptionValue:(...k)=>lt.value.apply(null,k),getOptionLabel:(...k)=>$.value.apply(null,k)}),Object.assign(O,{innerValue:T,fieldClass:g(()=>`q-select q-field--auto-height q-select--with${t.useInput!==!0?"out":""}-input q-select--with${t.useChips!==!0?"out":""}-chips q-select--${t.multiple===!0?"multiple":"single"}`),inputRef:C,targetRef:S,hasValue:fe,showPopup:yi,floatingLabel:g(()=>t.hideSelected!==!0&&fe.value===!0||typeof l.value=="number"||l.value.length!==0||Fo(t.displayValue)),getControlChild:()=>{if(O.editable.value!==!1&&(r.value===!0||we.value!==!0||e["no-option"]!==void 0))return m===!0?vi():Te();O.hasPopupOpen===!0&&(O.hasPopupOpen=!1)},controlEvents:{onFocusin(k){O.onControlFocusin(k)},onFocusout(k){O.onControlFocusout(k,()=>{_i(),bi()})},onClick(k){if(qn(k),m!==!0&&s.value===!0){bi(),S.value!==null&&S.value.focus();return}yi(k)}},getControl:k=>{const oe=Cr(),se=k===!0||r.value!==!0||m!==!0;if(t.useInput===!0)oe.push(Mr(k,se));else if(O.editable.value===!0){const Ye=se===!0?dt.value:void 0;oe.push(w("input",{ref:se===!0?S:void 0,key:"d_t",class:"q-select__focus-target",id:se===!0?O.targetUid.value:void 0,value:Ee.value,readonly:!0,"data-autofocus":k===!0||t.autofocus===!0||void 0,...Ye,onKeydown:Gt,onKeyup:He,onKeypress:Ft})),se===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&oe.push(w("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:nt}))}if(P.value!==void 0&&t.disable!==!0&&X.value.length!==0){const Ye=X.value.map(Ue=>w("option",{value:Ue,selected:!0}));oe.push(w("select",{class:"hidden",name:P.value,multiple:t.multiple},Ye))}const Ie=t.useInput===!0||se!==!0?void 0:O.splitAttrs.attributes.value;return w("div",{class:"q-field__native row items-center",...Ie,...O.splitAttrs.listeners.value},oe)},getInnerAppend:()=>t.loading!==!0&&u.value!==!0&&t.hideDropdownIcon!==!0?[w(_e,{class:"q-select__dropdown-icon"+(s.value===!0?" rotate-180":""),name:Vt.value})]:null}),fl(O)}}),bS={xs:2,sm:4,md:6,lg:10,xl:14};function Hu(t,e,n){return{transform:e===!0?`translateX(${n.lang.rtl===!0?"-":""}100%) scale3d(${-t},1,1)`:`scale3d(${t},1,1)`}}const yS=ze({name:"QLinearProgress",props:{...un,...Aa,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(t,{slots:e}){const{proxy:n}=$e(),i=dn(t,n.$q),o=Ra(t,bS),s=g(()=>t.indeterminate===!0||t.query===!0),r=g(()=>t.reverse!==t.query),a=g(()=>({...o.value!==null?o.value:{},"--q-linear-progress-speed":`${t.animationSpeed}ms`})),l=g(()=>"q-linear-progress"+(t.color!==void 0?` text-${t.color}`:"")+(t.reverse===!0||t.query===!0?" q-linear-progress--reverse":"")+(t.rounded===!0?" rounded-borders":"")),c=g(()=>Hu(t.buffer!==void 0?t.buffer:1,r.value,n.$q)),u=g(()=>`with${t.instantFeedback===!0?"out":""}-transition`),d=g(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${u.value} q-linear-progress__track--${i.value===!0?"dark":"light"}`+(t.trackColor!==void 0?` bg-${t.trackColor}`:"")),h=g(()=>Hu(s.value===!0?1:t.value,r.value,n.$q)),f=g(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${u.value} q-linear-progress__model--${s.value===!0?"in":""}determinate`),m=g(()=>({width:`${t.value*100}%`})),p=g(()=>`q-linear-progress__stripe absolute-${t.reverse===!0?"right":"left"} q-linear-progress__stripe--${u.value}`);return()=>{const v=[w("div",{class:d.value,style:c.value}),w("div",{class:f.value,style:h.value})];return t.stripe===!0&&s.value===!1&&v.push(w("div",{class:p.value,style:m.value})),w("div",{class:l.value,style:a.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":t.indeterminate===!0?void 0:t.value},di(e.default,v))}}});function _S(t,e){const n=N(null),i=g(()=>t.disable===!0?null:w("span",{ref:n,class:"no-outline",tabindex:-1}));function o(s){const r=e.value;s!==void 0&&s.type.indexOf("key")===0?r!==null&&document.activeElement!==r&&r.contains(document.activeElement)===!0&&r.focus():n.value!==null&&(s===void 0||r!==null&&r.contains(s.target)===!0)&&n.value.focus()}return{refocusTargetEl:i,refocusTarget:o}}const xS={xs:30,sm:35,md:40,lg:50,xl:60},Gf={...un,...Aa,...mr,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>t==="tf"||t==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Jf=["update:modelValue"];function eg(t,e){const{props:n,slots:i,emit:o,proxy:s}=$e(),{$q:r}=s,a=dn(n,r),l=N(null),{refocusTargetEl:c,refocusTarget:u}=_S(n,l),d=Ra(n,xS),h=g(()=>n.val!==void 0&&Array.isArray(n.modelValue)),f=g(()=>{const M=Sn(n.val);return h.value===!0?n.modelValue.findIndex(H=>Sn(H)===M):-1}),m=g(()=>h.value===!0?f.value!==-1:Sn(n.modelValue)===Sn(n.trueValue)),p=g(()=>h.value===!0?f.value===-1:Sn(n.modelValue)===Sn(n.falseValue)),v=g(()=>m.value===!1&&p.value===!1),b=g(()=>n.disable===!0?-1:n.tabindex||0),x=g(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(a.value===!0?` q-${t}--dark`:"")+(n.dense===!0?` q-${t}--dense`:"")+(n.leftLabel===!0?" reverse":"")),y=g(()=>{const M=m.value===!0?"truthy":p.value===!0?"falsy":"indet",H=n.color!==void 0&&(n.keepColor===!0||(t==="toggle"?m.value===!0:p.value!==!0))?` text-${n.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${M}${H}`}),_=g(()=>{const M={type:"checkbox"};return n.name!==void 0&&Object.assign(M,{".checked":m.value,"^checked":m.value===!0?"checked":void 0,name:n.name,value:h.value===!0?n.val:n.trueValue}),M}),C=Nf(_),S=g(()=>{const M={tabindex:b.value,role:t==="toggle"?"switch":"checkbox","aria-label":n.label,"aria-checked":v.value===!0?"mixed":m.value===!0?"true":"false"};return n.disable===!0&&(M["aria-disabled"]="true"),M});function E(M){M!==void 0&&(Pt(M),u(M)),n.disable!==!0&&o("update:modelValue",A(),M)}function A(){if(h.value===!0){if(m.value===!0){const M=n.modelValue.slice();return M.splice(f.value,1),M}return n.modelValue.concat([n.val])}if(m.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(p.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function D(M){(M.keyCode===13||M.keyCode===32)&&Pt(M)}function P(M){(M.keyCode===13||M.keyCode===32)&&E(M)}const R=e(m,v);return Object.assign(s,{toggle:E}),()=>{const M=R();n.disable!==!0&&C(M,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const H=[w("div",{class:y.value,style:d.value,"aria-hidden":"true"},M)];c.value!==null&&H.push(c.value);const z=n.label!==void 0?di(i.default,[n.label]):Ge(i.default);return z!==void 0&&H.push(w("div",{class:`q-${t}__label q-anchor--skip`},z)),w("div",{ref:l,class:x.value,...S.value,onClick:E,onKeydown:D,onKeyup:P},H)}}const SS=()=>w("div",{key:"svg",class:"q-checkbox__bg absolute"},[w("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[w("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),w("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ia=ze({name:"QCheckbox",props:Gf,emits:Jf,setup(t){const e=SS();function n(i,o){const s=g(()=>(i.value===!0?t.checkedIcon:o.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[w("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[w(_e,{class:"q-checkbox__icon",name:s.value})])]:[e]}return eg("checkbox",n)}});function wS(t,e){return new Date(t)-new Date(e)}const kS={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:t=>t==="ad"||t==="da",default:"ad"}};function CS(t,e,n,i){const o=g(()=>{const{sortBy:a}=e.value;return a&&n.value.find(l=>l.name===a)||null}),s=g(()=>t.sortMethod!==void 0?t.sortMethod:(a,l,c)=>{const u=n.value.find(f=>f.name===l);if(u===void 0||u.field===void 0)return a;const d=c===!0?-1:1,h=typeof u.field=="function"?f=>u.field(f):f=>f[u.field];return a.sort((f,m)=>{let p=h(f),v=h(m);return u.rawSort!==void 0?u.rawSort(p,v,f,m)*d:p==null?-1*d:v==null?1*d:u.sort!==void 0?u.sort(p,v,f,m)*d:To(p)===!0&&To(v)===!0?(p-v)*d:Vl(p)===!0&&Vl(v)===!0?wS(p,v)*d:typeof p=="boolean"&&typeof v=="boolean"?(p-v)*d:([p,v]=[p,v].map(b=>(b+"").toLocaleString().toLowerCase()),ph.name===a);d!==void 0&&d.sortOrder&&(l=d.sortOrder)}let{sortBy:c,descending:u}=e.value;c!==a?(c=a,u=l==="da"):t.binaryStateSort===!0?u=!u:u===!0?l==="ad"?c=null:u=!1:l==="ad"?u=!0:c=null,i({sortBy:c,descending:u,page:1})}return{columnToSort:o,computedSortMethod:s,sort:r}}const MS={filter:[String,Object],filterMethod:Function};function PS(t,e){const n=g(()=>t.filterMethod!==void 0?t.filterMethod:(i,o,s,r)=>{const a=o?o.toLowerCase():"";return i.filter(l=>s.some(c=>{const u=r(c,l)+"";return(u==="undefined"||u==="null"?"":u.toLowerCase()).indexOf(a)!==-1}))});return ge(()=>t.filter,()=>{ut(()=>{e({page:1},!0)})},{deep:!0}),{computedFilterMethod:n}}function TS(t,e){for(const n in e)if(e[n]!==t[n])return!1;return!0}function ju(t){return t.page<1&&(t.page=1),t.rowsPerPage!==void 0&&t.rowsPerPage<1&&(t.rowsPerPage=0),t}const IS={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function OS(t,e){const{props:n,emit:i}=t,o=N(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length!==0?n.rowsPerPageOptions[0]:5},n.pagination)),s=g(()=>{const u=n["onUpdate:pagination"]!==void 0?{...o.value,...n.pagination}:o.value;return ju(u)}),r=g(()=>s.value.rowsNumber!==void 0);function a(u){l({pagination:u,filter:n.filter})}function l(u={}){ut(()=>{i("request",{pagination:u.pagination||s.value,filter:u.filter||n.filter,getCellValue:e})})}function c(u,d){const h=ju({...s.value,...u});if(TS(s.value,h)===!0){r.value===!0&&d===!0&&a(h);return}if(r.value===!0){a(h);return}n.pagination!==void 0&&n["onUpdate:pagination"]!==void 0?i("update:pagination",h):o.value=h}return{innerPagination:o,computedPagination:s,isServerSide:r,requestServerInteraction:l,setPagination:c}}function DS(t,e,n,i,o,s){const{props:r,emit:a,proxy:{$q:l}}=t,c=g(()=>i.value===!0?n.value.rowsNumber||0:s.value),u=g(()=>{const{page:_,rowsPerPage:C}=n.value;return(_-1)*C}),d=g(()=>{const{page:_,rowsPerPage:C}=n.value;return _*C}),h=g(()=>n.value.page===1),f=g(()=>n.value.rowsPerPage===0?1:Math.max(1,Math.ceil(c.value/n.value.rowsPerPage))),m=g(()=>d.value===0?!0:n.value.page>=f.value),p=g(()=>(r.rowsPerPageOptions.includes(e.value.rowsPerPage)?r.rowsPerPageOptions:[e.value.rowsPerPage].concat(r.rowsPerPageOptions)).map(C=>({label:C===0?l.lang.table.allRows:""+C,value:C})));ge(f,(_,C)=>{if(_===C)return;const S=n.value.page;_&&!S?o({page:1}):_1&&o({page:_-1})}function x(){const{page:_,rowsPerPage:C}=n.value;d.value>0&&_*C["single","multiple","none"].includes(t)},selected:{type:Array,default:()=>[]}},ES=["update:selected","selection"];function AS(t,e,n,i){const o=g(()=>{const m={};return t.selected.map(i.value).forEach(p=>{m[p]=!0}),m}),s=g(()=>t.selection!=="none"),r=g(()=>t.selection==="single"),a=g(()=>t.selection==="multiple"),l=g(()=>n.value.length!==0&&n.value.every(m=>o.value[i.value(m)]===!0)),c=g(()=>l.value!==!0&&n.value.some(m=>o.value[i.value(m)]===!0)),u=g(()=>t.selected.length);function d(m){return o.value[m]===!0}function h(){e("update:selected",[])}function f(m,p,v,b){e("selection",{rows:p,added:v,keys:m,evt:b});const x=r.value===!0?v===!0?p:[]:v===!0?t.selected.concat(p):t.selected.filter(y=>m.includes(i.value(y))===!1);e("update:selected",x)}return{hasSelectionMode:s,singleSelection:r,multipleSelection:a,allRowsSelected:l,someRowsSelected:c,rowsSelectedNumber:u,isRowSelected:d,clearSelection:h,updateSelection:f}}function $u(t){return Array.isArray(t)?t.slice():[]}const RS={expanded:Array},qS=["update:expanded"];function LS(t,e){const n=N($u(t.expanded));ge(()=>t.expanded,r=>{n.value=$u(r)});function i(r){return n.value.includes(r)}function o(r){t.expanded!==void 0?e("update:expanded",r):n.value=r}function s(r,a){const l=n.value.slice(),c=l.indexOf(r);a===!0?c===-1&&(l.push(r),o(l)):c!==-1&&(l.splice(c,1),o(l))}return{isRowExpanded:i,setExpanded:o,updateExpanded:s}}const FS={visibleColumns:Array};function zS(t,e,n){const i=g(()=>{if(t.columns!==void 0)return t.columns;const a=t.rows[0];return a!==void 0?Object.keys(a).map(l=>({name:l,label:l.toUpperCase(),field:l,align:To(a[l])?"right":"left",sortable:!0})):[]}),o=g(()=>{const{sortBy:a,descending:l}=e.value;return(t.visibleColumns!==void 0?i.value.filter(u=>u.required===!0||t.visibleColumns.includes(u.name)===!0):i.value).map(u=>{const d=u.align||"right",h=`text-${d}`;return{...u,align:d,__iconClass:`q-table__sort-icon q-table__sort-icon--${d}`,__thClass:h+(u.headerClasses!==void 0?" "+u.headerClasses:"")+(u.sortable===!0?" sortable":"")+(u.name===a?` sorted ${l===!0?"sort-desc":""}`:""),__tdStyle:u.style!==void 0?typeof u.style!="function"?()=>u.style:u.style:()=>null,__tdClass:u.classes!==void 0?typeof u.classes!="function"?()=>h+" "+u.classes:f=>h+" "+u.classes(f):()=>h}})}),s=g(()=>{const a={};return o.value.forEach(l=>{a[l.name]=l}),a}),r=g(()=>t.tableColspan!==void 0?t.tableColspan:o.value.length+(n.value===!0?1:0));return{colList:i,computedCols:o,computedColsMap:s,computedColspan:r}}const ws="q-table__bottom row items-center",tg={};Zf.forEach(t=>{tg[t]={}});const BS=ze({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:t=>["horizontal","vertical","cell","none"].includes(t)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...tg,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...un,...Ld,...FS,...MS,...IS,...RS,...VS,...kS},emits:["request","virtualScroll",...Fd,...qS,...ES],setup(t,{slots:e,emit:n}){const i=$e(),{proxy:{$q:o}}=i,s=dn(t,o),{inFullscreen:r,toggleFullscreen:a}=zd(),l=g(()=>typeof t.rowKey=="function"?t.rowKey:F=>F[t.rowKey]),c=N(null),u=N(null),d=g(()=>t.grid!==!0&&t.virtualScroll===!0),h=g(()=>" q-table__card"+(s.value===!0?" q-table__card--dark q-dark":"")+(t.square===!0?" q-table--square":"")+(t.flat===!0?" q-table--flat":"")+(t.bordered===!0?" q-table--bordered":"")),f=g(()=>`q-table__container q-table--${t.separator}-separator column no-wrap`+(t.grid===!0?" q-table--grid":h.value)+(s.value===!0?" q-table--dark":"")+(t.dense===!0?" q-table--dense":"")+(t.wrapCells===!1?" q-table--no-wrap":"")+(r.value===!0?" fullscreen scroll":"")),m=g(()=>f.value+(t.loading===!0?" q-table--loading":""));ge(()=>t.tableStyle+t.tableClass+t.tableHeaderStyle+t.tableHeaderClass+f.value,()=>{d.value===!0&&u.value!==null&&u.value.reset()});const{innerPagination:p,computedPagination:v,isServerSide:b,requestServerInteraction:x,setPagination:y}=OS(i,vt),{computedFilterMethod:_}=PS(t,y),{isRowExpanded:C,setExpanded:S,updateExpanded:E}=LS(t,n),A=g(()=>{let F=t.rows;if(b.value===!0||F.length===0)return F;const{sortBy:ie,descending:ve}=v.value;return t.filter&&(F=_.value(F,t.filter,O.value,vt)),ae.value!==null&&(F=fe.value(t.rows===F?F.slice():F,ie,ve)),F}),D=g(()=>A.value.length),P=g(()=>{let F=A.value;if(b.value===!0)return F;const{rowsPerPage:ie}=v.value;return ie!==0&&(J.value===0&&t.rows!==F?F.length>we.value&&(F=F.slice(0,we.value)):F=F.slice(J.value,we.value)),F}),{hasSelectionMode:R,singleSelection:M,multipleSelection:H,allRowsSelected:z,someRowsSelected:U,rowsSelectedNumber:j,isRowSelected:G,clearSelection:Y,updateSelection:te}=AS(t,n,P,l),{colList:de,computedCols:O,computedColsMap:T,computedColspan:Q}=zS(t,v,R),{columnToSort:ae,computedSortMethod:fe,sort:B}=CS(t,v,de,y),{firstRowIndex:J,lastRowIndex:we,isFirstPage:Z,isLastPage:Ee,pagesNumber:Xe,computedRowsPerPageOptions:_t,computedRowsNumber:et,firstPage:dt,prevPage:mt,nextPage:ht,lastPage:Dt}=DS(i,p,v,b,y,D),Vt=g(()=>P.value.length===0),Ut=g(()=>{const F={};return Zf.forEach(ie=>{F[ie]=t[ie]}),F.virtualScrollItemSize===void 0&&(F.virtualScrollItemSize=t.dense===!0?28:48),F});function Et(){d.value===!0&&u.value.reset()}function lt(){if(t.grid===!0)return Mr();const F=t.hideHeader!==!0?ke:null;if(d.value===!0){const ve=e["top-row"],pe=e["bottom-row"],Te={default:it=>ce(it.item,e.body,it.index)};if(ve!==void 0){const it=w("tbody",ve({cols:O.value}));Te.before=F===null?()=>it:()=>[F()].concat(it)}else F!==null&&(Te.before=F);return pe!==void 0&&(Te.after=()=>w("tbody",pe({cols:O.value}))),w(fS,{ref:u,class:t.tableClass,style:t.tableStyle,...Ut.value,scrollTarget:t.virtualScrollTarget,items:P.value,type:"__qtable",tableColspan:Q.value,onVirtualScroll:re},Te)}const ie=[De()];return F!==null&&ie.unshift(F()),$f({class:["q-table__middle scroll",t.tableClass],style:t.tableStyle},ie)}function $(F,ie){if(u.value!==null){u.value.scrollTo(F,ie);return}F=parseInt(F,10);const ve=c.value.querySelector(`tbody tr:nth-of-type(${F+1})`);if(ve!==null){const pe=c.value.querySelector(".q-table__middle.scroll"),Te=ve.offsetTop-t.virtualScrollStickySizeStart,it=Te{const vi=e[`body-cell-${Ct.name}`],pi=vi!==void 0?vi:it;return pi!==void 0?pi(Pe({key:pe,row:F,pageIndex:ve,col:Ct})):w("td",{class:Ct.__tdClass(F),style:Ct.__tdStyle(F)},vt(Ct,F))});if(R.value===!0){const Ct=e["body-selection"],vi=Ct!==void 0?Ct(ot({key:pe,row:F,pageIndex:ve})):[w(ia,{modelValue:Te,color:t.color,dark:s.value,dense:t.dense,"onUpdate:modelValue":(pi,Pr)=>{te([pe],[F],pi,Pr)}})];Ke.unshift(w("td",{class:"q-table--col-auto-width"},vi))}const Jt={key:pe,class:{selected:Te}};return t.onRowClick!==void 0&&(Jt.class["cursor-pointer"]=!0,Jt.onClick=Ct=>{n("rowClick",Ct,F,ve)}),t.onRowDblclick!==void 0&&(Jt.class["cursor-pointer"]=!0,Jt.onDblclick=Ct=>{n("rowDblclick",Ct,F,ve)}),t.onRowContextmenu!==void 0&&(Jt.class["cursor-pointer"]=!0,Jt.onContextmenu=Ct=>{n("rowContextmenu",Ct,F,ve)}),w("tr",Jt,Ke)}function De(){const F=e.body,ie=e["top-row"],ve=e["bottom-row"];let pe=P.value.map((Te,it)=>ce(Te,F,it));return ie!==void 0&&(pe=ie({cols:O.value}).concat(pe)),ve!==void 0&&(pe=pe.concat(ve({cols:O.value}))),w("tbody",pe)}function ye(F){return tt(F),F.cols=F.cols.map(ie=>ei({...ie},"value",()=>vt(ie,F.row))),F}function Pe(F){return tt(F),ei(F,"value",()=>vt(F.col,F.row)),F}function ot(F){return tt(F),F}function tt(F){Object.assign(F,{cols:O.value,colsMap:T.value,sort:B,rowIndex:J.value+F.pageIndex,color:t.color,dark:s.value,dense:t.dense}),R.value===!0&&ei(F,"selected",()=>G(F.key),(ie,ve)=>{te([F.key],[F.row],ie,ve)}),ei(F,"expand",()=>C(F.key),ie=>{E(F.key,ie)})}function vt(F,ie){const ve=typeof F.field=="function"?F.field(ie):ie[F.field];return F.format!==void 0?F.format(ve,ie):ve}const At=g(()=>({pagination:v.value,pagesNumber:Xe.value,isFirstPage:Z.value,isLastPage:Ee.value,firstPage:dt,prevPage:mt,nextPage:ht,lastPage:Dt,inFullscreen:r.value,toggleFullscreen:a}));function W(){const F=e.top,ie=e["top-left"],ve=e["top-right"],pe=e["top-selection"],Te=R.value===!0&&pe!==void 0&&j.value>0,it="q-table__top relative-position row items-center";if(F!==void 0)return w("div",{class:it},[F(At.value)]);let Ke;if(Te===!0?Ke=pe(At.value).slice():(Ke=[],ie!==void 0?Ke.push(w("div",{class:"q-table__control"},[ie(At.value)])):t.title&&Ke.push(w("div",{class:"q-table__control"},[w("div",{class:["q-table__title",t.titleClass]},t.title)]))),ve!==void 0&&(Ke.push(w("div",{class:"q-table__separator col"})),Ke.push(w("div",{class:"q-table__control"},[ve(At.value)]))),Ke.length!==0)return w("div",{class:it},Ke)}const me=g(()=>U.value===!0?null:z.value);function ke(){const F=He();return t.loading===!0&&e.loading===void 0&&F.push(w("tr",{class:"q-table__progress"},[w("th",{class:"relative-position",colspan:Q.value},X())])),w("thead",F)}function He(){const F=e.header,ie=e["header-cell"];if(F!==void 0)return F(nt({header:!0})).slice();const ve=O.value.map(pe=>{const Te=e[`header-cell-${pe.name}`],it=Te!==void 0?Te:ie,Ke=nt({col:pe});return it!==void 0?it(Ke):w(wa,{key:pe.name,props:Ke},()=>pe.label)});if(M.value===!0&&t.grid!==!0)ve.unshift(w("th",{class:"q-table--col-auto-width"}," "));else if(H.value===!0){const pe=e["header-selection"],Te=pe!==void 0?pe(nt({})):[w(ia,{color:t.color,modelValue:me.value,dark:s.value,dense:t.dense,"onUpdate:modelValue":Ft})];ve.unshift(w("th",{class:"q-table--col-auto-width"},Te))}return[w("tr",{class:t.tableHeaderClass,style:t.tableHeaderStyle},ve)]}function nt(F){return Object.assign(F,{cols:O.value,sort:B,colsMap:T.value,color:t.color,dark:s.value,dense:t.dense}),H.value===!0&&ei(F,"selected",()=>me.value,Ft),F}function Ft(F){U.value===!0&&(F=!1),te(P.value.map(l.value),P.value,F)}const Gt=g(()=>{const F=[t.iconFirstPage||o.iconSet.table.firstPage,t.iconPrevPage||o.iconSet.table.prevPage,t.iconNextPage||o.iconSet.table.nextPage,t.iconLastPage||o.iconSet.table.lastPage];return o.lang.rtl===!0?F.reverse():F});function On(){if(t.hideBottom===!0)return;if(Vt.value===!0){if(t.hideNoData===!0)return;const ve=t.loading===!0?t.loadingLabel||o.lang.table.loading:t.filter?t.noResultsLabel||o.lang.table.noResults:t.noDataLabel||o.lang.table.noData,pe=e["no-data"],Te=pe!==void 0?[pe({message:ve,icon:o.iconSet.table.warning,filter:t.filter})]:[w(_e,{class:"q-table__bottom-nodata-icon",name:o.iconSet.table.warning}),ve];return w("div",{class:ws+" q-table__bottom--nodata"},Te)}const F=e.bottom;if(F!==void 0)return w("div",{class:ws},[F(At.value)]);const ie=t.hideSelectedBanner!==!0&&R.value===!0&&j.value>0?[w("div",{class:"q-table__control"},[w("div",[(t.selectedRowsLabel||o.lang.table.selectedRecords)(j.value)])])]:[];if(t.hidePagination!==!0)return w("div",{class:ws+" justify-end"},Cr(ie));if(ie.length!==0)return w("div",{class:ws},ie)}function kr(F){y({page:1,rowsPerPage:F.value})}function Cr(F){let ie;const{rowsPerPage:ve}=v.value,pe=t.paginationLabel||o.lang.table.pagination,Te=e.pagination,it=t.rowsPerPageOptions.length>1;if(F.push(w("div",{class:"q-table__separator col"})),it===!0&&F.push(w("div",{class:"q-table__control"},[w("span",{class:"q-table__bottom-item"},[t.rowsPerPageLabel||o.lang.table.recordsPerPage]),w(pS,{class:"q-table__select inline q-table__bottom-item",color:t.color,modelValue:ve,options:_t.value,displayValue:ve===0?o.lang.table.allRows:ve,dark:s.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":kr})])),Te!==void 0)ie=Te(At.value);else if(ie=[w("span",ve!==0?{class:"q-table__bottom-item"}:{},[ve?pe(J.value+1,Math.min(we.value,et.value),et.value):pe(1,D.value,et.value)])],ve!==0&&Xe.value>1){const Ke={color:t.color,round:!0,dense:!0,flat:!0};t.dense===!0&&(Ke.size="sm"),Xe.value>2&&ie.push(w(Ve,{key:"pgFirst",...Ke,icon:Gt.value[0],disable:Z.value,onClick:dt})),ie.push(w(Ve,{key:"pgPrev",...Ke,icon:Gt.value[1],disable:Z.value,onClick:mt}),w(Ve,{key:"pgNext",...Ke,icon:Gt.value[2],disable:Ee.value,onClick:ht})),Xe.value>2&&ie.push(w(Ve,{key:"pgLast",...Ke,icon:Gt.value[3],disable:Ee.value,onClick:Dt}))}return F.push(w("div",{class:"q-table__control"},ie)),F}function Qo(){const F=t.gridHeader===!0?[w("table",{class:"q-table"},[ke()])]:t.loading===!0&&e.loading===void 0?X():void 0;return w("div",{class:"q-table__middle"},F)}function Mr(){const F=e.item!==void 0?e.item:ie=>{const ve=ie.cols.map(Te=>w("div",{class:"q-table__grid-item-row"},[w("div",{class:"q-table__grid-item-title"},[Te.label]),w("div",{class:"q-table__grid-item-value"},[Te.value])]));if(R.value===!0){const Te=e["body-selection"],it=Te!==void 0?Te(ie):[w(ia,{modelValue:ie.selected,color:t.color,dark:s.value,dense:t.dense,"onUpdate:modelValue":(Ke,Jt)=>{te([ie.key],[ie.row],Ke,Jt)}})];ve.unshift(w("div",{class:"q-table__grid-item-row"},it),w(_o,{dark:s.value}))}const pe={class:["q-table__grid-item-card"+h.value,t.cardClass],style:t.cardStyle};return(t.onRowClick!==void 0||t.onRowDblclick!==void 0)&&(pe.class[0]+=" cursor-pointer",t.onRowClick!==void 0&&(pe.onClick=Te=>{n("RowClick",Te,ie.row,ie.pageIndex)}),t.onRowDblclick!==void 0&&(pe.onDblclick=Te=>{n("RowDblclick",Te,ie.row,ie.pageIndex)})),w("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(ie.selected===!0?" q-table__grid-item--selected":"")},[w("div",pe,ve)])};return w("div",{class:["q-table__grid-content row",t.cardContainerClass],style:t.cardContainerStyle},P.value.map((ie,ve)=>F(ye({key:l.value(ie),row:ie,pageIndex:ve}))))}return Object.assign(i.proxy,{requestServerInteraction:x,setPagination:y,firstPage:dt,prevPage:mt,nextPage:ht,lastPage:Dt,isRowSelected:G,clearSelection:Y,isRowExpanded:C,setExpanded:S,sort:B,resetVirtualScroll:Et,scrollTo:$,getCellValue:vt}),sm(i.proxy,{filteredSortedRows:()=>A.value,computedRows:()=>P.value,computedRowsNumber:()=>et.value}),()=>{const F=[W()],ie={ref:c,class:m.value};return t.grid===!0?F.push(Qo()):Object.assign(ie,{class:[ie.class,t.cardClass],style:t.cardStyle}),F.push(lt(),On()),t.loading===!0&&e.loading!==void 0&&F.push(e.loading()),w("div",ie,F)}}}),NS=Se({__name:"BaseTable",props:{items:{},rowData:{type:[Function,Object]},columnConfig:{},rowKey:{},searchInputVisible:{type:Boolean},tableHeight:{},filter:{},columnsToSearch:{},rowExpandable:{type:Boolean}},emits:["row-click","update:filter"],setup(t,{expose:e,emit:n}){e(),pd(m=>({"618895b2":m.tableHeight}));const i=t,o=N([]),s=rm(),r=g(()=>i.rowExpandable?Object.keys(s).filter(m=>!m.startsWith("body")):Object.keys(s)),a=n,l=g({get:()=>i.filter||"",set:m=>a("update:filter",m)}),c=g(()=>i.items.map(typeof i.rowData=="function"?i.rowData:i.rowData.value)),u=g(()=>i.columnConfig.filter(m=>!m.expandField).map(m=>({name:m.field,field:m.field,label:m.label,align:m.align??"left",sortable:!0,headerStyle:"font-weight: bold"}))),f={props:i,expanded:o,slots:s,forwardedSlotNames:r,emit:a,filterModel:l,mappedRows:c,mappedColumns:u,customFilterMethod:(m,p,v)=>{if(!p||p.trim()==="")return m;const b=p.toLowerCase(),x=i.columnsToSearch||v.map(y=>typeof y.field=="string"?y.field:"");return m.filter(y=>x.some(_=>{const C=y[_];return C&&String(C).toLowerCase().includes(b)}))},onRowClick:(m,p)=>a("row-click",p)};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),WS={class:"q-pa-md"},HS={class:"row full-width items-center q-mb-sm"},jS={class:"col"};function $S(t,e,n,i,o,s){return V(),K("div",WS,[I(BS,{class:Tt(["sticky-header-table",{"custom-table-height":n.tableHeight}]),rows:i.mappedRows,columns:i.mappedColumns,"row-key":"id",expanded:i.expanded,"onUpdate:expanded":e[1]||(e[1]=r=>i.expanded=r),filter:i.filterModel,"filter-method":i.customFilterMethod,"virtual-scroll":"","virtual-scroll-item-size":48,"virtual-scroll-sticky-size-start":30,onRowClick:i.onRowClick,"binary-state-sort":"",pagination:{rowsPerPage:0},"hide-bottom":""},am({_:2},[n.searchInputVisible?{name:"top",fn:L(()=>[q("div",HS,[q("div",jS,[I(jf,{modelValue:i.filterModel,"onUpdate:modelValue":e[0]||(e[0]=r=>i.filterModel=r),dense:"",outlined:"",color:"white",placeholder:"Suchen...",class:"search-field white-outline-input","input-class":"text-white"},{append:L(()=>[I(_e,{name:"search",color:"white"})]),_:1},8,["modelValue"])])])]),key:"0"}:void 0,i.props.rowExpandable?{name:"header",fn:L(r=>[I(ea,{props:r},{default:L(()=>[I(wa,{"auto-width":"",props:{...r,col:{}}},null,8,["props"]),(V(!0),K(Oe,null,Je(r.cols,a=>(V(),ne(wa,{key:a.name,props:{...r,col:a}},{default:L(()=>[qe(le(a.label),1)]),_:2},1032,["props"]))),128))]),_:2},1032,["props"])]),key:"1"}:void 0,i.props.rowExpandable?{name:"body",fn:L(r=>[(V(),ne(ea,{key:`main-${r.key}`,props:r,onClick:a=>i.onRowClick(a,r.row),class:"clickable"},{default:L(()=>[I(vn,{"auto-width":""},{default:L(()=>[I(Ve,{dense:"",flat:"",round:"",size:"sm",icon:r.expand?"keyboard_arrow_up":"keyboard_arrow_down",onClick:nn(a=>r.expand=!r.expand,["stop"])},null,8,["icon","onClick"])]),_:2},1024),(V(!0),K(Oe,null,Je(r.cols,a=>(V(),K(Oe,{key:a.name},[t.$slots[`body-cell-${a.name}`]?oi(t.$slots,`body-cell-${a.name}`,lm({key:0,ref_for:!0},{...r,col:a}),void 0,!0):(V(),ne(vn,{key:1,props:{...r,col:a,value:r.row[a.field]}},{default:L(()=>[qe(le(r.row[a.field]),1)]),_:2},1032,["props"]))],64))),128))]),_:2},1032,["props","onClick"])),an((V(),ne(ea,{key:`xp-${r.key}`,props:r,class:"q-virtual-scroll--with-prev"},{default:L(()=>[I(vn,{colspan:r.cols.length+1},{default:L(()=>[oi(t.$slots,"row-expand",El(Al(r)),void 0,!0)]),_:2},1032,["colspan"])]),_:2},1032,["props"])),[[cm,r.expand]])]),key:"2"}:void 0,Je(i.forwardedSlotNames,r=>({name:r,fn:L(a=>[oi(t.$slots,r,El(Al(a)),void 0,!0)])}))]),1032,["class","rows","columns","expanded","filter"])])}const ng=Me(NS,[["render",$S],["__scopeId","data-v-d1f1dccd"],["__file","BaseTable.vue"]]),jn=ze({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(t,{slots:e}){const n=g(()=>`q-card__section q-card__section--${t.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>w(t.tag,{class:n.value},Ge(e.default))}}),Ki=ze({name:"QCard",props:{...un,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:e}){const{proxy:{$q:n}}=$e(),i=dn(t,n),o=g(()=>"q-card"+(i.value===!0?" q-card--dark q-dark":"")+(t.bordered===!0?" q-card--bordered":"")+(t.square===!0?" q-card--square no-border-radius":"")+(t.flat===!0?" q-card--flat no-shadow":""));return()=>w(t.tag,{class:o.value},Ge(e.default))}}),Uu="q-slider__marker-labels",US=t=>({value:t}),YS=({marker:t})=>w("div",{key:t.value,style:t.style,class:t.classes},t.label),ig=[34,37,40,33,39,38],ZS={...un,...mr,min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:t=>t>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},XS=["pan","update:modelValue","change"];function KS({updateValue:t,updatePosition:e,getDragging:n,formAttrs:i}){const{props:o,emit:s,slots:r,proxy:{$q:a}}=$e(),l=dn(o,a),c=Nf(i),u=N(!1),d=N(!1),h=N(!1),f=N(!1),m=g(()=>o.vertical===!0?"--v":"--h"),p=g(()=>"-"+(o.switchLabelSide===!0?"switched":"standard")),v=g(()=>o.vertical===!0?o.reverse===!0:o.reverse!==(a.lang.rtl===!0)),b=g(()=>isNaN(o.innerMin)===!0||o.innerMinisNaN(o.innerMax)===!0||o.innerMax>o.max?o.max:o.innerMax),y=g(()=>o.disable!==!0&&o.readonly!==!0&&b.value{if(o.step===0)return me=>me;const W=(String(o.step).trim().split(".")[1]||"").length;return me=>parseFloat(me.toFixed(W))}),C=g(()=>o.step===0?1:o.step),S=g(()=>y.value===!0?o.tabindex||0:-1),E=g(()=>o.max-o.min),A=g(()=>x.value-b.value),D=g(()=>Xe(b.value)),P=g(()=>Xe(x.value)),R=g(()=>o.vertical===!0?v.value===!0?"bottom":"top":v.value===!0?"right":"left"),M=g(()=>o.vertical===!0?"height":"width"),H=g(()=>o.vertical===!0?"width":"height"),z=g(()=>o.vertical===!0?"vertical":"horizontal"),U=g(()=>{const W={role:"slider","aria-valuemin":b.value,"aria-valuemax":x.value,"aria-orientation":z.value,"data-step":o.step};return o.disable===!0?W["aria-disabled"]="true":o.readonly===!0&&(W["aria-readonly"]="true"),W}),j=g(()=>`q-slider q-slider${m.value} q-slider--${u.value===!0?"":"in"}active inline no-wrap `+(o.vertical===!0?"row":"column")+(o.disable===!0?" disabled":" q-slider--enabled"+(y.value===!0?" q-slider--editable":""))+(h.value==="both"?" q-slider--focus":"")+(o.label||o.labelAlways===!0?" q-slider--label":"")+(o.labelAlways===!0?" q-slider--label-always":"")+(l.value===!0?" q-slider--dark":"")+(o.dense===!0?" q-slider--dense q-slider--dense"+m.value:""));function G(W){const me="q-slider__"+W;return`${me} ${me}${m.value} ${me}${m.value}${p.value}`}function Y(W){const me="q-slider__"+W;return`${me} ${me}${m.value}`}const te=g(()=>{const W=o.selectionColor||o.color;return"q-slider__selection absolute"+(W!==void 0?` text-${W}`:"")}),de=g(()=>Y("markers")+" absolute overflow-hidden"),O=g(()=>Y("track-container")),T=g(()=>G("pin")),Q=g(()=>G("label")),ae=g(()=>G("text-container")),fe=g(()=>G("marker-labels-container")+(o.markerLabelsClass!==void 0?` ${o.markerLabelsClass}`:"")),B=g(()=>"q-slider__track relative-position no-outline"+(o.trackColor!==void 0?` bg-${o.trackColor}`:"")),J=g(()=>{const W={[H.value]:o.trackSize};return o.trackImg!==void 0&&(W.backgroundImage=`url(${o.trackImg}) !important`),W}),we=g(()=>"q-slider__inner absolute"+(o.innerTrackColor!==void 0?` bg-${o.innerTrackColor}`:"")),Z=g(()=>{const W=P.value-D.value,me={[R.value]:`${100*D.value}%`,[M.value]:W===0?"2px":`${100*W}%`};return o.innerTrackImg!==void 0&&(me.backgroundImage=`url(${o.innerTrackImg}) !important`),me});function Ee(W){const{min:me,max:ke,step:He}=o;let nt=me+W*(ke-me);if(He>0){const Ft=(nt-b.value)%He;nt+=(Math.abs(Ft)>=He/2?(Ft<0?-1:1)*He:0)-Ft}return nt=_.value(nt),Pi(nt,b.value,x.value)}function Xe(W){return E.value===0?0:(W-o.min)/E.value}function _t(W,me){const ke=Es(W),He=o.vertical===!0?Pi((ke.top-me.top)/me.height,0,1):Pi((ke.left-me.left)/me.width,0,1);return Pi(v.value===!0?1-He:He,D.value,P.value)}const et=g(()=>To(o.markers)===!0?o.markers:C.value),dt=g(()=>{const W=[],me=et.value,ke=o.max;let He=o.min;do W.push(He),He+=me;while(He{const W=` ${Uu}${m.value}-`;return Uu+`${W}${o.switchMarkerLabelsSide===!0?"switched":"standard"}${W}${v.value===!0?"rtl":"ltr"}`}),ht=g(()=>o.markerLabels===!1?null:Ut(o.markerLabels).map((W,me)=>({index:me,value:W.value,label:W.label||W.value,classes:mt.value+(W.classes!==void 0?" "+W.classes:""),style:{...Et(W.value),...W.style||{}}}))),Dt=g(()=>({markerList:ht.value,markerMap:lt.value,classes:mt.value,getStyle:Et})),Vt=g(()=>{const W=A.value===0?"2px":100*et.value/A.value;return{...Z.value,backgroundSize:o.vertical===!0?`2px ${W}%`:`${W}% 2px`}});function Ut(W){if(W===!1)return null;if(W===!0)return dt.value.map(US);if(typeof W=="function")return dt.value.map(ke=>{const He=W(ke);return ks(He)===!0?{...He,value:ke}:{value:ke,label:He}});const me=({value:ke})=>ke>=o.min&&ke<=o.max;return Array.isArray(W)===!0?W.map(ke=>ks(ke)===!0?ke:{value:ke}).filter(me):Object.keys(W).map(ke=>{const He=W[ke],nt=Number(ke);return ks(He)===!0?{...He,value:nt}:{value:nt,label:He}}).filter(me)}function Et(W){return{[R.value]:`${100*(W-o.min)/E.value}%`}}const lt=g(()=>{if(o.markerLabels===!1)return null;const W={};return ht.value.forEach(me=>{W[me.value]=me}),W});function $(){if(r["marker-label-group"]!==void 0)return r["marker-label-group"](Dt.value);const W=r["marker-label"]||YS;return ht.value.map(me=>W({marker:me,...Dt.value}))}const re=g(()=>[[Im,X,void 0,{[z.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]);function X(W){W.isFinal===!0?(f.value!==void 0&&(e(W.evt),W.touch===!0&&t(!0),f.value=void 0,s("pan","end")),u.value=!1,h.value=!1):W.isFirst===!0?(f.value=n(W.evt),e(W.evt),t(),u.value=!0,s("pan","start")):(e(W.evt),t())}function ce(){h.value=!1}function De(W){e(W,n(W)),t(),d.value=!0,u.value=!0,document.addEventListener("mouseup",ye,!0)}function ye(){d.value=!1,u.value=!1,t(!0),ce(),document.removeEventListener("mouseup",ye,!0)}function Pe(W){e(W,n(W)),t(!0)}function ot(W){ig.includes(W.keyCode)&&t(!0)}function tt(W){if(o.vertical===!0)return null;const me=a.lang.rtl!==o.reverse?1-W:W;return{transform:`translateX(calc(${2*me-1} * ${o.thumbSize} / 2 + ${50-100*me}%))`}}function vt(W){const me=g(()=>d.value===!1&&(h.value===W.focusValue||h.value==="both")?" q-slider--focus":""),ke=g(()=>`q-slider__thumb q-slider__thumb${m.value} q-slider__thumb${m.value}-${v.value===!0?"rtl":"ltr"} absolute non-selectable`+me.value+(W.thumbColor.value!==void 0?` text-${W.thumbColor.value}`:"")),He=g(()=>({width:o.thumbSize,height:o.thumbSize,[R.value]:`${100*W.ratio.value}%`,zIndex:h.value===W.focusValue?2:void 0})),nt=g(()=>W.labelColor.value!==void 0?` text-${W.labelColor.value}`:""),Ft=g(()=>tt(W.ratio.value)),Gt=g(()=>"q-slider__text"+(W.labelTextColor.value!==void 0?` text-${W.labelTextColor.value}`:""));return()=>{const On=[w("svg",{class:"q-slider__thumb-shape absolute-full",viewBox:"0 0 20 20","aria-hidden":"true"},[w("path",{d:o.thumbPath})]),w("div",{class:"q-slider__focus-ring fit"})];return(o.label===!0||o.labelAlways===!0)&&(On.push(w("div",{class:T.value+" absolute fit no-pointer-events"+nt.value},[w("div",{class:Q.value,style:{minWidth:o.thumbSize}},[w("div",{class:ae.value,style:Ft.value},[w("span",{class:Gt.value},W.label.value)])])])),o.name!==void 0&&o.disable!==!0&&c(On,"push")),w("div",{class:ke.value,style:He.value,...W.getNodeData()},On)}}function At(W,me,ke,He){const nt=[];o.innerTrackColor!=="transparent"&&nt.push(w("div",{key:"inner",class:we.value,style:Z.value})),o.selectionColor!=="transparent"&&nt.push(w("div",{key:"selection",class:te.value,style:W.value})),o.markers!==!1&&nt.push(w("div",{key:"marker",class:de.value,style:Vt.value})),He(nt);const Ft=[nr("div",{key:"trackC",class:O.value,tabindex:me.value,...ke.value},[w("div",{class:B.value,style:J.value},nt)],"slide",y.value,()=>re.value)];if(o.markerLabels!==!1){const Gt=o.switchMarkerLabelsSide===!0?"unshift":"push";Ft[Gt](w("div",{key:"markerL",class:fe.value},$()))}return Ft}return Ot(()=>{document.removeEventListener("mouseup",ye,!0)}),{state:{active:u,focus:h,preventFocus:d,dragging:f,editable:y,classes:j,tabindex:S,attributes:U,roundValueFn:_,keyStep:C,trackLen:E,innerMin:b,innerMinRatio:D,innerMax:x,innerMaxRatio:P,positionProp:R,sizeProp:M,isReversed:v},methods:{onActivate:De,onMobileClick:Pe,onBlur:ce,onKeyup:ot,getContent:At,getThumbRenderFn:vt,convertRatioToModel:Ee,convertModelToRatio:Xe,getDraggingRatio:_t}}}const QS=()=>({}),Qs=ze({name:"QSlider",props:{...ZS,modelValue:{required:!0,default:null,validator:t=>typeof t=="number"||t===null},labelValue:[String,Number]},emits:XS,setup(t,{emit:e}){const{proxy:{$q:n}}=$e(),{state:i,methods:o}=KS({updateValue:m,updatePosition:v,getDragging:p,formAttrs:sS(t)}),s=N(null),r=N(0),a=N(0);function l(){a.value=t.modelValue===null?i.innerMin.value:Pi(t.modelValue,i.innerMin.value,i.innerMax.value)}ge(()=>`${t.modelValue}|${i.innerMin.value}|${i.innerMax.value}`,l),l();const c=g(()=>o.convertModelToRatio(a.value)),u=g(()=>i.active.value===!0?r.value:c.value),d=g(()=>{const y={[i.positionProp.value]:`${100*i.innerMinRatio.value}%`,[i.sizeProp.value]:`${100*(u.value-i.innerMinRatio.value)}%`};return t.selectionImg!==void 0&&(y.backgroundImage=`url(${t.selectionImg}) !important`),y}),h=o.getThumbRenderFn({focusValue:!0,getNodeData:QS,ratio:u,label:g(()=>t.labelValue!==void 0?t.labelValue:a.value),thumbColor:g(()=>t.thumbColor||t.color),labelColor:g(()=>t.labelColor),labelTextColor:g(()=>t.labelTextColor)}),f=g(()=>i.editable.value!==!0?{}:n.platform.is.mobile===!0?{onClick:o.onMobileClick}:{onMousedown:o.onActivate,onFocus:b,onBlur:o.onBlur,onKeydown:x,onKeyup:o.onKeyup});function m(y){a.value!==t.modelValue&&e("update:modelValue",a.value),y===!0&&e("change",a.value)}function p(){return s.value.getBoundingClientRect()}function v(y,_=i.dragging.value){const C=o.getDraggingRatio(y,_);a.value=o.convertRatioToModel(C),r.value=t.snap!==!0||t.step===0?C:o.convertModelToRatio(a.value)}function b(){i.focus.value=!0}function x(y){if(!ig.includes(y.keyCode))return;Pt(y);const _=([34,33].includes(y.keyCode)?10:1)*i.keyStep.value,C=([34,37,40].includes(y.keyCode)?-1:1)*(i.isReversed.value===!0?-1:1)*(t.vertical===!0?-1:1)*_;a.value=Pi(i.roundValueFn.value(a.value+C),i.innerMin.value,i.innerMax.value),m()}return()=>{const y=o.getContent(d,i.tabindex,f,_=>{_.push(h())});return w("div",{ref:s,class:i.classes.value+(t.modelValue===null?" q-slider--no-value":""),...i.attributes.value,"aria-valuenow":t.modelValue},y)}}}),GS=Se({name:"SliderDouble",__name:"SliderDouble",props:{modelValue:{type:Number,required:!1,default:-1},readonly:{type:Boolean,default:!1},chargeMode:{type:String,default:""},limitMode:{type:String,default:"soc"},currentValue:{type:Number,default:0},targetTime:{type:String,required:!1,default:void 0}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){e();const i=n,o=t,s=g({get:()=>o.modelValue,set:u=>{o.readonly||i("update:modelValue",u)}}),r=g(()=>s.value>=0&&o.limitMode!=="none"),a=g(()=>["soc","none"].includes(o.limitMode)?100:s.value),c={emit:i,props:o,target:s,targetSet:r,maxValue:a,formatEnergy:u=>u>=1e3?(u/1e3).toFixed(2)+" kWh":u.toFixed(0)+" Wh"};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}}),JS={class:"double-slider-container"},ew={class:"slider-container"},tw={class:"row justify-between no-wrap"},nw={class:"col"},iw={key:0,class:"col text-center"},ow={key:1,class:"col text-right"};function sw(t,e,n,i,o,s){return V(),K("div",JS,[q("div",ew,[I(Qs,{"model-value":n.currentValue,min:0,max:i.maxValue,markers:i.props.limitMode=="amount"?1e4:10,color:"green-7",class:"current-slider","track-size":"1.5em","thumb-size":"0px",readonly:"","no-focus":"",onTouchstart:e[0]||(e[0]=nn(()=>{},["stop"])),onTouchmove:e[1]||(e[1]=nn(()=>{},["stop"])),onTouchend:e[2]||(e[2]=nn(()=>{},["stop"]))},null,8,["model-value","max","markers"]),i.props.limitMode=="soc"?(V(),ne(Qs,{key:0,modelValue:i.target,"onUpdate:modelValue":e[3]||(e[3]=r=>i.target=r),min:0,max:100,color:"light-green-5","inner-track-color":"blue-grey-2",class:"target-slider","track-size":"1.5em","thumb-size":i.props.readonly?"0":"2em",readonly:i.props.readonly,onTouchstart:e[4]||(e[4]=nn(()=>{},["stop"])),onTouchmove:e[5]||(e[5]=nn(()=>{},["stop"])),onTouchend:e[6]||(e[6]=nn(()=>{},["stop"]))},null,8,["modelValue","thumb-size","readonly"])):ue("",!0)]),q("div",tw,[q("div",nw,[q("div",null,le(i.props.limitMode=="amount"?"Geladen":"Ladestand"),1),q("div",null,[qe(le(i.props.limitMode=="amount"?i.formatEnergy(n.currentValue):n.currentValue+"%")+" ",1),oi(t.$slots,"update-soc-icon",{},void 0)])]),i.props.targetTime?(V(),K("div",iw,[e[7]||(e[7]=q("div",null,"Zielzeit",-1)),q("div",null,le(i.props.targetTime),1)])):ue("",!0),i.targetSet?(V(),K("div",ow,[q("div",null,le(i.props.limitMode=="soc"?"Ladeziel":"Energieziel"),1),q("div",null,le(i.props.limitMode=="soc"?i.target+"%":i.target/1e3+" kWh"),1)])):ue("",!0)])])}const gl=Me(GS,[["render",sw],["__scopeId","data-v-0e0e7cf9"],["__file","SliderDouble.vue"]]),vr=ze({name:"QToggle",props:{...Gf,icon:String,iconColor:String},emits:Jf,setup(t){function e(n,i){const o=g(()=>(n.value===!0?t.checkedIcon:i.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),s=g(()=>n.value===!0?t.iconColor:null);return()=>[w("div",{class:"q-toggle__track"}),w("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},o.value!==void 0?[w(_e,{name:o.value,color:s.value})]:void 0)]}return eg("toggle",e)}}),rw=Se({__name:"ChargePointLock",props:{chargePointId:{type:Number,required:!0},readonly:{type:Boolean,default:!1},dense:{type:Boolean,default:!1}},setup(t,{expose:e}){e();const n=t,i=Be(),o=i.chargePointManualLock(n.chargePointId),s={props:n,mqttStore:i,locked:o};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}});function aw(t,e,n,i,o,s){return i.props.readonly?(V(),ne(_e,{key:0,name:i.locked?"lock":"lock_open",size:"sm",color:i.locked?"negative":"positive"},null,8,["name","color"])):(V(),ne(vr,{key:1,modelValue:i.locked,"onUpdate:modelValue":e[0]||(e[0]=r=>i.locked=r),color:i.locked?"primary":"positive","checked-icon":"lock","unchecked-icon":"lock_open",size:"lg",dense:i.props.dense},{default:L(()=>[I(ln,null,{default:L(()=>[qe(le(i.locked?"Ladepunkt gesperrt":"Ladepunkt entsperrt"),1)]),_:1})]),_:1},8,["modelValue","color","dense"]))}const og=Me(rw,[["render",aw],["__file","ChargePointLock.vue"]]),lw=Se({__name:"ChargePointStateIcon",props:{chargePointId:{},vehicleId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>n.vehicleId!==void 0?i.vehicleConnectionState(n.vehicleId).some(l=>l.plugged):n.chargePointId!==void 0?i.chargePointPlugState(n.chargePointId):!1),s=g(()=>n.vehicleId!==void 0?i.vehicleConnectionState(n.vehicleId).some(l=>l.charging):n.chargePointId!==void 0?i.chargePointChargeState(n.chargePointId):!1),r={props:n,mqttStore:i,plugState:o,chargeState:s};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}});function cw(t,e,n,i,o,s){return V(),ne(_e,{name:i.plugState?"power":"power_off",size:"sm",color:i.plugState?i.chargeState?"positive":"warning":"negative"},{default:L(()=>[I(ln,null,{default:L(()=>[qe(le(i.plugState?i.chargeState?"Lädt":"Angesteckt, lädt nicht":"Nicht angesteckt"),1)]),_:1})]),_:1},8,["name","color"])}const ml=Me(lw,[["render",cw],["__file","ChargePointStateIcon.vue"]]),uw=Se({__name:"ChargePointPriority",props:{chargePointId:{type:Number,required:!0},readonly:{type:Boolean,default:!1},dense:{type:Boolean,default:!1}},setup(t,{expose:e}){e();const n=t,i={off:"star_border",on:"star"},o=Be(),s=o.chargePointConnectedVehiclePriority(n.chargePointId),r={props:n,icon:i,mqttStore:o,priority:s};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}});function dw(t,e,n,i,o,s){return i.props.readonly?(V(),ne(_e,{key:0,name:i.priority?i.icon.on:i.icon.off,color:i.priority?"warning":"",size:"sm"},null,8,["name","color"])):(V(),ne(vr,{key:1,modelValue:i.priority,"onUpdate:modelValue":e[0]||(e[0]=r=>i.priority=r),color:i.priority?"primary":"","checked-icon":i.icon.on,"unchecked-icon":i.icon.off,size:"lg",dense:i.props.dense},{default:L(()=>[I(ln,null,{default:L(()=>[qe(le(i.priority?"Fahrzeug priorisiert":"Fahrzeug nicht priorisiert"),1)]),_:1})]),_:1},8,["modelValue","color","checked-icon","unchecked-icon","dense"]))}const sg=Me(uw,[["render",dw],["__file","ChargePointPriority.vue"]]),hw=Object.keys(kd);function fw(t){return hw.reduce((e,n)=>{const i=t[n];return i!==void 0&&(e[n]=i),e},{})}const rg=ze({name:"QBtnDropdown",props:{...kd,...La,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(t,{slots:e,emit:n}){const{proxy:i}=$e(),o=N(t.modelValue),s=N(null),r=zf(),a=g(()=>{const _={"aria-expanded":o.value===!0?"true":"false","aria-haspopup":"true","aria-controls":r.value,"aria-label":t.toggleAriaLabel||i.$q.lang.label[o.value===!0?"collapse":"expand"](t.label)};return(t.disable===!0||t.split===!1&&t.disableMainBtn===!0||t.disableDropdown===!0)&&(_["aria-disabled"]="true"),_}),l=g(()=>"q-btn-dropdown__arrow"+(o.value===!0&&t.noIconAnimation===!1?" rotate-180":"")+(t.split===!1?" q-btn-dropdown__arrow-container":"")),c=g(()=>um(t)),u=g(()=>fw(t));ge(()=>t.modelValue,_=>{s.value!==null&&s.value[_?"show":"hide"]()}),ge(()=>t.split,y);function d(_){o.value=!0,n("beforeShow",_)}function h(_){n("show",_),n("update:modelValue",!0)}function f(_){o.value=!1,n("beforeHide",_)}function m(_){n("hide",_),n("update:modelValue",!1)}function p(_){n("click",_)}function v(_){wn(_),y(),n("click",_)}function b(_){s.value!==null&&s.value.toggle(_)}function x(_){s.value!==null&&s.value.show(_)}function y(_){s.value!==null&&s.value.hide(_)}return Object.assign(i,{show:x,hide:y,toggle:b}),Wt(()=>{t.modelValue===!0&&x()}),()=>{const _=[w(_e,{class:l.value,name:t.dropdownIcon||i.$q.iconSet.arrow.dropdown})];return t.disableDropdown!==!0&&_.push(w(Qf,{ref:s,id:r.value,class:t.contentClass,style:t.contentStyle,cover:t.cover,fit:!0,persistent:t.persistent,noRouteDismiss:t.noRouteDismiss,autoClose:t.autoClose,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,separateClosePopup:!0,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,onBeforeShow:d,onShow:h,onBeforeHide:f,onHide:m},e.default)),t.split===!1?w(Ve,{class:"q-btn-dropdown q-btn-dropdown--simple",...u.value,...a.value,disable:t.disable===!0||t.disableMainBtn===!0,noWrap:!0,round:!1,onClick:p},{default:()=>Ge(e.label,[]).concat(_),loading:e.loading}):w(pn,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:t.rounded,square:t.square,...c.value,glossy:t.glossy,stretch:t.stretch},()=>[w(Ve,{class:"q-btn-dropdown--current",...u.value,disable:t.disable===!0||t.disableMainBtn===!0,noWrap:!0,round:!1,onClick:v},{default:e.label,loading:e.loading}),w(Ve,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...a.value,...c.value,disable:t.disable===!0||t.disableDropdown===!0,rounded:t.rounded,color:t.color,textColor:t.textColor,dense:t.dense,size:t.size,padding:t.padding,ripple:t.ripple},()=>_)])}}}),gw=Se({__name:"ChargePointModeButtons",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=g(()=>qa.is.mobile),{chargeModes:o}=cl(),s=Be(),r=g(()=>s.chargePointConnectedVehicleChargeMode(n.chargePointId)),a=g(()=>o.find(c=>c.value===r.value.value)?.label),l={props:n,isMobile:i,chargeModes:o,mqttStore:s,chargeMode:r,currentModeLabel:a};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),mw={key:0,class:"q-pt-md full-width"};function vw(t,e,n,i,o,s){return i.isMobile?(V(),K("div",mw,[I(rg,{"transition-show":"scale","transition-hide":"scale","transition-duration":"500",class:"full-width",color:"primary",label:i.currentModeLabel,size:"lg","dropdown-icon":"none",cover:"",push:""},{default:L(()=>[I(ir,null,{default:L(()=>[(V(!0),K(Oe,null,Je(i.chargeModes,(r,a)=>(V(),K(Oe,{key:r.value},[an((V(),ne(or,{clickable:"",onClick:l=>i.chargeMode.value=r.value,active:i.chargeMode.value===r.value,"active-class":"bg-primary text-white"},{default:L(()=>[I(Oo,{class:"text-center text-weight-bold"},{default:L(()=>[I(sr,null,{default:L(()=>[qe(le(r.label.toLocaleUpperCase()),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick","active"])),[[Mn]]),a[(V(!0),K(Oe,null,Je(i.chargeModes,r=>(V(),ne(Ve,{key:r.value,color:i.chargeMode.value===r.value?"primary":"grey",label:r.label,size:"sm",class:"flex-grow",onClick:a=>i.chargeMode.value=r.value},null,8,["color","label","onClick"]))),128))]),_:1}))}const ag=Me(gw,[["render",vw],["__scopeId","data-v-674981ff"],["__file","ChargePointModeButtons.vue"]]),pw=Se({__name:"ChargePointStateMessage",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>i.chargePointStateMessage(n.chargePointId)),s={props:n,mqttStore:i,message:o};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),bw={class:"row q-mt-sm q-pa-sm bg-primary text-white no-wrap message-text",color:"primary",style:{"border-radius":"10px"}};function yw(t,e,n,i,o,s){return V(),K("div",bw,[I(_e,{name:"info",size:"sm",class:"q-mr-xs"}),qe(" "+le(i.message),1)])}const _w=Me(pw,[["render",yw],["__scopeId","data-v-31323cae"],["__file","ChargePointStateMessage.vue"]]),xw=Se({__name:"ChargePointFaultMessage",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>i.chargePointFaultState(n.chargePointId)),s=g(()=>i.chargePointFaultMessage(n.chargePointId)),r=g(()=>{switch(o.value){case 1:return"bg-warning";case 2:return"bg-negative";default:return"bg-primary"}}),a=g(()=>{switch(o.value){case 1:return"warning";case 2:return"error";default:return"info"}}),l={props:n,mqttStore:i,state:o,message:s,messageClass:r,iconName:a};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}});function Sw(t,e,n,i,o,s){return i.state!==void 0&&i.state!==0?(V(),K("div",{key:0,class:Tt(["row q-mt-sm q-pa-sm text-white no-wrap",i.messageClass]),style:{"border-radius":"10px"}},[I(_e,{name:i.iconName,size:"sm",class:"q-mr-xs"},null,8,["name"]),qe(" "+le(i.message),1)],2)):ue("",!0)}const ww=Me(xw,[["render",Sw],["__file","ChargePointFaultMessage.vue"]]),kw=Se({__name:"ChargePointVehicleSelect",props:{chargePointId:{type:Number,required:!0},readonly:{type:Boolean,default:!1}},setup(t,{expose:e}){e();const n=t,i=Be(),o=i.chargePointConnectedVehicleInfo(n.chargePointId),s=g(()=>i.vehicleList),r={props:n,mqttStore:i,connectedVehicle:o,vehicles:s};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),Cw={key:0,class:"q-mx-sm"};function Mw(t,e,n,i,o,s){return i.props.readonly?(V(),K("div",Cw,le(i.connectedVehicle?.name),1)):(V(),ne(rg,{key:1,color:"grey",label:i.connectedVehicle?.name,icon:"directions_car",dense:"","no-caps":"",class:"flex-grow"},{default:L(()=>[I(ir,null,{default:L(()=>[(V(!0),K(Oe,null,Je(i.vehicles,r=>an((V(),ne(or,{key:r.id,clickable:"",dense:"",onClick:a=>i.connectedVehicle=r},{default:L(()=>[I(Oo,null,{default:L(()=>[I(sr,null,{default:L(()=>[qe(le(r.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"])),[[Mn]])),128))]),_:1})]),_:1},8,["label"]))}const lg=Me(kw,[["render",Mw],["__scopeId","data-v-ca7bfd56"],["__file","ChargePointVehicleSelect.vue"]]),cg=ze({name:"QSpace",setup(){const t=w("div",{class:"q-space"});return()=>t}}),vl=ze({name:"QCardActions",props:{...dm,vertical:Boolean},setup(t,{slots:e}){const n=hm(t),i=g(()=>`q-card__actions ${n.value} q-card__actions--${t.vertical===!0?"vert column":"horiz row"}`);return()=>w("div",{class:i.value},Ge(e.default))}}),Pw=Se({name:"SliderStandard",__name:"SliderStandard",props:{title:{type:String,default:"title"},modelValue:{type:Number},max:{type:Number,required:!0},min:{type:Number,required:!0},step:{type:Number,default:1},unit:{type:String,default:""},offValueRight:{type:Number,default:105},offValueLeft:{type:Number,default:-1},discreteValues:{type:Array,default:void 0}},emits:["update:model-value"],setup(t,{expose:e,emit:n}){e();const i=t,o=n,s=N(i.modelValue),r=N(null),a=g(()=>s.value!==i.modelValue),l=g({get:()=>{if(i.discreteValues){const m=i.discreteValues.indexOf(s.value??i.discreteValues[0]);return m>=0?m:0}return s.value},set:m=>{r.value&&clearTimeout(r.value),i.discreteValues?s.value=i.discreteValues[m]:s.value=m}}),c=m=>{a.value&&(r.value&&clearTimeout(r.value),r.value=setTimeout(()=>{o("update:model-value",i.discreteValues?i.discreteValues[m]:m)},2e3))},u=g(()=>{const m=i.discreteValues&&l.value!==void 0?i.discreteValues[l.value]:l.value;return m===i.offValueLeft||m===i.offValueRight?"Aus":m}),d=g(()=>{const m=i.discreteValues&&l.value!==void 0?i.discreteValues[l.value]:l.value;return m===i.offValueLeft||m===i.offValueRight?"":i.unit});ge(()=>i.modelValue,m=>{s.value=m}),Ot(()=>{if(r.value){clearTimeout(r.value);const m=l.value!==void 0?l.value:0;o("update:model-value",i.discreteValues?i.discreteValues[m]:m)}});const h=g(()=>a.value?"pending":""),f={props:i,emit:o,tempValue:s,updateTimeout:r,updatePending:a,value:l,updateValue:c,displayValue:u,displayUnit:d,myClass:h};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),Tw={class:"text-subtitle2"},Iw={class:"row items-center justify-between q-ml-sm"};function Ow(t,e,n,i,o,s){return V(),K("div",null,[q("div",null,[q("div",Tw,le(i.props.title),1)]),q("div",Iw,[I(Qs,{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=r=>i.value=r),min:i.props.discreteValues?0:i.props.min,max:i.props.discreteValues?i.props.discreteValues.length-1:i.props.max,step:i.props.step,color:"primary",style:{width:"75%"},"track-size":"0.5em","thumb-size":"1.7em",onTouchstart:e[1]||(e[1]=nn(()=>{},["stop"])),onTouchmove:e[2]||(e[2]=nn(()=>{},["stop"])),onTouchend:e[3]||(e[3]=nn(()=>{},["stop"])),onChange:i.updateValue},null,8,["modelValue","min","max","step"]),q("div",{class:Tt(["q-ml-md no-wrap",i.myClass])},le(i.displayValue)+" "+le(i.displayUnit),3)])])}const pl=Me(Pw,[["render",Ow],["__scopeId","data-v-d1d2b5c9"],["__file","SliderStandard.vue"]]),Dw=Se({__name:"ChargePointInstantSettings",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>{let p=[{value:"none",label:"keine",color:"primary"},{value:"soc",label:"EV-SoC",color:"primary"},{value:"amount",label:"Energiemenge",color:"primary"}];return s.value===void 0&&(p=p.filter(v=>v.value!=="soc")),p}),s=g(()=>i.chargePointConnectedVehicleSocType(n.chargePointId))?.value,r=[{value:1,label:"1"},{value:3,label:"Maximum"}],a=g(()=>i.chargePointConnectedVehicleInstantChargeCurrent(n.chargePointId)),l=g(()=>i.dcChargingEnabled),c=g(()=>i.chargePointConnectedVehicleInstantDcChargePower(n.chargePointId)),u=g(()=>i.chargePointConnectedVehicleInstantChargePhases(n.chargePointId)),d=g(()=>i.chargePointConnectedVehicleInstantChargeLimit(n.chargePointId)),h=g(()=>i.chargePointConnectedVehicleInstantChargeLimitSoC(n.chargePointId)),f=g(()=>i.chargePointConnectedVehicleInstantChargeLimitEnergy(n.chargePointId)),m={props:n,mqttStore:i,limitModes:o,vehicleSocType:s,phaseOptions:r,instantChargeCurrent:a,dcCharging:l,instantChargeCurrentDc:c,numPhases:u,limitMode:d,limitSoC:h,limitEnergy:f,SliderStandard:pl};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}}),Vw={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},Ew={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"};function Aw(t,e,n,i,o,s){return V(),K(Oe,null,[I(i.SliderStandard,{title:"Stromstärke",min:6,max:32,unit:"A",modelValue:i.instantChargeCurrent.value,"onUpdate:modelValue":e[0]||(e[0]=r=>i.instantChargeCurrent.value=r),class:"q-mt-sm"},null,8,["modelValue"]),i.dcCharging?(V(),ne(i.SliderStandard,{key:0,title:"DC-Sollleistung",min:4,max:300,unit:"kW",modelValue:i.instantChargeCurrentDc.value,"onUpdate:modelValue":e[1]||(e[1]=r=>i.instantChargeCurrentDc.value=r),class:"q-mt-sm"},null,8,["modelValue"])):ue("",!0),e[4]||(e[4]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Anzahl Phasen",-1)),q("div",Vw,[I(pn,{class:"col"},{default:L(()=>[(V(),K(Oe,null,Je(i.phaseOptions,r=>I(Ve,{key:r.value,color:i.numPhases.value===r.value?"primary":"grey",label:r.label,size:"sm",class:"col",onClick:a=>i.numPhases.value=r.value},null,8,["color","label","onClick"])),64))]),_:1})]),e[5]||(e[5]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Begrenzung",-1)),q("div",Ew,[I(pn,{class:"col"},{default:L(()=>[(V(!0),K(Oe,null,Je(i.limitModes,r=>(V(),ne(Ve,{key:r.value,color:i.limitMode.value===r.value?"primary":"grey",label:r.label,size:"sm",class:"col",onClick:a=>i.limitMode.value=r.value},null,8,["color","label","onClick"]))),128))]),_:1})]),i.limitMode.value==="soc"?(V(),ne(i.SliderStandard,{key:1,title:"SoC-Limit für das Fahrzeug",min:5,max:100,step:5,unit:"%",modelValue:i.limitSoC.value,"onUpdate:modelValue":e[2]||(e[2]=r=>i.limitSoC.value=r),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),i.limitMode.value==="amount"?(V(),ne(i.SliderStandard,{key:2,title:"Energie-Limit",min:1,max:50,unit:"kWh",modelValue:i.limitEnergy.value,"onUpdate:modelValue":e[3]||(e[3]=r=>i.limitEnergy.value=r),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0)],64)}const Rw=Me(Dw,[["render",Aw],["__scopeId","data-v-f45a6b19"],["__file","ChargePointInstantSettings.vue"]]),qw=Se({__name:"ToggleStandard",props:{value:{type:Boolean,default:!1},size:{type:String,default:"lg"}},emits:["update:value"],setup(t,{expose:e,emit:n}){e();const i=t,o=n,r={props:i,emit:o,emitValue:a=>{o("update:value",a)}};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}});function Lw(t,e,n,i,o,s){return V(),ne(vr,{"model-value":i.props.value,"onUpdate:modelValue":i.emitValue,color:i.props.value?"positive":"negative",size:i.props.size},null,8,["model-value","color","size"])}const Fw=Me(qw,[["render",Lw],["__file","ToggleStandard.vue"]]),zw=Se({__name:"ChargePointPvSettings",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>{let C=[{value:"none",label:"keine",color:"primary"},{value:"soc",label:"EV-SoC",color:"primary"},{value:"amount",label:"Energiemenge",color:"primary"}];return s.value===void 0&&(C=C.filter(S=>S.value!=="soc")),C}),s=g(()=>i.chargePointConnectedVehicleSocType(n.chargePointId))?.value,r=[{value:1,label:"1"},{value:3,label:"Maximum"},{value:0,label:"Automatik"}],a=[{value:1,label:"1"},{value:3,label:"Maximum"}],l=g(()=>i.chargePointConnectedVehiclePvChargeMinCurrent(n.chargePointId)),c=g(()=>i.dcChargingEnabled),u=g(()=>i.chargePointConnectedVehiclePvDcChargePower(n.chargePointId)),d=g(()=>i.chargePointConnectedVehiclePvDcMinSocPower(n.chargePointId)),h=g(()=>i.chargePointConnectedVehiclePvChargePhases(n.chargePointId)),f=g(()=>i.chargePointConnectedVehiclePvChargePhasesMinSoc(n.chargePointId)),m=g(()=>i.chargePointConnectedVehiclePvChargeMinSoc(n.chargePointId)),p=g(()=>i.chargePointConnectedVehiclePvChargeMinSocCurrent(n.chargePointId)),v=g(()=>i.chargePointConnectedVehiclePvChargeLimit(n.chargePointId)),b=g(()=>i.chargePointConnectedVehiclePvChargeLimitSoC(n.chargePointId)),x=g(()=>i.chargePointConnectedVehiclePvChargeLimitEnergy(n.chargePointId)),y=g(()=>i.chargePointConnectedVehiclePvChargeFeedInLimit(n.chargePointId)),_={props:n,mqttStore:i,limitModes:o,vehicleSocType:s,phaseOptions:r,phaseOptionsMinSoc:a,pvMinCurrent:l,dcCharging:c,pvMinDcPower:u,pvMinDcMinSocPower:d,numPhases:h,numPhasesMinSoc:f,pvMinSoc:m,pvMinSocCurrent:p,limitMode:v,limitSoC:b,limitEnergy:x,feedInLimit:y,SliderStandard:pl,ToggleStandard:Fw};return Object.defineProperty(_,"__isScriptSetup",{enumerable:!1,value:!0}),_}}),Bw={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},Nw={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},Ww={key:3},Hw={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},jw={class:"row items-center justify-between q-ma-none q-pa-none no-wrap q-mt-md"};function $w(t,e,n,i,o,s){return V(),K(Oe,null,[I(i.SliderStandard,{title:"Minimaler Dauerstrom",min:-1,max:16,step:1,unit:"A","off-value-left":-1,"discrete-values":[-1,6,7,8,9,10,11,12,13,14,15,16],modelValue:i.pvMinCurrent.value,"onUpdate:modelValue":e[0]||(e[0]=r=>i.pvMinCurrent.value=r),class:"q-mt-md"},null,8,["modelValue"]),i.dcCharging?(V(),ne(i.SliderStandard,{key:0,title:"Minimaler DC-Dauerleistung",min:0,max:300,step:1,unit:"kW",modelValue:i.pvMinDcPower.value,"onUpdate:modelValue":e[1]||(e[1]=r=>i.pvMinDcPower.value=r),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),e[10]||(e[10]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Anzahl Phasen",-1)),q("div",Bw,[I(pn,{class:"col"},{default:L(()=>[(V(),K(Oe,null,Je(i.phaseOptions,r=>I(Ve,{key:r.value,color:i.numPhases.value===r.value?"primary":"grey",label:r.label,size:"sm",class:"col",onClick:a=>i.numPhases.value=r.value},null,8,["color","label","onClick"])),64))]),_:1})]),e[11]||(e[11]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Begrenzung",-1)),q("div",Nw,[I(pn,{class:"col"},{default:L(()=>[(V(!0),K(Oe,null,Je(i.limitModes,r=>(V(),ne(Ve,{key:r.value,color:i.limitMode.value===r.value?"primary":"grey",label:r.label,size:"sm",class:"col",onClick:a=>i.limitMode.value=r.value},null,8,["color","label","onClick"]))),128))]),_:1})]),i.limitMode.value==="soc"?(V(),ne(i.SliderStandard,{key:1,title:"SoC-Limit für das Fahrzeug",min:5,max:100,step:5,unit:"%",modelValue:i.limitSoC.value,"onUpdate:modelValue":e[2]||(e[2]=r=>i.limitSoC.value=r),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),i.limitMode.value==="amount"?(V(),ne(i.SliderStandard,{key:2,title:"Energie-Limit",min:1,max:50,unit:"kWh",modelValue:i.limitEnergy.value,"onUpdate:modelValue":e[3]||(e[3]=r=>i.limitEnergy.value=r),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),i.vehicleSocType!==void 0?(V(),K("div",Ww,[I(i.SliderStandard,{title:"Mindest-SoC für das Fahrzeug",min:0,max:100,step:5,unit:"%","off-value-left":0,modelValue:i.pvMinSoc.value,"onUpdate:modelValue":e[4]||(e[4]=r=>i.pvMinSoc.value=r),class:"q-mt-md"},null,8,["modelValue"]),I(i.SliderStandard,{title:"Mindest-SoC-Strom",min:6,max:32,unit:"A",modelValue:i.pvMinSocCurrent.value,"onUpdate:modelValue":e[5]||(e[5]=r=>i.pvMinSocCurrent.value=r),class:"q-mt-md"},null,8,["modelValue"]),i.dcCharging?(V(),ne(i.SliderStandard,{key:0,title:"DC Mindest-SoC-Leistung",min:0,max:300,step:1,unit:"kW",modelValue:i.pvMinDcMinSocPower.value,"onUpdate:modelValue":e[6]||(e[6]=r=>i.pvMinDcMinSocPower.value=r),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),e[8]||(e[8]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Anzahl Phasen Mindest-SoC",-1)),q("div",Hw,[I(pn,{class:"col"},{default:L(()=>[(V(),K(Oe,null,Je(i.phaseOptionsMinSoc,r=>I(Ve,{key:r.value,color:i.numPhasesMinSoc.value===r.value?"primary":"grey",label:r.label,size:"sm",class:"col",onClick:a=>i.numPhasesMinSoc.value=r.value},null,8,["color","label","onClick"])),64))]),_:1})])])):ue("",!0),q("div",jw,[e[9]||(e[9]=q("div",{class:"text-subtitle2 q-mr-sm"},"Einspeisegrenze beachten",-1)),q("div",null,[I(i.ToggleStandard,{dense:"",modelValue:i.feedInLimit.value,"onUpdate:modelValue":e[7]||(e[7]=r=>i.feedInLimit.value=r)},null,8,["modelValue"])])])],64)}const Uw=Me(zw,[["render",$w],["__file","ChargePointPvSettings.vue"]]);/*! + */const Ax={datetime:he.DATETIME_MED_WITH_SECONDS,millisecond:"h:mm:ss.SSS a",second:he.TIME_WITH_SECONDS,minute:he.TIME_SIMPLE,hour:{hour:"numeric"},day:{day:"numeric",month:"short"},week:"DD",month:{month:"short",year:"numeric"},quarter:"'Q'q - yyyy",year:{year:"numeric"}};fh._date.override({_id:"luxon",_create:function(t){return he.fromMillis(t,this.options)},init(t){this.options.locale||(this.options.locale=t.locale)},formats:function(){return Ax},parse:function(t,e){const n=this.options,i=typeof t;return t===null||i==="undefined"?null:(i==="number"?t=this._create(t):i==="string"?typeof e=="string"?t=he.fromFormat(t,e,n):t=he.fromISO(t,n):t instanceof Date?t=he.fromJSDate(t,n):i==="object"&&!(t instanceof he)&&(t=he.fromObject(t,n)),t.isValid?t.valueOf():null)},format:function(t,e){const n=this._create(t);return typeof e=="string"?n.toFormat(e):n.toLocaleString(e)},add:function(t,e,n){const i={};return i[n]=e,this._create(t).plus(i).valueOf()},diff:function(t,e,n){return this._create(t).diff(this._create(e)).as(n).valueOf()},startOf:function(t,e,n){if(e==="isoWeek"){n=Math.trunc(Math.min(Math.max(0,n),6));const i=this._create(t);return i.minus({days:(i.weekday-n+7)%7}).startOf("day").valueOf()}return e?this._create(t).startOf(e).valueOf():t},endOf:function(t,e){return this._create(t).endOf(e).valueOf()}});const Rx=Se({__name:"HistoryChart",props:{showLegend:{type:Boolean}},setup(t,{expose:e}){e(),Nn.register(Ih,Ai,Cn,Mo,Hs,Wi,m0,Ph);const n=g(()=>a.showLegend),i=Be(),o=el(),s=In(),a=t,r=N(null),l=g(()=>_?.value?.datasets.length>15),c=S=>{S.data.datasets.forEach((E,A)=>{typeof E.label=="string"&&o.isDatasetHidden(E.label)&&S.hide(A)}),S.update()};ge(()=>r.value?.chart,S=>{S&&c(S)},{immediate:!0});const u=g(()=>{const S=i.chartData,E=Math.floor(Date.now()/1e3);return S.filter(A=>A.timestamp>E-v.value)}),d=g(()=>i.chargePointIds),h=g(()=>i.chargePointName),f=g(()=>{const S=i.getGridId;return S!==void 0?i.getComponentName(S):"Zähler"}),m=g(()=>f.value),p=g(()=>i.vehicleList),v=g(()=>i.themeConfiguration?.history_chart_range||3600),b=g(()=>d.value.map(S=>({label:`${h.value(S)}`,unit:"kW",borderColor:"#4766b5",backgroundColor:"rgba(71, 102, 181, 0.2)",data:u.value.map(E=>({x:E.timestamp*1e3,y:E[`cp${S}-power`]||0})),borderWidth:2,pointRadius:0,pointHoverRadius:4,pointHitRadius:5,fill:!0,yAxisID:"y"}))),y=g(()=>p.value.map(S=>{const E=`ev${S.id}-soc`;if(u.value.some(A=>E in A))return{label:`${S.name} SoC`,unit:"%",borderColor:"#9F8AFF",borderWidth:2,borderDash:[10,5],pointRadius:0,pointHoverRadius:4,pointHitRadius:5,data:u.value.map(A=>({x:A.timestamp*1e3,y:Number(A[E]??0)})),fill:!1,yAxisID:"y2"}}).filter(S=>S!==void 0)),_=g(()=>({datasets:[{label:f.value,unit:"kW",borderColor:"#a33c42",backgroundColor:"rgba(239,182,188, 0.2)",data:u.value.map(S=>({x:S.timestamp*1e3,y:S.grid})),borderWidth:2,pointRadius:0,pointHoverRadius:4,pointHitRadius:5,fill:!0,yAxisID:"y"},{label:"Hausverbrauch",unit:"kW",borderColor:"#949aa1",backgroundColor:"rgba(148, 154, 161, 0.2)",data:u.value.map(S=>({x:S.timestamp*1e3,y:S["house-power"]})),borderWidth:2,pointRadius:0,pointHoverRadius:4,pointHitRadius:5,fill:!0,yAxisID:"y"},{label:"PV ges.",unit:"kW",borderColor:"green",backgroundColor:"rgba(144, 238, 144, 0.2)",data:u.value.map(S=>({x:S.timestamp*1e3,y:S["pv-all"]})),borderWidth:2,pointRadius:0,pointHoverRadius:4,pointHitRadius:5,fill:!0,yAxisID:"y"},{label:"Speicher ges.",unit:"kW",borderColor:"#b5a647",backgroundColor:"rgba(181, 166, 71, 0.2)",data:u.value.map(S=>({x:S.timestamp*1e3,y:S["bat-all-power"]})),borderWidth:2,pointRadius:0,pointHoverRadius:4,pointHitRadius:5,fill:!0,yAxisID:"y"},{label:"Speicher SoC",unit:"%",borderColor:"#FFB96E",borderWidth:2,borderDash:[10,5],pointRadius:0,pointHoverRadius:4,pointHitRadius:5,data:u.value.map(S=>({x:S.timestamp*1e3,y:S["bat-all-soc"]})),fill:!1,yAxisID:"y2"},...b.value,...y.value]})),x=g(()=>({responsive:!0,maintainAspectRatio:!1,animation:!1,plugins:{legend:{display:!l.value&&n.value,fullSize:!0,align:"center",position:"bottom",labels:{boxWidth:19,boxHeight:.1},onClick:(S,E,A)=>{const D=E.datasetIndex,M=A.chart,R=E.text;o.toggleDataset(R),o.isDatasetHidden(R)?M.hide(D):M.show(D)}},tooltip:{mode:"index",intersect:!1,callbacks:{label:S=>`${S.dataset.label}: ${S.formattedValue} ${S.dataset.unit}`}}},scales:{x:{type:"time",time:{unit:"minute",displayFormats:{minute:"HH:mm"}},ticks:{maxTicksLimit:12,source:"auto"},grid:{tickLength:5,color:s.dark.isActive?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.1)"}},y:{position:"left",type:"linear",display:!0,title:{display:!0,text:"Leistung [kW]"},ticks:{stepSize:.2,maxTicksLimit:11},grid:{color:s.dark.isActive?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.1)"}},y2:{position:"right",type:"linear",display:!0,title:{display:!0,text:"SoC [%]"},min:0,max:100,ticks:{stepSize:10},grid:{display:!1}}}})),C={legendDisplay:n,mqttStore:i,localDataStore:o,$q:s,props:a,chartRef:r,legendLarge:l,applyHiddenDatasetsToChart:c,selectedData:u,chargePointIds:d,chargePointNames:h,gridMeterName:f,chartInstanceKey:m,vehicles:p,chartRange:v,chargePointDatasets:b,vehicleDatasets:y,lineChartData:_,chartOptions:x,get ChartjsLine(){return Ah},HistoryChartLegend:V0};return Object.defineProperty(C,"__isScriptSetup",{enumerable:!1,value:!0}),C}}),qx={class:"chart-container"},Lx={class:"chart-wrapper"};function Fx(t,e,n,i,o,s){return V(),K("div",qx,[q("div",Lx,[(V(),ne(i.ChartjsLine,{key:i.chartInstanceKey,data:i.lineChartData,options:i.chartOptions,ref:"chartRef"},null,8,["data","options"]))]),i.legendDisplay&&i.legendLarge?(V(),ne(i.HistoryChartLegend,{key:0,chart:i.chartRef?.chart||null,class:"legend-wrapper q-mt-sm"},null,8,["chart"])):ue("",!0)])}const zx=Me(Rx,[["render",Fx],["__scopeId","data-v-c3a1aa04"],["__file","HistoryChart.vue"]]),Bx=Se({name:"ChartCarousel",__name:"ChartCarousel",setup(t,{expose:e}){e();const n=In(),i=el(),o=N(0),s=()=>{i.toggleLegendVisibility()},a=g(()=>i.legendVisible),r=N(!1),l=[{name:"EnergyFlowChart",component:mv},{name:"HistoryChart",component:zx}],c=N(l[0].name);ge(()=>r.value,(d,h)=>{!d&&h&&c.value==="HistoryChart"&&o.value++});const u={$q:n,localDataStore:i,renderKey:o,toggleLegend:s,legendVisible:a,fullscreen:r,chartCarouselItems:l,currentSlide:c};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}});function Nx(t,e,n,i,o,s){return V(),ne(Nd,{modelValue:i.currentSlide,"onUpdate:modelValue":e[1]||(e[1]=a=>i.currentSlide=a),fullscreen:i.fullscreen,"onUpdate:fullscreen":e[2]||(e[2]=a=>i.fullscreen=a),swipeable:"","control-color":"primary",padding:"",animated:"",infinite:"",navigation:i.chartCarouselItems.length>1,arrows:i.chartCarouselItems.length>1&&i.$q.screen.gt.xs,class:"full-width full-height bg-transparent carousel-height"},{control:L(()=>[I(Hm,{position:"bottom-right"},{default:L(()=>[i.currentSlide==="HistoryChart"?(V(),ne(Ve,{key:0,size:"sm",class:"q-mr-sm legend-button-text",label:"Legend ein/aus",onClick:i.toggleLegend})):ue("",!0),I(Ve,{push:"",round:"",dense:"","text-color":"primary",icon:i.fullscreen?"fullscreen_exit":"fullscreen",onClick:e[0]||(e[0]=a=>i.fullscreen=!i.fullscreen)},null,8,["icon"])]),_:1})]),default:L(()=>[(V(),K(Oe,null,Je(i.chartCarouselItems,a=>I(Ld,{key:`${a.name}-${a.name==="HistoryChart"?i.renderKey:0}`,name:a.name},{default:L(()=>[(V(),ne(Gg(a.component),{"show-legend":i.legendVisible},null,8,["show-legend"]))]),_:2},1032,["name"])),64))]),_:1},8,["modelValue","fullscreen","navigation","arrows"])}const Wx=Me(Bx,[["render",Nx],["__scopeId","data-v-85eaf875"],["__file","ChartCarousel.vue"]]),vn=ze({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(t,{slots:e}){const n=$e(),i=g(()=>"q-td"+(t.autoWidth===!0?" q-table--col-auto-width":"")+(t.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(t.props===void 0)return w("td",{class:i.value},Ge(e.default));const o=n.vnode.key,s=(t.props.colsMap!==void 0?t.props.colsMap[o]:null)||t.props.col;if(s===void 0)return;const{row:a}=t.props;return w("td",{class:i.value+s.__tdClass(a),style:s.__tdStyle(a)},Ge(e.default))}}}),ai=[];let ji;function Hx(t){ji=t.keyCode===27}function jx(){ji===!0&&(ji=!1)}function $x(t){ji===!0&&(ji=!1,Js(t,27)===!0&&ai[ai.length-1](t))}function qf(t){window[t]("keydown",Hx),window[t]("blur",jx),window[t]("keyup",$x),ji=!1}function Lf(t){Jn.is.desktop===!0&&(ai.push(t),ai.length===1&&qf("addEventListener"))}function Zs(t){const e=ai.indexOf(t);e!==-1&&(ai.splice(e,1),ai.length===0&&qf("removeEventListener"))}const ri=[];function Ff(t){ri[ri.length-1](t)}function zf(t){Jn.is.desktop===!0&&(ri.push(t),ri.length===1&&document.body.addEventListener("focusin",Ff))}function Sr(t){const e=ri.indexOf(t);e!==-1&&(ri.splice(e,1),ri.length===0&&document.body.removeEventListener("focusin",Ff))}let xs=0;const Ux={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},Vu={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Ki=ze({name:"QDialog",inheritAttrs:!1,props:{...Md,...Lr,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:t=>["standard","top","bottom","left","right"].includes(t)}},emits:[...Pd,"shake","click","escapeKey"],setup(t,{slots:e,emit:n,attrs:i}){const o=$e(),s=N(null),a=N(!1),r=N(!1);let l=null,c=null,u,d;const h=g(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:f}=bm(),{registerTimeout:m}=Oo(),{registerTick:p,removeTick:v}=_o(),{transitionProps:b,transitionStyle:y}=Td(t,()=>Vu[t.position][0],()=>Vu[t.position][1]),_=g(()=>y.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:x,hidePortal:C,portalIsAccessible:S,renderPortal:E}=Id(o,s,fe,"dialog"),{hide:A}=Od({showing:a,hideOnRouteChange:h,handleShow:$,handleHide:U,processOnMount:!0}),{addToHistory:D,removeFromHistory:M}=pm(a,A,h),R=g(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${Ux[t.position]}`+(r.value===!0?" q-dialog__inner--animating":"")+(t.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(t.fullHeight===!0?" q-dialog__inner--fullheight":"")+(t.square===!0?" q-dialog__inner--square":"")),P=g(()=>a.value===!0&&t.seamless!==!0),H=g(()=>t.autoClose===!0?{onClick:T}:{}),z=g(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${P.value===!0?"modal":"seamless"}`,i.class]);ge(()=>t.maximized,B=>{a.value===!0&&O(B)}),ge(P,B=>{f(B),B===!0?(zf(re),Lf(te)):(Sr(re),Zs(te))});function $(B){D(),c=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,O(t.maximized),x(),r.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),p(G)):v(),m(()=>{if(o.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:J,bottom:we}=document.activeElement.getBoundingClientRect(),{innerHeight:Z}=window,Ee=window.visualViewport!==void 0?window.visualViewport.height:Z;J>0&&we>Ee/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-Ee,we>=Z?1/0:Math.ceil(document.scrollingElement.scrollTop+we-Ee/2))),document.activeElement.scrollIntoView()}d=!0,s.value.click(),d=!1}x(!0),r.value=!1,n("show",B)},t.transitionDuration)}function U(B){v(),M(),de(!0),r.value=!0,C(),c!==null&&(((B&&B.type.indexOf("key")===0?c.closest('[tabindex]:not([tabindex^="-"])'):void 0)||c).focus(),c=null),m(()=>{C(!0),r.value=!1,n("hide",B)},t.transitionDuration)}function G(B){aa(()=>{let J=s.value;if(J!==null){if(B!==void 0){const we=J.querySelector(B);if(we!==null){we.focus({preventScroll:!0});return}}J.contains(document.activeElement)!==!0&&(J=J.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||J.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||J.querySelector("[autofocus], [data-autofocus]")||J,J.focus({preventScroll:!0}))}})}function Y(B){B&&typeof B.focus=="function"?B.focus({preventScroll:!0}):G(),n("shake");const J=s.value;J!==null&&(J.classList.remove("q-animate--scale"),J.classList.add("q-animate--scale"),l!==null&&clearTimeout(l),l=setTimeout(()=>{l=null,s.value!==null&&(J.classList.remove("q-animate--scale"),G())},170))}function te(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&Y():(n("escapeKey"),A()))}function de(B){l!==null&&(clearTimeout(l),l=null),(B===!0||a.value===!0)&&(O(!1),t.seamless!==!0&&(f(!1),Sr(re),Zs(te))),B!==!0&&(c=null)}function O(B){B===!0?u!==!0&&(xs<1&&document.body.classList.add("q-body--dialog"),xs++,u=!0):u===!0&&(xs<2&&document.body.classList.remove("q-body--dialog"),xs--,u=!1)}function T(B){d!==!0&&(A(B),n("click",B))}function Q(B){t.persistent!==!0&&t.noBackdropDismiss!==!0?A(B):t.noShake!==!0&&Y()}function re(B){t.allowFocusOutside!==!0&&S.value===!0&&Sd(s.value,B.target)!==!0&&G('[tabindex]:not([tabindex="-1"])')}Object.assign(o.proxy,{focus:G,shake:Y,__updateRefocusTarget(B){c=B||null}}),Ot(de);function fe(){return w("div",{role:"dialog","aria-modal":P.value===!0?"true":"false",...i,class:z.value},[w(To,{name:"q-transition--fade",appear:!0},()=>P.value===!0?w("div",{class:"q-dialog__backdrop fixed-full",style:_.value,"aria-hidden":"true",tabindex:-1,onClick:Q}):null),w(To,b.value,()=>a.value===!0?w("div",{ref:s,class:R.value,style:y.value,tabindex:-1,...H.value},Ge(e.default)):null)])}return E}});function Eu(t){if(t===!1)return 0;if(t===!0||t===void 0)return 1;const e=parseInt(t,10);return isNaN(e)?0:e}const Mn=vd({name:"close-popup",beforeMount(t,{value:e}){const n={depth:Eu(e),handler(i){n.depth!==0&&setTimeout(()=>{const o=ym(t);o!==void 0&&_m(o,i,n.depth)})},handlerKey(i){Js(i,13)===!0&&n.handler(i)}};t.__qclosepopup=n,t.addEventListener("click",n.handler),t.addEventListener("keyup",n.handlerKey)},updated(t,{value:e,oldValue:n}){e!==n&&(t.__qclosepopup.depth=Eu(e))},beforeUnmount(t){const e=t.__qclosepopup;t.removeEventListener("click",e.handler),t.removeEventListener("keyup",e.handlerKey),delete t.__qclosepopup}}),cl=()=>({chargeModes:[{value:"instant_charging",label:"Sofort",color:"negative"},{value:"pv_charging",label:"PV",color:"positive"},{value:"scheduled_charging",label:"Ziel",color:"primary"},{value:"eco_charging",label:"Eco",color:"accent"},{value:"stop",label:"Stop",color:"light"}]}),Yx=Se({__name:"BaseCarousel",props:{items:{}},setup(t,{expose:e}){e();const n=t,i=In(),o=N(0),s=N(!0),a=N(null),r=N(0);let l=null;const c=N(0),u=()=>{const y=document.querySelectorAll(".q-carousel__slide--active .item-container"),_=Array.from(y).map(x=>x.offsetHeight);c.value=Math.max(..._)},d=()=>{const y=new MutationObserver(()=>{u()});document.querySelectorAll(".q-carousel__slide--active .item-container").forEach(x=>{y.observe(x,{childList:!0,subtree:!0,attributes:!0})})};Wt(()=>{ut(()=>{a.value&&a.value.$el&&(r.value=a.value.$el.offsetWidth,l=new ResizeObserver(()=>{a.value&&a.value.$el&&(r.value=a.value.$el.offsetWidth,u())}),l.observe(a.value.$el)),u(),d()})}),Ot(()=>{l&&a.value&&a.value.$el&&l.unobserve(a.value.$el)});const h=N(void 0),f=y=>{h.value=y?y+72:void 0};md("setCardWidth",f);const m=g(()=>h.value?Math.max(1,Math.floor(r.value/h.value)):380),p=g(()=>n.items.reduce((y,_,x)=>{const C=Math.floor(x/m.value);return y[C]||(y[C]=[]),y[C].push(_),y},[]));ge(()=>p.value,async(y,_)=>{const x=C=>y.findIndex(S=>S.includes(C));if(!_||_.length===0){o.value=0;return}s.value=!1,o.value=Math.max(x(_[o.value][0]),0),await ut(),s.value=!0,u(),d()});const b={props:n,$q:i,currentSlide:o,animated:s,carouselRef:a,carouselWidth:r,get resizeObserver(){return l},set resizeObserver(y){l=y},maxCardHeight:c,updateMaxCardHeight:u,observeCardChanges:d,effectiveCardWidth:h,setCardWidth:f,groupSize:m,groupedItems:p,handleSlideChange:()=>{const y=window.scrollY;ut(()=>{u(),d(),window.scrollTo(0,y)})}};return Object.defineProperty(b,"__isScriptSetup",{enumerable:!1,value:!0}),b}});function Zx(t,e,n,i,o,s){return V(),ne(Nd,{ref:"carouselRef",modelValue:i.currentSlide,"onUpdate:modelValue":[e[0]||(e[0]=a=>i.currentSlide=a),i.handleSlideChange],swipeable:"",animated:i.animated,"control-color":"primary",infinite:"",padding:"",navigation:i.groupedItems.length>1,arrows:i.groupedItems.length>1&&i.$q.screen.gt.xs,class:"carousel-height q-mt-md","transition-next":"slide-left","transition-prev":"slide-right",onMousedown:e[1]||(e[1]=nn(()=>{},["prevent"]))},{default:L(()=>[(V(!0),K(Oe,null,Je(i.groupedItems,(a,r)=>(V(),ne(Ld,{key:r,name:r,class:"row no-wrap justify-center carousel-slide"},{default:L(()=>[(V(!0),K(Oe,null,Je(a,l=>(V(),K("div",{key:l,class:"item-container",style:xd(`min-height: ${i.maxCardHeight}px`)},[oi(t.$slots,"item",{item:l},void 0,!0)],4))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue","animated","navigation","arrows"])}const ul=Me(Yx,[["render",Zx],["__scopeId","data-v-ec729668"],["__file","BaseCarousel.vue"]]);function Xx(t){return t??null}function Au(t,e){return t??(e===!0?`f_${sr()}`:null)}function Bf({getValue:t,required:e=!0}={}){if(Jg.value===!0){const n=t!==void 0?N(Xx(t())):N(null);return e===!0&&n.value===null&&Wt(()=>{n.value=`f_${sr()}`}),t!==void 0&&ge(t,i=>{n.value=Au(i,e)}),n}return t!==void 0?g(()=>Au(t(),e)):N(`f_${sr()}`)}const Ru=/^on[A-Z]/;function Kx(){const{attrs:t,vnode:e}=$e(),n={listeners:N({}),attributes:N({})};function i(){const o={},s={};for(const a in t)a!=="class"&&a!=="style"&&Ru.test(a)===!1&&(o[a]=t[a]);for(const a in e.props)Ru.test(a)===!0&&(s[a]=e.props[a]);n.attributes.value=o,n.listeners.value=s}return wd(i),i(),n}function Qx({validate:t,resetValidation:e,requiresQForm:n}){const i=li(em,!1);if(i!==!1){const{props:o,proxy:s}=$e();Object.assign(s,{validate:t,resetValidation:e}),ge(()=>o.disable,a=>{a===!0?(typeof e=="function"&&e(),i.unbindComponent(s)):i.bindComponent(s)}),Wt(()=>{o.disable!==!0&&i.bindComponent(s)}),Ot(()=>{o.disable!==!0&&i.unbindComponent(s)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const qu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Lu=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Fu=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Ss=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,ws=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,Ja={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),hexColor:t=>qu.test(t),hexaColor:t=>Lu.test(t),hexOrHexaColor:t=>Fu.test(t),rgbColor:t=>Ss.test(t),rgbaColor:t=>ws.test(t),rgbOrRgbaColor:t=>Ss.test(t)||ws.test(t),hexOrRgbColor:t=>qu.test(t)||Ss.test(t),hexaOrRgbaColor:t=>Lu.test(t)||ws.test(t),anyColor:t=>Fu.test(t)||Ss.test(t)||ws.test(t)},Gx=[!0,!1,"ondemand"],Jx={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>Gx.includes(t)}};function eS(t,e){const{props:n,proxy:i}=$e(),o=N(!1),s=N(null),a=N(!1);Qx({validate:p,resetValidation:m});let r=0,l;const c=g(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),u=g(()=>n.disable!==!0&&c.value===!0&&e.value===!1),d=g(()=>n.error===!0||o.value===!0),h=g(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:s.value);ge(()=>n.modelValue,()=>{a.value=!0,u.value===!0&&n.lazyRules===!1&&v()});function f(){n.lazyRules!=="ondemand"&&u.value===!0&&a.value===!0&&v()}ge(()=>n.reactiveRules,b=>{b===!0?l===void 0&&(l=ge(()=>n.rules,f,{immediate:!0,deep:!0})):l!==void 0&&(l(),l=void 0)},{immediate:!0}),ge(()=>n.lazyRules,f),ge(t,b=>{b===!0?a.value=!0:u.value===!0&&n.lazyRules!=="ondemand"&&v()});function m(){r++,e.value=!1,a.value=!1,o.value=!1,s.value=null,v.cancel()}function p(b=n.modelValue){if(n.disable===!0||c.value===!1)return!0;const y=++r,_=e.value!==!0?()=>{a.value=!0}:()=>{},x=(S,E)=>{S===!0&&_(),o.value=S,s.value=E||null,e.value=!1},C=[];for(let S=0;S{if(S===void 0||Array.isArray(S)===!1||S.length===0)return y===r&&x(!1),!0;const E=S.find(A=>A===!1||typeof A=="string");return y===r&&x(E!==void 0,E),E===void 0},S=>(y===r&&(console.error(S),x(!0)),!1)))}const v=kd(p,0);return Ot(()=>{l!==void 0&&l(),v.cancel()}),Object.assign(i,{resetValidation:m,validate:p}),ei(i,"hasError",()=>d.value),{isDirtyModel:a,hasRules:c,hasError:d,errorMessage:h,validate:p,resetValidation:m}}function zo(t){return t!=null&&(""+t).length!==0}const tS={...un,...Jx,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},ga={...tS,maxlength:[Number,String]},dl=["update:modelValue","clear","focus","blur"];function hl({requiredForAttr:t=!0,tagProp:e,changeEvent:n=!1}={}){const{props:i,proxy:o}=$e(),s=dn(i,o.$q),a=Bf({required:t,getValue:()=>i.for});return{requiredForAttr:t,changeEvent:n,tag:e===!0?g(()=>i.tag):{value:"label"},isDark:s,editable:g(()=>i.disable!==!0&&i.readonly!==!0),innerLoading:N(!1),focused:N(!1),hasPopupOpen:!1,splitAttrs:Kx(),targetUid:a,rootRef:N(null),targetRef:N(null),controlRef:N(null)}}function fl(t){const{props:e,emit:n,slots:i,attrs:o,proxy:s}=$e(),{$q:a}=s;let r=null;t.hasValue===void 0&&(t.hasValue=g(()=>zo(e.modelValue))),t.emitValue===void 0&&(t.emitValue=Y=>{n("update:modelValue",Y)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:D,onFocusout:M}),Object.assign(t,{clearValue:R,onControlFocusin:D,onControlFocusout:M,focus:E}),t.computedCounter===void 0&&(t.computedCounter=g(()=>{if(e.counter!==!1){const Y=typeof e.modelValue=="string"||typeof e.modelValue=="number"?(""+e.modelValue).length:Array.isArray(e.modelValue)===!0?e.modelValue.length:0,te=e.maxlength!==void 0?e.maxlength:e.maxValues;return Y+(te!==void 0?" / "+te:"")}}));const{isDirtyModel:l,hasRules:c,hasError:u,errorMessage:d,resetValidation:h}=eS(t.focused,t.innerLoading),f=t.floatingLabel!==void 0?g(()=>e.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):g(()=>e.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),m=g(()=>e.bottomSlots===!0||e.hint!==void 0||c.value===!0||e.counter===!0||e.error!==null),p=g(()=>e.filled===!0?"filled":e.outlined===!0?"outlined":e.borderless===!0?"borderless":e.standout?"standout":"standard"),v=g(()=>`q-field row no-wrap items-start q-field--${p.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(e.rounded===!0?" q-field--rounded":"")+(e.square===!0?" q-field--square":"")+(f.value===!0?" q-field--float":"")+(y.value===!0?" q-field--labeled":"")+(e.dense===!0?" q-field--dense":"")+(e.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(t.isDark.value===!0?" q-field--dark":"")+(t.getControl===void 0?" q-field--auto-height":"")+(t.focused.value===!0?" q-field--focused":"")+(u.value===!0?" q-field--error":"")+(u.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(e.hideBottomSpace!==!0&&m.value===!0?" q-field--with-bottom":"")+(e.disable===!0?" q-field--disabled":e.readonly===!0?" q-field--readonly":"")),b=g(()=>"q-field__control relative-position row no-wrap"+(e.bgColor!==void 0?` bg-${e.bgColor}`:"")+(u.value===!0?" text-negative":typeof e.standout=="string"&&e.standout.length!==0&&t.focused.value===!0?` ${e.standout}`:e.color!==void 0?` text-${e.color}`:"")),y=g(()=>e.labelSlot===!0||e.label!==void 0),_=g(()=>"q-field__label no-pointer-events absolute ellipsis"+(e.labelColor!==void 0&&u.value!==!0?` text-${e.labelColor}`:"")),x=g(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:f.value,modelValue:e.modelValue,emitValue:t.emitValue})),C=g(()=>{const Y={};return t.targetUid.value&&(Y.for=t.targetUid.value),e.disable===!0&&(Y["aria-disabled"]="true"),Y});function S(){const Y=document.activeElement;let te=t.targetRef!==void 0&&t.targetRef.value;te&&(Y===null||Y.id!==t.targetUid.value)&&(te.hasAttribute("tabindex")===!0||(te=te.querySelector("[tabindex]")),te&&te!==Y&&te.focus({preventScroll:!0}))}function E(){aa(S)}function A(){xm(S);const Y=document.activeElement;Y!==null&&t.rootRef.value.contains(Y)&&Y.blur()}function D(Y){r!==null&&(clearTimeout(r),r=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,n("focus",Y))}function M(Y,te){r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,!(document.hasFocus()===!0&&(t.hasPopupOpen===!0||t.controlRef===void 0||t.controlRef.value===null||t.controlRef.value.contains(document.activeElement)!==!1))&&(t.focused.value===!0&&(t.focused.value=!1,n("blur",Y)),te!==void 0&&te())})}function R(Y){Pt(Y),a.platform.is.mobile!==!0?(t.targetRef!==void 0&&t.targetRef.value||t.rootRef.value).focus():t.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),e.type==="file"&&(t.inputRef.value.value=null),n("update:modelValue",null),t.changeEvent===!0&&n("change",null),n("clear",e.modelValue),ut(()=>{const te=l.value;h(),l.value=te})}function P(Y){[13,32].includes(Y.keyCode)&&R(Y)}function H(){const Y=[];return i.prepend!==void 0&&Y.push(w("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:qn},i.prepend())),Y.push(w("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},z())),u.value===!0&&e.noErrorIcon===!1&&Y.push(U("error",[w(_e,{name:a.iconSet.field.error,color:"negative"})])),e.loading===!0||t.innerLoading.value===!0?Y.push(U("inner-loading-append",i.loading!==void 0?i.loading():[w(tm,{color:e.color})])):e.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&Y.push(U("inner-clearable-append",[w(_e,{class:"q-field__focusable-action",name:e.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:P,onClick:R})])),i.append!==void 0&&Y.push(w("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:qn},i.append())),t.getInnerAppend!==void 0&&Y.push(U("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&Y.push(t.getControlChild()),Y}function z(){const Y=[];return e.prefix!==void 0&&e.prefix!==null&&Y.push(w("div",{class:"q-field__prefix no-pointer-events row items-center"},e.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&Y.push(t.getShadowControl()),t.getControl!==void 0?Y.push(t.getControl()):i.rawControl!==void 0?Y.push(i.rawControl()):i.control!==void 0&&Y.push(w("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":e.autofocus===!0||void 0},i.control(x.value))),y.value===!0&&Y.push(w("div",{class:_.value},Ge(i.label,e.label))),e.suffix!==void 0&&e.suffix!==null&&Y.push(w("div",{class:"q-field__suffix no-pointer-events row items-center"},e.suffix)),Y.concat(Ge(i.default))}function $(){let Y,te;u.value===!0?d.value!==null?(Y=[w("div",{role:"alert"},d.value)],te=`q--slot-error-${d.value}`):(Y=Ge(i.error),te="q--slot-error"):(e.hideHint!==!0||t.focused.value===!0)&&(e.hint!==void 0?(Y=[w("div",e.hint)],te=`q--slot-hint-${e.hint}`):(Y=Ge(i.hint),te="q--slot-hint"));const de=e.counter===!0||i.counter!==void 0;if(e.hideBottomSpace===!0&&de===!1&&Y===void 0)return;const O=w("div",{key:te,class:"q-field__messages col"},Y);return w("div",{class:"q-field__bottom row items-start q-field__bottom--"+(e.hideBottomSpace!==!0?"animated":"stale"),onClick:qn},[e.hideBottomSpace===!0?O:w(To,{name:"q-transition--field-message"},()=>O),de===!0?w("div",{class:"q-field__counter"},i.counter!==void 0?i.counter():t.computedCounter.value):null])}function U(Y,te){return te===null?null:w("div",{key:Y,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},te)}let G=!1;return ea(()=>{G=!0}),ta(()=>{G===!0&&e.autofocus===!0&&s.focus()}),e.autofocus===!0&&Wt(()=>{s.focus()}),Ot(()=>{r!==null&&clearTimeout(r)}),Object.assign(s,{focus:E,blur:A}),function(){const te=t.getControl===void 0&&i.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":e.autofocus===!0||void 0,...C.value}:C.value;return w(t.tag.value,{ref:t.rootRef,class:[v.value,o.class],style:o.style,...te},[i.before!==void 0?w("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:qn},i.before()):null,w("div",{class:"q-field__inner relative-position col self-stretch"},[w("div",{ref:t.controlRef,class:b.value,tabindex:-1,...t.controlEvents},H()),m.value===!0?$():null]),i.after!==void 0?w("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:qn},i.after()):null])}}const zu={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Xs={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},Nf=Object.keys(Xs);Nf.forEach(t=>{Xs[t].regex=new RegExp(Xs[t].pattern)});const nS=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Nf.join("")+"])|(.)","g"),Bu=/[.*+?^${}()|[\]\\]/g,ft="",iS={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function oS(t,e,n,i){let o,s,a,r,l,c;const u=N(null),d=N(f());function h(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}ge(()=>t.type+t.autogrow,p),ge(()=>t.mask,D=>{if(D!==void 0)v(d.value,!0);else{const M=E(d.value);p(),t.modelValue!==M&&e("update:modelValue",M)}}),ge(()=>t.fillMask+t.reverseFillMask,()=>{u.value===!0&&v(d.value,!0)}),ge(()=>t.unmaskedValue,()=>{u.value===!0&&v(d.value)});function f(){if(p(),u.value===!0){const D=C(E(t.modelValue));return t.fillMask!==!1?A(D):D}return t.modelValue}function m(D){if(D0;H--)M+=ft;R=R.slice(0,P)+M+R.slice(P)}return R}function p(){if(u.value=t.mask!==void 0&&t.mask.length!==0&&h(),u.value===!1){r=void 0,o="",s="";return}const D=zu[t.mask]===void 0?t.mask:zu[t.mask],M=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",R=M.replace(Bu,"\\$&"),P=[],H=[],z=[];let $=t.reverseFillMask===!0,U="",G="";D.replace(nS,(O,T,Q,re,fe)=>{if(re!==void 0){const B=Xs[re];z.push(B),G=B.negate,$===!0&&(H.push("(?:"+G+"+)?("+B.pattern+"+)?(?:"+G+"+)?("+B.pattern+"+)?"),$=!1),H.push("(?:"+G+"+)?("+B.pattern+")?")}else if(Q!==void 0)U="\\"+(Q==="\\"?"":Q),z.push(Q),P.push("([^"+U+"]+)?"+U+"?");else{const B=T!==void 0?T:fe;U=B==="\\"?"\\\\\\\\":B.replace(Bu,"\\\\$&"),z.push(B),P.push("([^"+U+"]+)?"+U+"?")}});const Y=new RegExp("^"+P.join("")+"("+(U===""?".":"[^"+U+"]")+"+)?"+(U===""?"":"["+U+"]*")+"$"),te=H.length-1,de=H.map((O,T)=>T===0&&t.reverseFillMask===!0?new RegExp("^"+R+"*"+O):T===te?new RegExp("^"+O+"("+(G===""?".":G)+"+)?"+(t.reverseFillMask===!0?"$":R+"*")):new RegExp("^"+O));a=z,r=O=>{const T=Y.exec(t.reverseFillMask===!0?O:O.slice(0,z.length+1));T!==null&&(O=T.slice(1).join(""));const Q=[],re=de.length;for(let fe=0,B=O;fetypeof O=="string"?O:ft).join(""),s=o.split(ft).join(M)}function v(D,M,R){const P=i.value,H=P.selectionEnd,z=P.value.length-H,$=E(D);M===!0&&p();const U=C($),G=t.fillMask!==!1?A(U):U,Y=d.value!==G;P.value!==G&&(P.value=G),Y===!0&&(d.value=G),document.activeElement===P&&ut(()=>{if(G===s){const de=t.reverseFillMask===!0?s.length:0;P.setSelectionRange(de,de,"forward");return}if(R==="insertFromPaste"&&t.reverseFillMask!==!0){const de=P.selectionEnd;let O=H-1;for(let T=l;T<=O&&TU.length?1:0:Math.max(0,G.length-(G===s?0:Math.min(U.length,z)+1))+1:H;P.setSelectionRange(de,de,"forward");return}if(t.reverseFillMask===!0)if(Y===!0){const de=Math.max(0,G.length-(G===s?0:Math.min(U.length,z+1)));de===1&&H===1?P.setSelectionRange(de,de,"forward"):y.rightReverse(P,de)}else{const de=G.length-z;P.setSelectionRange(de,de,"backward")}else if(Y===!0){const de=Math.max(0,o.indexOf(ft),Math.min(U.length,H)-1);y.right(P,de)}else{const de=H-1;y.right(P,de)}});const te=t.unmaskedValue===!0?E(G):G;String(t.modelValue)!==te&&(t.modelValue!==null||te!=="")&&n(te,!0)}function b(D,M,R){const P=C(E(D.value));M=Math.max(0,o.indexOf(ft),Math.min(P.length,M)),l=M,D.setSelectionRange(M,R,"forward")}const y={left(D,M){const R=o.slice(M-1).indexOf(ft)===-1;let P=Math.max(0,M-1);for(;P>=0;P--)if(o[P]===ft){M=P,R===!0&&M++;break}if(P<0&&o[M]!==void 0&&o[M]!==ft)return y.right(D,0);M>=0&&D.setSelectionRange(M,M,"backward")},right(D,M){const R=D.value.length;let P=Math.min(R,M+1);for(;P<=R;P++)if(o[P]===ft){M=P;break}else o[P-1]===ft&&(M=P);if(P>R&&o[M-1]!==void 0&&o[M-1]!==ft)return y.left(D,R);D.setSelectionRange(M,M,"forward")},leftReverse(D,M){const R=m(D.value.length);let P=Math.max(0,M-1);for(;P>=0;P--)if(R[P-1]===ft){M=P;break}else if(R[P]===ft&&(M=P,P===0))break;if(P<0&&R[M]!==void 0&&R[M]!==ft)return y.rightReverse(D,0);M>=0&&D.setSelectionRange(M,M,"backward")},rightReverse(D,M){const R=D.value.length,P=m(R),H=P.slice(0,M+1).indexOf(ft)===-1;let z=Math.min(R,M+1);for(;z<=R;z++)if(P[z-1]===ft){M=z,M>0&&H===!0&&M--;break}if(z>R&&P[M-1]!==void 0&&P[M-1]!==ft)return y.leftReverse(D,R);D.setSelectionRange(M,M,"forward")}};function _(D){e("click",D),c=void 0}function x(D){if(e("keydown",D),Vr(D)===!0||D.altKey===!0)return;const M=i.value,R=M.selectionStart,P=M.selectionEnd;if(D.shiftKey||(c=void 0),D.keyCode===37||D.keyCode===39){D.shiftKey&&c===void 0&&(c=M.selectionDirection==="forward"?R:P);const H=y[(D.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(D.preventDefault(),H(M,c===R?P:R),D.shiftKey){const z=M.selectionStart;M.setSelectionRange(Math.min(c,z),Math.max(c,z),"forward")}}else D.keyCode===8&&t.reverseFillMask!==!0&&R===P?(y.left(M,R),M.setSelectionRange(M.selectionStart,P,"backward")):D.keyCode===46&&t.reverseFillMask===!0&&R===P&&(y.rightReverse(M,P),M.setSelectionRange(R,M.selectionEnd,"forward"))}function C(D){if(D==null||D==="")return"";if(t.reverseFillMask===!0)return S(D);const M=a;let R=0,P="";for(let H=0;H=0&&P!==-1;z--){const $=M[z];let U=D[P];if(typeof $=="string")H=$+H,U===$&&P--;else if(U!==void 0&&$.regex.test(U))do H=($.transform!==void 0?$.transform(U):U)+H,P--,U=D[P];while(R===z&&U!==void 0&&$.regex.test(U));else return H}return H}function E(D){return typeof D!="string"||r===void 0?typeof D=="number"?r(""+D):D:r(D)}function A(D){return s.length-D.length<=0?D:t.reverseFillMask===!0&&D.length!==0?s.slice(0,-D.length)+D:D+s.slice(D.length)}return{innerValue:d,hasMask:u,moveCursorForPaste:b,updateMaskValue:v,onMaskedKeydown:x,onMaskedClick:_}}const ma={name:String};function sS(t){return g(()=>({type:"hidden",name:t.name,value:t.modelValue}))}function Wf(t={}){return(e,n,i)=>{e[n](w("input",{class:"hidden"+(i||""),...t.value}))}}function Hf(t){return g(()=>t.name||t.for)}function aS(t,e){function n(){const i=t.modelValue;try{const o="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(i)===i&&("length"in i?Array.from(i):[i]).forEach(s=>{o.items.add(s)}),{files:o.files}}catch{return{files:void 0}}}return g(()=>{if(t.type==="file")return n()})}function jf(t){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,t(n)}else n.type==="compositionstart"&&(n.target.qComposing=!0)}}const $f=ze({name:"QInput",inheritAttrs:!1,props:{...ga,...iS,...ma,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...dl,"paste","change","keydown","click","animationend"],setup(t,{emit:e,attrs:n}){const{proxy:i}=$e(),{$q:o}=i,s={};let a=NaN,r,l,c=null,u;const d=N(null),h=Hf(t),{innerValue:f,hasMask:m,moveCursorForPaste:p,updateMaskValue:v,onMaskedKeydown:b,onMaskedClick:y}=oS(t,e,U,d),_=aS(t),x=g(()=>zo(f.value)),C=jf(z),S=hl({changeEvent:!0}),E=g(()=>t.type==="textarea"||t.autogrow===!0),A=g(()=>E.value===!0||["text","search","url","tel","password"].includes(t.type)),D=g(()=>{const T={...S.splitAttrs.listeners.value,onInput:z,onPaste:H,onChange:Y,onBlur:te,onFocus:wn};return T.onCompositionstart=T.onCompositionupdate=T.onCompositionend=C,m.value===!0&&(T.onKeydown=b,T.onClick=y),t.autogrow===!0&&(T.onAnimationend=$),T}),M=g(()=>{const T={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:h.value,...S.splitAttrs.attributes.value,id:S.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return E.value===!1&&(T.type=t.type),t.autogrow===!0&&(T.rows=1),T});ge(()=>t.type,()=>{d.value&&(d.value.value=t.modelValue)}),ge(()=>t.modelValue,T=>{if(m.value===!0){if(l===!0&&(l=!1,String(T)===a))return;v(T)}else f.value!==T&&(f.value=T,t.type==="number"&&s.hasOwnProperty("value")===!0&&(r===!0?r=!1:delete s.value));t.autogrow===!0&&ut(G)}),ge(()=>t.autogrow,T=>{T===!0?ut(G):d.value!==null&&n.rows>0&&(d.value.style.height="auto")}),ge(()=>t.dense,()=>{t.autogrow===!0&&ut(G)});function R(){aa(()=>{const T=document.activeElement;d.value!==null&&d.value!==T&&(T===null||T.id!==S.targetUid.value)&&d.value.focus({preventScroll:!0})})}function P(){d.value!==null&&d.value.select()}function H(T){if(m.value===!0&&t.reverseFillMask!==!0){const Q=T.target;p(Q,Q.selectionStart,Q.selectionEnd)}e("paste",T)}function z(T){if(!T||!T.target)return;if(t.type==="file"){e("update:modelValue",T.target.files);return}const Q=T.target.value;if(T.target.qComposing===!0){s.value=Q;return}if(m.value===!0)v(Q,!1,T.inputType);else if(U(Q),A.value===!0&&T.target===document.activeElement){const{selectionStart:re,selectionEnd:fe}=T.target;re!==void 0&&fe!==void 0&&ut(()=>{T.target===document.activeElement&&Q.indexOf(T.target.value)===0&&T.target.setSelectionRange(re,fe)})}t.autogrow===!0&&G()}function $(T){e("animationend",T),G()}function U(T,Q){u=()=>{c=null,t.type!=="number"&&s.hasOwnProperty("value")===!0&&delete s.value,t.modelValue!==T&&a!==T&&(a=T,Q===!0&&(l=!0),e("update:modelValue",T),ut(()=>{a===T&&(a=NaN)})),u=void 0},t.type==="number"&&(r=!0,s.value=T),t.debounce!==void 0?(c!==null&&clearTimeout(c),s.value=T,c=setTimeout(u,t.debounce)):u()}function G(){requestAnimationFrame(()=>{const T=d.value;if(T!==null){const Q=T.parentNode.style,{scrollTop:re}=T,{overflowY:fe,maxHeight:B}=o.platform.is.firefox===!0?{}:window.getComputedStyle(T),J=fe!==void 0&&fe!=="scroll";J===!0&&(T.style.overflowY="hidden"),Q.marginBottom=T.scrollHeight-1+"px",T.style.height="1px",T.style.height=T.scrollHeight+"px",J===!0&&(T.style.overflowY=parseInt(B,10){d.value!==null&&(d.value.value=f.value!==void 0?f.value:"")})}function de(){return s.hasOwnProperty("value")===!0?s.value:f.value!==void 0?f.value:""}Ot(()=>{te()}),Wt(()=>{t.autogrow===!0&&G()}),Object.assign(S,{innerValue:f,fieldClass:g(()=>`q-${E.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:g(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:d,emitValue:U,hasValue:x,floatingLabel:g(()=>x.value===!0&&(t.type!=="number"||isNaN(f.value)===!1)||zo(t.displayValue)),getControl:()=>w(E.value===!0?"textarea":"input",{ref:d,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...M.value,...D.value,...t.type!=="file"?{value:de()}:_.value}),getShadowControl:()=>w("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(E.value===!0?"":" text-no-wrap")},[w("span",{class:"invisible"},de()),w("span",t.shadowText)])});const O=fl(S);return Object.assign(i,{focus:R,select:P,getNativeElement:()=>d.value}),ei(i,"nativeEl",()=>d.value),O}}),wr=ze({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(t,{slots:e,emit:n}){const i=$e(),{proxy:{$q:o}}=i,s=a=>{n("click",a)};return()=>{if(t.props===void 0)return w("th",{class:t.autoWidth===!0?"q-table--col-auto-width":"",onClick:s},Ge(e.default));let a,r;const l=i.vnode.key;if(l){if(a=t.props.colsMap[l],a===void 0)return}else a=t.props.col;if(a.sortable===!0){const u=a.align==="right"?"unshift":"push";r=nm(e.default,[]),r[u](w(_e,{class:a.__iconClass,name:o.iconSet.table.arrowUp}))}else r=Ge(e.default);const c={class:a.__thClass+(t.autoWidth===!0?" q-table--col-auto-width":""),style:a.headerStyle,onClick:u=>{a.sortable===!0&&t.props.sort(a),s(u)}};return w("th",c,r)}}}),er=ze({name:"QTr",props:{props:Object,noHover:Boolean},setup(t,{slots:e}){const n=g(()=>"q-tr"+(t.props===void 0||t.props.header===!0?"":" "+t.props.__trClass)+(t.noHover===!0?" q-tr--no-hover":""));return()=>w("tr",{class:n.value},Ge(e.default))}}),rS=["horizontal","vertical","cell","none"],lS=ze({name:"QMarkupTable",props:{...un,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:t=>rS.includes(t)}},setup(t,{slots:e}){const n=$e(),i=dn(t,n.proxy.$q),o=g(()=>`q-markup-table q-table__container q-table__card q-table--${t.separator}-separator`+(i.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(t.dense===!0?" q-table--dense":"")+(t.flat===!0?" q-table--flat":"")+(t.bordered===!0?" q-table--bordered":"")+(t.square===!0?" q-table--square":"")+(t.wrapCells===!1?" q-table--no-wrap":""));return()=>w("div",{class:o.value},[w("table",{class:"q-table"},Ge(e.default))])}});function Uf(t,e){return w("div",t,[w("table",{class:"q-table"},e)])}const on=1e3,cS=["start","center","end","start-force","center-force","end-force"],Yf=Array.prototype.filter,uS=window.getComputedStyle(document.body).overflowAnchor===void 0?pd:function(t,e){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const n=t.children||[];Yf.call(n,o=>o.dataset&&o.dataset.qVsAnchor!==void 0).forEach(o=>{delete o.dataset.qVsAnchor});const i=n[e];i&&i.dataset&&(i.dataset.qVsAnchor="")}))};function Li(t,e){return t+e}function tr(t,e,n,i,o,s,a,r){const l=t===window?document.scrollingElement||document.documentElement:t,c=o===!0?"offsetWidth":"offsetHeight",u={scrollStart:0,scrollViewSize:-a-r,scrollMaxSize:0,offsetStart:-a,offsetEnd:-r};if(o===!0?(t===window?(u.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,u.scrollViewSize+=document.documentElement.clientWidth):(u.scrollStart=l.scrollLeft,u.scrollViewSize+=l.clientWidth),u.scrollMaxSize=l.scrollWidth,s===!0&&(u.scrollStart=(Vo===!0?u.scrollMaxSize-u.scrollViewSize:0)-u.scrollStart)):(t===window?(u.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,u.scrollViewSize+=document.documentElement.clientHeight):(u.scrollStart=l.scrollTop,u.scrollViewSize+=l.clientHeight),u.scrollMaxSize=l.scrollHeight),n!==null)for(let d=n.previousElementSibling;d!==null;d=d.previousElementSibling)d.classList.contains("q-virtual-scroll--skip")===!1&&(u.offsetStart+=d[c]);if(i!==null)for(let d=i.nextElementSibling;d!==null;d=d.nextElementSibling)d.classList.contains("q-virtual-scroll--skip")===!1&&(u.offsetEnd+=d[c]);if(e!==t){const d=l.getBoundingClientRect(),h=e.getBoundingClientRect();o===!0?(u.offsetStart+=h.left-d.left,u.offsetEnd-=h.width):(u.offsetStart+=h.top-d.top,u.offsetEnd-=h.height),t!==window&&(u.offsetStart+=u.scrollStart),u.offsetEnd+=u.scrollMaxSize-u.offsetStart}return u}function Nu(t,e,n,i){e==="end"&&(e=(t===window?document.body:t)[n===!0?"scrollWidth":"scrollHeight"]),t===window?n===!0?(i===!0&&(e=(Vo===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-e),window.scrollTo(e,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,e):n===!0?(i===!0&&(e=(Vo===!0?t.scrollWidth-t.offsetWidth:0)-e),t.scrollLeft=e):t.scrollTop=e}function co(t,e,n,i){if(n>=i)return 0;const o=e.length,s=Math.floor(n/on),a=Math.floor((i-1)/on)+1;let r=t.slice(s,a).reduce(Li,0);return n%on!==0&&(r-=e.slice(s*on,n).reduce(Li,0)),i%on!==0&&i!==o&&(r-=e.slice(i,a*on).reduce(Li,0)),r}const Zf={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Xf=Object.keys(Zf),kr={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Zf};function Kf({virtualScrollLength:t,getVirtualScrollTarget:e,getVirtualScrollEl:n,virtualScrollItemSizeComputed:i}){const o=$e(),{props:s,emit:a,proxy:r}=o,{$q:l}=r;let c,u,d,h=[],f;const m=N(0),p=N(0),v=N({}),b=N(null),y=N(null),_=N(null),x=N({from:0,to:0}),C=g(()=>s.tableColspan!==void 0?s.tableColspan:100);i===void 0&&(i=g(()=>s.virtualScrollItemSize));const S=g(()=>i.value+";"+s.virtualScrollHorizontal),E=g(()=>S.value+";"+s.virtualScrollSliceRatioBefore+";"+s.virtualScrollSliceRatioAfter);ge(E,()=>{U()}),ge(S,A);function A(){$(u,!0)}function D(O){$(O===void 0?u:O)}function M(O,T){const Q=e();if(Q==null||Q.nodeType===8)return;const re=tr(Q,n(),b.value,y.value,s.virtualScrollHorizontal,l.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd);d!==re.scrollViewSize&&U(re.scrollViewSize),P(Q,re,Math.min(t.value-1,Math.max(0,parseInt(O,10)||0)),0,cS.indexOf(T)!==-1?T:u!==-1&&O>u?"end":"start")}function R(){const O=e();if(O==null||O.nodeType===8)return;const T=tr(O,n(),b.value,y.value,s.virtualScrollHorizontal,l.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd),Q=t.value-1,re=T.scrollMaxSize-T.offsetStart-T.offsetEnd-p.value;if(c===T.scrollStart)return;if(T.scrollMaxSize<=0){P(O,T,0,0);return}d!==T.scrollViewSize&&U(T.scrollViewSize),H(x.value.from);const fe=Math.floor(T.scrollMaxSize-Math.max(T.scrollViewSize,T.offsetEnd)-Math.min(f[Q],T.scrollViewSize/2));if(fe>0&&Math.ceil(T.scrollStart)>=fe){P(O,T,Q,T.scrollMaxSize-T.offsetEnd-h.reduce(Li,0));return}let B=0,J=T.scrollStart-T.offsetStart,we=J;if(J<=re&&J+T.scrollViewSize>=m.value)J-=m.value,B=x.value.from,we=J;else for(let Z=0;J>=h[Z]&&B0&&B-T.scrollViewSize?(B++,we=J):we=f[B]+J;P(O,T,B,we)}function P(O,T,Q,re,fe){const B=typeof fe=="string"&&fe.indexOf("-force")!==-1,J=B===!0?fe.replace("-force",""):fe,we=J!==void 0?J:"start";let Z=Math.max(0,Q-v.value[we]),Ee=Z+v.value.total;Ee>t.value&&(Ee=t.value,Z=Math.max(0,Ee-v.value.total)),c=T.scrollStart;const Xe=Z!==x.value.from||Ee!==x.value.to;if(Xe===!1&&J===void 0){Y(Q);return}const{activeElement:_t}=document,et=_.value;Xe===!0&&et!==null&&et!==_t&&et.contains(_t)===!0&&(et.addEventListener("focusout",z),setTimeout(()=>{et!==null&&et.removeEventListener("focusout",z)})),uS(et,Q-Z);const dt=J!==void 0?f.slice(Z,Q).reduce(Li,0):0;if(Xe===!0){const mt=Ee>=x.value.from&&Z<=x.value.to?x.value.to:Ee;x.value={from:Z,to:mt},m.value=co(h,f,0,Z),p.value=co(h,f,Ee,t.value),requestAnimationFrame(()=>{x.value.to!==Ee&&c===T.scrollStart&&(x.value={from:x.value.from,to:Ee},p.value=co(h,f,Ee,t.value))})}requestAnimationFrame(()=>{if(c!==T.scrollStart)return;Xe===!0&&H(Z);const mt=f.slice(Z,Q).reduce(Li,0),ht=mt+T.offsetStart+m.value,Dt=ht+f[Q];let Vt=ht+re;if(J!==void 0){const Ut=mt-dt,Et=T.scrollStart+Ut;Vt=B!==!0&&EtZ.classList&&Z.classList.contains("q-virtual-scroll--skip")===!1),re=Q.length,fe=s.virtualScrollHorizontal===!0?Z=>Z.getBoundingClientRect().width:Z=>Z.offsetHeight;let B=O,J,we;for(let Z=0;Z=re;B--)f[B]=Q;const fe=Math.floor((t.value-1)/on);h=[];for(let B=0;B<=fe;B++){let J=0;const we=Math.min((B+1)*on,t.value);for(let Z=B*on;Z=0?(H(x.value.from),ut(()=>{M(O)})):te()}function U(O){if(O===void 0&&typeof window<"u"){const J=e();J!=null&&J.nodeType!==8&&(O=tr(J,n(),b.value,y.value,s.virtualScrollHorizontal,l.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd).scrollViewSize)}d=O;const T=parseFloat(s.virtualScrollSliceRatioBefore)||0,Q=parseFloat(s.virtualScrollSliceRatioAfter)||0,re=1+T+Q,fe=O===void 0||O<=0?1:Math.ceil(O/i.value),B=Math.max(1,fe,Math.ceil((s.virtualScrollSliceSize>0?s.virtualScrollSliceSize:10)/re));v.value={total:Math.ceil(B*re),start:Math.ceil(B*T),center:Math.ceil(B*(.5+T)),end:Math.ceil(B*(1+T)),view:fe}}function G(O,T){const Q=s.virtualScrollHorizontal===!0?"width":"height",re={["--q-virtual-scroll-item-"+Q]:i.value+"px"};return[O==="tbody"?w(O,{class:"q-virtual-scroll__padding",key:"before",ref:b},[w("tr",[w("td",{style:{[Q]:`${m.value}px`,...re},colspan:C.value})])]):w(O,{class:"q-virtual-scroll__padding",key:"before",ref:b,style:{[Q]:`${m.value}px`,...re}}),w(O,{class:"q-virtual-scroll__content",key:"content",ref:_,tabindex:-1},T.flat()),O==="tbody"?w(O,{class:"q-virtual-scroll__padding",key:"after",ref:y},[w("tr",[w("td",{style:{[Q]:`${p.value}px`,...re},colspan:C.value})])]):w(O,{class:"q-virtual-scroll__padding",key:"after",ref:y,style:{[Q]:`${p.value}px`,...re}})]}function Y(O){u!==O&&(s.onVirtualScroll!==void 0&&a("virtualScroll",{index:O,from:x.value.from,to:x.value.to-1,direction:O{U()});let de=!1;return ea(()=>{de=!0}),ta(()=>{if(de!==!0)return;const O=e();c!==void 0&&O!==void 0&&O!==null&&O.nodeType!==8?Nu(O,c,s.virtualScrollHorizontal,l.lang.rtl):M(u)}),Ot(()=>{te.cancel()}),Object.assign(r,{scrollTo:M,reset:A,refresh:D}),{virtualScrollSliceRange:x,virtualScrollSliceSizeComputed:v,setVirtualScrollSize:U,onVirtualScrollEvt:te,localResetVirtualScroll:$,padVirtualScroll:G,scrollTo:M,reset:A,refresh:D}}const dS={list:ia,table:lS},hS=["list","table","__qtable"],fS=ze({name:"QVirtualScroll",props:{...kr,type:{type:String,default:"list",validator:t=>hS.includes(t)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Dd},setup(t,{slots:e,attrs:n}){let i;const o=N(null),s=g(()=>t.itemsSize>=0&&t.itemsFn!==void 0?parseInt(t.itemsSize,10):Array.isArray(t.items)?t.items.length:0),{virtualScrollSliceRange:a,localResetVirtualScroll:r,padVirtualScroll:l,onVirtualScrollEvt:c}=Kf({virtualScrollLength:s,getVirtualScrollTarget:m,getVirtualScrollEl:f}),u=g(()=>{if(s.value===0)return[];const y=(_,x)=>({index:a.value.from+x,item:_});return t.itemsFn===void 0?t.items.slice(a.value.from,a.value.to).map(y):t.itemsFn(a.value.from,a.value.to-a.value.from).map(y)}),d=g(()=>"q-virtual-scroll q-virtual-scroll"+(t.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(t.scrollTarget!==void 0?"":" scroll")),h=g(()=>t.scrollTarget!==void 0?{}:{tabindex:0});ge(s,()=>{r()}),ge(()=>t.scrollTarget,()=>{v(),p()});function f(){return o.value.$el||o.value}function m(){return i}function p(){i=Vd(f(),t.scrollTarget),i.addEventListener("scroll",c,Dl.passive)}function v(){i!==void 0&&(i.removeEventListener("scroll",c,Dl.passive),i=void 0)}function b(){let y=l(t.type==="list"?"div":"tbody",u.value.map(e.default));return e.before!==void 0&&(y=e.before().concat(y)),hi(e.after,y)}return Er(()=>{r()}),Wt(()=>{p()}),ta(()=>{p()}),ea(()=>{v()}),Ot(()=>{v()}),()=>{if(e.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return t.type==="__qtable"?Uf({ref:o,class:"q-table__middle "+d.value},b()):w(dS[t.type],{...n,ref:o,class:[n.class,d.value],...h.value},b)}}}),Qf=ze({name:"QField",inheritAttrs:!1,props:{...ga,tag:{type:String,default:"label"}},emits:dl,setup(){return fl(hl({tagProp:!0}))}}),gS={xs:8,sm:10,md:14,lg:20,xl:24},Ks=ze({name:"QChip",props:{...un,...Ar,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(t,{slots:e,emit:n}){const{proxy:{$q:i}}=$e(),o=dn(t,i),s=Rr(t,gS),a=g(()=>t.selected===!0||t.icon!==void 0),r=g(()=>t.selected===!0?t.iconSelected||i.iconSet.chip.selected:t.icon),l=g(()=>t.iconRemove||i.iconSet.chip.remove),c=g(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),u=g(()=>{const v=t.outline===!0&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(t.outline===!1&&t.color!==void 0?` bg-${t.color}`:"")+(v?` text-${v} q-chip--colored`:"")+(t.disable===!0?" disabled":"")+(t.dense===!0?" q-chip--dense":"")+(t.outline===!0?" q-chip--outline":"")+(t.selected===!0?" q-chip--selected":"")+(c.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(t.square===!0?" q-chip--square":"")+(o.value===!0?" q-chip--dark q-dark":"")}),d=g(()=>{const v=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},b={...v,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||i.lang.label.remove};return{chip:v,remove:b}});function h(v){v.keyCode===13&&f(v)}function f(v){t.disable||(n("update:selected",!t.selected),n("click",v))}function m(v){(v.keyCode===void 0||v.keyCode===13)&&(Pt(v),t.disable===!1&&(n("update:modelValue",!1),n("remove")))}function p(){const v=[];c.value===!0&&v.push(w("div",{class:"q-focus-helper"})),a.value===!0&&v.push(w(_e,{class:"q-chip__icon q-chip__icon--left",name:r.value}));const b=t.label!==void 0?[w("div",{class:"ellipsis"},[t.label])]:void 0;return v.push(w("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},im(e.default,b))),t.iconRight&&v.push(w(_e,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&v.push(w(_e,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:l.value,...d.value.remove,onClick:m,onKeyup:m})),v}return()=>{if(t.modelValue===!1)return;const v={class:u.value,style:s.value};return c.value===!0&&Object.assign(v,d.value.chip,{onClick:f,onKeyup:h}),na("div",v,p(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[gd,t.ripple]])}}}),Gf=ze({name:"QMenu",inheritAttrs:!1,props:{...Sm,...Md,...un,...Lr,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Ll},self:{type:String,validator:Ll},offset:{type:Array,validator:wm},scrollTarget:Dd,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Pd,"click","escapeKey"],setup(t,{slots:e,emit:n,attrs:i}){let o=null,s,a,r;const l=$e(),{proxy:c}=l,{$q:u}=c,d=N(null),h=N(!1),f=g(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),m=dn(t,u),{registerTick:p,removeTick:v}=_o(),{registerTimeout:b}=Oo(),{transitionProps:y,transitionStyle:_}=Td(t),{localScrollTarget:x,changeScrollEvent:C,unconfigureScrollTarget:S}=km(t,Q),{anchorEl:E,canShow:A}=Cm({showing:h}),{hide:D}=Od({showing:h,canShow:A,handleShow:de,handleHide:O,hideOnRouteChange:f,processOnMount:!0}),{showPortal:M,hidePortal:R,renderPortal:P}=Id(l,d,we,"menu"),H={anchorEl:E,innerRef:d,onClickOutside(Z){if(t.persistent!==!0&&h.value===!0)return D(Z),(Z.type==="touchstart"||Z.target.classList.contains("q-dialog__backdrop"))&&Pt(Z),!0}},z=g(()=>zl(t.anchor||(t.cover===!0?"center middle":"bottom start"),u.lang.rtl)),$=g(()=>t.cover===!0?z.value:zl(t.self||"top start",u.lang.rtl)),U=g(()=>(t.square===!0?" q-menu--square":"")+(m.value===!0?" q-menu--dark q-dark":"")),G=g(()=>t.autoClose===!0?{onClick:re}:{}),Y=g(()=>h.value===!0&&t.persistent!==!0);ge(Y,Z=>{Z===!0?(Lf(B),Tm(H)):(Zs(B),Fl(H))});function te(){aa(()=>{let Z=d.value;Z&&Z.contains(document.activeElement)!==!0&&(Z=Z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Z.querySelector("[autofocus], [data-autofocus]")||Z,Z.focus({preventScroll:!0}))})}function de(Z){if(o=t.noRefocus===!1?document.activeElement:null,zf(fe),M(),Q(),s=void 0,Z!==void 0&&(t.touchPosition||t.contextMenu)){const Ee=Es(Z);if(Ee.left!==void 0){const{top:Xe,left:_t}=E.value.getBoundingClientRect();s={left:Ee.left-_t,top:Ee.top-Xe}}}a===void 0&&(a=ge(()=>u.screen.width+"|"+u.screen.height+"|"+t.self+"|"+t.anchor+"|"+u.lang.rtl,J)),t.noFocus!==!0&&document.activeElement.blur(),p(()=>{J(),t.noFocus!==!0&&te()}),b(()=>{u.platform.is.ios===!0&&(r=t.autoClose,d.value.click()),J(),M(!0),n("show",Z)},t.transitionDuration)}function O(Z){v(),R(),T(!0),o!==null&&(Z===void 0||Z.qClickOutside!==!0)&&(((Z&&Z.type.indexOf("key")===0?o.closest('[tabindex]:not([tabindex^="-"])'):void 0)||o).focus(),o=null),b(()=>{R(!0),n("hide",Z)},t.transitionDuration)}function T(Z){s=void 0,a!==void 0&&(a(),a=void 0),(Z===!0||h.value===!0)&&(Sr(fe),S(),Fl(H),Zs(B)),Z!==!0&&(o=null)}function Q(){(E.value!==null||t.scrollTarget!==void 0)&&(x.value=Vd(E.value,t.scrollTarget),C(x.value,J))}function re(Z){r!==!0?(Pm(c,Z),n("click",Z)):r=!1}function fe(Z){Y.value===!0&&t.noFocus!==!0&&Sd(d.value,Z.target)!==!0&&te()}function B(Z){n("escapeKey"),D(Z)}function J(){Mm({targetEl:d.value,offset:t.offset,anchorEl:E.value,anchorOrigin:z.value,selfOrigin:$.value,absoluteOffset:s,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function we(){return w(To,y.value,()=>h.value===!0?w("div",{role:"menu",...i,ref:d,tabindex:-1,class:["q-menu q-position-engine scroll"+U.value,i.class],style:[i.style,_.value],...G.value},Ge(e.default)):null)}return Ot(T),Object.assign(c,{focus:te,updatePosition:J}),P}}),Wu=t=>["add","add-unique","toggle"].includes(t),mS=".*+?^${}()|[]\\",vS=Object.keys(ga);function nr(t,e){if(typeof t=="function")return t;const n=t!==void 0?t:e;return i=>i!==null&&typeof i=="object"&&n in i?i[n]:i}const pS=ze({name:"QSelect",inheritAttrs:!1,props:{...kr,...ma,...ga,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Wu},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:t=>["default","menu","dialog"].includes(t),default:"default"},virtualScrollItemSize:kr.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...dl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:e,emit:n}){const{proxy:i}=$e(),{$q:o}=i,s=N(!1),a=N(!1),r=N(-1),l=N(""),c=N(!1),u=N(!1);let d=null,h=null,f,m,p,v=null,b,y,_,x;const C=N(null),S=N(null),E=N(null),A=N(null),D=N(null),M=Hf(t),R=jf(F),P=g(()=>t.options.length),H=g(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:z,virtualScrollSliceSizeComputed:$,localResetVirtualScroll:U,padVirtualScroll:G,onVirtualScrollEvt:Y,scrollTo:te,setVirtualScrollSize:de}=Kf({virtualScrollLength:P,getVirtualScrollTarget:ka,getVirtualScrollEl:On,virtualScrollItemSizeComputed:H}),O=hl(),T=g(()=>{const k=t.mapOptions===!0&&t.multiple!==!0,oe=t.modelValue!==void 0&&(t.modelValue!==null||k===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0){const se=t.mapOptions===!0&&f!==void 0?f:[],Ie=oe.map(Ye=>W(Ye,se));return t.modelValue===null&&k===!0?Ie.filter(Ye=>Ye!==null):Ie}return oe}),Q=g(()=>{const k={};return vS.forEach(oe=>{const se=t[oe];se!==void 0&&(k[oe]=se)}),k}),re=g(()=>t.optionsDark===null?O.isDark.value:t.optionsDark),fe=g(()=>zo(T.value)),B=g(()=>{let k="q-field__input q-placeholder col";return t.hideSelected===!0||T.value.length===0?[k,t.inputClass]:(k+=" q-field__input--padding",t.inputClass===void 0?k:[k,t.inputClass])}),J=g(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),we=g(()=>P.value===0),Z=g(()=>T.value.map(k=>j.value(k)).join(", ")),Ee=g(()=>t.displayValue!==void 0?t.displayValue:Z.value),Xe=g(()=>t.optionsHtml===!0?()=>!0:k=>k!=null&&k.html===!0),_t=g(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||T.value.some(Xe.value))),et=g(()=>O.focused.value===!0?t.tabindex:-1),dt=g(()=>{const k={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":t.readonly===!0?"true":"false","aria-autocomplete":t.useInput===!0?"list":"none","aria-expanded":s.value===!0?"true":"false","aria-controls":`${O.targetUid.value}_lb`};return r.value>=0&&(k["aria-activedescendant"]=`${O.targetUid.value}_${r.value}`),k}),mt=g(()=>({id:`${O.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),ht=g(()=>T.value.map((k,oe)=>({index:oe,opt:k,html:Xe.value(k),selected:!0,removeAtIndex:Pe,toggleOption:tt,tabindex:et.value}))),Dt=g(()=>{if(P.value===0)return[];const{from:k,to:oe}=z.value;return t.options.slice(k,oe).map((se,Ie)=>{const Ye=ae.value(se)===!0,Ue=me(se)===!0,xt=k+Ie,ct={clickable:!0,active:Ue,activeClass:Et.value,manualFocus:!0,focused:!1,disable:Ye,tabindex:-1,dense:t.optionsDense,dark:re.value,role:"option","aria-selected":Ue===!0?"true":"false",id:`${O.targetUid.value}_${xt}`,onClick:()=>{tt(se)}};return Ye!==!0&&(r.value===xt&&(ct.focused=!0),o.platform.is.desktop===!0&&(ct.onMousemove=()=>{s.value===!0&&vt(xt)})),{index:xt,opt:se,html:Xe.value(se),label:j.value(se),selected:ct.active,focused:ct.focused,toggleOption:tt,setOptionIndex:vt,itemProps:ct}})}),Vt=g(()=>t.dropdownIcon!==void 0?t.dropdownIcon:o.iconSet.arrow.dropdown),Ut=g(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),Et=g(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),lt=g(()=>nr(t.optionValue,"value")),j=g(()=>nr(t.optionLabel,"label")),ae=g(()=>nr(t.optionDisable,"disable")),X=g(()=>T.value.map(lt.value)),ce=g(()=>{const k={onInput:F,onChange:R,onKeydown:Gt,onKeyup:nt,onKeypress:Ft,onFocus:ke,onClick(oe){m===!0&&wn(oe)}};return k.onCompositionstart=k.onCompositionupdate=k.onCompositionend=R,k});ge(T,k=>{f=k,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&O.innerLoading.value!==!0&&(a.value!==!0&&s.value!==!0||fe.value!==!0)&&(p!==!0&&xi(),(a.value===!0||s.value===!0)&&pe(""))},{immediate:!0}),ge(()=>t.fillInput,xi),ge(s,Ta),ge(P,Bg);function De(k){return t.emitValue===!0?lt.value(k):k}function ye(k){if(k!==-1&&k=t.maxValues)return;const Ie=t.modelValue.slice();n("add",{index:Ie.length,value:se}),Ie.push(se),n("update:modelValue",Ie)}function tt(k,oe){if(O.editable.value!==!0||k===void 0||ae.value(k)===!0)return;const se=lt.value(k);if(t.multiple!==!0){oe!==!0&&(ve(t.fillInput===!0?j.value(k):"",!0,!0),Un()),S.value!==null&&S.value.focus(),(T.value.length===0||to(lt.value(T.value[0]),se)!==!0)&&n("update:modelValue",t.emitValue===!0?se:k);return}if((m!==!0||c.value===!0)&&O.focus(),ke(),T.value.length===0){const Ue=t.emitValue===!0?se:k;n("add",{index:0,value:Ue}),n("update:modelValue",t.multiple===!0?[Ue]:Ue);return}const Ie=t.modelValue.slice(),Ye=X.value.findIndex(Ue=>to(Ue,se));if(Ye!==-1)n("remove",{index:Ye,value:Ie.splice(Ye,1)[0]});else{if(t.maxValues!==void 0&&Ie.length>=t.maxValues)return;const Ue=t.emitValue===!0?se:k;n("add",{index:Ie.length,value:Ue}),Ie.push(Ue)}n("update:modelValue",Ie)}function vt(k){if(o.platform.is.desktop!==!0)return;const oe=k!==-1&&k=0?j.value(t.options[se]):b,!0))}}function W(k,oe){const se=Ie=>to(lt.value(Ie),k);return t.options.find(se)||oe.find(se)||k}function me(k){const oe=lt.value(k);return X.value.find(se=>to(se,oe))!==void 0}function ke(k){t.useInput===!0&&S.value!==null&&(k===void 0||S.value===k.target&&k.target.value===Z.value)&&S.value.select()}function He(k){Js(k,27)===!0&&s.value===!0&&(wn(k),Un(),xi()),n("keyup",k)}function nt(k){const{value:oe}=k.target;if(k.keyCode!==void 0){He(k);return}if(k.target.value="",d!==null&&(clearTimeout(d),d=null),h!==null&&(clearTimeout(h),h=null),xi(),typeof oe=="string"&&oe.length!==0){const se=oe.toLocaleLowerCase(),Ie=Ue=>{const xt=t.options.find(ct=>Ue.value(ct).toLocaleLowerCase()===se);return xt===void 0?!1:(T.value.indexOf(xt)===-1?tt(xt):Un(),!0)},Ye=Ue=>{Ie(lt)!==!0&&(Ie(j)===!0||Ue===!0||pe(oe,!0,()=>Ye(!0)))};Ye()}else O.clearValue(k)}function Ft(k){n("keypress",k)}function Gt(k){if(n("keydown",k),Vr(k)===!0)return;const oe=l.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),se=k.shiftKey!==!0&&t.disableTabSelection!==!0&&t.multiple!==!0&&(r.value!==-1||oe===!0);if(k.keyCode===27){qn(k);return}if(k.keyCode===9&&se===!1){yi();return}if(k.target===void 0||k.target.id!==O.targetUid.value||O.editable.value!==!0)return;if(k.keyCode===40&&O.innerLoading.value!==!0&&s.value===!1){Pt(k),_i();return}if(k.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&l.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?ye(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&n("update:modelValue",null);return}(k.keyCode===35||k.keyCode===36)&&(typeof l.value!="string"||l.value.length===0)&&(Pt(k),r.value=-1,At(k.keyCode===36?1:-1,t.multiple)),(k.keyCode===33||k.keyCode===34)&&$.value!==void 0&&(Pt(k),r.value=Math.max(-1,Math.min(P.value,r.value+(k.keyCode===33?-1:1)*$.value.view)),At(k.keyCode===33?1:-1,t.multiple)),(k.keyCode===38||k.keyCode===40)&&(Pt(k),At(k.keyCode===38?-1:1,t.multiple));const Ie=P.value;if((_===void 0||x0&&t.useInput!==!0&&k.key!==void 0&&k.key.length===1&&k.altKey===!1&&k.ctrlKey===!1&&k.metaKey===!1&&(k.keyCode!==32||_.length!==0)){s.value!==!0&&_i(k);const Ye=k.key.toLocaleLowerCase(),Ue=_.length===1&&_[0]===Ye;x=Date.now()+1500,Ue===!1&&(Pt(k),_+=Ye);const xt=new RegExp("^"+_.split("").map(Ia=>mS.indexOf(Ia)!==-1?"\\"+Ia:Ia).join(".*"),"i");let ct=r.value;if(Ue===!0||ct<0||xt.test(j.value(t.options[ct]))!==!0)do ct=Bl(ct+1,-1,Ie-1);while(ct!==r.value&&(ae.value(t.options[ct])===!0||xt.test(j.value(t.options[ct]))!==!0));r.value!==ct&&ut(()=>{vt(ct),te(ct),ct>=0&&t.useInput===!0&&t.fillInput===!0&&ie(j.value(t.options[ct]),!0)});return}if(!(k.keyCode!==13&&(k.keyCode!==32||t.useInput===!0||_!=="")&&(k.keyCode!==9||se===!1))){if(k.keyCode!==9&&Pt(k),r.value!==-1&&r.value{if(xt){if(Wu(xt)!==!0)return}else xt=t.newValueMode;if(ve("",t.multiple!==!0,!0),Ue==null)return;(xt==="toggle"?tt:ot)(Ue,xt==="add-unique"),t.multiple!==!0&&(S.value!==null&&S.value.focus(),Un())};if(t.onNewValue!==void 0?n("newValue",l.value,Ye):Ye(l.value),t.multiple!==!0)return}s.value===!0?yi():O.innerLoading.value!==!0&&_i()}}function On(){return m===!0?D.value:E.value!==null&&E.value.contentEl!==null?E.value.contentEl:void 0}function ka(){return On()}function Ca(){return t.hideSelected===!0?[]:e["selected-item"]!==void 0?ht.value.map(k=>e["selected-item"](k)).slice():e.selected!==void 0?[].concat(e.selected()):t.useChips===!0?ht.value.map((k,oe)=>w(Ks,{key:"option-"+oe,removable:O.editable.value===!0&&ae.value(k.opt)!==!0,dense:!0,textColor:t.color,tabindex:et.value,onRemove(){k.removeAtIndex(oe)}},()=>w("span",{class:"ellipsis",[k.html===!0?"innerHTML":"textContent"]:j.value(k.opt)}))):[w("span",{[_t.value===!0?"innerHTML":"textContent"]:Ee.value})]}function Go(){if(we.value===!0)return e["no-option"]!==void 0?e["no-option"]({inputValue:l.value}):void 0;const k=e.option!==void 0?e.option:se=>w(oa,{key:se.index,...se.itemProps},()=>w(Do,()=>w(sa,()=>w("span",{[se.html===!0?"innerHTML":"textContent"]:se.label}))));let oe=G("div",Dt.value.map(k));return e["before-options"]!==void 0&&(oe=e["before-options"]().concat(oe)),hi(e["after-options"],oe)}function Ma(k,oe){const se=oe===!0?{...dt.value,...O.splitAttrs.attributes.value}:void 0,Ie={ref:oe===!0?S:void 0,key:"i_t",class:B.value,style:t.inputStyle,value:l.value!==void 0?l.value:"",type:"search",...se,id:oe===!0?O.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":k===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...ce.value};return k!==!0&&m===!0&&(Array.isArray(Ie.class)===!0?Ie.class=[...Ie.class,"no-pointer-events"]:Ie.class+=" no-pointer-events"),w("input",Ie)}function F(k){d!==null&&(clearTimeout(d),d=null),h!==null&&(clearTimeout(h),h=null),!(k&&k.target&&k.target.qComposing===!0)&&(ie(k.target.value||""),p=!0,b=l.value,O.focused.value!==!0&&(m!==!0||c.value===!0)&&O.focus(),t.onFilter!==void 0&&(d=setTimeout(()=>{d=null,pe(l.value)},t.inputDebounce)))}function ie(k,oe){l.value!==k&&(l.value=k,oe===!0||t.inputDebounce===0||t.inputDebounce==="0"?n("inputValue",k):h=setTimeout(()=>{h=null,n("inputValue",k)},t.inputDebounce))}function ve(k,oe,se){p=se!==!0,t.useInput===!0&&(ie(k,!0),(oe===!0||se!==!0)&&(b=k),oe!==!0&&pe(k))}function pe(k,oe,se){if(t.onFilter===void 0||oe!==!0&&O.focused.value!==!0)return;O.innerLoading.value===!0?n("filterAbort"):(O.innerLoading.value=!0,u.value=!0),k!==""&&t.multiple!==!0&&T.value.length!==0&&p!==!0&&k===j.value(T.value[0])&&(k="");const Ie=setTimeout(()=>{s.value===!0&&(s.value=!1)},10);v!==null&&clearTimeout(v),v=Ie,n("filter",k,(Ye,Ue)=>{(oe===!0||O.focused.value===!0)&&v===Ie&&(clearTimeout(v),typeof Ye=="function"&&Ye(),u.value=!1,ut(()=>{O.innerLoading.value=!1,O.editable.value===!0&&(oe===!0?s.value===!0&&Un():s.value===!0?Ta(!0):s.value=!0),typeof Ue=="function"&&ut(()=>{Ue(i)}),typeof se=="function"&&ut(()=>{se(i)})}))},()=>{O.focused.value===!0&&v===Ie&&(clearTimeout(v),O.innerLoading.value=!1,u.value=!1),s.value===!0&&(s.value=!1)})}function Te(){return w(Gf,{ref:E,class:J.value,style:t.popupContentStyle,modelValue:s.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&we.value!==!0&&t.useInput!==!0,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:re.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:Ut.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...mt.value,onScrollPassive:Y,onBeforeShow:Pl,onBeforeHide:it,onShow:Ke},Go)}function it(k){Tl(k),yi()}function Ke(){de()}function Jt(k){wn(k),S.value!==null&&S.value.focus(),c.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Ct(k){wn(k),ut(()=>{c.value=!1})}function pi(){const k=[w(Qf,{class:`col-auto ${O.fieldClass.value}`,...Q.value,for:O.targetUid.value,dark:re.value,square:!0,loading:u.value,itemAligned:!1,filled:!0,stackLabel:l.value.length!==0,...O.splitAttrs.listeners.value,onFocus:Jt,onBlur:Ct},{...e,rawControl:()=>O.getControl(!0),before:void 0,after:void 0})];return s.value===!0&&k.push(w("div",{ref:D,class:J.value+" scroll",style:t.popupContentStyle,...mt.value,onClick:qn,onScrollPassive:Y},Go())),w(Ki,{ref:A,modelValue:a.value,position:t.useInput===!0?"top":void 0,transitionShow:y,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Pl,onBeforeHide:bi,onHide:Pa,onShow:zg},()=>w("div",{class:"q-select__dialog"+(re.value===!0?" q-select__dialog--dark q-dark":"")+(c.value===!0?" q-select__dialog--focused":"")},k))}function bi(k){Tl(k),A.value!==null&&A.value.__updateRefocusTarget(O.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),O.focused.value=!1}function Pa(k){Un(),O.focused.value===!1&&n("blur",k),xi()}function zg(){const k=document.activeElement;(k===null||k.id!==O.targetUid.value)&&S.value!==null&&S.value!==k&&S.value.focus(),de()}function yi(){a.value!==!0&&(r.value=-1,s.value===!0&&(s.value=!1),O.focused.value===!1&&(v!==null&&(clearTimeout(v),v=null),O.innerLoading.value===!0&&(n("filterAbort"),O.innerLoading.value=!1,u.value=!1)))}function _i(k){O.editable.value===!0&&(m===!0?(O.onControlFocusin(k),a.value=!0,ut(()=>{O.focus()})):O.focus(),t.onFilter!==void 0?pe(l.value):(we.value!==!0||e["no-option"]!==void 0)&&(s.value=!0))}function Un(){a.value=!1,yi()}function xi(){t.useInput===!0&&ve(t.multiple!==!0&&t.fillInput===!0&&T.value.length!==0&&j.value(T.value[0])||"",!0,!0)}function Ta(k){let oe=-1;if(k===!0){if(T.value.length!==0){const se=lt.value(T.value[0]);oe=t.options.findIndex(Ie=>to(lt.value(Ie),se))}U(oe)}vt(oe)}function Bg(k,oe){s.value===!0&&O.innerLoading.value===!1&&(U(-1,!0),ut(()=>{s.value===!0&&O.innerLoading.value===!1&&(k>oe?U():Ta(!0))}))}function Ml(){a.value===!1&&E.value!==null&&E.value.updatePosition()}function Pl(k){k!==void 0&&wn(k),n("popupShow",k),O.hasPopupOpen=!0,O.onControlFocusin(k)}function Tl(k){k!==void 0&&wn(k),n("popupHide",k),O.hasPopupOpen=!1,O.onControlFocusout(k)}function Il(){m=o.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?e["no-option"]!==void 0||t.onFilter!==void 0||we.value===!1:!0),y=o.platform.is.ios===!0&&m===!0&&t.useInput===!0?"fade":t.transitionShow}return wd(Il),om(Ml),Il(),Ot(()=>{d!==null&&clearTimeout(d),h!==null&&clearTimeout(h)}),Object.assign(i,{showPopup:_i,hidePopup:Un,removeAtIndex:ye,add:ot,toggleOption:tt,getOptionIndex:()=>r.value,setOptionIndex:vt,moveOptionSelection:At,filter:pe,updateMenuPosition:Ml,updateInputValue:ve,isOptionSelected:me,getEmittingOptionValue:De,isOptionDisabled:(...k)=>ae.value.apply(null,k)===!0,getOptionValue:(...k)=>lt.value.apply(null,k),getOptionLabel:(...k)=>j.value.apply(null,k)}),Object.assign(O,{innerValue:T,fieldClass:g(()=>`q-select q-field--auto-height q-select--with${t.useInput!==!0?"out":""}-input q-select--with${t.useChips!==!0?"out":""}-chips q-select--${t.multiple===!0?"multiple":"single"}`),inputRef:C,targetRef:S,hasValue:fe,showPopup:_i,floatingLabel:g(()=>t.hideSelected!==!0&&fe.value===!0||typeof l.value=="number"||l.value.length!==0||zo(t.displayValue)),getControlChild:()=>{if(O.editable.value!==!1&&(a.value===!0||we.value!==!0||e["no-option"]!==void 0))return m===!0?pi():Te();O.hasPopupOpen===!0&&(O.hasPopupOpen=!1)},controlEvents:{onFocusin(k){O.onControlFocusin(k)},onFocusout(k){O.onControlFocusout(k,()=>{xi(),yi()})},onClick(k){if(qn(k),m!==!0&&s.value===!0){yi(),S.value!==null&&S.value.focus();return}_i(k)}},getControl:k=>{const oe=Ca(),se=k===!0||a.value!==!0||m!==!0;if(t.useInput===!0)oe.push(Ma(k,se));else if(O.editable.value===!0){const Ye=se===!0?dt.value:void 0;oe.push(w("input",{ref:se===!0?S:void 0,key:"d_t",class:"q-select__focus-target",id:se===!0?O.targetUid.value:void 0,value:Ee.value,readonly:!0,"data-autofocus":k===!0||t.autofocus===!0||void 0,...Ye,onKeydown:Gt,onKeyup:He,onKeypress:Ft})),se===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&oe.push(w("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:nt}))}if(M.value!==void 0&&t.disable!==!0&&X.value.length!==0){const Ye=X.value.map(Ue=>w("option",{value:Ue,selected:!0}));oe.push(w("select",{class:"hidden",name:M.value,multiple:t.multiple},Ye))}const Ie=t.useInput===!0||se!==!0?void 0:O.splitAttrs.attributes.value;return w("div",{class:"q-field__native row items-center",...Ie,...O.splitAttrs.listeners.value},oe)},getInnerAppend:()=>t.loading!==!0&&u.value!==!0&&t.hideDropdownIcon!==!0?[w(_e,{class:"q-select__dropdown-icon"+(s.value===!0?" rotate-180":""),name:Vt.value})]:null}),fl(O)}}),bS={xs:2,sm:4,md:6,lg:10,xl:14};function Hu(t,e,n){return{transform:e===!0?`translateX(${n.lang.rtl===!0?"-":""}100%) scale3d(${-t},1,1)`:`scale3d(${t},1,1)`}}const yS=ze({name:"QLinearProgress",props:{...un,...Ar,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(t,{slots:e}){const{proxy:n}=$e(),i=dn(t,n.$q),o=Rr(t,bS),s=g(()=>t.indeterminate===!0||t.query===!0),a=g(()=>t.reverse!==t.query),r=g(()=>({...o.value!==null?o.value:{},"--q-linear-progress-speed":`${t.animationSpeed}ms`})),l=g(()=>"q-linear-progress"+(t.color!==void 0?` text-${t.color}`:"")+(t.reverse===!0||t.query===!0?" q-linear-progress--reverse":"")+(t.rounded===!0?" rounded-borders":"")),c=g(()=>Hu(t.buffer!==void 0?t.buffer:1,a.value,n.$q)),u=g(()=>`with${t.instantFeedback===!0?"out":""}-transition`),d=g(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${u.value} q-linear-progress__track--${i.value===!0?"dark":"light"}`+(t.trackColor!==void 0?` bg-${t.trackColor}`:"")),h=g(()=>Hu(s.value===!0?1:t.value,a.value,n.$q)),f=g(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${u.value} q-linear-progress__model--${s.value===!0?"in":""}determinate`),m=g(()=>({width:`${t.value*100}%`})),p=g(()=>`q-linear-progress__stripe absolute-${t.reverse===!0?"right":"left"} q-linear-progress__stripe--${u.value}`);return()=>{const v=[w("div",{class:d.value,style:c.value}),w("div",{class:f.value,style:h.value})];return t.stripe===!0&&s.value===!1&&v.push(w("div",{class:p.value,style:m.value})),w("div",{class:l.value,style:r.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":t.indeterminate===!0?void 0:t.value},hi(e.default,v))}}});function _S(t,e){const n=N(null),i=g(()=>t.disable===!0?null:w("span",{ref:n,class:"no-outline",tabindex:-1}));function o(s){const a=e.value;s!==void 0&&s.type.indexOf("key")===0?a!==null&&document.activeElement!==a&&a.contains(document.activeElement)===!0&&a.focus():n.value!==null&&(s===void 0||a!==null&&a.contains(s.target)===!0)&&n.value.focus()}return{refocusTargetEl:i,refocusTarget:o}}const xS={xs:30,sm:35,md:40,lg:50,xl:60},Jf={...un,...Ar,...ma,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>t==="tf"||t==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},eg=["update:modelValue"];function tg(t,e){const{props:n,slots:i,emit:o,proxy:s}=$e(),{$q:a}=s,r=dn(n,a),l=N(null),{refocusTargetEl:c,refocusTarget:u}=_S(n,l),d=Rr(n,xS),h=g(()=>n.val!==void 0&&Array.isArray(n.modelValue)),f=g(()=>{const P=Sn(n.val);return h.value===!0?n.modelValue.findIndex(H=>Sn(H)===P):-1}),m=g(()=>h.value===!0?f.value!==-1:Sn(n.modelValue)===Sn(n.trueValue)),p=g(()=>h.value===!0?f.value===-1:Sn(n.modelValue)===Sn(n.falseValue)),v=g(()=>m.value===!1&&p.value===!1),b=g(()=>n.disable===!0?-1:n.tabindex||0),y=g(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(r.value===!0?` q-${t}--dark`:"")+(n.dense===!0?` q-${t}--dense`:"")+(n.leftLabel===!0?" reverse":"")),_=g(()=>{const P=m.value===!0?"truthy":p.value===!0?"falsy":"indet",H=n.color!==void 0&&(n.keepColor===!0||(t==="toggle"?m.value===!0:p.value!==!0))?` text-${n.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${P}${H}`}),x=g(()=>{const P={type:"checkbox"};return n.name!==void 0&&Object.assign(P,{".checked":m.value,"^checked":m.value===!0?"checked":void 0,name:n.name,value:h.value===!0?n.val:n.trueValue}),P}),C=Wf(x),S=g(()=>{const P={tabindex:b.value,role:t==="toggle"?"switch":"checkbox","aria-label":n.label,"aria-checked":v.value===!0?"mixed":m.value===!0?"true":"false"};return n.disable===!0&&(P["aria-disabled"]="true"),P});function E(P){P!==void 0&&(Pt(P),u(P)),n.disable!==!0&&o("update:modelValue",A(),P)}function A(){if(h.value===!0){if(m.value===!0){const P=n.modelValue.slice();return P.splice(f.value,1),P}return n.modelValue.concat([n.val])}if(m.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(p.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function D(P){(P.keyCode===13||P.keyCode===32)&&Pt(P)}function M(P){(P.keyCode===13||P.keyCode===32)&&E(P)}const R=e(m,v);return Object.assign(s,{toggle:E}),()=>{const P=R();n.disable!==!0&&C(P,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const H=[w("div",{class:_.value,style:d.value,"aria-hidden":"true"},P)];c.value!==null&&H.push(c.value);const z=n.label!==void 0?hi(i.default,[n.label]):Ge(i.default);return z!==void 0&&H.push(w("div",{class:`q-${t}__label q-anchor--skip`},z)),w("div",{ref:l,class:y.value,...S.value,onClick:E,onKeydown:D,onKeyup:M},H)}}const SS=()=>w("div",{key:"svg",class:"q-checkbox__bg absolute"},[w("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[w("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),w("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ir=ze({name:"QCheckbox",props:Jf,emits:eg,setup(t){const e=SS();function n(i,o){const s=g(()=>(i.value===!0?t.checkedIcon:o.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[w("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[w(_e,{class:"q-checkbox__icon",name:s.value})])]:[e]}return tg("checkbox",n)}});function wS(t,e){return new Date(t)-new Date(e)}const kS={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:t=>t==="ad"||t==="da",default:"ad"}};function CS(t,e,n,i){const o=g(()=>{const{sortBy:r}=e.value;return r&&n.value.find(l=>l.name===r)||null}),s=g(()=>t.sortMethod!==void 0?t.sortMethod:(r,l,c)=>{const u=n.value.find(f=>f.name===l);if(u===void 0||u.field===void 0)return r;const d=c===!0?-1:1,h=typeof u.field=="function"?f=>u.field(f):f=>f[u.field];return r.sort((f,m)=>{let p=h(f),v=h(m);return u.rawSort!==void 0?u.rawSort(p,v,f,m)*d:p==null?-1*d:v==null?1*d:u.sort!==void 0?u.sort(p,v,f,m)*d:Io(p)===!0&&Io(v)===!0?(p-v)*d:Vl(p)===!0&&Vl(v)===!0?wS(p,v)*d:typeof p=="boolean"&&typeof v=="boolean"?(p-v)*d:([p,v]=[p,v].map(b=>(b+"").toLocaleString().toLowerCase()),ph.name===r);d!==void 0&&d.sortOrder&&(l=d.sortOrder)}let{sortBy:c,descending:u}=e.value;c!==r?(c=r,u=l==="da"):t.binaryStateSort===!0?u=!u:u===!0?l==="ad"?c=null:u=!1:l==="ad"?u=!0:c=null,i({sortBy:c,descending:u,page:1})}return{columnToSort:o,computedSortMethod:s,sort:a}}const MS={filter:[String,Object],filterMethod:Function};function PS(t,e){const n=g(()=>t.filterMethod!==void 0?t.filterMethod:(i,o,s,a)=>{const r=o?o.toLowerCase():"";return i.filter(l=>s.some(c=>{const u=a(c,l)+"";return(u==="undefined"||u==="null"?"":u.toLowerCase()).indexOf(r)!==-1}))});return ge(()=>t.filter,()=>{ut(()=>{e({page:1},!0)})},{deep:!0}),{computedFilterMethod:n}}function TS(t,e){for(const n in e)if(e[n]!==t[n])return!1;return!0}function ju(t){return t.page<1&&(t.page=1),t.rowsPerPage!==void 0&&t.rowsPerPage<1&&(t.rowsPerPage=0),t}const IS={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function OS(t,e){const{props:n,emit:i}=t,o=N(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length!==0?n.rowsPerPageOptions[0]:5},n.pagination)),s=g(()=>{const u=n["onUpdate:pagination"]!==void 0?{...o.value,...n.pagination}:o.value;return ju(u)}),a=g(()=>s.value.rowsNumber!==void 0);function r(u){l({pagination:u,filter:n.filter})}function l(u={}){ut(()=>{i("request",{pagination:u.pagination||s.value,filter:u.filter||n.filter,getCellValue:e})})}function c(u,d){const h=ju({...s.value,...u});if(TS(s.value,h)===!0){a.value===!0&&d===!0&&r(h);return}if(a.value===!0){r(h);return}n.pagination!==void 0&&n["onUpdate:pagination"]!==void 0?i("update:pagination",h):o.value=h}return{innerPagination:o,computedPagination:s,isServerSide:a,requestServerInteraction:l,setPagination:c}}function DS(t,e,n,i,o,s){const{props:a,emit:r,proxy:{$q:l}}=t,c=g(()=>i.value===!0?n.value.rowsNumber||0:s.value),u=g(()=>{const{page:x,rowsPerPage:C}=n.value;return(x-1)*C}),d=g(()=>{const{page:x,rowsPerPage:C}=n.value;return x*C}),h=g(()=>n.value.page===1),f=g(()=>n.value.rowsPerPage===0?1:Math.max(1,Math.ceil(c.value/n.value.rowsPerPage))),m=g(()=>d.value===0?!0:n.value.page>=f.value),p=g(()=>(a.rowsPerPageOptions.includes(e.value.rowsPerPage)?a.rowsPerPageOptions:[e.value.rowsPerPage].concat(a.rowsPerPageOptions)).map(C=>({label:C===0?l.lang.table.allRows:""+C,value:C})));ge(f,(x,C)=>{if(x===C)return;const S=n.value.page;x&&!S?o({page:1}):x1&&o({page:x-1})}function y(){const{page:x,rowsPerPage:C}=n.value;d.value>0&&x*C["single","multiple","none"].includes(t)},selected:{type:Array,default:()=>[]}},ES=["update:selected","selection"];function AS(t,e,n,i){const o=g(()=>{const m={};return t.selected.map(i.value).forEach(p=>{m[p]=!0}),m}),s=g(()=>t.selection!=="none"),a=g(()=>t.selection==="single"),r=g(()=>t.selection==="multiple"),l=g(()=>n.value.length!==0&&n.value.every(m=>o.value[i.value(m)]===!0)),c=g(()=>l.value!==!0&&n.value.some(m=>o.value[i.value(m)]===!0)),u=g(()=>t.selected.length);function d(m){return o.value[m]===!0}function h(){e("update:selected",[])}function f(m,p,v,b){e("selection",{rows:p,added:v,keys:m,evt:b});const y=a.value===!0?v===!0?p:[]:v===!0?t.selected.concat(p):t.selected.filter(_=>m.includes(i.value(_))===!1);e("update:selected",y)}return{hasSelectionMode:s,singleSelection:a,multipleSelection:r,allRowsSelected:l,someRowsSelected:c,rowsSelectedNumber:u,isRowSelected:d,clearSelection:h,updateSelection:f}}function $u(t){return Array.isArray(t)?t.slice():[]}const RS={expanded:Array},qS=["update:expanded"];function LS(t,e){const n=N($u(t.expanded));ge(()=>t.expanded,a=>{n.value=$u(a)});function i(a){return n.value.includes(a)}function o(a){t.expanded!==void 0?e("update:expanded",a):n.value=a}function s(a,r){const l=n.value.slice(),c=l.indexOf(a);r===!0?c===-1&&(l.push(a),o(l)):c!==-1&&(l.splice(c,1),o(l))}return{isRowExpanded:i,setExpanded:o,updateExpanded:s}}const FS={visibleColumns:Array};function zS(t,e,n){const i=g(()=>{if(t.columns!==void 0)return t.columns;const r=t.rows[0];return r!==void 0?Object.keys(r).map(l=>({name:l,label:l.toUpperCase(),field:l,align:Io(r[l])?"right":"left",sortable:!0})):[]}),o=g(()=>{const{sortBy:r,descending:l}=e.value;return(t.visibleColumns!==void 0?i.value.filter(u=>u.required===!0||t.visibleColumns.includes(u.name)===!0):i.value).map(u=>{const d=u.align||"right",h=`text-${d}`;return{...u,align:d,__iconClass:`q-table__sort-icon q-table__sort-icon--${d}`,__thClass:h+(u.headerClasses!==void 0?" "+u.headerClasses:"")+(u.sortable===!0?" sortable":"")+(u.name===r?` sorted ${l===!0?"sort-desc":""}`:""),__tdStyle:u.style!==void 0?typeof u.style!="function"?()=>u.style:u.style:()=>null,__tdClass:u.classes!==void 0?typeof u.classes!="function"?()=>h+" "+u.classes:f=>h+" "+u.classes(f):()=>h}})}),s=g(()=>{const r={};return o.value.forEach(l=>{r[l.name]=l}),r}),a=g(()=>t.tableColspan!==void 0?t.tableColspan:o.value.length+(n.value===!0?1:0));return{colList:i,computedCols:o,computedColsMap:s,computedColspan:a}}const ks="q-table__bottom row items-center",ng={};Xf.forEach(t=>{ng[t]={}});const BS=ze({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:t=>["horizontal","vertical","cell","none"].includes(t)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...ng,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...un,...Fd,...FS,...MS,...IS,...RS,...VS,...kS},emits:["request","virtualScroll",...zd,...qS,...ES],setup(t,{slots:e,emit:n}){const i=$e(),{proxy:{$q:o}}=i,s=dn(t,o),{inFullscreen:a,toggleFullscreen:r}=Bd(),l=g(()=>typeof t.rowKey=="function"?t.rowKey:F=>F[t.rowKey]),c=N(null),u=N(null),d=g(()=>t.grid!==!0&&t.virtualScroll===!0),h=g(()=>" q-table__card"+(s.value===!0?" q-table__card--dark q-dark":"")+(t.square===!0?" q-table--square":"")+(t.flat===!0?" q-table--flat":"")+(t.bordered===!0?" q-table--bordered":"")),f=g(()=>`q-table__container q-table--${t.separator}-separator column no-wrap`+(t.grid===!0?" q-table--grid":h.value)+(s.value===!0?" q-table--dark":"")+(t.dense===!0?" q-table--dense":"")+(t.wrapCells===!1?" q-table--no-wrap":"")+(a.value===!0?" fullscreen scroll":"")),m=g(()=>f.value+(t.loading===!0?" q-table--loading":""));ge(()=>t.tableStyle+t.tableClass+t.tableHeaderStyle+t.tableHeaderClass+f.value,()=>{d.value===!0&&u.value!==null&&u.value.reset()});const{innerPagination:p,computedPagination:v,isServerSide:b,requestServerInteraction:y,setPagination:_}=OS(i,vt),{computedFilterMethod:x}=PS(t,_),{isRowExpanded:C,setExpanded:S,updateExpanded:E}=LS(t,n),A=g(()=>{let F=t.rows;if(b.value===!0||F.length===0)return F;const{sortBy:ie,descending:ve}=v.value;return t.filter&&(F=x.value(F,t.filter,O.value,vt)),re.value!==null&&(F=fe.value(t.rows===F?F.slice():F,ie,ve)),F}),D=g(()=>A.value.length),M=g(()=>{let F=A.value;if(b.value===!0)return F;const{rowsPerPage:ie}=v.value;return ie!==0&&(J.value===0&&t.rows!==F?F.length>we.value&&(F=F.slice(0,we.value)):F=F.slice(J.value,we.value)),F}),{hasSelectionMode:R,singleSelection:P,multipleSelection:H,allRowsSelected:z,someRowsSelected:$,rowsSelectedNumber:U,isRowSelected:G,clearSelection:Y,updateSelection:te}=AS(t,n,M,l),{colList:de,computedCols:O,computedColsMap:T,computedColspan:Q}=zS(t,v,R),{columnToSort:re,computedSortMethod:fe,sort:B}=CS(t,v,de,_),{firstRowIndex:J,lastRowIndex:we,isFirstPage:Z,isLastPage:Ee,pagesNumber:Xe,computedRowsPerPageOptions:_t,computedRowsNumber:et,firstPage:dt,prevPage:mt,nextPage:ht,lastPage:Dt}=DS(i,p,v,b,_,D),Vt=g(()=>M.value.length===0),Ut=g(()=>{const F={};return Xf.forEach(ie=>{F[ie]=t[ie]}),F.virtualScrollItemSize===void 0&&(F.virtualScrollItemSize=t.dense===!0?28:48),F});function Et(){d.value===!0&&u.value.reset()}function lt(){if(t.grid===!0)return Ma();const F=t.hideHeader!==!0?ke:null;if(d.value===!0){const ve=e["top-row"],pe=e["bottom-row"],Te={default:it=>ce(it.item,e.body,it.index)};if(ve!==void 0){const it=w("tbody",ve({cols:O.value}));Te.before=F===null?()=>it:()=>[F()].concat(it)}else F!==null&&(Te.before=F);return pe!==void 0&&(Te.after=()=>w("tbody",pe({cols:O.value}))),w(fS,{ref:u,class:t.tableClass,style:t.tableStyle,...Ut.value,scrollTarget:t.virtualScrollTarget,items:M.value,type:"__qtable",tableColspan:Q.value,onVirtualScroll:ae},Te)}const ie=[De()];return F!==null&&ie.unshift(F()),Uf({class:["q-table__middle scroll",t.tableClass],style:t.tableStyle},ie)}function j(F,ie){if(u.value!==null){u.value.scrollTo(F,ie);return}F=parseInt(F,10);const ve=c.value.querySelector(`tbody tr:nth-of-type(${F+1})`);if(ve!==null){const pe=c.value.querySelector(".q-table__middle.scroll"),Te=ve.offsetTop-t.virtualScrollStickySizeStart,it=Te{const pi=e[`body-cell-${Ct.name}`],bi=pi!==void 0?pi:it;return bi!==void 0?bi(Pe({key:pe,row:F,pageIndex:ve,col:Ct})):w("td",{class:Ct.__tdClass(F),style:Ct.__tdStyle(F)},vt(Ct,F))});if(R.value===!0){const Ct=e["body-selection"],pi=Ct!==void 0?Ct(ot({key:pe,row:F,pageIndex:ve})):[w(ir,{modelValue:Te,color:t.color,dark:s.value,dense:t.dense,"onUpdate:modelValue":(bi,Pa)=>{te([pe],[F],bi,Pa)}})];Ke.unshift(w("td",{class:"q-table--col-auto-width"},pi))}const Jt={key:pe,class:{selected:Te}};return t.onRowClick!==void 0&&(Jt.class["cursor-pointer"]=!0,Jt.onClick=Ct=>{n("rowClick",Ct,F,ve)}),t.onRowDblclick!==void 0&&(Jt.class["cursor-pointer"]=!0,Jt.onDblclick=Ct=>{n("rowDblclick",Ct,F,ve)}),t.onRowContextmenu!==void 0&&(Jt.class["cursor-pointer"]=!0,Jt.onContextmenu=Ct=>{n("rowContextmenu",Ct,F,ve)}),w("tr",Jt,Ke)}function De(){const F=e.body,ie=e["top-row"],ve=e["bottom-row"];let pe=M.value.map((Te,it)=>ce(Te,F,it));return ie!==void 0&&(pe=ie({cols:O.value}).concat(pe)),ve!==void 0&&(pe=pe.concat(ve({cols:O.value}))),w("tbody",pe)}function ye(F){return tt(F),F.cols=F.cols.map(ie=>ei({...ie},"value",()=>vt(ie,F.row))),F}function Pe(F){return tt(F),ei(F,"value",()=>vt(F.col,F.row)),F}function ot(F){return tt(F),F}function tt(F){Object.assign(F,{cols:O.value,colsMap:T.value,sort:B,rowIndex:J.value+F.pageIndex,color:t.color,dark:s.value,dense:t.dense}),R.value===!0&&ei(F,"selected",()=>G(F.key),(ie,ve)=>{te([F.key],[F.row],ie,ve)}),ei(F,"expand",()=>C(F.key),ie=>{E(F.key,ie)})}function vt(F,ie){const ve=typeof F.field=="function"?F.field(ie):ie[F.field];return F.format!==void 0?F.format(ve,ie):ve}const At=g(()=>({pagination:v.value,pagesNumber:Xe.value,isFirstPage:Z.value,isLastPage:Ee.value,firstPage:dt,prevPage:mt,nextPage:ht,lastPage:Dt,inFullscreen:a.value,toggleFullscreen:r}));function W(){const F=e.top,ie=e["top-left"],ve=e["top-right"],pe=e["top-selection"],Te=R.value===!0&&pe!==void 0&&U.value>0,it="q-table__top relative-position row items-center";if(F!==void 0)return w("div",{class:it},[F(At.value)]);let Ke;if(Te===!0?Ke=pe(At.value).slice():(Ke=[],ie!==void 0?Ke.push(w("div",{class:"q-table__control"},[ie(At.value)])):t.title&&Ke.push(w("div",{class:"q-table__control"},[w("div",{class:["q-table__title",t.titleClass]},t.title)]))),ve!==void 0&&(Ke.push(w("div",{class:"q-table__separator col"})),Ke.push(w("div",{class:"q-table__control"},[ve(At.value)]))),Ke.length!==0)return w("div",{class:it},Ke)}const me=g(()=>$.value===!0?null:z.value);function ke(){const F=He();return t.loading===!0&&e.loading===void 0&&F.push(w("tr",{class:"q-table__progress"},[w("th",{class:"relative-position",colspan:Q.value},X())])),w("thead",F)}function He(){const F=e.header,ie=e["header-cell"];if(F!==void 0)return F(nt({header:!0})).slice();const ve=O.value.map(pe=>{const Te=e[`header-cell-${pe.name}`],it=Te!==void 0?Te:ie,Ke=nt({col:pe});return it!==void 0?it(Ke):w(wr,{key:pe.name,props:Ke},()=>pe.label)});if(P.value===!0&&t.grid!==!0)ve.unshift(w("th",{class:"q-table--col-auto-width"}," "));else if(H.value===!0){const pe=e["header-selection"],Te=pe!==void 0?pe(nt({})):[w(ir,{color:t.color,modelValue:me.value,dark:s.value,dense:t.dense,"onUpdate:modelValue":Ft})];ve.unshift(w("th",{class:"q-table--col-auto-width"},Te))}return[w("tr",{class:t.tableHeaderClass,style:t.tableHeaderStyle},ve)]}function nt(F){return Object.assign(F,{cols:O.value,sort:B,colsMap:T.value,color:t.color,dark:s.value,dense:t.dense}),H.value===!0&&ei(F,"selected",()=>me.value,Ft),F}function Ft(F){$.value===!0&&(F=!1),te(M.value.map(l.value),M.value,F)}const Gt=g(()=>{const F=[t.iconFirstPage||o.iconSet.table.firstPage,t.iconPrevPage||o.iconSet.table.prevPage,t.iconNextPage||o.iconSet.table.nextPage,t.iconLastPage||o.iconSet.table.lastPage];return o.lang.rtl===!0?F.reverse():F});function On(){if(t.hideBottom===!0)return;if(Vt.value===!0){if(t.hideNoData===!0)return;const ve=t.loading===!0?t.loadingLabel||o.lang.table.loading:t.filter?t.noResultsLabel||o.lang.table.noResults:t.noDataLabel||o.lang.table.noData,pe=e["no-data"],Te=pe!==void 0?[pe({message:ve,icon:o.iconSet.table.warning,filter:t.filter})]:[w(_e,{class:"q-table__bottom-nodata-icon",name:o.iconSet.table.warning}),ve];return w("div",{class:ks+" q-table__bottom--nodata"},Te)}const F=e.bottom;if(F!==void 0)return w("div",{class:ks},[F(At.value)]);const ie=t.hideSelectedBanner!==!0&&R.value===!0&&U.value>0?[w("div",{class:"q-table__control"},[w("div",[(t.selectedRowsLabel||o.lang.table.selectedRecords)(U.value)])])]:[];if(t.hidePagination!==!0)return w("div",{class:ks+" justify-end"},Ca(ie));if(ie.length!==0)return w("div",{class:ks},ie)}function ka(F){_({page:1,rowsPerPage:F.value})}function Ca(F){let ie;const{rowsPerPage:ve}=v.value,pe=t.paginationLabel||o.lang.table.pagination,Te=e.pagination,it=t.rowsPerPageOptions.length>1;if(F.push(w("div",{class:"q-table__separator col"})),it===!0&&F.push(w("div",{class:"q-table__control"},[w("span",{class:"q-table__bottom-item"},[t.rowsPerPageLabel||o.lang.table.recordsPerPage]),w(pS,{class:"q-table__select inline q-table__bottom-item",color:t.color,modelValue:ve,options:_t.value,displayValue:ve===0?o.lang.table.allRows:ve,dark:s.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":ka})])),Te!==void 0)ie=Te(At.value);else if(ie=[w("span",ve!==0?{class:"q-table__bottom-item"}:{},[ve?pe(J.value+1,Math.min(we.value,et.value),et.value):pe(1,D.value,et.value)])],ve!==0&&Xe.value>1){const Ke={color:t.color,round:!0,dense:!0,flat:!0};t.dense===!0&&(Ke.size="sm"),Xe.value>2&&ie.push(w(Ve,{key:"pgFirst",...Ke,icon:Gt.value[0],disable:Z.value,onClick:dt})),ie.push(w(Ve,{key:"pgPrev",...Ke,icon:Gt.value[1],disable:Z.value,onClick:mt}),w(Ve,{key:"pgNext",...Ke,icon:Gt.value[2],disable:Ee.value,onClick:ht})),Xe.value>2&&ie.push(w(Ve,{key:"pgLast",...Ke,icon:Gt.value[3],disable:Ee.value,onClick:Dt}))}return F.push(w("div",{class:"q-table__control"},ie)),F}function Go(){const F=t.gridHeader===!0?[w("table",{class:"q-table"},[ke()])]:t.loading===!0&&e.loading===void 0?X():void 0;return w("div",{class:"q-table__middle"},F)}function Ma(){const F=e.item!==void 0?e.item:ie=>{const ve=ie.cols.map(Te=>w("div",{class:"q-table__grid-item-row"},[w("div",{class:"q-table__grid-item-title"},[Te.label]),w("div",{class:"q-table__grid-item-value"},[Te.value])]));if(R.value===!0){const Te=e["body-selection"],it=Te!==void 0?Te(ie):[w(ir,{modelValue:ie.selected,color:t.color,dark:s.value,dense:t.dense,"onUpdate:modelValue":(Ke,Jt)=>{te([ie.key],[ie.row],Ke,Jt)}})];ve.unshift(w("div",{class:"q-table__grid-item-row"},it),w(xo,{dark:s.value}))}const pe={class:["q-table__grid-item-card"+h.value,t.cardClass],style:t.cardStyle};return(t.onRowClick!==void 0||t.onRowDblclick!==void 0)&&(pe.class[0]+=" cursor-pointer",t.onRowClick!==void 0&&(pe.onClick=Te=>{n("RowClick",Te,ie.row,ie.pageIndex)}),t.onRowDblclick!==void 0&&(pe.onDblclick=Te=>{n("RowDblclick",Te,ie.row,ie.pageIndex)})),w("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(ie.selected===!0?" q-table__grid-item--selected":"")},[w("div",pe,ve)])};return w("div",{class:["q-table__grid-content row",t.cardContainerClass],style:t.cardContainerStyle},M.value.map((ie,ve)=>F(ye({key:l.value(ie),row:ie,pageIndex:ve}))))}return Object.assign(i.proxy,{requestServerInteraction:y,setPagination:_,firstPage:dt,prevPage:mt,nextPage:ht,lastPage:Dt,isRowSelected:G,clearSelection:Y,isRowExpanded:C,setExpanded:S,sort:B,resetVirtualScroll:Et,scrollTo:j,getCellValue:vt}),sm(i.proxy,{filteredSortedRows:()=>A.value,computedRows:()=>M.value,computedRowsNumber:()=>et.value}),()=>{const F=[W()],ie={ref:c,class:m.value};return t.grid===!0?F.push(Go()):Object.assign(ie,{class:[ie.class,t.cardClass],style:t.cardStyle}),F.push(lt(),On()),t.loading===!0&&e.loading!==void 0&&F.push(e.loading()),w("div",ie,F)}}}),NS=Se({__name:"BaseTable",props:{items:{},rowData:{type:[Function,Object]},columnConfig:{},rowKey:{},searchInputVisible:{type:Boolean},tableHeight:{},filter:{},columnsToSearch:{},rowExpandable:{type:Boolean}},emits:["row-click","update:filter"],setup(t,{expose:e,emit:n}){e(),bd(m=>({"618895b2":m.tableHeight}));const i=t,o=N([]),s=am(),a=g(()=>i.rowExpandable?Object.keys(s).filter(m=>!m.startsWith("body")):Object.keys(s)),r=n,l=g({get:()=>i.filter||"",set:m=>r("update:filter",m)}),c=g(()=>i.items.map(typeof i.rowData=="function"?i.rowData:i.rowData.value)),u=g(()=>i.columnConfig.filter(m=>!m.expandField).map(m=>({name:m.field,field:m.field,label:m.label,align:m.align??"left",sortable:!0,headerStyle:"font-weight: bold"}))),f={props:i,expanded:o,slots:s,forwardedSlotNames:a,emit:r,filterModel:l,mappedRows:c,mappedColumns:u,customFilterMethod:(m,p,v)=>{if(!p||p.trim()==="")return m;const b=p.toLowerCase(),y=i.columnsToSearch||v.map(_=>typeof _.field=="string"?_.field:"");return m.filter(_=>y.some(x=>{const C=_[x];return C&&String(C).toLowerCase().includes(b)}))},onRowClick:(m,p)=>r("row-click",p)};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),WS={class:"q-pa-md"},HS={class:"row full-width items-center q-mb-sm"},jS={class:"col"};function $S(t,e,n,i,o,s){return V(),K("div",WS,[I(BS,{class:Tt(["sticky-header-table",{"custom-table-height":n.tableHeight}]),rows:i.mappedRows,columns:i.mappedColumns,"row-key":"id",expanded:i.expanded,"onUpdate:expanded":e[1]||(e[1]=a=>i.expanded=a),filter:i.filterModel,"filter-method":i.customFilterMethod,"virtual-scroll":"","virtual-scroll-item-size":48,"virtual-scroll-sticky-size-start":30,onRowClick:i.onRowClick,"binary-state-sort":"",pagination:{rowsPerPage:0},"hide-bottom":""},rm({_:2},[n.searchInputVisible?{name:"top",fn:L(()=>[q("div",HS,[q("div",jS,[I($f,{modelValue:i.filterModel,"onUpdate:modelValue":e[0]||(e[0]=a=>i.filterModel=a),dense:"",outlined:"",color:"white",placeholder:"Suchen...",class:"search-field white-outline-input","input-class":"text-white"},{append:L(()=>[I(_e,{name:"search",color:"white"})]),_:1},8,["modelValue"])])])]),key:"0"}:void 0,i.props.rowExpandable?{name:"header",fn:L(a=>[I(er,{props:a},{default:L(()=>[I(wr,{"auto-width":"",props:{...a,col:{}}},null,8,["props"]),(V(!0),K(Oe,null,Je(a.cols,r=>(V(),ne(wr,{key:r.name,props:{...a,col:r}},{default:L(()=>[qe(le(r.label),1)]),_:2},1032,["props"]))),128))]),_:2},1032,["props"])]),key:"1"}:void 0,i.props.rowExpandable?{name:"body",fn:L(a=>[(V(),ne(er,{key:`main-${a.key}`,props:a,onClick:r=>i.onRowClick(r,a.row),class:"clickable"},{default:L(()=>[I(vn,{"auto-width":""},{default:L(()=>[I(Ve,{dense:"",flat:"",round:"",size:"sm",icon:a.expand?"keyboard_arrow_up":"keyboard_arrow_down",onClick:nn(r=>a.expand=!a.expand,["stop"])},null,8,["icon","onClick"])]),_:2},1024),(V(!0),K(Oe,null,Je(a.cols,r=>(V(),K(Oe,{key:r.name},[t.$slots[`body-cell-${r.name}`]?oi(t.$slots,`body-cell-${r.name}`,lm({key:0,ref_for:!0},{...a,col:r}),void 0,!0):(V(),ne(vn,{key:1,props:{...a,col:r,value:a.row[r.field]}},{default:L(()=>[qe(le(a.row[r.field]),1)]),_:2},1032,["props"]))],64))),128))]),_:2},1032,["props","onClick"])),rn((V(),ne(er,{key:`xp-${a.key}`,props:a,class:"q-virtual-scroll--with-prev"},{default:L(()=>[I(vn,{colspan:a.cols.length+1},{default:L(()=>[oi(t.$slots,"row-expand",El(Al(a)),void 0,!0)]),_:2},1032,["colspan"])]),_:2},1032,["props"])),[[cm,a.expand]])]),key:"2"}:void 0,Je(i.forwardedSlotNames,a=>({name:a,fn:L(r=>[oi(t.$slots,a,El(Al(r)),void 0,!0)])}))]),1032,["class","rows","columns","expanded","filter"])])}const ig=Me(NS,[["render",$S],["__scopeId","data-v-d1f1dccd"],["__file","BaseTable.vue"]]),jn=ze({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(t,{slots:e}){const n=g(()=>`q-card__section q-card__section--${t.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>w(t.tag,{class:n.value},Ge(e.default))}}),Qi=ze({name:"QCard",props:{...un,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:e}){const{proxy:{$q:n}}=$e(),i=dn(t,n),o=g(()=>"q-card"+(i.value===!0?" q-card--dark q-dark":"")+(t.bordered===!0?" q-card--bordered":"")+(t.square===!0?" q-card--square no-border-radius":"")+(t.flat===!0?" q-card--flat no-shadow":""));return()=>w(t.tag,{class:o.value},Ge(e.default))}}),Uu="q-slider__marker-labels",US=t=>({value:t}),YS=({marker:t})=>w("div",{key:t.value,style:t.style,class:t.classes},t.label),og=[34,37,40,33,39,38],ZS={...un,...ma,min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:t=>t>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},XS=["pan","update:modelValue","change"];function KS({updateValue:t,updatePosition:e,getDragging:n,formAttrs:i}){const{props:o,emit:s,slots:a,proxy:{$q:r}}=$e(),l=dn(o,r),c=Wf(i),u=N(!1),d=N(!1),h=N(!1),f=N(!1),m=g(()=>o.vertical===!0?"--v":"--h"),p=g(()=>"-"+(o.switchLabelSide===!0?"switched":"standard")),v=g(()=>o.vertical===!0?o.reverse===!0:o.reverse!==(r.lang.rtl===!0)),b=g(()=>isNaN(o.innerMin)===!0||o.innerMinisNaN(o.innerMax)===!0||o.innerMax>o.max?o.max:o.innerMax),_=g(()=>o.disable!==!0&&o.readonly!==!0&&b.value{if(o.step===0)return me=>me;const W=(String(o.step).trim().split(".")[1]||"").length;return me=>parseFloat(me.toFixed(W))}),C=g(()=>o.step===0?1:o.step),S=g(()=>_.value===!0?o.tabindex||0:-1),E=g(()=>o.max-o.min),A=g(()=>y.value-b.value),D=g(()=>Xe(b.value)),M=g(()=>Xe(y.value)),R=g(()=>o.vertical===!0?v.value===!0?"bottom":"top":v.value===!0?"right":"left"),P=g(()=>o.vertical===!0?"height":"width"),H=g(()=>o.vertical===!0?"width":"height"),z=g(()=>o.vertical===!0?"vertical":"horizontal"),$=g(()=>{const W={role:"slider","aria-valuemin":b.value,"aria-valuemax":y.value,"aria-orientation":z.value,"data-step":o.step};return o.disable===!0?W["aria-disabled"]="true":o.readonly===!0&&(W["aria-readonly"]="true"),W}),U=g(()=>`q-slider q-slider${m.value} q-slider--${u.value===!0?"":"in"}active inline no-wrap `+(o.vertical===!0?"row":"column")+(o.disable===!0?" disabled":" q-slider--enabled"+(_.value===!0?" q-slider--editable":""))+(h.value==="both"?" q-slider--focus":"")+(o.label||o.labelAlways===!0?" q-slider--label":"")+(o.labelAlways===!0?" q-slider--label-always":"")+(l.value===!0?" q-slider--dark":"")+(o.dense===!0?" q-slider--dense q-slider--dense"+m.value:""));function G(W){const me="q-slider__"+W;return`${me} ${me}${m.value} ${me}${m.value}${p.value}`}function Y(W){const me="q-slider__"+W;return`${me} ${me}${m.value}`}const te=g(()=>{const W=o.selectionColor||o.color;return"q-slider__selection absolute"+(W!==void 0?` text-${W}`:"")}),de=g(()=>Y("markers")+" absolute overflow-hidden"),O=g(()=>Y("track-container")),T=g(()=>G("pin")),Q=g(()=>G("label")),re=g(()=>G("text-container")),fe=g(()=>G("marker-labels-container")+(o.markerLabelsClass!==void 0?` ${o.markerLabelsClass}`:"")),B=g(()=>"q-slider__track relative-position no-outline"+(o.trackColor!==void 0?` bg-${o.trackColor}`:"")),J=g(()=>{const W={[H.value]:o.trackSize};return o.trackImg!==void 0&&(W.backgroundImage=`url(${o.trackImg}) !important`),W}),we=g(()=>"q-slider__inner absolute"+(o.innerTrackColor!==void 0?` bg-${o.innerTrackColor}`:"")),Z=g(()=>{const W=M.value-D.value,me={[R.value]:`${100*D.value}%`,[P.value]:W===0?"2px":`${100*W}%`};return o.innerTrackImg!==void 0&&(me.backgroundImage=`url(${o.innerTrackImg}) !important`),me});function Ee(W){const{min:me,max:ke,step:He}=o;let nt=me+W*(ke-me);if(He>0){const Ft=(nt-b.value)%He;nt+=(Math.abs(Ft)>=He/2?(Ft<0?-1:1)*He:0)-Ft}return nt=x.value(nt),Ti(nt,b.value,y.value)}function Xe(W){return E.value===0?0:(W-o.min)/E.value}function _t(W,me){const ke=Es(W),He=o.vertical===!0?Ti((ke.top-me.top)/me.height,0,1):Ti((ke.left-me.left)/me.width,0,1);return Ti(v.value===!0?1-He:He,D.value,M.value)}const et=g(()=>Io(o.markers)===!0?o.markers:C.value),dt=g(()=>{const W=[],me=et.value,ke=o.max;let He=o.min;do W.push(He),He+=me;while(He{const W=` ${Uu}${m.value}-`;return Uu+`${W}${o.switchMarkerLabelsSide===!0?"switched":"standard"}${W}${v.value===!0?"rtl":"ltr"}`}),ht=g(()=>o.markerLabels===!1?null:Ut(o.markerLabels).map((W,me)=>({index:me,value:W.value,label:W.label||W.value,classes:mt.value+(W.classes!==void 0?" "+W.classes:""),style:{...Et(W.value),...W.style||{}}}))),Dt=g(()=>({markerList:ht.value,markerMap:lt.value,classes:mt.value,getStyle:Et})),Vt=g(()=>{const W=A.value===0?"2px":100*et.value/A.value;return{...Z.value,backgroundSize:o.vertical===!0?`2px ${W}%`:`${W}% 2px`}});function Ut(W){if(W===!1)return null;if(W===!0)return dt.value.map(US);if(typeof W=="function")return dt.value.map(ke=>{const He=W(ke);return Cs(He)===!0?{...He,value:ke}:{value:ke,label:He}});const me=({value:ke})=>ke>=o.min&&ke<=o.max;return Array.isArray(W)===!0?W.map(ke=>Cs(ke)===!0?ke:{value:ke}).filter(me):Object.keys(W).map(ke=>{const He=W[ke],nt=Number(ke);return Cs(He)===!0?{...He,value:nt}:{value:nt,label:He}}).filter(me)}function Et(W){return{[R.value]:`${100*(W-o.min)/E.value}%`}}const lt=g(()=>{if(o.markerLabels===!1)return null;const W={};return ht.value.forEach(me=>{W[me.value]=me}),W});function j(){if(a["marker-label-group"]!==void 0)return a["marker-label-group"](Dt.value);const W=a["marker-label"]||YS;return ht.value.map(me=>W({marker:me,...Dt.value}))}const ae=g(()=>[[Im,X,void 0,{[z.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]);function X(W){W.isFinal===!0?(f.value!==void 0&&(e(W.evt),W.touch===!0&&t(!0),f.value=void 0,s("pan","end")),u.value=!1,h.value=!1):W.isFirst===!0?(f.value=n(W.evt),e(W.evt),t(),u.value=!0,s("pan","start")):(e(W.evt),t())}function ce(){h.value=!1}function De(W){e(W,n(W)),t(),d.value=!0,u.value=!0,document.addEventListener("mouseup",ye,!0)}function ye(){d.value=!1,u.value=!1,t(!0),ce(),document.removeEventListener("mouseup",ye,!0)}function Pe(W){e(W,n(W)),t(!0)}function ot(W){og.includes(W.keyCode)&&t(!0)}function tt(W){if(o.vertical===!0)return null;const me=r.lang.rtl!==o.reverse?1-W:W;return{transform:`translateX(calc(${2*me-1} * ${o.thumbSize} / 2 + ${50-100*me}%))`}}function vt(W){const me=g(()=>d.value===!1&&(h.value===W.focusValue||h.value==="both")?" q-slider--focus":""),ke=g(()=>`q-slider__thumb q-slider__thumb${m.value} q-slider__thumb${m.value}-${v.value===!0?"rtl":"ltr"} absolute non-selectable`+me.value+(W.thumbColor.value!==void 0?` text-${W.thumbColor.value}`:"")),He=g(()=>({width:o.thumbSize,height:o.thumbSize,[R.value]:`${100*W.ratio.value}%`,zIndex:h.value===W.focusValue?2:void 0})),nt=g(()=>W.labelColor.value!==void 0?` text-${W.labelColor.value}`:""),Ft=g(()=>tt(W.ratio.value)),Gt=g(()=>"q-slider__text"+(W.labelTextColor.value!==void 0?` text-${W.labelTextColor.value}`:""));return()=>{const On=[w("svg",{class:"q-slider__thumb-shape absolute-full",viewBox:"0 0 20 20","aria-hidden":"true"},[w("path",{d:o.thumbPath})]),w("div",{class:"q-slider__focus-ring fit"})];return(o.label===!0||o.labelAlways===!0)&&(On.push(w("div",{class:T.value+" absolute fit no-pointer-events"+nt.value},[w("div",{class:Q.value,style:{minWidth:o.thumbSize}},[w("div",{class:re.value,style:Ft.value},[w("span",{class:Gt.value},W.label.value)])])])),o.name!==void 0&&o.disable!==!0&&c(On,"push")),w("div",{class:ke.value,style:He.value,...W.getNodeData()},On)}}function At(W,me,ke,He){const nt=[];o.innerTrackColor!=="transparent"&&nt.push(w("div",{key:"inner",class:we.value,style:Z.value})),o.selectionColor!=="transparent"&&nt.push(w("div",{key:"selection",class:te.value,style:W.value})),o.markers!==!1&&nt.push(w("div",{key:"marker",class:de.value,style:Vt.value})),He(nt);const Ft=[na("div",{key:"trackC",class:O.value,tabindex:me.value,...ke.value},[w("div",{class:B.value,style:J.value},nt)],"slide",_.value,()=>ae.value)];if(o.markerLabels!==!1){const Gt=o.switchMarkerLabelsSide===!0?"unshift":"push";Ft[Gt](w("div",{key:"markerL",class:fe.value},j()))}return Ft}return Ot(()=>{document.removeEventListener("mouseup",ye,!0)}),{state:{active:u,focus:h,preventFocus:d,dragging:f,editable:_,classes:U,tabindex:S,attributes:$,roundValueFn:x,keyStep:C,trackLen:E,innerMin:b,innerMinRatio:D,innerMax:y,innerMaxRatio:M,positionProp:R,sizeProp:P,isReversed:v},methods:{onActivate:De,onMobileClick:Pe,onBlur:ce,onKeyup:ot,getContent:At,getThumbRenderFn:vt,convertRatioToModel:Ee,convertModelToRatio:Xe,getDraggingRatio:_t}}}const QS=()=>({}),Qs=ze({name:"QSlider",props:{...ZS,modelValue:{required:!0,default:null,validator:t=>typeof t=="number"||t===null},labelValue:[String,Number]},emits:XS,setup(t,{emit:e}){const{proxy:{$q:n}}=$e(),{state:i,methods:o}=KS({updateValue:m,updatePosition:v,getDragging:p,formAttrs:sS(t)}),s=N(null),a=N(0),r=N(0);function l(){r.value=t.modelValue===null?i.innerMin.value:Ti(t.modelValue,i.innerMin.value,i.innerMax.value)}ge(()=>`${t.modelValue}|${i.innerMin.value}|${i.innerMax.value}`,l),l();const c=g(()=>o.convertModelToRatio(r.value)),u=g(()=>i.active.value===!0?a.value:c.value),d=g(()=>{const _={[i.positionProp.value]:`${100*i.innerMinRatio.value}%`,[i.sizeProp.value]:`${100*(u.value-i.innerMinRatio.value)}%`};return t.selectionImg!==void 0&&(_.backgroundImage=`url(${t.selectionImg}) !important`),_}),h=o.getThumbRenderFn({focusValue:!0,getNodeData:QS,ratio:u,label:g(()=>t.labelValue!==void 0?t.labelValue:r.value),thumbColor:g(()=>t.thumbColor||t.color),labelColor:g(()=>t.labelColor),labelTextColor:g(()=>t.labelTextColor)}),f=g(()=>i.editable.value!==!0?{}:n.platform.is.mobile===!0?{onClick:o.onMobileClick}:{onMousedown:o.onActivate,onFocus:b,onBlur:o.onBlur,onKeydown:y,onKeyup:o.onKeyup});function m(_){r.value!==t.modelValue&&e("update:modelValue",r.value),_===!0&&e("change",r.value)}function p(){return s.value.getBoundingClientRect()}function v(_,x=i.dragging.value){const C=o.getDraggingRatio(_,x);r.value=o.convertRatioToModel(C),a.value=t.snap!==!0||t.step===0?C:o.convertModelToRatio(r.value)}function b(){i.focus.value=!0}function y(_){if(!og.includes(_.keyCode))return;Pt(_);const x=([34,33].includes(_.keyCode)?10:1)*i.keyStep.value,C=([34,37,40].includes(_.keyCode)?-1:1)*(i.isReversed.value===!0?-1:1)*(t.vertical===!0?-1:1)*x;r.value=Ti(i.roundValueFn.value(r.value+C),i.innerMin.value,i.innerMax.value),m()}return()=>{const _=o.getContent(d,i.tabindex,f,x=>{x.push(h())});return w("div",{ref:s,class:i.classes.value+(t.modelValue===null?" q-slider--no-value":""),...i.attributes.value,"aria-valuenow":t.modelValue},_)}}}),GS=Se({name:"SliderDouble",__name:"SliderDouble",props:{modelValue:{type:Number,required:!1,default:-1},readonly:{type:Boolean,default:!1},chargeMode:{type:String,default:""},limitMode:{type:String,default:"soc"},currentValue:{type:Number,default:0},targetTime:{type:String,required:!1,default:void 0}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){e();const i=n,o=t,s=g({get:()=>o.modelValue,set:u=>{o.readonly||i("update:modelValue",u)}}),a=g(()=>s.value>=0&&o.limitMode!=="none"),r=g(()=>["soc","none"].includes(o.limitMode)?100:s.value),c={emit:i,props:o,target:s,targetSet:a,maxValue:r,formatEnergy:u=>u>=1e3?(u/1e3).toFixed(2)+" kWh":u.toFixed(0)+" Wh"};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}}),JS={class:"double-slider-container"},ew={class:"slider-container"},tw={class:"row justify-between no-wrap"},nw={class:"col"},iw={key:0,class:"col text-center"},ow={key:1,class:"col text-right"};function sw(t,e,n,i,o,s){return V(),K("div",JS,[q("div",ew,[I(Qs,{"model-value":n.currentValue,min:0,max:i.maxValue,markers:i.props.limitMode=="amount"?1e4:10,color:"green-7",class:"current-slider","track-size":"1.5em","thumb-size":"0px",readonly:"","no-focus":"",onTouchstart:e[0]||(e[0]=nn(()=>{},["stop"])),onTouchmove:e[1]||(e[1]=nn(()=>{},["stop"])),onTouchend:e[2]||(e[2]=nn(()=>{},["stop"]))},null,8,["model-value","max","markers"]),i.props.limitMode=="soc"?(V(),ne(Qs,{key:0,modelValue:i.target,"onUpdate:modelValue":e[3]||(e[3]=a=>i.target=a),min:0,max:100,color:"light-green-5","inner-track-color":"blue-grey-2",class:"target-slider","track-size":"1.5em","thumb-size":i.props.readonly?"0":"2em",readonly:i.props.readonly,onTouchstart:e[4]||(e[4]=nn(()=>{},["stop"])),onTouchmove:e[5]||(e[5]=nn(()=>{},["stop"])),onTouchend:e[6]||(e[6]=nn(()=>{},["stop"]))},null,8,["modelValue","thumb-size","readonly"])):ue("",!0)]),q("div",tw,[q("div",nw,[q("div",null,le(i.props.limitMode=="amount"?"Geladen":"Ladestand"),1),q("div",null,[qe(le(i.props.limitMode=="amount"?i.formatEnergy(n.currentValue):n.currentValue+"%")+" ",1),oi(t.$slots,"update-soc-icon",{},void 0)])]),i.props.targetTime?(V(),K("div",iw,[e[7]||(e[7]=q("div",null,"Zielzeit",-1)),q("div",null,le(i.props.targetTime),1)])):ue("",!0),i.targetSet?(V(),K("div",ow,[q("div",null,le(i.props.limitMode=="soc"?"Ladeziel":"Energieziel"),1),q("div",null,le(i.props.limitMode=="soc"?i.target+"%":i.target/1e3+" kWh"),1)])):ue("",!0)])])}const gl=Me(GS,[["render",sw],["__scopeId","data-v-0e0e7cf9"],["__file","SliderDouble.vue"]]),va=ze({name:"QToggle",props:{...Jf,icon:String,iconColor:String},emits:eg,setup(t){function e(n,i){const o=g(()=>(n.value===!0?t.checkedIcon:i.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),s=g(()=>n.value===!0?t.iconColor:null);return()=>[w("div",{class:"q-toggle__track"}),w("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},o.value!==void 0?[w(_e,{name:o.value,color:s.value})]:void 0)]}return tg("toggle",e)}}),aw=Se({__name:"ChargePointLock",props:{chargePointId:{type:Number,required:!0},readonly:{type:Boolean,default:!1},dense:{type:Boolean,default:!1}},setup(t,{expose:e}){e();const n=t,i=Be(),o=i.chargePointManualLock(n.chargePointId),s={props:n,mqttStore:i,locked:o};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}});function rw(t,e,n,i,o,s){return i.props.readonly?(V(),ne(_e,{key:0,name:i.locked?"lock":"lock_open",size:"sm",color:i.locked?"negative":"positive"},null,8,["name","color"])):(V(),ne(va,{key:1,modelValue:i.locked,"onUpdate:modelValue":e[0]||(e[0]=a=>i.locked=a),color:i.locked?"primary":"positive","checked-icon":"lock","unchecked-icon":"lock_open",size:"lg",dense:i.props.dense},{default:L(()=>[I(ln,null,{default:L(()=>[qe(le(i.locked?"Ladepunkt gesperrt":"Ladepunkt entsperrt"),1)]),_:1})]),_:1},8,["modelValue","color","dense"]))}const sg=Me(aw,[["render",rw],["__file","ChargePointLock.vue"]]),lw=Se({__name:"ChargePointStateIcon",props:{chargePointId:{},vehicleId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>n.vehicleId!==void 0?i.vehicleConnectionState(n.vehicleId).some(l=>l.plugged):n.chargePointId!==void 0?i.chargePointPlugState(n.chargePointId):!1),s=g(()=>n.vehicleId!==void 0?i.vehicleConnectionState(n.vehicleId).some(l=>l.charging):n.chargePointId!==void 0?i.chargePointChargeState(n.chargePointId):!1),a={props:n,mqttStore:i,plugState:o,chargeState:s};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}});function cw(t,e,n,i,o,s){return V(),ne(_e,{name:i.plugState?"power":"power_off",size:"sm",color:i.plugState?i.chargeState?"positive":"warning":"negative"},{default:L(()=>[I(ln,null,{default:L(()=>[qe(le(i.plugState?i.chargeState?"Lädt":"Angesteckt, lädt nicht":"Nicht angesteckt"),1)]),_:1})]),_:1},8,["name","color"])}const ml=Me(lw,[["render",cw],["__file","ChargePointStateIcon.vue"]]),uw=Se({__name:"ChargePointPriority",props:{chargePointId:{type:Number,required:!0},readonly:{type:Boolean,default:!1},dense:{type:Boolean,default:!1}},setup(t,{expose:e}){e();const n=t,i={off:"star_border",on:"star"},o=Be(),s=o.chargePointConnectedVehiclePriority(n.chargePointId),a={props:n,icon:i,mqttStore:o,priority:s};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}});function dw(t,e,n,i,o,s){return i.props.readonly?(V(),ne(_e,{key:0,name:i.priority?i.icon.on:i.icon.off,color:i.priority?"warning":"",size:"sm"},null,8,["name","color"])):(V(),ne(va,{key:1,modelValue:i.priority,"onUpdate:modelValue":e[0]||(e[0]=a=>i.priority=a),color:i.priority?"primary":"","checked-icon":i.icon.on,"unchecked-icon":i.icon.off,size:"lg",dense:i.props.dense},{default:L(()=>[I(ln,null,{default:L(()=>[qe(le(i.priority?"Fahrzeug priorisiert":"Fahrzeug nicht priorisiert"),1)]),_:1})]),_:1},8,["modelValue","color","checked-icon","unchecked-icon","dense"]))}const ag=Me(uw,[["render",dw],["__file","ChargePointPriority.vue"]]),hw=Object.keys(Cd);function fw(t){return hw.reduce((e,n)=>{const i=t[n];return i!==void 0&&(e[n]=i),e},{})}const rg=ze({name:"QBtnDropdown",props:{...Cd,...Lr,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(t,{slots:e,emit:n}){const{proxy:i}=$e(),o=N(t.modelValue),s=N(null),a=Bf(),r=g(()=>{const x={"aria-expanded":o.value===!0?"true":"false","aria-haspopup":"true","aria-controls":a.value,"aria-label":t.toggleAriaLabel||i.$q.lang.label[o.value===!0?"collapse":"expand"](t.label)};return(t.disable===!0||t.split===!1&&t.disableMainBtn===!0||t.disableDropdown===!0)&&(x["aria-disabled"]="true"),x}),l=g(()=>"q-btn-dropdown__arrow"+(o.value===!0&&t.noIconAnimation===!1?" rotate-180":"")+(t.split===!1?" q-btn-dropdown__arrow-container":"")),c=g(()=>um(t)),u=g(()=>fw(t));ge(()=>t.modelValue,x=>{s.value!==null&&s.value[x?"show":"hide"]()}),ge(()=>t.split,_);function d(x){o.value=!0,n("beforeShow",x)}function h(x){n("show",x),n("update:modelValue",!0)}function f(x){o.value=!1,n("beforeHide",x)}function m(x){n("hide",x),n("update:modelValue",!1)}function p(x){n("click",x)}function v(x){wn(x),_(),n("click",x)}function b(x){s.value!==null&&s.value.toggle(x)}function y(x){s.value!==null&&s.value.show(x)}function _(x){s.value!==null&&s.value.hide(x)}return Object.assign(i,{show:y,hide:_,toggle:b}),Wt(()=>{t.modelValue===!0&&y()}),()=>{const x=[w(_e,{class:l.value,name:t.dropdownIcon||i.$q.iconSet.arrow.dropdown})];return t.disableDropdown!==!0&&x.push(w(Gf,{ref:s,id:a.value,class:t.contentClass,style:t.contentStyle,cover:t.cover,fit:!0,persistent:t.persistent,noRouteDismiss:t.noRouteDismiss,autoClose:t.autoClose,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,separateClosePopup:!0,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,onBeforeShow:d,onShow:h,onBeforeHide:f,onHide:m},e.default)),t.split===!1?w(Ve,{class:"q-btn-dropdown q-btn-dropdown--simple",...u.value,...r.value,disable:t.disable===!0||t.disableMainBtn===!0,noWrap:!0,round:!1,onClick:p},{default:()=>Ge(e.label,[]).concat(x),loading:e.loading}):w(pn,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:t.rounded,square:t.square,...c.value,glossy:t.glossy,stretch:t.stretch},()=>[w(Ve,{class:"q-btn-dropdown--current",...u.value,disable:t.disable===!0||t.disableMainBtn===!0,noWrap:!0,round:!1,onClick:v},{default:e.label,loading:e.loading}),w(Ve,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...r.value,...c.value,disable:t.disable===!0||t.disableDropdown===!0,rounded:t.rounded,color:t.color,textColor:t.textColor,dense:t.dense,size:t.size,padding:t.padding,ripple:t.ripple},()=>x)])}}}),gw=Se({__name:"ChargePointModeButtons",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=g(()=>qr.is.mobile),{chargeModes:o}=cl(),s=Be(),a=g(()=>s.chargePointConnectedVehicleChargeMode(n.chargePointId)),r=g(()=>o.find(c=>c.value===a.value.value)?.label),l={props:n,isMobile:i,chargeModes:o,mqttStore:s,chargeMode:a,currentModeLabel:r};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),mw={key:0,class:"q-pt-md full-width"};function vw(t,e,n,i,o,s){return i.isMobile?(V(),K("div",mw,[I(rg,{"transition-show":"scale","transition-hide":"scale","transition-duration":"500",class:"full-width",color:"primary",label:i.currentModeLabel,size:"lg","dropdown-icon":"none",cover:"",push:""},{default:L(()=>[I(ia,null,{default:L(()=>[(V(!0),K(Oe,null,Je(i.chargeModes,(a,r)=>(V(),K(Oe,{key:a.value},[rn((V(),ne(oa,{clickable:"",onClick:l=>i.chargeMode.value=a.value,active:i.chargeMode.value===a.value,"active-class":"bg-primary text-white"},{default:L(()=>[I(Do,{class:"text-center text-weight-bold"},{default:L(()=>[I(sa,null,{default:L(()=>[qe(le(a.label.toLocaleUpperCase()),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick","active"])),[[Mn]]),r[(V(!0),K(Oe,null,Je(i.chargeModes,a=>(V(),ne(Ve,{key:a.value,color:i.chargeMode.value===a.value?"primary":"grey",label:a.label,size:"sm",class:"flex-grow",onClick:r=>i.chargeMode.value=a.value},null,8,["color","label","onClick"]))),128))]),_:1}))}const lg=Me(gw,[["render",vw],["__scopeId","data-v-674981ff"],["__file","ChargePointModeButtons.vue"]]),pw=Se({__name:"ChargePointStateMessage",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>i.chargePointStateMessage(n.chargePointId)),s={props:n,mqttStore:i,message:o};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),bw={class:"row q-mt-sm q-pa-sm bg-primary text-white no-wrap message-text",color:"primary",style:{"border-radius":"10px"}};function yw(t,e,n,i,o,s){return V(),K("div",bw,[I(_e,{name:"info",size:"sm",class:"q-mr-xs"}),qe(" "+le(i.message),1)])}const _w=Me(pw,[["render",yw],["__scopeId","data-v-31323cae"],["__file","ChargePointStateMessage.vue"]]),xw=Se({__name:"ChargePointFaultMessage",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>i.chargePointFaultState(n.chargePointId)),s=g(()=>i.chargePointFaultMessage(n.chargePointId)),a=g(()=>{switch(o.value){case 1:return"bg-warning";case 2:return"bg-negative";default:return"bg-primary"}}),r=g(()=>{switch(o.value){case 1:return"warning";case 2:return"error";default:return"info"}}),l={props:n,mqttStore:i,state:o,message:s,messageClass:a,iconName:r};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}});function Sw(t,e,n,i,o,s){return i.state!==void 0&&i.state!==0?(V(),K("div",{key:0,class:Tt(["row q-mt-sm q-pa-sm text-white no-wrap",i.messageClass]),style:{"border-radius":"10px"}},[I(_e,{name:i.iconName,size:"sm",class:"q-mr-xs"},null,8,["name"]),qe(" "+le(i.message),1)],2)):ue("",!0)}const ww=Me(xw,[["render",Sw],["__file","ChargePointFaultMessage.vue"]]),kw=Se({__name:"ChargePointVehicleSelect",props:{chargePointId:{type:Number,required:!0},readonly:{type:Boolean,default:!1}},setup(t,{expose:e}){e();const n=t,i=Be(),o=i.chargePointConnectedVehicleInfo(n.chargePointId),s=g(()=>i.vehicleList),a={props:n,mqttStore:i,connectedVehicle:o,vehicles:s};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),Cw={key:0,class:"q-mx-sm"};function Mw(t,e,n,i,o,s){return i.props.readonly?(V(),K("div",Cw,le(i.connectedVehicle?.name),1)):(V(),ne(rg,{key:1,color:"grey",label:i.connectedVehicle?.name,icon:"directions_car",dense:"","no-caps":"",class:"flex-grow"},{default:L(()=>[I(ia,null,{default:L(()=>[(V(!0),K(Oe,null,Je(i.vehicles,a=>rn((V(),ne(oa,{key:a.id,clickable:"",dense:"",onClick:r=>i.connectedVehicle=a},{default:L(()=>[I(Do,null,{default:L(()=>[I(sa,null,{default:L(()=>[qe(le(a.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"])),[[Mn]])),128))]),_:1})]),_:1},8,["label"]))}const cg=Me(kw,[["render",Mw],["__scopeId","data-v-ca7bfd56"],["__file","ChargePointVehicleSelect.vue"]]),ug=ze({name:"QSpace",setup(){const t=w("div",{class:"q-space"});return()=>t}}),vl=ze({name:"QCardActions",props:{...dm,vertical:Boolean},setup(t,{slots:e}){const n=hm(t),i=g(()=>`q-card__actions ${n.value} q-card__actions--${t.vertical===!0?"vert column":"horiz row"}`);return()=>w("div",{class:i.value},Ge(e.default))}}),Pw=Se({name:"SliderStandard",__name:"SliderStandard",props:{title:{type:String,default:"title"},modelValue:{type:Number},max:{type:Number,required:!0},min:{type:Number,required:!0},step:{type:Number,default:1},unit:{type:String,default:""},offValueRight:{type:Number,default:105},offValueLeft:{type:Number,default:-1},discreteValues:{type:Array,default:void 0}},emits:["update:model-value"],setup(t,{expose:e,emit:n}){e();const i=t,o=n,s=N(i.modelValue),a=N(null),r=g(()=>s.value!==i.modelValue),l=g({get:()=>{if(i.discreteValues){const m=i.discreteValues.indexOf(s.value??i.discreteValues[0]);return m>=0?m:0}return s.value},set:m=>{a.value&&clearTimeout(a.value),i.discreteValues?s.value=i.discreteValues[m]:s.value=m}}),c=m=>{r.value&&(a.value&&clearTimeout(a.value),a.value=setTimeout(()=>{o("update:model-value",i.discreteValues?i.discreteValues[m]:m)},2e3))},u=g(()=>{const m=i.discreteValues&&l.value!==void 0?i.discreteValues[l.value]:l.value;return m===i.offValueLeft||m===i.offValueRight?"Aus":m}),d=g(()=>{const m=i.discreteValues&&l.value!==void 0?i.discreteValues[l.value]:l.value;return m===i.offValueLeft||m===i.offValueRight?"":i.unit});ge(()=>i.modelValue,m=>{s.value=m}),Ot(()=>{if(a.value){clearTimeout(a.value);const m=l.value!==void 0?l.value:0;o("update:model-value",i.discreteValues?i.discreteValues[m]:m)}});const h=g(()=>r.value?"pending":""),f={props:i,emit:o,tempValue:s,updateTimeout:a,updatePending:r,value:l,updateValue:c,displayValue:u,displayUnit:d,myClass:h};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),Tw={class:"text-subtitle2"},Iw={class:"row items-center justify-between q-ml-sm"};function Ow(t,e,n,i,o,s){return V(),K("div",null,[q("div",null,[q("div",Tw,le(i.props.title),1)]),q("div",Iw,[I(Qs,{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=a=>i.value=a),min:i.props.discreteValues?0:i.props.min,max:i.props.discreteValues?i.props.discreteValues.length-1:i.props.max,step:i.props.step,color:"primary",style:{width:"75%"},"track-size":"0.5em","thumb-size":"1.7em",onTouchstart:e[1]||(e[1]=nn(()=>{},["stop"])),onTouchmove:e[2]||(e[2]=nn(()=>{},["stop"])),onTouchend:e[3]||(e[3]=nn(()=>{},["stop"])),onChange:i.updateValue},null,8,["modelValue","min","max","step"]),q("div",{class:Tt(["q-ml-md no-wrap",i.myClass])},le(i.displayValue)+" "+le(i.displayUnit),3)])])}const pl=Me(Pw,[["render",Ow],["__scopeId","data-v-d1d2b5c9"],["__file","SliderStandard.vue"]]),Dw=Se({__name:"ChargePointInstantSettings",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>{let p=[{value:"none",label:"keine",color:"primary"},{value:"soc",label:"EV-SoC",color:"primary"},{value:"amount",label:"Energiemenge",color:"primary"}];return s.value===void 0&&(p=p.filter(v=>v.value!=="soc")),p}),s=g(()=>i.chargePointConnectedVehicleSocType(n.chargePointId))?.value,a=[{value:1,label:"1"},{value:3,label:"Maximum"}],r=g(()=>i.chargePointConnectedVehicleInstantChargeCurrent(n.chargePointId)),l=g(()=>i.dcChargingEnabled),c=g(()=>i.chargePointConnectedVehicleInstantDcChargePower(n.chargePointId)),u=g(()=>i.chargePointConnectedVehicleInstantChargePhases(n.chargePointId)),d=g(()=>i.chargePointConnectedVehicleInstantChargeLimit(n.chargePointId)),h=g(()=>i.chargePointConnectedVehicleInstantChargeLimitSoC(n.chargePointId)),f=g(()=>i.chargePointConnectedVehicleInstantChargeLimitEnergy(n.chargePointId)),m={props:n,mqttStore:i,limitModes:o,vehicleSocType:s,phaseOptions:a,instantChargeCurrent:r,dcCharging:l,instantChargeCurrentDc:c,numPhases:u,limitMode:d,limitSoC:h,limitEnergy:f,SliderStandard:pl};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}}),Vw={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},Ew={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"};function Aw(t,e,n,i,o,s){return V(),K(Oe,null,[I(i.SliderStandard,{title:"Stromstärke",min:6,max:32,unit:"A",modelValue:i.instantChargeCurrent.value,"onUpdate:modelValue":e[0]||(e[0]=a=>i.instantChargeCurrent.value=a),class:"q-mt-sm"},null,8,["modelValue"]),i.dcCharging?(V(),ne(i.SliderStandard,{key:0,title:"DC-Sollleistung",min:4,max:300,unit:"kW",modelValue:i.instantChargeCurrentDc.value,"onUpdate:modelValue":e[1]||(e[1]=a=>i.instantChargeCurrentDc.value=a),class:"q-mt-sm"},null,8,["modelValue"])):ue("",!0),e[4]||(e[4]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Anzahl Phasen",-1)),q("div",Vw,[I(pn,{class:"col"},{default:L(()=>[(V(),K(Oe,null,Je(i.phaseOptions,a=>I(Ve,{key:a.value,color:i.numPhases.value===a.value?"primary":"grey",label:a.label,size:"sm",class:"col",onClick:r=>i.numPhases.value=a.value},null,8,["color","label","onClick"])),64))]),_:1})]),e[5]||(e[5]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Begrenzung",-1)),q("div",Ew,[I(pn,{class:"col"},{default:L(()=>[(V(!0),K(Oe,null,Je(i.limitModes,a=>(V(),ne(Ve,{key:a.value,color:i.limitMode.value===a.value?"primary":"grey",label:a.label,size:"sm",class:"col",onClick:r=>i.limitMode.value=a.value},null,8,["color","label","onClick"]))),128))]),_:1})]),i.limitMode.value==="soc"?(V(),ne(i.SliderStandard,{key:1,title:"SoC-Limit für das Fahrzeug",min:5,max:100,step:5,unit:"%",modelValue:i.limitSoC.value,"onUpdate:modelValue":e[2]||(e[2]=a=>i.limitSoC.value=a),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),i.limitMode.value==="amount"?(V(),ne(i.SliderStandard,{key:2,title:"Energie-Limit",min:1,max:50,unit:"kWh",modelValue:i.limitEnergy.value,"onUpdate:modelValue":e[3]||(e[3]=a=>i.limitEnergy.value=a),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0)],64)}const Rw=Me(Dw,[["render",Aw],["__scopeId","data-v-f45a6b19"],["__file","ChargePointInstantSettings.vue"]]),qw=Se({__name:"ToggleStandard",props:{value:{type:Boolean,default:!1},size:{type:String,default:"lg"}},emits:["update:value"],setup(t,{expose:e,emit:n}){e();const i=t,o=n,a={props:i,emit:o,emitValue:r=>{o("update:value",r)}};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}});function Lw(t,e,n,i,o,s){return V(),ne(va,{"model-value":i.props.value,"onUpdate:modelValue":i.emitValue,color:i.props.value?"positive":"negative",size:i.props.size},null,8,["model-value","color","size"])}const Fw=Me(qw,[["render",Lw],["__file","ToggleStandard.vue"]]),zw=Se({__name:"ChargePointPvSettings",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>{let C=[{value:"none",label:"keine",color:"primary"},{value:"soc",label:"EV-SoC",color:"primary"},{value:"amount",label:"Energiemenge",color:"primary"}];return s.value===void 0&&(C=C.filter(S=>S.value!=="soc")),C}),s=g(()=>i.chargePointConnectedVehicleSocType(n.chargePointId))?.value,a=[{value:1,label:"1"},{value:3,label:"Maximum"},{value:0,label:"Automatik"}],r=[{value:1,label:"1"},{value:3,label:"Maximum"}],l=g(()=>i.chargePointConnectedVehiclePvChargeMinCurrent(n.chargePointId)),c=g(()=>i.dcChargingEnabled),u=g(()=>i.chargePointConnectedVehiclePvDcChargePower(n.chargePointId)),d=g(()=>i.chargePointConnectedVehiclePvDcMinSocPower(n.chargePointId)),h=g(()=>i.chargePointConnectedVehiclePvChargePhases(n.chargePointId)),f=g(()=>i.chargePointConnectedVehiclePvChargePhasesMinSoc(n.chargePointId)),m=g(()=>i.chargePointConnectedVehiclePvChargeMinSoc(n.chargePointId)),p=g(()=>i.chargePointConnectedVehiclePvChargeMinSocCurrent(n.chargePointId)),v=g(()=>i.chargePointConnectedVehiclePvChargeLimit(n.chargePointId)),b=g(()=>i.chargePointConnectedVehiclePvChargeLimitSoC(n.chargePointId)),y=g(()=>i.chargePointConnectedVehiclePvChargeLimitEnergy(n.chargePointId)),_=g(()=>i.chargePointConnectedVehiclePvChargeFeedInLimit(n.chargePointId)),x={props:n,mqttStore:i,limitModes:o,vehicleSocType:s,phaseOptions:a,phaseOptionsMinSoc:r,pvMinCurrent:l,dcCharging:c,pvMinDcPower:u,pvMinDcMinSocPower:d,numPhases:h,numPhasesMinSoc:f,pvMinSoc:m,pvMinSocCurrent:p,limitMode:v,limitSoC:b,limitEnergy:y,feedInLimit:_,SliderStandard:pl,ToggleStandard:Fw};return Object.defineProperty(x,"__isScriptSetup",{enumerable:!1,value:!0}),x}}),Bw={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},Nw={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},Ww={key:3},Hw={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},jw={class:"row items-center justify-between q-ma-none q-pa-none no-wrap q-mt-md"};function $w(t,e,n,i,o,s){return V(),K(Oe,null,[I(i.SliderStandard,{title:"Minimaler Dauerstrom",min:-1,max:16,step:1,unit:"A","off-value-left":-1,"discrete-values":[-1,6,7,8,9,10,11,12,13,14,15,16],modelValue:i.pvMinCurrent.value,"onUpdate:modelValue":e[0]||(e[0]=a=>i.pvMinCurrent.value=a),class:"q-mt-md"},null,8,["modelValue"]),i.dcCharging?(V(),ne(i.SliderStandard,{key:0,title:"Minimaler DC-Dauerleistung",min:0,max:300,step:1,unit:"kW",modelValue:i.pvMinDcPower.value,"onUpdate:modelValue":e[1]||(e[1]=a=>i.pvMinDcPower.value=a),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),e[10]||(e[10]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Anzahl Phasen",-1)),q("div",Bw,[I(pn,{class:"col"},{default:L(()=>[(V(),K(Oe,null,Je(i.phaseOptions,a=>I(Ve,{key:a.value,color:i.numPhases.value===a.value?"primary":"grey",label:a.label,size:"sm",class:"col",onClick:r=>i.numPhases.value=a.value},null,8,["color","label","onClick"])),64))]),_:1})]),e[11]||(e[11]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Begrenzung",-1)),q("div",Nw,[I(pn,{class:"col"},{default:L(()=>[(V(!0),K(Oe,null,Je(i.limitModes,a=>(V(),ne(Ve,{key:a.value,color:i.limitMode.value===a.value?"primary":"grey",label:a.label,size:"sm",class:"col",onClick:r=>i.limitMode.value=a.value},null,8,["color","label","onClick"]))),128))]),_:1})]),i.limitMode.value==="soc"?(V(),ne(i.SliderStandard,{key:1,title:"SoC-Limit für das Fahrzeug",min:5,max:100,step:5,unit:"%",modelValue:i.limitSoC.value,"onUpdate:modelValue":e[2]||(e[2]=a=>i.limitSoC.value=a),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),i.limitMode.value==="amount"?(V(),ne(i.SliderStandard,{key:2,title:"Energie-Limit",min:1,max:50,unit:"kWh",modelValue:i.limitEnergy.value,"onUpdate:modelValue":e[3]||(e[3]=a=>i.limitEnergy.value=a),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),i.vehicleSocType!==void 0?(V(),K("div",Ww,[I(i.SliderStandard,{title:"Mindest-SoC für das Fahrzeug",min:0,max:100,step:5,unit:"%","off-value-left":0,modelValue:i.pvMinSoc.value,"onUpdate:modelValue":e[4]||(e[4]=a=>i.pvMinSoc.value=a),class:"q-mt-md"},null,8,["modelValue"]),I(i.SliderStandard,{title:"Mindest-SoC-Strom",min:6,max:32,unit:"A",modelValue:i.pvMinSocCurrent.value,"onUpdate:modelValue":e[5]||(e[5]=a=>i.pvMinSocCurrent.value=a),class:"q-mt-md"},null,8,["modelValue"]),i.dcCharging?(V(),ne(i.SliderStandard,{key:0,title:"DC Mindest-SoC-Leistung",min:0,max:300,step:1,unit:"kW",modelValue:i.pvMinDcMinSocPower.value,"onUpdate:modelValue":e[6]||(e[6]=a=>i.pvMinDcMinSocPower.value=a),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),e[8]||(e[8]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Anzahl Phasen Mindest-SoC",-1)),q("div",Hw,[I(pn,{class:"col"},{default:L(()=>[(V(),K(Oe,null,Je(i.phaseOptionsMinSoc,a=>I(Ve,{key:a.value,color:i.numPhasesMinSoc.value===a.value?"primary":"grey",label:a.label,size:"sm",class:"col",onClick:r=>i.numPhasesMinSoc.value=a.value},null,8,["color","label","onClick"])),64))]),_:1})])])):ue("",!0),q("div",jw,[e[9]||(e[9]=q("div",{class:"text-subtitle2 q-mr-sm"},"Einspeisegrenze beachten",-1)),q("div",null,[I(i.ToggleStandard,{dense:"",modelValue:i.feedInLimit.value,"onUpdate:modelValue":e[7]||(e[7]=a=>i.feedInLimit.value=a)},null,8,["modelValue"])])])],64)}const Uw=Me(zw,[["render",$w],["__file","ChargePointPvSettings.vue"]]);/*! * chartjs-plugin-annotation v3.1.0 * https://www.chartjs.org/chartjs-plugin-annotation/index * (c) 2024 chartjs-plugin-annotation Contributors * Released under the MIT License - */const Yu={modes:{point(t,e){return Ds(t,e,{intersect:!0})},nearest(t,e,n){return Xw(t,e,n)},x(t,e,n){return Ds(t,e,{intersect:n.intersect,axis:"x"})},y(t,e,n){return Ds(t,e,{intersect:n.intersect,axis:"y"})}}};function bl(t,e,n){return(Yu.modes[n.mode]||Yu.modes.nearest)(t,e,n)}function Yw(t,e,n){return n!=="x"&&n!=="y"?t.inRange(e.x,e.y,"x",!0)||t.inRange(e.x,e.y,"y",!0):t.inRange(e.x,e.y,n,!0)}function Zw(t,e,n){return n==="x"?{x:t.x,y:e.y}:n==="y"?{x:e.x,y:t.y}:e}function Ds(t,e,n){return t.filter(i=>n.intersect?i.inRange(e.x,e.y):Yw(i,e,n.axis))}function Xw(t,e,n){let i=Number.POSITIVE_INFINITY;return Ds(t,e,n).reduce((o,s)=>{const r=s.getCenterPoint(),a=Zw(e,r,n.axis),l=Fi(e,a);return lo._index-s._index).slice(0,1)}function gi(t,e,n){const i=Math.cos(n),o=Math.sin(n),s=e.x,r=e.y;return{x:s+i*(t.x-s)-o*(t.y-r),y:r+o*(t.x-s)+i*(t.y-r)}}const Kw=(t,e)=>e>t||t.length>e.length&&t.slice(0,e.length)===e,ii=.001,pr=(t,e,n)=>Math.min(n,Math.max(e,t)),ug=(t,e)=>t.value>=t.start-e&&t.value<=t.end+e;function Qw(t,e,n){for(const i of Object.keys(t))t[i]=pr(t[i],e,n);return t}function Gw(t,e,n,i){return!t||!e||n<=0?!1:Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(n+i,2)}function dg(t,{x:e,y:n,x2:i,y2:o},s,{borderWidth:r,hitTolerance:a}){const l=(r+a)/2,c=t.x>=e-l-ii&&t.x<=i+l+ii,u=t.y>=n-l-ii&&t.y<=o+l+ii;return s==="x"?c:(s==="y"||c)&&u}function hg(t,{rect:e,center:n},i,{rotation:o,borderWidth:s,hitTolerance:r}){const a=gi(t,n,bt(-o));return dg(a,e,i,{borderWidth:s,hitTolerance:r})}function mi(t,e){const{centerX:n,centerY:i}=t.getProps(["centerX","centerY"],e);return{x:n,y:i}}function Jw(t,e,n,i=!0){const o=n.split(".");let s=0;for(const r of e.split(".")){const a=o[s++];if(parseInt(r,10)typeof t=="string"&&t.endsWith("%"),gg=t=>parseFloat(t)/100,mg=t=>pr(gg(t),0,1),co=(t,e)=>({x:t,y:e,x2:t,y2:e,width:0,height:0}),ek={box:t=>co(t.centerX,t.centerY),doughnutLabel:t=>co(t.centerX,t.centerY),ellipse:t=>({centerX:t.centerX,centerY:t.centerX,radius:0,width:0,height:0}),label:t=>co(t.centerX,t.centerY),line:t=>co(t.x,t.y),point:t=>({centerX:t.centerX,centerY:t.centerY,radius:0,width:0,height:0}),polygon:t=>co(t.centerX,t.centerY)};function yl(t,e){return e==="start"?0:e==="end"?t:fg(e)?mg(e)*t:t/2}function $n(t,e,n=!0){return typeof e=="number"?e:fg(e)?(n?mg(e):gg(e))*t:t}function tk(t,e){const{x:n,width:i}=t,o=e.textAlign;return o==="center"?n+i/2:o==="end"||o==="right"?n+i:n}function vg(t,e,{borderWidth:n,position:i,xAdjust:o,yAdjust:s},r){const a=xe(r),l=e.width+(a?r.width:0)+n,c=e.height+(a?r.height:0)+n,u=_l(i),d=Zu(t.x,l,o,u.x),h=Zu(t.y,c,s,u.y);return{x:d,y:h,x2:d+l,y2:h+c,width:l,height:c,centerX:d+l/2,centerY:h+c/2}}function _l(t,e="center"){return xe(t)?{x:Ce(t.x,e),y:Ce(t.y,e)}:(t=Ce(t,e),{x:t,y:t})}const pg=(t,e)=>t&&t.autoFit&&e<1;function bg(t,e){const n=t.font,i=Qe(n)?n:[n];return pg(t,e)?i.map(function(o){const s=kt(o);return s.size=Math.floor(o.size*e),s.lineHeight=o.lineHeight,kt(s)}):i.map(o=>kt(o))}function yg(t){return t&&($t(t.xValue)||$t(t.yValue))}function Zu(t,e,n=0,i){return t-yl(e,i)+n}function Qi(t,e,n){const i=n.init;if(i){if(i===!0)return xg(e,n)}else return;return nk(t,e,n)}function _g(t,e,n){let i=!1;return e.forEach(o=>{Nt(t[o])?(i=!0,n[o]=t[o]):$t(n[o])&&delete n[o]}),i}function xg(t,e){const n=e.type||"line";return ek[n](t)}function nk(t,e,n){const i=je(n.init,[{chart:t,properties:e,options:n}]);if(i===!0)return xg(e,n);if(xe(i))return i}const oa=new Map,ik=t=>isNaN(t)||t<=0,ok=t=>t.reduce(function(e,n){return e+=n.string,e},"");function br(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object HTMLImageElement]"||e==="[object HTMLCanvasElement]"}}function yr(t,{x:e,y:n},i){i&&(t.translate(e,n),t.rotate(bt(i)),t.translate(-e,-n))}function Tn(t,e){if(e&&e.borderWidth)return t.lineCap=e.borderCapStyle||"butt",t.setLineDash(e.borderDash),t.lineDashOffset=e.borderDashOffset,t.lineJoin=e.borderJoinStyle||"miter",t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,!0}function Gi(t,e){t.shadowColor=e.backgroundShadowColor,t.shadowBlur=e.shadowBlur,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY}function _r(t,e){const n=e.content;if(br(n))return{width:$n(n.width,e.width),height:$n(n.height,e.height)};const i=bg(e),o=e.textStrokeWidth,s=Qe(n)?n:[n],r=s.join()+ok(i)+o+(t._measureText?"-spriting":"");return oa.has(r)||oa.set(r,lk(t,s,i,o)),oa.get(r)}function Sg(t,e,n){const{x:i,y:o,width:s,height:r}=e;t.save(),Gi(t,n);const a=Tn(t,n);t.fillStyle=n.backgroundColor,t.beginPath(),Bs(t,{x:i,y:o,w:s,h:r,radius:Qw(Oi(n.borderRadius),0,Math.min(s,r)/2)}),t.closePath(),t.fill(),a&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}function wg(t,e,n,i){const o=n.content;if(br(o)){t.save(),t.globalAlpha=dk(n.opacity,o.style.opacity),t.drawImage(o,e.x,e.y,e.width,e.height),t.restore();return}const s=Qe(o)?o:[o],r=bg(n,i),a=n.color,l=Qe(a)?a:[a],c=tk(e,n),u=e.y+n.textStrokeWidth/2;t.save(),t.textBaseline="middle",t.textAlign=n.textAlign,sk(t,n)&&ck(t,{x:c,y:u},s,r),uk(t,{x:c,y:u},s,{fonts:r,colors:l}),t.restore()}function sk(t,e){if(e.textStrokeWidth>0)return t.lineJoin="round",t.miterLimit=2,t.lineWidth=e.textStrokeWidth,t.strokeStyle=e.textStrokeColor,!0}function rk(t,e,n,i){const{radius:o,options:s}=e,r=s.pointStyle,a=s.rotation;let l=(a||0)*Wa;if(br(r)){t.save(),t.translate(n,i),t.rotate(l),t.drawImage(r,-r.width/2,-r.height/2,r.width,r.height),t.restore();return}ik(o)||ak(t,{x:n,y:i,radius:o,rotation:a,style:r,rad:l})}function ak(t,{x:e,y:n,radius:i,rotation:o,style:s,rad:r}){let a,l,c,u;switch(t.beginPath(),s){default:t.arc(e,n,i,0,pt),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(r)*i,n-Math.cos(r)*i),r+=Ls,t.lineTo(e+Math.sin(r)*i,n-Math.cos(r)*i),r+=Ls,t.lineTo(e+Math.sin(r)*i,n-Math.cos(r)*i),t.closePath();break;case"rectRounded":u=i*.516,c=i-u,a=Math.cos(r+Xt)*c,l=Math.sin(r+Xt)*c,t.arc(e-a,n-l,u,r-We,r-wt),t.arc(e+l,n-a,u,r-wt,r),t.arc(e+a,n+l,u,r,r+wt),t.arc(e-l,n+a,u,r+wt,r+We),t.closePath();break;case"rect":if(!o){c=Math.SQRT1_2*i,t.rect(e-c,n-c,2*c,2*c);break}r+=Xt;case"rectRot":a=Math.cos(r)*i,l=Math.sin(r)*i,t.moveTo(e-a,n-l),t.lineTo(e+l,n-a),t.lineTo(e+a,n+l),t.lineTo(e-l,n+a),t.closePath();break;case"crossRot":r+=Xt;case"cross":a=Math.cos(r)*i,l=Math.sin(r)*i,t.moveTo(e-a,n-l),t.lineTo(e+a,n+l),t.moveTo(e+l,n-a),t.lineTo(e-l,n+a);break;case"star":a=Math.cos(r)*i,l=Math.sin(r)*i,t.moveTo(e-a,n-l),t.lineTo(e+a,n+l),t.moveTo(e+l,n-a),t.lineTo(e-l,n+a),r+=Xt,a=Math.cos(r)*i,l=Math.sin(r)*i,t.moveTo(e-a,n-l),t.lineTo(e+a,n+l),t.moveTo(e+l,n-a),t.lineTo(e-l,n+a);break;case"line":a=Math.cos(r)*i,l=Math.sin(r)*i,t.moveTo(e-a,n-l),t.lineTo(e+a,n+l);break;case"dash":t.moveTo(e,n),t.lineTo(e+Math.cos(r)*i,n+Math.sin(r)*i);break}t.fill()}function lk(t,e,n,i){t.save();const o=e.length;let s=0,r=i;for(let a=0;a0||o.borderWidth===0)&&(t.moveTo(l.x,l.y),t.lineTo(c.x,c.y)),t.moveTo(u.x,u.y),t.lineTo(d.x,d.y);const h=gi({x:n,y:i},e.getCenterPoint(),bt(-e.rotation));t.lineTo(h.x,h.y),t.stroke(),t.restore()}function fk(t,e){const{x:n,y:i,x2:o,y2:s}=t,r=gk(t,e);let a,l;return e==="left"||e==="right"?(a={x:n+r,y:i},l={x:a.x,y:s}):(a={x:n,y:i+r},l={x:o,y:a.y}),{separatorStart:a,separatorEnd:l}}function gk(t,e){const{width:n,height:i,options:o}=t,s=o.callout.margin+o.borderWidth/2;return e==="right"?n+s:e==="bottom"?i+s:-s}function mk(t,e,n){const{y:i,width:o,height:s,options:r}=t,a=r.callout.start,l=vk(e,r.callout);let c,u;return e==="left"||e==="right"?(c={x:n.x,y:i+$n(s,a)},u={x:c.x+l,y:c.y}):(c={x:n.x+$n(o,a),y:n.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function vk(t,e){const n=e.side;return t==="left"||t==="top"?-n:n}function pk(t,e){const n=e.position;return kg.includes(n)?n:bk(t,e)}function bk(t,e){const{x:n,y:i,x2:o,y2:s,width:r,height:a,pointX:l,pointY:c,centerX:u,centerY:d,rotation:h}=t,f={x:u,y:d},m=e.start,p=$n(r,m),v=$n(a,m),b=[n,n+p,n+p,o],x=[i+v,s,i,s],y=[];for(let _=0;_<4;_++){const C=gi({x:b[_],y:x[_]},f,bt(h));y.push({position:kg[_],distance:Fi(C,{x:l,y:c})})}return y.sort((_,C)=>_.distance-C.distance)[0].position}function yk(t,e,n){const{pointX:i,pointY:o}=t,s=e.margin;let r=i,a=o;return n==="left"?r+=s:n==="right"?r-=s:n==="top"?a+=s:n==="bottom"&&(a-=s),t.inRange(r,a)}const Xu={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function ji(t,e,n){return e=typeof e=="number"?e:t.parse(e),yt(e)?t.getPixelForValue(e):n}function ui(t,e,n){const i=e[n];if(i||n==="scaleID")return i;const o=n.charAt(0),s=Object.values(t).filter(r=>r.axis&&r.axis===o);return s.length?s[0].id:o}function Cg(t,e){if(t){const n=t.options.reverse,i=ji(t,e.min,n?e.end:e.start),o=ji(t,e.max,n?e.start:e.end);return{start:i,end:o}}}function Mg(t,e){const{chartArea:n,scales:i}=t,o=i[ui(i,e,"xScaleID")],s=i[ui(i,e,"yScaleID")];let r=n.width/2,a=n.height/2;return o&&(r=ji(o,e.xValue,o.left+o.width/2)),s&&(a=ji(s,e.yValue,s.top+s.height/2)),{x:r,y:a}}function xl(t,e){const n=t.scales,i=n[ui(n,e,"xScaleID")],o=n[ui(n,e,"yScaleID")];if(!i&&!o)return{};let{left:s,right:r}=i||t.chartArea,{top:a,bottom:l}=o||t.chartArea;const c=Ku(i,{min:e.xMin,max:e.xMax,start:s,end:r});s=c.start,r=c.end;const u=Ku(o,{min:e.yMin,max:e.yMax,start:l,end:a});return a=u.start,l=u.end,{x:s,y:a,x2:r,y2:l,width:r-s,height:l-a,centerX:s+(r-s)/2,centerY:a+(l-a)/2}}function Pg(t,e){if(!yg(e)){const n=xl(t,e);let i=e.radius;(!i||isNaN(i))&&(i=Math.min(n.width,n.height)/2,e.radius=i);const o=i*2,s=n.centerX+e.xAdjust,r=n.centerY+e.yAdjust;return{x:s-i,y:r-i,x2:s+i,y2:r+i,centerX:s,centerY:r,width:o,height:o,radius:i}}return xk(t,e)}function _k(t,e){const{scales:n,chartArea:i}=t,o=n[e.scaleID],s={x:i.left,y:i.top,x2:i.right,y2:i.bottom};return o?Sk(o,s,e):wk(n,s,e),s}function Tg(t,e){const n=xl(t,e);return n.initProperties=Qi(t,n,e),n.elements=[{type:"label",optionScope:"label",properties:Mk(t,n,e),initProperties:n.initProperties}],n}function xk(t,e){const n=Mg(t,e),i=e.radius*2;return{x:n.x-e.radius+e.xAdjust,y:n.y-e.radius+e.yAdjust,x2:n.x+e.radius+e.xAdjust,y2:n.y+e.radius+e.yAdjust,centerX:n.x+e.xAdjust,centerY:n.y+e.yAdjust,radius:e.radius,width:i,height:i}}function Ku(t,e){const n=Cg(t,e)||e;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function Sk(t,e,n){const i=ji(t,n.value,NaN),o=ji(t,n.endValue,i);t.isHorizontal()?(e.x=i,e.x2=o):(e.y=i,e.y2=o)}function wk(t,e,n){for(const i of Object.keys(Xu)){const o=t[ui(t,n,i)];if(o){const{min:s,max:r,start:a,end:l,startProp:c,endProp:u}=Xu[i],d=Cg(o,{min:n[s],max:n[r],start:o[a],end:o[l]});e[c]=d.start,e[u]=d.end}}}function kk({properties:t,options:e},n,i,o){const{x:s,x2:r,width:a}=t;return Ig({start:s,end:r,size:a,borderWidth:e.borderWidth},{position:i.x,padding:{start:o.left,end:o.right},adjust:e.label.xAdjust,size:n.width})}function Ck({properties:t,options:e},n,i,o){const{y:s,y2:r,height:a}=t;return Ig({start:s,end:r,size:a,borderWidth:e.borderWidth},{position:i.y,padding:{start:o.top,end:o.bottom},adjust:e.label.yAdjust,size:n.height})}function Ig(t,e){const{start:n,end:i,borderWidth:o}=t,{position:s,padding:{start:r,end:a},adjust:l}=e,c=i-o-n-r-a-e.size;return n+o/2+l+yl(c,s)}function Mk(t,e,n){const i=n.label;i.backgroundColor="transparent",i.callout.display=!1;const o=_l(i.position),s=qt(i.padding),r=_r(t.ctx,i),a=kk({properties:e,options:n},r,o,s),l=Ck({properties:e,options:n},r,o,s),c=r.width+s.width,u=r.height+s.height;return{x:a,y:l,x2:a+c,y2:l+u,width:c,height:u,centerX:a+c/2,centerY:l+u/2,rotation:i.rotation}}const Ca=["enter","leave"],Sl=Ca.concat("click");function Pk(t,e,n){e.listened=_g(n,Sl,e.listeners),e.moveListened=!1,Ca.forEach(i=>{Nt(n[i])&&(e.moveListened=!0)}),(!e.listened||!e.moveListened)&&e.annotations.forEach(i=>{!e.listened&&Nt(i.click)&&(e.listened=!0),e.moveListened||Ca.forEach(o=>{Nt(i[o])&&(e.listened=!0,e.moveListened=!0)})})}function Tk(t,e,n){if(t.listened)switch(e.type){case"mousemove":case"mouseout":return Ik(t,e,n);case"click":return Ok(t,e,n)}}function Ik(t,e,n){if(!t.moveListened)return;let i;e.type==="mousemove"?i=bl(t.visibleElements,e,n.interaction):i=[];const o=t.hovered;t.hovered=i;const s={state:t,event:e};let r=Qu(s,"leave",o,i);return Qu(s,"enter",i,o)||r}function Qu({state:t,event:e},n,i,o){let s;for(const r of i)o.indexOf(r)<0&&(s=Og(r.options[n]||t.listeners[n],r,e)||s);return s}function Ok(t,e,n){const i=t.listeners,o=bl(t.visibleElements,e,n.interaction);let s;for(const r of o)s=Og(r.options.click||i.click,r,e)||s;return s}function Og(t,e,n){return je(t,[e.$context,n])===!0}const Gs=["afterDraw","beforeDraw"];function Dk(t,e,n){const i=e.visibleElements;e.hooked=_g(n,Gs,e.hooks),e.hooked||i.forEach(o=>{e.hooked||Gs.forEach(s=>{Nt(o.options[s])&&(e.hooked=!0)})})}function Gu(t,e,n){if(t.hooked){const i=e.options[n]||t.hooks[n];return je(i,[e.$context])}}function Vk(t,e,n){const i=Lk(t.scales,e,n);let o=Ju(e,i,"min","suggestedMin");o=Ju(e,i,"max","suggestedMax")||o,o&&Nt(e.handleTickRangeOptions)&&e.handleTickRangeOptions()}function Ek(t,e){for(const n of t)Rk(n,e)}function Ju(t,e,n,i){if(yt(e[n])&&!Ak(t.options,n,i)){const o=t[n]!==e[n];return t[n]=e[n],o}}function Ak(t,e,n){return $t(t[e])||$t(t[n])}function Rk(t,e){for(const n of["scaleID","xScaleID","yScaleID"]){const i=ui(e,t,n);i&&!e[i]&&qk(t,n)&&console.warn(`No scale found with id '${i}' for annotation '${t.id}'`)}}function qk(t,e){if(e==="scaleID")return!0;const n=e.charAt(0);for(const i of["Min","Max","Value"])if($t(t[n+i]))return!0;return!1}function Lk(t,e,n){const i=e.axis,o=e.id,s=i+"ScaleID",r={min:Ce(e.min,Number.NEGATIVE_INFINITY),max:Ce(e.max,Number.POSITIVE_INFINITY)};for(const a of n)a.scaleID===o?ed(a,e,["value","endValue"],r):ui(t,a,s)===o&&ed(a,e,[i+"Min",i+"Max",i+"Value"],r);return r}function ed(t,e,n,i){for(const o of n){const s=t[o];if($t(s)){const r=e.parse(s);i.min=Math.min(i.min,r),i.max=Math.max(i.max,r)}}}class Ji extends Lt{inRange(e,n,i,o){const{x:s,y:r}=gi({x:e,y:n},this.getCenterPoint(o),bt(-this.options.rotation));return dg({x:s,y:r},this.getProps(["x","y","x2","y2"],o),i,this.options)}getCenterPoint(e){return mi(this,e)}draw(e){e.save(),yr(e,this.getCenterPoint(),this.options.rotation),Sg(e,this,this.options),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,n){return Tg(e,n)}}Ji.id="boxAnnotation";Ji.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,hitTolerance:0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Ji.defaultRoutes={borderColor:"color",backgroundColor:"color"};Ji.descriptors={label:{_fallback:!0}};class xr extends Lt{inRange(e,n,i,o){return hg({x:e,y:n},{rect:this.getProps(["x","y","x2","y2"],o),center:this.getCenterPoint(o)},i,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return mi(this,e)}draw(e){const n=this.options;!n.display||!n.content||(Hk(e,this),e.save(),yr(e,this.getCenterPoint(),this.rotation),wg(e,this,n,this._fitRatio),e.restore())}resolveElementProperties(e,n){const i=Fk(e,n);if(!i)return{};const{controllerMeta:o,point:s,radius:r}=Bk(e,n,i);let a=_r(e.ctx,n);const l=Nk(a,r);pg(n,l)&&(a={width:a.width*l,height:a.height*l});const{position:c,xAdjust:u,yAdjust:d}=n,h=vg(s,a,{borderWidth:0,position:c,xAdjust:u,yAdjust:d});return{initProperties:Qi(e,h,n),...h,...o,rotation:n.rotation,_fitRatio:l}}}xr.id="doughnutLabelAnnotation";xr.defaults={autoFit:!0,autoHide:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderColor:"transparent",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:0,color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,spacing:1,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0};xr.defaultRoutes={};function Fk(t,e){return t.getSortedVisibleDatasetMetas().reduce(function(n,i){const o=i.controller;return o instanceof fo&&zk(t,e,i.data)&&(!n||o.innerRadius=90?i:n},void 0)}function zk(t,e,n){if(!e.autoHide)return!0;for(let i=0;id,b=v?o+m:r-m,x=Wk(b,u,d,p);return{controllerMeta:{_centerX:u,_centerY:d,_radius:p,_counterclockwise:v,...x},point:f,radius:Math.min(a,Math.min(h.right-h.left,h.bottom-h.top)/2)}}function Nk({width:t,height:e},n){const i=Math.sqrt(Math.pow(t,2)+Math.pow(e,2));return n*2/i}function Wk(t,e,n,i){const o=Math.pow(n-t,2),s=Math.pow(i,2),r=e*-2,a=Math.pow(e,2)+o-s,l=Math.pow(r,2)-4*a;if(l<=0)return{_startAngle:0,_endAngle:pt};const c=(-r-Math.sqrt(l))/2,u=(-r+Math.sqrt(l))/2;return{_startAngle:la({x:e,y:n},{x:c,y:t}).angle,_endAngle:la({x:e,y:n},{x:u,y:t}).angle}}function Hk(t,e){const{_centerX:n,_centerY:i,_radius:o,_startAngle:s,_endAngle:r,_counterclockwise:a,options:l}=e;t.save();const c=Tn(t,l);t.fillStyle=l.backgroundColor,t.beginPath(),t.arc(n,i,o,s,r,a),t.closePath(),t.fill(),c&&t.stroke(),t.restore()}class Zo extends Lt{inRange(e,n,i,o){return hg({x:e,y:n},{rect:this.getProps(["x","y","x2","y2"],o),center:this.getCenterPoint(o)},i,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return mi(this,e)}draw(e){const n=this.options,i=!$t(this._visible)||this._visible;!n.display||!n.content||!i||(e.save(),yr(e,this.getCenterPoint(),this.rotation),hk(e,this),Sg(e,this,n),wg(e,jk(this),n),e.restore())}resolveElementProperties(e,n){let i;if(yg(n))i=Mg(e,n);else{const{centerX:a,centerY:l}=xl(e,n);i={x:a,y:l}}const o=qt(n.padding),s=_r(e.ctx,n),r=vg(i,s,n,o);return{initProperties:Qi(e,r,n),pointX:i.x,pointY:i.y,...r,rotation:n.rotation}}}Zo.id="labelAnnotation";Zo.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Zo.defaultRoutes={borderColor:"color"};function jk({x:t,y:e,width:n,height:i,options:o}){const s=o.borderWidth/2,r=qt(o.padding);return{x:t+r.left+s,y:e+r.top+s,width:n-r.left-r.right-o.borderWidth,height:i-r.top-r.bottom-o.borderWidth}}const wl=(t,e,n)=>({x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}),Ma=(t,e,n)=>wl(e,n,Math.abs((t-e.y)/(n.y-e.y))).x,td=(t,e,n)=>wl(e,n,Math.abs((t-e.x)/(n.x-e.x))).y,bo=t=>t*t,$k=(t,e,{x:n,y:i,x2:o,y2:s},r)=>r==="y"?{start:Math.min(i,s),end:Math.max(i,s),value:e}:{start:Math.min(n,o),end:Math.max(n,o),value:t},nd=(t,e,n,i)=>(1-i)*(1-i)*t+2*(1-i)*i*e+i*i*n,Pa=(t,e,n,i)=>({x:nd(t.x,e.x,n.x,i),y:nd(t.y,e.y,n.y,i)}),id=(t,e,n,i)=>2*(1-i)*(e-t)+2*i*(n-e),od=(t,e,n,i)=>-Math.atan2(id(t.x,e.x,n.x,i),id(t.y,e.y,n.y,i))+.5*We;class Xo extends Lt{inRange(e,n,i,o){const s=(this.options.borderWidth+this.options.hitTolerance)/2;if(i!=="x"&&i!=="y"){const r={mouseX:e,mouseY:n},{path:a,ctx:l}=this;if(a){Tn(l,this.options),l.lineWidth+=this.options.hitTolerance;const{chart:u}=this.$context,d=e*u.currentDevicePixelRatio,h=n*u.currentDevicePixelRatio,f=l.isPointInStroke(a,d,h)||Ta(this,r,o);return l.restore(),f}const c=bo(s);return Xk(this,r,c,o)||Ta(this,r,o)}return Uk(this,{mouseX:e,mouseY:n},i,{hitSize:s,useFinalPosition:o})}getCenterPoint(e){return mi(this,e)}draw(e){const{x:n,y:i,x2:o,y2:s,cp:r,options:a}=this;if(e.save(),!Tn(e,a))return e.restore();Gi(e,a);const l=Math.sqrt(Math.pow(o-n,2)+Math.pow(s-i,2));if(a.curve&&r)return iC(e,this,r,l),e.restore();const{startOpts:c,endOpts:u,startAdjust:d,endAdjust:h}=Dg(this),f=Math.atan2(s-i,o-n);e.translate(n,i),e.rotate(f),e.beginPath(),e.moveTo(0+d,0),e.lineTo(l-h,0),e.shadowColor=a.borderShadowColor,e.stroke(),Ia(e,0,d,c),Ia(e,l,-h,u),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,n){const i=_k(e,n),{x:o,y:s,x2:r,y2:a}=i,l=Yk(i,e.chartArea),c=l?Zk({x:o,y:s},{x:r,y:a},e.chartArea):{x:o,y:s,x2:r,y2:a,width:Math.abs(r-o),height:Math.abs(a-s)};if(c.centerX=(r+o)/2,c.centerY=(a+s)/2,c.initProperties=Qi(e,c,n),n.curve){const d={x:c.x,y:c.y},h={x:c.x2,y:c.y2};c.cp=nC(c,n,Fi(d,h))}const u=Kk(e,c,n.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}Xo.id="lineAnnotation";const sd={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};Xo.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},sd),fill:!1,length:12,start:Object.assign({},sd),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,hitTolerance:0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},Zo.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Xo.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};Xo.defaultRoutes={borderColor:"color"};function Uk(t,{mouseX:e,mouseY:n},i,{hitSize:o,useFinalPosition:s}){const r=$k(e,n,t.getProps(["x","y","x2","y2"],s),i);return ug(r,o)||Ta(t,{mouseX:e,mouseY:n},s,i)}function Yk({x:t,y:e,x2:n,y2:i},{top:o,right:s,bottom:r,left:a}){return!(ts&&n>s||er&&i>r)}function rd({x:t,y:e},n,{top:i,right:o,bottom:s,left:r}){return to&&(e=td(o,{x:t,y:e},n),t=o),es&&(t=Ma(s,{x:t,y:e},n),e=s),{x:t,y:e}}function Zk(t,e,n){const{x:i,y:o}=rd(t,e,n),{x:s,y:r}=rd(e,t,n);return{x:i,y:o,x2:s,y2:r,width:Math.abs(s-i),height:Math.abs(r-o)}}function Xk(t,{mouseX:e,mouseY:n},i=ii,o){const{x:s,y:r,x2:a,y2:l}=t.getProps(["x","y","x2","y2"],o),c=a-s,u=l-r,d=bo(c)+bo(u),h=d===0?-1:((e-s)*c+(n-r)*u)/d;let f,m;return h<0?(f=s,m=r):h>1?(f=a,m=l):(f=s+h*c,m=r+h*u),bo(e-f)+bo(n-m)<=i}function Ta(t,{mouseX:e,mouseY:n},i,o){const s=t.label;return s.options.display&&s.inRange(e,n,o,i)}function Kk(t,e,n){const i=n.borderWidth,o=qt(n.padding),s=_r(t.ctx,n),r=s.width+o.width+i,a=s.height+o.height+i;return Gk(e,n,{width:r,height:a,padding:o},t.chartArea)}function Qk(t){const{x:e,y:n,x2:i,y2:o}=t,s=Math.atan2(o-n,i-e);return s>We/2?s-We:s0&&(o.w/2+s.left-i.x)/r,c=a>0&&(o.h/2+s.top-i.y)/a;return pr(Math.max(l,c),0,.25)}function tC(t,e){const{x:n,x2:i,y:o,y2:s}=t,r=Math.min(o,s)-e.top,a=Math.min(n,i)-e.left,l=e.bottom-Math.max(o,s),c=e.right-Math.max(n,i);return{x:Math.min(a,c),y:Math.min(r,l),dx:a<=c?1:-1,dy:r<=l?1:-1}}function ld(t,e){const{size:n,min:i,max:o,padding:s}=e,r=n/2;return n>o-i?(o+i)/2:(i>=t-s-r&&(t=i+s+r),o<=t+s+r&&(t=o-s-r),t)}function Dg(t){const e=t.options,n=e.arrowHeads&&e.arrowHeads.start,i=e.arrowHeads&&e.arrowHeads.end;return{startOpts:n,endOpts:i,startAdjust:cd(t,n),endAdjust:cd(t,i)}}function cd(t,e){if(!e||!e.display)return 0;const{length:n,width:i}=e,o=t.options.borderWidth/2,s={x:n,y:i+o};return Math.abs(Ma(0,s,{x:0,y:o}))}function Ia(t,e,n,i){if(!i||!i.display)return;const{length:o,width:s,fill:r,backgroundColor:a,borderColor:l}=i,c=Math.abs(e-o)+n;t.beginPath(),Gi(t,i),Tn(t,i),t.moveTo(c,-s),t.lineTo(e+n,0),t.lineTo(c,s),r===!0?(t.fillStyle=a||l,t.closePath(),t.fill(),t.shadowColor="transparent"):t.shadowColor=i.borderShadowColor,t.stroke()}function nC(t,e,n){const{x:i,y:o,x2:s,y2:r,centerX:a,centerY:l}=t,c=Math.atan2(r-o,s-i),u=_l(e.controlPoint,0),d={x:a+$n(n,u.x,!1),y:l+$n(n,u.y,!1)};return gi(d,{x:a,y:l},c)}function ud(t,{x:e,y:n},{angle:i,adjust:o},s){!s||!s.display||(t.save(),t.translate(e,n),t.rotate(i),Ia(t,0,-o,s),t.restore())}function iC(t,e,n,i){const{x:o,y:s,x2:r,y2:a,options:l}=e,{startOpts:c,endOpts:u,startAdjust:d,endAdjust:h}=Dg(e),f={x:o,y:s},m={x:r,y:a},p=od(f,n,m,0),v=od(f,n,m,1)-We,b=Pa(f,n,m,d/i),x=Pa(f,n,m,1-h/i),y=new Path2D;t.beginPath(),y.moveTo(b.x,b.y),y.quadraticCurveTo(n.x,n.y,x.x,x.y),t.shadowColor=l.borderShadowColor,t.stroke(y),e.path=y,e.ctx=t,ud(t,b,{angle:p,adjust:d},c),ud(t,x,{angle:v,adjust:h},u)}class Ko extends Lt{inRange(e,n,i,o){const s=this.options.rotation,r=(this.options.borderWidth+this.options.hitTolerance)/2;if(i!=="x"&&i!=="y")return oC({x:e,y:n},this.getProps(["width","height","centerX","centerY"],o),s,r);const{x:a,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],o),d=i==="y"?{start:l,end:u}:{start:a,end:c},h=gi({x:e,y:n},this.getCenterPoint(o),bt(-s));return h[i]>=d.start-r-ii&&h[i]<=d.end+r+ii}getCenterPoint(e){return mi(this,e)}draw(e){const{width:n,height:i,centerX:o,centerY:s,options:r}=this;e.save(),yr(e,this.getCenterPoint(),r.rotation),Gi(e,this.options),e.beginPath(),e.fillStyle=r.backgroundColor;const a=Tn(e,r);e.ellipse(o,s,i/2,n/2,We/2,0,2*We),e.fill(),a&&(e.shadowColor=r.borderShadowColor,e.stroke()),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,n){return Tg(e,n)}}Ko.id="ellipseAnnotation";Ko.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},Ji.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Ko.defaultRoutes={borderColor:"color",backgroundColor:"color"};Ko.descriptors={label:{_fallback:!0}};function oC(t,e,n,i){const{width:o,height:s,centerX:r,centerY:a}=e,l=o/2,c=s/2;if(l<=0||c<=0)return!1;const u=bt(n||0),d=Math.cos(u),h=Math.sin(u),f=Math.pow(d*(t.x-r)+h*(t.y-a),2),m=Math.pow(h*(t.x-r)-d*(t.y-a),2);return f/Math.pow(l+i,2)+m/Math.pow(c+i,2)<=1.0001}class Sr extends Lt{inRange(e,n,i,o){const{x:s,y:r,x2:a,y2:l,width:c}=this.getProps(["x","y","x2","y2","width"],o),u=(this.options.borderWidth+this.options.hitTolerance)/2;return i!=="x"&&i!=="y"?Gw({x:e,y:n},this.getCenterPoint(o),c/2,u):ug(i==="y"?{start:r,end:l,value:n}:{start:s,end:a,value:e},u)}getCenterPoint(e){return mi(this,e)}draw(e){const n=this.options,i=n.borderWidth;if(n.radius<.1)return;e.save(),e.fillStyle=n.backgroundColor,Gi(e,n);const o=Tn(e,n);rk(e,this,this.centerX,this.centerY),o&&!br(n.pointStyle)&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore(),n.borderWidth=i}resolveElementProperties(e,n){const i=Pg(e,n);return i.initProperties=Qi(e,i,n),i}}Sr.id="pointAnnotation";Sr.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Sr.defaultRoutes={borderColor:"color",backgroundColor:"color"};class wr extends Lt{inRange(e,n,i,o){if(i!=="x"&&i!=="y")return this.options.radius>=.1&&this.elements.length>1&&rC(this.elements,e,n,o);const s=gi({x:e,y:n},this.getCenterPoint(o),bt(-this.options.rotation)),r=this.elements.map(c=>i==="y"?c.bY:c.bX),a=Math.min(...r),l=Math.max(...r);return s[i]>=a&&s[i]<=l}getCenterPoint(e){return mi(this,e)}draw(e){const{elements:n,options:i}=this;e.save(),e.beginPath(),e.fillStyle=i.backgroundColor,Gi(e,i);const o=Tn(e,i);let s=!0;for(const r of n)s?(e.moveTo(r.x,r.y),s=!1):e.lineTo(r.x,r.y);e.closePath(),e.fill(),o&&(e.shadowColor=i.borderShadowColor,e.stroke()),e.restore()}resolveElementProperties(e,n){const i=Pg(e,n),{sides:o,rotation:s}=n,r=[],a=2*We/o;let l=s*Wa;for(let c=0;cn!=s.bY>n&&e<(s.bX-a.bX)*(n-a.bY)/(s.bY-a.bY)+a.bX&&(o=!o),s=a}return o}const Hn={box:Ji,doughnutLabel:xr,ellipse:Ko,label:Zo,line:Xo,point:Sr,polygon:wr};Object.keys(Hn).forEach(t=>{at.describe(`elements.${Hn[t].id}`,{_fallback:"plugins.annotation.common"})});const aC={update:Object.assign},lC=Sl.concat(Gs),dd=(t,e)=>xe(e)?Da(t,e):t,Oa=t=>t==="color"||t==="font";function kl(t="line"){return Hn[t]?t:(console.warn(`Unknown annotation type: '${t}', defaulting to 'line'`),"line")}function cC(t,e,n,i){const o=dC(t,n.animations,i),s=e.annotations,r=gC(e.elements,s);for(let a=0;add(r,o)):n[i]=dd(s,o)}return n}function fC(t,e,n,i){return e.$context||(e.$context=Object.assign(Object.create(t.getContext()),{element:e,get elements(){return n.filter(o=>o&&o.options)},id:i.id,type:"annotation"}))}function gC(t,e){const n=e.length,i=t.length;if(in&&t.splice(n,i-n);return t}var mC="3.1.0";const An=new Map,hd=t=>t.type!=="doughnutLabel",vC=Sl.concat(Gs);var pC={id:"annotation",version:mC,beforeRegister(){Jw("chart.js","4.0",Nn.version)},afterRegister(){Nn.register(Hn)},afterUnregister(){Nn.unregister(Hn)},beforeInit(t){An.set(t,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(t,e,n){const i=An.get(t),o=i.annotations=[];let s=n.annotations;xe(s)?Object.keys(s).forEach(r=>{const a=s[r];xe(a)&&(a.id=r,o.push(a))}):Qe(s)&&o.push(...s),Ek(o.filter(hd),t.scales)},afterDataLimits(t,e){const n=An.get(t);Vk(t,e.scale,n.annotations.filter(hd).filter(i=>i.display&&i.adjustScaleRange))},afterUpdate(t,e,n){const i=An.get(t);Pk(t,i,n),cC(t,i,n,e.mode),i.visibleElements=i.elements.filter(o=>!o.skip&&o.options.display),Dk(t,i,n)},beforeDatasetsDraw(t,e,n){uo(t,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(t,e,n){uo(t,"afterDatasetsDraw",n.clip)},beforeDatasetDraw(t,e,n){uo(t,e.index,n.clip)},beforeDraw(t,e,n){uo(t,"beforeDraw",n.clip)},afterDraw(t,e,n){uo(t,"afterDraw",n.clip)},beforeEvent(t,e,n){const i=An.get(t);Tk(i,e.event,n)&&(e.changed=!0)},afterDestroy(t){An.delete(t)},getAnnotations(t){const e=An.get(t);return e?e.elements:[]},_getAnnotationElementsAtEventForMode(t,e,n){return bl(t,e,n)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"},colors:{properties:["backgroundColor","borderColor"],type:"color"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:t=>!vC.includes(t)&&t!=="init",annotations:{_allKeys:!1,_fallback:(t,e)=>`elements.${Hn[kl(e.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:Oa,_fallback:!0},_indexable:Oa}},additionalOptionScopes:[""]};function uo(t,e,n){const{ctx:i,chartArea:o}=t,s=An.get(t);n&&Bo(i,o);const r=bC(s.visibleElements,e).sort((a,l)=>a.element.options.z-l.element.options.z);for(const a of r)yC(i,o,s,a);n&&No(i)}function bC(t,e){const n=[];for(const i of t)if(i.options.drawTime===e&&n.push({element:i,main:!0}),i.elements&&i.elements.length)for(const o of i.elements)o.options.display&&o.options.drawTime===e&&n.push({element:o});return n}function yC(t,e,n,i){const o=i.element;i.main?(Gu(n,o,"beforeDraw"),o.draw(t,e),Gu(n,o,"afterDraw")):o.draw(t,e)}const _C=Se({__name:"ElectricityTariffChart",props:{modelValue:{type:Number,required:!1,default:void 0}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){e(),Nn.register(Th,Ei,Cn,Co,Hs,Ni,Mh,pC);const i=t,o=n,s=Be(),r=In(),a=fm("priceChart"),l=N({datasets:[{label:"Stromtarif",unit:"ct/kWh",type:"line",stepped:!0,borderColor:"rgb(18, 111, 142)",backgroundColor:"rgb(18, 111, 142)",fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:2,data:[],yAxisID:"y"}]}),c=g(()=>{let p=[];const v=s.etPrices;if(Object.keys(v).length>0){for(const[y,_]of Object.entries(v))p.push({x:parseInt(y)*1e3,y:_*1e5});const x=p.slice(-1)[0];p.push({x:x.x+(60*60-1)*1e3,y:x.y})}const b=l.value;return b.datasets[0].data=p,b}),u=g(()=>Object.keys(c.value.datasets[0].data).length>0),d=g(()=>{const p="rgba(73, 238, 73, 0.2)",v="rgba(255, 10, 13, 0.2)",b=c.value.datasets[0].data;let x=[];if(i.modelValue!==void 0){for(let y=0;yi.modelValue){let _={type:"box",drawTime:"beforeDatasetsDraw",xMin:b[y].x,xMax:0,borderWidth:1,cornerRadius:0,borderColor:v,backgroundColor:v};for(;yi.modelValue;)y++;y==b.length&&y--,_.xMax=b[y].x,x.push(_)}}return x}),h=g(()=>({plugins:{title:{display:!1},legend:{display:!1},annotation:{annotations:d.value}},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",color:r.dark.isActive?"rgb(255, 255, 255)":"rgb(0, 0, 0)"},ticks:{font:{size:12},color:r.dark.isActive?"rgb(255, 255, 255)":"rgb(0, 0, 0)"},grid:{color:r.dark.isActive?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.1)"}},y:{position:"left",type:"linear",display:"auto",title:{font:{size:12},display:!0,text:"Preis [ct/kWh]",color:r.dark.isActive?"rgb(255, 255, 255)":"rgb(0, 0, 0)"},grid:{color:r.dark.isActive?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.1)"},ticks:{font:{size:12},stepSize:.1,maxTicksLimit:11,color:r.dark.isActive?"rgb(255, 255, 255)":"rgb(0, 0, 0)"}}}}));function f(p){if(!a.value)return;const v=a.value.chart.getElementsAtEventForMode(p,"index",{intersect:!1},!0);if(v.length>0){const b=c.value.datasets[0].data[v[0].index];o("update:modelValue",Math.ceil(b.y*100)/100)}}const m={props:i,emit:o,mqttStore:s,$q:r,priceChart:a,chartDatasets:l,chartDataObject:c,chartDataRead:u,priceAnnotations:d,myChartOptions:h,chartClick:f,get ChartjsLine(){return Eh}};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}}),xC={class:"chartContainer"};function SC(t,e,n,i,o,s){return V(),K("div",xC,[i.chartDataRead?(V(),ne(i.ChartjsLine,{key:0,ref:"priceChart",data:i.chartDataObject,options:i.myChartOptions,class:"chart",onClick:i.chartClick},null,8,["data","options"])):ue("",!0)])}const wC=Me(_C,[["render",SC],["__scopeId","data-v-9992330e"],["__file","ElectricityTariffChart.vue"]]),kC=Se({__name:"ChargePointEcoSettings",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>{let b=[{value:"none",label:"keine",color:"primary"},{value:"soc",label:"EV-SoC",color:"primary"},{value:"amount",label:"Energiemenge",color:"primary"}];return s.value===void 0&&(b=b.filter(x=>x.value!=="soc")),b}),s=g(()=>i.chargePointConnectedVehicleSocType(n.chargePointId))?.value,r=[{value:1,label:"1"},{value:3,label:"Maximum"},{value:0,label:"Automatik"}],a=g(()=>i.chargePointConnectedVehicleEcoChargeCurrent(n.chargePointId)),l=g(()=>i.dcChargingEnabled),c=g(()=>i.chargePointConnectedVehicleEcoChargeDcPower(n.chargePointId)),u=g(()=>i.chargePointConnectedVehicleEcoChargePhases(n.chargePointId)),d=g(()=>i.chargePointConnectedVehicleEcoChargeLimit(n.chargePointId)),h=g(()=>i.chargePointConnectedVehicleEcoChargeLimitSoC(n.chargePointId)),f=g(()=>i.chargePointConnectedVehicleEcoChargeLimitEnergy(n.chargePointId)),m=g(()=>i.etProviderConfigured),p=g(()=>i.chargePointConnectedVehicleEcoChargeMaxPrice(n.chargePointId)),v={props:n,mqttStore:i,limitModes:o,vehicleSocType:s,phaseOptions:r,current:a,dcCharging:l,dcPower:c,numPhases:u,limitMode:d,limitSoC:h,limitEnergy:f,etConfigured:m,maxPrice:p,SliderStandard:pl,ElectricityTariffChart:wC};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}}),CC={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},MC={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},PC={key:3},TC={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},IC={class:"col-5 text-right"};function OC(t,e,n,i,o,s){return V(),K(Oe,null,[I(i.SliderStandard,{title:"Minimaler Dauerstrom unter der Preisgrenze",min:6,max:16,step:1,unit:"A",modelValue:i.current.value,"onUpdate:modelValue":e[0]||(e[0]=r=>i.current.value=r),class:"q-mt-md"},null,8,["modelValue"]),i.dcCharging?(V(),ne(i.SliderStandard,{key:0,title:"Minimaler Dauerleistung unter der Preisgrenze",min:4,max:300,step:1,unit:"kW",modelValue:i.dcPower.value,"onUpdate:modelValue":e[1]||(e[1]=r=>i.dcPower.value=r),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),e[8]||(e[8]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Anzahl Phasen",-1)),q("div",CC,[I(pn,{class:"col"},{default:L(()=>[(V(),K(Oe,null,Je(i.phaseOptions,r=>I(Ve,{key:r.value,color:i.numPhases.value===r.value?"primary":"grey",label:r.label,size:"sm",class:"col",onClick:a=>i.numPhases.value=r.value},null,8,["color","label","onClick"])),64))]),_:1})]),e[9]||(e[9]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Begrenzung",-1)),q("div",MC,[I(pn,{class:"col"},{default:L(()=>[(V(!0),K(Oe,null,Je(i.limitModes,r=>(V(),ne(Ve,{key:r.value,color:i.limitMode.value===r.value?"primary":"grey",label:r.label,size:"sm",class:"col",onClick:a=>i.limitMode.value=r.value},null,8,["color","label","onClick"]))),128))]),_:1})]),i.limitMode.value==="soc"?(V(),ne(i.SliderStandard,{key:1,title:"SoC-Limit für das Fahrzeug",min:5,max:100,step:5,unit:"%",modelValue:i.limitSoC.value,"onUpdate:modelValue":e[2]||(e[2]=r=>i.limitSoC.value=r),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),i.limitMode.value==="amount"?(V(),ne(i.SliderStandard,{key:2,title:"Energie-Limit",min:1,max:50,unit:"kWh",modelValue:i.limitEnergy.value,"onUpdate:modelValue":e[3]||(e[3]=r=>i.limitEnergy.value=r),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),i.etConfigured?(V(),K("div",PC,[e[7]||(e[7]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"}," Preisgrenze für strompreisbasiertes Laden ",-1)),q("div",TC,[i.maxPrice.value?(V(),ne(Ve,{key:0,icon:"remove",color:"grey",size:"sm",class:"col q-mr-sm",onClick:e[4]||(e[4]=r=>i.maxPrice.value=i.maxPrice.value-.01)})):ue("",!0),i.maxPrice.value?(V(),ne(Ve,{key:1,icon:"add",color:"grey",size:"sm",class:"col",onClick:e[5]||(e[5]=r=>i.maxPrice.value=i.maxPrice.value+.01)})):ue("",!0),q("div",IC,le(i.maxPrice.value?.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})+" ct/kWh"),1)]),I(Kf,{filled:"",class:"q-mt-sm"},{default:L(()=>[I(i.ElectricityTariffChart,{modelValue:i.maxPrice.value,"onUpdate:modelValue":e[6]||(e[6]=r=>i.maxPrice.value=r)},null,8,["modelValue"])]),_:1})])):ue("",!0)],64)}const DC=Me(kC,[["render",OC],["__file","ChargePointEcoSettings.vue"]]),VC=Se({__name:"ChargePointScheduledPlanButton",props:{chargePointId:{},plan:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=["Mo","Di","Mi","Do","Fr","Sa","So"],s=g(()=>i.vehicleScheduledChargingPlanActive(n.chargePointId,n.plan.id)),r=g(()=>i.vehicleScheduledChargingPlanEtActive(n.chargePointId,n.plan.id)),a=g(()=>{let u=[],d=null;return n.plan.frequency.weekly.forEach((h,f)=>{h?d===null&&(d=f):d!==null&&(d===f-1?u.push(o[d]):u.push(`${o[d]}-${o[f-1]}`),d=null)}),d!==null&&(d===n.plan.frequency.weekly.length-1?u.push(o[d]):u.push(`${o[d]}-${o[n.plan.frequency.weekly.length-1]}`)),u.join(", ")}),l=g(()=>n.plan.frequency.once===void 0?"-":new Date(n.plan.frequency.once).toLocaleDateString(void 0,{day:"2-digit",month:"2-digit",year:"numeric"})),c={props:n,mqttStore:i,weekdays:o,planActive:s,planEtActive:r,selectedWeekDays:a,formattedDate:l};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}}),EC={class:"column"},AC={class:"plan-name"},RC={class:"plan-details"},qC={key:0},LC={key:1},FC={key:2},zC={key:0},BC={key:1};function NC(t,e,n,i,o,s){return V(),ne(Ve,{"no-caps":"",align:"center",class:"cursor-pointer",color:i.planActive.value?"positive":"negative",onClick:e[0]||(e[0]=r=>i.planActive.value=!i.planActive.value)},{default:L(()=>[q("div",EC,[q("div",AC,le(n.plan.name),1),q("div",RC,[q("div",null,[I(_e,{name:n.plan.frequency.selected==="once"?"today":n.plan.frequency.selected==="daily"?"date_range":"calendar_month",size:"sm",title:n.plan.frequency.selected==="once"?"Einmalig":n.plan.frequency.selected==="daily"?"Täglich":"Wöchentlich"},null,8,["name","title"]),n.plan.frequency.selected==="once"?(V(),K("div",qC,le(i.formattedDate),1)):ue("",!0),n.plan.frequency.selected==="weekly"?(V(),K("div",LC,le(i.selectedWeekDays),1)):ue("",!0),n.plan.frequency.selected==="daily"?(V(),K("div",FC,"täglich")):ue("",!0)]),q("div",null,[I(_e,{name:"schedule",size:"sm"}),q("div",null,le(n.plan.time),1)]),q("div",null,[I(_e,{name:n.plan.limit.selected==="soc"?"battery_full":"bolt",size:"sm"},null,8,["name"]),n.plan.limit.selected==="soc"?(V(),K("div",zC,le(n.plan.limit.soc_scheduled)+"% ",1)):ue("",!0),n.plan.limit.selected==="amount"?(V(),K("div",BC,le(n.plan.limit.amount?n.plan.limit.amount/1e3:"")+"kWh ",1)):ue("",!0)]),q("div",null,[i.planEtActive.value?(V(),ne(_e,{key:0,name:"bar_chart",size:"sm"})):ue("",!0)])])])]),_:1},8,["color"])}const WC=Me(VC,[["render",NC],["__scopeId","data-v-ddb41880"],["__file","ChargePointScheduledPlanButton.vue"]]),HC=Se({__name:"ChargePointScheduledSettings",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>i.vehicleScheduledChargingPlans(n.chargePointId)),s={props:n,mqttStore:i,plans:o,ChargePointScheduledPlanButton:WC};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),jC={key:0,class:"row q-mt-sm q-pa-sm bg-primary text-white no-wrap message-text",color:"primary",style:{"border-radius":"10px"}},$C={key:1};function UC(t,e,n,i,o,s){return V(),K(Oe,null,[e[1]||(e[1]=q("div",{class:"row justify-between items-center"},[q("div",{class:"text-subtitle2 q-mr-sm q-mt-md"},"Termine Zielladen:")],-1)),i.plans.length===0?(V(),K("div",jC,[I(_e,{name:"info",size:"sm",class:"q-mr-xs"}),e[0]||(e[0]=qe(" Keine Ladeziele festgelegt. "))])):(V(),K("div",$C,[(V(!0),K(Oe,null,Je(i.plans,(r,a)=>(V(),K("div",{key:a,class:"row q-mt-sm"},[I(i.ChargePointScheduledPlanButton,{class:"full-width","charge-point-id":i.props.chargePointId,plan:r},null,8,["charge-point-id","plan"])]))),128))]))],64)}const YC=Me(HC,[["render",UC],["__scopeId","data-v-1b9699bd"],["__file","ChargePointScheduledSettings.vue"]]),ZC=Se({__name:"ChargePointTimeCharging",props:{chargePointId:{type:Number,required:!0},readonly:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},iconSize:{type:String,default:"sm"},toolTip:{type:Boolean,default:!1}},setup(t,{expose:e}){e();const n=t,i={off:"alarm_off",on:"alarm"},o=Be(),s=o.chargePointConnectedVehicleTimeCharging(n.chargePointId),r={props:n,icon:i,mqttStore:o,timeChargingEnabled:s};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}});function XC(t,e,n,i,o,s){return i.props.readonly?(V(),ne(_e,{key:0,name:i.timeChargingEnabled?i.icon.on:i.icon.off,color:i.timeChargingEnabled?"primary":"",size:i.props.iconSize?i.props.iconSize:"sm"},{default:L(()=>[i.props.toolTip?(V(),ne(ln,{key:0},{default:L(()=>[qe(le(i.timeChargingEnabled?"Zeitladen aktiviert":"Zeitladen deaktiviert"),1)]),_:1})):ue("",!0)]),_:1},8,["name","color","size"])):(V(),ne(vr,{key:1,modelValue:i.timeChargingEnabled,"onUpdate:modelValue":e[0]||(e[0]=r=>i.timeChargingEnabled=r),color:i.timeChargingEnabled?"primary":"","checked-icon":i.icon.on,"unchecked-icon":i.icon.off,size:"lg",dense:i.props.dense},null,8,["modelValue","color","checked-icon","unchecked-icon","dense"]))}const Cl=Me(ZC,[["render",XC],["__file","ChargePointTimeCharging.vue"]]),KC=Se({__name:"ChargePointTimeChargingPlanButton",props:{chargePointId:{},plan:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=["Mo","Di","Mi","Do","Fr","Sa","So"],s=g(()=>i.vehicleTimeChargingPlanActive(n.chargePointId,n.plan.id)),r=g(()=>{let c=[],u=null;return n.plan.frequency.weekly.forEach((d,h)=>{d?u===null&&(u=h):u!==null&&(u===h-1?c.push(o[u]):c.push(`${o[u]}-${o[h-1]}`),u=null)}),u!==null&&(u===n.plan.frequency.weekly.length-1?c.push(o[u]):c.push(`${o[u]}-${o[n.plan.frequency.weekly.length-1]}`)),c.join(", ")}),a=g(()=>{if(n.plan.frequency.once===void 0)return"-";const c=new Date(n.plan.frequency.once[0]),u=new Date(n.plan.frequency.once[1]),d=c.getFullYear()===u.getFullYear(),h=c.getMonth()===u.getMonth()&&d;return`${c.getDay()===u.getDay()&&h?"":c.toLocaleDateString(void 0,{day:"numeric",month:h?void 0:"numeric",year:d?void 0:"numeric"})+(h?".-":"-")}${u.toLocaleDateString(void 0,{day:"numeric",month:"numeric",year:"numeric"})}`}),l={props:n,mqttStore:i,weekdays:o,planActive:s,selectedWeekDays:r,formattedDateRange:a};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),QC={class:"column"},GC={class:"plan-name"},JC={class:"plan-details"},e1={key:0},t1={key:1},n1={key:2},i1={key:0},o1={key:0},s1={key:1};function r1(t,e,n,i,o,s){return V(),ne(Ve,{"no-caps":"",align:"center",class:"cursor-pointer",color:i.planActive.value?"positive":"negative",onClick:e[0]||(e[0]=r=>i.planActive.value=!i.planActive.value)},{default:L(()=>[q("div",QC,[q("div",GC,le(n.plan.name),1),q("div",JC,[q("div",null,[I(_e,{name:n.plan.frequency.selected==="once"?"today":n.plan.frequency.selected==="daily"?"date_range":"calendar_month",size:"sm",title:n.plan.frequency.selected==="once"?"Einmalig":n.plan.frequency.selected==="daily"?"Täglich":"Wöchentlich"},null,8,["name","title"]),n.plan.frequency.selected==="once"?(V(),K("div",e1,le(i.formattedDateRange),1)):ue("",!0),n.plan.frequency.selected==="weekly"?(V(),K("div",t1,le(i.selectedWeekDays),1)):ue("",!0),n.plan.frequency.selected==="daily"?(V(),K("div",n1,"täglich")):ue("",!0)]),q("div",null,[I(_e,{name:"schedule",size:"sm"}),q("div",null,le(n.plan.time[0])+"-"+le(n.plan.time[1]),1)]),n.plan.limit.selected!=="none"?(V(),K("div",i1,[I(_e,{name:n.plan.limit.selected==="soc"?"battery_full":"bolt",size:"sm"},null,8,["name"]),n.plan.limit.selected==="soc"?(V(),K("div",o1,le(n.plan.limit.soc)+"%",1)):ue("",!0),n.plan.limit.selected==="amount"?(V(),K("div",s1,le(n.plan.limit.amount?n.plan.limit.amount/1e3:"")+"kWh ",1)):ue("",!0)])):ue("",!0)])])]),_:1},8,["color"])}const a1=Me(KC,[["render",r1],["__scopeId","data-v-e575064c"],["__file","ChargePointTimeChargingPlanButton.vue"]]),l1=Se({__name:"ChargePointTimeChargingPlans",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>i.vehicleTimeChargingPlans(n.chargePointId)),s=i.chargePointConnectedVehicleTimeCharging(n.chargePointId),r={props:n,mqttStore:i,plans:o,timeChargingEnabled:s,ChargePointTimeCharging:Cl,ChargePointTimeChargingPlanButton:a1};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),c1={class:"row items-center q-ma-none q-pa-none no-wrap items-center justify-between"},u1={key:0,class:"row justify-between items-center"},d1={key:1,class:"row q-mt-sm q-pa-sm bg-primary text-white no-wrap message-text",color:"primary",style:{"border-radius":"10px"}},h1={key:2};function f1(t,e,n,i,o,s){return V(),K(Oe,null,[q("div",c1,[e[0]||(e[0]=q("div",{class:"text-subtitle2"},"Zeitladen",-1)),q("div",null,[I(i.ChargePointTimeCharging,{"charge-point-id":i.props.chargePointId,dense:""},null,8,["charge-point-id"])])]),i.timeChargingEnabled?(V(),K("div",u1,e[1]||(e[1]=[q("div",{class:"text-subtitle2"},"Termine Zeitladen:",-1)]))):ue("",!0),i.plans.length===0&&i.timeChargingEnabled?(V(),K("div",d1,[I(_e,{name:"info",size:"sm",class:"q-mr-xs"}),e[2]||(e[2]=qe(" Keine Zeitpläne vorhanden. "))])):i.timeChargingEnabled?(V(),K("div",h1,[(V(!0),K(Oe,null,Je(i.plans,(r,a)=>(V(),K("div",{key:a,class:"row q-mt-sm"},[I(i.ChargePointTimeChargingPlanButton,{class:"full-width","charge-point-id":i.props.chargePointId,plan:r},null,8,["charge-point-id","plan"])]))),128))])):ue("",!0)],64)}const g1=Me(l1,[["render",f1],["__scopeId","data-v-ac637b4a"],["__file","ChargePointTimeChargingPlans.vue"]]),m1=Se({__name:"ChargePointSettings",props:{chargePointId:{},modelValue:{type:Boolean}},emits:["update:model-value"],setup(t,{expose:e,emit:n}){e();const i=In(),o=Be(),s=t,r=n,a=N(s.modelValue);ge(()=>s.modelValue,h=>{a.value=h});const l=g({get:()=>a.value,set:h=>{a.value=h,r("update:model-value",h)}}),c=g(()=>o.chargePointName(s.chargePointId)),u=g(()=>o.chargePointConnectedVehicleChargeMode(s.chargePointId)),d={$q:i,mqttStore:o,props:s,emit:r,tempValue:a,visible:l,name:c,chargeMode:u,get QDialog(){return Xi},ChargePointInstantSettings:Rw,ChargePointPvSettings:Uw,ChargePointEcoSettings:DC,ChargePointScheduledSettings:YC,ChargePointPriority:sg,ChargePointLock:og,ChargePointModeButtons:ag,ChargePointVehicleSelect:lg,ChargePointTimeChargingPlans:g1};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),v1={class:"row"},p1={class:"text-h6"},b1={class:"row items-center justify-between"},y1={class:"row items-center q-mt-sm"},_1={class:"row items-center justify-between q-mt-sm"},x1={class:"row items-center no-wrap"},S1={key:0},w1={key:1},k1={key:2},C1={key:3},M1={key:4};function P1(t,e,n,i,o,s){return V(),ne(i.QDialog,{modelValue:i.visible,"onUpdate:modelValue":e[0]||(e[0]=r=>i.visible=r),maximized:i.$q.platform.is.mobile,"backdrop-filter":i.$q.screen.width<385?"":"blur(4px)"},{default:L(()=>[I(Ki,null,{default:L(()=>[I(jn,null,{default:L(()=>[q("div",v1,[q("div",p1,"Einstellungen "+le(i.name),1),I(cg)])]),_:1}),I(jn,{class:"q-py-none"},{default:L(()=>[q("div",b1,[e[1]||(e[1]=q("div",{class:"text-subtitle2"},"Ladepunkt sperren",-1)),I(i.ChargePointLock,{"charge-point-id":i.props.chargePointId,dense:""},null,8,["charge-point-id"])]),I(_o,{class:"q-mt-sm"}),q("div",y1,[e[2]||(e[2]=q("div",null,[q("div",{class:"text-subtitle2 q-mr-sm"},"Fahrzeug")],-1)),I(i.ChargePointVehicleSelect,{"charge-point-id":i.props.chargePointId,readonly:!1},null,8,["charge-point-id"])]),q("div",_1,[e[3]||(e[3]=q("div",{class:"text-subtitle2"},"Priorität",-1)),I(i.ChargePointPriority,{"charge-point-id":i.props.chargePointId,readonly:!1,dense:""},null,8,["charge-point-id"])]),I(_o,{class:"q-mt-sm"}),q("div",x1,[I(i.ChargePointModeButtons,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])]),i.chargeMode.value==="instant_charging"?(V(),K("div",S1,[I(i.ChargePointInstantSettings,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])])):ue("",!0),i.chargeMode.value==="pv_charging"?(V(),K("div",w1,[I(i.ChargePointPvSettings,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])])):ue("",!0),i.chargeMode.value==="eco_charging"?(V(),K("div",k1,[I(i.ChargePointEcoSettings,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])])):ue("",!0),i.chargeMode.value==="scheduled_charging"?(V(),K("div",C1,[I(i.ChargePointScheduledSettings,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])])):ue("",!0),i.chargeMode.value!=="stop"?(V(),K("div",M1,[I(_o,{class:"q-my-sm"}),I(i.ChargePointTimeChargingPlans,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])])):ue("",!0)]),_:1}),I(vl,{align:"right"},{default:L(()=>[an(I(Ve,{flat:"",label:"OK",color:"primary"},null,512),[[Mn]])]),_:1})]),_:1})]),_:1},8,["modelValue","maximized","backdrop-filter"])}const T1=Me(m1,[["render",P1],["__file","ChargePointSettings.vue"]]),I1=Se({__name:"ManualSocDialog",props:{vehicleId:{},chargePointId:{},socDialogVisible:{type:Boolean}},emits:["update:socDialogVisible"],setup(t,{expose:e,emit:n}){e();const i=Be(),o=t,s=n,r=g(()=>i.vehicleList.find(p=>p.id===o.vehicleId)?.name||""),a=g({get:()=>o.socDialogVisible,set:m=>{s("update:socDialogVisible",m)}}),l=N(void 0),c=g({get:()=>l.value??i.vehicleSocManualValue(o.vehicleId,o.chargePointId).value??0,set:m=>{l.value=Math.min(Math.max(0,m),100)}}),f={mqttStore:i,props:o,emit:s,vehicleName:r,visible:a,socValue:l,socInputValue:c,socSliderMarker:{0:"0%",50:"50%",100:"100%"},confirmChanges:()=>{i.vehicleSocManualValue(o.vehicleId,o.chargePointId).value=c.value},cancelChanges:()=>{l.value=void 0}};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),O1={class:"row"},D1={class:"text-h6 q-mr-md"},V1={class:"row justify-center items-center"},E1={class:"col-6"},A1={class:"row justify-center items-center q-mt-md"},R1={class:"col q-px-md"};function q1(t,e,n,i,o,s){return V(),ne(Xi,{modelValue:i.visible,"onUpdate:modelValue":e[4]||(e[4]=r=>i.visible=r)},{default:L(()=>[I(Ki,null,{default:L(()=>[I(jn,null,{default:L(()=>[q("div",O1,[q("div",D1,"SoC-Eingabe "+le(i.vehicleName),1),I(cg),an(I(Ve,{icon:"close",flat:"",round:"",dense:""},null,512),[[Mn]])])]),_:1}),I(jn,{class:"q-py-none"},{default:L(()=>[q("div",V1,[q("div",E1,[I(jf,{modelValue:i.socInputValue,"onUpdate:modelValue":e[2]||(e[2]=r=>i.socInputValue=r),modelModifiers:{number:!0},type:"text",inputmode:"numeric",suffix:"%","hide-spinner":"","input-class":"text-right"},{prepend:L(()=>[I(Ve,{round:"",flat:"",dense:"",icon:"remove",onClick:e[0]||(e[0]=r=>i.socInputValue--)})]),append:L(()=>[I(Ve,{round:"",flat:"",dense:"",icon:"add",onClick:e[1]||(e[1]=r=>i.socInputValue++)})]),_:1},8,["modelValue"])])]),q("div",A1,[q("div",R1,[I(Qs,{modelValue:i.socInputValue,"onUpdate:modelValue":e[3]||(e[3]=r=>i.socInputValue=r),modelModifiers:{number:!0},min:0,max:100,step:1,markers:10,"marker-labels":i.socSliderMarker,color:"primary"},null,8,["modelValue"])])])]),_:1}),I(vl,{align:"center",class:"q-mt-md"},{default:L(()=>[an(I(Ve,{label:"Abbrechen",color:"negative",onClick:i.cancelChanges},null,512),[[Mn]]),an(I(Ve,{label:"Bestätigen",color:"primary",onClick:i.confirmChanges},null,512),[[Mn]])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ag=Me(I1,[["render",q1],["__file","ManualSocDialog.vue"]]),L1=["top","middle","bottom"],F1=ze({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:t=>L1.includes(t)}},setup(t,{slots:e}){const n=g(()=>t.align!==void 0?{verticalAlign:t.align}:null),i=g(()=>{const o=t.outline===!0&&t.color||t.textColor;return`q-badge flex inline items-center no-wrap q-badge--${t.multiLine===!0?"multi":"single"}-line`+(t.outline===!0?" q-badge--outline":t.color!==void 0?` bg-${t.color}`:"")+(o!==void 0?` text-${o}`:"")+(t.floating===!0?" q-badge--floating":"")+(t.rounded===!0?" q-badge--rounded":"")+(t.transparent===!0?" q-badge--transparent":"")});return()=>w("div",{class:i.value,style:n.value,role:"status","aria-label":t.label},di(e.default,t.label!==void 0?[t.label]:[]))}}),z1=Se({__name:"ChargePointPowerData",props:{power:{},phaseNumber:{},current:{},columnDisplayFormat:{type:Boolean}},setup(t,{expose:e}){e();const n={};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}});function B1(t,e,n,i,o,s){return V(),K("div",{class:Tt(["cp-power items-center q-gutter-xs",n.columnDisplayFormat?"column":"row inline"])},[q("span",null,le(n.power),1),I(F1,{rounded:"",color:"primary",label:n.phaseNumber},{default:L(()=>[I(ln,null,{default:L(()=>e[0]||(e[0]=[qe("Phasenanzahl")])),_:1})]),_:1},8,["label"]),q("span",null,le(n.current),1)],2)}const Rg=Me(z1,[["render",B1],["__scopeId","data-v-680da291"],["__file","ChargePointPowerData.vue"]]),N1=Se({__name:"ChargePointCard",props:{chargePointId:{}},emits:["card-width"],setup(t,{expose:e,emit:n}){e();const i=N(null),o=n,s=Be(),r=In(),a=t,l=g(()=>s.chargePointConnectedVehicleInfo(a.chargePointId).value?.id),c=g(()=>{switch(x.value){case"instant_charging":return s.chargePointConnectedVehicleInstantChargeLimit(a.chargePointId).value;case"pv_charging":return s.chargePointConnectedVehiclePvChargeLimit(a.chargePointId).value;case"eco_charging":return s.chargePointConnectedVehicleEcoChargeLimit(a.chargePointId).value;case"scheduled_charging":return C.value.limit_mode;default:return"soc"}}),u=N(!1),d=N(!1),h=g(()=>s.chargePointName(a.chargePointId)),f=g(()=>s.chargePointPower(a.chargePointId)),m=g(()=>s.chargePointEnergyChargedPlugged(a.chargePointId)),p=g(()=>s.chargePointPhaseNumber(a.chargePointId)),v=g(()=>s.chargePointChargingCurrent(a.chargePointId)),b=g(()=>c.value==="amount"?s.chargePointEnergyChargedPlugged(a.chargePointId,"value"):Math.round(s.chargePointConnectedVehicleSoc(a.chargePointId).value?.soc??0)),x=g(()=>s.chargePointConnectedVehicleChargeMode(a.chargePointId).value),y=g(()=>{switch(x.value){case"scheduled_charging":return C.value.limit;case"instant_charging":switch(s.chargePointConnectedVehicleInstantChargeLimit(a.chargePointId).value){case"soc":return s.chargePointConnectedVehicleInstantChargeLimitSoC(a.chargePointId).value??0;case"amount":return(s.chargePointConnectedVehicleInstantChargeLimitEnergy(a.chargePointId).value??0)*1e3}case"pv_charging":switch(s.chargePointConnectedVehiclePvChargeLimit(a.chargePointId).value){case"soc":return s.chargePointConnectedVehiclePvChargeLimitSoC(a.chargePointId).value??0;case"amount":return(s.chargePointConnectedVehiclePvChargeLimitEnergy(a.chargePointId).value??0)*1e3}case"eco_charging":switch(s.chargePointConnectedVehicleEcoChargeLimit(a.chargePointId).value){case"soc":return s.chargePointConnectedVehicleEcoChargeLimitSoC(a.chargePointId).value??0;case"amount":return(s.chargePointConnectedVehicleEcoChargeLimitEnergy(a.chargePointId).value??0)*1e3}default:return}}),_=g(()=>!!(y.value&&y.value>999||S.value!==void 0)),C=g(()=>s.vehicleChargeTarget(a.chargePointId).value),S=g(()=>s.chargePointConnectedVehicleSocType(a.chargePointId))?.value,E=()=>{s.chargePointConnectedVehicleForceSocUpdate(a.chargePointId),r.notify({type:"positive",message:"SoC Update angefordert."})};Wt(()=>{const D=i.value?.$el.offsetWidth;o("card-width",D)});const A={cardRef:i,emit:o,mqttStore:s,$q:r,props:a,vehicleId:l,limitMode:c,settingsVisible:u,socInputVisible:d,name:h,power:f,energyChargedPlugged:m,phaseNumber:p,chargingCurrent:v,currentValue:b,chargeMode:x,target:y,showSocTargetSlider:_,vehicleTarget:C,vehicleSocType:S,refreshSoc:E,SliderDouble:gl,ChargePointLock:og,ChargePointStateIcon:ml,ChargePointPriority:sg,ChargePointModeButtons:ag,ChargePointStateMessage:_w,ChargePointFaultMessage:ww,ChargePointVehicleSelect:lg,ChargePointSettings:T1,ManualSocDialog:Ag,ChargePointTimeCharging:Cl,ChargePointPowerData:Rg};return Object.defineProperty(A,"__isScriptSetup",{enumerable:!1,value:!0}),A}}),W1={class:"row items-center text-h6 text-bold"},H1={class:"col flex items-center"},j1={class:"row items-center q-mt-sm"},$1={class:"row q-mt-sm"},U1={class:"col"},Y1={class:"col no-wrap"},Z1={class:"col text-right"};function X1(t,e,n,i,o,s){return V(),K(Oe,null,[I(Ki,{ref:"cardRef",class:"full-height card-width"},{default:L(()=>[I(jn,null,{default:L(()=>[q("div",W1,[q("div",H1,[qe(le(i.name)+" ",1),I(i.ChargePointLock,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"]),I(i.ChargePointStateIcon,{"charge-point-id":Number(i.props.chargePointId)},null,8,["charge-point-id"]),I(i.ChargePointTimeCharging,{"charge-point-id":Number(i.props.chargePointId),readonly:!0,iconSize:"xs",toolTip:!0},null,8,["charge-point-id"])]),I(_e,{class:"cursor-pointer",name:"settings",size:"sm",onClick:e[0]||(e[0]=r=>i.settingsVisible=!0)})]),I(i.ChargePointFaultMessage,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"]),I(i.ChargePointStateMessage,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"]),q("div",j1,[I(i.ChargePointVehicleSelect,{"charge-point-id":Number(i.props.chargePointId)},null,8,["charge-point-id"]),I(i.ChargePointPriority,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])]),I(i.ChargePointModeButtons,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"]),q("div",$1,[q("div",U1,[e[4]||(e[4]=q("div",{class:"text-subtitle2"},"Leistung",-1)),q("div",Y1,[I(i.ChargePointPowerData,{power:i.power,"phase-number":i.phaseNumber,current:i.chargingCurrent},null,8,["power","phase-number","current"])])]),q("div",Z1,[e[5]||(e[5]=q("div",{class:"text-subtitle2"},"geladen",-1)),qe(" "+le(i.energyChargedPlugged),1)])]),i.showSocTargetSlider?(V(),ne(i.SliderDouble,{key:0,class:"q-mt-sm","model-value":i.target,readonly:!0,"charge-mode":i.chargeMode,"limit-mode":i.limitMode,"current-value":i.currentValue,"target-time":i.vehicleTarget.time},{"update-soc-icon":L(()=>[i.vehicleSocType==="manual"&&i.limitMode!=="amount"?(V(),ne(_e,{key:0,name:"edit",size:"xs",class:"q-ml-xs cursor-pointer",onClick:e[1]||(e[1]=r=>i.socInputVisible=!0)},{default:L(()=>[I(ln,null,{default:L(()=>e[6]||(e[6]=[qe("SoC eingeben")])),_:1})]),_:1})):i.vehicleSocType!==void 0&&i.limitMode!=="amount"?(V(),ne(_e,{key:1,name:"refresh",size:"xs",class:"q-ml-xs cursor-pointer",onClick:i.refreshSoc},{default:L(()=>[I(ln,null,{default:L(()=>e[7]||(e[7]=[qe("SoC aktualisieren")])),_:1})]),_:1})):ue("",!0)]),_:1},8,["model-value","charge-mode","limit-mode","current-value","target-time"])):ue("",!0),oi(t.$slots,"card-footer",{},void 0,!0)]),_:3})]),_:3},512),I(i.ChargePointSettings,{chargePointId:i.props.chargePointId,modelValue:i.settingsVisible,"onUpdate:modelValue":e[2]||(e[2]=r=>i.settingsVisible=r)},null,8,["chargePointId","modelValue"]),I(i.ManualSocDialog,{vehicleId:i.vehicleId,chargePointId:i.props.chargePointId,socDialogVisible:i.socInputVisible,"onUpdate:socDialogVisible":e[3]||(e[3]=r=>i.socInputVisible=r)},null,8,["vehicleId","chargePointId","socDialogVisible"])],64)}const K1=Me(N1,[["render",X1],["__scopeId","data-v-a6cbcd9b"],["__file","ChargePointCard.vue"]]),Q1=Se({__name:"ChargePointMode",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),{chargeModes:o}=cl(),s=g(()=>i.chargePointConnectedVehicleChargeMode(n.chargePointId)),r=g(()=>o.find(c=>c.value===s.value.value)?.label),a=g(()=>o.find(c=>c.value===s.value.value)?.color),l={props:n,mqttStore:i,chargeModes:o,chargeMode:s,currentModeLabel:r,currentModeColor:a};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}});function G1(t,e,n,i,o,s){return V(),ne(Ks,{outline:"",size:"sm",color:i.currentModeColor},{default:L(()=>[qe(le(i.currentModeLabel),1)]),_:1},8,["color"])}const J1=Me(Q1,[["render",G1],["__file","ChargePointMode.vue"]]),eM=Se({__name:"ChargePointInformation",setup(t,{expose:e}){e();const n=N(void 0),i=Be(),{chargeModes:o}=cl(),s=g(()=>i.chargePointIds),r=g(()=>i.themeConfiguration?.chargePoint_card_view_breakpoint||4),a=g(()=>i.themeConfiguration?.chargePoint_table_search_input_field),l=g(()=>qa.is.mobile),c=N(null),u=N(!1),d=N(""),h=g(()=>y=>{const _=i.chargePointName(y),C=i.chargePointConnectedVehicleInfo(y).value?.name||"Kein Fahrzeug",S=i.chargePointPlugState(y),E=i.chargePointConnectedVehicleChargeMode(y).value,A=o.find(Y=>Y.value===E),D=A?A.label:E,P=i.chargePointConnectedVehicleSoc(y).value?.soc,R=P!==void 0?`${Math.round(P)}%`:"0%",M=i.chargePointPower(y),H=i.chargePointEnergyChargedPlugged(y),z=i.chargePointConnectedVehicleTimeCharging(y).value,U=i.chargePointPhaseNumber(y),j=i.chargePointChargingCurrent(y);return{id:y,name:_,vehicle:C,plugged:S,chargeMode:D,timeCharging:z,soc:R,power:M,phaseNumber:U,current:j,powerColumn:"",charged:H}}),f=[{field:"name",label:"Ladepunkt"},{field:"vehicle",label:"Fahrzeug"},{field:"plugged",label:"Status",align:"center"},{field:"chargeMode",label:"Lademodus"},{field:"timeCharging",label:"Zeitladen",align:"center"},{field:"powerColumn",label:"Leistung",align:"right"},{field:"charged",label:"Geladen",align:"right"},{field:"soc",label:"Ladestand",align:"right"}],m=[{field:"nameAndVehicle",label:"Ladepunkt"},{field:"modePluggedTimeCharging",label:"Lademodus",align:"center"},{field:"powerColumn",label:"Leistung",align:"center"},{field:"charged",label:"Geladen",align:"right",expandField:!0},{field:"soc",label:"Ladestand",align:"right",expandField:!0}],p=m.filter(y=>!y.expandField),v=m.filter(y=>y.expandField),x={cardWidth:n,mqttStore:i,chargeModes:o,chargePointIds:s,cardViewBreakpoint:r,searchInputVisible:a,isMobile:l,selectedChargePointId:c,modalChargePointCardVisible:u,filter:d,tableRowData:h,columnConfigDesktop:f,columnConfigMobile:m,tableColumnsMobile:p,expansionColumnsMobile:v,onRowClick:y=>{c.value=y.id,u.value=!0},BaseCarousel:ul,BaseTable:ng,ChargePointCard:K1,ChargePointStateIcon:ml,ChargePointMode:J1,ChargePointTimeCharging:Cl,ChargePointPowerData:Rg};return Object.defineProperty(x,"__isScriptSetup",{enumerable:!1,value:!0}),x}}),tM={class:"text-caption"},nM={class:"items-center"},iM={class:"q-pa-xs column q-gutter-y-xs"},oM={class:"col-5 text-caption text-bold"},sM={class:"col-7 text-right"},rM={class:"dialog-content"},aM={class:"card-footer"};function lM(t,e,n,i,o,s){return V(),K(Oe,null,[i.chargePointIds.length<=i.cardViewBreakpoint?(V(),ne(i.BaseCarousel,{key:0,items:i.chargePointIds,"card-width":i.cardWidth},{item:L(({item:r})=>[I(i.ChargePointCard,{"charge-point-id":r,onCardWidth:e[0]||(e[0]=a=>i.cardWidth=a)},null,8,["charge-point-id"])]),_:1},8,["items","card-width"])):(V(),ne(i.BaseTable,{key:1,items:i.chargePointIds,"row-data":i.tableRowData,"column-config":i.isMobile?i.tableColumnsMobile:i.columnConfigDesktop,"search-input-visible":i.searchInputVisible,"table-height":i.isMobile?"35vh":"45vh",filter:i.filter,"onUpdate:filter":e[1]||(e[1]=r=>i.filter=r),"columns-to-search":["vehicle","name"],"row-expandable":i.isMobile,onRowClick:i.onRowClick},{"body-cell-plugged":L(r=>[I(vn,{class:Tt(`text-${r.col.align}`)},{default:L(()=>[I(i.ChargePointStateIcon,{"charge-point-id":r.row.id},null,8,["charge-point-id"])]),_:2},1032,["class"])]),"body-cell-chargeMode":L(r=>[I(vn,{class:Tt(`text-${r.col.align}`)},{default:L(()=>[I(i.ChargePointMode,{"charge-point-id":r.row.id},null,8,["charge-point-id"])]),_:2},1032,["class"])]),"body-cell-timeCharging":L(r=>[I(vn,{class:Tt(`text-${r.col.align}`)},{default:L(()=>[I(i.ChargePointTimeCharging,{"charge-point-id":r.row.id,readonly:!0,toolTip:!0,"icon-size":"xs"},null,8,["charge-point-id"])]),_:2},1032,["class"])]),"body-cell-powerColumn":L(r=>[I(vn,{class:Tt(`text-${r.col.align}`)},{default:L(()=>[I(i.ChargePointPowerData,{power:r.row.power,"phase-number":r.row.phaseNumber,current:r.row.current,"column-display-format":i.isMobile},null,8,["power","phase-number","current","column-display-format"])]),_:2},1032,["class"])]),"body-cell-nameAndVehicle":L(r=>[I(vn,{class:Tt(`text-${r.col.align}`)},{default:L(()=>[qe(le(r.row.name),1),e[3]||(e[3]=q("br",null,null,-1)),q("span",tM,le(r.row.vehicle),1)]),_:2},1032,["class"])]),"body-cell-modePluggedTimeCharging":L(r=>[I(vn,{class:Tt(`text-${r.col.align}`)},{default:L(()=>[q("div",nM,[I(i.ChargePointMode,{"charge-point-id":r.row.id},null,8,["charge-point-id"]),I(i.ChargePointStateIcon,{"charge-point-id":r.row.id},null,8,["charge-point-id"]),I(i.ChargePointTimeCharging,{"charge-point-id":r.row.id,readonly:!0,toolTip:!0,"icon-size":"xs"},null,8,["charge-point-id"])])]),_:2},1032,["class"])]),"row-expand":L(r=>[q("div",iM,[(V(!0),K(Oe,null,Je(i.expansionColumnsMobile,a=>(V(),K("div",{key:a.field,class:"row items-start"},[q("div",oM,le(a.label)+":",1),q("div",sM,le(r.row[a.field]),1)]))),128))])]),_:1},8,["items","row-data","column-config","search-input-visible","table-height","filter","row-expandable"])),I(Xi,{modelValue:i.modalChargePointCardVisible,"onUpdate:modelValue":e[2]||(e[2]=r=>i.modalChargePointCardVisible=r),"transition-show":"fade","transition-hide":"fade","backdrop-filter":t.$q.screen.width<385?"":"blur(4px)"},{default:L(()=>[q("div",rM,[i.selectedChargePointId!==null?(V(),ne(i.ChargePointCard,{key:0,"charge-point-id":i.selectedChargePointId},{"card-footer":L(()=>[q("div",aM,[an((V(),ne(Ve,{color:"primary",flat:"","no-caps":"",class:"close-button",size:"md"},{default:L(()=>e[4]||(e[4]=[qe("Schließen")])),_:1})),[[Mn]])])]),_:1},8,["charge-point-id"])):ue("",!0)])]),_:1},8,["modelValue","backdrop-filter"])],64)}const cM=Me(eM,[["render",lM],["__scopeId","data-v-5ec2c8a3"],["__file","ChargePointInformation.vue"]]),qg=()=>({batteryModes:[{value:"ev_mode",label:"Fahrzeuge",color:"primary",icon:"directions_car",tooltip:"Fahrzeuge"},{value:"bat_mode",label:"Speicher",color:"primary",icon:"battery_charging_full",tooltip:"Speicher"},{value:"min_soc_bat_mode",label:"Mindest-SoC",color:"primary",icon:"battery_4_bar",tooltip:"Mindest-SoC des Speichers"}]}),uM=Se({__name:"BatteryModeButtons",setup(t,{expose:e}){e();const n=Be(),{batteryModes:i}=qg(),o=g(()=>n.batteryMode()),s={mqttStore:n,batteryModes:i,batMode:o};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}});function dM(t,e,n,i,o,s){return V(),ne(pn,{class:"q-mt-md"},{default:L(()=>[(V(!0),K(Oe,null,Je(i.batteryModes,r=>(V(),ne(Ve,{key:r.value,color:i.batMode.value===r.value?"primary":"grey",label:r.label,icon:r.icon,size:"sm",onClick:a=>i.batMode.value=r.value},{default:L(()=>[I(ln,{class:"bg-primary"},{default:L(()=>[qe(le(r.tooltip),1)]),_:2},1024)]),_:2},1032,["color","label","icon","onClick"]))),128))]),_:1})}const hM=Me(uM,[["render",dM],["__file","BatteryModeButtons.vue"]]),fM=Se({__name:"BatterySettingsDialog",props:{batteryId:{}},setup(t,{expose:e}){const n=In(),i=N(!1),o=t,s=Be(),r=g(()=>o.batteryId===void 0?"Übergreifende Einstellungen":`Einstellungen ${s.batteryName(o.batteryId)}`);e({open:()=>i.value=!0});const a={$q:n,isOpen:i,props:o,mqttStore:s,cardTitle:r,BatteryModeButtons:hM};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),gM={class:"text-h6"};function mM(t,e,n,i,o,s){return V(),ne(Xi,{modelValue:i.isOpen,"onUpdate:modelValue":e[0]||(e[0]=r=>i.isOpen=r),maximized:i.$q.screen.width<385,"backdrop-filter":i.$q.screen.width<385?"":"blur(4px)"},{default:L(()=>[I(Ki,{style:{"min-width":"24em"}},{default:L(()=>[I(jn,null,{default:L(()=>[q("div",gM,le(i.cardTitle),1),e[1]||(e[1]=q("div",{class:"text-subtitle2 q-mt-sm"},"Laden mit Überschuss Modus:",-1)),I(i.BatteryModeButtons)]),_:1}),I(vl,{align:"right"},{default:L(()=>[an(I(Ve,{flat:"",label:"OK",color:"primary"},null,512),[[Mn]])]),_:1})]),_:1})]),_:1},8,["modelValue","maximized","backdrop-filter"])}const vM=Me(fM,[["render",mM],["__file","BatterySettingsDialog.vue"]]),pM=Se({__name:"BatteryCard",props:{batteryId:{}},emits:["card-width"],setup(t,{expose:e,emit:n}){e();const i=N(null),o=n,s=t,r=g(()=>d.batteryIds.length===1),a=g(()=>s.batteryId===void 0||r.value),{batteryModes:l}=qg(),c=g(()=>{const x=d.batteryMode();return l.find(y=>y.value===x.value)||l[0]}),u=N(),d=Be(),h=g(()=>s.batteryId===void 0?"Speicher Übersicht":d.batteryName(s.batteryId)),f=g(()=>s.batteryId===void 0?d.batterySocTotal:d.batterySoc(s.batteryId)),m=g(()=>s.batteryId===void 0?d.batteryTotalPower("textValue"):d.batteryPower(s.batteryId,"textValue")),p=g(()=>s.batteryId===void 0?d.batteryDailyImportedTotal("textValue"):d.batteryDailyImported(s.batteryId,"textValue")||"---"),v=g(()=>s.batteryId===void 0?d.batteryDailyExportedTotal("textValue"):d.batteryDailyExported(s.batteryId,"textValue")||"---");Wt(()=>{const x=i.value?.$el.clientWidth;o("card-width",x)});const b={cardRef:i,emit:o,props:s,singleBattery:r,showSettings:a,batteryModes:l,batteryMode:c,dialog:u,mqttStore:d,cardTitle:h,soc:f,power:m,dailyImportedEnergy:p,dailyExportedEnergy:v,BatterySettingsDialog:vM,SliderDouble:gl};return Object.defineProperty(b,"__isScriptSetup",{enumerable:!1,value:!0}),b}}),bM={class:"row text-h6 items-center text-bold justify-between"},yM={class:"row q-mt-sm text-subtitle2 justify-between full-width"},_M={class:"q-ml-sm"},xM={key:0,class:"row q-mt-md justify-between text-subtitle2"},SM={class:"q-ml-sm row items-center"},wM={class:"row q-mt-sm text-subtitle2 justify-between full-width"},kM={class:"q-ml-sm"},CM={class:"row q-mt-sm text-subtitle2 justify-between full-width"},MM={class:"q-ml-sm"};function PM(t,e,n,i,o,s){return V(),K(Oe,null,[I(Ki,{ref:"cardRef",class:"full-height card-width"},{default:L(()=>[I(jn,null,{default:L(()=>[q("div",bM,[q("div",null,[I(_e,{name:"battery_full",size:"sm",class:"q-mr-sm",color:"primary"}),qe(" "+le(i.cardTitle),1)]),i.showSettings?(V(),ne(_e,{key:0,class:"cursor-pointer",name:"settings",size:"sm",onClick:e[0]||(e[0]=r=>i.dialog?.open())})):ue("",!0)]),q("div",yM,[e[1]||(e[1]=q("div",null,"Leistung:",-1)),q("div",_M,le(i.power),1)]),i.showSettings?(V(),K("div",xM,[e[2]||(e[2]=q("div",null,"Laden mit Überschuss:",-1)),q("div",SM,[I(_e,{name:i.batteryMode.icon,size:"sm",class:"q-mr-sm",color:"primary"},null,8,["name"]),qe(" "+le(i.batteryMode.label),1)])])):ue("",!0),e[5]||(e[5]=q("div",{class:"text-subtitle1 text-weight-bold q-mt-md"},"Heute:",-1)),q("div",wM,[e[3]||(e[3]=q("div",null,"Geladen:",-1)),q("div",kM,le(i.dailyImportedEnergy),1)]),q("div",CM,[e[4]||(e[4]=q("div",null,"Entladen:",-1)),q("div",MM,le(i.dailyExportedEnergy),1)]),I(i.SliderDouble,{class:"q-mt-sm","current-value":i.soc,readonly:!0,"limit-mode":"none"},null,8,["current-value"])]),_:1})]),_:1},512),I(i.BatterySettingsDialog,{"battery-id":i.props.batteryId,ref:"dialog"},null,8,["battery-id"])],64)}const TM=Me(pM,[["render",PM],["__scopeId","data-v-57ae2080"],["__file","BatteryCard.vue"]]),IM=Se({__name:"BatteryInformation",setup(t,{expose:e}){e();const n=N(void 0),i=Be(),o=g(()=>i.batteryIds),s=g(()=>i.batteryIds.length>1),r={cardWidth:n,mqttStore:i,batteryIds:o,showBatteryOverview:s,BaseCarousel:ul,BatteryCard:TM};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),OM={key:0,class:"row justify-center"};function DM(t,e,n,i,o,s){return V(),K(Oe,null,[i.showBatteryOverview?(V(),K("div",OM,[I(i.BatteryCard,{"battery-id":void 0})])):ue("",!0),I(i.BaseCarousel,{items:i.batteryIds,"card-width":i.cardWidth},{item:L(({item:r})=>[I(i.BatteryCard,{"battery-id":r,onCardWidth:e[0]||(e[0]=a=>i.cardWidth=a)},null,8,["battery-id"])]),_:1},8,["items","card-width"])],64)}const VM=Me(IM,[["render",DM],["__file","BatteryInformation.vue"]]),EM=Se({__name:"VehicleConnectionStateIcon",props:{vehicleId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>i.vehicleConnectionState(n.vehicleId)),s={props:n,mqttStore:i,vehicleState:o};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),AM={class:"col"},RM={class:"row wrap"};function qM(t,e,n,i,o,s){return V(),K("div",AM,[e[0]||(e[0]=q("div",{class:"text-subtitle2"},"Status:",-1)),i.vehicleState.length<1?(V(),ne(Ks,{key:0,label:"Nicht zugeordnet",color:"primary"})):ue("",!0),q("div",RM,[(V(!0),K(Oe,null,Je(i.vehicleState,(r,a)=>(V(),ne(Ks,{key:a,icon:r.plugged?"power":"power_off",color:r.plugged?r.charging?"positive":"warning":"negative",label:r.name},{default:L(()=>[I(ln,null,{default:L(()=>[qe(le(r.plugged?r.charging?"Lädt":"Angesteckt, lädt nicht":"Nicht angesteckt"),1)]),_:2},1024)]),_:2},1032,["icon","color","label"]))),128))])])}const Lg=Me(EM,[["render",qM],["__file","VehicleConnectionStateIcon.vue"]]),LM=Se({__name:"VehicleCard",props:{vehicleId:{}},emits:["card-width"],setup(t,{expose:e,emit:n}){e();const i=N(null),o=n,s=t,r=Be(),a=In(),l=N(!1),c=g(()=>r.vehicleList.find(p=>p.id===s.vehicleId)),u=g(()=>r.vehicleInfo(s.vehicleId)),d=g(()=>r.vehicleSocModule(s.vehicleId)?.type),h=g(()=>r.vehicleSocValue(s.vehicleId)||0),f=()=>{r.vehicleForceSocUpdate(s.vehicleId),a.notify({type:"positive",message:"SoC Update angefordert."})};Wt(()=>{const p=i.value?.$el.offsetWidth;o("card-width",p)});const m={cardRef:i,emit:o,props:s,mqttStore:r,$q:a,socInputVisible:l,vehicle:c,vehicleInfo:u,vehicleSocModuleType:d,vehicleSocValue:h,refreshSoc:f,SliderDouble:gl,ManualSocDialog:Ag,VehicleConnectionStateIcon:Lg};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}}),FM={class:"row items-center text-h6 text-bold"},zM={class:"col flex items-center"},BM={class:"row q-mt-sm"},NM={class:"col"},WM={class:"col q-pl-sm"},HM={key:0};function jM(t,e,n,i,o,s){return V(),K(Oe,null,[I(Ki,{ref:"cardRef",class:"full-height card-width"},{default:L(()=>[I(jn,null,{default:L(()=>[q("div",FM,[q("div",zM,le(i.vehicle?.name),1)]),q("div",BM,[q("div",NM,[e[2]||(e[2]=q("div",{class:"text-subtitle2"},"Hersteller:",-1)),qe(" "+le(i.vehicleInfo?.manufacturer||"keine Angabe"),1)]),q("div",WM,[e[3]||(e[3]=q("div",{class:"text-subtitle2"},"Modell:",-1)),qe(" "+le(i.vehicleInfo?.model||"keine Angabe"),1)])]),I(i.VehicleConnectionStateIcon,{"vehicle-id":n.vehicleId,class:"q-mt-sm"},null,8,["vehicle-id"]),i.vehicleSocModuleType!==null?(V(),K("div",HM,[I(i.SliderDouble,{class:"q-mt-sm","current-value":i.vehicleSocValue,readonly:!0,"limit-mode":"none"},{"update-soc-icon":L(()=>[i.vehicleSocModuleType==="manual"?(V(),ne(_e,{key:0,name:"edit",size:"xs",class:"q-ml-xs cursor-pointer",onClick:e[0]||(e[0]=r=>i.socInputVisible=!0)},{default:L(()=>[I(ln,null,{default:L(()=>e[4]||(e[4]=[qe("SoC eingeben")])),_:1})]),_:1})):i.vehicleSocModuleType!==void 0?(V(),ne(_e,{key:1,name:"refresh",size:"xs",class:"q-ml-xs cursor-pointer",onClick:i.refreshSoc},{default:L(()=>[I(ln,null,{default:L(()=>e[5]||(e[5]=[qe("SoC aktualisieren")])),_:1})]),_:1})):ue("",!0)]),_:1},8,["current-value"])])):ue("",!0),oi(t.$slots,"card-footer",{},void 0,!0)]),_:3})]),_:3},512),I(i.ManualSocDialog,{vehicleId:i.props.vehicleId,socDialogVisible:i.socInputVisible,"onUpdate:socDialogVisible":e[1]||(e[1]=r=>i.socInputVisible=r)},null,8,["vehicleId","socDialogVisible"])],64)}const $M=Me(LM,[["render",jM],["__scopeId","data-v-fd634951"],["__file","VehicleCard.vue"]]),UM=Se({__name:"VehicleInformation",setup(t,{expose:e}){e();const n=N(void 0),i=Be(),o=g(()=>qa.is.mobile),s=N(!1),r=N(null),a=N(""),l=g(()=>i.themeConfiguration?.vehicle_table_search_input_field),c=g(()=>i.themeConfiguration?.vehicle_card_view_breakpoint||4),u=g(()=>i.vehicleList),d=g(()=>u.value.map(b=>b.id)),h=g(()=>b=>{const y=i.vehicleList.find(M=>M.id===b)?.name||"keine Angabe",_=i.vehicleConnectionState(b),C=_.some(M=>M.plugged),S=_.some(M=>M.charging),E=i.vehicleInfo(b),A=E?.manufacturer||"keine Angabe",D=E?.model||"keine Angabe",P=i.vehicleSocValue(b),R=P!==void 0?`${Math.round(P)}%`:"–";return{id:b,name:y,manufacturer:A,model:D,plugState:C,chargeState:S,vehicleSocValue:R}}),v={cardWidth:n,mqttStore:i,isMobile:o,modalChargeVehicleCardVisible:s,selectedVehicleId:r,filter:a,searchInputVisible:l,cardViewBreakpoint:c,vehicles:u,vehicleIds:d,tableRowData:h,columnConfigDesktop:[{field:"name",label:"Fahrzeug"},{field:"manufacturer",label:"Hersteller"},{field:"model",label:"Modell"},{field:"plugged",label:"Status",align:"center"},{field:"vehicleSocValue",label:"Ladestand",align:"right"}],columnConfigMobile:[{field:"name",label:"Fahrzeug"},{field:"plugged",label:"Status",align:"center"},{field:"vehicleSocValue",label:"Ladestand",align:"right"}],onRowClick:b=>{r.value=b.id,s.value=!0},BaseCarousel:ul,BaseTable:ng,ChargePointStateIcon:ml,VehicleConnectionStateIcon:Lg,VehicleCard:$M};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}}),YM={class:"dialog-content"},ZM={class:"card-footer"};function XM(t,e,n,i,o,s){return V(),K(Oe,null,[i.vehicleIds.length<=i.cardViewBreakpoint?(V(),ne(i.BaseCarousel,{key:0,items:i.vehicleIds,"card-width":i.cardWidth},{item:L(({item:r})=>[I(i.VehicleCard,{"vehicle-id":r,onCardWidth:e[0]||(e[0]=a=>i.cardWidth=a)},null,8,["vehicle-id"])]),_:1},8,["items","card-width"])):(V(),ne(i.BaseTable,{key:1,items:i.vehicleIds,"row-data":i.tableRowData,"column-config":i.isMobile?i.columnConfigMobile:i.columnConfigDesktop,"search-input-visible":i.searchInputVisible,"table-height":i.isMobile?"35vh":"45vh",filter:i.filter,"onUpdate:filter":e[1]||(e[1]=r=>i.filter=r),"columns-to-search":["name","manufacturer","model"],"row-expandable":!0,onRowClick:i.onRowClick},{"body-cell-plugged":L(r=>[I(vn,{class:Tt(`text-${r.col.align}`)},{default:L(()=>[I(i.ChargePointStateIcon,{"vehicle-id":r.row.id},null,8,["vehicle-id"])]),_:2},1032,["class"])]),"row-expand":L(r=>[I(i.VehicleConnectionStateIcon,{"vehicle-id":r.row.id},null,8,["vehicle-id"])]),_:1},8,["items","row-data","column-config","search-input-visible","table-height","filter"])),I(Xi,{modelValue:i.modalChargeVehicleCardVisible,"onUpdate:modelValue":e[2]||(e[2]=r=>i.modalChargeVehicleCardVisible=r),"transition-show":"fade","transition-hide":"fade","backdrop-filter":t.$q.screen.width<385?"":"blur(4px)"},{default:L(()=>[q("div",YM,[i.selectedVehicleId!==null?(V(),ne(i.VehicleCard,{key:0,"vehicle-id":i.selectedVehicleId},{"card-footer":L(()=>[q("div",ZM,[an((V(),ne(Ve,{color:"primary",flat:"","no-caps":"",class:"close-button",size:"md"},{default:L(()=>e[3]||(e[3]=[qe("Schließen")])),_:1})),[[Mn]])])]),_:1},8,["vehicle-id"])):ue("",!0)])]),_:1},8,["modelValue","backdrop-filter"])],64)}const KM=Me(UM,[["render",XM],["__scopeId","data-v-ed75dfe1"],["__file","VehicleInformation.vue"]]),QM=Se({name:"IndexPage",__name:"IndexPage",setup(t,{expose:e}){e();const i={tab:N("charge-points"),ChartCarousel:Wx,ChargePointInformation:cM,BatteryInformation:VM,VehicleInformation:KM};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),GM={class:"row justify-center full-width chart-section"},JM={class:"tab-section"};function eP(t,e,n,i,o,s){return V(),ne(Wm,{class:"column"},{default:L(()=>[q("div",GM,[I(i.ChartCarousel)]),q("div",JM,[I(Lm,{modelValue:i.tab,"onUpdate:modelValue":e[0]||(e[0]=r=>i.tab=r),dense:"",class:"q-tabs__content--align-justify"},{default:L(()=>[I(Er,{name:"charge-points",title:"Ladepunkte"},{default:L(()=>[I(_e,{name:"ev_station",size:"md",color:"primary"})]),_:1}),I(Er,{name:"vehicles",title:"Fahrzeuge"},{default:L(()=>[I(_e,{name:"directions_car",size:"md",color:"primary"})]),_:1}),I(Er,{name:"batteries",title:"Speicher"},{default:L(()=>[I(_e,{name:"battery_full",size:"md",color:"primary"})]),_:1})]),_:1},8,["modelValue"]),I(Nm,{modelValue:i.tab,"onUpdate:modelValue":e[1]||(e[1]=r=>i.tab=r),class:"col"},{default:L(()=>[I(Ar,{name:"charge-points",class:"q-pa-none column"},{default:L(()=>[I(i.ChargePointInformation)]),_:1}),I(Ar,{name:"vehicles",class:"q-pa-none column"},{default:L(()=>[I(i.VehicleInformation)]),_:1}),I(Ar,{name:"batteries",class:"remove-flex-properties"},{default:L(()=>[I(i.BatteryInformation)]),_:1})]),_:1},8,["modelValue"])])]),_:1})}const rP=Me(QM,[["render",eP],["__scopeId","data-v-c7129eb4"],["__file","IndexPage.vue"]]);export{rP as default}; + */const Yu={modes:{point(t,e){return Vs(t,e,{intersect:!0})},nearest(t,e,n){return Xw(t,e,n)},x(t,e,n){return Vs(t,e,{intersect:n.intersect,axis:"x"})},y(t,e,n){return Vs(t,e,{intersect:n.intersect,axis:"y"})}}};function bl(t,e,n){return(Yu.modes[n.mode]||Yu.modes.nearest)(t,e,n)}function Yw(t,e,n){return n!=="x"&&n!=="y"?t.inRange(e.x,e.y,"x",!0)||t.inRange(e.x,e.y,"y",!0):t.inRange(e.x,e.y,n,!0)}function Zw(t,e,n){return n==="x"?{x:t.x,y:e.y}:n==="y"?{x:e.x,y:t.y}:e}function Vs(t,e,n){return t.filter(i=>n.intersect?i.inRange(e.x,e.y):Yw(i,e,n.axis))}function Xw(t,e,n){let i=Number.POSITIVE_INFINITY;return Vs(t,e,n).reduce((o,s)=>{const a=s.getCenterPoint(),r=Zw(e,a,n.axis),l=zi(e,r);return lo._index-s._index).slice(0,1)}function mi(t,e,n){const i=Math.cos(n),o=Math.sin(n),s=e.x,a=e.y;return{x:s+i*(t.x-s)-o*(t.y-a),y:a+o*(t.x-s)+i*(t.y-a)}}const Kw=(t,e)=>e>t||t.length>e.length&&t.slice(0,e.length)===e,ii=.001,pa=(t,e,n)=>Math.min(n,Math.max(e,t)),dg=(t,e)=>t.value>=t.start-e&&t.value<=t.end+e;function Qw(t,e,n){for(const i of Object.keys(t))t[i]=pa(t[i],e,n);return t}function Gw(t,e,n,i){return!t||!e||n<=0?!1:Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(n+i,2)}function hg(t,{x:e,y:n,x2:i,y2:o},s,{borderWidth:a,hitTolerance:r}){const l=(a+r)/2,c=t.x>=e-l-ii&&t.x<=i+l+ii,u=t.y>=n-l-ii&&t.y<=o+l+ii;return s==="x"?c:(s==="y"||c)&&u}function fg(t,{rect:e,center:n},i,{rotation:o,borderWidth:s,hitTolerance:a}){const r=mi(t,n,bt(-o));return hg(r,e,i,{borderWidth:s,hitTolerance:a})}function vi(t,e){const{centerX:n,centerY:i}=t.getProps(["centerX","centerY"],e);return{x:n,y:i}}function Jw(t,e,n,i=!0){const o=n.split(".");let s=0;for(const a of e.split(".")){const r=o[s++];if(parseInt(a,10)typeof t=="string"&&t.endsWith("%"),mg=t=>parseFloat(t)/100,vg=t=>pa(mg(t),0,1),uo=(t,e)=>({x:t,y:e,x2:t,y2:e,width:0,height:0}),ek={box:t=>uo(t.centerX,t.centerY),doughnutLabel:t=>uo(t.centerX,t.centerY),ellipse:t=>({centerX:t.centerX,centerY:t.centerX,radius:0,width:0,height:0}),label:t=>uo(t.centerX,t.centerY),line:t=>uo(t.x,t.y),point:t=>({centerX:t.centerX,centerY:t.centerY,radius:0,width:0,height:0}),polygon:t=>uo(t.centerX,t.centerY)};function yl(t,e){return e==="start"?0:e==="end"?t:gg(e)?vg(e)*t:t/2}function $n(t,e,n=!0){return typeof e=="number"?e:gg(e)?(n?vg(e):mg(e))*t:t}function tk(t,e){const{x:n,width:i}=t,o=e.textAlign;return o==="center"?n+i/2:o==="end"||o==="right"?n+i:n}function pg(t,e,{borderWidth:n,position:i,xAdjust:o,yAdjust:s},a){const r=xe(a),l=e.width+(r?a.width:0)+n,c=e.height+(r?a.height:0)+n,u=_l(i),d=Zu(t.x,l,o,u.x),h=Zu(t.y,c,s,u.y);return{x:d,y:h,x2:d+l,y2:h+c,width:l,height:c,centerX:d+l/2,centerY:h+c/2}}function _l(t,e="center"){return xe(t)?{x:Ce(t.x,e),y:Ce(t.y,e)}:(t=Ce(t,e),{x:t,y:t})}const bg=(t,e)=>t&&t.autoFit&&e<1;function yg(t,e){const n=t.font,i=Qe(n)?n:[n];return bg(t,e)?i.map(function(o){const s=kt(o);return s.size=Math.floor(o.size*e),s.lineHeight=o.lineHeight,kt(s)}):i.map(o=>kt(o))}function _g(t){return t&&($t(t.xValue)||$t(t.yValue))}function Zu(t,e,n=0,i){return t-yl(e,i)+n}function Gi(t,e,n){const i=n.init;if(i){if(i===!0)return Sg(e,n)}else return;return nk(t,e,n)}function xg(t,e,n){let i=!1;return e.forEach(o=>{Nt(t[o])?(i=!0,n[o]=t[o]):$t(n[o])&&delete n[o]}),i}function Sg(t,e){const n=e.type||"line";return ek[n](t)}function nk(t,e,n){const i=je(n.init,[{chart:t,properties:e,options:n}]);if(i===!0)return Sg(e,n);if(xe(i))return i}const or=new Map,ik=t=>isNaN(t)||t<=0,ok=t=>t.reduce(function(e,n){return e+=n.string,e},"");function ba(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object HTMLImageElement]"||e==="[object HTMLCanvasElement]"}}function ya(t,{x:e,y:n},i){i&&(t.translate(e,n),t.rotate(bt(i)),t.translate(-e,-n))}function Tn(t,e){if(e&&e.borderWidth)return t.lineCap=e.borderCapStyle||"butt",t.setLineDash(e.borderDash),t.lineDashOffset=e.borderDashOffset,t.lineJoin=e.borderJoinStyle||"miter",t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,!0}function Ji(t,e){t.shadowColor=e.backgroundShadowColor,t.shadowBlur=e.shadowBlur,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY}function _a(t,e){const n=e.content;if(ba(n))return{width:$n(n.width,e.width),height:$n(n.height,e.height)};const i=yg(e),o=e.textStrokeWidth,s=Qe(n)?n:[n],a=s.join()+ok(i)+o+(t._measureText?"-spriting":"");return or.has(a)||or.set(a,lk(t,s,i,o)),or.get(a)}function wg(t,e,n){const{x:i,y:o,width:s,height:a}=e;t.save(),Ji(t,n);const r=Tn(t,n);t.fillStyle=n.backgroundColor,t.beginPath(),Bs(t,{x:i,y:o,w:s,h:a,radius:Qw(Di(n.borderRadius),0,Math.min(s,a)/2)}),t.closePath(),t.fill(),r&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}function kg(t,e,n,i){const o=n.content;if(ba(o)){t.save(),t.globalAlpha=dk(n.opacity,o.style.opacity),t.drawImage(o,e.x,e.y,e.width,e.height),t.restore();return}const s=Qe(o)?o:[o],a=yg(n,i),r=n.color,l=Qe(r)?r:[r],c=tk(e,n),u=e.y+n.textStrokeWidth/2;t.save(),t.textBaseline="middle",t.textAlign=n.textAlign,sk(t,n)&&ck(t,{x:c,y:u},s,a),uk(t,{x:c,y:u},s,{fonts:a,colors:l}),t.restore()}function sk(t,e){if(e.textStrokeWidth>0)return t.lineJoin="round",t.miterLimit=2,t.lineWidth=e.textStrokeWidth,t.strokeStyle=e.textStrokeColor,!0}function ak(t,e,n,i){const{radius:o,options:s}=e,a=s.pointStyle,r=s.rotation;let l=(r||0)*Wr;if(ba(a)){t.save(),t.translate(n,i),t.rotate(l),t.drawImage(a,-a.width/2,-a.height/2,a.width,a.height),t.restore();return}ik(o)||rk(t,{x:n,y:i,radius:o,rotation:r,style:a,rad:l})}function rk(t,{x:e,y:n,radius:i,rotation:o,style:s,rad:a}){let r,l,c,u;switch(t.beginPath(),s){default:t.arc(e,n,i,0,pt),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(a)*i,n-Math.cos(a)*i),a+=Ls,t.lineTo(e+Math.sin(a)*i,n-Math.cos(a)*i),a+=Ls,t.lineTo(e+Math.sin(a)*i,n-Math.cos(a)*i),t.closePath();break;case"rectRounded":u=i*.516,c=i-u,r=Math.cos(a+Xt)*c,l=Math.sin(a+Xt)*c,t.arc(e-r,n-l,u,a-We,a-wt),t.arc(e+l,n-r,u,a-wt,a),t.arc(e+r,n+l,u,a,a+wt),t.arc(e-l,n+r,u,a+wt,a+We),t.closePath();break;case"rect":if(!o){c=Math.SQRT1_2*i,t.rect(e-c,n-c,2*c,2*c);break}a+=Xt;case"rectRot":r=Math.cos(a)*i,l=Math.sin(a)*i,t.moveTo(e-r,n-l),t.lineTo(e+l,n-r),t.lineTo(e+r,n+l),t.lineTo(e-l,n+r),t.closePath();break;case"crossRot":a+=Xt;case"cross":r=Math.cos(a)*i,l=Math.sin(a)*i,t.moveTo(e-r,n-l),t.lineTo(e+r,n+l),t.moveTo(e+l,n-r),t.lineTo(e-l,n+r);break;case"star":r=Math.cos(a)*i,l=Math.sin(a)*i,t.moveTo(e-r,n-l),t.lineTo(e+r,n+l),t.moveTo(e+l,n-r),t.lineTo(e-l,n+r),a+=Xt,r=Math.cos(a)*i,l=Math.sin(a)*i,t.moveTo(e-r,n-l),t.lineTo(e+r,n+l),t.moveTo(e+l,n-r),t.lineTo(e-l,n+r);break;case"line":r=Math.cos(a)*i,l=Math.sin(a)*i,t.moveTo(e-r,n-l),t.lineTo(e+r,n+l);break;case"dash":t.moveTo(e,n),t.lineTo(e+Math.cos(a)*i,n+Math.sin(a)*i);break}t.fill()}function lk(t,e,n,i){t.save();const o=e.length;let s=0,a=i;for(let r=0;r0||o.borderWidth===0)&&(t.moveTo(l.x,l.y),t.lineTo(c.x,c.y)),t.moveTo(u.x,u.y),t.lineTo(d.x,d.y);const h=mi({x:n,y:i},e.getCenterPoint(),bt(-e.rotation));t.lineTo(h.x,h.y),t.stroke(),t.restore()}function fk(t,e){const{x:n,y:i,x2:o,y2:s}=t,a=gk(t,e);let r,l;return e==="left"||e==="right"?(r={x:n+a,y:i},l={x:r.x,y:s}):(r={x:n,y:i+a},l={x:o,y:r.y}),{separatorStart:r,separatorEnd:l}}function gk(t,e){const{width:n,height:i,options:o}=t,s=o.callout.margin+o.borderWidth/2;return e==="right"?n+s:e==="bottom"?i+s:-s}function mk(t,e,n){const{y:i,width:o,height:s,options:a}=t,r=a.callout.start,l=vk(e,a.callout);let c,u;return e==="left"||e==="right"?(c={x:n.x,y:i+$n(s,r)},u={x:c.x+l,y:c.y}):(c={x:n.x+$n(o,r),y:n.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function vk(t,e){const n=e.side;return t==="left"||t==="top"?-n:n}function pk(t,e){const n=e.position;return Cg.includes(n)?n:bk(t,e)}function bk(t,e){const{x:n,y:i,x2:o,y2:s,width:a,height:r,pointX:l,pointY:c,centerX:u,centerY:d,rotation:h}=t,f={x:u,y:d},m=e.start,p=$n(a,m),v=$n(r,m),b=[n,n+p,n+p,o],y=[i+v,s,i,s],_=[];for(let x=0;x<4;x++){const C=mi({x:b[x],y:y[x]},f,bt(h));_.push({position:Cg[x],distance:zi(C,{x:l,y:c})})}return _.sort((x,C)=>x.distance-C.distance)[0].position}function yk(t,e,n){const{pointX:i,pointY:o}=t,s=e.margin;let a=i,r=o;return n==="left"?a+=s:n==="right"?a-=s:n==="top"?r+=s:n==="bottom"&&(r-=s),t.inRange(a,r)}const Xu={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function $i(t,e,n){return e=typeof e=="number"?e:t.parse(e),yt(e)?t.getPixelForValue(e):n}function di(t,e,n){const i=e[n];if(i||n==="scaleID")return i;const o=n.charAt(0),s=Object.values(t).filter(a=>a.axis&&a.axis===o);return s.length?s[0].id:o}function Mg(t,e){if(t){const n=t.options.reverse,i=$i(t,e.min,n?e.end:e.start),o=$i(t,e.max,n?e.start:e.end);return{start:i,end:o}}}function Pg(t,e){const{chartArea:n,scales:i}=t,o=i[di(i,e,"xScaleID")],s=i[di(i,e,"yScaleID")];let a=n.width/2,r=n.height/2;return o&&(a=$i(o,e.xValue,o.left+o.width/2)),s&&(r=$i(s,e.yValue,s.top+s.height/2)),{x:a,y:r}}function xl(t,e){const n=t.scales,i=n[di(n,e,"xScaleID")],o=n[di(n,e,"yScaleID")];if(!i&&!o)return{};let{left:s,right:a}=i||t.chartArea,{top:r,bottom:l}=o||t.chartArea;const c=Ku(i,{min:e.xMin,max:e.xMax,start:s,end:a});s=c.start,a=c.end;const u=Ku(o,{min:e.yMin,max:e.yMax,start:l,end:r});return r=u.start,l=u.end,{x:s,y:r,x2:a,y2:l,width:a-s,height:l-r,centerX:s+(a-s)/2,centerY:r+(l-r)/2}}function Tg(t,e){if(!_g(e)){const n=xl(t,e);let i=e.radius;(!i||isNaN(i))&&(i=Math.min(n.width,n.height)/2,e.radius=i);const o=i*2,s=n.centerX+e.xAdjust,a=n.centerY+e.yAdjust;return{x:s-i,y:a-i,x2:s+i,y2:a+i,centerX:s,centerY:a,width:o,height:o,radius:i}}return xk(t,e)}function _k(t,e){const{scales:n,chartArea:i}=t,o=n[e.scaleID],s={x:i.left,y:i.top,x2:i.right,y2:i.bottom};return o?Sk(o,s,e):wk(n,s,e),s}function Ig(t,e){const n=xl(t,e);return n.initProperties=Gi(t,n,e),n.elements=[{type:"label",optionScope:"label",properties:Mk(t,n,e),initProperties:n.initProperties}],n}function xk(t,e){const n=Pg(t,e),i=e.radius*2;return{x:n.x-e.radius+e.xAdjust,y:n.y-e.radius+e.yAdjust,x2:n.x+e.radius+e.xAdjust,y2:n.y+e.radius+e.yAdjust,centerX:n.x+e.xAdjust,centerY:n.y+e.yAdjust,radius:e.radius,width:i,height:i}}function Ku(t,e){const n=Mg(t,e)||e;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function Sk(t,e,n){const i=$i(t,n.value,NaN),o=$i(t,n.endValue,i);t.isHorizontal()?(e.x=i,e.x2=o):(e.y=i,e.y2=o)}function wk(t,e,n){for(const i of Object.keys(Xu)){const o=t[di(t,n,i)];if(o){const{min:s,max:a,start:r,end:l,startProp:c,endProp:u}=Xu[i],d=Mg(o,{min:n[s],max:n[a],start:o[r],end:o[l]});e[c]=d.start,e[u]=d.end}}}function kk({properties:t,options:e},n,i,o){const{x:s,x2:a,width:r}=t;return Og({start:s,end:a,size:r,borderWidth:e.borderWidth},{position:i.x,padding:{start:o.left,end:o.right},adjust:e.label.xAdjust,size:n.width})}function Ck({properties:t,options:e},n,i,o){const{y:s,y2:a,height:r}=t;return Og({start:s,end:a,size:r,borderWidth:e.borderWidth},{position:i.y,padding:{start:o.top,end:o.bottom},adjust:e.label.yAdjust,size:n.height})}function Og(t,e){const{start:n,end:i,borderWidth:o}=t,{position:s,padding:{start:a,end:r},adjust:l}=e,c=i-o-n-a-r-e.size;return n+o/2+l+yl(c,s)}function Mk(t,e,n){const i=n.label;i.backgroundColor="transparent",i.callout.display=!1;const o=_l(i.position),s=qt(i.padding),a=_a(t.ctx,i),r=kk({properties:e,options:n},a,o,s),l=Ck({properties:e,options:n},a,o,s),c=a.width+s.width,u=a.height+s.height;return{x:r,y:l,x2:r+c,y2:l+u,width:c,height:u,centerX:r+c/2,centerY:l+u/2,rotation:i.rotation}}const Cr=["enter","leave"],Sl=Cr.concat("click");function Pk(t,e,n){e.listened=xg(n,Sl,e.listeners),e.moveListened=!1,Cr.forEach(i=>{Nt(n[i])&&(e.moveListened=!0)}),(!e.listened||!e.moveListened)&&e.annotations.forEach(i=>{!e.listened&&Nt(i.click)&&(e.listened=!0),e.moveListened||Cr.forEach(o=>{Nt(i[o])&&(e.listened=!0,e.moveListened=!0)})})}function Tk(t,e,n){if(t.listened)switch(e.type){case"mousemove":case"mouseout":return Ik(t,e,n);case"click":return Ok(t,e,n)}}function Ik(t,e,n){if(!t.moveListened)return;let i;e.type==="mousemove"?i=bl(t.visibleElements,e,n.interaction):i=[];const o=t.hovered;t.hovered=i;const s={state:t,event:e};let a=Qu(s,"leave",o,i);return Qu(s,"enter",i,o)||a}function Qu({state:t,event:e},n,i,o){let s;for(const a of i)o.indexOf(a)<0&&(s=Dg(a.options[n]||t.listeners[n],a,e)||s);return s}function Ok(t,e,n){const i=t.listeners,o=bl(t.visibleElements,e,n.interaction);let s;for(const a of o)s=Dg(a.options.click||i.click,a,e)||s;return s}function Dg(t,e,n){return je(t,[e.$context,n])===!0}const Gs=["afterDraw","beforeDraw"];function Dk(t,e,n){const i=e.visibleElements;e.hooked=xg(n,Gs,e.hooks),e.hooked||i.forEach(o=>{e.hooked||Gs.forEach(s=>{Nt(o.options[s])&&(e.hooked=!0)})})}function Gu(t,e,n){if(t.hooked){const i=e.options[n]||t.hooks[n];return je(i,[e.$context])}}function Vk(t,e,n){const i=Lk(t.scales,e,n);let o=Ju(e,i,"min","suggestedMin");o=Ju(e,i,"max","suggestedMax")||o,o&&Nt(e.handleTickRangeOptions)&&e.handleTickRangeOptions()}function Ek(t,e){for(const n of t)Rk(n,e)}function Ju(t,e,n,i){if(yt(e[n])&&!Ak(t.options,n,i)){const o=t[n]!==e[n];return t[n]=e[n],o}}function Ak(t,e,n){return $t(t[e])||$t(t[n])}function Rk(t,e){for(const n of["scaleID","xScaleID","yScaleID"]){const i=di(e,t,n);i&&!e[i]&&qk(t,n)&&console.warn(`No scale found with id '${i}' for annotation '${t.id}'`)}}function qk(t,e){if(e==="scaleID")return!0;const n=e.charAt(0);for(const i of["Min","Max","Value"])if($t(t[n+i]))return!0;return!1}function Lk(t,e,n){const i=e.axis,o=e.id,s=i+"ScaleID",a={min:Ce(e.min,Number.NEGATIVE_INFINITY),max:Ce(e.max,Number.POSITIVE_INFINITY)};for(const r of n)r.scaleID===o?ed(r,e,["value","endValue"],a):di(t,r,s)===o&&ed(r,e,[i+"Min",i+"Max",i+"Value"],a);return a}function ed(t,e,n,i){for(const o of n){const s=t[o];if($t(s)){const a=e.parse(s);i.min=Math.min(i.min,a),i.max=Math.max(i.max,a)}}}class eo extends Lt{inRange(e,n,i,o){const{x:s,y:a}=mi({x:e,y:n},this.getCenterPoint(o),bt(-this.options.rotation));return hg({x:s,y:a},this.getProps(["x","y","x2","y2"],o),i,this.options)}getCenterPoint(e){return vi(this,e)}draw(e){e.save(),ya(e,this.getCenterPoint(),this.options.rotation),wg(e,this,this.options),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,n){return Ig(e,n)}}eo.id="boxAnnotation";eo.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,hitTolerance:0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};eo.defaultRoutes={borderColor:"color",backgroundColor:"color"};eo.descriptors={label:{_fallback:!0}};class xa extends Lt{inRange(e,n,i,o){return fg({x:e,y:n},{rect:this.getProps(["x","y","x2","y2"],o),center:this.getCenterPoint(o)},i,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return vi(this,e)}draw(e){const n=this.options;!n.display||!n.content||(Hk(e,this),e.save(),ya(e,this.getCenterPoint(),this.rotation),kg(e,this,n,this._fitRatio),e.restore())}resolveElementProperties(e,n){const i=Fk(e,n);if(!i)return{};const{controllerMeta:o,point:s,radius:a}=Bk(e,n,i);let r=_a(e.ctx,n);const l=Nk(r,a);bg(n,l)&&(r={width:r.width*l,height:r.height*l});const{position:c,xAdjust:u,yAdjust:d}=n,h=pg(s,r,{borderWidth:0,position:c,xAdjust:u,yAdjust:d});return{initProperties:Gi(e,h,n),...h,...o,rotation:n.rotation,_fitRatio:l}}}xa.id="doughnutLabelAnnotation";xa.defaults={autoFit:!0,autoHide:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderColor:"transparent",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:0,color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,spacing:1,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0};xa.defaultRoutes={};function Fk(t,e){return t.getSortedVisibleDatasetMetas().reduce(function(n,i){const o=i.controller;return o instanceof go&&zk(t,e,i.data)&&(!n||o.innerRadius=90?i:n},void 0)}function zk(t,e,n){if(!e.autoHide)return!0;for(let i=0;id,b=v?o+m:a-m,y=Wk(b,u,d,p);return{controllerMeta:{_centerX:u,_centerY:d,_radius:p,_counterclockwise:v,...y},point:f,radius:Math.min(r,Math.min(h.right-h.left,h.bottom-h.top)/2)}}function Nk({width:t,height:e},n){const i=Math.sqrt(Math.pow(t,2)+Math.pow(e,2));return n*2/i}function Wk(t,e,n,i){const o=Math.pow(n-t,2),s=Math.pow(i,2),a=e*-2,r=Math.pow(e,2)+o-s,l=Math.pow(a,2)-4*r;if(l<=0)return{_startAngle:0,_endAngle:pt};const c=(-a-Math.sqrt(l))/2,u=(-a+Math.sqrt(l))/2;return{_startAngle:lr({x:e,y:n},{x:c,y:t}).angle,_endAngle:lr({x:e,y:n},{x:u,y:t}).angle}}function Hk(t,e){const{_centerX:n,_centerY:i,_radius:o,_startAngle:s,_endAngle:a,_counterclockwise:r,options:l}=e;t.save();const c=Tn(t,l);t.fillStyle=l.backgroundColor,t.beginPath(),t.arc(n,i,o,s,a,r),t.closePath(),t.fill(),c&&t.stroke(),t.restore()}class Xo extends Lt{inRange(e,n,i,o){return fg({x:e,y:n},{rect:this.getProps(["x","y","x2","y2"],o),center:this.getCenterPoint(o)},i,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return vi(this,e)}draw(e){const n=this.options,i=!$t(this._visible)||this._visible;!n.display||!n.content||!i||(e.save(),ya(e,this.getCenterPoint(),this.rotation),hk(e,this),wg(e,this,n),kg(e,jk(this),n),e.restore())}resolveElementProperties(e,n){let i;if(_g(n))i=Pg(e,n);else{const{centerX:r,centerY:l}=xl(e,n);i={x:r,y:l}}const o=qt(n.padding),s=_a(e.ctx,n),a=pg(i,s,n,o);return{initProperties:Gi(e,a,n),pointX:i.x,pointY:i.y,...a,rotation:n.rotation}}}Xo.id="labelAnnotation";Xo.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Xo.defaultRoutes={borderColor:"color"};function jk({x:t,y:e,width:n,height:i,options:o}){const s=o.borderWidth/2,a=qt(o.padding);return{x:t+a.left+s,y:e+a.top+s,width:n-a.left-a.right-o.borderWidth,height:i-a.top-a.bottom-o.borderWidth}}const wl=(t,e,n)=>({x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}),Mr=(t,e,n)=>wl(e,n,Math.abs((t-e.y)/(n.y-e.y))).x,td=(t,e,n)=>wl(e,n,Math.abs((t-e.x)/(n.x-e.x))).y,yo=t=>t*t,$k=(t,e,{x:n,y:i,x2:o,y2:s},a)=>a==="y"?{start:Math.min(i,s),end:Math.max(i,s),value:e}:{start:Math.min(n,o),end:Math.max(n,o),value:t},nd=(t,e,n,i)=>(1-i)*(1-i)*t+2*(1-i)*i*e+i*i*n,Pr=(t,e,n,i)=>({x:nd(t.x,e.x,n.x,i),y:nd(t.y,e.y,n.y,i)}),id=(t,e,n,i)=>2*(1-i)*(e-t)+2*i*(n-e),od=(t,e,n,i)=>-Math.atan2(id(t.x,e.x,n.x,i),id(t.y,e.y,n.y,i))+.5*We;class Ko extends Lt{inRange(e,n,i,o){const s=(this.options.borderWidth+this.options.hitTolerance)/2;if(i!=="x"&&i!=="y"){const a={mouseX:e,mouseY:n},{path:r,ctx:l}=this;if(r){Tn(l,this.options),l.lineWidth+=this.options.hitTolerance;const{chart:u}=this.$context,d=e*u.currentDevicePixelRatio,h=n*u.currentDevicePixelRatio,f=l.isPointInStroke(r,d,h)||Tr(this,a,o);return l.restore(),f}const c=yo(s);return Xk(this,a,c,o)||Tr(this,a,o)}return Uk(this,{mouseX:e,mouseY:n},i,{hitSize:s,useFinalPosition:o})}getCenterPoint(e){return vi(this,e)}draw(e){const{x:n,y:i,x2:o,y2:s,cp:a,options:r}=this;if(e.save(),!Tn(e,r))return e.restore();Ji(e,r);const l=Math.sqrt(Math.pow(o-n,2)+Math.pow(s-i,2));if(r.curve&&a)return iC(e,this,a,l),e.restore();const{startOpts:c,endOpts:u,startAdjust:d,endAdjust:h}=Vg(this),f=Math.atan2(s-i,o-n);e.translate(n,i),e.rotate(f),e.beginPath(),e.moveTo(0+d,0),e.lineTo(l-h,0),e.shadowColor=r.borderShadowColor,e.stroke(),Ir(e,0,d,c),Ir(e,l,-h,u),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,n){const i=_k(e,n),{x:o,y:s,x2:a,y2:r}=i,l=Yk(i,e.chartArea),c=l?Zk({x:o,y:s},{x:a,y:r},e.chartArea):{x:o,y:s,x2:a,y2:r,width:Math.abs(a-o),height:Math.abs(r-s)};if(c.centerX=(a+o)/2,c.centerY=(r+s)/2,c.initProperties=Gi(e,c,n),n.curve){const d={x:c.x,y:c.y},h={x:c.x2,y:c.y2};c.cp=nC(c,n,zi(d,h))}const u=Kk(e,c,n.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}Ko.id="lineAnnotation";const sd={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};Ko.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},sd),fill:!1,length:12,start:Object.assign({},sd),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,hitTolerance:0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},Xo.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Ko.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};Ko.defaultRoutes={borderColor:"color"};function Uk(t,{mouseX:e,mouseY:n},i,{hitSize:o,useFinalPosition:s}){const a=$k(e,n,t.getProps(["x","y","x2","y2"],s),i);return dg(a,o)||Tr(t,{mouseX:e,mouseY:n},s,i)}function Yk({x:t,y:e,x2:n,y2:i},{top:o,right:s,bottom:a,left:r}){return!(ts&&n>s||ea&&i>a)}function ad({x:t,y:e},n,{top:i,right:o,bottom:s,left:a}){return to&&(e=td(o,{x:t,y:e},n),t=o),es&&(t=Mr(s,{x:t,y:e},n),e=s),{x:t,y:e}}function Zk(t,e,n){const{x:i,y:o}=ad(t,e,n),{x:s,y:a}=ad(e,t,n);return{x:i,y:o,x2:s,y2:a,width:Math.abs(s-i),height:Math.abs(a-o)}}function Xk(t,{mouseX:e,mouseY:n},i=ii,o){const{x:s,y:a,x2:r,y2:l}=t.getProps(["x","y","x2","y2"],o),c=r-s,u=l-a,d=yo(c)+yo(u),h=d===0?-1:((e-s)*c+(n-a)*u)/d;let f,m;return h<0?(f=s,m=a):h>1?(f=r,m=l):(f=s+h*c,m=a+h*u),yo(e-f)+yo(n-m)<=i}function Tr(t,{mouseX:e,mouseY:n},i,o){const s=t.label;return s.options.display&&s.inRange(e,n,o,i)}function Kk(t,e,n){const i=n.borderWidth,o=qt(n.padding),s=_a(t.ctx,n),a=s.width+o.width+i,r=s.height+o.height+i;return Gk(e,n,{width:a,height:r,padding:o},t.chartArea)}function Qk(t){const{x:e,y:n,x2:i,y2:o}=t,s=Math.atan2(o-n,i-e);return s>We/2?s-We:s0&&(o.w/2+s.left-i.x)/a,c=r>0&&(o.h/2+s.top-i.y)/r;return pa(Math.max(l,c),0,.25)}function tC(t,e){const{x:n,x2:i,y:o,y2:s}=t,a=Math.min(o,s)-e.top,r=Math.min(n,i)-e.left,l=e.bottom-Math.max(o,s),c=e.right-Math.max(n,i);return{x:Math.min(r,c),y:Math.min(a,l),dx:r<=c?1:-1,dy:a<=l?1:-1}}function ld(t,e){const{size:n,min:i,max:o,padding:s}=e,a=n/2;return n>o-i?(o+i)/2:(i>=t-s-a&&(t=i+s+a),o<=t+s+a&&(t=o-s-a),t)}function Vg(t){const e=t.options,n=e.arrowHeads&&e.arrowHeads.start,i=e.arrowHeads&&e.arrowHeads.end;return{startOpts:n,endOpts:i,startAdjust:cd(t,n),endAdjust:cd(t,i)}}function cd(t,e){if(!e||!e.display)return 0;const{length:n,width:i}=e,o=t.options.borderWidth/2,s={x:n,y:i+o};return Math.abs(Mr(0,s,{x:0,y:o}))}function Ir(t,e,n,i){if(!i||!i.display)return;const{length:o,width:s,fill:a,backgroundColor:r,borderColor:l}=i,c=Math.abs(e-o)+n;t.beginPath(),Ji(t,i),Tn(t,i),t.moveTo(c,-s),t.lineTo(e+n,0),t.lineTo(c,s),a===!0?(t.fillStyle=r||l,t.closePath(),t.fill(),t.shadowColor="transparent"):t.shadowColor=i.borderShadowColor,t.stroke()}function nC(t,e,n){const{x:i,y:o,x2:s,y2:a,centerX:r,centerY:l}=t,c=Math.atan2(a-o,s-i),u=_l(e.controlPoint,0),d={x:r+$n(n,u.x,!1),y:l+$n(n,u.y,!1)};return mi(d,{x:r,y:l},c)}function ud(t,{x:e,y:n},{angle:i,adjust:o},s){!s||!s.display||(t.save(),t.translate(e,n),t.rotate(i),Ir(t,0,-o,s),t.restore())}function iC(t,e,n,i){const{x:o,y:s,x2:a,y2:r,options:l}=e,{startOpts:c,endOpts:u,startAdjust:d,endAdjust:h}=Vg(e),f={x:o,y:s},m={x:a,y:r},p=od(f,n,m,0),v=od(f,n,m,1)-We,b=Pr(f,n,m,d/i),y=Pr(f,n,m,1-h/i),_=new Path2D;t.beginPath(),_.moveTo(b.x,b.y),_.quadraticCurveTo(n.x,n.y,y.x,y.y),t.shadowColor=l.borderShadowColor,t.stroke(_),e.path=_,e.ctx=t,ud(t,b,{angle:p,adjust:d},c),ud(t,y,{angle:v,adjust:h},u)}class Qo extends Lt{inRange(e,n,i,o){const s=this.options.rotation,a=(this.options.borderWidth+this.options.hitTolerance)/2;if(i!=="x"&&i!=="y")return oC({x:e,y:n},this.getProps(["width","height","centerX","centerY"],o),s,a);const{x:r,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],o),d=i==="y"?{start:l,end:u}:{start:r,end:c},h=mi({x:e,y:n},this.getCenterPoint(o),bt(-s));return h[i]>=d.start-a-ii&&h[i]<=d.end+a+ii}getCenterPoint(e){return vi(this,e)}draw(e){const{width:n,height:i,centerX:o,centerY:s,options:a}=this;e.save(),ya(e,this.getCenterPoint(),a.rotation),Ji(e,this.options),e.beginPath(),e.fillStyle=a.backgroundColor;const r=Tn(e,a);e.ellipse(o,s,i/2,n/2,We/2,0,2*We),e.fill(),r&&(e.shadowColor=a.borderShadowColor,e.stroke()),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,n){return Ig(e,n)}}Qo.id="ellipseAnnotation";Qo.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},eo.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Qo.defaultRoutes={borderColor:"color",backgroundColor:"color"};Qo.descriptors={label:{_fallback:!0}};function oC(t,e,n,i){const{width:o,height:s,centerX:a,centerY:r}=e,l=o/2,c=s/2;if(l<=0||c<=0)return!1;const u=bt(n||0),d=Math.cos(u),h=Math.sin(u),f=Math.pow(d*(t.x-a)+h*(t.y-r),2),m=Math.pow(h*(t.x-a)-d*(t.y-r),2);return f/Math.pow(l+i,2)+m/Math.pow(c+i,2)<=1.0001}class Sa extends Lt{inRange(e,n,i,o){const{x:s,y:a,x2:r,y2:l,width:c}=this.getProps(["x","y","x2","y2","width"],o),u=(this.options.borderWidth+this.options.hitTolerance)/2;return i!=="x"&&i!=="y"?Gw({x:e,y:n},this.getCenterPoint(o),c/2,u):dg(i==="y"?{start:a,end:l,value:n}:{start:s,end:r,value:e},u)}getCenterPoint(e){return vi(this,e)}draw(e){const n=this.options,i=n.borderWidth;if(n.radius<.1)return;e.save(),e.fillStyle=n.backgroundColor,Ji(e,n);const o=Tn(e,n);ak(e,this,this.centerX,this.centerY),o&&!ba(n.pointStyle)&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore(),n.borderWidth=i}resolveElementProperties(e,n){const i=Tg(e,n);return i.initProperties=Gi(e,i,n),i}}Sa.id="pointAnnotation";Sa.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Sa.defaultRoutes={borderColor:"color",backgroundColor:"color"};class wa extends Lt{inRange(e,n,i,o){if(i!=="x"&&i!=="y")return this.options.radius>=.1&&this.elements.length>1&&aC(this.elements,e,n,o);const s=mi({x:e,y:n},this.getCenterPoint(o),bt(-this.options.rotation)),a=this.elements.map(c=>i==="y"?c.bY:c.bX),r=Math.min(...a),l=Math.max(...a);return s[i]>=r&&s[i]<=l}getCenterPoint(e){return vi(this,e)}draw(e){const{elements:n,options:i}=this;e.save(),e.beginPath(),e.fillStyle=i.backgroundColor,Ji(e,i);const o=Tn(e,i);let s=!0;for(const a of n)s?(e.moveTo(a.x,a.y),s=!1):e.lineTo(a.x,a.y);e.closePath(),e.fill(),o&&(e.shadowColor=i.borderShadowColor,e.stroke()),e.restore()}resolveElementProperties(e,n){const i=Tg(e,n),{sides:o,rotation:s}=n,a=[],r=2*We/o;let l=s*Wr;for(let c=0;cn!=s.bY>n&&e<(s.bX-r.bX)*(n-r.bY)/(s.bY-r.bY)+r.bX&&(o=!o),s=r}return o}const Hn={box:eo,doughnutLabel:xa,ellipse:Qo,label:Xo,line:Ko,point:Sa,polygon:wa};Object.keys(Hn).forEach(t=>{rt.describe(`elements.${Hn[t].id}`,{_fallback:"plugins.annotation.common"})});const rC={update:Object.assign},lC=Sl.concat(Gs),dd=(t,e)=>xe(e)?Dr(t,e):t,Or=t=>t==="color"||t==="font";function kl(t="line"){return Hn[t]?t:(console.warn(`Unknown annotation type: '${t}', defaulting to 'line'`),"line")}function cC(t,e,n,i){const o=dC(t,n.animations,i),s=e.annotations,a=gC(e.elements,s);for(let r=0;rdd(a,o)):n[i]=dd(s,o)}return n}function fC(t,e,n,i){return e.$context||(e.$context=Object.assign(Object.create(t.getContext()),{element:e,get elements(){return n.filter(o=>o&&o.options)},id:i.id,type:"annotation"}))}function gC(t,e){const n=e.length,i=t.length;if(in&&t.splice(n,i-n);return t}var mC="3.1.0";const An=new Map,hd=t=>t.type!=="doughnutLabel",vC=Sl.concat(Gs);var pC={id:"annotation",version:mC,beforeRegister(){Jw("chart.js","4.0",Nn.version)},afterRegister(){Nn.register(Hn)},afterUnregister(){Nn.unregister(Hn)},beforeInit(t){An.set(t,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(t,e,n){const i=An.get(t),o=i.annotations=[];let s=n.annotations;xe(s)?Object.keys(s).forEach(a=>{const r=s[a];xe(r)&&(r.id=a,o.push(r))}):Qe(s)&&o.push(...s),Ek(o.filter(hd),t.scales)},afterDataLimits(t,e){const n=An.get(t);Vk(t,e.scale,n.annotations.filter(hd).filter(i=>i.display&&i.adjustScaleRange))},afterUpdate(t,e,n){const i=An.get(t);Pk(t,i,n),cC(t,i,n,e.mode),i.visibleElements=i.elements.filter(o=>!o.skip&&o.options.display),Dk(t,i,n)},beforeDatasetsDraw(t,e,n){ho(t,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(t,e,n){ho(t,"afterDatasetsDraw",n.clip)},beforeDatasetDraw(t,e,n){ho(t,e.index,n.clip)},beforeDraw(t,e,n){ho(t,"beforeDraw",n.clip)},afterDraw(t,e,n){ho(t,"afterDraw",n.clip)},beforeEvent(t,e,n){const i=An.get(t);Tk(i,e.event,n)&&(e.changed=!0)},afterDestroy(t){An.delete(t)},getAnnotations(t){const e=An.get(t);return e?e.elements:[]},_getAnnotationElementsAtEventForMode(t,e,n){return bl(t,e,n)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"},colors:{properties:["backgroundColor","borderColor"],type:"color"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:t=>!vC.includes(t)&&t!=="init",annotations:{_allKeys:!1,_fallback:(t,e)=>`elements.${Hn[kl(e.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:Or,_fallback:!0},_indexable:Or}},additionalOptionScopes:[""]};function ho(t,e,n){const{ctx:i,chartArea:o}=t,s=An.get(t);n&&No(i,o);const a=bC(s.visibleElements,e).sort((r,l)=>r.element.options.z-l.element.options.z);for(const r of a)yC(i,o,s,r);n&&Wo(i)}function bC(t,e){const n=[];for(const i of t)if(i.options.drawTime===e&&n.push({element:i,main:!0}),i.elements&&i.elements.length)for(const o of i.elements)o.options.display&&o.options.drawTime===e&&n.push({element:o});return n}function yC(t,e,n,i){const o=i.element;i.main?(Gu(n,o,"beforeDraw"),o.draw(t,e),Gu(n,o,"afterDraw")):o.draw(t,e)}const _C=Se({__name:"ElectricityTariffChart",props:{modelValue:{type:Number,required:!1,default:void 0}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){e(),Nn.register(Ih,Ai,Cn,Mo,Hs,Wi,Ph,pC);const i=t,o=n,s=Be(),a=In(),r=fm("priceChart"),l=N({datasets:[{label:"Stromtarif",unit:"ct/kWh",type:"line",stepped:!0,borderColor:"rgb(18, 111, 142)",backgroundColor:"rgb(18, 111, 142)",fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:2,data:[],yAxisID:"y"}]}),c=g(()=>{let p=[];const v=s.etPrices;if(Object.keys(v).length>0){for(const[_,x]of Object.entries(v))p.push({x:parseInt(_)*1e3,y:x*1e5});const y=p.slice(-1)[0];p.push({x:y.x+(60*60-1)*1e3,y:y.y})}const b=l.value;return b.datasets[0].data=p,b}),u=g(()=>Object.keys(c.value.datasets[0].data).length>0),d=g(()=>{const p="rgba(73, 238, 73, 0.2)",v="rgba(255, 10, 13, 0.2)",b=c.value.datasets[0].data;let y=[];if(i.modelValue!==void 0){for(let _=0;_i.modelValue){let x={type:"box",drawTime:"beforeDatasetsDraw",xMin:b[_].x,xMax:0,borderWidth:1,cornerRadius:0,borderColor:v,backgroundColor:v};for(;_i.modelValue;)_++;_==b.length&&_--,x.xMax=b[_].x,y.push(x)}}return y}),h=g(()=>({plugins:{title:{display:!1},legend:{display:!1},annotation:{annotations:d.value}},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",color:a.dark.isActive?"rgb(255, 255, 255)":"rgb(0, 0, 0)"},ticks:{font:{size:12},color:a.dark.isActive?"rgb(255, 255, 255)":"rgb(0, 0, 0)"},grid:{color:a.dark.isActive?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.1)"}},y:{position:"left",type:"linear",display:"auto",title:{font:{size:12},display:!0,text:"Preis [ct/kWh]",color:a.dark.isActive?"rgb(255, 255, 255)":"rgb(0, 0, 0)"},grid:{color:a.dark.isActive?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.1)"},ticks:{font:{size:12},stepSize:.1,maxTicksLimit:11,color:a.dark.isActive?"rgb(255, 255, 255)":"rgb(0, 0, 0)"}}}}));function f(p){if(!r.value)return;const v=r.value.chart.getElementsAtEventForMode(p,"index",{intersect:!1},!0);if(v.length>0){const b=c.value.datasets[0].data[v[0].index];o("update:modelValue",Math.ceil(b.y*100)/100)}}const m={props:i,emit:o,mqttStore:s,$q:a,priceChart:r,chartDatasets:l,chartDataObject:c,chartDataRead:u,priceAnnotations:d,myChartOptions:h,chartClick:f,get ChartjsLine(){return Ah}};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}}),xC={class:"chartContainer"};function SC(t,e,n,i,o,s){return V(),K("div",xC,[i.chartDataRead?(V(),ne(i.ChartjsLine,{key:0,ref:"priceChart",data:i.chartDataObject,options:i.myChartOptions,class:"chart",onClick:i.chartClick},null,8,["data","options"])):ue("",!0)])}const wC=Me(_C,[["render",SC],["__scopeId","data-v-9992330e"],["__file","ElectricityTariffChart.vue"]]),kC=Se({__name:"ChargePointEcoSettings",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>{let b=[{value:"none",label:"keine",color:"primary"},{value:"soc",label:"EV-SoC",color:"primary"},{value:"amount",label:"Energiemenge",color:"primary"}];return s.value===void 0&&(b=b.filter(y=>y.value!=="soc")),b}),s=g(()=>i.chargePointConnectedVehicleSocType(n.chargePointId))?.value,a=[{value:1,label:"1"},{value:3,label:"Maximum"},{value:0,label:"Automatik"}],r=g(()=>i.chargePointConnectedVehicleEcoChargeCurrent(n.chargePointId)),l=g(()=>i.dcChargingEnabled),c=g(()=>i.chargePointConnectedVehicleEcoChargeDcPower(n.chargePointId)),u=g(()=>i.chargePointConnectedVehicleEcoChargePhases(n.chargePointId)),d=g(()=>i.chargePointConnectedVehicleEcoChargeLimit(n.chargePointId)),h=g(()=>i.chargePointConnectedVehicleEcoChargeLimitSoC(n.chargePointId)),f=g(()=>i.chargePointConnectedVehicleEcoChargeLimitEnergy(n.chargePointId)),m=g(()=>i.etProviderConfigured),p=g(()=>i.chargePointConnectedVehicleEcoChargeMaxPrice(n.chargePointId)),v={props:n,mqttStore:i,limitModes:o,vehicleSocType:s,phaseOptions:a,current:r,dcCharging:l,dcPower:c,numPhases:u,limitMode:d,limitSoC:h,limitEnergy:f,etConfigured:m,maxPrice:p,SliderStandard:pl,ElectricityTariffChart:wC};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}}),CC={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},MC={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},PC={key:3},TC={class:"row items-center justify-center q-ma-none q-pa-none no-wrap"},IC={class:"col-5 text-right"};function OC(t,e,n,i,o,s){return V(),K(Oe,null,[I(i.SliderStandard,{title:"Minimaler Dauerstrom unter der Preisgrenze",min:6,max:16,step:1,unit:"A",modelValue:i.current.value,"onUpdate:modelValue":e[0]||(e[0]=a=>i.current.value=a),class:"q-mt-md"},null,8,["modelValue"]),i.dcCharging?(V(),ne(i.SliderStandard,{key:0,title:"Minimaler Dauerleistung unter der Preisgrenze",min:4,max:300,step:1,unit:"kW",modelValue:i.dcPower.value,"onUpdate:modelValue":e[1]||(e[1]=a=>i.dcPower.value=a),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),e[8]||(e[8]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Anzahl Phasen",-1)),q("div",CC,[I(pn,{class:"col"},{default:L(()=>[(V(),K(Oe,null,Je(i.phaseOptions,a=>I(Ve,{key:a.value,color:i.numPhases.value===a.value?"primary":"grey",label:a.label,size:"sm",class:"col",onClick:r=>i.numPhases.value=a.value},null,8,["color","label","onClick"])),64))]),_:1})]),e[9]||(e[9]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"},"Begrenzung",-1)),q("div",MC,[I(pn,{class:"col"},{default:L(()=>[(V(!0),K(Oe,null,Je(i.limitModes,a=>(V(),ne(Ve,{key:a.value,color:i.limitMode.value===a.value?"primary":"grey",label:a.label,size:"sm",class:"col",onClick:r=>i.limitMode.value=a.value},null,8,["color","label","onClick"]))),128))]),_:1})]),i.limitMode.value==="soc"?(V(),ne(i.SliderStandard,{key:1,title:"SoC-Limit für das Fahrzeug",min:5,max:100,step:5,unit:"%",modelValue:i.limitSoC.value,"onUpdate:modelValue":e[2]||(e[2]=a=>i.limitSoC.value=a),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),i.limitMode.value==="amount"?(V(),ne(i.SliderStandard,{key:2,title:"Energie-Limit",min:1,max:50,unit:"kWh",modelValue:i.limitEnergy.value,"onUpdate:modelValue":e[3]||(e[3]=a=>i.limitEnergy.value=a),class:"q-mt-md"},null,8,["modelValue"])):ue("",!0),i.etConfigured?(V(),K("div",PC,[e[7]||(e[7]=q("div",{class:"text-subtitle2 q-mt-sm q-mr-sm"}," Preisgrenze für strompreisbasiertes Laden ",-1)),q("div",TC,[i.maxPrice.value?(V(),ne(Ve,{key:0,icon:"remove",color:"grey",size:"sm",class:"col q-mr-sm",onClick:e[4]||(e[4]=a=>i.maxPrice.value=i.maxPrice.value-.01)})):ue("",!0),i.maxPrice.value?(V(),ne(Ve,{key:1,icon:"add",color:"grey",size:"sm",class:"col",onClick:e[5]||(e[5]=a=>i.maxPrice.value=i.maxPrice.value+.01)})):ue("",!0),q("div",IC,le(i.maxPrice.value?.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})+" ct/kWh"),1)]),I(Qf,{filled:"",class:"q-mt-sm"},{default:L(()=>[I(i.ElectricityTariffChart,{modelValue:i.maxPrice.value,"onUpdate:modelValue":e[6]||(e[6]=a=>i.maxPrice.value=a)},null,8,["modelValue"])]),_:1})])):ue("",!0)],64)}const DC=Me(kC,[["render",OC],["__file","ChargePointEcoSettings.vue"]]),VC=Se({__name:"ChargePointScheduledPlanButton",props:{chargePointId:{},plan:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=["Mo","Di","Mi","Do","Fr","Sa","So"],s=g(()=>i.vehicleScheduledChargingPlanActive(n.chargePointId,n.plan.id)),a=g(()=>i.vehicleScheduledChargingPlanEtActive(n.chargePointId,n.plan.id)),r=g(()=>{let u=[],d=null;return n.plan.frequency.weekly.forEach((h,f)=>{h?d===null&&(d=f):d!==null&&(d===f-1?u.push(o[d]):u.push(`${o[d]}-${o[f-1]}`),d=null)}),d!==null&&(d===n.plan.frequency.weekly.length-1?u.push(o[d]):u.push(`${o[d]}-${o[n.plan.frequency.weekly.length-1]}`)),u.join(", ")}),l=g(()=>n.plan.frequency.once===void 0?"-":new Date(n.plan.frequency.once).toLocaleDateString(void 0,{day:"2-digit",month:"2-digit",year:"numeric"})),c={props:n,mqttStore:i,weekdays:o,planActive:s,planEtActive:a,selectedWeekDays:r,formattedDate:l};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}}),EC={class:"column"},AC={class:"plan-name"},RC={class:"plan-details"},qC={key:0},LC={key:1},FC={key:2},zC={key:0},BC={key:1};function NC(t,e,n,i,o,s){return V(),ne(Ve,{"no-caps":"",align:"center",class:"cursor-pointer",color:i.planActive.value?"positive":"negative",onClick:e[0]||(e[0]=a=>i.planActive.value=!i.planActive.value)},{default:L(()=>[q("div",EC,[q("div",AC,le(n.plan.name),1),q("div",RC,[q("div",null,[I(_e,{name:n.plan.frequency.selected==="once"?"today":n.plan.frequency.selected==="daily"?"date_range":"calendar_month",size:"sm",title:n.plan.frequency.selected==="once"?"Einmalig":n.plan.frequency.selected==="daily"?"Täglich":"Wöchentlich"},null,8,["name","title"]),n.plan.frequency.selected==="once"?(V(),K("div",qC,le(i.formattedDate),1)):ue("",!0),n.plan.frequency.selected==="weekly"?(V(),K("div",LC,le(i.selectedWeekDays),1)):ue("",!0),n.plan.frequency.selected==="daily"?(V(),K("div",FC,"täglich")):ue("",!0)]),q("div",null,[I(_e,{name:"schedule",size:"sm"}),q("div",null,le(n.plan.time),1)]),q("div",null,[I(_e,{name:n.plan.limit.selected==="soc"?"battery_full":"bolt",size:"sm"},null,8,["name"]),n.plan.limit.selected==="soc"?(V(),K("div",zC,le(n.plan.limit.soc_scheduled)+"% ",1)):ue("",!0),n.plan.limit.selected==="amount"?(V(),K("div",BC,le(n.plan.limit.amount?n.plan.limit.amount/1e3:"")+"kWh ",1)):ue("",!0)]),q("div",null,[i.planEtActive.value?(V(),ne(_e,{key:0,name:"bar_chart",size:"sm"})):ue("",!0)])])])]),_:1},8,["color"])}const WC=Me(VC,[["render",NC],["__scopeId","data-v-ddb41880"],["__file","ChargePointScheduledPlanButton.vue"]]),HC=Se({__name:"ChargePointScheduledSettings",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>i.vehicleScheduledChargingPlans(n.chargePointId)),s={props:n,mqttStore:i,plans:o,ChargePointScheduledPlanButton:WC};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),jC={key:0,class:"row q-mt-sm q-pa-sm bg-primary text-white no-wrap message-text",color:"primary",style:{"border-radius":"10px"}},$C={key:1};function UC(t,e,n,i,o,s){return V(),K(Oe,null,[e[1]||(e[1]=q("div",{class:"row justify-between items-center"},[q("div",{class:"text-subtitle2 q-mr-sm q-mt-md"},"Termine Zielladen:")],-1)),i.plans.length===0?(V(),K("div",jC,[I(_e,{name:"info",size:"sm",class:"q-mr-xs"}),e[0]||(e[0]=qe(" Keine Ladeziele festgelegt. "))])):(V(),K("div",$C,[(V(!0),K(Oe,null,Je(i.plans,(a,r)=>(V(),K("div",{key:r,class:"row q-mt-sm"},[I(i.ChargePointScheduledPlanButton,{class:"full-width","charge-point-id":i.props.chargePointId,plan:a},null,8,["charge-point-id","plan"])]))),128))]))],64)}const YC=Me(HC,[["render",UC],["__scopeId","data-v-1b9699bd"],["__file","ChargePointScheduledSettings.vue"]]),ZC=Se({__name:"ChargePointTimeCharging",props:{chargePointId:{type:Number,required:!0},readonly:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},iconSize:{type:String,default:"sm"},toolTip:{type:Boolean,default:!1}},setup(t,{expose:e}){e();const n=t,i={off:"alarm_off",on:"alarm"},o=Be(),s=o.chargePointConnectedVehicleTimeCharging(n.chargePointId),a={props:n,icon:i,mqttStore:o,timeChargingEnabled:s};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}});function XC(t,e,n,i,o,s){return i.props.readonly?(V(),ne(_e,{key:0,name:i.timeChargingEnabled?i.icon.on:i.icon.off,color:i.timeChargingEnabled?"primary":"",size:i.props.iconSize?i.props.iconSize:"sm"},{default:L(()=>[i.props.toolTip?(V(),ne(ln,{key:0},{default:L(()=>[qe(le(i.timeChargingEnabled?"Zeitladen aktiviert":"Zeitladen deaktiviert"),1)]),_:1})):ue("",!0)]),_:1},8,["name","color","size"])):(V(),ne(va,{key:1,modelValue:i.timeChargingEnabled,"onUpdate:modelValue":e[0]||(e[0]=a=>i.timeChargingEnabled=a),color:i.timeChargingEnabled?"primary":"","checked-icon":i.icon.on,"unchecked-icon":i.icon.off,size:"lg",dense:i.props.dense},null,8,["modelValue","color","checked-icon","unchecked-icon","dense"]))}const Cl=Me(ZC,[["render",XC],["__file","ChargePointTimeCharging.vue"]]),KC=Se({__name:"ChargePointTimeChargingPlanButton",props:{chargePointId:{},plan:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=["Mo","Di","Mi","Do","Fr","Sa","So"],s=g(()=>i.vehicleTimeChargingPlanActive(n.chargePointId,n.plan.id)),a=g(()=>{let c=[],u=null;return n.plan.frequency.weekly.forEach((d,h)=>{d?u===null&&(u=h):u!==null&&(u===h-1?c.push(o[u]):c.push(`${o[u]}-${o[h-1]}`),u=null)}),u!==null&&(u===n.plan.frequency.weekly.length-1?c.push(o[u]):c.push(`${o[u]}-${o[n.plan.frequency.weekly.length-1]}`)),c.join(", ")}),r=g(()=>{if(n.plan.frequency.once===void 0)return"-";const c=new Date(n.plan.frequency.once[0]),u=new Date(n.plan.frequency.once[1]),d=c.getFullYear()===u.getFullYear(),h=c.getMonth()===u.getMonth()&&d;return`${c.getDay()===u.getDay()&&h?"":c.toLocaleDateString(void 0,{day:"numeric",month:h?void 0:"numeric",year:d?void 0:"numeric"})+(h?".-":"-")}${u.toLocaleDateString(void 0,{day:"numeric",month:"numeric",year:"numeric"})}`}),l={props:n,mqttStore:i,weekdays:o,planActive:s,selectedWeekDays:a,formattedDateRange:r};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),QC={class:"column"},GC={class:"plan-name"},JC={class:"plan-details"},e1={key:0},t1={key:1},n1={key:2},i1={key:0},o1={key:0},s1={key:1};function a1(t,e,n,i,o,s){return V(),ne(Ve,{"no-caps":"",align:"center",class:"cursor-pointer",color:i.planActive.value?"positive":"negative",onClick:e[0]||(e[0]=a=>i.planActive.value=!i.planActive.value)},{default:L(()=>[q("div",QC,[q("div",GC,le(n.plan.name),1),q("div",JC,[q("div",null,[I(_e,{name:n.plan.frequency.selected==="once"?"today":n.plan.frequency.selected==="daily"?"date_range":"calendar_month",size:"sm",title:n.plan.frequency.selected==="once"?"Einmalig":n.plan.frequency.selected==="daily"?"Täglich":"Wöchentlich"},null,8,["name","title"]),n.plan.frequency.selected==="once"?(V(),K("div",e1,le(i.formattedDateRange),1)):ue("",!0),n.plan.frequency.selected==="weekly"?(V(),K("div",t1,le(i.selectedWeekDays),1)):ue("",!0),n.plan.frequency.selected==="daily"?(V(),K("div",n1,"täglich")):ue("",!0)]),q("div",null,[I(_e,{name:"schedule",size:"sm"}),q("div",null,le(n.plan.time[0])+"-"+le(n.plan.time[1]),1)]),n.plan.limit.selected!=="none"?(V(),K("div",i1,[I(_e,{name:n.plan.limit.selected==="soc"?"battery_full":"bolt",size:"sm"},null,8,["name"]),n.plan.limit.selected==="soc"?(V(),K("div",o1,le(n.plan.limit.soc)+"%",1)):ue("",!0),n.plan.limit.selected==="amount"?(V(),K("div",s1,le(n.plan.limit.amount?n.plan.limit.amount/1e3:"")+"kWh ",1)):ue("",!0)])):ue("",!0)])])]),_:1},8,["color"])}const r1=Me(KC,[["render",a1],["__scopeId","data-v-e575064c"],["__file","ChargePointTimeChargingPlanButton.vue"]]),l1=Se({__name:"ChargePointTimeChargingPlans",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>i.vehicleTimeChargingPlans(n.chargePointId)),s=i.chargePointConnectedVehicleTimeCharging(n.chargePointId),a={props:n,mqttStore:i,plans:o,timeChargingEnabled:s,ChargePointTimeCharging:Cl,ChargePointTimeChargingPlanButton:r1};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),c1={class:"row items-center q-ma-none q-pa-none no-wrap items-center justify-between"},u1={key:0,class:"row justify-between items-center"},d1={key:1,class:"row q-mt-sm q-pa-sm bg-primary text-white no-wrap message-text",color:"primary",style:{"border-radius":"10px"}},h1={key:2};function f1(t,e,n,i,o,s){return V(),K(Oe,null,[q("div",c1,[e[0]||(e[0]=q("div",{class:"text-subtitle2"},"Zeitladen",-1)),q("div",null,[I(i.ChargePointTimeCharging,{"charge-point-id":i.props.chargePointId,dense:""},null,8,["charge-point-id"])])]),i.timeChargingEnabled?(V(),K("div",u1,e[1]||(e[1]=[q("div",{class:"text-subtitle2"},"Termine Zeitladen:",-1)]))):ue("",!0),i.plans.length===0&&i.timeChargingEnabled?(V(),K("div",d1,[I(_e,{name:"info",size:"sm",class:"q-mr-xs"}),e[2]||(e[2]=qe(" Keine Zeitpläne vorhanden. "))])):i.timeChargingEnabled?(V(),K("div",h1,[(V(!0),K(Oe,null,Je(i.plans,(a,r)=>(V(),K("div",{key:r,class:"row q-mt-sm"},[I(i.ChargePointTimeChargingPlanButton,{class:"full-width","charge-point-id":i.props.chargePointId,plan:a},null,8,["charge-point-id","plan"])]))),128))])):ue("",!0)],64)}const g1=Me(l1,[["render",f1],["__scopeId","data-v-ac637b4a"],["__file","ChargePointTimeChargingPlans.vue"]]),m1=Se({__name:"ChargePointSettings",props:{chargePointId:{},modelValue:{type:Boolean}},emits:["update:model-value"],setup(t,{expose:e,emit:n}){e();const i=In(),o=Be(),s=t,a=n,r=N(s.modelValue);ge(()=>s.modelValue,h=>{r.value=h});const l=g({get:()=>r.value,set:h=>{r.value=h,a("update:model-value",h)}}),c=g(()=>o.chargePointName(s.chargePointId)),u=g(()=>o.chargePointConnectedVehicleChargeMode(s.chargePointId)),d={$q:i,mqttStore:o,props:s,emit:a,tempValue:r,visible:l,name:c,chargeMode:u,get QDialog(){return Ki},ChargePointInstantSettings:Rw,ChargePointPvSettings:Uw,ChargePointEcoSettings:DC,ChargePointScheduledSettings:YC,ChargePointPriority:ag,ChargePointLock:sg,ChargePointModeButtons:lg,ChargePointVehicleSelect:cg,ChargePointTimeChargingPlans:g1};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),v1={class:"row"},p1={class:"text-h6"},b1={class:"row items-center justify-between"},y1={class:"row items-center q-mt-sm"},_1={class:"row items-center justify-between q-mt-sm"},x1={class:"row items-center no-wrap"},S1={key:0},w1={key:1},k1={key:2},C1={key:3},M1={key:4};function P1(t,e,n,i,o,s){return V(),ne(i.QDialog,{modelValue:i.visible,"onUpdate:modelValue":e[0]||(e[0]=a=>i.visible=a),maximized:i.$q.platform.is.mobile,"backdrop-filter":i.$q.screen.width<385?"":"blur(4px)"},{default:L(()=>[I(Qi,null,{default:L(()=>[I(jn,null,{default:L(()=>[q("div",v1,[q("div",p1,"Einstellungen "+le(i.name),1),I(ug)])]),_:1}),I(jn,{class:"q-py-none"},{default:L(()=>[q("div",b1,[e[1]||(e[1]=q("div",{class:"text-subtitle2"},"Ladepunkt sperren",-1)),I(i.ChargePointLock,{"charge-point-id":i.props.chargePointId,dense:""},null,8,["charge-point-id"])]),I(xo,{class:"q-mt-sm"}),q("div",y1,[e[2]||(e[2]=q("div",null,[q("div",{class:"text-subtitle2 q-mr-sm"},"Fahrzeug")],-1)),I(i.ChargePointVehicleSelect,{"charge-point-id":i.props.chargePointId,readonly:!1},null,8,["charge-point-id"])]),q("div",_1,[e[3]||(e[3]=q("div",{class:"text-subtitle2"},"Priorität",-1)),I(i.ChargePointPriority,{"charge-point-id":i.props.chargePointId,readonly:!1,dense:""},null,8,["charge-point-id"])]),I(xo,{class:"q-mt-sm"}),q("div",x1,[I(i.ChargePointModeButtons,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])]),i.chargeMode.value==="instant_charging"?(V(),K("div",S1,[I(i.ChargePointInstantSettings,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])])):ue("",!0),i.chargeMode.value==="pv_charging"?(V(),K("div",w1,[I(i.ChargePointPvSettings,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])])):ue("",!0),i.chargeMode.value==="eco_charging"?(V(),K("div",k1,[I(i.ChargePointEcoSettings,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])])):ue("",!0),i.chargeMode.value==="scheduled_charging"?(V(),K("div",C1,[I(i.ChargePointScheduledSettings,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])])):ue("",!0),i.chargeMode.value!=="stop"?(V(),K("div",M1,[I(xo,{class:"q-my-sm"}),I(i.ChargePointTimeChargingPlans,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])])):ue("",!0)]),_:1}),I(vl,{align:"right"},{default:L(()=>[rn(I(Ve,{flat:"",label:"OK",color:"primary"},null,512),[[Mn]])]),_:1})]),_:1})]),_:1},8,["modelValue","maximized","backdrop-filter"])}const T1=Me(m1,[["render",P1],["__file","ChargePointSettings.vue"]]),I1=Se({__name:"ManualSocDialog",props:{vehicleId:{},chargePointId:{},socDialogVisible:{type:Boolean}},emits:["update:socDialogVisible"],setup(t,{expose:e,emit:n}){e();const i=Be(),o=t,s=n,a=g(()=>i.vehicleList.find(p=>p.id===o.vehicleId)?.name||""),r=g({get:()=>o.socDialogVisible,set:m=>{s("update:socDialogVisible",m)}}),l=N(void 0),c=g({get:()=>l.value??i.vehicleSocManualValue(o.vehicleId,o.chargePointId).value??0,set:m=>{l.value=Math.min(Math.max(0,m),100)}}),f={mqttStore:i,props:o,emit:s,vehicleName:a,visible:r,socValue:l,socInputValue:c,socSliderMarker:{0:"0%",50:"50%",100:"100%"},confirmChanges:()=>{i.vehicleSocManualValue(o.vehicleId,o.chargePointId).value=c.value},cancelChanges:()=>{l.value=void 0}};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),O1={class:"row"},D1={class:"text-h6 q-mr-md"},V1={class:"row justify-center items-center"},E1={class:"col-6"},A1={class:"row justify-center items-center q-mt-md"},R1={class:"col q-px-md"};function q1(t,e,n,i,o,s){return V(),ne(Ki,{modelValue:i.visible,"onUpdate:modelValue":e[4]||(e[4]=a=>i.visible=a)},{default:L(()=>[I(Qi,null,{default:L(()=>[I(jn,null,{default:L(()=>[q("div",O1,[q("div",D1,"SoC-Eingabe "+le(i.vehicleName),1),I(ug),rn(I(Ve,{icon:"close",flat:"",round:"",dense:""},null,512),[[Mn]])])]),_:1}),I(jn,{class:"q-py-none"},{default:L(()=>[q("div",V1,[q("div",E1,[I($f,{modelValue:i.socInputValue,"onUpdate:modelValue":e[2]||(e[2]=a=>i.socInputValue=a),modelModifiers:{number:!0},type:"text",inputmode:"numeric",suffix:"%","hide-spinner":"","input-class":"text-right"},{prepend:L(()=>[I(Ve,{round:"",flat:"",dense:"",icon:"remove",onClick:e[0]||(e[0]=a=>i.socInputValue--)})]),append:L(()=>[I(Ve,{round:"",flat:"",dense:"",icon:"add",onClick:e[1]||(e[1]=a=>i.socInputValue++)})]),_:1},8,["modelValue"])])]),q("div",A1,[q("div",R1,[I(Qs,{modelValue:i.socInputValue,"onUpdate:modelValue":e[3]||(e[3]=a=>i.socInputValue=a),modelModifiers:{number:!0},min:0,max:100,step:1,markers:10,"marker-labels":i.socSliderMarker,color:"primary"},null,8,["modelValue"])])])]),_:1}),I(vl,{align:"center",class:"q-mt-md"},{default:L(()=>[rn(I(Ve,{label:"Abbrechen",color:"negative",onClick:i.cancelChanges},null,512),[[Mn]]),rn(I(Ve,{label:"Bestätigen",color:"primary",onClick:i.confirmChanges},null,512),[[Mn]])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Rg=Me(I1,[["render",q1],["__file","ManualSocDialog.vue"]]),L1=["top","middle","bottom"],F1=ze({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:t=>L1.includes(t)}},setup(t,{slots:e}){const n=g(()=>t.align!==void 0?{verticalAlign:t.align}:null),i=g(()=>{const o=t.outline===!0&&t.color||t.textColor;return`q-badge flex inline items-center no-wrap q-badge--${t.multiLine===!0?"multi":"single"}-line`+(t.outline===!0?" q-badge--outline":t.color!==void 0?` bg-${t.color}`:"")+(o!==void 0?` text-${o}`:"")+(t.floating===!0?" q-badge--floating":"")+(t.rounded===!0?" q-badge--rounded":"")+(t.transparent===!0?" q-badge--transparent":"")});return()=>w("div",{class:i.value,style:n.value,role:"status","aria-label":t.label},hi(e.default,t.label!==void 0?[t.label]:[]))}}),z1=Se({__name:"ChargePointPowerData",props:{power:{},phaseNumber:{},current:{},columnDisplayFormat:{type:Boolean}},setup(t,{expose:e}){e();const n={};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}});function B1(t,e,n,i,o,s){return V(),K("div",{class:Tt(["cp-power items-center q-gutter-xs",n.columnDisplayFormat?"column":"row inline"])},[q("span",null,le(n.power),1),I(F1,{rounded:"",color:"primary",label:n.phaseNumber},{default:L(()=>[I(ln,null,{default:L(()=>e[0]||(e[0]=[qe("Phasenanzahl")])),_:1})]),_:1},8,["label"]),q("span",null,le(n.current),1)],2)}const qg=Me(z1,[["render",B1],["__scopeId","data-v-680da291"],["__file","ChargePointPowerData.vue"]]),N1=Se({__name:"ChargePointCard",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=N(null),i=li("setCardWidth"),o=Be(),s=In(),a=t,r=g(()=>o.chargePointConnectedVehicleInfo(a.chargePointId).value?.id),l=g(()=>{switch(b.value){case"instant_charging":return o.chargePointConnectedVehicleInstantChargeLimit(a.chargePointId).value;case"pv_charging":return o.chargePointConnectedVehiclePvChargeLimit(a.chargePointId).value;case"eco_charging":return o.chargePointConnectedVehicleEcoChargeLimit(a.chargePointId).value;case"scheduled_charging":return x.value.limit_mode;default:return"soc"}}),c=N(!1),u=N(!1),d=g(()=>o.chargePointName(a.chargePointId)),h=g(()=>o.chargePointPower(a.chargePointId)),f=g(()=>o.chargePointEnergyChargedPlugged(a.chargePointId)),m=g(()=>o.chargePointPhaseNumber(a.chargePointId)),p=g(()=>o.chargePointChargingCurrent(a.chargePointId)),v=g(()=>l.value==="amount"?o.chargePointEnergyChargedPlugged(a.chargePointId,"value"):Math.round(o.chargePointConnectedVehicleSoc(a.chargePointId).value?.soc??0)),b=g(()=>o.chargePointConnectedVehicleChargeMode(a.chargePointId).value),y=g(()=>{switch(b.value){case"scheduled_charging":return x.value.limit;case"instant_charging":switch(o.chargePointConnectedVehicleInstantChargeLimit(a.chargePointId).value){case"soc":return o.chargePointConnectedVehicleInstantChargeLimitSoC(a.chargePointId).value??0;case"amount":return(o.chargePointConnectedVehicleInstantChargeLimitEnergy(a.chargePointId).value??0)*1e3}case"pv_charging":switch(o.chargePointConnectedVehiclePvChargeLimit(a.chargePointId).value){case"soc":return o.chargePointConnectedVehiclePvChargeLimitSoC(a.chargePointId).value??0;case"amount":return(o.chargePointConnectedVehiclePvChargeLimitEnergy(a.chargePointId).value??0)*1e3}case"eco_charging":switch(o.chargePointConnectedVehicleEcoChargeLimit(a.chargePointId).value){case"soc":return o.chargePointConnectedVehicleEcoChargeLimitSoC(a.chargePointId).value??0;case"amount":return(o.chargePointConnectedVehicleEcoChargeLimitEnergy(a.chargePointId).value??0)*1e3}default:return}}),_=g(()=>!!(y.value&&y.value>999||C.value!==void 0)),x=g(()=>o.vehicleChargeTarget(a.chargePointId).value),C=g(()=>o.chargePointConnectedVehicleSocType(a.chargePointId))?.value,S=()=>{o.chargePointConnectedVehicleForceSocUpdate(a.chargePointId),s.notify({type:"positive",message:"SoC Update angefordert."})};Wt(()=>{const A=n.value?.$el.offsetWidth;i?.(A)});const E={cardRef:n,setCardWidth:i,mqttStore:o,$q:s,props:a,vehicleId:r,limitMode:l,settingsVisible:c,socInputVisible:u,name:d,power:h,energyChargedPlugged:f,phaseNumber:m,chargingCurrent:p,currentValue:v,chargeMode:b,target:y,showSocTargetSlider:_,vehicleTarget:x,vehicleSocType:C,refreshSoc:S,SliderDouble:gl,ChargePointLock:sg,ChargePointStateIcon:ml,ChargePointPriority:ag,ChargePointModeButtons:lg,ChargePointStateMessage:_w,ChargePointFaultMessage:ww,ChargePointVehicleSelect:cg,ChargePointSettings:T1,ManualSocDialog:Rg,ChargePointTimeCharging:Cl,ChargePointPowerData:qg};return Object.defineProperty(E,"__isScriptSetup",{enumerable:!1,value:!0}),E}}),W1={class:"row items-center text-h6 text-bold"},H1={class:"col flex items-center"},j1={class:"row items-center q-mt-sm"},$1={class:"row q-mt-sm"},U1={class:"col"},Y1={class:"col no-wrap"},Z1={class:"col text-right"};function X1(t,e,n,i,o,s){return V(),K(Oe,null,[I(Qi,{ref:"cardRef",class:"full-height card-width"},{default:L(()=>[I(jn,null,{default:L(()=>[q("div",W1,[q("div",H1,[qe(le(i.name)+" ",1),I(i.ChargePointLock,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"]),I(i.ChargePointStateIcon,{"charge-point-id":Number(i.props.chargePointId)},null,8,["charge-point-id"]),I(i.ChargePointTimeCharging,{"charge-point-id":Number(i.props.chargePointId),readonly:!0,iconSize:"xs",toolTip:!0},null,8,["charge-point-id"])]),I(_e,{class:"cursor-pointer",name:"settings",size:"sm",onClick:e[0]||(e[0]=a=>i.settingsVisible=!0)})]),I(i.ChargePointFaultMessage,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"]),I(i.ChargePointStateMessage,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"]),q("div",j1,[I(i.ChargePointVehicleSelect,{"charge-point-id":Number(i.props.chargePointId)},null,8,["charge-point-id"]),I(i.ChargePointPriority,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"])]),I(i.ChargePointModeButtons,{"charge-point-id":i.props.chargePointId},null,8,["charge-point-id"]),q("div",$1,[q("div",U1,[e[4]||(e[4]=q("div",{class:"text-subtitle2"},"Leistung",-1)),q("div",Y1,[I(i.ChargePointPowerData,{power:i.power,"phase-number":i.phaseNumber,current:i.chargingCurrent},null,8,["power","phase-number","current"])])]),q("div",Z1,[e[5]||(e[5]=q("div",{class:"text-subtitle2"},"geladen",-1)),qe(" "+le(i.energyChargedPlugged),1)])]),i.showSocTargetSlider?(V(),ne(i.SliderDouble,{key:0,class:"q-mt-sm","model-value":i.target,readonly:!0,"charge-mode":i.chargeMode,"limit-mode":i.limitMode,"current-value":i.currentValue,"target-time":i.vehicleTarget.time},{"update-soc-icon":L(()=>[i.vehicleSocType==="manual"&&i.limitMode!=="amount"?(V(),ne(_e,{key:0,name:"edit",size:"xs",class:"q-ml-xs cursor-pointer",onClick:e[1]||(e[1]=a=>i.socInputVisible=!0)},{default:L(()=>[I(ln,null,{default:L(()=>e[6]||(e[6]=[qe("SoC eingeben")])),_:1})]),_:1})):i.vehicleSocType!==void 0&&i.limitMode!=="amount"?(V(),ne(_e,{key:1,name:"refresh",size:"xs",class:"q-ml-xs cursor-pointer",onClick:i.refreshSoc},{default:L(()=>[I(ln,null,{default:L(()=>e[7]||(e[7]=[qe("SoC aktualisieren")])),_:1})]),_:1})):ue("",!0)]),_:1},8,["model-value","charge-mode","limit-mode","current-value","target-time"])):ue("",!0),oi(t.$slots,"card-footer",{},void 0,!0)]),_:3})]),_:3},512),I(i.ChargePointSettings,{chargePointId:i.props.chargePointId,modelValue:i.settingsVisible,"onUpdate:modelValue":e[2]||(e[2]=a=>i.settingsVisible=a)},null,8,["chargePointId","modelValue"]),I(i.ManualSocDialog,{vehicleId:i.vehicleId,chargePointId:i.props.chargePointId,socDialogVisible:i.socInputVisible,"onUpdate:socDialogVisible":e[3]||(e[3]=a=>i.socInputVisible=a)},null,8,["vehicleId","chargePointId","socDialogVisible"])],64)}const K1=Me(N1,[["render",X1],["__scopeId","data-v-a87bfb8a"],["__file","ChargePointCard.vue"]]),Q1=Se({__name:"ChargePointMode",props:{chargePointId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),{chargeModes:o}=cl(),s=g(()=>i.chargePointConnectedVehicleChargeMode(n.chargePointId)),a=g(()=>o.find(c=>c.value===s.value.value)?.label),r=g(()=>o.find(c=>c.value===s.value.value)?.color),l={props:n,mqttStore:i,chargeModes:o,chargeMode:s,currentModeLabel:a,currentModeColor:r};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}});function G1(t,e,n,i,o,s){return V(),ne(Ks,{outline:"",size:"sm",color:i.currentModeColor},{default:L(()=>[qe(le(i.currentModeLabel),1)]),_:1},8,["color"])}const J1=Me(Q1,[["render",G1],["__file","ChargePointMode.vue"]]),eM=Se({__name:"ChargePointInformation",setup(t,{expose:e}){e();const n=Be(),{chargeModes:i}=cl(),o=g(()=>n.chargePointIds),s=g(()=>n.themeConfiguration?.chargePoint_card_view_breakpoint||4),a=g(()=>n.themeConfiguration?.chargePoint_table_search_input_field),r=g(()=>qr.is.mobile),l=N(null),c=N(!1),u=N(""),d=g(()=>y=>{const _=n.chargePointName(y),x=n.chargePointConnectedVehicleInfo(y).value?.name||"Kein Fahrzeug",C=n.chargePointPlugState(y),S=n.chargePointConnectedVehicleChargeMode(y).value,E=i.find(G=>G.value===S),A=E?E.label:S,D=n.chargePointConnectedVehicleSoc(y).value?.soc,M=D!==void 0?`${Math.round(D)}%`:"0%",R=n.chargePointPower(y),P=n.chargePointEnergyChargedPlugged(y),H=n.chargePointConnectedVehicleTimeCharging(y).value,z=n.chargePointPhaseNumber(y),$=n.chargePointChargingCurrent(y);return{id:y,name:_,vehicle:x,plugged:C,chargeMode:A,timeCharging:H,soc:M,power:R,phaseNumber:z,current:$,powerColumn:"",charged:P}}),h=[{field:"name",label:"Ladepunkt"},{field:"vehicle",label:"Fahrzeug"},{field:"plugged",label:"Status",align:"center"},{field:"chargeMode",label:"Lademodus"},{field:"timeCharging",label:"Zeitladen",align:"center"},{field:"powerColumn",label:"Leistung",align:"right"},{field:"charged",label:"Geladen",align:"right"},{field:"soc",label:"Ladestand",align:"right"}],f=[{field:"nameAndVehicle",label:"Ladepunkt"},{field:"modePluggedTimeCharging",label:"Lademodus",align:"center"},{field:"powerColumn",label:"Leistung",align:"center"},{field:"charged",label:"Geladen",align:"right",expandField:!0},{field:"soc",label:"Ladestand",align:"right",expandField:!0}],m=f.filter(y=>!y.expandField),p=f.filter(y=>y.expandField),b={mqttStore:n,chargeModes:i,chargePointIds:o,cardViewBreakpoint:s,searchInputVisible:a,isMobile:r,selectedChargePointId:l,modalChargePointCardVisible:c,filter:u,tableRowData:d,columnConfigDesktop:h,columnConfigMobile:f,tableColumnsMobile:m,expansionColumnsMobile:p,onRowClick:y=>{l.value=y.id,c.value=!0},BaseCarousel:ul,BaseTable:ig,ChargePointCard:K1,ChargePointStateIcon:ml,ChargePointMode:J1,ChargePointTimeCharging:Cl,ChargePointPowerData:qg};return Object.defineProperty(b,"__isScriptSetup",{enumerable:!1,value:!0}),b}}),tM={class:"text-caption"},nM={class:"items-center"},iM={class:"q-pa-xs column q-gutter-y-xs"},oM={class:"col-5 text-caption text-bold"},sM={class:"col-7 text-right"},aM={class:"dialog-content"},rM={class:"card-footer"};function lM(t,e,n,i,o,s){return V(),K(Oe,null,[i.chargePointIds.length<=i.cardViewBreakpoint?(V(),ne(i.BaseCarousel,{key:0,items:i.chargePointIds},{item:L(({item:a})=>[I(i.ChargePointCard,{"charge-point-id":a},null,8,["charge-point-id"])]),_:1},8,["items"])):(V(),ne(i.BaseTable,{key:1,items:i.chargePointIds,"row-data":i.tableRowData,"column-config":i.isMobile?i.tableColumnsMobile:i.columnConfigDesktop,"search-input-visible":i.searchInputVisible,"table-height":i.isMobile?"35vh":"45vh",filter:i.filter,"onUpdate:filter":e[0]||(e[0]=a=>i.filter=a),"columns-to-search":["vehicle","name"],"row-expandable":i.isMobile,onRowClick:i.onRowClick},{"body-cell-plugged":L(a=>[I(vn,{class:Tt(`text-${a.col.align}`)},{default:L(()=>[I(i.ChargePointStateIcon,{"charge-point-id":a.row.id},null,8,["charge-point-id"])]),_:2},1032,["class"])]),"body-cell-chargeMode":L(a=>[I(vn,{class:Tt(`text-${a.col.align}`)},{default:L(()=>[I(i.ChargePointMode,{"charge-point-id":a.row.id},null,8,["charge-point-id"])]),_:2},1032,["class"])]),"body-cell-timeCharging":L(a=>[I(vn,{class:Tt(`text-${a.col.align}`)},{default:L(()=>[I(i.ChargePointTimeCharging,{"charge-point-id":a.row.id,readonly:!0,toolTip:!0,"icon-size":"xs"},null,8,["charge-point-id"])]),_:2},1032,["class"])]),"body-cell-powerColumn":L(a=>[I(vn,{class:Tt(`text-${a.col.align}`)},{default:L(()=>[I(i.ChargePointPowerData,{power:a.row.power,"phase-number":a.row.phaseNumber,current:a.row.current,"column-display-format":i.isMobile},null,8,["power","phase-number","current","column-display-format"])]),_:2},1032,["class"])]),"body-cell-nameAndVehicle":L(a=>[I(vn,{class:Tt(`text-${a.col.align}`)},{default:L(()=>[qe(le(a.row.name),1),e[2]||(e[2]=q("br",null,null,-1)),q("span",tM,le(a.row.vehicle),1)]),_:2},1032,["class"])]),"body-cell-modePluggedTimeCharging":L(a=>[I(vn,{class:Tt(`text-${a.col.align}`)},{default:L(()=>[q("div",nM,[I(i.ChargePointMode,{"charge-point-id":a.row.id},null,8,["charge-point-id"]),I(i.ChargePointStateIcon,{"charge-point-id":a.row.id},null,8,["charge-point-id"]),I(i.ChargePointTimeCharging,{"charge-point-id":a.row.id,readonly:!0,toolTip:!0,"icon-size":"xs"},null,8,["charge-point-id"])])]),_:2},1032,["class"])]),"row-expand":L(a=>[q("div",iM,[(V(!0),K(Oe,null,Je(i.expansionColumnsMobile,r=>(V(),K("div",{key:r.field,class:"row items-start"},[q("div",oM,le(r.label)+":",1),q("div",sM,le(a.row[r.field]),1)]))),128))])]),_:1},8,["items","row-data","column-config","search-input-visible","table-height","filter","row-expandable"])),I(Ki,{modelValue:i.modalChargePointCardVisible,"onUpdate:modelValue":e[1]||(e[1]=a=>i.modalChargePointCardVisible=a),"transition-show":"fade","transition-hide":"fade","backdrop-filter":t.$q.screen.width<385?"":"blur(4px)"},{default:L(()=>[q("div",aM,[i.selectedChargePointId!==null?(V(),ne(i.ChargePointCard,{key:0,"charge-point-id":i.selectedChargePointId},{"card-footer":L(()=>[q("div",rM,[rn((V(),ne(Ve,{color:"primary",flat:"","no-caps":"",class:"close-button",size:"md"},{default:L(()=>e[3]||(e[3]=[qe("Schließen")])),_:1})),[[Mn]])])]),_:1},8,["charge-point-id"])):ue("",!0)])]),_:1},8,["modelValue","backdrop-filter"])],64)}const cM=Me(eM,[["render",lM],["__scopeId","data-v-a2485117"],["__file","ChargePointInformation.vue"]]),Lg=()=>({batteryModes:[{value:"ev_mode",label:"Fahrzeuge",color:"primary",icon:"directions_car",tooltip:"Fahrzeuge"},{value:"bat_mode",label:"Speicher",color:"primary",icon:"battery_charging_full",tooltip:"Speicher"},{value:"min_soc_bat_mode",label:"Mindest-SoC",color:"primary",icon:"battery_4_bar",tooltip:"Mindest-SoC des Speichers"}]}),uM=Se({__name:"BatteryModeButtons",setup(t,{expose:e}){e();const n=Be(),{batteryModes:i}=Lg(),o=g(()=>n.batteryMode()),s={mqttStore:n,batteryModes:i,batMode:o};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}});function dM(t,e,n,i,o,s){return V(),ne(pn,{class:"q-mt-md"},{default:L(()=>[(V(!0),K(Oe,null,Je(i.batteryModes,a=>(V(),ne(Ve,{key:a.value,color:i.batMode.value===a.value?"primary":"grey",label:a.label,icon:a.icon,size:"sm",onClick:r=>i.batMode.value=a.value},{default:L(()=>[I(ln,{class:"bg-primary"},{default:L(()=>[qe(le(a.tooltip),1)]),_:2},1024)]),_:2},1032,["color","label","icon","onClick"]))),128))]),_:1})}const hM=Me(uM,[["render",dM],["__file","BatteryModeButtons.vue"]]),fM=Se({__name:"BatterySettingsDialog",props:{batteryId:{}},setup(t,{expose:e}){const n=In(),i=N(!1),o=t,s=Be(),a=g(()=>o.batteryId===void 0?"Übergreifende Einstellungen":`Einstellungen ${s.batteryName(o.batteryId)}`);e({open:()=>i.value=!0});const r={$q:n,isOpen:i,props:o,mqttStore:s,cardTitle:a,BatteryModeButtons:hM};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),gM={class:"text-h6"};function mM(t,e,n,i,o,s){return V(),ne(Ki,{modelValue:i.isOpen,"onUpdate:modelValue":e[0]||(e[0]=a=>i.isOpen=a),maximized:i.$q.screen.width<385,"backdrop-filter":i.$q.screen.width<385?"":"blur(4px)"},{default:L(()=>[I(Qi,{style:{"min-width":"24em"}},{default:L(()=>[I(jn,null,{default:L(()=>[q("div",gM,le(i.cardTitle),1),e[1]||(e[1]=q("div",{class:"text-subtitle2 q-mt-sm"},"Laden mit Überschuss Modus:",-1)),I(i.BatteryModeButtons)]),_:1}),I(vl,{align:"right"},{default:L(()=>[rn(I(Ve,{flat:"",label:"OK",color:"primary"},null,512),[[Mn]])]),_:1})]),_:1})]),_:1},8,["modelValue","maximized","backdrop-filter"])}const vM=Me(fM,[["render",mM],["__file","BatterySettingsDialog.vue"]]),pM=Se({__name:"BatteryCard",props:{batteryId:{}},setup(t,{expose:e}){e();const n=N(null),i=li("setCardWidth",void 0),o=t,s=g(()=>u.batteryIds.length===1),a=g(()=>o.batteryId===void 0||s.value),{batteryModes:r}=Lg(),l=g(()=>{const b=u.batteryMode();return r.find(y=>y.value===b.value)||r[0]}),c=N(),u=Be(),d=g(()=>o.batteryId===void 0?"Speicher Übersicht":u.batteryName(o.batteryId)),h=g(()=>o.batteryId===void 0?u.batterySocTotal:u.batterySoc(o.batteryId)),f=g(()=>o.batteryId===void 0?u.batteryTotalPower("textValue"):u.batteryPower(o.batteryId,"textValue")),m=g(()=>o.batteryId===void 0?u.batteryDailyImportedTotal("textValue"):u.batteryDailyImported(o.batteryId,"textValue")||"---"),p=g(()=>o.batteryId===void 0?u.batteryDailyExportedTotal("textValue"):u.batteryDailyExported(o.batteryId,"textValue")||"---");Wt(()=>{const b=n.value?.$el.clientWidth;i?.(b)});const v={cardRef:n,setCardWidth:i,props:o,singleBattery:s,showSettings:a,batteryModes:r,batteryMode:l,dialog:c,mqttStore:u,cardTitle:d,soc:h,power:f,dailyImportedEnergy:m,dailyExportedEnergy:p,BatterySettingsDialog:vM,SliderDouble:gl};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}}),bM={class:"row text-h6 items-center text-bold justify-between"},yM={class:"row q-mt-sm text-subtitle2 justify-between full-width"},_M={class:"q-ml-sm"},xM={key:0,class:"row q-mt-md justify-between text-subtitle2"},SM={class:"q-ml-sm row items-center"},wM={class:"row q-mt-sm text-subtitle2 justify-between full-width"},kM={class:"q-ml-sm"},CM={class:"row q-mt-sm text-subtitle2 justify-between full-width"},MM={class:"q-ml-sm"};function PM(t,e,n,i,o,s){return V(),K(Oe,null,[I(Qi,{ref:"cardRef",class:"full-height card-width"},{default:L(()=>[I(jn,null,{default:L(()=>[q("div",bM,[q("div",null,[I(_e,{name:"battery_full",size:"sm",class:"q-mr-sm",color:"primary"}),qe(" "+le(i.cardTitle),1)]),i.showSettings?(V(),ne(_e,{key:0,class:"cursor-pointer",name:"settings",size:"sm",onClick:e[0]||(e[0]=a=>i.dialog?.open())})):ue("",!0)]),q("div",yM,[e[1]||(e[1]=q("div",null,"Leistung:",-1)),q("div",_M,le(i.power),1)]),i.showSettings?(V(),K("div",xM,[e[2]||(e[2]=q("div",null,"Laden mit Überschuss:",-1)),q("div",SM,[I(_e,{name:i.batteryMode.icon,size:"sm",class:"q-mr-sm",color:"primary"},null,8,["name"]),qe(" "+le(i.batteryMode.label),1)])])):ue("",!0),e[5]||(e[5]=q("div",{class:"text-subtitle1 text-weight-bold q-mt-md"},"Heute:",-1)),q("div",wM,[e[3]||(e[3]=q("div",null,"Geladen:",-1)),q("div",kM,le(i.dailyImportedEnergy),1)]),q("div",CM,[e[4]||(e[4]=q("div",null,"Entladen:",-1)),q("div",MM,le(i.dailyExportedEnergy),1)]),I(i.SliderDouble,{class:"q-mt-sm","current-value":i.soc,readonly:!0,"limit-mode":"none"},null,8,["current-value"])]),_:1})]),_:1},512),I(i.BatterySettingsDialog,{"battery-id":i.props.batteryId,ref:"dialog"},null,8,["battery-id"])],64)}const TM=Me(pM,[["render",PM],["__scopeId","data-v-7d6fc3a9"],["__file","BatteryCard.vue"]]),IM=Se({__name:"BatteryInformation",setup(t,{expose:e}){e();const n=Be(),i=g(()=>n.batteryIds),o=g(()=>n.batteryIds.length>1),s={mqttStore:n,batteryIds:i,showBatteryOverview:o,BaseCarousel:ul,BatteryCard:TM};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),OM={key:0,class:"row justify-center"};function DM(t,e,n,i,o,s){return V(),K(Oe,null,[i.showBatteryOverview?(V(),K("div",OM,[I(i.BatteryCard,{"battery-id":void 0})])):ue("",!0),I(i.BaseCarousel,{items:i.batteryIds},{item:L(({item:a})=>[I(i.BatteryCard,{"battery-id":a},null,8,["battery-id"])]),_:1},8,["items"])],64)}const VM=Me(IM,[["render",DM],["__file","BatteryInformation.vue"]]),EM=Se({__name:"VehicleConnectionStateIcon",props:{vehicleId:{}},setup(t,{expose:e}){e();const n=t,i=Be(),o=g(()=>i.vehicleConnectionState(n.vehicleId)),s={props:n,mqttStore:i,vehicleState:o};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),AM={class:"col"},RM={class:"row wrap"};function qM(t,e,n,i,o,s){return V(),K("div",AM,[e[0]||(e[0]=q("div",{class:"text-subtitle2"},"Status:",-1)),i.vehicleState.length<1?(V(),ne(Ks,{key:0,label:"Nicht zugeordnet",color:"primary"})):ue("",!0),q("div",RM,[(V(!0),K(Oe,null,Je(i.vehicleState,(a,r)=>(V(),ne(Ks,{key:r,icon:a.plugged?"power":"power_off",color:a.plugged?a.charging?"positive":"warning":"negative",label:a.name},{default:L(()=>[I(ln,null,{default:L(()=>[qe(le(a.plugged?a.charging?"Lädt":"Angesteckt, lädt nicht":"Nicht angesteckt"),1)]),_:2},1024)]),_:2},1032,["icon","color","label"]))),128))])])}const Fg=Me(EM,[["render",qM],["__file","VehicleConnectionStateIcon.vue"]]),LM=Se({__name:"VehicleCard",props:{vehicleId:{}},setup(t,{expose:e}){e();const n=N(null),i=li("setCardWidth"),o=t,s=Be(),a=In(),r=N(!1),l=g(()=>s.vehicleList.find(m=>m.id===o.vehicleId)),c=g(()=>s.vehicleInfo(o.vehicleId)),u=g(()=>s.vehicleSocModule(o.vehicleId)?.type),d=g(()=>s.vehicleSocValue(o.vehicleId)||0),h=()=>{s.vehicleForceSocUpdate(o.vehicleId),a.notify({type:"positive",message:"SoC Update angefordert."})};Wt(()=>{const m=n.value?.$el.offsetWidth;i?.(m)});const f={cardRef:n,setCardWidth:i,props:o,mqttStore:s,$q:a,socInputVisible:r,vehicle:l,vehicleInfo:c,vehicleSocModuleType:u,vehicleSocValue:d,refreshSoc:h,SliderDouble:gl,ManualSocDialog:Rg,VehicleConnectionStateIcon:Fg};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),FM={class:"row items-center text-h6 text-bold"},zM={class:"col flex items-center"},BM={class:"row q-mt-sm"},NM={class:"col"},WM={class:"col q-pl-sm"},HM={key:0};function jM(t,e,n,i,o,s){return V(),K(Oe,null,[I(Qi,{ref:"cardRef",class:"full-height card-width"},{default:L(()=>[I(jn,null,{default:L(()=>[q("div",FM,[q("div",zM,le(i.vehicle?.name),1)]),q("div",BM,[q("div",NM,[e[2]||(e[2]=q("div",{class:"text-subtitle2"},"Hersteller:",-1)),qe(" "+le(i.vehicleInfo?.manufacturer||"keine Angabe"),1)]),q("div",WM,[e[3]||(e[3]=q("div",{class:"text-subtitle2"},"Modell:",-1)),qe(" "+le(i.vehicleInfo?.model||"keine Angabe"),1)])]),I(i.VehicleConnectionStateIcon,{"vehicle-id":n.vehicleId,class:"q-mt-sm"},null,8,["vehicle-id"]),i.vehicleSocModuleType!==null?(V(),K("div",HM,[I(i.SliderDouble,{class:"q-mt-sm","current-value":i.vehicleSocValue,readonly:!0,"limit-mode":"none"},{"update-soc-icon":L(()=>[i.vehicleSocModuleType==="manual"?(V(),ne(_e,{key:0,name:"edit",size:"xs",class:"q-ml-xs cursor-pointer",onClick:e[0]||(e[0]=a=>i.socInputVisible=!0)},{default:L(()=>[I(ln,null,{default:L(()=>e[4]||(e[4]=[qe("SoC eingeben")])),_:1})]),_:1})):i.vehicleSocModuleType!==void 0?(V(),ne(_e,{key:1,name:"refresh",size:"xs",class:"q-ml-xs cursor-pointer",onClick:i.refreshSoc},{default:L(()=>[I(ln,null,{default:L(()=>e[5]||(e[5]=[qe("SoC aktualisieren")])),_:1})]),_:1})):ue("",!0)]),_:1},8,["current-value"])])):ue("",!0),oi(t.$slots,"card-footer",{},void 0,!0)]),_:3})]),_:3},512),I(i.ManualSocDialog,{vehicleId:i.props.vehicleId,socDialogVisible:i.socInputVisible,"onUpdate:socDialogVisible":e[1]||(e[1]=a=>i.socInputVisible=a)},null,8,["vehicleId","socDialogVisible"])],64)}const $M=Me(LM,[["render",jM],["__scopeId","data-v-3872ddec"],["__file","VehicleCard.vue"]]),UM=Se({__name:"VehicleInformation",setup(t,{expose:e}){e();const n=Be(),i=g(()=>qr.is.mobile),o=N(!1),s=N(null),a=N(""),r=g(()=>n.themeConfiguration?.vehicle_table_search_input_field),l=g(()=>n.themeConfiguration?.vehicle_card_view_breakpoint||4),c=g(()=>n.vehicleList),u=g(()=>c.value.map(v=>v.id)),d=g(()=>v=>{const y=n.vehicleList.find(R=>R.id===v)?.name||"keine Angabe",_=n.vehicleConnectionState(v),x=_.some(R=>R.plugged),C=_.some(R=>R.charging),S=n.vehicleInfo(v),E=S?.manufacturer||"keine Angabe",A=S?.model||"keine Angabe",D=n.vehicleSocValue(v),M=D!==void 0?`${Math.round(D)}%`:"–";return{id:v,name:y,manufacturer:E,model:A,plugState:x,chargeState:C,vehicleSocValue:M}}),p={mqttStore:n,isMobile:i,modalChargeVehicleCardVisible:o,selectedVehicleId:s,filter:a,searchInputVisible:r,cardViewBreakpoint:l,vehicles:c,vehicleIds:u,tableRowData:d,columnConfigDesktop:[{field:"name",label:"Fahrzeug"},{field:"manufacturer",label:"Hersteller"},{field:"model",label:"Modell"},{field:"plugged",label:"Status",align:"center"},{field:"vehicleSocValue",label:"Ladestand",align:"right"}],columnConfigMobile:[{field:"name",label:"Fahrzeug"},{field:"plugged",label:"Status",align:"center"},{field:"vehicleSocValue",label:"Ladestand",align:"right"}],onRowClick:v=>{s.value=v.id,o.value=!0},BaseCarousel:ul,BaseTable:ig,ChargePointStateIcon:ml,VehicleConnectionStateIcon:Fg,VehicleCard:$M};return Object.defineProperty(p,"__isScriptSetup",{enumerable:!1,value:!0}),p}}),YM={class:"dialog-content"},ZM={class:"card-footer"};function XM(t,e,n,i,o,s){return V(),K(Oe,null,[i.vehicleIds.length<=i.cardViewBreakpoint?(V(),ne(i.BaseCarousel,{key:0,items:i.vehicleIds},{item:L(({item:a})=>[I(i.VehicleCard,{"vehicle-id":a},null,8,["vehicle-id"])]),_:1},8,["items"])):(V(),ne(i.BaseTable,{key:1,items:i.vehicleIds,"row-data":i.tableRowData,"column-config":i.isMobile?i.columnConfigMobile:i.columnConfigDesktop,"search-input-visible":i.searchInputVisible,"table-height":i.isMobile?"35vh":"45vh",filter:i.filter,"onUpdate:filter":e[0]||(e[0]=a=>i.filter=a),"columns-to-search":["name","manufacturer","model"],"row-expandable":!0,onRowClick:i.onRowClick},{"body-cell-plugged":L(a=>[I(vn,{class:Tt(`text-${a.col.align}`)},{default:L(()=>[I(i.ChargePointStateIcon,{"vehicle-id":a.row.id},null,8,["vehicle-id"])]),_:2},1032,["class"])]),"row-expand":L(a=>[I(i.VehicleConnectionStateIcon,{"vehicle-id":a.row.id},null,8,["vehicle-id"])]),_:1},8,["items","row-data","column-config","search-input-visible","table-height","filter"])),I(Ki,{modelValue:i.modalChargeVehicleCardVisible,"onUpdate:modelValue":e[1]||(e[1]=a=>i.modalChargeVehicleCardVisible=a),"transition-show":"fade","transition-hide":"fade","backdrop-filter":t.$q.screen.width<385?"":"blur(4px)"},{default:L(()=>[q("div",YM,[i.selectedVehicleId!==null?(V(),ne(i.VehicleCard,{key:0,"vehicle-id":i.selectedVehicleId},{"card-footer":L(()=>[q("div",ZM,[rn((V(),ne(Ve,{color:"primary",flat:"","no-caps":"",class:"close-button",size:"md"},{default:L(()=>e[2]||(e[2]=[qe("Schließen")])),_:1})),[[Mn]])])]),_:1},8,["vehicle-id"])):ue("",!0)])]),_:1},8,["modelValue","backdrop-filter"])],64)}const KM=Me(UM,[["render",XM],["__scopeId","data-v-16daa238"],["__file","VehicleInformation.vue"]]),QM=Se({name:"IndexPage",__name:"IndexPage",setup(t,{expose:e}){e();const i={tab:N("charge-points"),ChartCarousel:Wx,ChargePointInformation:cM,BatteryInformation:VM,VehicleInformation:KM};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),GM={class:"row justify-center full-width chart-section"},JM={class:"tab-section"};function eP(t,e,n,i,o,s){return V(),ne(Wm,{class:"column"},{default:L(()=>[q("div",GM,[I(i.ChartCarousel)]),q("div",JM,[I(Lm,{modelValue:i.tab,"onUpdate:modelValue":e[0]||(e[0]=a=>i.tab=a),dense:"",class:"q-tabs__content--align-justify"},{default:L(()=>[I(Ea,{name:"charge-points",title:"Ladepunkte"},{default:L(()=>[I(_e,{name:"ev_station",size:"md",color:"primary"})]),_:1}),I(Ea,{name:"vehicles",title:"Fahrzeuge"},{default:L(()=>[I(_e,{name:"directions_car",size:"md",color:"primary"})]),_:1}),I(Ea,{name:"batteries",title:"Speicher"},{default:L(()=>[I(_e,{name:"battery_full",size:"md",color:"primary"})]),_:1})]),_:1},8,["modelValue"]),I(Nm,{modelValue:i.tab,"onUpdate:modelValue":e[1]||(e[1]=a=>i.tab=a),class:"col"},{default:L(()=>[I(Aa,{name:"charge-points",class:"q-pa-none column"},{default:L(()=>[I(i.ChargePointInformation)]),_:1}),I(Aa,{name:"vehicles",class:"q-pa-none column"},{default:L(()=>[I(i.VehicleInformation)]),_:1}),I(Aa,{name:"batteries",class:"remove-flex-properties"},{default:L(()=>[I(i.BatteryInformation)]),_:1})]),_:1},8,["modelValue"])])]),_:1})}const aP=Me(QM,[["render",eP],["__scopeId","data-v-c7129eb4"],["__file","IndexPage.vue"]]);export{aP as default}; diff --git a/packages/modules/web_themes/koala/web/assets/IndexPage-BlQqXr39.css b/packages/modules/web_themes/koala/web/assets/IndexPage-tpThWCQf.css similarity index 63% rename from packages/modules/web_themes/koala/web/assets/IndexPage-BlQqXr39.css rename to packages/modules/web_themes/koala/web/assets/IndexPage-tpThWCQf.css index d30040d78f..9546d7a154 100644 --- a/packages/modules/web_themes/koala/web/assets/IndexPage-BlQqXr39.css +++ b/packages/modules/web_themes/koala/web/assets/IndexPage-tpThWCQf.css @@ -1 +1 @@ -.svg-container[data-v-62f971c1]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;-webkit-user-select:none;user-select:none}svg[data-v-62f971c1]{width:100%;height:100%;object-fit:contain}path[data-v-62f971c1]{fill:none;fill-rule:evenodd;stroke:#404040;stroke-width:.75;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;transition:stroke .5s}path.animated[data-v-62f971c1]{stroke:var(--q-white);stroke-dasharray:5;animation:dash-62f971c1 1s linear infinite}path.animatedReverse[data-v-62f971c1]{stroke:var(--q-white);stroke-dasharray:5;animation:dashReverse-62f971c1 1s linear infinite}path.animated.grid[data-v-62f971c1]{stroke:var(--q-negative)}path.animatedReverse.grid[data-v-62f971c1]{stroke:var(--q-positive)}:root path.home[data-v-62f971c1]{stroke:var(--q-grey)}.body--dark path.home[data-v-62f971c1]{stroke:var(--q-white)}path.animated.pv[data-v-62f971c1],path.animatedReverse.pv[data-v-62f971c1]{stroke:var(--q-positive)}path.animated.battery[data-v-62f971c1],path.animatedReverse.battery[data-v-62f971c1]{stroke:var(--q-warning)}path.animated.charge-point[data-v-62f971c1],path.animatedReverse.charge-point[data-v-62f971c1]{stroke:var(--q-primary)}path.animated.vehicle[data-v-62f971c1],path.animatedReverse.vehicle[data-v-62f971c1]{stroke:var(--q-accent)}circle[data-v-62f971c1]{fill:var(--q-secondary);fill-opacity:1;stroke:var(--q-grey);stroke-width:var(--7061f1f7);stroke-miterlimit:2;stroke-opacity:1}rect[data-v-62f971c1]{stroke-width:var(--7061f1f7);fill:var(--q-secondary)}:root image[data-v-62f971c1]{filter:brightness(.4)}.body--dark image[data-v-62f971c1]{filter:brightness(1)}@keyframes dash-62f971c1{0%{stroke-dashoffset:20}to{stroke-dashoffset:0}}@keyframes dashReverse-62f971c1{0%{stroke-dashoffset:0}to{stroke-dashoffset:20}}text[data-v-62f971c1]{font-size:var(--7c22ee07);line-height:1.25;font-family:Arial;fill:var(--q-white);fill-opacity:1}text .fill-success[data-v-62f971c1]{fill:var(--q-positive)}text .fill-danger[data-v-62f971c1]{fill:var(--q-negative)}text .fill-dark[data-v-62f971c1]{fill:var(--q-brown-text)}.grid text[data-v-62f971c1]{fill:var(--q-negative)}.grid circle[data-v-62f971c1],.grid rect[data-v-62f971c1]{stroke:var(--q-negative)}.grid circle[data-v-62f971c1]{fill:color-mix(in srgb,var(--q-negative) 20%,transparent)}.pv text[data-v-62f971c1]{fill:var(--q-positive)}.pv circle[data-v-62f971c1],.pv rect[data-v-62f971c1]{stroke:var(--q-positive)}.pv circle[data-v-62f971c1]{fill:color-mix(in srgb,var(--q-positive) 30%,transparent)}.battery text[data-v-62f971c1]{fill:var(--q-battery)}.battery circle[data-v-62f971c1],.battery rect[data-v-62f971c1]{stroke:var(--q-battery)}.battery circle[data-v-62f971c1]:not(.soc){fill:color-mix(in srgb,var(--q-battery) 50%,transparent)}:root .home text[data-v-62f971c1]{fill:var(--q-brown-text)}.body--dark .home text[data-v-62f971c1]{fill:var(--q-white)}.home circle[data-v-62f971c1],.home rect[data-v-62f971c1]{stroke:var(--q-flow-home-stroke)}.home circle[data-v-62f971c1]{fill:color-mix(in srgb,var(--q-brown-text) 20%,transparent)}.charge-point text[data-v-62f971c1]{fill:var(--q-primary)}.charge-point circle[data-v-62f971c1],.charge-point rect[data-v-62f971c1]{stroke:var(--q-primary)}.charge-point circle[data-v-62f971c1]{fill:color-mix(in srgb,var(--q-primary) 30%,transparent)}.background-circle[data-v-62f971c1]{fill:var(--q-secondary)!important}.vehicle text[data-v-62f971c1]{fill:var(--q-accent)}.vehicle circle[data-v-62f971c1],.vehicle rect[data-v-62f971c1]{stroke:var(--q-accent)}.vehicle circle[data-v-62f971c1]:not(.soc){fill:color-mix(in srgb,var(--q-accent) 50%,transparent)}.custom-legend-container[data-v-84b08d2c]{margin-bottom:5px;height:70px;border-radius:5px;text-align:left;width:100%}.legend-color-box[data-v-84b08d2c]{display:inline-block;width:20px;height:3px}.legend-item-hidden[data-v-84b08d2c]{opacity:.6!important;text-decoration:line-through!important}[data-v-84b08d2c] .q-item__section--avatar{min-width:5px!important;padding-right:0!important}@media (max-width: 576px){.legend-color-box[data-v-84b08d2c]{width:10px;height:2px}}.chart-container[data-v-c3a1aa04]{width:100%;height:100%;display:flex;flex-direction:column}.legend-wrapper[data-v-c3a1aa04]{flex:0 0 auto}.chart-wrapper[data-v-c3a1aa04]{flex:1;min-height:0}.chart-wrapper>canvas[data-v-c3a1aa04]{width:100%!important;height:100%!important}.carousel-height[data-v-85eaf875]{min-height:fit-content}.legend-button-text[data-v-85eaf875]{color:var(--q-carousel-control)}.carousel-slide[data-v-948b1306]{padding:0}.item-container[data-v-948b1306]{padding:.25em}.carousel-height[data-v-948b1306]{min-height:fit-content;height:100%}.search-field[data-v-d1f1dccd]{width:100%;max-width:18em}.clickable[data-v-d1f1dccd]{cursor:pointer}.custom-table-height[data-v-d1f1dccd]{height:var(--618895b2)}.slider-container[data-v-0e0e7cf9]{position:relative;height:40px}.current-slider[data-v-0e0e7cf9]{position:absolute;width:100%;z-index:1}.target-slider[data-v-0e0e7cf9]{position:absolute;width:100%}[data-v-674981ff] .q-btn-dropdown__arrow-container{width:0;padding:0}.flex-grow[data-v-674981ff]{flex-grow:1}.message-text[data-v-31323cae]{overflow-x:auto;overflow-y:auto}.flex-grow[data-v-ca7bfd56]{flex-grow:1}[data-v-d1d2b5c9]:root{--q-primary: #5c93d1;--q-secondary: #d2d2d7;--q-accent: #546e7a;--q-positive: #66bd7a;--q-negative: #db4f5f;--q-info: #7dc5d4;--q-warning: #d98e44;--q-background-1: #e3e3ec;--q-background-2: #eeeef3;--q-brown-text: #524f57;--q-white: #ffffff;--q-grey: #9e9e9e;--q-carousel-control: #5c93d1;--q-toggle-off: #e0e0e0;--q-flow-home-stroke: #9e9e9e;--q-battery: #ba7128;background-color:var(--q-background-1);color:var(--q-brown-text)}:root .theme-text[data-v-d1d2b5c9]{color:var(--q-brown-text)!important}:root .deselected[data-v-d1d2b5c9]{color:var(--q-grey)!important}:root .q-header[data-v-d1d2b5c9]{background-color:var(--q-background-2);color:var(--q-brown-text)}:root .q-drawer[data-v-d1d2b5c9]{background-color:var(--q-background-2)}:root .q-tab-panels[data-v-d1d2b5c9]{background-color:var(--q-background-2)}:root .q-tab[data-v-d1d2b5c9]{background-color:var(--q-background-2);border-top-left-radius:10px;border-top-right-radius:10px;border:1px solid var(--q-secondary)}:root .q-tab-icon[data-v-d1d2b5c9]{color:var(--q-primary)}:root .q-tab--active[data-v-d1d2b5c9]{background-color:#ceced3}:root .q-carousel__control .q-btn[data-v-d1d2b5c9]:before{box-shadow:none}:root .q-carousel__control .q-btn .q-icon[data-v-d1d2b5c9]{color:var(--q-primary)}:root .q-carousel__control .q-btn .q-icon[data-v-d1d2b5c9]:before{color:var(--q-primary);box-shadow:none}:root .q-carousel__slide[data-v-d1d2b5c9]{background-color:var(--q-background-2)}:root .q-card[data-v-d1d2b5c9]{background-color:var(--q-secondary)}:root .q-expansion-item__toggle-icon[data-v-d1d2b5c9]{color:var(--q-white)}:root .q-list[data-v-d1d2b5c9]{background-color:var(--q-background-2)}:root .q-toggle__thumb[data-v-d1d2b5c9]:after{background:var(--q-toggle-off)}:root .q-toggle__inner--truthy .q-toggle__thumb[data-v-d1d2b5c9]:after{background-color:currentColor}:root .white-outline-input.q-field--outlined .q-field__control[data-v-d1d2b5c9]:before{border-color:var(--q-white)!important}:root .sticky-header-table[data-v-d1d2b5c9]{height:310px}:root .sticky-header-table .q-table__top[data-v-d1d2b5c9],:root .sticky-header-table .q-table__bottom[data-v-d1d2b5c9],:root .sticky-header-table thead tr:first-child th[data-v-d1d2b5c9]{background-color:var(--q-primary);color:var(--q-white);font-size:.9rem}:root .sticky-header-table thead tr th[data-v-d1d2b5c9]{position:sticky;z-index:1}:root .sticky-header-table thead tr:first-child th[data-v-d1d2b5c9]{top:0}:root .sticky-header-table.q-table--loading thead tr:last-child th[data-v-d1d2b5c9]{top:48px}:root .sticky-header-table tbody[data-v-d1d2b5c9]{scroll-margin-top:48px;background-color:var(--q-secondary);color:var(--q-brown-text)}:root .sticky-header-table tbody tr[data-v-d1d2b5c9],:root .sticky-header-table .q-table__middle[data-v-d1d2b5c9],:root .sticky-header-table .q-table__grid-content .q-virtual-scroll .q-virtual-scroll--vertical scroll[data-v-d1d2b5c9]{background-color:var(--q-secondary)}:root .sticky-header-table tbody tr[data-v-d1d2b5c9]:hover{background-color:#0000000d}:root .sticky-header-table .q-table__middle.q-virtual-scroll[data-v-d1d2b5c9]{scrollbar-width:thin;scrollbar-color:var(--q-primary) var(--q-secondary)}:root .q-table th[data-v-d1d2b5c9],:root .q-table td[data-v-d1d2b5c9]{padding:2px 6px!important}:root .q-table th[data-v-d1d2b5c9]:first-child,:root .q-table td[data-v-d1d2b5c9]:first-child{padding-left:12px!important}:root .q-table th[data-v-d1d2b5c9]:last-child,:root .q-table td[data-v-d1d2b5c9]:last-child{padding-right:12px!important}:root .q-scrollarea[data-v-d1d2b5c9]{border:1px solid var(--q-secondary)!important}.body--dark[data-v-d1d2b5c9]{--q-primary: #3874db;--q-secondary: #28293d;--q-accent: #546e7a;--q-positive: #3e8f5e;--q-negative: #c54d57;--q-info: #4b89aa;--q-warning: #d98e44;--q-background-1: #030627;--q-background-2: #010322;--q-white: #ffffff;--q-grey: #9e9e9e;--q-carousel-control: #8b8f9f;--q-toggle-off: #e0e0e0;--q-list: rgb(40, 42, 62);--q-tab-icon: #d7d9e0;--q-flow-home-stroke: #9e9e9e;--q-battery: #d98e44;background-color:#000;color:var(--q-white)}.body--dark .theme-text[data-v-d1d2b5c9]{color:var(--q-white)!important}.body--dark .deselected[data-v-d1d2b5c9]{color:var(--q-grey)!important}.body--dark .q-header[data-v-d1d2b5c9]{background-color:var(--q-background-2);color:var(--q-white)}.body--dark .q-drawer[data-v-d1d2b5c9]{background-color:var(--q-list)}.body--dark .q-tab .q-icon[data-v-d1d2b5c9]{color:var(--q-tab-icon)!important}.body--dark .q-tab-panels[data-v-d1d2b5c9]{background-color:var(--q-background-2)}.body--dark .q-tab[data-v-d1d2b5c9]{background-color:var(--q-background-2);border-top-left-radius:10px;border-top-right-radius:10px;border:1px solid var(--q-secondary)}.body--dark .q-tab--active[data-v-d1d2b5c9]{background-color:#383a56}.body--dark .q-carousel__control .q-btn[data-v-d1d2b5c9]:before{box-shadow:none}.body--dark .q-carousel__control .q-btn .q-icon[data-v-d1d2b5c9]{color:var(--q-carousel-control)}.body--dark .q-carousel__control .q-btn .q-icon[data-v-d1d2b5c9]:before{color:var(--q-carousel-control);box-shadow:none}.body--dark .q-carousel__slide[data-v-d1d2b5c9]{background-color:var(--q-background-2);color:var(--q-white)}.body--dark .q-card[data-v-d1d2b5c9]{background-color:var(--q-secondary);color:var(--q-white)}.body--dark .q-field__label[data-v-d1d2b5c9]{color:var(--q-white)}.body--dark .q-field__control .q-field__native[data-v-d1d2b5c9]::-webkit-calendar-picker-indicator{filter:invert(1)}.body--dark .q-placeholder[data-v-d1d2b5c9]{color:var(--q-white)}.body--dark .q-list[data-v-d1d2b5c9]{background-color:var(--q-list)}.body--dark .q-menu .q-item__section[data-v-d1d2b5c9]{color:var(--q-white)!important}.body--dark .q-toggle__thumb[data-v-d1d2b5c9]:after{background:var(--q-toggle-off)}.body--dark .q-toggle__inner--truthy .q-toggle__thumb[data-v-d1d2b5c9]:after{background-color:currentColor}.body--dark .sticky-header-table[data-v-d1d2b5c9]{height:310px}.body--dark .sticky-header-table .q-table__top[data-v-d1d2b5c9],.body--dark .sticky-header-table .q-table__bottom[data-v-d1d2b5c9],.body--dark .sticky-header-table thead tr:first-child th[data-v-d1d2b5c9]{background-color:var(--q-primary);color:var(--q-white);font-size:.9rem}.body--dark .sticky-header-table thead tr th[data-v-d1d2b5c9]{position:sticky;z-index:1}.body--dark .sticky-header-table thead tr:first-child th[data-v-d1d2b5c9]{top:0}.body--dark .sticky-header-table.q-table--loading thead tr:last-child th[data-v-d1d2b5c9]{top:48px}.body--dark .sticky-header-table tbody[data-v-d1d2b5c9]{scroll-margin-top:48px;background-color:var(--q-secondary);color:var(--q-white)}.body--dark .sticky-header-table tbody tr[data-v-d1d2b5c9],.body--dark .sticky-header-table .q-table__middle[data-v-d1d2b5c9],.body--dark .sticky-header-table .q-table__grid-content[data-v-d1d2b5c9]{background-color:var(--q-secondary)}.body--dark .sticky-header-table tbody tr[data-v-d1d2b5c9]:hover{background-color:#ffffff12}.body--dark .sticky-header-table .q-table__middle.q-virtual-scroll[data-v-d1d2b5c9]{scrollbar-width:thin;scrollbar-color:var(--q-primary) var(--q-secondary)}.body--dark .q-scrollarea[data-v-d1d2b5c9]{border:1px solid var(--q-secondary)!important}.pending[data-v-d1d2b5c9]{color:#f44336}.flex-grow[data-v-d1d2b5c9]{flex-grow:1}.q-btn-group .q-btn[data-v-f45a6b19]{min-width:100px!important}body.mobile .q-btn-group .q-btn[data-v-f45a6b19]{padding:4px 8px;font-size:12px!important;min-height:30px}.chartContainer[data-v-9992330e]{width:100%;min-height:200px;height:min(50vh,300px);padding:.5em 0}.full-width[data-v-ddb41880]{width:100%}.plan-name[data-v-ddb41880]{font-weight:700}.plan-details[data-v-ddb41880]{display:flex;justify-content:center}.plan-details>div[data-v-ddb41880]{display:flex;align-items:center}.plan-details>div[data-v-ddb41880]:not(:last-child){margin-right:.5em}body.mobile .height[data-v-ddb41880]{height:2.5em}.full-width[data-v-1b9699bd],.full-width[data-v-e575064c]{width:100%}.plan-name[data-v-e575064c]{font-weight:700}.plan-details[data-v-e575064c]{display:flex;justify-content:center}.plan-details>div[data-v-e575064c]{display:flex;align-items:center}.plan-details>div[data-v-e575064c]:not(:last-child){margin-right:.5em}body.mobile .height[data-v-e575064c]{height:2.5em}.full-width[data-v-ac637b4a]{width:100%}.cp-power[data-v-680da291]{white-space:nowrap}[data-v-a6cbcd9b]:root{--q-primary: #5c93d1;--q-secondary: #d2d2d7;--q-accent: #546e7a;--q-positive: #66bd7a;--q-negative: #db4f5f;--q-info: #7dc5d4;--q-warning: #d98e44;--q-background-1: #e3e3ec;--q-background-2: #eeeef3;--q-brown-text: #524f57;--q-white: #ffffff;--q-grey: #9e9e9e;--q-carousel-control: #5c93d1;--q-toggle-off: #e0e0e0;--q-flow-home-stroke: #9e9e9e;--q-battery: #ba7128;background-color:var(--q-background-1);color:var(--q-brown-text)}:root .theme-text[data-v-a6cbcd9b]{color:var(--q-brown-text)!important}:root .deselected[data-v-a6cbcd9b]{color:var(--q-grey)!important}:root .q-header[data-v-a6cbcd9b]{background-color:var(--q-background-2);color:var(--q-brown-text)}:root .q-drawer[data-v-a6cbcd9b]{background-color:var(--q-background-2)}:root .q-tab-panels[data-v-a6cbcd9b]{background-color:var(--q-background-2)}:root .q-tab[data-v-a6cbcd9b]{background-color:var(--q-background-2);border-top-left-radius:10px;border-top-right-radius:10px;border:1px solid var(--q-secondary)}:root .q-tab-icon[data-v-a6cbcd9b]{color:var(--q-primary)}:root .q-tab--active[data-v-a6cbcd9b]{background-color:#ceced3}:root .q-carousel__control .q-btn[data-v-a6cbcd9b]:before{box-shadow:none}:root .q-carousel__control .q-btn .q-icon[data-v-a6cbcd9b]{color:var(--q-primary)}:root .q-carousel__control .q-btn .q-icon[data-v-a6cbcd9b]:before{color:var(--q-primary);box-shadow:none}:root .q-carousel__slide[data-v-a6cbcd9b]{background-color:var(--q-background-2)}:root .q-card[data-v-a6cbcd9b]{background-color:var(--q-secondary)}:root .q-expansion-item__toggle-icon[data-v-a6cbcd9b]{color:var(--q-white)}:root .q-list[data-v-a6cbcd9b]{background-color:var(--q-background-2)}:root .q-toggle__thumb[data-v-a6cbcd9b]:after{background:var(--q-toggle-off)}:root .q-toggle__inner--truthy .q-toggle__thumb[data-v-a6cbcd9b]:after{background-color:currentColor}:root .white-outline-input.q-field--outlined .q-field__control[data-v-a6cbcd9b]:before{border-color:var(--q-white)!important}:root .sticky-header-table[data-v-a6cbcd9b]{height:310px}:root .sticky-header-table .q-table__top[data-v-a6cbcd9b],:root .sticky-header-table .q-table__bottom[data-v-a6cbcd9b],:root .sticky-header-table thead tr:first-child th[data-v-a6cbcd9b]{background-color:var(--q-primary);color:var(--q-white);font-size:.9rem}:root .sticky-header-table thead tr th[data-v-a6cbcd9b]{position:sticky;z-index:1}:root .sticky-header-table thead tr:first-child th[data-v-a6cbcd9b]{top:0}:root .sticky-header-table.q-table--loading thead tr:last-child th[data-v-a6cbcd9b]{top:48px}:root .sticky-header-table tbody[data-v-a6cbcd9b]{scroll-margin-top:48px;background-color:var(--q-secondary);color:var(--q-brown-text)}:root .sticky-header-table tbody tr[data-v-a6cbcd9b],:root .sticky-header-table .q-table__middle[data-v-a6cbcd9b],:root .sticky-header-table .q-table__grid-content .q-virtual-scroll .q-virtual-scroll--vertical scroll[data-v-a6cbcd9b]{background-color:var(--q-secondary)}:root .sticky-header-table tbody tr[data-v-a6cbcd9b]:hover{background-color:#0000000d}:root .sticky-header-table .q-table__middle.q-virtual-scroll[data-v-a6cbcd9b]{scrollbar-width:thin;scrollbar-color:var(--q-primary) var(--q-secondary)}:root .q-table th[data-v-a6cbcd9b],:root .q-table td[data-v-a6cbcd9b]{padding:2px 6px!important}:root .q-table th[data-v-a6cbcd9b]:first-child,:root .q-table td[data-v-a6cbcd9b]:first-child{padding-left:12px!important}:root .q-table th[data-v-a6cbcd9b]:last-child,:root .q-table td[data-v-a6cbcd9b]:last-child{padding-right:12px!important}:root .q-scrollarea[data-v-a6cbcd9b]{border:1px solid var(--q-secondary)!important}.body--dark[data-v-a6cbcd9b]{--q-primary: #3874db;--q-secondary: #28293d;--q-accent: #546e7a;--q-positive: #3e8f5e;--q-negative: #c54d57;--q-info: #4b89aa;--q-warning: #d98e44;--q-background-1: #030627;--q-background-2: #010322;--q-white: #ffffff;--q-grey: #9e9e9e;--q-carousel-control: #8b8f9f;--q-toggle-off: #e0e0e0;--q-list: rgb(40, 42, 62);--q-tab-icon: #d7d9e0;--q-flow-home-stroke: #9e9e9e;--q-battery: #d98e44;background-color:#000;color:var(--q-white)}.body--dark .theme-text[data-v-a6cbcd9b]{color:var(--q-white)!important}.body--dark .deselected[data-v-a6cbcd9b]{color:var(--q-grey)!important}.body--dark .q-header[data-v-a6cbcd9b]{background-color:var(--q-background-2);color:var(--q-white)}.body--dark .q-drawer[data-v-a6cbcd9b]{background-color:var(--q-list)}.body--dark .q-tab .q-icon[data-v-a6cbcd9b]{color:var(--q-tab-icon)!important}.body--dark .q-tab-panels[data-v-a6cbcd9b]{background-color:var(--q-background-2)}.body--dark .q-tab[data-v-a6cbcd9b]{background-color:var(--q-background-2);border-top-left-radius:10px;border-top-right-radius:10px;border:1px solid var(--q-secondary)}.body--dark .q-tab--active[data-v-a6cbcd9b]{background-color:#383a56}.body--dark .q-carousel__control .q-btn[data-v-a6cbcd9b]:before{box-shadow:none}.body--dark .q-carousel__control .q-btn .q-icon[data-v-a6cbcd9b]{color:var(--q-carousel-control)}.body--dark .q-carousel__control .q-btn .q-icon[data-v-a6cbcd9b]:before{color:var(--q-carousel-control);box-shadow:none}.body--dark .q-carousel__slide[data-v-a6cbcd9b]{background-color:var(--q-background-2);color:var(--q-white)}.body--dark .q-card[data-v-a6cbcd9b]{background-color:var(--q-secondary);color:var(--q-white)}.body--dark .q-field__label[data-v-a6cbcd9b]{color:var(--q-white)}.body--dark .q-field__control .q-field__native[data-v-a6cbcd9b]::-webkit-calendar-picker-indicator{filter:invert(1)}.body--dark .q-placeholder[data-v-a6cbcd9b]{color:var(--q-white)}.body--dark .q-list[data-v-a6cbcd9b]{background-color:var(--q-list)}.body--dark .q-menu .q-item__section[data-v-a6cbcd9b]{color:var(--q-white)!important}.body--dark .q-toggle__thumb[data-v-a6cbcd9b]:after{background:var(--q-toggle-off)}.body--dark .q-toggle__inner--truthy .q-toggle__thumb[data-v-a6cbcd9b]:after{background-color:currentColor}.body--dark .sticky-header-table[data-v-a6cbcd9b]{height:310px}.body--dark .sticky-header-table .q-table__top[data-v-a6cbcd9b],.body--dark .sticky-header-table .q-table__bottom[data-v-a6cbcd9b],.body--dark .sticky-header-table thead tr:first-child th[data-v-a6cbcd9b]{background-color:var(--q-primary);color:var(--q-white);font-size:.9rem}.body--dark .sticky-header-table thead tr th[data-v-a6cbcd9b]{position:sticky;z-index:1}.body--dark .sticky-header-table thead tr:first-child th[data-v-a6cbcd9b]{top:0}.body--dark .sticky-header-table.q-table--loading thead tr:last-child th[data-v-a6cbcd9b]{top:48px}.body--dark .sticky-header-table tbody[data-v-a6cbcd9b]{scroll-margin-top:48px;background-color:var(--q-secondary);color:var(--q-white)}.body--dark .sticky-header-table tbody tr[data-v-a6cbcd9b],.body--dark .sticky-header-table .q-table__middle[data-v-a6cbcd9b],.body--dark .sticky-header-table .q-table__grid-content[data-v-a6cbcd9b]{background-color:var(--q-secondary)}.body--dark .sticky-header-table tbody tr[data-v-a6cbcd9b]:hover{background-color:#ffffff12}.body--dark .sticky-header-table .q-table__middle.q-virtual-scroll[data-v-a6cbcd9b]{scrollbar-width:thin;scrollbar-color:var(--q-primary) var(--q-secondary)}.body--dark .q-scrollarea[data-v-a6cbcd9b]{border:1px solid var(--q-secondary)!important}.card-width[data-v-a6cbcd9b]{width:22em}.dialog-content[data-v-5ec2c8a3]{width:auto;max-width:24em}.close-button[data-v-5ec2c8a3]{position:absolute;bottom:.4em;right:.4em;z-index:1;background:transparent}.card-footer[data-v-5ec2c8a3]{height:1.9em}.card-width[data-v-57ae2080]{width:22em}[data-v-fd634951]:root{--q-primary: #5c93d1;--q-secondary: #d2d2d7;--q-accent: #546e7a;--q-positive: #66bd7a;--q-negative: #db4f5f;--q-info: #7dc5d4;--q-warning: #d98e44;--q-background-1: #e3e3ec;--q-background-2: #eeeef3;--q-brown-text: #524f57;--q-white: #ffffff;--q-grey: #9e9e9e;--q-carousel-control: #5c93d1;--q-toggle-off: #e0e0e0;--q-flow-home-stroke: #9e9e9e;--q-battery: #ba7128;background-color:var(--q-background-1);color:var(--q-brown-text)}:root .theme-text[data-v-fd634951]{color:var(--q-brown-text)!important}:root .deselected[data-v-fd634951]{color:var(--q-grey)!important}:root .q-header[data-v-fd634951]{background-color:var(--q-background-2);color:var(--q-brown-text)}:root .q-drawer[data-v-fd634951]{background-color:var(--q-background-2)}:root .q-tab-panels[data-v-fd634951]{background-color:var(--q-background-2)}:root .q-tab[data-v-fd634951]{background-color:var(--q-background-2);border-top-left-radius:10px;border-top-right-radius:10px;border:1px solid var(--q-secondary)}:root .q-tab-icon[data-v-fd634951]{color:var(--q-primary)}:root .q-tab--active[data-v-fd634951]{background-color:#ceced3}:root .q-carousel__control .q-btn[data-v-fd634951]:before{box-shadow:none}:root .q-carousel__control .q-btn .q-icon[data-v-fd634951]{color:var(--q-primary)}:root .q-carousel__control .q-btn .q-icon[data-v-fd634951]:before{color:var(--q-primary);box-shadow:none}:root .q-carousel__slide[data-v-fd634951]{background-color:var(--q-background-2)}:root .q-card[data-v-fd634951]{background-color:var(--q-secondary)}:root .q-expansion-item__toggle-icon[data-v-fd634951]{color:var(--q-white)}:root .q-list[data-v-fd634951]{background-color:var(--q-background-2)}:root .q-toggle__thumb[data-v-fd634951]:after{background:var(--q-toggle-off)}:root .q-toggle__inner--truthy .q-toggle__thumb[data-v-fd634951]:after{background-color:currentColor}:root .white-outline-input.q-field--outlined .q-field__control[data-v-fd634951]:before{border-color:var(--q-white)!important}:root .sticky-header-table[data-v-fd634951]{height:310px}:root .sticky-header-table .q-table__top[data-v-fd634951],:root .sticky-header-table .q-table__bottom[data-v-fd634951],:root .sticky-header-table thead tr:first-child th[data-v-fd634951]{background-color:var(--q-primary);color:var(--q-white);font-size:.9rem}:root .sticky-header-table thead tr th[data-v-fd634951]{position:sticky;z-index:1}:root .sticky-header-table thead tr:first-child th[data-v-fd634951]{top:0}:root .sticky-header-table.q-table--loading thead tr:last-child th[data-v-fd634951]{top:48px}:root .sticky-header-table tbody[data-v-fd634951]{scroll-margin-top:48px;background-color:var(--q-secondary);color:var(--q-brown-text)}:root .sticky-header-table tbody tr[data-v-fd634951],:root .sticky-header-table .q-table__middle[data-v-fd634951],:root .sticky-header-table .q-table__grid-content .q-virtual-scroll .q-virtual-scroll--vertical scroll[data-v-fd634951]{background-color:var(--q-secondary)}:root .sticky-header-table tbody tr[data-v-fd634951]:hover{background-color:#0000000d}:root .sticky-header-table .q-table__middle.q-virtual-scroll[data-v-fd634951]{scrollbar-width:thin;scrollbar-color:var(--q-primary) var(--q-secondary)}:root .q-table th[data-v-fd634951],:root .q-table td[data-v-fd634951]{padding:2px 6px!important}:root .q-table th[data-v-fd634951]:first-child,:root .q-table td[data-v-fd634951]:first-child{padding-left:12px!important}:root .q-table th[data-v-fd634951]:last-child,:root .q-table td[data-v-fd634951]:last-child{padding-right:12px!important}:root .q-scrollarea[data-v-fd634951]{border:1px solid var(--q-secondary)!important}.body--dark[data-v-fd634951]{--q-primary: #3874db;--q-secondary: #28293d;--q-accent: #546e7a;--q-positive: #3e8f5e;--q-negative: #c54d57;--q-info: #4b89aa;--q-warning: #d98e44;--q-background-1: #030627;--q-background-2: #010322;--q-white: #ffffff;--q-grey: #9e9e9e;--q-carousel-control: #8b8f9f;--q-toggle-off: #e0e0e0;--q-list: rgb(40, 42, 62);--q-tab-icon: #d7d9e0;--q-flow-home-stroke: #9e9e9e;--q-battery: #d98e44;background-color:#000;color:var(--q-white)}.body--dark .theme-text[data-v-fd634951]{color:var(--q-white)!important}.body--dark .deselected[data-v-fd634951]{color:var(--q-grey)!important}.body--dark .q-header[data-v-fd634951]{background-color:var(--q-background-2);color:var(--q-white)}.body--dark .q-drawer[data-v-fd634951]{background-color:var(--q-list)}.body--dark .q-tab .q-icon[data-v-fd634951]{color:var(--q-tab-icon)!important}.body--dark .q-tab-panels[data-v-fd634951]{background-color:var(--q-background-2)}.body--dark .q-tab[data-v-fd634951]{background-color:var(--q-background-2);border-top-left-radius:10px;border-top-right-radius:10px;border:1px solid var(--q-secondary)}.body--dark .q-tab--active[data-v-fd634951]{background-color:#383a56}.body--dark .q-carousel__control .q-btn[data-v-fd634951]:before{box-shadow:none}.body--dark .q-carousel__control .q-btn .q-icon[data-v-fd634951]{color:var(--q-carousel-control)}.body--dark .q-carousel__control .q-btn .q-icon[data-v-fd634951]:before{color:var(--q-carousel-control);box-shadow:none}.body--dark .q-carousel__slide[data-v-fd634951]{background-color:var(--q-background-2);color:var(--q-white)}.body--dark .q-card[data-v-fd634951]{background-color:var(--q-secondary);color:var(--q-white)}.body--dark .q-field__label[data-v-fd634951]{color:var(--q-white)}.body--dark .q-field__control .q-field__native[data-v-fd634951]::-webkit-calendar-picker-indicator{filter:invert(1)}.body--dark .q-placeholder[data-v-fd634951]{color:var(--q-white)}.body--dark .q-list[data-v-fd634951]{background-color:var(--q-list)}.body--dark .q-menu .q-item__section[data-v-fd634951]{color:var(--q-white)!important}.body--dark .q-toggle__thumb[data-v-fd634951]:after{background:var(--q-toggle-off)}.body--dark .q-toggle__inner--truthy .q-toggle__thumb[data-v-fd634951]:after{background-color:currentColor}.body--dark .sticky-header-table[data-v-fd634951]{height:310px}.body--dark .sticky-header-table .q-table__top[data-v-fd634951],.body--dark .sticky-header-table .q-table__bottom[data-v-fd634951],.body--dark .sticky-header-table thead tr:first-child th[data-v-fd634951]{background-color:var(--q-primary);color:var(--q-white);font-size:.9rem}.body--dark .sticky-header-table thead tr th[data-v-fd634951]{position:sticky;z-index:1}.body--dark .sticky-header-table thead tr:first-child th[data-v-fd634951]{top:0}.body--dark .sticky-header-table.q-table--loading thead tr:last-child th[data-v-fd634951]{top:48px}.body--dark .sticky-header-table tbody[data-v-fd634951]{scroll-margin-top:48px;background-color:var(--q-secondary);color:var(--q-white)}.body--dark .sticky-header-table tbody tr[data-v-fd634951],.body--dark .sticky-header-table .q-table__middle[data-v-fd634951],.body--dark .sticky-header-table .q-table__grid-content[data-v-fd634951]{background-color:var(--q-secondary)}.body--dark .sticky-header-table tbody tr[data-v-fd634951]:hover{background-color:#ffffff12}.body--dark .sticky-header-table .q-table__middle.q-virtual-scroll[data-v-fd634951]{scrollbar-width:thin;scrollbar-color:var(--q-primary) var(--q-secondary)}.body--dark .q-scrollarea[data-v-fd634951]{border:1px solid var(--q-secondary)!important}.card-width[data-v-fd634951]{width:22em}.slider-container[data-v-fd634951]{position:relative;height:40px}.dialog-content[data-v-ed75dfe1]{width:auto;max-width:24em}.close-button[data-v-ed75dfe1]{position:absolute;bottom:.4em;right:.4em;z-index:1;background:transparent}.card-footer[data-v-ed75dfe1]{height:1.9em}.chart-section[data-v-c7129eb4]{height:40vh} +.svg-container[data-v-62f971c1]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;-webkit-user-select:none;user-select:none}svg[data-v-62f971c1]{width:100%;height:100%;object-fit:contain}path[data-v-62f971c1]{fill:none;fill-rule:evenodd;stroke:#404040;stroke-width:.75;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;transition:stroke .5s}path.animated[data-v-62f971c1]{stroke:var(--q-white);stroke-dasharray:5;animation:dash-62f971c1 1s linear infinite}path.animatedReverse[data-v-62f971c1]{stroke:var(--q-white);stroke-dasharray:5;animation:dashReverse-62f971c1 1s linear infinite}path.animated.grid[data-v-62f971c1]{stroke:var(--q-negative)}path.animatedReverse.grid[data-v-62f971c1]{stroke:var(--q-positive)}:root path.home[data-v-62f971c1]{stroke:var(--q-grey)}.body--dark path.home[data-v-62f971c1]{stroke:var(--q-white)}path.animated.pv[data-v-62f971c1],path.animatedReverse.pv[data-v-62f971c1]{stroke:var(--q-positive)}path.animated.battery[data-v-62f971c1],path.animatedReverse.battery[data-v-62f971c1]{stroke:var(--q-warning)}path.animated.charge-point[data-v-62f971c1],path.animatedReverse.charge-point[data-v-62f971c1]{stroke:var(--q-primary)}path.animated.vehicle[data-v-62f971c1],path.animatedReverse.vehicle[data-v-62f971c1]{stroke:var(--q-accent)}circle[data-v-62f971c1]{fill:var(--q-secondary);fill-opacity:1;stroke:var(--q-grey);stroke-width:var(--7061f1f7);stroke-miterlimit:2;stroke-opacity:1}rect[data-v-62f971c1]{stroke-width:var(--7061f1f7);fill:var(--q-secondary)}:root image[data-v-62f971c1]{filter:brightness(.4)}.body--dark image[data-v-62f971c1]{filter:brightness(1)}@keyframes dash-62f971c1{0%{stroke-dashoffset:20}to{stroke-dashoffset:0}}@keyframes dashReverse-62f971c1{0%{stroke-dashoffset:0}to{stroke-dashoffset:20}}text[data-v-62f971c1]{font-size:var(--7c22ee07);line-height:1.25;font-family:Arial;fill:var(--q-white);fill-opacity:1}text .fill-success[data-v-62f971c1]{fill:var(--q-positive)}text .fill-danger[data-v-62f971c1]{fill:var(--q-negative)}text .fill-dark[data-v-62f971c1]{fill:var(--q-brown-text)}.grid text[data-v-62f971c1]{fill:var(--q-negative)}.grid circle[data-v-62f971c1],.grid rect[data-v-62f971c1]{stroke:var(--q-negative)}.grid circle[data-v-62f971c1]{fill:color-mix(in srgb,var(--q-negative) 20%,transparent)}.pv text[data-v-62f971c1]{fill:var(--q-positive)}.pv circle[data-v-62f971c1],.pv rect[data-v-62f971c1]{stroke:var(--q-positive)}.pv circle[data-v-62f971c1]{fill:color-mix(in srgb,var(--q-positive) 30%,transparent)}.battery text[data-v-62f971c1]{fill:var(--q-battery)}.battery circle[data-v-62f971c1],.battery rect[data-v-62f971c1]{stroke:var(--q-battery)}.battery circle[data-v-62f971c1]:not(.soc){fill:color-mix(in srgb,var(--q-battery) 50%,transparent)}:root .home text[data-v-62f971c1]{fill:var(--q-brown-text)}.body--dark .home text[data-v-62f971c1]{fill:var(--q-white)}.home circle[data-v-62f971c1],.home rect[data-v-62f971c1]{stroke:var(--q-flow-home-stroke)}.home circle[data-v-62f971c1]{fill:color-mix(in srgb,var(--q-brown-text) 20%,transparent)}.charge-point text[data-v-62f971c1]{fill:var(--q-primary)}.charge-point circle[data-v-62f971c1],.charge-point rect[data-v-62f971c1]{stroke:var(--q-primary)}.charge-point circle[data-v-62f971c1]{fill:color-mix(in srgb,var(--q-primary) 30%,transparent)}.background-circle[data-v-62f971c1]{fill:var(--q-secondary)!important}.vehicle text[data-v-62f971c1]{fill:var(--q-accent)}.vehicle circle[data-v-62f971c1],.vehicle rect[data-v-62f971c1]{stroke:var(--q-accent)}.vehicle circle[data-v-62f971c1]:not(.soc){fill:color-mix(in srgb,var(--q-accent) 50%,transparent)}.custom-legend-container[data-v-84b08d2c]{margin-bottom:5px;height:70px;border-radius:5px;text-align:left;width:100%}.legend-color-box[data-v-84b08d2c]{display:inline-block;width:20px;height:3px}.legend-item-hidden[data-v-84b08d2c]{opacity:.6!important;text-decoration:line-through!important}[data-v-84b08d2c] .q-item__section--avatar{min-width:5px!important;padding-right:0!important}@media (max-width: 576px){.legend-color-box[data-v-84b08d2c]{width:10px;height:2px}}.chart-container[data-v-c3a1aa04]{width:100%;height:100%;display:flex;flex-direction:column}.legend-wrapper[data-v-c3a1aa04]{flex:0 0 auto}.chart-wrapper[data-v-c3a1aa04]{flex:1;min-height:0}.chart-wrapper>canvas[data-v-c3a1aa04]{width:100%!important;height:100%!important}.carousel-height[data-v-85eaf875]{min-height:fit-content}.legend-button-text[data-v-85eaf875]{color:var(--q-carousel-control)}.carousel-slide[data-v-ec729668]{padding:0}.item-container[data-v-ec729668]{padding:.25em}.carousel-height[data-v-ec729668]{min-height:fit-content;height:100%}.search-field[data-v-d1f1dccd]{width:100%;max-width:18em}.clickable[data-v-d1f1dccd]{cursor:pointer}.custom-table-height[data-v-d1f1dccd]{height:var(--618895b2)}.slider-container[data-v-0e0e7cf9]{position:relative;height:40px}.current-slider[data-v-0e0e7cf9]{position:absolute;width:100%;z-index:1}.target-slider[data-v-0e0e7cf9]{position:absolute;width:100%}[data-v-674981ff] .q-btn-dropdown__arrow-container{width:0;padding:0}.flex-grow[data-v-674981ff]{flex-grow:1}.message-text[data-v-31323cae]{overflow-x:auto;overflow-y:auto}.flex-grow[data-v-ca7bfd56]{flex-grow:1}[data-v-d1d2b5c9]:root{--q-primary: #5c93d1;--q-secondary: #d2d2d7;--q-accent: #546e7a;--q-positive: #66bd7a;--q-negative: #db4f5f;--q-info: #7dc5d4;--q-warning: #d98e44;--q-background-1: #e3e3ec;--q-background-2: #eeeef3;--q-brown-text: #524f57;--q-white: #ffffff;--q-grey: #9e9e9e;--q-carousel-control: #5c93d1;--q-toggle-off: #e0e0e0;--q-flow-home-stroke: #9e9e9e;--q-battery: #ba7128;background-color:var(--q-background-1);color:var(--q-brown-text)}:root .theme-text[data-v-d1d2b5c9]{color:var(--q-brown-text)!important}:root .deselected[data-v-d1d2b5c9]{color:var(--q-grey)!important}:root .q-header[data-v-d1d2b5c9]{background-color:var(--q-background-2);color:var(--q-brown-text)}:root .q-drawer[data-v-d1d2b5c9]{background-color:var(--q-background-2)}:root .q-tab-panels[data-v-d1d2b5c9]{background-color:var(--q-background-2)}:root .q-tab[data-v-d1d2b5c9]{background-color:var(--q-background-2);border-top-left-radius:10px;border-top-right-radius:10px;border:1px solid var(--q-secondary)}:root .q-tab-icon[data-v-d1d2b5c9]{color:var(--q-primary)}:root .q-tab--active[data-v-d1d2b5c9]{background-color:#ceced3}:root .q-carousel__control .q-btn[data-v-d1d2b5c9]:before{box-shadow:none}:root .q-carousel__control .q-btn .q-icon[data-v-d1d2b5c9]{color:var(--q-primary)}:root .q-carousel__control .q-btn .q-icon[data-v-d1d2b5c9]:before{color:var(--q-primary);box-shadow:none}:root .q-carousel__slide[data-v-d1d2b5c9]{background-color:var(--q-background-2)}:root .q-card[data-v-d1d2b5c9]{background-color:var(--q-secondary)}:root .q-expansion-item__toggle-icon[data-v-d1d2b5c9]{color:var(--q-white)}:root .q-list[data-v-d1d2b5c9]{background-color:var(--q-background-2)}:root .q-toggle__thumb[data-v-d1d2b5c9]:after{background:var(--q-toggle-off)}:root .q-toggle__inner--truthy .q-toggle__thumb[data-v-d1d2b5c9]:after{background-color:currentColor}:root .white-outline-input.q-field--outlined .q-field__control[data-v-d1d2b5c9]:before{border-color:var(--q-white)!important}:root .sticky-header-table[data-v-d1d2b5c9]{height:310px}:root .sticky-header-table .q-table__top[data-v-d1d2b5c9],:root .sticky-header-table .q-table__bottom[data-v-d1d2b5c9],:root .sticky-header-table thead tr:first-child th[data-v-d1d2b5c9]{background-color:var(--q-primary);color:var(--q-white);font-size:.9rem}:root .sticky-header-table thead tr th[data-v-d1d2b5c9]{position:sticky;z-index:1}:root .sticky-header-table thead tr:first-child th[data-v-d1d2b5c9]{top:0}:root .sticky-header-table.q-table--loading thead tr:last-child th[data-v-d1d2b5c9]{top:48px}:root .sticky-header-table tbody[data-v-d1d2b5c9]{scroll-margin-top:48px;background-color:var(--q-secondary);color:var(--q-brown-text)}:root .sticky-header-table tbody tr[data-v-d1d2b5c9],:root .sticky-header-table .q-table__middle[data-v-d1d2b5c9],:root .sticky-header-table .q-table__grid-content .q-virtual-scroll .q-virtual-scroll--vertical scroll[data-v-d1d2b5c9]{background-color:var(--q-secondary)}:root .sticky-header-table tbody tr[data-v-d1d2b5c9]:hover{background-color:#0000000d}:root .sticky-header-table .q-table__middle.q-virtual-scroll[data-v-d1d2b5c9]{scrollbar-width:thin;scrollbar-color:var(--q-primary) var(--q-secondary)}:root .q-table th[data-v-d1d2b5c9],:root .q-table td[data-v-d1d2b5c9]{padding:2px 6px!important}:root .q-table th[data-v-d1d2b5c9]:first-child,:root .q-table td[data-v-d1d2b5c9]:first-child{padding-left:12px!important}:root .q-table th[data-v-d1d2b5c9]:last-child,:root .q-table td[data-v-d1d2b5c9]:last-child{padding-right:12px!important}:root .q-scrollarea[data-v-d1d2b5c9]{border:1px solid var(--q-secondary)!important}.body--dark[data-v-d1d2b5c9]{--q-primary: #3874db;--q-secondary: #28293d;--q-accent: #546e7a;--q-positive: #3e8f5e;--q-negative: #c54d57;--q-info: #4b89aa;--q-warning: #d98e44;--q-background-1: #030627;--q-background-2: #010322;--q-white: #ffffff;--q-grey: #9e9e9e;--q-carousel-control: #8b8f9f;--q-toggle-off: #e0e0e0;--q-list: rgb(40, 42, 62);--q-tab-icon: #d7d9e0;--q-flow-home-stroke: #9e9e9e;--q-battery: #d98e44;background-color:#000;color:var(--q-white)}.body--dark .theme-text[data-v-d1d2b5c9]{color:var(--q-white)!important}.body--dark .deselected[data-v-d1d2b5c9]{color:var(--q-grey)!important}.body--dark .q-header[data-v-d1d2b5c9]{background-color:var(--q-background-2);color:var(--q-white)}.body--dark .q-drawer[data-v-d1d2b5c9]{background-color:var(--q-list)}.body--dark .q-tab .q-icon[data-v-d1d2b5c9]{color:var(--q-tab-icon)!important}.body--dark .q-tab-panels[data-v-d1d2b5c9]{background-color:var(--q-background-2)}.body--dark .q-tab[data-v-d1d2b5c9]{background-color:var(--q-background-2);border-top-left-radius:10px;border-top-right-radius:10px;border:1px solid var(--q-secondary)}.body--dark .q-tab--active[data-v-d1d2b5c9]{background-color:#383a56}.body--dark .q-carousel__control .q-btn[data-v-d1d2b5c9]:before{box-shadow:none}.body--dark .q-carousel__control .q-btn .q-icon[data-v-d1d2b5c9]{color:var(--q-carousel-control)}.body--dark .q-carousel__control .q-btn .q-icon[data-v-d1d2b5c9]:before{color:var(--q-carousel-control);box-shadow:none}.body--dark .q-carousel__slide[data-v-d1d2b5c9]{background-color:var(--q-background-2);color:var(--q-white)}.body--dark .q-card[data-v-d1d2b5c9]{background-color:var(--q-secondary);color:var(--q-white)}.body--dark .q-field__label[data-v-d1d2b5c9]{color:var(--q-white)}.body--dark .q-field__control .q-field__native[data-v-d1d2b5c9]::-webkit-calendar-picker-indicator{filter:invert(1)}.body--dark .q-placeholder[data-v-d1d2b5c9]{color:var(--q-white)}.body--dark .q-list[data-v-d1d2b5c9]{background-color:var(--q-list)}.body--dark .q-menu .q-item__section[data-v-d1d2b5c9]{color:var(--q-white)!important}.body--dark .q-toggle__thumb[data-v-d1d2b5c9]:after{background:var(--q-toggle-off)}.body--dark .q-toggle__inner--truthy .q-toggle__thumb[data-v-d1d2b5c9]:after{background-color:currentColor}.body--dark .sticky-header-table[data-v-d1d2b5c9]{height:310px}.body--dark .sticky-header-table .q-table__top[data-v-d1d2b5c9],.body--dark .sticky-header-table .q-table__bottom[data-v-d1d2b5c9],.body--dark .sticky-header-table thead tr:first-child th[data-v-d1d2b5c9]{background-color:var(--q-primary);color:var(--q-white);font-size:.9rem}.body--dark .sticky-header-table thead tr th[data-v-d1d2b5c9]{position:sticky;z-index:1}.body--dark .sticky-header-table thead tr:first-child th[data-v-d1d2b5c9]{top:0}.body--dark .sticky-header-table.q-table--loading thead tr:last-child th[data-v-d1d2b5c9]{top:48px}.body--dark .sticky-header-table tbody[data-v-d1d2b5c9]{scroll-margin-top:48px;background-color:var(--q-secondary);color:var(--q-white)}.body--dark .sticky-header-table tbody tr[data-v-d1d2b5c9],.body--dark .sticky-header-table .q-table__middle[data-v-d1d2b5c9],.body--dark .sticky-header-table .q-table__grid-content[data-v-d1d2b5c9]{background-color:var(--q-secondary)}.body--dark .sticky-header-table tbody tr[data-v-d1d2b5c9]:hover{background-color:#ffffff12}.body--dark .sticky-header-table .q-table__middle.q-virtual-scroll[data-v-d1d2b5c9]{scrollbar-width:thin;scrollbar-color:var(--q-primary) var(--q-secondary)}.body--dark .q-scrollarea[data-v-d1d2b5c9]{border:1px solid var(--q-secondary)!important}.pending[data-v-d1d2b5c9]{color:#f44336}.flex-grow[data-v-d1d2b5c9]{flex-grow:1}.q-btn-group .q-btn[data-v-f45a6b19]{min-width:100px!important}body.mobile .q-btn-group .q-btn[data-v-f45a6b19]{padding:4px 8px;font-size:12px!important;min-height:30px}.chartContainer[data-v-9992330e]{width:100%;min-height:200px;height:min(50vh,300px);padding:.5em 0}.full-width[data-v-ddb41880]{width:100%}.plan-name[data-v-ddb41880]{font-weight:700}.plan-details[data-v-ddb41880]{display:flex;justify-content:center}.plan-details>div[data-v-ddb41880]{display:flex;align-items:center}.plan-details>div[data-v-ddb41880]:not(:last-child){margin-right:.5em}body.mobile .height[data-v-ddb41880]{height:2.5em}.full-width[data-v-1b9699bd],.full-width[data-v-e575064c]{width:100%}.plan-name[data-v-e575064c]{font-weight:700}.plan-details[data-v-e575064c]{display:flex;justify-content:center}.plan-details>div[data-v-e575064c]{display:flex;align-items:center}.plan-details>div[data-v-e575064c]:not(:last-child){margin-right:.5em}body.mobile .height[data-v-e575064c]{height:2.5em}.full-width[data-v-ac637b4a]{width:100%}.cp-power[data-v-680da291]{white-space:nowrap}[data-v-a87bfb8a]:root{--q-primary: #5c93d1;--q-secondary: #d2d2d7;--q-accent: #546e7a;--q-positive: #66bd7a;--q-negative: #db4f5f;--q-info: #7dc5d4;--q-warning: #d98e44;--q-background-1: #e3e3ec;--q-background-2: #eeeef3;--q-brown-text: #524f57;--q-white: #ffffff;--q-grey: #9e9e9e;--q-carousel-control: #5c93d1;--q-toggle-off: #e0e0e0;--q-flow-home-stroke: #9e9e9e;--q-battery: #ba7128;background-color:var(--q-background-1);color:var(--q-brown-text)}:root .theme-text[data-v-a87bfb8a]{color:var(--q-brown-text)!important}:root .deselected[data-v-a87bfb8a]{color:var(--q-grey)!important}:root .q-header[data-v-a87bfb8a]{background-color:var(--q-background-2);color:var(--q-brown-text)}:root .q-drawer[data-v-a87bfb8a]{background-color:var(--q-background-2)}:root .q-tab-panels[data-v-a87bfb8a]{background-color:var(--q-background-2)}:root .q-tab[data-v-a87bfb8a]{background-color:var(--q-background-2);border-top-left-radius:10px;border-top-right-radius:10px;border:1px solid var(--q-secondary)}:root .q-tab-icon[data-v-a87bfb8a]{color:var(--q-primary)}:root .q-tab--active[data-v-a87bfb8a]{background-color:#ceced3}:root .q-carousel__control .q-btn[data-v-a87bfb8a]:before{box-shadow:none}:root .q-carousel__control .q-btn .q-icon[data-v-a87bfb8a]{color:var(--q-primary)}:root .q-carousel__control .q-btn .q-icon[data-v-a87bfb8a]:before{color:var(--q-primary);box-shadow:none}:root .q-carousel__slide[data-v-a87bfb8a]{background-color:var(--q-background-2)}:root .q-card[data-v-a87bfb8a]{background-color:var(--q-secondary)}:root .q-expansion-item__toggle-icon[data-v-a87bfb8a]{color:var(--q-white)}:root .q-list[data-v-a87bfb8a]{background-color:var(--q-background-2)}:root .q-toggle__thumb[data-v-a87bfb8a]:after{background:var(--q-toggle-off)}:root .q-toggle__inner--truthy .q-toggle__thumb[data-v-a87bfb8a]:after{background-color:currentColor}:root .white-outline-input.q-field--outlined .q-field__control[data-v-a87bfb8a]:before{border-color:var(--q-white)!important}:root .sticky-header-table[data-v-a87bfb8a]{height:310px}:root .sticky-header-table .q-table__top[data-v-a87bfb8a],:root .sticky-header-table .q-table__bottom[data-v-a87bfb8a],:root .sticky-header-table thead tr:first-child th[data-v-a87bfb8a]{background-color:var(--q-primary);color:var(--q-white);font-size:.9rem}:root .sticky-header-table thead tr th[data-v-a87bfb8a]{position:sticky;z-index:1}:root .sticky-header-table thead tr:first-child th[data-v-a87bfb8a]{top:0}:root .sticky-header-table.q-table--loading thead tr:last-child th[data-v-a87bfb8a]{top:48px}:root .sticky-header-table tbody[data-v-a87bfb8a]{scroll-margin-top:48px;background-color:var(--q-secondary);color:var(--q-brown-text)}:root .sticky-header-table tbody tr[data-v-a87bfb8a],:root .sticky-header-table .q-table__middle[data-v-a87bfb8a],:root .sticky-header-table .q-table__grid-content .q-virtual-scroll .q-virtual-scroll--vertical scroll[data-v-a87bfb8a]{background-color:var(--q-secondary)}:root .sticky-header-table tbody tr[data-v-a87bfb8a]:hover{background-color:#0000000d}:root .sticky-header-table .q-table__middle.q-virtual-scroll[data-v-a87bfb8a]{scrollbar-width:thin;scrollbar-color:var(--q-primary) var(--q-secondary)}:root .q-table th[data-v-a87bfb8a],:root .q-table td[data-v-a87bfb8a]{padding:2px 6px!important}:root .q-table th[data-v-a87bfb8a]:first-child,:root .q-table td[data-v-a87bfb8a]:first-child{padding-left:12px!important}:root .q-table th[data-v-a87bfb8a]:last-child,:root .q-table td[data-v-a87bfb8a]:last-child{padding-right:12px!important}:root .q-scrollarea[data-v-a87bfb8a]{border:1px solid var(--q-secondary)!important}.body--dark[data-v-a87bfb8a]{--q-primary: #3874db;--q-secondary: #28293d;--q-accent: #546e7a;--q-positive: #3e8f5e;--q-negative: #c54d57;--q-info: #4b89aa;--q-warning: #d98e44;--q-background-1: #030627;--q-background-2: #010322;--q-white: #ffffff;--q-grey: #9e9e9e;--q-carousel-control: #8b8f9f;--q-toggle-off: #e0e0e0;--q-list: rgb(40, 42, 62);--q-tab-icon: #d7d9e0;--q-flow-home-stroke: #9e9e9e;--q-battery: #d98e44;background-color:#000;color:var(--q-white)}.body--dark .theme-text[data-v-a87bfb8a]{color:var(--q-white)!important}.body--dark .deselected[data-v-a87bfb8a]{color:var(--q-grey)!important}.body--dark .q-header[data-v-a87bfb8a]{background-color:var(--q-background-2);color:var(--q-white)}.body--dark .q-drawer[data-v-a87bfb8a]{background-color:var(--q-list)}.body--dark .q-tab .q-icon[data-v-a87bfb8a]{color:var(--q-tab-icon)!important}.body--dark .q-tab-panels[data-v-a87bfb8a]{background-color:var(--q-background-2)}.body--dark .q-tab[data-v-a87bfb8a]{background-color:var(--q-background-2);border-top-left-radius:10px;border-top-right-radius:10px;border:1px solid var(--q-secondary)}.body--dark .q-tab--active[data-v-a87bfb8a]{background-color:#383a56}.body--dark .q-carousel__control .q-btn[data-v-a87bfb8a]:before{box-shadow:none}.body--dark .q-carousel__control .q-btn .q-icon[data-v-a87bfb8a]{color:var(--q-carousel-control)}.body--dark .q-carousel__control .q-btn .q-icon[data-v-a87bfb8a]:before{color:var(--q-carousel-control);box-shadow:none}.body--dark .q-carousel__slide[data-v-a87bfb8a]{background-color:var(--q-background-2);color:var(--q-white)}.body--dark .q-card[data-v-a87bfb8a]{background-color:var(--q-secondary);color:var(--q-white)}.body--dark .q-field__label[data-v-a87bfb8a]{color:var(--q-white)}.body--dark .q-field__control .q-field__native[data-v-a87bfb8a]::-webkit-calendar-picker-indicator{filter:invert(1)}.body--dark .q-placeholder[data-v-a87bfb8a]{color:var(--q-white)}.body--dark .q-list[data-v-a87bfb8a]{background-color:var(--q-list)}.body--dark .q-menu .q-item__section[data-v-a87bfb8a]{color:var(--q-white)!important}.body--dark .q-toggle__thumb[data-v-a87bfb8a]:after{background:var(--q-toggle-off)}.body--dark .q-toggle__inner--truthy .q-toggle__thumb[data-v-a87bfb8a]:after{background-color:currentColor}.body--dark .sticky-header-table[data-v-a87bfb8a]{height:310px}.body--dark .sticky-header-table .q-table__top[data-v-a87bfb8a],.body--dark .sticky-header-table .q-table__bottom[data-v-a87bfb8a],.body--dark .sticky-header-table thead tr:first-child th[data-v-a87bfb8a]{background-color:var(--q-primary);color:var(--q-white);font-size:.9rem}.body--dark .sticky-header-table thead tr th[data-v-a87bfb8a]{position:sticky;z-index:1}.body--dark .sticky-header-table thead tr:first-child th[data-v-a87bfb8a]{top:0}.body--dark .sticky-header-table.q-table--loading thead tr:last-child th[data-v-a87bfb8a]{top:48px}.body--dark .sticky-header-table tbody[data-v-a87bfb8a]{scroll-margin-top:48px;background-color:var(--q-secondary);color:var(--q-white)}.body--dark .sticky-header-table tbody tr[data-v-a87bfb8a],.body--dark .sticky-header-table .q-table__middle[data-v-a87bfb8a],.body--dark .sticky-header-table .q-table__grid-content[data-v-a87bfb8a]{background-color:var(--q-secondary)}.body--dark .sticky-header-table tbody tr[data-v-a87bfb8a]:hover{background-color:#ffffff12}.body--dark .sticky-header-table .q-table__middle.q-virtual-scroll[data-v-a87bfb8a]{scrollbar-width:thin;scrollbar-color:var(--q-primary) var(--q-secondary)}.body--dark .q-scrollarea[data-v-a87bfb8a]{border:1px solid var(--q-secondary)!important}.card-width[data-v-a87bfb8a]{width:22em}.dialog-content[data-v-a2485117]{width:auto;max-width:24em}.close-button[data-v-a2485117]{position:absolute;bottom:.4em;right:.4em;z-index:1;background:transparent}.card-footer[data-v-a2485117]{height:1.9em}.card-width[data-v-7d6fc3a9]{width:22em}[data-v-3872ddec]:root{--q-primary: #5c93d1;--q-secondary: #d2d2d7;--q-accent: #546e7a;--q-positive: #66bd7a;--q-negative: #db4f5f;--q-info: #7dc5d4;--q-warning: #d98e44;--q-background-1: #e3e3ec;--q-background-2: #eeeef3;--q-brown-text: #524f57;--q-white: #ffffff;--q-grey: #9e9e9e;--q-carousel-control: #5c93d1;--q-toggle-off: #e0e0e0;--q-flow-home-stroke: #9e9e9e;--q-battery: #ba7128;background-color:var(--q-background-1);color:var(--q-brown-text)}:root .theme-text[data-v-3872ddec]{color:var(--q-brown-text)!important}:root .deselected[data-v-3872ddec]{color:var(--q-grey)!important}:root .q-header[data-v-3872ddec]{background-color:var(--q-background-2);color:var(--q-brown-text)}:root .q-drawer[data-v-3872ddec]{background-color:var(--q-background-2)}:root .q-tab-panels[data-v-3872ddec]{background-color:var(--q-background-2)}:root .q-tab[data-v-3872ddec]{background-color:var(--q-background-2);border-top-left-radius:10px;border-top-right-radius:10px;border:1px solid var(--q-secondary)}:root .q-tab-icon[data-v-3872ddec]{color:var(--q-primary)}:root .q-tab--active[data-v-3872ddec]{background-color:#ceced3}:root .q-carousel__control .q-btn[data-v-3872ddec]:before{box-shadow:none}:root .q-carousel__control .q-btn .q-icon[data-v-3872ddec]{color:var(--q-primary)}:root .q-carousel__control .q-btn .q-icon[data-v-3872ddec]:before{color:var(--q-primary);box-shadow:none}:root .q-carousel__slide[data-v-3872ddec]{background-color:var(--q-background-2)}:root .q-card[data-v-3872ddec]{background-color:var(--q-secondary)}:root .q-expansion-item__toggle-icon[data-v-3872ddec]{color:var(--q-white)}:root .q-list[data-v-3872ddec]{background-color:var(--q-background-2)}:root .q-toggle__thumb[data-v-3872ddec]:after{background:var(--q-toggle-off)}:root .q-toggle__inner--truthy .q-toggle__thumb[data-v-3872ddec]:after{background-color:currentColor}:root .white-outline-input.q-field--outlined .q-field__control[data-v-3872ddec]:before{border-color:var(--q-white)!important}:root .sticky-header-table[data-v-3872ddec]{height:310px}:root .sticky-header-table .q-table__top[data-v-3872ddec],:root .sticky-header-table .q-table__bottom[data-v-3872ddec],:root .sticky-header-table thead tr:first-child th[data-v-3872ddec]{background-color:var(--q-primary);color:var(--q-white);font-size:.9rem}:root .sticky-header-table thead tr th[data-v-3872ddec]{position:sticky;z-index:1}:root .sticky-header-table thead tr:first-child th[data-v-3872ddec]{top:0}:root .sticky-header-table.q-table--loading thead tr:last-child th[data-v-3872ddec]{top:48px}:root .sticky-header-table tbody[data-v-3872ddec]{scroll-margin-top:48px;background-color:var(--q-secondary);color:var(--q-brown-text)}:root .sticky-header-table tbody tr[data-v-3872ddec],:root .sticky-header-table .q-table__middle[data-v-3872ddec],:root .sticky-header-table .q-table__grid-content .q-virtual-scroll .q-virtual-scroll--vertical scroll[data-v-3872ddec]{background-color:var(--q-secondary)}:root .sticky-header-table tbody tr[data-v-3872ddec]:hover{background-color:#0000000d}:root .sticky-header-table .q-table__middle.q-virtual-scroll[data-v-3872ddec]{scrollbar-width:thin;scrollbar-color:var(--q-primary) var(--q-secondary)}:root .q-table th[data-v-3872ddec],:root .q-table td[data-v-3872ddec]{padding:2px 6px!important}:root .q-table th[data-v-3872ddec]:first-child,:root .q-table td[data-v-3872ddec]:first-child{padding-left:12px!important}:root .q-table th[data-v-3872ddec]:last-child,:root .q-table td[data-v-3872ddec]:last-child{padding-right:12px!important}:root .q-scrollarea[data-v-3872ddec]{border:1px solid var(--q-secondary)!important}.body--dark[data-v-3872ddec]{--q-primary: #3874db;--q-secondary: #28293d;--q-accent: #546e7a;--q-positive: #3e8f5e;--q-negative: #c54d57;--q-info: #4b89aa;--q-warning: #d98e44;--q-background-1: #030627;--q-background-2: #010322;--q-white: #ffffff;--q-grey: #9e9e9e;--q-carousel-control: #8b8f9f;--q-toggle-off: #e0e0e0;--q-list: rgb(40, 42, 62);--q-tab-icon: #d7d9e0;--q-flow-home-stroke: #9e9e9e;--q-battery: #d98e44;background-color:#000;color:var(--q-white)}.body--dark .theme-text[data-v-3872ddec]{color:var(--q-white)!important}.body--dark .deselected[data-v-3872ddec]{color:var(--q-grey)!important}.body--dark .q-header[data-v-3872ddec]{background-color:var(--q-background-2);color:var(--q-white)}.body--dark .q-drawer[data-v-3872ddec]{background-color:var(--q-list)}.body--dark .q-tab .q-icon[data-v-3872ddec]{color:var(--q-tab-icon)!important}.body--dark .q-tab-panels[data-v-3872ddec]{background-color:var(--q-background-2)}.body--dark .q-tab[data-v-3872ddec]{background-color:var(--q-background-2);border-top-left-radius:10px;border-top-right-radius:10px;border:1px solid var(--q-secondary)}.body--dark .q-tab--active[data-v-3872ddec]{background-color:#383a56}.body--dark .q-carousel__control .q-btn[data-v-3872ddec]:before{box-shadow:none}.body--dark .q-carousel__control .q-btn .q-icon[data-v-3872ddec]{color:var(--q-carousel-control)}.body--dark .q-carousel__control .q-btn .q-icon[data-v-3872ddec]:before{color:var(--q-carousel-control);box-shadow:none}.body--dark .q-carousel__slide[data-v-3872ddec]{background-color:var(--q-background-2);color:var(--q-white)}.body--dark .q-card[data-v-3872ddec]{background-color:var(--q-secondary);color:var(--q-white)}.body--dark .q-field__label[data-v-3872ddec]{color:var(--q-white)}.body--dark .q-field__control .q-field__native[data-v-3872ddec]::-webkit-calendar-picker-indicator{filter:invert(1)}.body--dark .q-placeholder[data-v-3872ddec]{color:var(--q-white)}.body--dark .q-list[data-v-3872ddec]{background-color:var(--q-list)}.body--dark .q-menu .q-item__section[data-v-3872ddec]{color:var(--q-white)!important}.body--dark .q-toggle__thumb[data-v-3872ddec]:after{background:var(--q-toggle-off)}.body--dark .q-toggle__inner--truthy .q-toggle__thumb[data-v-3872ddec]:after{background-color:currentColor}.body--dark .sticky-header-table[data-v-3872ddec]{height:310px}.body--dark .sticky-header-table .q-table__top[data-v-3872ddec],.body--dark .sticky-header-table .q-table__bottom[data-v-3872ddec],.body--dark .sticky-header-table thead tr:first-child th[data-v-3872ddec]{background-color:var(--q-primary);color:var(--q-white);font-size:.9rem}.body--dark .sticky-header-table thead tr th[data-v-3872ddec]{position:sticky;z-index:1}.body--dark .sticky-header-table thead tr:first-child th[data-v-3872ddec]{top:0}.body--dark .sticky-header-table.q-table--loading thead tr:last-child th[data-v-3872ddec]{top:48px}.body--dark .sticky-header-table tbody[data-v-3872ddec]{scroll-margin-top:48px;background-color:var(--q-secondary);color:var(--q-white)}.body--dark .sticky-header-table tbody tr[data-v-3872ddec],.body--dark .sticky-header-table .q-table__middle[data-v-3872ddec],.body--dark .sticky-header-table .q-table__grid-content[data-v-3872ddec]{background-color:var(--q-secondary)}.body--dark .sticky-header-table tbody tr[data-v-3872ddec]:hover{background-color:#ffffff12}.body--dark .sticky-header-table .q-table__middle.q-virtual-scroll[data-v-3872ddec]{scrollbar-width:thin;scrollbar-color:var(--q-primary) var(--q-secondary)}.body--dark .q-scrollarea[data-v-3872ddec]{border:1px solid var(--q-secondary)!important}.card-width[data-v-3872ddec]{width:22em}.slider-container[data-v-3872ddec]{position:relative;height:40px}.dialog-content[data-v-16daa238]{width:auto;max-width:24em}.close-button[data-v-16daa238]{position:absolute;bottom:.4em;right:.4em;z-index:1;background:transparent}.card-footer[data-v-16daa238]{height:1.9em}.chart-section[data-v-c7129eb4]{height:40vh} diff --git a/packages/modules/web_themes/koala/web/assets/MainLayout-kAnhqQqm.js b/packages/modules/web_themes/koala/web/assets/MainLayout-DIhsYLyn.js similarity index 99% rename from packages/modules/web_themes/koala/web/assets/MainLayout-kAnhqQqm.js rename to packages/modules/web_themes/koala/web/assets/MainLayout-DIhsYLyn.js index baea165fff..554c75b076 100644 --- a/packages/modules/web_themes/koala/web/assets/MainLayout-kAnhqQqm.js +++ b/packages/modules/web_themes/koala/web/assets/MainLayout-DIhsYLyn.js @@ -1 +1 @@ -import{c as F,a as i,h as S,d as le,i as we,e as P,r as x,w as b,o as Te,f as Ne,l as oe,g as ne,j as Be,n as qe,k as X,m as pe,p as ze,q as je,s as Ee,t as Z,u as Ue,v as Ke,x as Ge,_ as Xe,y as Je,z as E,A as U,B as s,C as r,Q as ee,D as Q,E as K,R as te}from"./index-D17w0IYB.js";import{Q as ye,u as Ye,a as Ze,b as et,c as tt,d as at,e as lt,f as ot,T as ve,g as ae,h as nt,i as me,j as rt,k as it,l as ut,m as st,n as G,o as M,p as he,q as ge,r as dt,s as be}from"./use-quasar-BcbqF7R8.js";const ct=F({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:l}){const c=i(()=>"q-toolbar__title ellipsis"+(e.shrink===!0?" col-shrink":""));return()=>S("div",{class:c.value},le(l.default))}}),ft=F({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:l}){const c=i(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>S("div",{class:c.value,role:"toolbar"},le(l.default))}}),vt=F({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:l,emit:c}){const{proxy:{$q:o}}=ne(),u=we(oe,P);if(u===P)return console.error("QHeader needs to be child of QLayout"),P;const f=x(parseInt(e.heightHint,10)),y=x(!0),h=i(()=>e.reveal===!0||u.view.value.indexOf("H")!==-1||o.platform.is.ios&&u.isContainer.value===!0),$=i(()=>{if(e.modelValue!==!0)return 0;if(h.value===!0)return y.value===!0?f.value:0;const n=f.value-u.scroll.value.position;return n>0?n:0}),q=i(()=>e.modelValue!==!0||h.value===!0&&y.value!==!0),a=i(()=>e.modelValue===!0&&q.value===!0&&e.reveal===!0),V=i(()=>"q-header q-layout__section--marginal "+(h.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(q.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),L=i(()=>{const n=u.rows.value.top,p={};return n[0]==="l"&&u.left.space===!0&&(p[o.lang.rtl===!0?"right":"left"]=`${u.left.size}px`),n[2]==="r"&&u.right.space===!0&&(p[o.lang.rtl===!0?"left":"right"]=`${u.right.size}px`),p});function w(n,p){u.update("header",n,p)}function g(n,p){n.value!==p&&(n.value=p)}function W({height:n}){g(f,n),w("size",n)}function _(n){a.value===!0&&g(y,!0),c("focusin",n)}b(()=>e.modelValue,n=>{w("space",n),g(y,!0),u.animate()}),b($,n=>{w("offset",n)}),b(()=>e.reveal,n=>{n===!1&&g(y,e.modelValue)}),b(y,n=>{u.animate(),c("reveal",n)}),b(u.scroll,n=>{e.reveal===!0&&g(y,n.direction==="up"||n.position<=e.revealOffset||n.position-n.inflectionPoint<100)});const m={};return u.instances.header=m,e.modelValue===!0&&w("size",f.value),w("space",e.modelValue),w("offset",$.value),Te(()=>{u.instances.header===m&&(u.instances.header=void 0,w("size",0),w("offset",0),w("space",!1))}),()=>{const n=Ne(l.default,[]);return e.elevated===!0&&n.push(S("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push(S(ye,{debounce:0,onResize:W})),S("header",{class:V.value,style:L.value,onFocusin:_},n)}}}),Ce=150,mt=F({name:"QDrawer",inheritAttrs:!1,props:{...Ye,...Ze,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...et,"onLayout","miniState"],setup(e,{slots:l,emit:c,attrs:o}){const u=ne(),{proxy:{$q:f}}=u,y=tt(e,f),{preventBodyScroll:h}=nt(),{registerTimeout:$,removeTimeout:q}=at(),a=we(oe,P);if(a===P)return console.error("QDrawer needs to be child of QLayout"),P;let V,L=null,w;const g=x(e.behavior==="mobile"||e.behavior!=="desktop"&&a.totalWidth.value<=e.breakpoint),W=i(()=>e.mini===!0&&g.value!==!0),_=i(()=>W.value===!0?e.miniWidth:e.width),m=x(e.showIfAbove===!0&&g.value===!1?!0:e.modelValue===!0),n=i(()=>e.persistent!==!0&&(g.value===!0||Le.value===!0));function p(t,d){if(B(),t!==!1&&a.animate(),z(0),g.value===!0){const T=a.instances[J.value];T!==void 0&&T.belowBreakpoint===!0&&T.hide(!1),H(1),a.isContainer.value!==!0&&h(!0)}else H(0),t!==!1&&de(!1);$(()=>{t!==!1&&de(!0),d!==!0&&c("show",t)},Ce)}function v(t,d){N(),t!==!1&&a.animate(),H(0),z(I.value*_.value),ce(),d!==!0?$(()=>{c("hide",t)},Ce):q()}const{show:k,hide:C}=lt({showing:m,hideOnRouteChange:n,handleShow:p,handleHide:v}),{addToHistory:B,removeFromHistory:N}=ot(m,C,n),R={belowBreakpoint:g,hide:C},O=i(()=>e.side==="right"),I=i(()=>(f.lang.rtl===!0?-1:1)*(O.value===!0?1:-1)),ke=x(0),A=x(!1),re=x(!1),Se=x(_.value*I.value),J=i(()=>O.value===!0?"left":"right"),ie=i(()=>m.value===!0&&g.value===!1&&e.overlay===!1?e.miniToOverlay===!0?e.miniWidth:_.value:0),ue=i(()=>e.overlay===!0||e.miniToOverlay===!0||a.view.value.indexOf(O.value?"R":"L")!==-1||f.platform.is.ios===!0&&a.isContainer.value===!0),j=i(()=>e.overlay===!1&&m.value===!0&&g.value===!1),Le=i(()=>e.overlay===!0&&m.value===!0&&g.value===!1),Qe=i(()=>"fullscreen q-drawer__backdrop"+(m.value===!1&&A.value===!1?" hidden":"")),Me=i(()=>({backgroundColor:`rgba(0,0,0,${ke.value*.4})`})),_e=i(()=>O.value===!0?a.rows.value.top[2]==="r":a.rows.value.top[0]==="l"),$e=i(()=>O.value===!0?a.rows.value.bottom[2]==="r":a.rows.value.bottom[0]==="l"),We=i(()=>{const t={};return a.header.space===!0&&_e.value===!1&&(ue.value===!0?t.top=`${a.header.offset}px`:a.header.space===!0&&(t.top=`${a.header.size}px`)),a.footer.space===!0&&$e.value===!1&&(ue.value===!0?t.bottom=`${a.footer.offset}px`:a.footer.space===!0&&(t.bottom=`${a.footer.size}px`)),t}),Oe=i(()=>{const t={width:`${_.value}px`,transform:`translateX(${Se.value}px)`};return g.value===!0?t:Object.assign(t,We.value)}),Pe=i(()=>"q-drawer__content fit "+(a.isContainer.value!==!0?"scroll":"overflow-auto")),He=i(()=>`q-drawer q-drawer--${e.side}`+(re.value===!0?" q-drawer--mini-animate":"")+(e.bordered===!0?" q-drawer--bordered":"")+(y.value===!0?" q-drawer--dark q-dark":"")+(A.value===!0?" no-transition":m.value===!0?"":" q-layout--prevent-focus")+(g.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${W.value===!0?"mini":"standard"}`+(ue.value===!0||j.value!==!0?" fixed":"")+(e.overlay===!0||e.miniToOverlay===!0?" q-drawer--on-top":"")+(_e.value===!0?" q-drawer--top-padding":""))),De=i(()=>{const t=f.lang.rtl===!0?e.side:J.value;return[[ve,Ae,void 0,{[t]:!0,mouse:!0}]]}),Ve=i(()=>{const t=f.lang.rtl===!0?J.value:e.side;return[[ve,xe,void 0,{[t]:!0,mouse:!0}]]}),Re=i(()=>{const t=f.lang.rtl===!0?J.value:e.side;return[[ve,xe,void 0,{[t]:!0,mouse:!0,mouseAllDir:!0}]]});function se(){Fe(g,e.behavior==="mobile"||e.behavior!=="desktop"&&a.totalWidth.value<=e.breakpoint)}b(g,t=>{t===!0?(V=m.value,m.value===!0&&C(!1)):e.overlay===!1&&e.behavior!=="mobile"&&V!==!1&&(m.value===!0?(z(0),H(0),ce()):k(!1))}),b(()=>e.side,(t,d)=>{a.instances[d]===R&&(a.instances[d]=void 0,a[d].space=!1,a[d].offset=0),a.instances[t]=R,a[t].size=_.value,a[t].space=j.value,a[t].offset=ie.value}),b(a.totalWidth,()=>{(a.isContainer.value===!0||document.qScrollPrevented!==!0)&&se()}),b(()=>e.behavior+e.breakpoint,se),b(a.isContainer,t=>{m.value===!0&&h(t!==!0),t===!0&&se()}),b(a.scrollbarWidth,()=>{z(m.value===!0?0:void 0)}),b(ie,t=>{D("offset",t)}),b(j,t=>{c("onLayout",t),D("space",t)}),b(O,()=>{z()}),b(_,t=>{z(),fe(e.miniToOverlay,t)}),b(()=>e.miniToOverlay,t=>{fe(t,_.value)}),b(()=>f.lang.rtl,()=>{z()}),b(()=>e.mini,()=>{e.noMiniAnimation||e.modelValue===!0&&(Ie(),a.animate())}),b(W,t=>{c("miniState",t)});function z(t){t===void 0?qe(()=>{t=m.value===!0?0:_.value,z(I.value*t)}):(a.isContainer.value===!0&&O.value===!0&&(g.value===!0||Math.abs(t)===_.value)&&(t+=I.value*a.scrollbarWidth.value),Se.value=t)}function H(t){ke.value=t}function de(t){const d=t===!0?"remove":a.isContainer.value!==!0?"add":"";d!==""&&document.body.classList[d]("q-body--drawer-toggle")}function Ie(){L!==null&&clearTimeout(L),u.proxy&&u.proxy.$el&&u.proxy.$el.classList.add("q-drawer--mini-animate"),re.value=!0,L=setTimeout(()=>{L=null,re.value=!1,u&&u.proxy&&u.proxy.$el&&u.proxy.$el.classList.remove("q-drawer--mini-animate")},150)}function Ae(t){if(m.value!==!1)return;const d=_.value,T=ae(t.distance.x,0,d);if(t.isFinal===!0){T>=Math.min(75,d)===!0?k():(a.animate(),H(0),z(I.value*d)),A.value=!1;return}z((f.lang.rtl===!0?O.value!==!0:O.value)?Math.max(d-T,0):Math.min(0,T-d)),H(ae(T/d,0,1)),t.isFirst===!0&&(A.value=!0)}function xe(t){if(m.value!==!0)return;const d=_.value,T=t.direction===e.side,Y=(f.lang.rtl===!0?T!==!0:T)?ae(t.distance.x,0,d):0;if(t.isFinal===!0){Math.abs(Y){c("onLayout",j.value),c("miniState",W.value),V=e.showIfAbove===!0;const t=()=>{(m.value===!0?p:v)(!1,!0)};if(a.totalWidth.value!==0){qe(t);return}w=b(a.totalWidth,()=>{w(),w=void 0,m.value===!1&&e.showIfAbove===!0&&g.value===!1?k(!1):t()})}),Te(()=>{w!==void 0&&w(),L!==null&&(clearTimeout(L),L=null),m.value===!0&&ce(),a.instances[e.side]===R&&(a.instances[e.side]=void 0,D("size",0),D("offset",0),D("space",!1))}),()=>{const t=[];g.value===!0&&(e.noSwipeOpen===!1&&t.push(X(S("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),De.value)),t.push(pe("div",{ref:"backdrop",class:Qe.value,style:Me.value,"aria-hidden":"true",onClick:C},void 0,"backdrop",e.noSwipeBackdrop!==!0&&m.value===!0,()=>Re.value)));const d=W.value===!0&&l.mini!==void 0,T=[S("div",{...o,key:""+d,class:[Pe.value,o.class]},d===!0?l.mini():le(l.default))];return e.elevated===!0&&m.value===!0&&T.push(S("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),t.push(pe("aside",{ref:"content",class:He.value,style:Oe.value},T,"contentclose",e.noSwipeClose!==!0&&g.value===!0,()=>Ve.value)),S("div",{class:"q-drawer-container"},t)}}}),ht=F({name:"QPageContainer",setup(e,{slots:l}){const{proxy:{$q:c}}=ne(),o=we(oe,P);if(o===P)return console.error("QPageContainer needs to be child of QLayout"),P;ze(je,!0);const u=i(()=>{const f={};return o.header.space===!0&&(f.paddingTop=`${o.header.size}px`),o.right.space===!0&&(f[`padding${c.lang.rtl===!0?"Left":"Right"}`]=`${o.right.size}px`),o.footer.space===!0&&(f.paddingBottom=`${o.footer.size}px`),o.left.space===!0&&(f[`padding${c.lang.rtl===!0?"Right":"Left"}`]=`${o.left.size}px`),f});return()=>S("div",{class:"q-page-container",style:u.value},le(l.default))}}),gt=F({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:l,emit:c}){const{proxy:{$q:o}}=ne(),u=x(null),f=x(o.screen.height),y=x(e.container===!0?0:o.screen.width),h=x({position:0,direction:"down",inflectionPoint:0}),$=x(0),q=x(Ee.value===!0?0:me()),a=i(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),V=i(()=>e.container===!1?{minHeight:o.screen.height+"px"}:null),L=i(()=>q.value!==0?{[o.lang.rtl===!0?"left":"right"]:`${q.value}px`}:null),w=i(()=>q.value!==0?{[o.lang.rtl===!0?"right":"left"]:0,[o.lang.rtl===!0?"left":"right"]:`-${q.value}px`,width:`calc(100% + ${q.value}px)`}:null);function g(v){if(e.container===!0||document.qScrollPrevented!==!0){const k={position:v.position.top,direction:v.direction,directionChanged:v.directionChanged,inflectionPoint:v.inflectionPoint.top,delta:v.delta.top};h.value=k,e.onScroll!==void 0&&c("scroll",k)}}function W(v){const{height:k,width:C}=v;let B=!1;f.value!==k&&(B=!0,f.value=k,e.onScrollHeight!==void 0&&c("scrollHeight",k),m()),y.value!==C&&(B=!0,y.value=C),B===!0&&e.onResize!==void 0&&c("resize",v)}function _({height:v}){$.value!==v&&($.value=v,m())}function m(){if(e.container===!0){const v=f.value>$.value?me():0;q.value!==v&&(q.value=v)}}let n=null;const p={instances:{},view:i(()=>e.view),isContainer:i(()=>e.container),rootRef:u,height:f,containerHeight:$,scrollbarWidth:q,totalWidth:i(()=>y.value+q.value),rows:i(()=>{const v=e.view.toLowerCase().split(" ");return{top:v[0].split(""),middle:v[1].split(""),bottom:v[2].split("")}}),header:Z({size:0,offset:0,space:!1}),right:Z({size:300,offset:0,space:!1}),footer:Z({size:0,offset:0,space:!1}),left:Z({size:300,offset:0,space:!1}),scroll:h,animate(){n!==null?clearTimeout(n):document.body.classList.add("q-body--layout-animate"),n=setTimeout(()=>{n=null,document.body.classList.remove("q-body--layout-animate")},155)},update(v,k,C){p[v][k]=C}};if(ze(oe,p),me()>0){let v=function(){B=null,N.classList.remove("hide-scrollbar")},k=function(){if(B===null){if(N.scrollHeight>o.screen.height)return;N.classList.add("hide-scrollbar")}else clearTimeout(B);B=setTimeout(v,300)},C=function(R){B!==null&&R==="remove"&&(clearTimeout(B),v()),window[`${R}EventListener`]("resize",k)},B=null;const N=document.body;b(()=>e.container!==!0?"add":"remove",C),e.container!==!0&&C("add"),Ue(()=>{C("remove")})}return()=>{const v=Ke(l.default,[S(rt,{onScroll:g}),S(ye,{onResize:W})]),k=S("div",{class:a.value,style:V.value,ref:e.container===!0?void 0:u,tabindex:-1},v);return e.container===!0?S("div",{class:"q-layout-container overflow-hidden",ref:u},[S(ye,{onResize:_}),S("div",{class:"absolute-full",style:L.value},[S("div",{class:"scroll",style:w.value},[k])])]):k}}}),bt=Ge({name:"MainLayout",__name:"MainLayout",setup(e,{expose:l}){l();const c=it(),o=x(!1),u=x("auto"),f=h=>{u.value=h,h==="auto"?(localStorage.removeItem("theme"),c.dark.set("auto")):(c.dark.set(h==="dark"),localStorage.setItem("theme",h))};Be(()=>{const h=localStorage.getItem("theme");h?(u.value=h,c.dark.set(h==="dark")):(u.value="auto",c.dark.set("auto"))});const y={$q:c,drawer:o,themeMode:u,setTheme:f};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}});function yt(e,l,c,o,u,f){const y=Je("router-view");return E(),U(gt,{view:"hHh lpr lFf"},{default:s(()=>[r(vt,{elevated:""},{default:s(()=>[r(ft,null,{default:s(()=>[r(ee,{dense:"",flat:"",round:"",icon:"menu",onClick:l[0]||(l[0]=h=>o.drawer=!o.drawer)}),r(ct,null,{default:s(()=>l[5]||(l[5]=[Q("openWB")])),_:1})]),_:1})]),_:1}),r(mt,{modelValue:o.drawer,"onUpdate:modelValue":l[4]||(l[4]=h=>o.drawer=h),side:"left",overlay:"",elevated:"",breakpoint:500},{default:s(()=>[r(ut,{class:"fit","horizontal-thumb-style":{opacity:"0"}},{default:s(()=>[r(st,{padding:""},{default:s(()=>[X((E(),U(G,{clickable:"",href:"/openWB/web/settings/#/Status"},{default:s(()=>[r(M,{avatar:""},{default:s(()=>[r(K,{name:"dashboard"})]),_:1}),r(M,null,{default:s(()=>l[6]||(l[6]=[Q(" Status ")])),_:1})]),_:1})),[[te]]),r(he),r(ge,{header:""},{default:s(()=>l[7]||(l[7]=[Q("Auswertungen")])),_:1}),X((E(),U(G,{clickable:"",href:"/openWB/web/settings/#/Logging/ChargeLog"},{default:s(()=>[r(M,{avatar:""},{default:s(()=>[r(K,{name:"table_chart"})]),_:1}),r(M,null,{default:s(()=>l[8]||(l[8]=[Q(" Ladeprotokoll ")])),_:1})]),_:1})),[[te]]),X((E(),U(G,{clickable:"",href:"/openWB/web/settings/#/Logging/Chart"},{default:s(()=>[r(M,{avatar:""},{default:s(()=>[r(K,{name:"area_chart"})]),_:1}),r(M,null,{default:s(()=>l[9]||(l[9]=[Q(" Diagramme ")])),_:1})]),_:1})),[[te]]),r(he),X((E(),U(G,{clickable:"",href:"/openWB/web/settings/"},{default:s(()=>[r(M,{avatar:""},{default:s(()=>[r(K,{name:"settings"})]),_:1}),r(M,null,{default:s(()=>l[10]||(l[10]=[Q(" Einstellungen ")])),_:1})]),_:1})),[[te]]),r(he),r(ge,{header:""},{default:s(()=>l[11]||(l[11]=[Q("Anzeigeeinstellungen")])),_:1}),r(G,null,{default:s(()=>[r(M,{avatar:""},{default:s(()=>[r(K,{name:"light_mode"})]),_:1}),r(M,null,{default:s(()=>[r(ge,null,{default:s(()=>l[12]||(l[12]=[Q("Darstellungsmodus")])),_:1})]),_:1}),r(M,{side:""},{default:s(()=>[r(dt,{flat:""},{default:s(()=>[r(ee,{flat:"",round:"",color:o.themeMode==="light"?"primary":"",icon:"light_mode",onClick:l[1]||(l[1]=h=>o.setTheme("light")),size:"sm",disable:o.themeMode==="light","aria-label":"Light Mode"},{default:s(()=>[r(be,null,{default:s(()=>l[13]||(l[13]=[Q("Hell")])),_:1})]),_:1},8,["color","disable"]),r(ee,{flat:"",round:"",color:o.themeMode==="dark"?"primary":"",icon:"dark_mode",onClick:l[2]||(l[2]=h=>o.setTheme("dark")),size:"sm",disable:o.themeMode==="dark","aria-label":"Dark Mode"},{default:s(()=>[r(be,null,{default:s(()=>l[14]||(l[14]=[Q("Dunkel")])),_:1})]),_:1},8,["color","disable"]),r(ee,{flat:"",round:"",color:o.themeMode==="auto"?"primary":"",icon:"devices",onClick:l[3]||(l[3]=h=>o.setTheme("auto")),size:"sm",disable:o.themeMode==="auto","aria-label":"System Mode"},{default:s(()=>[r(be,null,{default:s(()=>l[15]||(l[15]=[Q("Systemeinstellung")])),_:1})]),_:1},8,["color","disable"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),r(ht,{class:"column flex centered-container"},{default:s(()=>[r(y)]),_:1})]),_:1})}const _t=Xe(bt,[["render",yt],["__scopeId","data-v-1a29f27d"],["__file","MainLayout.vue"]]);export{_t as default}; +import{c as F,a as i,h as S,d as le,i as we,e as P,r as x,w as b,o as Te,f as Ne,l as oe,g as ne,j as Be,n as qe,k as X,m as pe,p as ze,q as je,s as Ee,t as Z,u as Ue,v as Ke,x as Ge,_ as Xe,y as Je,z as E,A as U,B as s,C as r,Q as ee,D as Q,E as K,R as te}from"./index-v0G7K8Rw.js";import{Q as ye,u as Ye,a as Ze,b as et,c as tt,d as at,e as lt,f as ot,T as ve,g as ae,h as nt,i as me,j as rt,k as it,l as ut,m as st,n as G,o as M,p as he,q as ge,r as dt,s as be}from"./use-quasar-D-0UrVnZ.js";const ct=F({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:l}){const c=i(()=>"q-toolbar__title ellipsis"+(e.shrink===!0?" col-shrink":""));return()=>S("div",{class:c.value},le(l.default))}}),ft=F({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:l}){const c=i(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>S("div",{class:c.value,role:"toolbar"},le(l.default))}}),vt=F({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:l,emit:c}){const{proxy:{$q:o}}=ne(),u=we(oe,P);if(u===P)return console.error("QHeader needs to be child of QLayout"),P;const f=x(parseInt(e.heightHint,10)),y=x(!0),h=i(()=>e.reveal===!0||u.view.value.indexOf("H")!==-1||o.platform.is.ios&&u.isContainer.value===!0),$=i(()=>{if(e.modelValue!==!0)return 0;if(h.value===!0)return y.value===!0?f.value:0;const n=f.value-u.scroll.value.position;return n>0?n:0}),q=i(()=>e.modelValue!==!0||h.value===!0&&y.value!==!0),a=i(()=>e.modelValue===!0&&q.value===!0&&e.reveal===!0),V=i(()=>"q-header q-layout__section--marginal "+(h.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(q.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),L=i(()=>{const n=u.rows.value.top,p={};return n[0]==="l"&&u.left.space===!0&&(p[o.lang.rtl===!0?"right":"left"]=`${u.left.size}px`),n[2]==="r"&&u.right.space===!0&&(p[o.lang.rtl===!0?"left":"right"]=`${u.right.size}px`),p});function w(n,p){u.update("header",n,p)}function g(n,p){n.value!==p&&(n.value=p)}function W({height:n}){g(f,n),w("size",n)}function _(n){a.value===!0&&g(y,!0),c("focusin",n)}b(()=>e.modelValue,n=>{w("space",n),g(y,!0),u.animate()}),b($,n=>{w("offset",n)}),b(()=>e.reveal,n=>{n===!1&&g(y,e.modelValue)}),b(y,n=>{u.animate(),c("reveal",n)}),b(u.scroll,n=>{e.reveal===!0&&g(y,n.direction==="up"||n.position<=e.revealOffset||n.position-n.inflectionPoint<100)});const m={};return u.instances.header=m,e.modelValue===!0&&w("size",f.value),w("space",e.modelValue),w("offset",$.value),Te(()=>{u.instances.header===m&&(u.instances.header=void 0,w("size",0),w("offset",0),w("space",!1))}),()=>{const n=Ne(l.default,[]);return e.elevated===!0&&n.push(S("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push(S(ye,{debounce:0,onResize:W})),S("header",{class:V.value,style:L.value,onFocusin:_},n)}}}),Ce=150,mt=F({name:"QDrawer",inheritAttrs:!1,props:{...Ye,...Ze,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...et,"onLayout","miniState"],setup(e,{slots:l,emit:c,attrs:o}){const u=ne(),{proxy:{$q:f}}=u,y=tt(e,f),{preventBodyScroll:h}=nt(),{registerTimeout:$,removeTimeout:q}=at(),a=we(oe,P);if(a===P)return console.error("QDrawer needs to be child of QLayout"),P;let V,L=null,w;const g=x(e.behavior==="mobile"||e.behavior!=="desktop"&&a.totalWidth.value<=e.breakpoint),W=i(()=>e.mini===!0&&g.value!==!0),_=i(()=>W.value===!0?e.miniWidth:e.width),m=x(e.showIfAbove===!0&&g.value===!1?!0:e.modelValue===!0),n=i(()=>e.persistent!==!0&&(g.value===!0||Le.value===!0));function p(t,d){if(B(),t!==!1&&a.animate(),z(0),g.value===!0){const T=a.instances[J.value];T!==void 0&&T.belowBreakpoint===!0&&T.hide(!1),H(1),a.isContainer.value!==!0&&h(!0)}else H(0),t!==!1&&de(!1);$(()=>{t!==!1&&de(!0),d!==!0&&c("show",t)},Ce)}function v(t,d){N(),t!==!1&&a.animate(),H(0),z(I.value*_.value),ce(),d!==!0?$(()=>{c("hide",t)},Ce):q()}const{show:k,hide:C}=lt({showing:m,hideOnRouteChange:n,handleShow:p,handleHide:v}),{addToHistory:B,removeFromHistory:N}=ot(m,C,n),R={belowBreakpoint:g,hide:C},O=i(()=>e.side==="right"),I=i(()=>(f.lang.rtl===!0?-1:1)*(O.value===!0?1:-1)),ke=x(0),A=x(!1),re=x(!1),Se=x(_.value*I.value),J=i(()=>O.value===!0?"left":"right"),ie=i(()=>m.value===!0&&g.value===!1&&e.overlay===!1?e.miniToOverlay===!0?e.miniWidth:_.value:0),ue=i(()=>e.overlay===!0||e.miniToOverlay===!0||a.view.value.indexOf(O.value?"R":"L")!==-1||f.platform.is.ios===!0&&a.isContainer.value===!0),j=i(()=>e.overlay===!1&&m.value===!0&&g.value===!1),Le=i(()=>e.overlay===!0&&m.value===!0&&g.value===!1),Qe=i(()=>"fullscreen q-drawer__backdrop"+(m.value===!1&&A.value===!1?" hidden":"")),Me=i(()=>({backgroundColor:`rgba(0,0,0,${ke.value*.4})`})),_e=i(()=>O.value===!0?a.rows.value.top[2]==="r":a.rows.value.top[0]==="l"),$e=i(()=>O.value===!0?a.rows.value.bottom[2]==="r":a.rows.value.bottom[0]==="l"),We=i(()=>{const t={};return a.header.space===!0&&_e.value===!1&&(ue.value===!0?t.top=`${a.header.offset}px`:a.header.space===!0&&(t.top=`${a.header.size}px`)),a.footer.space===!0&&$e.value===!1&&(ue.value===!0?t.bottom=`${a.footer.offset}px`:a.footer.space===!0&&(t.bottom=`${a.footer.size}px`)),t}),Oe=i(()=>{const t={width:`${_.value}px`,transform:`translateX(${Se.value}px)`};return g.value===!0?t:Object.assign(t,We.value)}),Pe=i(()=>"q-drawer__content fit "+(a.isContainer.value!==!0?"scroll":"overflow-auto")),He=i(()=>`q-drawer q-drawer--${e.side}`+(re.value===!0?" q-drawer--mini-animate":"")+(e.bordered===!0?" q-drawer--bordered":"")+(y.value===!0?" q-drawer--dark q-dark":"")+(A.value===!0?" no-transition":m.value===!0?"":" q-layout--prevent-focus")+(g.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${W.value===!0?"mini":"standard"}`+(ue.value===!0||j.value!==!0?" fixed":"")+(e.overlay===!0||e.miniToOverlay===!0?" q-drawer--on-top":"")+(_e.value===!0?" q-drawer--top-padding":""))),De=i(()=>{const t=f.lang.rtl===!0?e.side:J.value;return[[ve,Ae,void 0,{[t]:!0,mouse:!0}]]}),Ve=i(()=>{const t=f.lang.rtl===!0?J.value:e.side;return[[ve,xe,void 0,{[t]:!0,mouse:!0}]]}),Re=i(()=>{const t=f.lang.rtl===!0?J.value:e.side;return[[ve,xe,void 0,{[t]:!0,mouse:!0,mouseAllDir:!0}]]});function se(){Fe(g,e.behavior==="mobile"||e.behavior!=="desktop"&&a.totalWidth.value<=e.breakpoint)}b(g,t=>{t===!0?(V=m.value,m.value===!0&&C(!1)):e.overlay===!1&&e.behavior!=="mobile"&&V!==!1&&(m.value===!0?(z(0),H(0),ce()):k(!1))}),b(()=>e.side,(t,d)=>{a.instances[d]===R&&(a.instances[d]=void 0,a[d].space=!1,a[d].offset=0),a.instances[t]=R,a[t].size=_.value,a[t].space=j.value,a[t].offset=ie.value}),b(a.totalWidth,()=>{(a.isContainer.value===!0||document.qScrollPrevented!==!0)&&se()}),b(()=>e.behavior+e.breakpoint,se),b(a.isContainer,t=>{m.value===!0&&h(t!==!0),t===!0&&se()}),b(a.scrollbarWidth,()=>{z(m.value===!0?0:void 0)}),b(ie,t=>{D("offset",t)}),b(j,t=>{c("onLayout",t),D("space",t)}),b(O,()=>{z()}),b(_,t=>{z(),fe(e.miniToOverlay,t)}),b(()=>e.miniToOverlay,t=>{fe(t,_.value)}),b(()=>f.lang.rtl,()=>{z()}),b(()=>e.mini,()=>{e.noMiniAnimation||e.modelValue===!0&&(Ie(),a.animate())}),b(W,t=>{c("miniState",t)});function z(t){t===void 0?qe(()=>{t=m.value===!0?0:_.value,z(I.value*t)}):(a.isContainer.value===!0&&O.value===!0&&(g.value===!0||Math.abs(t)===_.value)&&(t+=I.value*a.scrollbarWidth.value),Se.value=t)}function H(t){ke.value=t}function de(t){const d=t===!0?"remove":a.isContainer.value!==!0?"add":"";d!==""&&document.body.classList[d]("q-body--drawer-toggle")}function Ie(){L!==null&&clearTimeout(L),u.proxy&&u.proxy.$el&&u.proxy.$el.classList.add("q-drawer--mini-animate"),re.value=!0,L=setTimeout(()=>{L=null,re.value=!1,u&&u.proxy&&u.proxy.$el&&u.proxy.$el.classList.remove("q-drawer--mini-animate")},150)}function Ae(t){if(m.value!==!1)return;const d=_.value,T=ae(t.distance.x,0,d);if(t.isFinal===!0){T>=Math.min(75,d)===!0?k():(a.animate(),H(0),z(I.value*d)),A.value=!1;return}z((f.lang.rtl===!0?O.value!==!0:O.value)?Math.max(d-T,0):Math.min(0,T-d)),H(ae(T/d,0,1)),t.isFirst===!0&&(A.value=!0)}function xe(t){if(m.value!==!0)return;const d=_.value,T=t.direction===e.side,Y=(f.lang.rtl===!0?T!==!0:T)?ae(t.distance.x,0,d):0;if(t.isFinal===!0){Math.abs(Y){c("onLayout",j.value),c("miniState",W.value),V=e.showIfAbove===!0;const t=()=>{(m.value===!0?p:v)(!1,!0)};if(a.totalWidth.value!==0){qe(t);return}w=b(a.totalWidth,()=>{w(),w=void 0,m.value===!1&&e.showIfAbove===!0&&g.value===!1?k(!1):t()})}),Te(()=>{w!==void 0&&w(),L!==null&&(clearTimeout(L),L=null),m.value===!0&&ce(),a.instances[e.side]===R&&(a.instances[e.side]=void 0,D("size",0),D("offset",0),D("space",!1))}),()=>{const t=[];g.value===!0&&(e.noSwipeOpen===!1&&t.push(X(S("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),De.value)),t.push(pe("div",{ref:"backdrop",class:Qe.value,style:Me.value,"aria-hidden":"true",onClick:C},void 0,"backdrop",e.noSwipeBackdrop!==!0&&m.value===!0,()=>Re.value)));const d=W.value===!0&&l.mini!==void 0,T=[S("div",{...o,key:""+d,class:[Pe.value,o.class]},d===!0?l.mini():le(l.default))];return e.elevated===!0&&m.value===!0&&T.push(S("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),t.push(pe("aside",{ref:"content",class:He.value,style:Oe.value},T,"contentclose",e.noSwipeClose!==!0&&g.value===!0,()=>Ve.value)),S("div",{class:"q-drawer-container"},t)}}}),ht=F({name:"QPageContainer",setup(e,{slots:l}){const{proxy:{$q:c}}=ne(),o=we(oe,P);if(o===P)return console.error("QPageContainer needs to be child of QLayout"),P;ze(je,!0);const u=i(()=>{const f={};return o.header.space===!0&&(f.paddingTop=`${o.header.size}px`),o.right.space===!0&&(f[`padding${c.lang.rtl===!0?"Left":"Right"}`]=`${o.right.size}px`),o.footer.space===!0&&(f.paddingBottom=`${o.footer.size}px`),o.left.space===!0&&(f[`padding${c.lang.rtl===!0?"Right":"Left"}`]=`${o.left.size}px`),f});return()=>S("div",{class:"q-page-container",style:u.value},le(l.default))}}),gt=F({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:l,emit:c}){const{proxy:{$q:o}}=ne(),u=x(null),f=x(o.screen.height),y=x(e.container===!0?0:o.screen.width),h=x({position:0,direction:"down",inflectionPoint:0}),$=x(0),q=x(Ee.value===!0?0:me()),a=i(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),V=i(()=>e.container===!1?{minHeight:o.screen.height+"px"}:null),L=i(()=>q.value!==0?{[o.lang.rtl===!0?"left":"right"]:`${q.value}px`}:null),w=i(()=>q.value!==0?{[o.lang.rtl===!0?"right":"left"]:0,[o.lang.rtl===!0?"left":"right"]:`-${q.value}px`,width:`calc(100% + ${q.value}px)`}:null);function g(v){if(e.container===!0||document.qScrollPrevented!==!0){const k={position:v.position.top,direction:v.direction,directionChanged:v.directionChanged,inflectionPoint:v.inflectionPoint.top,delta:v.delta.top};h.value=k,e.onScroll!==void 0&&c("scroll",k)}}function W(v){const{height:k,width:C}=v;let B=!1;f.value!==k&&(B=!0,f.value=k,e.onScrollHeight!==void 0&&c("scrollHeight",k),m()),y.value!==C&&(B=!0,y.value=C),B===!0&&e.onResize!==void 0&&c("resize",v)}function _({height:v}){$.value!==v&&($.value=v,m())}function m(){if(e.container===!0){const v=f.value>$.value?me():0;q.value!==v&&(q.value=v)}}let n=null;const p={instances:{},view:i(()=>e.view),isContainer:i(()=>e.container),rootRef:u,height:f,containerHeight:$,scrollbarWidth:q,totalWidth:i(()=>y.value+q.value),rows:i(()=>{const v=e.view.toLowerCase().split(" ");return{top:v[0].split(""),middle:v[1].split(""),bottom:v[2].split("")}}),header:Z({size:0,offset:0,space:!1}),right:Z({size:300,offset:0,space:!1}),footer:Z({size:0,offset:0,space:!1}),left:Z({size:300,offset:0,space:!1}),scroll:h,animate(){n!==null?clearTimeout(n):document.body.classList.add("q-body--layout-animate"),n=setTimeout(()=>{n=null,document.body.classList.remove("q-body--layout-animate")},155)},update(v,k,C){p[v][k]=C}};if(ze(oe,p),me()>0){let v=function(){B=null,N.classList.remove("hide-scrollbar")},k=function(){if(B===null){if(N.scrollHeight>o.screen.height)return;N.classList.add("hide-scrollbar")}else clearTimeout(B);B=setTimeout(v,300)},C=function(R){B!==null&&R==="remove"&&(clearTimeout(B),v()),window[`${R}EventListener`]("resize",k)},B=null;const N=document.body;b(()=>e.container!==!0?"add":"remove",C),e.container!==!0&&C("add"),Ue(()=>{C("remove")})}return()=>{const v=Ke(l.default,[S(rt,{onScroll:g}),S(ye,{onResize:W})]),k=S("div",{class:a.value,style:V.value,ref:e.container===!0?void 0:u,tabindex:-1},v);return e.container===!0?S("div",{class:"q-layout-container overflow-hidden",ref:u},[S(ye,{onResize:_}),S("div",{class:"absolute-full",style:L.value},[S("div",{class:"scroll",style:w.value},[k])])]):k}}}),bt=Ge({name:"MainLayout",__name:"MainLayout",setup(e,{expose:l}){l();const c=it(),o=x(!1),u=x("auto"),f=h=>{u.value=h,h==="auto"?(localStorage.removeItem("theme"),c.dark.set("auto")):(c.dark.set(h==="dark"),localStorage.setItem("theme",h))};Be(()=>{const h=localStorage.getItem("theme");h?(u.value=h,c.dark.set(h==="dark")):(u.value="auto",c.dark.set("auto"))});const y={$q:c,drawer:o,themeMode:u,setTheme:f};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}});function yt(e,l,c,o,u,f){const y=Je("router-view");return E(),U(gt,{view:"hHh lpr lFf"},{default:s(()=>[r(vt,{elevated:""},{default:s(()=>[r(ft,null,{default:s(()=>[r(ee,{dense:"",flat:"",round:"",icon:"menu",onClick:l[0]||(l[0]=h=>o.drawer=!o.drawer)}),r(ct,null,{default:s(()=>l[5]||(l[5]=[Q("openWB")])),_:1})]),_:1})]),_:1}),r(mt,{modelValue:o.drawer,"onUpdate:modelValue":l[4]||(l[4]=h=>o.drawer=h),side:"left",overlay:"",elevated:"",breakpoint:500},{default:s(()=>[r(ut,{class:"fit","horizontal-thumb-style":{opacity:"0"}},{default:s(()=>[r(st,{padding:""},{default:s(()=>[X((E(),U(G,{clickable:"",href:"/openWB/web/settings/#/Status"},{default:s(()=>[r(M,{avatar:""},{default:s(()=>[r(K,{name:"dashboard"})]),_:1}),r(M,null,{default:s(()=>l[6]||(l[6]=[Q(" Status ")])),_:1})]),_:1})),[[te]]),r(he),r(ge,{header:""},{default:s(()=>l[7]||(l[7]=[Q("Auswertungen")])),_:1}),X((E(),U(G,{clickable:"",href:"/openWB/web/settings/#/Logging/ChargeLog"},{default:s(()=>[r(M,{avatar:""},{default:s(()=>[r(K,{name:"table_chart"})]),_:1}),r(M,null,{default:s(()=>l[8]||(l[8]=[Q(" Ladeprotokoll ")])),_:1})]),_:1})),[[te]]),X((E(),U(G,{clickable:"",href:"/openWB/web/settings/#/Logging/Chart"},{default:s(()=>[r(M,{avatar:""},{default:s(()=>[r(K,{name:"area_chart"})]),_:1}),r(M,null,{default:s(()=>l[9]||(l[9]=[Q(" Diagramme ")])),_:1})]),_:1})),[[te]]),r(he),X((E(),U(G,{clickable:"",href:"/openWB/web/settings/"},{default:s(()=>[r(M,{avatar:""},{default:s(()=>[r(K,{name:"settings"})]),_:1}),r(M,null,{default:s(()=>l[10]||(l[10]=[Q(" Einstellungen ")])),_:1})]),_:1})),[[te]]),r(he),r(ge,{header:""},{default:s(()=>l[11]||(l[11]=[Q("Anzeigeeinstellungen")])),_:1}),r(G,null,{default:s(()=>[r(M,{avatar:""},{default:s(()=>[r(K,{name:"light_mode"})]),_:1}),r(M,null,{default:s(()=>[r(ge,null,{default:s(()=>l[12]||(l[12]=[Q("Darstellungsmodus")])),_:1})]),_:1}),r(M,{side:""},{default:s(()=>[r(dt,{flat:""},{default:s(()=>[r(ee,{flat:"",round:"",color:o.themeMode==="light"?"primary":"",icon:"light_mode",onClick:l[1]||(l[1]=h=>o.setTheme("light")),size:"sm",disable:o.themeMode==="light","aria-label":"Light Mode"},{default:s(()=>[r(be,null,{default:s(()=>l[13]||(l[13]=[Q("Hell")])),_:1})]),_:1},8,["color","disable"]),r(ee,{flat:"",round:"",color:o.themeMode==="dark"?"primary":"",icon:"dark_mode",onClick:l[2]||(l[2]=h=>o.setTheme("dark")),size:"sm",disable:o.themeMode==="dark","aria-label":"Dark Mode"},{default:s(()=>[r(be,null,{default:s(()=>l[14]||(l[14]=[Q("Dunkel")])),_:1})]),_:1},8,["color","disable"]),r(ee,{flat:"",round:"",color:o.themeMode==="auto"?"primary":"",icon:"devices",onClick:l[3]||(l[3]=h=>o.setTheme("auto")),size:"sm",disable:o.themeMode==="auto","aria-label":"System Mode"},{default:s(()=>[r(be,null,{default:s(()=>l[15]||(l[15]=[Q("Systemeinstellung")])),_:1})]),_:1},8,["color","disable"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),r(ht,{class:"column flex centered-container"},{default:s(()=>[r(y)]),_:1})]),_:1})}const _t=Xe(bt,[["render",yt],["__scopeId","data-v-1a29f27d"],["__file","MainLayout.vue"]]);export{_t as default}; diff --git a/packages/modules/web_themes/koala/web/assets/index-D17w0IYB.js b/packages/modules/web_themes/koala/web/assets/index-v0G7K8Rw.js similarity index 99% rename from packages/modules/web_themes/koala/web/assets/index-D17w0IYB.js rename to packages/modules/web_themes/koala/web/assets/index-v0G7K8Rw.js index adcfca0426..4a9c32e9ce 100644 --- a/packages/modules/web_themes/koala/web/assets/index-D17w0IYB.js +++ b/packages/modules/web_themes/koala/web/assets/index-v0G7K8Rw.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MainLayout-kAnhqQqm.js","assets/use-quasar-BcbqF7R8.js","assets/MainLayout-c4Z4AuEY.css","assets/IndexPage-BPvL5jsZ.js","assets/mqtt-store-DXcyZOMZ.js","assets/IndexPage-BlQqXr39.css","assets/store-init-BnCEmsd-.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MainLayout-DIhsYLyn.js","assets/use-quasar-D-0UrVnZ.js","assets/MainLayout-c4Z4AuEY.css","assets/IndexPage-DVYGiijA.js","assets/mqtt-store-DM4t93V9.js","assets/IndexPage-tpThWCQf.css","assets/store-init-_8zf6SsG.js"])))=>i.map(i=>d[i]); const Ic=function(){const t=typeof document<"u"&&document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}(),$c=function(e){return"/openWB/web/themes/koala/"+e},No={},fr=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=i?.nonce||i?.getAttribute("nonce");s=Promise.allSettled(n.map(a=>{if(a=$c(a),a in No)return;No[a]=!0;const u=a.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Ic,u||(d.as="script"),d.crossOrigin="",d.href=a,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((f,g)=>{d.addEventListener("load",f),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return s.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};/** * @vue/shared v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -25,4 +25,4 @@ Only state can be modified.`);i[0]="$state",fn=!1,r.set(o,i,r.state.value),fn=!0 * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const ht=typeof document<"u";function tc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Lh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&tc(e.default)}const se=Object.assign;function Cs(e,t){const n={};for(const r in t){const s=t[r];n[r]=De(s)?s.map(e):e(s)}return n}const Fn=()=>{},De=Array.isArray,nc=/#/g,Ih=/&/g,$h=/\//g,Mh=/=/g,Nh=/\?/g,rc=/\+/g,jh=/%5B/g,Dh=/%5D/g,sc=/%5E/g,Fh=/%60/g,oc=/%7B/g,Bh=/%7C/g,ic=/%7D/g,Hh=/%20/g;function ko(e){return encodeURI(""+e).replace(Bh,"|").replace(jh,"[").replace(Dh,"]")}function qh(e){return ko(e).replace(oc,"{").replace(ic,"}").replace(sc,"^")}function Ys(e){return ko(e).replace(rc,"%2B").replace(Hh,"+").replace(nc,"%23").replace(Ih,"%26").replace(Fh,"`").replace(oc,"{").replace(ic,"}").replace(sc,"^")}function Vh(e){return Ys(e).replace(Mh,"%3D")}function Uh(e){return ko(e).replace(nc,"%23").replace(Nh,"%3F")}function zh(e){return e==null?"":Uh(e).replace($h,"%2F")}function vn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Kh=/\/$/,Wh=e=>e.replace(Kh,"");function Ps(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),o=t.slice(a+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=Yh(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:vn(i)}}function Gh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ii(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Qh(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Mt(t.matched[r],n.matched[s])&&lc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Mt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function lc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Jh(e[n],t[n]))return!1;return!0}function Jh(e,t){return De(e)?$i(e,t):De(t)?$i(t,e):e===t}function $i(e,t){return De(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Yh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const St={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Gn;(function(e){e.pop="pop",e.push="push"})(Gn||(Gn={}));var Bn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Bn||(Bn={}));function Xh(e){if(!e)if(ht){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Wh(e)}const Zh=/^[^#]+#/;function ep(e,t){return e.replace(Zh,"#")+t}function tp(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ls=()=>({left:window.scrollX,top:window.scrollY});function np(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=tp(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Mi(e,t){return(history.state?history.state.position-t:-1)+e}const Xs=new Map;function rp(e,t){Xs.set(e,t)}function sp(e){const t=Xs.get(e);return Xs.delete(e),t}let op=()=>location.protocol+"//"+location.host;function ac(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,a=s.slice(l);return a[0]!=="/"&&(a="/"+a),Ii(a,"")}return Ii(n,e)+r+s}function ip(e,t,n,r){let s=[],o=[],i=null;const l=({state:f})=>{const g=ac(e,location),v=n.value,E=t.value;let P=0;if(f){if(n.value=g,t.value=f,i&&i===v){i=null;return}P=E?f.position-E.position:0}else r(g);s.forEach(R=>{R(n.value,v,{delta:P,type:Gn.pop,direction:P?P>0?Bn.forward:Bn.back:Bn.unknown})})};function a(){i=n.value}function u(f){s.push(f);const g=()=>{const v=s.indexOf(f);v>-1&&s.splice(v,1)};return o.push(g),g}function c(){const{history:f}=window;f.state&&f.replaceState(se({},f.state,{scroll:ls()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:a,listen:u,destroy:d}}function Ni(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?ls():null}}function lp(e){const{history:t,location:n}=window,r={value:ac(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+a:op()+e+a;try{t[c?"replaceState":"pushState"](u,"",f),s.value=u}catch(g){console.error(g),n[c?"replace":"assign"](f)}}function i(a,u){const c=se({},t.state,Ni(s.value.back,a,s.value.forward,!0),u,{position:s.value.position});o(a,c,!0),r.value=a}function l(a,u){const c=se({},s.value,t.state,{forward:a,scroll:ls()});o(c.current,c,!0);const d=se({},Ni(r.value,a,null),{position:c.position+1},u);o(a,d,!1),r.value=a}return{location:r,state:s,push:l,replace:i}}function ap(e){e=Xh(e);const t=lp(e),n=ip(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=se({location:"",base:e,go:r,createHref:ep.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function cp(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ap(e)}function cc(e){return typeof e=="string"||e&&typeof e=="object"}function uc(e){return typeof e=="string"||typeof e=="symbol"}const fc=Symbol("");var ji;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ji||(ji={}));function _n(e,t){return se(new Error,{type:e,[fc]:!0},t)}function ut(e,t){return e instanceof Error&&fc in e&&(t==null||!!(e.type&t))}const Di="[^/]+?",up={sensitive:!1,strict:!1,start:!0,end:!0},fp=/[.+*?^${}()[\]/\\]/g;function dp(e,t){const n=se({},up,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function dc(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const pp={type:0,value:""},gp=/[a-zA-Z0-9_]/;function mp(e){if(!e)return[[]];if(e==="/")return[[pp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,a,u="",c="";function d(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=a}for(;l{i(S)}:Fn}function i(d){if(uc(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function a(d){const f=wp(d,n);n.splice(f,0,d),d.record.name&&!qi(d)&&r.set(d.record.name,d)}function u(d,f){let g,v={},E,P;if("name"in d&&d.name){if(g=r.get(d.name),!g)throw _n(1,{location:d});P=g.record.name,v=se(Bi(f.params,g.keys.filter(S=>!S.optional).concat(g.parent?g.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),d.params&&Bi(d.params,g.keys.map(S=>S.name))),E=g.stringify(v)}else if(d.path!=null)E=d.path,g=n.find(S=>S.re.test(E)),g&&(v=g.parse(E),P=g.record.name);else{if(g=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!g)throw _n(1,{location:d,currentLocation:f});P=g.record.name,v=se({},f.params,d.params),E=g.stringify(v)}const R=[];let w=g;for(;w;)R.unshift(w.record),w=w.parent;return{name:P,path:E,params:v,matched:R,meta:bp(R)}}e.forEach(d=>o(d));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:c,getRoutes:l,getRecordMatcher:s}}function Bi(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Hi(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:yp(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function yp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function qi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bp(e){return e.reduce((t,n)=>se(t,n.meta),{})}function Vi(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function wp(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;dc(e,t[o])<0?r=o:n=o+1}const s=Sp(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function Sp(e){let t=e;for(;t=t.parent;)if(hc(t)&&dc(e,t)===0)return t}function hc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function xp(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Ys(o)):[r&&Ys(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Ep(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=De(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Cp=Symbol(""),zi=Symbol(""),Oo=Symbol(""),pc=Symbol(""),Zs=Symbol("");function xn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Rt(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,a)=>{const u=f=>{f===!1?a(_n(4,{from:n,to:t})):f instanceof Error?a(f):cc(f)?a(_n(2,{from:t,to:f})):(i&&r.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),l())},c=o(()=>e.call(r&&r.instances[s],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>a(f))})}function Ts(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(tc(a)){const c=(a.__vccOpts||a)[t];c&&o.push(Rt(c,n,r,i,l,s))}else{let u=a();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=Lh(c)?c.default:c;i.mods[l]=c,i.components[l]=d;const g=(d.__vccOpts||d)[t];return g&&Rt(g,n,r,i,l,s)()}))}}return o}function Ki(e){const t=rt(Oo),n=rt(pc),r=G(()=>{const a=gt(e.to);return t.resolve(a)}),s=G(()=>{const{matched:a}=r.value,{length:u}=a,c=a[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(Mt.bind(null,c));if(f>-1)return f;const g=Wi(a[u-2]);return u>1&&Wi(c)===g&&d[d.length-1].path!==g?d.findIndex(Mt.bind(null,a[u-2])):f}),o=G(()=>s.value>-1&&kp(n.params,r.value.params)),i=G(()=>s.value>-1&&s.value===n.matched.length-1&&lc(n.params,r.value.params));function l(a={}){return Rp(a)?t[gt(e.replace)?"replace":"push"](gt(e.to)).catch(Fn):Promise.resolve()}if(ht){const a=lt();if(a){const u={route:r.value,isActive:o.value,isExactActive:i.value,error:null};a.__vrl_devtools=a.__vrl_devtools||[],a.__vrl_devtools.push(u),wf(()=>{u.route=r.value,u.isActive=o.value,u.isExactActive=i.value,u.error=cc(gt(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:r,href:G(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}const Pp=Qr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ki,setup(e,{slots:t}){const n=Xt(Ki(e)),{options:r}=rt(Oo),s=G(()=>({[Gi(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Gi(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:W("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Tp=Pp;function Rp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function kp(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!De(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function Wi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Gi=(e,t,n)=>e??t??n,Op=Qr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=rt(Zs),s=G(()=>e.route||r.value),o=rt(zi,0),i=G(()=>{let u=gt(o);const{matched:c}=s.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),l=G(()=>s.value.matched[i.value]);hr(zi,G(()=>i.value+1)),hr(Cp,l),hr(Zs,s);const a=Gt();return Lt(()=>[a.value,l.value,e.name],([u,c,d],[f,g,v])=>{c&&(c.instances[d]=u,g&&g!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),u&&c&&(!g||!Mt(c,g)||!f)&&(c.enterCallbacks[d]||[]).forEach(E=>E(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,d=l.value,f=d&&d.components[c];if(!f)return Qi(n.default,{Component:f,route:u});const g=d.props[c],v=g?g===!0?u.params:typeof g=="function"?g(u):g:null,P=W(f,se({},v,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(d.instances[c]=null)},ref:a}));if(ht&&P.ref){const R={depth:i.value,name:d.name,path:d.path,meta:d.meta};(De(P.ref)?P.ref.map(S=>S.i):[P.ref.i]).forEach(S=>{S.__vrv_devtools=R})}return Qi(n.default,{Component:P,route:u})||P}}});function Qi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ap=Op;function En(e,t){const n=se({},e,{matched:e.matched.map(r=>qp(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function ur(e){return{_custom:{display:e}}}let Lp=0;function Ip(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=Lp++;Po({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},s=>{typeof s.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),s.on.inspectComponent((c,d)=>{c.instanceData&&c.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:En(t.currentRoute.value,"Current Route")})}),s.on.visitComponentTree(({treeNode:c,componentInstance:d})=>{if(d.__vrv_devtools){const f=d.__vrv_devtools;c.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:gc})}De(d.__vrl_devtools)&&(d.__devtoolsApi=s,d.__vrl_devtools.forEach(f=>{let g=f.route.path,v=_c,E="",P=0;f.error?(g=f.error,v=Dp,P=Fp):f.isExactActive?(v=vc,E="This is exactly active"):f.isActive&&(v=mc,E="This link is active"),c.tags.push({label:g,textColor:P,tooltip:E,backgroundColor:v})}))}),Lt(t.currentRoute,()=>{a(),s.notifyComponentUpdate(),s.sendInspectorTree(l),s.sendInspectorState(l)});const o="router:navigations:"+r;s.addTimelineLayer({id:o,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((c,d)=>{s.addTimelineEvent({layerId:o,event:{title:"Error during Navigation",subtitle:d.fullPath,logType:"error",time:s.now(),data:{error:c},groupId:d.meta.__navigationId}})});let i=0;t.beforeEach((c,d)=>{const f={guard:ur("beforeEach"),from:En(d,"Current Location during this navigation"),to:En(c,"Target location")};Object.defineProperty(c.meta,"__navigationId",{value:i++}),s.addTimelineEvent({layerId:o,event:{time:s.now(),title:"Start of navigation",subtitle:c.fullPath,data:f,groupId:c.meta.__navigationId}})}),t.afterEach((c,d,f)=>{const g={guard:ur("afterEach")};f?(g.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},g.status=ur("❌")):g.status=ur("✅"),g.from=En(d,"Current Location during this navigation"),g.to=En(c,"Target location"),s.addTimelineEvent({layerId:o,event:{title:"End of navigation",subtitle:c.fullPath,time:s.now(),data:g,logType:f?"warning":"default",groupId:c.meta.__navigationId}})});const l="router-inspector:"+r;s.addInspector({id:l,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function a(){if(!u)return;const c=u;let d=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);d.forEach(wc),c.filter&&(d=d.filter(f=>eo(f,c.filter.toLowerCase()))),d.forEach(f=>bc(f,t.currentRoute.value)),c.rootNodes=d.map(yc)}let u;s.on.getInspectorTree(c=>{u=c,c.app===e&&c.inspectorId===l&&a()}),s.on.getInspectorState(c=>{if(c.app===e&&c.inspectorId===l){const f=n.getRoutes().find(g=>g.record.__vd_id===c.nodeId);f&&(c.state={options:Mp(f)})}}),s.sendInspectorTree(l),s.sendInspectorState(l)})}function $p(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function Mp(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(r=>`${r.name}${$p(r)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(r=>r.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(r=>r.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const gc=15485081,mc=2450411,vc=8702998,Np=2282478,_c=16486972,jp=6710886,Dp=16704226,Fp=12131356;function yc(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:Np}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:_c}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:gc}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:vc}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:mc}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:jp});let r=n.__vd_id;return r==null&&(r=String(Bp++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map(yc)}}let Bp=0;const Hp=/^\/(.*)\/([a-z]*)$/;function bc(e,t){const n=t.matched.length&&Mt(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(r=>Mt(r,e.record))),e.children.forEach(r=>bc(r,t))}function wc(e){e.__vd_match=!1,e.children.forEach(wc)}function eo(e,t){const n=String(e.re).match(Hp);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(i=>eo(i,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const s=e.record.path.toLowerCase(),o=vn(s);return!t.startsWith("/")&&(o.includes(t)||s.includes(t))||o.startsWith(t)||s.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(i=>eo(i,t))}function qp(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function Vp(e){const t=_p(e.routes,e),n=e.parseQuery||xp,r=e.stringifyQuery||Ui,s=e.history,o=xn(),i=xn(),l=xn(),a=Il(St);let u=St;ht&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Cs.bind(null,b=>""+b),d=Cs.bind(null,zh),f=Cs.bind(null,vn);function g(b,H){let D,V;return uc(b)?(D=t.getRecordMatcher(b),V=H):V=b,t.addRoute(V,D)}function v(b){const H=t.getRecordMatcher(b);H&&t.removeRoute(H)}function E(){return t.getRoutes().map(b=>b.record)}function P(b){return!!t.getRecordMatcher(b)}function R(b,H){if(H=se({},H||a.value),typeof b=="string"){const p=Ps(n,b,H.path),m=t.resolve({path:p.path},H),x=s.createHref(p.fullPath);return se(p,m,{params:f(m.params),hash:vn(p.hash),redirectedFrom:void 0,href:x})}let D;if(b.path!=null)D=se({},b,{path:Ps(n,b.path,H.path).path});else{const p=se({},b.params);for(const m in p)p[m]==null&&delete p[m];D=se({},b,{params:d(p)}),H.params=d(H.params)}const V=t.resolve(D,H),ie=b.hash||"";V.params=c(f(V.params));const pe=Gh(r,se({},b,{hash:qh(ie),path:V.path})),h=s.createHref(pe);return se({fullPath:pe,hash:ie,query:r===Ui?Ep(b.query):b.query||{}},V,{redirectedFrom:void 0,href:h})}function w(b){return typeof b=="string"?Ps(n,b,a.value.path):se({},b)}function S(b,H){if(u!==b)return _n(8,{from:H,to:b})}function y(b){return j(b)}function I(b){return y(se(w(b),{replace:!0}))}function q(b){const H=b.matched[b.matched.length-1];if(H&&H.redirect){const{redirect:D}=H;let V=typeof D=="function"?D(b):D;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=w(V):{path:V},V.params={}),se({query:b.query,hash:b.hash,params:V.path!=null?{}:b.params},V)}}function j(b,H){const D=u=R(b),V=a.value,ie=b.state,pe=b.force,h=b.replace===!0,p=q(D);if(p)return j(se(w(p),{state:typeof p=="object"?se({},ie,p.state):ie,force:pe,replace:h}),H||D);const m=D;m.redirectedFrom=H;let x;return!pe&&Qh(r,V,D)&&(x=_n(16,{to:m,from:V}),Ye(V,V,!0,!1)),(x?Promise.resolve(x):$(m,V)).catch(_=>ut(_)?ut(_,2)?_:yt(_):te(_,m,V)).then(_=>{if(_){if(ut(_,2))return j(se({replace:h},w(_.to),{state:typeof _.to=="object"?se({},ie,_.to.state):ie,force:pe}),H||m)}else _=O(m,V,!0,h,ie);return L(m,V,_),_})}function X(b,H){const D=S(b,H);return D?Promise.reject(D):Promise.resolve()}function F(b){const H=en.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(b):b()}function $(b,H){let D;const[V,ie,pe]=Up(b,H);D=Ts(V.reverse(),"beforeRouteLeave",b,H);for(const p of V)p.leaveGuards.forEach(m=>{D.push(Rt(m,b,H))});const h=X.bind(null,b,H);return D.push(h),Fe(D).then(()=>{D=[];for(const p of o.list())D.push(Rt(p,b,H));return D.push(h),Fe(D)}).then(()=>{D=Ts(ie,"beforeRouteUpdate",b,H);for(const p of ie)p.updateGuards.forEach(m=>{D.push(Rt(m,b,H))});return D.push(h),Fe(D)}).then(()=>{D=[];for(const p of pe)if(p.beforeEnter)if(De(p.beforeEnter))for(const m of p.beforeEnter)D.push(Rt(m,b,H));else D.push(Rt(p.beforeEnter,b,H));return D.push(h),Fe(D)}).then(()=>(b.matched.forEach(p=>p.enterCallbacks={}),D=Ts(pe,"beforeRouteEnter",b,H,F),D.push(h),Fe(D))).then(()=>{D=[];for(const p of i.list())D.push(Rt(p,b,H));return D.push(h),Fe(D)}).catch(p=>ut(p,8)?p:Promise.reject(p))}function L(b,H,D){l.list().forEach(V=>F(()=>V(b,H,D)))}function O(b,H,D,V,ie){const pe=S(b,H);if(pe)return pe;const h=H===St,p=ht?history.state:{};D&&(V||h?s.replace(b.fullPath,se({scroll:h&&p&&p.scroll},ie)):s.push(b.fullPath,ie)),a.value=b,Ye(b,H,D,h),yt()}let Y;function M(){Y||(Y=s.listen((b,H,D)=>{if(!er.listening)return;const V=R(b),ie=q(V);if(ie){j(se(ie,{replace:!0}),V).catch(Fn);return}u=V;const pe=a.value;ht&&rp(Mi(pe.fullPath,D.delta),ls()),$(V,pe).catch(h=>ut(h,12)?h:ut(h,2)?(j(h.to,V).then(p=>{ut(p,20)&&!D.delta&&D.type===Gn.pop&&s.go(-1,!1)}).catch(Fn),Promise.reject()):(D.delta&&s.go(-D.delta,!1),te(h,V,pe))).then(h=>{h=h||O(V,pe,!1),h&&(D.delta&&!ut(h,8)?s.go(-D.delta,!1):D.type===Gn.pop&&ut(h,20)&&s.go(-1,!1)),L(V,pe,h)}).catch(Fn)}))}let ee=xn(),ae=xn(),re;function te(b,H,D){yt(b);const V=ae.list();return V.length?V.forEach(ie=>ie(b,H,D)):console.error(b),Promise.reject(b)}function ge(){return re&&a.value!==St?Promise.resolve():new Promise((b,H)=>{ee.add([b,H])})}function yt(b){return re||(re=!b,M(),ee.list().forEach(([H,D])=>b?D(b):H()),ee.reset()),b}function Ye(b,H,D,V){const{scrollBehavior:ie}=e;if(!ht||!ie)return Promise.resolve();const pe=!D&&sp(Mi(b.fullPath,0))||(V||!D)&&history.state&&history.state.scroll||null;return mo().then(()=>ie(b,H,pe)).then(h=>h&&np(h)).catch(h=>te(h,b,H))}const Ie=b=>s.go(b);let Zt;const en=new Set,er={currentRoute:a,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:E,resolve:R,options:e,push:y,replace:I,go:Ie,back:()=>Ie(-1),forward:()=>Ie(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:ae.add,isReady:ge,install(b){const H=this;b.component("RouterLink",Tp),b.component("RouterView",Ap),b.config.globalProperties.$router=H,Object.defineProperty(b.config.globalProperties,"$route",{enumerable:!0,get:()=>gt(a)}),ht&&!Zt&&a.value===St&&(Zt=!0,y(s.location).catch(ie=>{}));const D={};for(const ie in St)Object.defineProperty(D,ie,{get:()=>a.value[ie],enumerable:!0});b.provide(Oo,H),b.provide(pc,Al(D)),b.provide(Zs,a);const V=b.unmount;en.add(b),b.unmount=function(){en.delete(b),en.size<1&&(u=St,Y&&Y(),Y=null,a.value=St,Zt=!1,re=!1),V()},ht&&Ip(b,H,t)}};function Fe(b){return b.reduce((H,D)=>H.then(()=>F(D)),Promise.resolve())}return er}function Up(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iMt(u,l))?r.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(u=>Mt(u,a))||s.push(a))}return[n,r,s]}const zp=[{path:"/",component:()=>fr(()=>import("./MainLayout-kAnhqQqm.js"),__vite__mapDeps([0,1,2])),children:[{path:"",component:()=>fr(()=>import("./IndexPage-BPvL5jsZ.js"),__vite__mapDeps([3,1,4,5]))}]},{path:"/:catchAll(.*)*",component:()=>fr(()=>import("./ErrorNotFound-N1XZu9vF.js"),[])}],Rs=function(){return Vp({scrollBehavior:()=>({left:0,top:0}),routes:zp,history:cp("/openWB/web/themes/koala/")})};async function Kp(e,t){const n=e(eh);n.use(Jd,t);const r=typeof Es=="function"?await Es({}):Es;n.use(r);const s=it(typeof Rs=="function"?await Rs({store:r}):Rs);return r.use(({store:o})=>{o.router=s}),{app:n,store:r,router:s}}const Wp={isoName:"de-DE",nativeName:"Deutsch (DE)",label:{clear:"Leeren",ok:"Ok",cancel:"Abbrechen",close:"Schließen",set:"Setzen",select:"Auswählen",reset:"Zurücksetzen",remove:"Löschen",update:"Aktualisieren",create:"Erstellen",search:"Suche",filter:"Filter",refresh:"Aktualisieren",expand:e=>e?`Erweitern Sie "${e}"`:"Erweitern",collapse:e=>e?`"${e}" minimieren`:"Zusammenbruch"},date:{days:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),daysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan_Feb_März_Apr_Mai_Jun_Jul_Aug_Sep_Okt_Nov_Dez".split("_"),firstDayOfWeek:1,format24h:!0,pluralDay:"Tage"},table:{noData:"Keine Daten vorhanden.",noResults:"Keine Einträge gefunden",loading:"Lade...",selectedRecords:e=>e>1?e+" ausgewählte Zeilen":(e===0?"Keine":"1")+" ausgewählt.",recordsPerPage:"Zeilen pro Seite",allRows:"Alle",pagination:(e,t,n)=>e+"-"+t+" von "+n,columns:"Spalten"},editor:{url:"URL",bold:"Fett",italic:"Kursiv",strikethrough:"Durchgestrichen",underline:"Unterstrichen",unorderedList:"Ungeordnete Liste",orderedList:"Geordnete Liste",subscript:"tiefgestellt",superscript:"hochgestellt",hyperlink:"Link",toggleFullscreen:"Vollbild umschalten",quote:"Zitat",left:"linksbündig",center:"zentriert",right:"rechtsbündig",justify:"Ausrichten",print:"Drucken",outdent:"ausrücken",indent:"einrücken",removeFormat:"Entferne Formatierung",formatting:"Formatiere",fontSize:"Schriftgröße",align:"Ausrichten",hr:"Horizontale Linie einfügen",undo:"Rückgänging",redo:"Wiederherstellen",heading1:"Überschrift 1",heading2:"Überschrift 2",heading3:"Überschrift 3",heading4:"Überschrift 4",heading5:"Überschrift 5",heading6:"Überschrift 6",paragraph:"Absatz",code:"Code",size1:"Sehr klein",size2:"klein",size3:"Normal",size4:"Groß",size5:"Größer",size6:"Sehr groß",size7:"Maximum",defaultFont:"Standard Schrift",viewSource:"Quelltext anzeigen"},tree:{noNodes:"Keine Knoten verfügbar",noResults:"Keine passenden Knoten gefunden"}},to={xs:18,sm:24,md:32,lg:38,xl:46},Ao={size:String};function Lo(e,t=to){return G(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Gp(e,t){return e!==void 0&&e()||t}function fm(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function kn(e,t){return e!==void 0?t.concat(e()):t}function Qp(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function dm(e,t,n,r,s,o){t.key=r+s;const i=W(e,t,n);return s===!0?Vl(i,o()):i}const Ji="0 0 24 24",Yi=e=>e,ks=e=>`ionicons ${e}`,Sc={"mdi-":e=>`mdi ${e}`,"icon-":Yi,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":ks,"ion-ios":ks,"ion-logo":ks,"iconfont ":Yi,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},xc={o_:"-outlined",r_:"-round",s_:"-sharp"},Ec={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Jp=new RegExp("^("+Object.keys(Sc).join("|")+")"),Yp=new RegExp("^("+Object.keys(xc).join("|")+")"),Xi=new RegExp("^("+Object.keys(Ec).join("|")+")"),Xp=/^[Mm]\s?[-+]?\.?\d/,Zp=/^img:/,eg=/^svguse:/,tg=/^ion-/,ng=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,Fr=Zn({name:"QIcon",props:{...Ao,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=lt(),r=Lo(e),s=G(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),o=G(()=>{let i,l=e.name;if(l==="none"||!l)return{none:!0};if(n.iconMapFn!==null){const c=n.iconMapFn(l);if(c!==void 0)if(c.icon!==void 0){if(l=c.icon,l==="none"||!l)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(Xp.test(l)===!0){const[c,d=Ji]=l.split("|");return{svg:!0,viewBox:d,nodes:c.split("&&").map(f=>{const[g,v,E]=f.split("@@");return W("path",{style:v,d:g,transform:E})})}}if(Zp.test(l)===!0)return{img:!0,src:l.substring(4)};if(eg.test(l)===!0){const[c,d=Ji]=l.split("|");return{svguse:!0,src:c.substring(7),viewBox:d}}let a=" ";const u=l.match(Jp);if(u!==null)i=Sc[u[1]](l);else if(ng.test(l)===!0)i=l;else if(tg.test(l)===!0)i=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${l.substring(3)}`;else if(Xi.test(l)===!0){i="notranslate material-symbols";const c=l.match(Xi);c!==null&&(l=l.substring(6),i+=Ec[c[1]]),a=l}else{i="notranslate material-icons";const c=l.match(Yp);c!==null&&(l=l.substring(2),i+=xc[c[1]]),a=l}return{cls:i,content:a}});return()=>{const i={class:s.value,style:r.value,"aria-hidden":"true",role:"presentation"};return o.value.none===!0?W(e.tag,i,Gp(t.default)):o.value.img===!0?W(e.tag,i,kn(t.default,[W("img",{src:o.value.src})])):o.value.svg===!0?W(e.tag,i,kn(t.default,[W("svg",{viewBox:o.value.viewBox||"0 0 24 24"},o.value.nodes)])):o.value.svguse===!0?W(e.tag,i,kn(t.default,[W("svg",{viewBox:o.value.viewBox},[W("use",{"xlink:href":o.value.src})])])):(o.value.cls!==void 0&&(i.class+=" "+o.value.cls),W(e.tag,i,kn(t.default,[o.value.content])))}}}),rg=Zn({name:"QAvatar",props:{...Ao,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=Lo(e),r=G(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),s=G(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const o=e.icon!==void 0?[W(Fr,{name:e.icon})]:void 0;return W("div",{class:r.value,style:n.value},[W("div",{class:"q-avatar__content row flex-center overflow-hidden",style:s.value},Qp(t.default,o))])}}}),sg={size:{type:[String,Number],default:"1em"},color:String};function og(e){return{cSize:G(()=>e.size in to?`${to[e.size]}px`:e.size),classes:G(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Cc=Zn({name:"QSpinner",props:{...sg,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=og(e);return()=>W("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[W("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function ig(e,t){const n=e.style;for(const r in t)n[r]=t[r]}function hm(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=gt(e);if(t)return t.$el||t}function pm(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}function lg(e,t=250){let n=!1,r;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),r=e.apply(this,arguments)),r}}function Zi(e,t,n,r){n.modifiers.stop===!0&&ja(e);const s=n.modifiers.color;let o=n.modifiers.center;o=o===!0||r===!0;const i=document.createElement("span"),l=document.createElement("span"),a=Rd(e),{left:u,top:c,width:d,height:f}=t.getBoundingClientRect(),g=Math.sqrt(d*d+f*f),v=g/2,E=`${(d-g)/2}px`,P=o?E:`${a.left-u-v}px`,R=`${(f-g)/2}px`,w=o?R:`${a.top-c-v}px`;l.className="q-ripple__inner",ig(l,{height:`${g}px`,width:`${g}px`,transform:`translate3d(${P},${w},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${s?" text-"+s:""}`,i.setAttribute("dir","ltr"),i.appendChild(l),t.appendChild(i);const S=()=>{i.remove(),clearTimeout(y)};n.abort.push(S);let y=setTimeout(()=>{l.classList.add("q-ripple__inner--enter"),l.style.transform=`translate3d(${E},${R},0) scale3d(1,1,1)`,l.style.opacity=.2,y=setTimeout(()=>{l.classList.remove("q-ripple__inner--enter"),l.classList.add("q-ripple__inner--leave"),l.style.opacity=0,y=setTimeout(()=>{i.remove(),n.abort.splice(n.abort.indexOf(S),1)},275)},250)},50)}function el(e,{modifiers:t,value:n,arg:r}){const s=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||r,keyCodes:[].concat(s.keyCodes||13)}}const ag=Td({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const r={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(s){r.enabled===!0&&s.qSkipRipple!==!0&&s.type===(r.modifiers.early===!0?"pointerdown":"click")&&Zi(s,e,r,s.qKeyEvent===!0)},keystart:lg(s=>{r.enabled===!0&&s.qSkipRipple!==!0&&Ws(s,r.modifiers.keyCodes)===!0&&s.type===`key${r.modifiers.early===!0?"down":"up"}`&&Zi(s,e,r,!0)},300)};el(r,t),e.__qripple=r,kd(r,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&el(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),Od(t,"main"),delete e._qripple)}}),Pc={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},cg=Object.keys(Pc),ug={align:{type:String,validator:e=>cg.includes(e)}};function fg(e){return G(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Pc[t]}`})}function gm(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function Tc(e,t){typeof t.type=="symbol"?Array.isArray(t.children)===!0&&t.children.forEach(n=>{Tc(e,n)}):e.add(t)}function mm(e){const t=new Set;return e.forEach(n=>{Tc(t,n)}),Array.from(t)}function dg(e){return e.appContext.config.globalProperties.$router!==void 0}function vm(e){return e.isUnmounted===!0||e.isDeactivated===!0}function tl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function nl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function hg(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(Array.isArray(s)===!1||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function rl(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function pg(e,t){return Array.isArray(e)===!0?rl(e,t):Array.isArray(t)===!0?rl(t,e):e===t}function gg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(pg(e[n],t[n])===!1)return!1;return!0}const Rc={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},_m={...Rc,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function mg({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=lt(),{props:r,proxy:s,emit:o}=n,i=dg(n),l=G(()=>r.disable!==!0&&r.href!==void 0),a=G(t===!0?()=>i===!0&&r.disable!==!0&&l.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!=="":()=>i===!0&&l.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""),u=G(()=>a.value===!0?w(r.to):null),c=G(()=>u.value!==null),d=G(()=>l.value===!0||c.value===!0),f=G(()=>r.type==="a"||d.value===!0?"a":r.tag||e||"div"),g=G(()=>l.value===!0?{href:r.href,target:r.target}:c.value===!0?{href:u.value.href,target:r.target}:{}),v=G(()=>{if(c.value===!1)return-1;const{matched:I}=u.value,{length:q}=I,j=I[q-1];if(j===void 0)return-1;const X=s.$route.matched;if(X.length===0)return-1;const F=X.findIndex(nl.bind(null,j));if(F!==-1)return F;const $=tl(I[q-2]);return q>1&&tl(j)===$&&X[X.length-1].path!==$?X.findIndex(nl.bind(null,I[q-2])):F}),E=G(()=>c.value===!0&&v.value!==-1&&hg(s.$route.params,u.value.params)),P=G(()=>E.value===!0&&v.value===s.$route.matched.length-1&&gg(s.$route.params,u.value.params)),R=G(()=>c.value===!0?P.value===!0?` ${r.exactActiveClass} ${r.activeClass}`:r.exact===!0?"":E.value===!0?` ${r.activeClass}`:"":"");function w(I){try{return s.$router.resolve(I)}catch{}return null}function S(I,{returnRouterError:q,to:j=r.to,replace:X=r.replace}={}){if(r.disable===!0)return I.preventDefault(),Promise.resolve(!1);if(I.metaKey||I.altKey||I.ctrlKey||I.shiftKey||I.button!==void 0&&I.button!==0||r.target==="_blank")return Promise.resolve(!1);I.preventDefault();const F=s.$router[X===!0?"replace":"push"](j);return q===!0?F:F.then(()=>{}).catch(()=>{})}function y(I){if(c.value===!0){const q=j=>S(I,j);o("click",I,q),I.defaultPrevented!==!0&&q()}else o("click",I)}return{hasRouterLink:c,hasHrefLink:l,hasLink:d,linkTag:f,resolvedLink:u,linkIsActive:E,linkIsExactActive:P,linkClass:R,linkAttrs:g,getLink:w,navigateToRouterLink:S,navigateOnClick:y}}const sl={none:0,xs:4,sm:8,md:16,lg:24,xl:32},vg={xs:8,sm:10,md:14,lg:20,xl:24},_g=["button","submit","reset"],yg=/[^\s]\/[^\s]/,bg=["flat","outline","push","unelevated"];function kc(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}function ym(e){const t=kc(e);return t!==void 0?{[t]:!0}:{}}const wg={...Ao,...Rc,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...bg.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...ug.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Sg={...wg,round:Boolean};function xg(e){const t=Lo(e,vg),n=fg(e),{hasRouterLink:r,hasLink:s,linkTag:o,linkAttrs:i,navigateOnClick:l}=mg({fallbackTag:"button"}),a=G(()=>{const P=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},P,{padding:e.padding.split(/\s+/).map(R=>R in sl?sl[R]+"px":R).join(" "),minWidth:"0",minHeight:"0"}):P}),u=G(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),c=G(()=>e.disable!==!0&&e.loading!==!0),d=G(()=>c.value===!0?e.tabindex||0:-1),f=G(()=>kc(e,"standard")),g=G(()=>{const P={tabindex:d.value};return s.value===!0?Object.assign(P,i.value):_g.includes(e.type)===!0&&(P.type=e.type),o.value==="a"?(e.disable===!0?P["aria-disabled"]="true":P.href===void 0&&(P.role="button"),r.value!==!0&&yg.test(e.type)===!0&&(P.type=e.type)):e.disable===!0&&(P.disabled="",P["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(P,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),P}),v=G(()=>{let P;e.color!==void 0?e.flat===!0||e.outline===!0?P=`text-${e.textColor||e.color}`:P=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(P=`text-${e.textColor}`);const R=e.round===!0?"round":`rectangle${u.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${f.value} q-btn--${R}`+(P!==void 0?" "+P:"")+(c.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),E=G(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:v,style:a,innerClasses:E,attributes:g,hasLink:s,linkTag:o,navigateOnClick:l,isActionable:c}}const{passiveCapture:He}=Jt;let on=null,ln=null,an=null;const Eg=Zn({name:"QBtn",props:{...Sg,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:r}=lt(),{classes:s,style:o,innerClasses:i,attributes:l,hasLink:a,linkTag:u,navigateOnClick:c,isActionable:d}=xg(e),f=Gt(null),g=Gt(null);let v=null,E,P=null;const R=G(()=>e.label!==void 0&&e.label!==null&&e.label!==""),w=G(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:a.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),S=G(()=>({center:e.round})),y=G(()=>{const M=Math.max(0,Math.min(100,e.percentage));return M>0?{transition:"transform 0.6s",transform:`translateX(${M-100}%)`}:{}}),I=G(()=>{if(e.loading===!0)return{onMousedown:Y,onTouchstart:Y,onClick:Y,onKeydown:Y,onKeyup:Y};if(d.value===!0){const M={onClick:j,onKeydown:X,onMousedown:$};if(r.$q.platform.has.touch===!0){const ee=e.onTouchstart!==void 0?"":"Passive";M[`onTouchstart${ee}`]=F}return M}return{onClick:nn}}),q=G(()=>({ref:f,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:o.value,...l.value,...I.value}));function j(M){if(f.value!==null){if(M!==void 0){if(M.defaultPrevented===!0)return;const ee=document.activeElement;if(e.type==="submit"&&ee!==document.body&&f.value.contains(ee)===!1&&ee.contains(f.value)===!1){f.value.focus();const ae=()=>{document.removeEventListener("keydown",nn,!0),document.removeEventListener("keyup",ae,He),f.value!==null&&f.value.removeEventListener("blur",ae,He)};document.addEventListener("keydown",nn,!0),document.addEventListener("keyup",ae,He),f.value.addEventListener("blur",ae,He)}}c(M)}}function X(M){f.value!==null&&(n("keydown",M),Ws(M,[13,32])===!0&&ln!==f.value&&(ln!==null&&O(),M.defaultPrevented!==!0&&(f.value.focus(),ln=f.value,f.value.classList.add("q-btn--active"),document.addEventListener("keyup",L,!0),f.value.addEventListener("blur",L,He)),nn(M)))}function F(M){f.value!==null&&(n("touchstart",M),M.defaultPrevented!==!0&&(on!==f.value&&(on!==null&&O(),on=f.value,v=M.target,v.addEventListener("touchcancel",L,He),v.addEventListener("touchend",L,He)),E=!0,P!==null&&clearTimeout(P),P=setTimeout(()=>{P=null,E=!1},200)))}function $(M){f.value!==null&&(M.qSkipRipple=E===!0,n("mousedown",M),M.defaultPrevented!==!0&&an!==f.value&&(an!==null&&O(),an=f.value,f.value.classList.add("q-btn--active"),document.addEventListener("mouseup",L,He)))}function L(M){if(f.value!==null&&!(M!==void 0&&M.type==="blur"&&document.activeElement===f.value)){if(M!==void 0&&M.type==="keyup"){if(ln===f.value&&Ws(M,[13,32])===!0){const ee=new MouseEvent("click",M);ee.qKeyEvent=!0,M.defaultPrevented===!0&&Ks(ee),M.cancelBubble===!0&&ja(ee),f.value.dispatchEvent(ee),nn(M),M.qKeyEvent=!0}n("keyup",M)}O()}}function O(M){const ee=g.value;M!==!0&&(on===f.value||an===f.value)&&ee!==null&&ee!==document.activeElement&&(ee.setAttribute("tabindex",-1),ee.focus()),on===f.value&&(v!==null&&(v.removeEventListener("touchcancel",L,He),v.removeEventListener("touchend",L,He)),on=v=null),an===f.value&&(document.removeEventListener("mouseup",L,He),an=null),ln===f.value&&(document.removeEventListener("keyup",L,!0),f.value!==null&&f.value.removeEventListener("blur",L,He),ln=null),f.value!==null&&f.value.classList.remove("q-btn--active")}function Y(M){nn(M),M.qSkipRipple=!0}return Zr(()=>{O(!0)}),Object.assign(r,{click:M=>{d.value===!0&&j(M)}}),()=>{let M=[];e.icon!==void 0&&M.push(W(Fr,{name:e.icon,left:e.stack!==!0&&R.value===!0,role:"img"})),R.value===!0&&M.push(W("span",{class:"block"},[e.label])),M=kn(t.default,M),e.iconRight!==void 0&&e.round===!1&&M.push(W(Fr,{name:e.iconRight,right:e.stack!==!0&&R.value===!0,role:"img"}));const ee=[W("span",{class:"q-focus-helper",ref:g})];return e.loading===!0&&e.percentage!==void 0&&ee.push(W("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[W("span",{class:"q-btn__progress-indicator fit block",style:y.value})])),ee.push(W("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+i.value},M)),e.loading!==null&&ee.push(W(Wf,{name:"q-transition--fade"},()=>e.loading===!0?[W("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[W(Cc)])]:null)),Vl(W(u.value,q.value,ee),[[ag,w.value,void 0,S.value]])}}});let Cg=1,Pg=document.body;function Tg(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${Cg++}`:e,jr.globalNodes!==void 0){const r=jr.globalNodes.class;r!==void 0&&(n.className=r)}return Pg.appendChild(n),n}function bm(e){e.remove()}let Rg=0;const br={},wr={},Ge={},Oc={},kg=/^\s*$/,Ac=[],Og=[void 0,null,!0,!1,""],Io=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],Ag=["top-left","top-right","bottom-left","bottom-right"],un={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function Lc(e,t,n){if(!e)return Cn("parameter required");let r;const s={textColor:"white"};if(e.ignoreDefaults!==!0&&Object.assign(s,br),Wn(e)===!1&&(s.type&&Object.assign(s,un[s.type]),e={message:e}),Object.assign(s,un[e.type||s.type],e),typeof s.icon=="function"&&(s.icon=s.icon(t)),s.spinner?(s.spinner===!0&&(s.spinner=Cc),s.spinner=it(s.spinner)):s.spinner=!1,s.meta={hasMedia:!!(s.spinner!==!1||s.icon||s.avatar),hasText:ol(s.message)||ol(s.caption)},s.position){if(Io.includes(s.position)===!1)return Cn("wrong position",e)}else s.position="bottom";if(Og.includes(s.timeout)===!0)s.timeout=5e3;else{const a=Number(s.timeout);if(isNaN(a)||a<0)return Cn("wrong timeout",e);s.timeout=Number.isFinite(a)?a:0}s.timeout===0?s.progress=!1:s.progress===!0&&(s.meta.progressClass="q-notification__progress"+(s.progressClass?` ${s.progressClass}`:""),s.meta.progressStyle={animationDuration:`${s.timeout+1e3}ms`});const o=(Array.isArray(e.actions)===!0?e.actions:[]).concat(e.ignoreDefaults!==!0&&Array.isArray(br.actions)===!0?br.actions:[]).concat(un[e.type]!==void 0&&Array.isArray(un[e.type].actions)===!0?un[e.type].actions:[]),{closeBtn:i}=s;if(i&&o.push({label:typeof i=="string"?i:t.lang.label.close}),s.actions=o.map(({handler:a,noDismiss:u,...c})=>({flat:!0,...c,onClick:typeof a=="function"?()=>{a(),u!==!0&&l()}:()=>{l()}})),s.multiLine===void 0&&(s.multiLine=s.actions.length>1),Object.assign(s.meta,{class:`q-notification row items-stretch q-notification--${s.multiLine===!0?"multi-line":"standard"}`+(s.color!==void 0?` bg-${s.color}`:"")+(s.textColor!==void 0?` text-${s.textColor}`:"")+(s.classes!==void 0?` ${s.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(s.multiLine===!0?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(s.multiLine===!0?"":" col"),leftClass:s.meta.hasText===!0?"additional":"single",attrs:{role:"alert",...s.attrs}}),s.group===!1?(s.group=void 0,s.meta.group=void 0):((s.group===void 0||s.group===!0)&&(s.group=[s.message,s.caption,s.multiline].concat(s.actions.map(a=>`${a.label}*${a.icon}`)).join("|")),s.meta.group=s.group+"|"+s.position),s.actions.length===0?s.actions=void 0:s.meta.actionsClass="q-notification__actions row items-center "+(s.multiLine===!0?"justify-end":"col-auto")+(s.meta.hasMedia===!0?" q-notification__actions--with-media":""),n!==void 0){n.notif.meta.timer&&(clearTimeout(n.notif.meta.timer),n.notif.meta.timer=void 0),s.meta.uid=n.notif.meta.uid;const a=Ge[s.position].value.indexOf(n.notif);Ge[s.position].value[a]=s}else{const a=wr[s.meta.group];if(a===void 0){if(s.meta.uid=Rg++,s.meta.badge=1,["left","right","center"].indexOf(s.position)!==-1)Ge[s.position].value.splice(Math.floor(Ge[s.position].value.length/2),0,s);else{const u=s.position.indexOf("top")!==-1?"unshift":"push";Ge[s.position].value[u](s)}s.group!==void 0&&(wr[s.meta.group]=s)}else{if(a.meta.timer&&(clearTimeout(a.meta.timer),a.meta.timer=void 0),s.badgePosition!==void 0){if(Ag.includes(s.badgePosition)===!1)return Cn("wrong badgePosition",e)}else s.badgePosition=`top-${s.position.indexOf("left")!==-1?"right":"left"}`;s.meta.uid=a.meta.uid,s.meta.badge=a.meta.badge+1,s.meta.badgeClass=`q-notification__badge q-notification__badge--${s.badgePosition}`+(s.badgeColor!==void 0?` bg-${s.badgeColor}`:"")+(s.badgeTextColor!==void 0?` text-${s.badgeTextColor}`:"")+(s.badgeClass?` ${s.badgeClass}`:"");const u=Ge[s.position].value.indexOf(a);Ge[s.position].value[u]=wr[s.meta.group]=s}}const l=()=>{Lg(s),r=void 0};if(s.timeout>0&&(s.meta.timer=setTimeout(()=>{s.meta.timer=void 0,l()},s.timeout+1e3)),s.group!==void 0)return a=>{a!==void 0?Cn("trying to update a grouped one which is forbidden",e):l()};if(r={dismiss:l,config:e,notif:s},n!==void 0){Object.assign(n,r);return}return a=>{if(r!==void 0)if(a===void 0)r.dismiss();else{const u=Object.assign({},r.config,a,{group:!1,position:s.position});Lc(u,t,r)}}}function Lg(e){e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0);const t=Ge[e.position].value.indexOf(e);if(t!==-1){e.group!==void 0&&delete wr[e.meta.group];const n=Ac[""+e.meta.uid];if(n){const{width:r,height:s}=getComputedStyle(n);n.style.left=`${n.offsetLeft}px`,n.style.width=r,n.style.height=s}Ge[e.position].value.splice(t,1),typeof e.onDismiss=="function"&&e.onDismiss()}}function ol(e){return e!=null&&kg.test(e)!==!0}function Cn(e,t){return console.error(`Notify: ${e}`,t),!1}function Ig(){return Zn({name:"QNotifications",devtools:{hide:!0},setup(){return()=>W("div",{class:"q-notifications"},Io.map(e=>W(dd,{key:e,class:Oc[e],tag:"div",name:`q-notification--${e}`},()=>Ge[e].value.map(t=>{const n=t.meta,r=[];if(n.hasMedia===!0&&(t.spinner!==!1?r.push(W(t.spinner,{class:"q-notification__spinner q-notification__spinner--"+n.leftClass,color:t.spinnerColor,size:t.spinnerSize})):t.icon?r.push(W(Fr,{class:"q-notification__icon q-notification__icon--"+n.leftClass,name:t.icon,color:t.iconColor,size:t.iconSize,role:"img"})):t.avatar&&r.push(W(rg,{class:"q-notification__avatar q-notification__avatar--"+n.leftClass},()=>W("img",{src:t.avatar,"aria-hidden":"true"})))),n.hasText===!0){let o;const i={class:"q-notification__message col"};if(t.html===!0)i.innerHTML=t.caption?`
${t.message}
${t.caption}
`:t.message;else{const l=[t.message];o=t.caption?[W("div",l),W("div",{class:"q-notification__caption"},[t.caption])]:l}r.push(W("div",i,o))}const s=[W("div",{class:n.contentClass},r)];return t.progress===!0&&s.push(W("div",{key:`${n.uid}|p|${n.badge}`,class:n.progressClass,style:n.progressStyle})),t.actions!==void 0&&s.push(W("div",{class:n.actionsClass},t.actions.map(o=>W(Eg,o)))),n.badge>1&&s.push(W("div",{key:`${n.uid}|${n.badge}`,class:t.meta.badgeClass,style:t.badgeStyle},[n.badge])),W("div",{ref:o=>{Ac[""+n.uid]=o},key:n.uid,class:n.class,...n.attrs},[W("div",{class:n.wrapperClass},s)])}))))}})}const $g={setDefaults(e){Wn(e)===!0&&Object.assign(br,e)},registerType(e,t){Wn(t)===!0&&(un[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create=n=>Lc(n,e),e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,e.config.notify!==void 0&&this.setDefaults(e.config.notify),this.__installed!==!0){Io.forEach(r=>{Ge[r]=Gt([]);const s=["left","center","right"].includes(r)===!0?"center":r.indexOf("top")!==-1?"top":"bottom",o=r.indexOf("left")!==-1?"start":r.indexOf("right")!==-1?"end":"center",i=["left","right"].includes(r)?`items-${r==="left"?"start":"end"} justify-center`:r==="center"?"flex-center":`items-${o}`;Oc[r]=`q-notifications__list q-notifications__list--${s} fixed column no-wrap ${i}`});const n=Tg("q-notify");Wd(Ig(),t).mount(n)}}},Mg={config:{dark:"auto"},lang:Wp,plugins:{Notify:$g}},Ng="/openWB/web/themes/koala/";async function jg({app:e,router:t,store:n},r){let s=!1;const o=a=>{try{return t.resolve(a).href}catch{}return Object(a)===a?null:a},i=a=>{if(s=!0,typeof a=="string"&&/^https?:\/\//.test(a)){window.location.href=a;return}const u=o(a);u!==null&&(window.location.href=u,window.location.reload())},l=window.location.href.replace(window.location.origin,"");for(let a=0;s===!1&&a{const[t,n]=Promise.allSettled!==void 0?["allSettled",r=>r.map(s=>{if(s.status==="rejected"){console.error("[Quasar] boot error:",s.reason);return}return s.value.default})]:["all",r=>r.map(s=>s.default)];return Promise[t]([fr(()=>import("./store-init-BnCEmsd-.js"),__vite__mapDeps([6,4]))]).then(r=>{const s=n(r).filter(o=>typeof o=="function");jg(e,s)})});export{Vd as $,Ar as A,Nu as B,Le as C,$f as D,Fr as E,om as F,Ws as G,Md as H,nn as I,Uu as J,Vu as K,Td as L,st as M,Kn as N,Zg as O,kd as P,Eg as Q,ag as R,tm as S,Rd as T,Od as U,Wf as V,mm as W,Hg as X,dg as Y,ea as Z,Xd as _,G as a,am as a0,Jg as a1,Wg as a2,wa as a3,Te as a4,Vg as a5,Ur as a6,Gg as a7,Qc as a8,Il as a9,Ug as aA,Mf as aB,Dg as aC,If as aD,Qg as aE,wg as aF,ym as aG,zs as aH,ug as aI,fg as aJ,Bg as aK,_m as aL,mg as aM,gm as aN,Fg as aO,Tg as aP,bm as aQ,vm as aR,hm as aS,ig as aT,em as aU,zd as aV,oi as aa,Z as ab,po as ac,um as ad,Vr as ae,qg as af,pm as ag,zg as ah,Yg as ai,Ku as aj,sm as ak,Ad as al,ss as am,Ks as an,Cc as ao,ja as ap,Jt as aq,Ao as ar,Lo as as,Qp as at,bo as au,Ss as av,lm as aw,Wn as ax,Xg as ay,Kg as az,cm as b,Zn as c,Gp as d,im as e,fm as f,lt as g,W as h,rt as i,Xr as j,Vl as k,nm as l,dm as m,mo as n,Zr as o,hr as p,rm as q,Gt as r,Qt as s,Xt as t,wo as u,kn as v,Lt as w,Qr as x,Yu as y,Or as z}; + */const ht=typeof document<"u";function tc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Lh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&tc(e.default)}const se=Object.assign;function Cs(e,t){const n={};for(const r in t){const s=t[r];n[r]=De(s)?s.map(e):e(s)}return n}const Fn=()=>{},De=Array.isArray,nc=/#/g,Ih=/&/g,$h=/\//g,Mh=/=/g,Nh=/\?/g,rc=/\+/g,jh=/%5B/g,Dh=/%5D/g,sc=/%5E/g,Fh=/%60/g,oc=/%7B/g,Bh=/%7C/g,ic=/%7D/g,Hh=/%20/g;function ko(e){return encodeURI(""+e).replace(Bh,"|").replace(jh,"[").replace(Dh,"]")}function qh(e){return ko(e).replace(oc,"{").replace(ic,"}").replace(sc,"^")}function Ys(e){return ko(e).replace(rc,"%2B").replace(Hh,"+").replace(nc,"%23").replace(Ih,"%26").replace(Fh,"`").replace(oc,"{").replace(ic,"}").replace(sc,"^")}function Vh(e){return Ys(e).replace(Mh,"%3D")}function Uh(e){return ko(e).replace(nc,"%23").replace(Nh,"%3F")}function zh(e){return e==null?"":Uh(e).replace($h,"%2F")}function vn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Kh=/\/$/,Wh=e=>e.replace(Kh,"");function Ps(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),o=t.slice(a+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=Yh(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:vn(i)}}function Gh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ii(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Qh(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Mt(t.matched[r],n.matched[s])&&lc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Mt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function lc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Jh(e[n],t[n]))return!1;return!0}function Jh(e,t){return De(e)?$i(e,t):De(t)?$i(t,e):e===t}function $i(e,t){return De(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Yh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const St={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Gn;(function(e){e.pop="pop",e.push="push"})(Gn||(Gn={}));var Bn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Bn||(Bn={}));function Xh(e){if(!e)if(ht){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Wh(e)}const Zh=/^[^#]+#/;function ep(e,t){return e.replace(Zh,"#")+t}function tp(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ls=()=>({left:window.scrollX,top:window.scrollY});function np(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=tp(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Mi(e,t){return(history.state?history.state.position-t:-1)+e}const Xs=new Map;function rp(e,t){Xs.set(e,t)}function sp(e){const t=Xs.get(e);return Xs.delete(e),t}let op=()=>location.protocol+"//"+location.host;function ac(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,a=s.slice(l);return a[0]!=="/"&&(a="/"+a),Ii(a,"")}return Ii(n,e)+r+s}function ip(e,t,n,r){let s=[],o=[],i=null;const l=({state:f})=>{const g=ac(e,location),v=n.value,E=t.value;let P=0;if(f){if(n.value=g,t.value=f,i&&i===v){i=null;return}P=E?f.position-E.position:0}else r(g);s.forEach(R=>{R(n.value,v,{delta:P,type:Gn.pop,direction:P?P>0?Bn.forward:Bn.back:Bn.unknown})})};function a(){i=n.value}function u(f){s.push(f);const g=()=>{const v=s.indexOf(f);v>-1&&s.splice(v,1)};return o.push(g),g}function c(){const{history:f}=window;f.state&&f.replaceState(se({},f.state,{scroll:ls()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:a,listen:u,destroy:d}}function Ni(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?ls():null}}function lp(e){const{history:t,location:n}=window,r={value:ac(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+a:op()+e+a;try{t[c?"replaceState":"pushState"](u,"",f),s.value=u}catch(g){console.error(g),n[c?"replace":"assign"](f)}}function i(a,u){const c=se({},t.state,Ni(s.value.back,a,s.value.forward,!0),u,{position:s.value.position});o(a,c,!0),r.value=a}function l(a,u){const c=se({},s.value,t.state,{forward:a,scroll:ls()});o(c.current,c,!0);const d=se({},Ni(r.value,a,null),{position:c.position+1},u);o(a,d,!1),r.value=a}return{location:r,state:s,push:l,replace:i}}function ap(e){e=Xh(e);const t=lp(e),n=ip(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=se({location:"",base:e,go:r,createHref:ep.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function cp(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ap(e)}function cc(e){return typeof e=="string"||e&&typeof e=="object"}function uc(e){return typeof e=="string"||typeof e=="symbol"}const fc=Symbol("");var ji;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ji||(ji={}));function _n(e,t){return se(new Error,{type:e,[fc]:!0},t)}function ut(e,t){return e instanceof Error&&fc in e&&(t==null||!!(e.type&t))}const Di="[^/]+?",up={sensitive:!1,strict:!1,start:!0,end:!0},fp=/[.+*?^${}()[\]/\\]/g;function dp(e,t){const n=se({},up,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function dc(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const pp={type:0,value:""},gp=/[a-zA-Z0-9_]/;function mp(e){if(!e)return[[]];if(e==="/")return[[pp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,a,u="",c="";function d(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=a}for(;l{i(S)}:Fn}function i(d){if(uc(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function a(d){const f=wp(d,n);n.splice(f,0,d),d.record.name&&!qi(d)&&r.set(d.record.name,d)}function u(d,f){let g,v={},E,P;if("name"in d&&d.name){if(g=r.get(d.name),!g)throw _n(1,{location:d});P=g.record.name,v=se(Bi(f.params,g.keys.filter(S=>!S.optional).concat(g.parent?g.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),d.params&&Bi(d.params,g.keys.map(S=>S.name))),E=g.stringify(v)}else if(d.path!=null)E=d.path,g=n.find(S=>S.re.test(E)),g&&(v=g.parse(E),P=g.record.name);else{if(g=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!g)throw _n(1,{location:d,currentLocation:f});P=g.record.name,v=se({},f.params,d.params),E=g.stringify(v)}const R=[];let w=g;for(;w;)R.unshift(w.record),w=w.parent;return{name:P,path:E,params:v,matched:R,meta:bp(R)}}e.forEach(d=>o(d));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:c,getRoutes:l,getRecordMatcher:s}}function Bi(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Hi(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:yp(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function yp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function qi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bp(e){return e.reduce((t,n)=>se(t,n.meta),{})}function Vi(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function wp(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;dc(e,t[o])<0?r=o:n=o+1}const s=Sp(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function Sp(e){let t=e;for(;t=t.parent;)if(hc(t)&&dc(e,t)===0)return t}function hc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function xp(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Ys(o)):[r&&Ys(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Ep(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=De(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Cp=Symbol(""),zi=Symbol(""),Oo=Symbol(""),pc=Symbol(""),Zs=Symbol("");function xn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Rt(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,a)=>{const u=f=>{f===!1?a(_n(4,{from:n,to:t})):f instanceof Error?a(f):cc(f)?a(_n(2,{from:t,to:f})):(i&&r.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),l())},c=o(()=>e.call(r&&r.instances[s],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>a(f))})}function Ts(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(tc(a)){const c=(a.__vccOpts||a)[t];c&&o.push(Rt(c,n,r,i,l,s))}else{let u=a();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=Lh(c)?c.default:c;i.mods[l]=c,i.components[l]=d;const g=(d.__vccOpts||d)[t];return g&&Rt(g,n,r,i,l,s)()}))}}return o}function Ki(e){const t=rt(Oo),n=rt(pc),r=G(()=>{const a=gt(e.to);return t.resolve(a)}),s=G(()=>{const{matched:a}=r.value,{length:u}=a,c=a[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(Mt.bind(null,c));if(f>-1)return f;const g=Wi(a[u-2]);return u>1&&Wi(c)===g&&d[d.length-1].path!==g?d.findIndex(Mt.bind(null,a[u-2])):f}),o=G(()=>s.value>-1&&kp(n.params,r.value.params)),i=G(()=>s.value>-1&&s.value===n.matched.length-1&&lc(n.params,r.value.params));function l(a={}){return Rp(a)?t[gt(e.replace)?"replace":"push"](gt(e.to)).catch(Fn):Promise.resolve()}if(ht){const a=lt();if(a){const u={route:r.value,isActive:o.value,isExactActive:i.value,error:null};a.__vrl_devtools=a.__vrl_devtools||[],a.__vrl_devtools.push(u),wf(()=>{u.route=r.value,u.isActive=o.value,u.isExactActive=i.value,u.error=cc(gt(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:r,href:G(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}const Pp=Qr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ki,setup(e,{slots:t}){const n=Xt(Ki(e)),{options:r}=rt(Oo),s=G(()=>({[Gi(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Gi(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:W("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Tp=Pp;function Rp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function kp(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!De(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function Wi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Gi=(e,t,n)=>e??t??n,Op=Qr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=rt(Zs),s=G(()=>e.route||r.value),o=rt(zi,0),i=G(()=>{let u=gt(o);const{matched:c}=s.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),l=G(()=>s.value.matched[i.value]);hr(zi,G(()=>i.value+1)),hr(Cp,l),hr(Zs,s);const a=Gt();return Lt(()=>[a.value,l.value,e.name],([u,c,d],[f,g,v])=>{c&&(c.instances[d]=u,g&&g!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),u&&c&&(!g||!Mt(c,g)||!f)&&(c.enterCallbacks[d]||[]).forEach(E=>E(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,d=l.value,f=d&&d.components[c];if(!f)return Qi(n.default,{Component:f,route:u});const g=d.props[c],v=g?g===!0?u.params:typeof g=="function"?g(u):g:null,P=W(f,se({},v,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(d.instances[c]=null)},ref:a}));if(ht&&P.ref){const R={depth:i.value,name:d.name,path:d.path,meta:d.meta};(De(P.ref)?P.ref.map(S=>S.i):[P.ref.i]).forEach(S=>{S.__vrv_devtools=R})}return Qi(n.default,{Component:P,route:u})||P}}});function Qi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ap=Op;function En(e,t){const n=se({},e,{matched:e.matched.map(r=>qp(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function ur(e){return{_custom:{display:e}}}let Lp=0;function Ip(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=Lp++;Po({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},s=>{typeof s.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),s.on.inspectComponent((c,d)=>{c.instanceData&&c.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:En(t.currentRoute.value,"Current Route")})}),s.on.visitComponentTree(({treeNode:c,componentInstance:d})=>{if(d.__vrv_devtools){const f=d.__vrv_devtools;c.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:gc})}De(d.__vrl_devtools)&&(d.__devtoolsApi=s,d.__vrl_devtools.forEach(f=>{let g=f.route.path,v=_c,E="",P=0;f.error?(g=f.error,v=Dp,P=Fp):f.isExactActive?(v=vc,E="This is exactly active"):f.isActive&&(v=mc,E="This link is active"),c.tags.push({label:g,textColor:P,tooltip:E,backgroundColor:v})}))}),Lt(t.currentRoute,()=>{a(),s.notifyComponentUpdate(),s.sendInspectorTree(l),s.sendInspectorState(l)});const o="router:navigations:"+r;s.addTimelineLayer({id:o,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((c,d)=>{s.addTimelineEvent({layerId:o,event:{title:"Error during Navigation",subtitle:d.fullPath,logType:"error",time:s.now(),data:{error:c},groupId:d.meta.__navigationId}})});let i=0;t.beforeEach((c,d)=>{const f={guard:ur("beforeEach"),from:En(d,"Current Location during this navigation"),to:En(c,"Target location")};Object.defineProperty(c.meta,"__navigationId",{value:i++}),s.addTimelineEvent({layerId:o,event:{time:s.now(),title:"Start of navigation",subtitle:c.fullPath,data:f,groupId:c.meta.__navigationId}})}),t.afterEach((c,d,f)=>{const g={guard:ur("afterEach")};f?(g.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},g.status=ur("❌")):g.status=ur("✅"),g.from=En(d,"Current Location during this navigation"),g.to=En(c,"Target location"),s.addTimelineEvent({layerId:o,event:{title:"End of navigation",subtitle:c.fullPath,time:s.now(),data:g,logType:f?"warning":"default",groupId:c.meta.__navigationId}})});const l="router-inspector:"+r;s.addInspector({id:l,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function a(){if(!u)return;const c=u;let d=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);d.forEach(wc),c.filter&&(d=d.filter(f=>eo(f,c.filter.toLowerCase()))),d.forEach(f=>bc(f,t.currentRoute.value)),c.rootNodes=d.map(yc)}let u;s.on.getInspectorTree(c=>{u=c,c.app===e&&c.inspectorId===l&&a()}),s.on.getInspectorState(c=>{if(c.app===e&&c.inspectorId===l){const f=n.getRoutes().find(g=>g.record.__vd_id===c.nodeId);f&&(c.state={options:Mp(f)})}}),s.sendInspectorTree(l),s.sendInspectorState(l)})}function $p(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function Mp(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(r=>`${r.name}${$p(r)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(r=>r.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(r=>r.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const gc=15485081,mc=2450411,vc=8702998,Np=2282478,_c=16486972,jp=6710886,Dp=16704226,Fp=12131356;function yc(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:Np}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:_c}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:gc}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:vc}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:mc}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:jp});let r=n.__vd_id;return r==null&&(r=String(Bp++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map(yc)}}let Bp=0;const Hp=/^\/(.*)\/([a-z]*)$/;function bc(e,t){const n=t.matched.length&&Mt(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(r=>Mt(r,e.record))),e.children.forEach(r=>bc(r,t))}function wc(e){e.__vd_match=!1,e.children.forEach(wc)}function eo(e,t){const n=String(e.re).match(Hp);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(i=>eo(i,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const s=e.record.path.toLowerCase(),o=vn(s);return!t.startsWith("/")&&(o.includes(t)||s.includes(t))||o.startsWith(t)||s.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(i=>eo(i,t))}function qp(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function Vp(e){const t=_p(e.routes,e),n=e.parseQuery||xp,r=e.stringifyQuery||Ui,s=e.history,o=xn(),i=xn(),l=xn(),a=Il(St);let u=St;ht&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Cs.bind(null,b=>""+b),d=Cs.bind(null,zh),f=Cs.bind(null,vn);function g(b,H){let D,V;return uc(b)?(D=t.getRecordMatcher(b),V=H):V=b,t.addRoute(V,D)}function v(b){const H=t.getRecordMatcher(b);H&&t.removeRoute(H)}function E(){return t.getRoutes().map(b=>b.record)}function P(b){return!!t.getRecordMatcher(b)}function R(b,H){if(H=se({},H||a.value),typeof b=="string"){const p=Ps(n,b,H.path),m=t.resolve({path:p.path},H),x=s.createHref(p.fullPath);return se(p,m,{params:f(m.params),hash:vn(p.hash),redirectedFrom:void 0,href:x})}let D;if(b.path!=null)D=se({},b,{path:Ps(n,b.path,H.path).path});else{const p=se({},b.params);for(const m in p)p[m]==null&&delete p[m];D=se({},b,{params:d(p)}),H.params=d(H.params)}const V=t.resolve(D,H),ie=b.hash||"";V.params=c(f(V.params));const pe=Gh(r,se({},b,{hash:qh(ie),path:V.path})),h=s.createHref(pe);return se({fullPath:pe,hash:ie,query:r===Ui?Ep(b.query):b.query||{}},V,{redirectedFrom:void 0,href:h})}function w(b){return typeof b=="string"?Ps(n,b,a.value.path):se({},b)}function S(b,H){if(u!==b)return _n(8,{from:H,to:b})}function y(b){return j(b)}function I(b){return y(se(w(b),{replace:!0}))}function q(b){const H=b.matched[b.matched.length-1];if(H&&H.redirect){const{redirect:D}=H;let V=typeof D=="function"?D(b):D;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=w(V):{path:V},V.params={}),se({query:b.query,hash:b.hash,params:V.path!=null?{}:b.params},V)}}function j(b,H){const D=u=R(b),V=a.value,ie=b.state,pe=b.force,h=b.replace===!0,p=q(D);if(p)return j(se(w(p),{state:typeof p=="object"?se({},ie,p.state):ie,force:pe,replace:h}),H||D);const m=D;m.redirectedFrom=H;let x;return!pe&&Qh(r,V,D)&&(x=_n(16,{to:m,from:V}),Ye(V,V,!0,!1)),(x?Promise.resolve(x):$(m,V)).catch(_=>ut(_)?ut(_,2)?_:yt(_):te(_,m,V)).then(_=>{if(_){if(ut(_,2))return j(se({replace:h},w(_.to),{state:typeof _.to=="object"?se({},ie,_.to.state):ie,force:pe}),H||m)}else _=O(m,V,!0,h,ie);return L(m,V,_),_})}function X(b,H){const D=S(b,H);return D?Promise.reject(D):Promise.resolve()}function F(b){const H=en.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(b):b()}function $(b,H){let D;const[V,ie,pe]=Up(b,H);D=Ts(V.reverse(),"beforeRouteLeave",b,H);for(const p of V)p.leaveGuards.forEach(m=>{D.push(Rt(m,b,H))});const h=X.bind(null,b,H);return D.push(h),Fe(D).then(()=>{D=[];for(const p of o.list())D.push(Rt(p,b,H));return D.push(h),Fe(D)}).then(()=>{D=Ts(ie,"beforeRouteUpdate",b,H);for(const p of ie)p.updateGuards.forEach(m=>{D.push(Rt(m,b,H))});return D.push(h),Fe(D)}).then(()=>{D=[];for(const p of pe)if(p.beforeEnter)if(De(p.beforeEnter))for(const m of p.beforeEnter)D.push(Rt(m,b,H));else D.push(Rt(p.beforeEnter,b,H));return D.push(h),Fe(D)}).then(()=>(b.matched.forEach(p=>p.enterCallbacks={}),D=Ts(pe,"beforeRouteEnter",b,H,F),D.push(h),Fe(D))).then(()=>{D=[];for(const p of i.list())D.push(Rt(p,b,H));return D.push(h),Fe(D)}).catch(p=>ut(p,8)?p:Promise.reject(p))}function L(b,H,D){l.list().forEach(V=>F(()=>V(b,H,D)))}function O(b,H,D,V,ie){const pe=S(b,H);if(pe)return pe;const h=H===St,p=ht?history.state:{};D&&(V||h?s.replace(b.fullPath,se({scroll:h&&p&&p.scroll},ie)):s.push(b.fullPath,ie)),a.value=b,Ye(b,H,D,h),yt()}let Y;function M(){Y||(Y=s.listen((b,H,D)=>{if(!er.listening)return;const V=R(b),ie=q(V);if(ie){j(se(ie,{replace:!0}),V).catch(Fn);return}u=V;const pe=a.value;ht&&rp(Mi(pe.fullPath,D.delta),ls()),$(V,pe).catch(h=>ut(h,12)?h:ut(h,2)?(j(h.to,V).then(p=>{ut(p,20)&&!D.delta&&D.type===Gn.pop&&s.go(-1,!1)}).catch(Fn),Promise.reject()):(D.delta&&s.go(-D.delta,!1),te(h,V,pe))).then(h=>{h=h||O(V,pe,!1),h&&(D.delta&&!ut(h,8)?s.go(-D.delta,!1):D.type===Gn.pop&&ut(h,20)&&s.go(-1,!1)),L(V,pe,h)}).catch(Fn)}))}let ee=xn(),ae=xn(),re;function te(b,H,D){yt(b);const V=ae.list();return V.length?V.forEach(ie=>ie(b,H,D)):console.error(b),Promise.reject(b)}function ge(){return re&&a.value!==St?Promise.resolve():new Promise((b,H)=>{ee.add([b,H])})}function yt(b){return re||(re=!b,M(),ee.list().forEach(([H,D])=>b?D(b):H()),ee.reset()),b}function Ye(b,H,D,V){const{scrollBehavior:ie}=e;if(!ht||!ie)return Promise.resolve();const pe=!D&&sp(Mi(b.fullPath,0))||(V||!D)&&history.state&&history.state.scroll||null;return mo().then(()=>ie(b,H,pe)).then(h=>h&&np(h)).catch(h=>te(h,b,H))}const Ie=b=>s.go(b);let Zt;const en=new Set,er={currentRoute:a,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:E,resolve:R,options:e,push:y,replace:I,go:Ie,back:()=>Ie(-1),forward:()=>Ie(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:ae.add,isReady:ge,install(b){const H=this;b.component("RouterLink",Tp),b.component("RouterView",Ap),b.config.globalProperties.$router=H,Object.defineProperty(b.config.globalProperties,"$route",{enumerable:!0,get:()=>gt(a)}),ht&&!Zt&&a.value===St&&(Zt=!0,y(s.location).catch(ie=>{}));const D={};for(const ie in St)Object.defineProperty(D,ie,{get:()=>a.value[ie],enumerable:!0});b.provide(Oo,H),b.provide(pc,Al(D)),b.provide(Zs,a);const V=b.unmount;en.add(b),b.unmount=function(){en.delete(b),en.size<1&&(u=St,Y&&Y(),Y=null,a.value=St,Zt=!1,re=!1),V()},ht&&Ip(b,H,t)}};function Fe(b){return b.reduce((H,D)=>H.then(()=>F(D)),Promise.resolve())}return er}function Up(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iMt(u,l))?r.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(u=>Mt(u,a))||s.push(a))}return[n,r,s]}const zp=[{path:"/",component:()=>fr(()=>import("./MainLayout-DIhsYLyn.js"),__vite__mapDeps([0,1,2])),children:[{path:"",component:()=>fr(()=>import("./IndexPage-DVYGiijA.js"),__vite__mapDeps([3,1,4,5]))}]},{path:"/:catchAll(.*)*",component:()=>fr(()=>import("./ErrorNotFound-DSHFrUlv.js"),[])}],Rs=function(){return Vp({scrollBehavior:()=>({left:0,top:0}),routes:zp,history:cp("/openWB/web/themes/koala/")})};async function Kp(e,t){const n=e(eh);n.use(Jd,t);const r=typeof Es=="function"?await Es({}):Es;n.use(r);const s=it(typeof Rs=="function"?await Rs({store:r}):Rs);return r.use(({store:o})=>{o.router=s}),{app:n,store:r,router:s}}const Wp={isoName:"de-DE",nativeName:"Deutsch (DE)",label:{clear:"Leeren",ok:"Ok",cancel:"Abbrechen",close:"Schließen",set:"Setzen",select:"Auswählen",reset:"Zurücksetzen",remove:"Löschen",update:"Aktualisieren",create:"Erstellen",search:"Suche",filter:"Filter",refresh:"Aktualisieren",expand:e=>e?`Erweitern Sie "${e}"`:"Erweitern",collapse:e=>e?`"${e}" minimieren`:"Zusammenbruch"},date:{days:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),daysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan_Feb_März_Apr_Mai_Jun_Jul_Aug_Sep_Okt_Nov_Dez".split("_"),firstDayOfWeek:1,format24h:!0,pluralDay:"Tage"},table:{noData:"Keine Daten vorhanden.",noResults:"Keine Einträge gefunden",loading:"Lade...",selectedRecords:e=>e>1?e+" ausgewählte Zeilen":(e===0?"Keine":"1")+" ausgewählt.",recordsPerPage:"Zeilen pro Seite",allRows:"Alle",pagination:(e,t,n)=>e+"-"+t+" von "+n,columns:"Spalten"},editor:{url:"URL",bold:"Fett",italic:"Kursiv",strikethrough:"Durchgestrichen",underline:"Unterstrichen",unorderedList:"Ungeordnete Liste",orderedList:"Geordnete Liste",subscript:"tiefgestellt",superscript:"hochgestellt",hyperlink:"Link",toggleFullscreen:"Vollbild umschalten",quote:"Zitat",left:"linksbündig",center:"zentriert",right:"rechtsbündig",justify:"Ausrichten",print:"Drucken",outdent:"ausrücken",indent:"einrücken",removeFormat:"Entferne Formatierung",formatting:"Formatiere",fontSize:"Schriftgröße",align:"Ausrichten",hr:"Horizontale Linie einfügen",undo:"Rückgänging",redo:"Wiederherstellen",heading1:"Überschrift 1",heading2:"Überschrift 2",heading3:"Überschrift 3",heading4:"Überschrift 4",heading5:"Überschrift 5",heading6:"Überschrift 6",paragraph:"Absatz",code:"Code",size1:"Sehr klein",size2:"klein",size3:"Normal",size4:"Groß",size5:"Größer",size6:"Sehr groß",size7:"Maximum",defaultFont:"Standard Schrift",viewSource:"Quelltext anzeigen"},tree:{noNodes:"Keine Knoten verfügbar",noResults:"Keine passenden Knoten gefunden"}},to={xs:18,sm:24,md:32,lg:38,xl:46},Ao={size:String};function Lo(e,t=to){return G(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Gp(e,t){return e!==void 0&&e()||t}function fm(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function kn(e,t){return e!==void 0?t.concat(e()):t}function Qp(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function dm(e,t,n,r,s,o){t.key=r+s;const i=W(e,t,n);return s===!0?Vl(i,o()):i}const Ji="0 0 24 24",Yi=e=>e,ks=e=>`ionicons ${e}`,Sc={"mdi-":e=>`mdi ${e}`,"icon-":Yi,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":ks,"ion-ios":ks,"ion-logo":ks,"iconfont ":Yi,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},xc={o_:"-outlined",r_:"-round",s_:"-sharp"},Ec={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Jp=new RegExp("^("+Object.keys(Sc).join("|")+")"),Yp=new RegExp("^("+Object.keys(xc).join("|")+")"),Xi=new RegExp("^("+Object.keys(Ec).join("|")+")"),Xp=/^[Mm]\s?[-+]?\.?\d/,Zp=/^img:/,eg=/^svguse:/,tg=/^ion-/,ng=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,Fr=Zn({name:"QIcon",props:{...Ao,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=lt(),r=Lo(e),s=G(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),o=G(()=>{let i,l=e.name;if(l==="none"||!l)return{none:!0};if(n.iconMapFn!==null){const c=n.iconMapFn(l);if(c!==void 0)if(c.icon!==void 0){if(l=c.icon,l==="none"||!l)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(Xp.test(l)===!0){const[c,d=Ji]=l.split("|");return{svg:!0,viewBox:d,nodes:c.split("&&").map(f=>{const[g,v,E]=f.split("@@");return W("path",{style:v,d:g,transform:E})})}}if(Zp.test(l)===!0)return{img:!0,src:l.substring(4)};if(eg.test(l)===!0){const[c,d=Ji]=l.split("|");return{svguse:!0,src:c.substring(7),viewBox:d}}let a=" ";const u=l.match(Jp);if(u!==null)i=Sc[u[1]](l);else if(ng.test(l)===!0)i=l;else if(tg.test(l)===!0)i=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${l.substring(3)}`;else if(Xi.test(l)===!0){i="notranslate material-symbols";const c=l.match(Xi);c!==null&&(l=l.substring(6),i+=Ec[c[1]]),a=l}else{i="notranslate material-icons";const c=l.match(Yp);c!==null&&(l=l.substring(2),i+=xc[c[1]]),a=l}return{cls:i,content:a}});return()=>{const i={class:s.value,style:r.value,"aria-hidden":"true",role:"presentation"};return o.value.none===!0?W(e.tag,i,Gp(t.default)):o.value.img===!0?W(e.tag,i,kn(t.default,[W("img",{src:o.value.src})])):o.value.svg===!0?W(e.tag,i,kn(t.default,[W("svg",{viewBox:o.value.viewBox||"0 0 24 24"},o.value.nodes)])):o.value.svguse===!0?W(e.tag,i,kn(t.default,[W("svg",{viewBox:o.value.viewBox},[W("use",{"xlink:href":o.value.src})])])):(o.value.cls!==void 0&&(i.class+=" "+o.value.cls),W(e.tag,i,kn(t.default,[o.value.content])))}}}),rg=Zn({name:"QAvatar",props:{...Ao,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=Lo(e),r=G(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),s=G(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const o=e.icon!==void 0?[W(Fr,{name:e.icon})]:void 0;return W("div",{class:r.value,style:n.value},[W("div",{class:"q-avatar__content row flex-center overflow-hidden",style:s.value},Qp(t.default,o))])}}}),sg={size:{type:[String,Number],default:"1em"},color:String};function og(e){return{cSize:G(()=>e.size in to?`${to[e.size]}px`:e.size),classes:G(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Cc=Zn({name:"QSpinner",props:{...sg,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=og(e);return()=>W("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[W("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function ig(e,t){const n=e.style;for(const r in t)n[r]=t[r]}function hm(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=gt(e);if(t)return t.$el||t}function pm(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}function lg(e,t=250){let n=!1,r;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),r=e.apply(this,arguments)),r}}function Zi(e,t,n,r){n.modifiers.stop===!0&&ja(e);const s=n.modifiers.color;let o=n.modifiers.center;o=o===!0||r===!0;const i=document.createElement("span"),l=document.createElement("span"),a=Rd(e),{left:u,top:c,width:d,height:f}=t.getBoundingClientRect(),g=Math.sqrt(d*d+f*f),v=g/2,E=`${(d-g)/2}px`,P=o?E:`${a.left-u-v}px`,R=`${(f-g)/2}px`,w=o?R:`${a.top-c-v}px`;l.className="q-ripple__inner",ig(l,{height:`${g}px`,width:`${g}px`,transform:`translate3d(${P},${w},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${s?" text-"+s:""}`,i.setAttribute("dir","ltr"),i.appendChild(l),t.appendChild(i);const S=()=>{i.remove(),clearTimeout(y)};n.abort.push(S);let y=setTimeout(()=>{l.classList.add("q-ripple__inner--enter"),l.style.transform=`translate3d(${E},${R},0) scale3d(1,1,1)`,l.style.opacity=.2,y=setTimeout(()=>{l.classList.remove("q-ripple__inner--enter"),l.classList.add("q-ripple__inner--leave"),l.style.opacity=0,y=setTimeout(()=>{i.remove(),n.abort.splice(n.abort.indexOf(S),1)},275)},250)},50)}function el(e,{modifiers:t,value:n,arg:r}){const s=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||r,keyCodes:[].concat(s.keyCodes||13)}}const ag=Td({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const r={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(s){r.enabled===!0&&s.qSkipRipple!==!0&&s.type===(r.modifiers.early===!0?"pointerdown":"click")&&Zi(s,e,r,s.qKeyEvent===!0)},keystart:lg(s=>{r.enabled===!0&&s.qSkipRipple!==!0&&Ws(s,r.modifiers.keyCodes)===!0&&s.type===`key${r.modifiers.early===!0?"down":"up"}`&&Zi(s,e,r,!0)},300)};el(r,t),e.__qripple=r,kd(r,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&el(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),Od(t,"main"),delete e._qripple)}}),Pc={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},cg=Object.keys(Pc),ug={align:{type:String,validator:e=>cg.includes(e)}};function fg(e){return G(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Pc[t]}`})}function gm(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function Tc(e,t){typeof t.type=="symbol"?Array.isArray(t.children)===!0&&t.children.forEach(n=>{Tc(e,n)}):e.add(t)}function mm(e){const t=new Set;return e.forEach(n=>{Tc(t,n)}),Array.from(t)}function dg(e){return e.appContext.config.globalProperties.$router!==void 0}function vm(e){return e.isUnmounted===!0||e.isDeactivated===!0}function tl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function nl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function hg(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(Array.isArray(s)===!1||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function rl(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function pg(e,t){return Array.isArray(e)===!0?rl(e,t):Array.isArray(t)===!0?rl(t,e):e===t}function gg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(pg(e[n],t[n])===!1)return!1;return!0}const Rc={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},_m={...Rc,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function mg({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=lt(),{props:r,proxy:s,emit:o}=n,i=dg(n),l=G(()=>r.disable!==!0&&r.href!==void 0),a=G(t===!0?()=>i===!0&&r.disable!==!0&&l.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!=="":()=>i===!0&&l.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""),u=G(()=>a.value===!0?w(r.to):null),c=G(()=>u.value!==null),d=G(()=>l.value===!0||c.value===!0),f=G(()=>r.type==="a"||d.value===!0?"a":r.tag||e||"div"),g=G(()=>l.value===!0?{href:r.href,target:r.target}:c.value===!0?{href:u.value.href,target:r.target}:{}),v=G(()=>{if(c.value===!1)return-1;const{matched:I}=u.value,{length:q}=I,j=I[q-1];if(j===void 0)return-1;const X=s.$route.matched;if(X.length===0)return-1;const F=X.findIndex(nl.bind(null,j));if(F!==-1)return F;const $=tl(I[q-2]);return q>1&&tl(j)===$&&X[X.length-1].path!==$?X.findIndex(nl.bind(null,I[q-2])):F}),E=G(()=>c.value===!0&&v.value!==-1&&hg(s.$route.params,u.value.params)),P=G(()=>E.value===!0&&v.value===s.$route.matched.length-1&&gg(s.$route.params,u.value.params)),R=G(()=>c.value===!0?P.value===!0?` ${r.exactActiveClass} ${r.activeClass}`:r.exact===!0?"":E.value===!0?` ${r.activeClass}`:"":"");function w(I){try{return s.$router.resolve(I)}catch{}return null}function S(I,{returnRouterError:q,to:j=r.to,replace:X=r.replace}={}){if(r.disable===!0)return I.preventDefault(),Promise.resolve(!1);if(I.metaKey||I.altKey||I.ctrlKey||I.shiftKey||I.button!==void 0&&I.button!==0||r.target==="_blank")return Promise.resolve(!1);I.preventDefault();const F=s.$router[X===!0?"replace":"push"](j);return q===!0?F:F.then(()=>{}).catch(()=>{})}function y(I){if(c.value===!0){const q=j=>S(I,j);o("click",I,q),I.defaultPrevented!==!0&&q()}else o("click",I)}return{hasRouterLink:c,hasHrefLink:l,hasLink:d,linkTag:f,resolvedLink:u,linkIsActive:E,linkIsExactActive:P,linkClass:R,linkAttrs:g,getLink:w,navigateToRouterLink:S,navigateOnClick:y}}const sl={none:0,xs:4,sm:8,md:16,lg:24,xl:32},vg={xs:8,sm:10,md:14,lg:20,xl:24},_g=["button","submit","reset"],yg=/[^\s]\/[^\s]/,bg=["flat","outline","push","unelevated"];function kc(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}function ym(e){const t=kc(e);return t!==void 0?{[t]:!0}:{}}const wg={...Ao,...Rc,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...bg.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...ug.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Sg={...wg,round:Boolean};function xg(e){const t=Lo(e,vg),n=fg(e),{hasRouterLink:r,hasLink:s,linkTag:o,linkAttrs:i,navigateOnClick:l}=mg({fallbackTag:"button"}),a=G(()=>{const P=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},P,{padding:e.padding.split(/\s+/).map(R=>R in sl?sl[R]+"px":R).join(" "),minWidth:"0",minHeight:"0"}):P}),u=G(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),c=G(()=>e.disable!==!0&&e.loading!==!0),d=G(()=>c.value===!0?e.tabindex||0:-1),f=G(()=>kc(e,"standard")),g=G(()=>{const P={tabindex:d.value};return s.value===!0?Object.assign(P,i.value):_g.includes(e.type)===!0&&(P.type=e.type),o.value==="a"?(e.disable===!0?P["aria-disabled"]="true":P.href===void 0&&(P.role="button"),r.value!==!0&&yg.test(e.type)===!0&&(P.type=e.type)):e.disable===!0&&(P.disabled="",P["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(P,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),P}),v=G(()=>{let P;e.color!==void 0?e.flat===!0||e.outline===!0?P=`text-${e.textColor||e.color}`:P=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(P=`text-${e.textColor}`);const R=e.round===!0?"round":`rectangle${u.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${f.value} q-btn--${R}`+(P!==void 0?" "+P:"")+(c.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),E=G(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:v,style:a,innerClasses:E,attributes:g,hasLink:s,linkTag:o,navigateOnClick:l,isActionable:c}}const{passiveCapture:He}=Jt;let on=null,ln=null,an=null;const Eg=Zn({name:"QBtn",props:{...Sg,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:r}=lt(),{classes:s,style:o,innerClasses:i,attributes:l,hasLink:a,linkTag:u,navigateOnClick:c,isActionable:d}=xg(e),f=Gt(null),g=Gt(null);let v=null,E,P=null;const R=G(()=>e.label!==void 0&&e.label!==null&&e.label!==""),w=G(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:a.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),S=G(()=>({center:e.round})),y=G(()=>{const M=Math.max(0,Math.min(100,e.percentage));return M>0?{transition:"transform 0.6s",transform:`translateX(${M-100}%)`}:{}}),I=G(()=>{if(e.loading===!0)return{onMousedown:Y,onTouchstart:Y,onClick:Y,onKeydown:Y,onKeyup:Y};if(d.value===!0){const M={onClick:j,onKeydown:X,onMousedown:$};if(r.$q.platform.has.touch===!0){const ee=e.onTouchstart!==void 0?"":"Passive";M[`onTouchstart${ee}`]=F}return M}return{onClick:nn}}),q=G(()=>({ref:f,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:o.value,...l.value,...I.value}));function j(M){if(f.value!==null){if(M!==void 0){if(M.defaultPrevented===!0)return;const ee=document.activeElement;if(e.type==="submit"&&ee!==document.body&&f.value.contains(ee)===!1&&ee.contains(f.value)===!1){f.value.focus();const ae=()=>{document.removeEventListener("keydown",nn,!0),document.removeEventListener("keyup",ae,He),f.value!==null&&f.value.removeEventListener("blur",ae,He)};document.addEventListener("keydown",nn,!0),document.addEventListener("keyup",ae,He),f.value.addEventListener("blur",ae,He)}}c(M)}}function X(M){f.value!==null&&(n("keydown",M),Ws(M,[13,32])===!0&&ln!==f.value&&(ln!==null&&O(),M.defaultPrevented!==!0&&(f.value.focus(),ln=f.value,f.value.classList.add("q-btn--active"),document.addEventListener("keyup",L,!0),f.value.addEventListener("blur",L,He)),nn(M)))}function F(M){f.value!==null&&(n("touchstart",M),M.defaultPrevented!==!0&&(on!==f.value&&(on!==null&&O(),on=f.value,v=M.target,v.addEventListener("touchcancel",L,He),v.addEventListener("touchend",L,He)),E=!0,P!==null&&clearTimeout(P),P=setTimeout(()=>{P=null,E=!1},200)))}function $(M){f.value!==null&&(M.qSkipRipple=E===!0,n("mousedown",M),M.defaultPrevented!==!0&&an!==f.value&&(an!==null&&O(),an=f.value,f.value.classList.add("q-btn--active"),document.addEventListener("mouseup",L,He)))}function L(M){if(f.value!==null&&!(M!==void 0&&M.type==="blur"&&document.activeElement===f.value)){if(M!==void 0&&M.type==="keyup"){if(ln===f.value&&Ws(M,[13,32])===!0){const ee=new MouseEvent("click",M);ee.qKeyEvent=!0,M.defaultPrevented===!0&&Ks(ee),M.cancelBubble===!0&&ja(ee),f.value.dispatchEvent(ee),nn(M),M.qKeyEvent=!0}n("keyup",M)}O()}}function O(M){const ee=g.value;M!==!0&&(on===f.value||an===f.value)&&ee!==null&&ee!==document.activeElement&&(ee.setAttribute("tabindex",-1),ee.focus()),on===f.value&&(v!==null&&(v.removeEventListener("touchcancel",L,He),v.removeEventListener("touchend",L,He)),on=v=null),an===f.value&&(document.removeEventListener("mouseup",L,He),an=null),ln===f.value&&(document.removeEventListener("keyup",L,!0),f.value!==null&&f.value.removeEventListener("blur",L,He),ln=null),f.value!==null&&f.value.classList.remove("q-btn--active")}function Y(M){nn(M),M.qSkipRipple=!0}return Zr(()=>{O(!0)}),Object.assign(r,{click:M=>{d.value===!0&&j(M)}}),()=>{let M=[];e.icon!==void 0&&M.push(W(Fr,{name:e.icon,left:e.stack!==!0&&R.value===!0,role:"img"})),R.value===!0&&M.push(W("span",{class:"block"},[e.label])),M=kn(t.default,M),e.iconRight!==void 0&&e.round===!1&&M.push(W(Fr,{name:e.iconRight,right:e.stack!==!0&&R.value===!0,role:"img"}));const ee=[W("span",{class:"q-focus-helper",ref:g})];return e.loading===!0&&e.percentage!==void 0&&ee.push(W("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[W("span",{class:"q-btn__progress-indicator fit block",style:y.value})])),ee.push(W("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+i.value},M)),e.loading!==null&&ee.push(W(Wf,{name:"q-transition--fade"},()=>e.loading===!0?[W("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[W(Cc)])]:null)),Vl(W(u.value,q.value,ee),[[ag,w.value,void 0,S.value]])}}});let Cg=1,Pg=document.body;function Tg(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${Cg++}`:e,jr.globalNodes!==void 0){const r=jr.globalNodes.class;r!==void 0&&(n.className=r)}return Pg.appendChild(n),n}function bm(e){e.remove()}let Rg=0;const br={},wr={},Ge={},Oc={},kg=/^\s*$/,Ac=[],Og=[void 0,null,!0,!1,""],Io=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],Ag=["top-left","top-right","bottom-left","bottom-right"],un={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function Lc(e,t,n){if(!e)return Cn("parameter required");let r;const s={textColor:"white"};if(e.ignoreDefaults!==!0&&Object.assign(s,br),Wn(e)===!1&&(s.type&&Object.assign(s,un[s.type]),e={message:e}),Object.assign(s,un[e.type||s.type],e),typeof s.icon=="function"&&(s.icon=s.icon(t)),s.spinner?(s.spinner===!0&&(s.spinner=Cc),s.spinner=it(s.spinner)):s.spinner=!1,s.meta={hasMedia:!!(s.spinner!==!1||s.icon||s.avatar),hasText:ol(s.message)||ol(s.caption)},s.position){if(Io.includes(s.position)===!1)return Cn("wrong position",e)}else s.position="bottom";if(Og.includes(s.timeout)===!0)s.timeout=5e3;else{const a=Number(s.timeout);if(isNaN(a)||a<0)return Cn("wrong timeout",e);s.timeout=Number.isFinite(a)?a:0}s.timeout===0?s.progress=!1:s.progress===!0&&(s.meta.progressClass="q-notification__progress"+(s.progressClass?` ${s.progressClass}`:""),s.meta.progressStyle={animationDuration:`${s.timeout+1e3}ms`});const o=(Array.isArray(e.actions)===!0?e.actions:[]).concat(e.ignoreDefaults!==!0&&Array.isArray(br.actions)===!0?br.actions:[]).concat(un[e.type]!==void 0&&Array.isArray(un[e.type].actions)===!0?un[e.type].actions:[]),{closeBtn:i}=s;if(i&&o.push({label:typeof i=="string"?i:t.lang.label.close}),s.actions=o.map(({handler:a,noDismiss:u,...c})=>({flat:!0,...c,onClick:typeof a=="function"?()=>{a(),u!==!0&&l()}:()=>{l()}})),s.multiLine===void 0&&(s.multiLine=s.actions.length>1),Object.assign(s.meta,{class:`q-notification row items-stretch q-notification--${s.multiLine===!0?"multi-line":"standard"}`+(s.color!==void 0?` bg-${s.color}`:"")+(s.textColor!==void 0?` text-${s.textColor}`:"")+(s.classes!==void 0?` ${s.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(s.multiLine===!0?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(s.multiLine===!0?"":" col"),leftClass:s.meta.hasText===!0?"additional":"single",attrs:{role:"alert",...s.attrs}}),s.group===!1?(s.group=void 0,s.meta.group=void 0):((s.group===void 0||s.group===!0)&&(s.group=[s.message,s.caption,s.multiline].concat(s.actions.map(a=>`${a.label}*${a.icon}`)).join("|")),s.meta.group=s.group+"|"+s.position),s.actions.length===0?s.actions=void 0:s.meta.actionsClass="q-notification__actions row items-center "+(s.multiLine===!0?"justify-end":"col-auto")+(s.meta.hasMedia===!0?" q-notification__actions--with-media":""),n!==void 0){n.notif.meta.timer&&(clearTimeout(n.notif.meta.timer),n.notif.meta.timer=void 0),s.meta.uid=n.notif.meta.uid;const a=Ge[s.position].value.indexOf(n.notif);Ge[s.position].value[a]=s}else{const a=wr[s.meta.group];if(a===void 0){if(s.meta.uid=Rg++,s.meta.badge=1,["left","right","center"].indexOf(s.position)!==-1)Ge[s.position].value.splice(Math.floor(Ge[s.position].value.length/2),0,s);else{const u=s.position.indexOf("top")!==-1?"unshift":"push";Ge[s.position].value[u](s)}s.group!==void 0&&(wr[s.meta.group]=s)}else{if(a.meta.timer&&(clearTimeout(a.meta.timer),a.meta.timer=void 0),s.badgePosition!==void 0){if(Ag.includes(s.badgePosition)===!1)return Cn("wrong badgePosition",e)}else s.badgePosition=`top-${s.position.indexOf("left")!==-1?"right":"left"}`;s.meta.uid=a.meta.uid,s.meta.badge=a.meta.badge+1,s.meta.badgeClass=`q-notification__badge q-notification__badge--${s.badgePosition}`+(s.badgeColor!==void 0?` bg-${s.badgeColor}`:"")+(s.badgeTextColor!==void 0?` text-${s.badgeTextColor}`:"")+(s.badgeClass?` ${s.badgeClass}`:"");const u=Ge[s.position].value.indexOf(a);Ge[s.position].value[u]=wr[s.meta.group]=s}}const l=()=>{Lg(s),r=void 0};if(s.timeout>0&&(s.meta.timer=setTimeout(()=>{s.meta.timer=void 0,l()},s.timeout+1e3)),s.group!==void 0)return a=>{a!==void 0?Cn("trying to update a grouped one which is forbidden",e):l()};if(r={dismiss:l,config:e,notif:s},n!==void 0){Object.assign(n,r);return}return a=>{if(r!==void 0)if(a===void 0)r.dismiss();else{const u=Object.assign({},r.config,a,{group:!1,position:s.position});Lc(u,t,r)}}}function Lg(e){e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0);const t=Ge[e.position].value.indexOf(e);if(t!==-1){e.group!==void 0&&delete wr[e.meta.group];const n=Ac[""+e.meta.uid];if(n){const{width:r,height:s}=getComputedStyle(n);n.style.left=`${n.offsetLeft}px`,n.style.width=r,n.style.height=s}Ge[e.position].value.splice(t,1),typeof e.onDismiss=="function"&&e.onDismiss()}}function ol(e){return e!=null&&kg.test(e)!==!0}function Cn(e,t){return console.error(`Notify: ${e}`,t),!1}function Ig(){return Zn({name:"QNotifications",devtools:{hide:!0},setup(){return()=>W("div",{class:"q-notifications"},Io.map(e=>W(dd,{key:e,class:Oc[e],tag:"div",name:`q-notification--${e}`},()=>Ge[e].value.map(t=>{const n=t.meta,r=[];if(n.hasMedia===!0&&(t.spinner!==!1?r.push(W(t.spinner,{class:"q-notification__spinner q-notification__spinner--"+n.leftClass,color:t.spinnerColor,size:t.spinnerSize})):t.icon?r.push(W(Fr,{class:"q-notification__icon q-notification__icon--"+n.leftClass,name:t.icon,color:t.iconColor,size:t.iconSize,role:"img"})):t.avatar&&r.push(W(rg,{class:"q-notification__avatar q-notification__avatar--"+n.leftClass},()=>W("img",{src:t.avatar,"aria-hidden":"true"})))),n.hasText===!0){let o;const i={class:"q-notification__message col"};if(t.html===!0)i.innerHTML=t.caption?`
${t.message}
${t.caption}
`:t.message;else{const l=[t.message];o=t.caption?[W("div",l),W("div",{class:"q-notification__caption"},[t.caption])]:l}r.push(W("div",i,o))}const s=[W("div",{class:n.contentClass},r)];return t.progress===!0&&s.push(W("div",{key:`${n.uid}|p|${n.badge}`,class:n.progressClass,style:n.progressStyle})),t.actions!==void 0&&s.push(W("div",{class:n.actionsClass},t.actions.map(o=>W(Eg,o)))),n.badge>1&&s.push(W("div",{key:`${n.uid}|${n.badge}`,class:t.meta.badgeClass,style:t.badgeStyle},[n.badge])),W("div",{ref:o=>{Ac[""+n.uid]=o},key:n.uid,class:n.class,...n.attrs},[W("div",{class:n.wrapperClass},s)])}))))}})}const $g={setDefaults(e){Wn(e)===!0&&Object.assign(br,e)},registerType(e,t){Wn(t)===!0&&(un[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create=n=>Lc(n,e),e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,e.config.notify!==void 0&&this.setDefaults(e.config.notify),this.__installed!==!0){Io.forEach(r=>{Ge[r]=Gt([]);const s=["left","center","right"].includes(r)===!0?"center":r.indexOf("top")!==-1?"top":"bottom",o=r.indexOf("left")!==-1?"start":r.indexOf("right")!==-1?"end":"center",i=["left","right"].includes(r)?`items-${r==="left"?"start":"end"} justify-center`:r==="center"?"flex-center":`items-${o}`;Oc[r]=`q-notifications__list q-notifications__list--${s} fixed column no-wrap ${i}`});const n=Tg("q-notify");Wd(Ig(),t).mount(n)}}},Mg={config:{dark:"auto"},lang:Wp,plugins:{Notify:$g}},Ng="/openWB/web/themes/koala/";async function jg({app:e,router:t,store:n},r){let s=!1;const o=a=>{try{return t.resolve(a).href}catch{}return Object(a)===a?null:a},i=a=>{if(s=!0,typeof a=="string"&&/^https?:\/\//.test(a)){window.location.href=a;return}const u=o(a);u!==null&&(window.location.href=u,window.location.reload())},l=window.location.href.replace(window.location.origin,"");for(let a=0;s===!1&&a{const[t,n]=Promise.allSettled!==void 0?["allSettled",r=>r.map(s=>{if(s.status==="rejected"){console.error("[Quasar] boot error:",s.reason);return}return s.value.default})]:["all",r=>r.map(s=>s.default)];return Promise[t]([fr(()=>import("./store-init-_8zf6SsG.js"),__vite__mapDeps([6,4]))]).then(r=>{const s=n(r).filter(o=>typeof o=="function");jg(e,s)})});export{Vd as $,Ar as A,Nu as B,Le as C,$f as D,Fr as E,om as F,Ws as G,Md as H,nn as I,Uu as J,Vu as K,Td as L,st as M,Kn as N,Zg as O,kd as P,Eg as Q,ag as R,tm as S,Rd as T,Od as U,Wf as V,mm as W,Hg as X,dg as Y,ea as Z,Xd as _,G as a,am as a0,Jg as a1,Wg as a2,wa as a3,Te as a4,Vg as a5,Ur as a6,Gg as a7,Qc as a8,Il as a9,Ug as aA,Mf as aB,Dg as aC,If as aD,Qg as aE,wg as aF,ym as aG,zs as aH,ug as aI,fg as aJ,Bg as aK,_m as aL,mg as aM,gm as aN,Fg as aO,Tg as aP,bm as aQ,vm as aR,hm as aS,ig as aT,em as aU,zd as aV,oi as aa,Z as ab,po as ac,um as ad,Vr as ae,qg as af,pm as ag,zg as ah,Yg as ai,Ku as aj,sm as ak,Ad as al,ss as am,Ks as an,Cc as ao,ja as ap,Jt as aq,Ao as ar,Lo as as,Qp as at,bo as au,Ss as av,lm as aw,Wn as ax,Xg as ay,Kg as az,cm as b,Zn as c,Gp as d,im as e,fm as f,lt as g,W as h,rt as i,Xr as j,Vl as k,nm as l,dm as m,mo as n,Zr as o,hr as p,rm as q,Gt as r,Qt as s,Xt as t,wo as u,kn as v,Lt as w,Qr as x,Yu as y,Or as z}; diff --git a/packages/modules/web_themes/koala/web/assets/mqtt-store-DXcyZOMZ.js b/packages/modules/web_themes/koala/web/assets/mqtt-store-DM4t93V9.js similarity index 99% rename from packages/modules/web_themes/koala/web/assets/mqtt-store-DXcyZOMZ.js rename to packages/modules/web_themes/koala/web/assets/mqtt-store-DM4t93V9.js index eba05e877a..8fcff49a59 100644 --- a/packages/modules/web_themes/koala/web/assets/mqtt-store-DXcyZOMZ.js +++ b/packages/modules/web_themes/koala/web/assets/mqtt-store-DM4t93V9.js @@ -1,4 +1,4 @@ -var dl=Object.defineProperty;var Qi=e=>{throw TypeError(e)};var pl=(e,i,t)=>i in e?dl(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var ot=(e,i,t)=>pl(e,typeof i!="symbol"?i+"":i,t),Gr=(e,i,t)=>i.has(e)||Qi("Cannot "+t);var M=(e,i,t)=>(Gr(e,i,"read from private field"),t?t.call(e):i.get(e)),je=(e,i,t)=>i.has(e)?Qi("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,t),Re=(e,i,t,l)=>(Gr(e,i,"write to private field"),l?l.call(e,t):i.set(e,t),t),Te=(e,i,t)=>(Gr(e,i,"access private method"),t);var Ar=(e,i,t,l)=>({set _(h){Re(e,i,h,t)},get _(){return M(e,i,l)}});import{ad as gl,r as Gi,a as be}from"./index-D17w0IYB.js";var Mi=Object.defineProperty,ml=Object.getOwnPropertyDescriptor,bl=Object.getOwnPropertyNames,yl=Object.prototype.hasOwnProperty,tt=(e,i)=>()=>(e&&(i=e(e=0)),i),Se=(e,i)=>()=>(i||e((i={exports:{}}).exports,i),i.exports),nr=(e,i)=>{for(var t in i)Mi(e,t,{get:i[t],enumerable:!0})},vl=(e,i,t,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let h of bl(i))!yl.call(e,h)&&h!==t&&Mi(e,h,{get:()=>i[h],enumerable:!(l=ml(i,h))||l.enumerable});return e},De=e=>vl(Mi({},"__esModule",{value:!0}),e),de=tt(()=>{}),Le={};nr(Le,{_debugEnd:()=>Vn,_debugProcess:()=>qn,_events:()=>oi,_eventsCount:()=>si,_exiting:()=>On,_fatalExceptions:()=>Dn,_getActiveHandles:()=>Ho,_getActiveRequests:()=>Vo,_kill:()=>Rn,_linkedBinding:()=>$o,_maxListeners:()=>ii,_preload_modules:()=>ri,_rawDebug:()=>kn,_startProfilerIdleNotifier:()=>Hn,_stopProfilerIdleNotifier:()=>zn,_tickCallback:()=>$n,abort:()=>Gn,addListener:()=>ai,allowedNodeEnvironmentFlags:()=>Nn,arch:()=>dn,argv:()=>mn,argv0:()=>ti,assert:()=>zo,binding:()=>_n,chdir:()=>An,config:()=>Bn,cpuUsage:()=>br,cwd:()=>Sn,debugPort:()=>ei,default:()=>Ui,dlopen:()=>qo,domain:()=>Tn,emit:()=>fi,emitWarning:()=>wn,env:()=>gn,execArgv:()=>bn,execPath:()=>Xn,exit:()=>Un,features:()=>Wn,hasUncaughtExceptionCaptureCallback:()=>Ko,hrtime:()=>Pr,kill:()=>jn,listeners:()=>Qo,memoryUsage:()=>Mn,moduleLoadList:()=>In,nextTick:()=>Do,off:()=>ui,on:()=>At,once:()=>li,openStdin:()=>Ln,pid:()=>Jn,platform:()=>pn,ppid:()=>Zn,prependListener:()=>di,prependOnceListener:()=>pi,reallyExit:()=>Pn,release:()=>Cn,removeAllListeners:()=>ci,removeListener:()=>hi,resourceUsage:()=>xn,setSourceMapsEnabled:()=>ni,setUncaughtExceptionCaptureCallback:()=>Fn,stderr:()=>Yn,stdin:()=>Qn,stdout:()=>Kn,title:()=>fn,umask:()=>En,uptime:()=>Yo,version:()=>yn,versions:()=>vn});function ji(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function wl(){!er||!Zt||(er=!1,Zt.length?_t=Zt.concat(_t):wr=-1,_t.length&&Wo())}function Wo(){if(!er){var e=setTimeout(wl,0);er=!0;for(var i=_t.length;i;){for(Zt=_t,_t=[];++wr1)for(var t=1;t{de(),ge(),pe(),_t=[],er=!1,wr=-1,Fo.prototype.run=function(){this.fun.apply(null,this.array)},fn="browser",dn="x64",pn="browser",gn={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},mn=["/usr/bin/node"],bn=[],yn="v16.8.0",vn={},wn=function(e,i){console.warn((i?i+": ":"")+e)},_n=function(e){ji("binding")},En=function(e){return 0},Sn=function(){return"/"},An=function(e){},Cn={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},kn=st,In=[],Tn={},On=!1,Bn={},Pn=st,Rn=st,br=function(){return{}},xn=br,Mn=br,jn=st,Un=st,Ln=st,Nn={},Wn={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Dn=st,Fn=st,$n=st,qn=st,Vn=st,Hn=st,zn=st,Kn=void 0,Yn=void 0,Qn=void 0,Gn=st,Jn=2,Zn=1,Xn="/bin/usr/node",ei=9229,ti="node",ri=[],ni=st,Tt={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Tt.now===void 0&&(Jr=Date.now(),Tt.timing&&Tt.timing.navigationStart&&(Jr=Tt.timing.navigationStart),Tt.now=()=>Date.now()-Jr),Rr=1e9,Pr.bigint=function(e){var i=Pr(e);return typeof BigInt>"u"?i[0]*Rr+i[1]:BigInt(i[0]*Rr)+BigInt(i[1])},ii=10,oi={},si=0,ai=At,li=At,ui=At,hi=At,ci=At,fi=st,di=At,pi=At,Ui={version:yn,versions:vn,arch:dn,platform:pn,release:Cn,_rawDebug:kn,moduleLoadList:In,binding:_n,_linkedBinding:$o,_events:oi,_eventsCount:si,_maxListeners:ii,on:At,addListener:ai,once:li,off:ui,removeListener:hi,removeAllListeners:ci,emit:fi,prependListener:di,prependOnceListener:pi,listeners:Qo,domain:Tn,_exiting:On,config:Bn,dlopen:qo,uptime:Yo,_getActiveRequests:Vo,_getActiveHandles:Ho,reallyExit:Pn,_kill:Rn,cpuUsage:br,resourceUsage:xn,memoryUsage:Mn,kill:jn,exit:Un,openStdin:Ln,allowedNodeEnvironmentFlags:Nn,assert:zo,features:Wn,_fatalExceptions:Dn,setUncaughtExceptionCaptureCallback:Fn,hasUncaughtExceptionCaptureCallback:Ko,emitWarning:wn,nextTick:Do,_tickCallback:$n,_debugProcess:qn,_debugEnd:Vn,_startProfilerIdleNotifier:Hn,_stopProfilerIdleNotifier:zn,stdout:Kn,stdin:Qn,stderr:Yn,abort:Gn,umask:En,chdir:An,cwd:Sn,env:gn,title:fn,argv:mn,execArgv:bn,pid:Jn,ppid:Zn,execPath:Xn,debugPort:ei,hrtime:Pr,argv0:ti,_preload_modules:ri,setSourceMapsEnabled:ni}}),pe=tt(()=>{_l()}),rt={};nr(rt,{Buffer:()=>Wr,INSPECT_MAX_BYTES:()=>Go,default:()=>Ct,kMaxLength:()=>Jo});function El(){if(gi)return lr;gi=!0,lr.byteLength=o,lr.toByteArray=a,lr.fromByteArray=g;for(var e=[],i=[],t=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,s=l.length;h0)throw new Error("Invalid string. Length must be a multiple of 4");var v=m.indexOf("=");v===-1&&(v=b);var C=v===b?0:4-v%4;return[v,C]}function o(m){var b=r(m),v=b[0],C=b[1];return(v+C)*3/4-C}function n(m,b,v){return(b+v)*3/4-v}function a(m){var b,v=r(m),C=v[0],N=v[1],B=new t(n(m,C,N)),w=0,U=N>0?C-4:C,q;for(q=0;q>16&255,B[w++]=b>>8&255,B[w++]=b&255;return N===2&&(b=i[m.charCodeAt(q)]<<2|i[m.charCodeAt(q+1)]>>4,B[w++]=b&255),N===1&&(b=i[m.charCodeAt(q)]<<10|i[m.charCodeAt(q+1)]<<4|i[m.charCodeAt(q+2)]>>2,B[w++]=b>>8&255,B[w++]=b&255),B}function f(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[m&63]}function p(m,b,v){for(var C,N=[],B=b;BU?U:w+B));return C===1?(b=m[v-1],N.push(e[b>>2]+e[b<<4&63]+"==")):C===2&&(b=(m[v-2]<<8)+m[v-1],N.push(e[b>>10]+e[b>>4&63]+e[b<<2&63]+"=")),N.join("")}return lr}function Sl(){return mi?yr:(mi=!0,yr.read=function(e,i,t,l,h){var s,r,o=h*8-l-1,n=(1<>1,f=-7,p=t?h-1:0,g=t?-1:1,m=e[i+p];for(p+=g,s=m&(1<<-f)-1,m>>=-f,f+=o;f>0;s=s*256+e[i+p],p+=g,f-=8);for(r=s&(1<<-f)-1,s>>=-f,f+=l;f>0;r=r*256+e[i+p],p+=g,f-=8);if(s===0)s=1-a;else{if(s===n)return r?NaN:(m?-1:1)*(1/0);r=r+Math.pow(2,l),s=s-a}return(m?-1:1)*r*Math.pow(2,s-l)},yr.write=function(e,i,t,l,h,s){var r,o,n,a=s*8-h-1,f=(1<>1,g=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=l?0:s-1,b=l?1:-1,v=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(o=isNaN(i)?1:0,r=f):(r=Math.floor(Math.log(i)/Math.LN2),i*(n=Math.pow(2,-r))<1&&(r--,n*=2),r+p>=1?i+=g/n:i+=g*Math.pow(2,1-p),i*n>=2&&(r++,n/=2),r+p>=f?(o=0,r=f):r+p>=1?(o=(i*n-1)*Math.pow(2,h),r=r+p):(o=i*Math.pow(2,p-1)*Math.pow(2,h),r=0));h>=8;e[t+m]=o&255,m+=b,o/=256,h-=8);for(r=r<0;e[t+m]=r&255,m+=b,r/=256,a-=8);e[t+m-b]|=v*128},yr)}function Al(){if(bi)return Nt;bi=!0;let e=El(),i=Sl(),t=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Nt.Buffer=r,Nt.SlowBuffer=N,Nt.INSPECT_MAX_BYTES=50;let l=2147483647;Nt.kMaxLength=l,r.TYPED_ARRAY_SUPPORT=h(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function h(){try{let c=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(c,u),c.foo()===42}catch{return!1}}Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}});function s(c){if(c>l)throw new RangeError('The value "'+c+'" is invalid for option "size"');let u=new Uint8Array(c);return Object.setPrototypeOf(u,r.prototype),u}function r(c,u,d){if(typeof c=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(c)}return o(c,u,d)}r.poolSize=8192;function o(c,u,d){if(typeof c=="string")return p(c,u);if(ArrayBuffer.isView(c))return m(c);if(c==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof c);if(S(c,ArrayBuffer)||c&&S(c.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(S(c,SharedArrayBuffer)||c&&S(c.buffer,SharedArrayBuffer)))return b(c,u,d);if(typeof c=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let _=c.valueOf&&c.valueOf();if(_!=null&&_!==c)return r.from(_,u,d);let P=v(c);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof c[Symbol.toPrimitive]=="function")return r.from(c[Symbol.toPrimitive]("string"),u,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof c)}r.from=function(c,u,d){return o(c,u,d)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function n(c){if(typeof c!="number")throw new TypeError('"size" argument must be of type number');if(c<0)throw new RangeError('The value "'+c+'" is invalid for option "size"')}function a(c,u,d){return n(c),c<=0?s(c):u!==void 0?typeof d=="string"?s(c).fill(u,d):s(c).fill(u):s(c)}r.alloc=function(c,u,d){return a(c,u,d)};function f(c){return n(c),s(c<0?0:C(c)|0)}r.allocUnsafe=function(c){return f(c)},r.allocUnsafeSlow=function(c){return f(c)};function p(c,u){if((typeof u!="string"||u==="")&&(u="utf8"),!r.isEncoding(u))throw new TypeError("Unknown encoding: "+u);let d=B(c,u)|0,_=s(d),P=_.write(c,u);return P!==d&&(_=_.slice(0,P)),_}function g(c){let u=c.length<0?0:C(c.length)|0,d=s(u);for(let _=0;_=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return c|0}function N(c){return+c!=c&&(c=0),r.alloc(+c)}r.isBuffer=function(c){return c!=null&&c._isBuffer===!0&&c!==r.prototype},r.compare=function(c,u){if(S(c,Uint8Array)&&(c=r.from(c,c.offset,c.byteLength)),S(u,Uint8Array)&&(u=r.from(u,u.offset,u.byteLength)),!r.isBuffer(c)||!r.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===u)return 0;let d=c.length,_=u.length;for(let P=0,D=Math.min(d,_);P_.length?(r.isBuffer(D)||(D=r.from(D)),D.copy(_,P)):Uint8Array.prototype.set.call(_,D,P);else if(r.isBuffer(D))D.copy(_,P);else throw new TypeError('"list" argument must be an Array of Buffers');P+=D.length}return _};function B(c,u){if(r.isBuffer(c))return c.length;if(ArrayBuffer.isView(c)||S(c,ArrayBuffer))return c.byteLength;if(typeof c!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof c);let d=c.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&d===0)return 0;let P=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return F(c).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return ee(c).length;default:if(P)return _?-1:F(c).length;u=(""+u).toLowerCase(),P=!0}}r.byteLength=B;function w(c,u,d){let _=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,u>>>=0,d<=u))return"";for(c||(c="utf8");;)switch(c){case"hex":return V(this,u,d);case"utf8":case"utf-8":return K(this,u,d);case"ascii":return _e(this,u,d);case"latin1":case"binary":return he(this,u,d);case"base64":return T(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,u,d);default:if(_)throw new TypeError("Unknown encoding: "+c);c=(c+"").toLowerCase(),_=!0}}r.prototype._isBuffer=!0;function U(c,u,d){let _=c[u];c[u]=c[d],c[d]=_}r.prototype.swap16=function(){let c=this.length;if(c%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;uu&&(c+=" ... "),""},t&&(r.prototype[t]=r.prototype.inspect),r.prototype.compare=function(c,u,d,_,P){if(S(c,Uint8Array)&&(c=r.from(c,c.offset,c.byteLength)),!r.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c);if(u===void 0&&(u=0),d===void 0&&(d=c?c.length:0),_===void 0&&(_=0),P===void 0&&(P=this.length),u<0||d>c.length||_<0||P>this.length)throw new RangeError("out of range index");if(_>=P&&u>=d)return 0;if(_>=P)return-1;if(u>=d)return 1;if(u>>>=0,d>>>=0,_>>>=0,P>>>=0,this===c)return 0;let D=P-_,ce=d-u,Pe=Math.min(D,ce),Me=this.slice(_,P),Ie=c.slice(u,d);for(let Oe=0;Oe2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,j(d)&&(d=P?0:c.length-1),d<0&&(d=c.length+d),d>=c.length){if(P)return-1;d=c.length-1}else if(d<0)if(P)d=0;else return-1;if(typeof u=="string"&&(u=r.from(u,_)),r.isBuffer(u))return u.length===0?-1:I(c,u,d,_,P);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(c,u,d):Uint8Array.prototype.lastIndexOf.call(c,u,d):I(c,[u],d,_,P);throw new TypeError("val must be string, number or Buffer")}function I(c,u,d,_,P){let D=1,ce=c.length,Pe=u.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(c.length<2||u.length<2)return-1;D=2,ce/=2,Pe/=2,d/=2}function Me(Oe,Be){return D===1?Oe[Be]:Oe.readUInt16BE(Be*D)}let Ie;if(P){let Oe=-1;for(Ie=d;Iece&&(d=ce-Pe),Ie=d;Ie>=0;Ie--){let Oe=!0;for(let Be=0;BeP&&(_=P)):_=P;let D=u.length;_>D/2&&(_=D/2);let ce;for(ce=0;ce<_;++ce){let Pe=parseInt(u.substr(ce*2,2),16);if(j(Pe))return ce;c[d+ce]=Pe}return ce}function R(c,u,d,_){return L(F(u,c.length-d),c,d,_)}function Q(c,u,d,_){return L($(u),c,d,_)}function te(c,u,d,_){return L(ee(u),c,d,_)}function se(c,u,d,_){return L(ue(u,c.length-d),c,d,_)}r.prototype.write=function(c,u,d,_){if(u===void 0)_="utf8",d=this.length,u=0;else if(d===void 0&&typeof u=="string")_=u,d=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(d)?(d=d>>>0,_===void 0&&(_="utf8")):(_=d,d=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let P=this.length-u;if((d===void 0||d>P)&&(d=P),c.length>0&&(d<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");_||(_="utf8");let D=!1;for(;;)switch(_){case"hex":return k(this,c,u,d);case"utf8":case"utf-8":return R(this,c,u,d);case"ascii":case"latin1":case"binary":return Q(this,c,u,d);case"base64":return te(this,c,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,c,u,d);default:if(D)throw new TypeError("Unknown encoding: "+_);_=(""+_).toLowerCase(),D=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(c,u,d){return u===0&&d===c.length?e.fromByteArray(c):e.fromByteArray(c.slice(u,d))}function K(c,u,d){d=Math.min(c.length,d);let _=[],P=u;for(;P239?4:D>223?3:D>191?2:1;if(P+Pe<=d){let Me,Ie,Oe,Be;switch(Pe){case 1:D<128&&(ce=D);break;case 2:Me=c[P+1],(Me&192)===128&&(Be=(D&31)<<6|Me&63,Be>127&&(ce=Be));break;case 3:Me=c[P+1],Ie=c[P+2],(Me&192)===128&&(Ie&192)===128&&(Be=(D&15)<<12|(Me&63)<<6|Ie&63,Be>2047&&(Be<55296||Be>57343)&&(ce=Be));break;case 4:Me=c[P+1],Ie=c[P+2],Oe=c[P+3],(Me&192)===128&&(Ie&192)===128&&(Oe&192)===128&&(Be=(D&15)<<18|(Me&63)<<12|(Ie&63)<<6|Oe&63,Be>65535&&Be<1114112&&(ce=Be))}}ce===null?(ce=65533,Pe=1):ce>65535&&(ce-=65536,_.push(ce>>>10&1023|55296),ce=56320|ce&1023),_.push(ce),P+=Pe}return J(_)}let re=4096;function J(c){let u=c.length;if(u<=re)return String.fromCharCode.apply(String,c);let d="",_=0;for(;__)&&(d=_);let P="";for(let D=u;Dd&&(c=d),u<0?(u+=d,u<0&&(u=0)):u>d&&(u=d),ud)throw new RangeError("Trying to access beyond buffer length")}r.prototype.readUintLE=r.prototype.readUIntLE=function(c,u,d){c=c>>>0,u=u>>>0,d||ie(c,u,this.length);let _=this[c],P=1,D=0;for(;++D>>0,u=u>>>0,d||ie(c,u,this.length);let _=this[c+--u],P=1;for(;u>0&&(P*=256);)_+=this[c+--u]*P;return _},r.prototype.readUint8=r.prototype.readUInt8=function(c,u){return c=c>>>0,u||ie(c,1,this.length),this[c]},r.prototype.readUint16LE=r.prototype.readUInt16LE=function(c,u){return c=c>>>0,u||ie(c,2,this.length),this[c]|this[c+1]<<8},r.prototype.readUint16BE=r.prototype.readUInt16BE=function(c,u){return c=c>>>0,u||ie(c,2,this.length),this[c]<<8|this[c+1]},r.prototype.readUint32LE=r.prototype.readUInt32LE=function(c,u){return c=c>>>0,u||ie(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+this[c+3]*16777216},r.prototype.readUint32BE=r.prototype.readUInt32BE=function(c,u){return c=c>>>0,u||ie(c,4,this.length),this[c]*16777216+(this[c+1]<<16|this[c+2]<<8|this[c+3])},r.prototype.readBigUInt64LE=Z(function(c){c=c>>>0,ne(c,"offset");let u=this[c],d=this[c+7];(u===void 0||d===void 0)&&Ee(c,this.length-8);let _=u+this[++c]*2**8+this[++c]*2**16+this[++c]*2**24,P=this[++c]+this[++c]*2**8+this[++c]*2**16+d*2**24;return BigInt(_)+(BigInt(P)<>>0,ne(c,"offset");let u=this[c],d=this[c+7];(u===void 0||d===void 0)&&Ee(c,this.length-8);let _=u*2**24+this[++c]*2**16+this[++c]*2**8+this[++c],P=this[++c]*2**24+this[++c]*2**16+this[++c]*2**8+d;return(BigInt(_)<>>0,u=u>>>0,d||ie(c,u,this.length);let _=this[c],P=1,D=0;for(;++D=P&&(_-=Math.pow(2,8*u)),_},r.prototype.readIntBE=function(c,u,d){c=c>>>0,u=u>>>0,d||ie(c,u,this.length);let _=u,P=1,D=this[c+--_];for(;_>0&&(P*=256);)D+=this[c+--_]*P;return P*=128,D>=P&&(D-=Math.pow(2,8*u)),D},r.prototype.readInt8=function(c,u){return c=c>>>0,u||ie(c,1,this.length),this[c]&128?(255-this[c]+1)*-1:this[c]},r.prototype.readInt16LE=function(c,u){c=c>>>0,u||ie(c,2,this.length);let d=this[c]|this[c+1]<<8;return d&32768?d|4294901760:d},r.prototype.readInt16BE=function(c,u){c=c>>>0,u||ie(c,2,this.length);let d=this[c+1]|this[c]<<8;return d&32768?d|4294901760:d},r.prototype.readInt32LE=function(c,u){return c=c>>>0,u||ie(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},r.prototype.readInt32BE=function(c,u){return c=c>>>0,u||ie(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},r.prototype.readBigInt64LE=Z(function(c){c=c>>>0,ne(c,"offset");let u=this[c],d=this[c+7];(u===void 0||d===void 0)&&Ee(c,this.length-8);let _=this[c+4]+this[c+5]*2**8+this[c+6]*2**16+(d<<24);return(BigInt(_)<>>0,ne(c,"offset");let u=this[c],d=this[c+7];(u===void 0||d===void 0)&&Ee(c,this.length-8);let _=(u<<24)+this[++c]*2**16+this[++c]*2**8+this[++c];return(BigInt(_)<>>0,u||ie(c,4,this.length),i.read(this,c,!0,23,4)},r.prototype.readFloatBE=function(c,u){return c=c>>>0,u||ie(c,4,this.length),i.read(this,c,!1,23,4)},r.prototype.readDoubleLE=function(c,u){return c=c>>>0,u||ie(c,8,this.length),i.read(this,c,!0,52,8)},r.prototype.readDoubleBE=function(c,u){return c=c>>>0,u||ie(c,8,this.length),i.read(this,c,!1,52,8)};function X(c,u,d,_,P,D){if(!r.isBuffer(c))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>P||uc.length)throw new RangeError("Index out of range")}r.prototype.writeUintLE=r.prototype.writeUIntLE=function(c,u,d,_){if(c=+c,u=u>>>0,d=d>>>0,!_){let ce=Math.pow(2,8*d)-1;X(this,c,u,d,ce,0)}let P=1,D=0;for(this[u]=c&255;++D>>0,d=d>>>0,!_){let ce=Math.pow(2,8*d)-1;X(this,c,u,d,ce,0)}let P=d-1,D=1;for(this[u+P]=c&255;--P>=0&&(D*=256);)this[u+P]=c/D&255;return u+d},r.prototype.writeUint8=r.prototype.writeUInt8=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,1,255,0),this[u]=c&255,u+1},r.prototype.writeUint16LE=r.prototype.writeUInt16LE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,2,65535,0),this[u]=c&255,this[u+1]=c>>>8,u+2},r.prototype.writeUint16BE=r.prototype.writeUInt16BE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,2,65535,0),this[u]=c>>>8,this[u+1]=c&255,u+2},r.prototype.writeUint32LE=r.prototype.writeUInt32LE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,4,4294967295,0),this[u+3]=c>>>24,this[u+2]=c>>>16,this[u+1]=c>>>8,this[u]=c&255,u+4},r.prototype.writeUint32BE=r.prototype.writeUInt32BE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,4,4294967295,0),this[u]=c>>>24,this[u+1]=c>>>16,this[u+2]=c>>>8,this[u+3]=c&255,u+4};function O(c,u,d,_,P){ae(u,_,P,c,d,7);let D=Number(u&BigInt(4294967295));c[d++]=D,D=D>>8,c[d++]=D,D=D>>8,c[d++]=D,D=D>>8,c[d++]=D;let ce=Number(u>>BigInt(32)&BigInt(4294967295));return c[d++]=ce,ce=ce>>8,c[d++]=ce,ce=ce>>8,c[d++]=ce,ce=ce>>8,c[d++]=ce,d}function G(c,u,d,_,P){ae(u,_,P,c,d,7);let D=Number(u&BigInt(4294967295));c[d+7]=D,D=D>>8,c[d+6]=D,D=D>>8,c[d+5]=D,D=D>>8,c[d+4]=D;let ce=Number(u>>BigInt(32)&BigInt(4294967295));return c[d+3]=ce,ce=ce>>8,c[d+2]=ce,ce=ce>>8,c[d+1]=ce,ce=ce>>8,c[d]=ce,d+8}r.prototype.writeBigUInt64LE=Z(function(c,u=0){return O(this,c,u,BigInt(0),BigInt("0xffffffffffffffff"))}),r.prototype.writeBigUInt64BE=Z(function(c,u=0){return G(this,c,u,BigInt(0),BigInt("0xffffffffffffffff"))}),r.prototype.writeIntLE=function(c,u,d,_){if(c=+c,u=u>>>0,!_){let Pe=Math.pow(2,8*d-1);X(this,c,u,d,Pe-1,-Pe)}let P=0,D=1,ce=0;for(this[u]=c&255;++P>0)-ce&255;return u+d},r.prototype.writeIntBE=function(c,u,d,_){if(c=+c,u=u>>>0,!_){let Pe=Math.pow(2,8*d-1);X(this,c,u,d,Pe-1,-Pe)}let P=d-1,D=1,ce=0;for(this[u+P]=c&255;--P>=0&&(D*=256);)c<0&&ce===0&&this[u+P+1]!==0&&(ce=1),this[u+P]=(c/D>>0)-ce&255;return u+d},r.prototype.writeInt8=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,1,127,-128),c<0&&(c=255+c+1),this[u]=c&255,u+1},r.prototype.writeInt16LE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,2,32767,-32768),this[u]=c&255,this[u+1]=c>>>8,u+2},r.prototype.writeInt16BE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,2,32767,-32768),this[u]=c>>>8,this[u+1]=c&255,u+2},r.prototype.writeInt32LE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,4,2147483647,-2147483648),this[u]=c&255,this[u+1]=c>>>8,this[u+2]=c>>>16,this[u+3]=c>>>24,u+4},r.prototype.writeInt32BE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[u]=c>>>24,this[u+1]=c>>>16,this[u+2]=c>>>8,this[u+3]=c&255,u+4},r.prototype.writeBigInt64LE=Z(function(c,u=0){return O(this,c,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),r.prototype.writeBigInt64BE=Z(function(c,u=0){return G(this,c,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ve(c,u,d,_,P,D){if(d+_>c.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function ke(c,u,d,_,P){return u=+u,d=d>>>0,P||ve(c,u,d,4),i.write(c,u,d,_,23,4),d+4}r.prototype.writeFloatLE=function(c,u,d){return ke(this,c,u,!0,d)},r.prototype.writeFloatBE=function(c,u,d){return ke(this,c,u,!1,d)};function le(c,u,d,_,P){return u=+u,d=d>>>0,P||ve(c,u,d,8),i.write(c,u,d,_,52,8),d+8}r.prototype.writeDoubleLE=function(c,u,d){return le(this,c,u,!0,d)},r.prototype.writeDoubleBE=function(c,u,d){return le(this,c,u,!1,d)},r.prototype.copy=function(c,u,d,_){if(!r.isBuffer(c))throw new TypeError("argument should be a Buffer");if(d||(d=0),!_&&_!==0&&(_=this.length),u>=c.length&&(u=c.length),u||(u=0),_>0&&_=this.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("sourceEnd out of bounds");_>this.length&&(_=this.length),c.length-u<_-d&&(_=c.length-u+d);let P=_-d;return this===c&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,d,_):Uint8Array.prototype.set.call(c,this.subarray(d,_),u),P},r.prototype.fill=function(c,u,d,_){if(typeof c=="string"){if(typeof u=="string"?(_=u,u=0,d=this.length):typeof d=="string"&&(_=d,d=this.length),_!==void 0&&typeof _!="string")throw new TypeError("encoding must be a string");if(typeof _=="string"&&!r.isEncoding(_))throw new TypeError("Unknown encoding: "+_);if(c.length===1){let D=c.charCodeAt(0);(_==="utf8"&&D<128||_==="latin1")&&(c=D)}}else typeof c=="number"?c=c&255:typeof c=="boolean"&&(c=Number(c));if(u<0||this.length>>0,d=d===void 0?this.length:d>>>0,c||(c=0);let P;if(typeof c=="number")for(P=u;P2**32?P=Y(String(d)):typeof d=="bigint"&&(P=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(P=Y(P)),P+="n"),_+=` It must be ${u}. Received ${P}`,_},RangeError);function Y(c){let u="",d=c.length,_=c[0]==="-"?1:0;for(;d>=_+4;d-=3)u=`_${c.slice(d-3,d)}${u}`;return`${c.slice(0,d)}${u}`}function fe(c,u,d){ne(u,"offset"),(c[u]===void 0||c[u+d]===void 0)&&Ee(u,c.length-(d+1))}function ae(c,u,d,_,P,D){if(c>d||c= 0${ce} and < 2${ce} ** ${(D+1)*8}${ce}`:Pe=`>= -(2${ce} ** ${(D+1)*8-1}${ce}) and < 2 ** ${(D+1)*8-1}${ce}`,new W.ERR_OUT_OF_RANGE("value",Pe,c)}fe(_,P,D)}function ne(c,u){if(typeof c!="number")throw new W.ERR_INVALID_ARG_TYPE(u,"number",c)}function Ee(c,u,d){throw Math.floor(c)!==c?(ne(c,d),new W.ERR_OUT_OF_RANGE("offset","an integer",c)):u<0?new W.ERR_BUFFER_OUT_OF_BOUNDS:new W.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${u}`,c)}let me=/[^+/0-9A-Za-z-_]/g;function x(c){if(c=c.split("=")[0],c=c.trim().replace(me,""),c.length<2)return"";for(;c.length%4!==0;)c=c+"=";return c}function F(c,u){u=u||1/0;let d,_=c.length,P=null,D=[];for(let ce=0;ce<_;++ce){if(d=c.charCodeAt(ce),d>55295&&d<57344){if(!P){if(d>56319){(u-=3)>-1&&D.push(239,191,189);continue}else if(ce+1===_){(u-=3)>-1&&D.push(239,191,189);continue}P=d;continue}if(d<56320){(u-=3)>-1&&D.push(239,191,189),P=d;continue}d=(P-55296<<10|d-56320)+65536}else P&&(u-=3)>-1&&D.push(239,191,189);if(P=null,d<128){if((u-=1)<0)break;D.push(d)}else if(d<2048){if((u-=2)<0)break;D.push(d>>6|192,d&63|128)}else if(d<65536){if((u-=3)<0)break;D.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((u-=4)<0)break;D.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return D}function $(c){let u=[];for(let d=0;d>8,P=d%256,D.push(P),D.push(_);return D}function ee(c){return e.toByteArray(x(c))}function L(c,u,d,_){let P;for(P=0;P<_&&!(P+d>=u.length||P>=c.length);++P)u[P+d]=c[P];return P}function S(c,u){return c instanceof u||c!=null&&c.constructor!=null&&c.constructor.name!=null&&c.constructor.name===u.name}function j(c){return c!==c}let z=function(){let c="0123456789abcdef",u=new Array(256);for(let d=0;d<16;++d){let _=d*16;for(let P=0;P<16;++P)u[_+P]=c[d]+c[P]}return u}();function Z(c){return typeof BigInt>"u"?oe:c}function oe(){throw new Error("BigInt not supported")}return Nt}var lr,gi,yr,mi,Nt,bi,Ct,Wr,Go,Jo,nt=tt(()=>{de(),ge(),pe(),lr={},gi=!1,yr={},mi=!1,Nt={},bi=!1,Ct=Al(),Ct.Buffer,Ct.SlowBuffer,Ct.INSPECT_MAX_BYTES,Ct.kMaxLength,Wr=Ct.Buffer,Go=Ct.INSPECT_MAX_BYTES,Jo=Ct.kMaxLength}),ge=tt(()=>{nt()}),Cl=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0});var i=class{constructor(t){this.aliasToTopic={},this.max=t}put(t,l){return l===0||l>this.max?!1:(this.aliasToTopic[l]=t,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(t){return this.aliasToTopic[t]}clear(){this.aliasToTopic={}}};e.default=i}),Ge=Se((e,i)=>{de(),ge(),pe(),i.exports={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,l){return t.includes(l)},ArrayPrototypeIndexOf(t,l){return t.indexOf(l)},ArrayPrototypeJoin(t,l){return t.join(l)},ArrayPrototypeMap(t,l){return t.map(l)},ArrayPrototypePop(t,l){return t.pop(l)},ArrayPrototypePush(t,l){return t.push(l)},ArrayPrototypeSlice(t,l,h){return t.slice(l,h)},Error,FunctionPrototypeCall(t,l,...h){return t.call(l,...h)},FunctionPrototypeSymbolHasInstance(t,l){return Function.prototype[Symbol.hasInstance].call(t,l)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,l){return Object.defineProperties(t,l)},ObjectDefineProperty(t,l,h){return Object.defineProperty(t,l,h)},ObjectGetOwnPropertyDescriptor(t,l){return Object.getOwnPropertyDescriptor(t,l)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,l){return Object.setPrototypeOf(t,l)},Promise,PromisePrototypeCatch(t,l){return t.catch(l)},PromisePrototypeThen(t,l,h){return t.then(l,h)},PromiseReject(t){return Promise.reject(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,l){return t.test(l)},SafeSet:Set,String,StringPrototypeSlice(t,l,h){return t.slice(l,h)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(t,l,h){return t.set(l,h)},Uint8Array}}),Pt=Se((e,i)=>{de(),ge(),pe();var t=(nt(),De(rt)),l=Object.getPrototypeOf(async function(){}).constructor,h=globalThis.Blob||t.Blob,s=typeof h<"u"?function(o){return o instanceof h}:function(o){return!1},r=class extends Error{constructor(o){if(!Array.isArray(o))throw new TypeError(`Expected input to be an Array, got ${typeof o}`);let n="";for(let a=0;a{throw TypeError(e)};var pl=(e,i,t)=>i in e?dl(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var ot=(e,i,t)=>pl(e,typeof i!="symbol"?i+"":i,t),Gr=(e,i,t)=>i.has(e)||Qi("Cannot "+t);var M=(e,i,t)=>(Gr(e,i,"read from private field"),t?t.call(e):i.get(e)),je=(e,i,t)=>i.has(e)?Qi("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,t),Re=(e,i,t,l)=>(Gr(e,i,"write to private field"),l?l.call(e,t):i.set(e,t),t),Te=(e,i,t)=>(Gr(e,i,"access private method"),t);var Ar=(e,i,t,l)=>({set _(h){Re(e,i,h,t)},get _(){return M(e,i,l)}});import{ad as gl,r as Gi,a as be}from"./index-v0G7K8Rw.js";var Mi=Object.defineProperty,ml=Object.getOwnPropertyDescriptor,bl=Object.getOwnPropertyNames,yl=Object.prototype.hasOwnProperty,tt=(e,i)=>()=>(e&&(i=e(e=0)),i),Se=(e,i)=>()=>(i||e((i={exports:{}}).exports,i),i.exports),nr=(e,i)=>{for(var t in i)Mi(e,t,{get:i[t],enumerable:!0})},vl=(e,i,t,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let h of bl(i))!yl.call(e,h)&&h!==t&&Mi(e,h,{get:()=>i[h],enumerable:!(l=ml(i,h))||l.enumerable});return e},De=e=>vl(Mi({},"__esModule",{value:!0}),e),de=tt(()=>{}),Le={};nr(Le,{_debugEnd:()=>Vn,_debugProcess:()=>qn,_events:()=>oi,_eventsCount:()=>si,_exiting:()=>On,_fatalExceptions:()=>Dn,_getActiveHandles:()=>Ho,_getActiveRequests:()=>Vo,_kill:()=>Rn,_linkedBinding:()=>$o,_maxListeners:()=>ii,_preload_modules:()=>ri,_rawDebug:()=>kn,_startProfilerIdleNotifier:()=>Hn,_stopProfilerIdleNotifier:()=>zn,_tickCallback:()=>$n,abort:()=>Gn,addListener:()=>ai,allowedNodeEnvironmentFlags:()=>Nn,arch:()=>dn,argv:()=>mn,argv0:()=>ti,assert:()=>zo,binding:()=>_n,chdir:()=>An,config:()=>Bn,cpuUsage:()=>br,cwd:()=>Sn,debugPort:()=>ei,default:()=>Ui,dlopen:()=>qo,domain:()=>Tn,emit:()=>fi,emitWarning:()=>wn,env:()=>gn,execArgv:()=>bn,execPath:()=>Xn,exit:()=>Un,features:()=>Wn,hasUncaughtExceptionCaptureCallback:()=>Ko,hrtime:()=>Pr,kill:()=>jn,listeners:()=>Qo,memoryUsage:()=>Mn,moduleLoadList:()=>In,nextTick:()=>Do,off:()=>ui,on:()=>At,once:()=>li,openStdin:()=>Ln,pid:()=>Jn,platform:()=>pn,ppid:()=>Zn,prependListener:()=>di,prependOnceListener:()=>pi,reallyExit:()=>Pn,release:()=>Cn,removeAllListeners:()=>ci,removeListener:()=>hi,resourceUsage:()=>xn,setSourceMapsEnabled:()=>ni,setUncaughtExceptionCaptureCallback:()=>Fn,stderr:()=>Yn,stdin:()=>Qn,stdout:()=>Kn,title:()=>fn,umask:()=>En,uptime:()=>Yo,version:()=>yn,versions:()=>vn});function ji(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function wl(){!er||!Zt||(er=!1,Zt.length?_t=Zt.concat(_t):wr=-1,_t.length&&Wo())}function Wo(){if(!er){var e=setTimeout(wl,0);er=!0;for(var i=_t.length;i;){for(Zt=_t,_t=[];++wr1)for(var t=1;t{de(),ge(),pe(),_t=[],er=!1,wr=-1,Fo.prototype.run=function(){this.fun.apply(null,this.array)},fn="browser",dn="x64",pn="browser",gn={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},mn=["/usr/bin/node"],bn=[],yn="v16.8.0",vn={},wn=function(e,i){console.warn((i?i+": ":"")+e)},_n=function(e){ji("binding")},En=function(e){return 0},Sn=function(){return"/"},An=function(e){},Cn={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},kn=st,In=[],Tn={},On=!1,Bn={},Pn=st,Rn=st,br=function(){return{}},xn=br,Mn=br,jn=st,Un=st,Ln=st,Nn={},Wn={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Dn=st,Fn=st,$n=st,qn=st,Vn=st,Hn=st,zn=st,Kn=void 0,Yn=void 0,Qn=void 0,Gn=st,Jn=2,Zn=1,Xn="/bin/usr/node",ei=9229,ti="node",ri=[],ni=st,Tt={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Tt.now===void 0&&(Jr=Date.now(),Tt.timing&&Tt.timing.navigationStart&&(Jr=Tt.timing.navigationStart),Tt.now=()=>Date.now()-Jr),Rr=1e9,Pr.bigint=function(e){var i=Pr(e);return typeof BigInt>"u"?i[0]*Rr+i[1]:BigInt(i[0]*Rr)+BigInt(i[1])},ii=10,oi={},si=0,ai=At,li=At,ui=At,hi=At,ci=At,fi=st,di=At,pi=At,Ui={version:yn,versions:vn,arch:dn,platform:pn,release:Cn,_rawDebug:kn,moduleLoadList:In,binding:_n,_linkedBinding:$o,_events:oi,_eventsCount:si,_maxListeners:ii,on:At,addListener:ai,once:li,off:ui,removeListener:hi,removeAllListeners:ci,emit:fi,prependListener:di,prependOnceListener:pi,listeners:Qo,domain:Tn,_exiting:On,config:Bn,dlopen:qo,uptime:Yo,_getActiveRequests:Vo,_getActiveHandles:Ho,reallyExit:Pn,_kill:Rn,cpuUsage:br,resourceUsage:xn,memoryUsage:Mn,kill:jn,exit:Un,openStdin:Ln,allowedNodeEnvironmentFlags:Nn,assert:zo,features:Wn,_fatalExceptions:Dn,setUncaughtExceptionCaptureCallback:Fn,hasUncaughtExceptionCaptureCallback:Ko,emitWarning:wn,nextTick:Do,_tickCallback:$n,_debugProcess:qn,_debugEnd:Vn,_startProfilerIdleNotifier:Hn,_stopProfilerIdleNotifier:zn,stdout:Kn,stdin:Qn,stderr:Yn,abort:Gn,umask:En,chdir:An,cwd:Sn,env:gn,title:fn,argv:mn,execArgv:bn,pid:Jn,ppid:Zn,execPath:Xn,debugPort:ei,hrtime:Pr,argv0:ti,_preload_modules:ri,setSourceMapsEnabled:ni}}),pe=tt(()=>{_l()}),rt={};nr(rt,{Buffer:()=>Wr,INSPECT_MAX_BYTES:()=>Go,default:()=>Ct,kMaxLength:()=>Jo});function El(){if(gi)return lr;gi=!0,lr.byteLength=o,lr.toByteArray=a,lr.fromByteArray=g;for(var e=[],i=[],t=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,s=l.length;h0)throw new Error("Invalid string. Length must be a multiple of 4");var v=m.indexOf("=");v===-1&&(v=b);var C=v===b?0:4-v%4;return[v,C]}function o(m){var b=r(m),v=b[0],C=b[1];return(v+C)*3/4-C}function n(m,b,v){return(b+v)*3/4-v}function a(m){var b,v=r(m),C=v[0],N=v[1],B=new t(n(m,C,N)),w=0,U=N>0?C-4:C,q;for(q=0;q>16&255,B[w++]=b>>8&255,B[w++]=b&255;return N===2&&(b=i[m.charCodeAt(q)]<<2|i[m.charCodeAt(q+1)]>>4,B[w++]=b&255),N===1&&(b=i[m.charCodeAt(q)]<<10|i[m.charCodeAt(q+1)]<<4|i[m.charCodeAt(q+2)]>>2,B[w++]=b>>8&255,B[w++]=b&255),B}function f(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[m&63]}function p(m,b,v){for(var C,N=[],B=b;BU?U:w+B));return C===1?(b=m[v-1],N.push(e[b>>2]+e[b<<4&63]+"==")):C===2&&(b=(m[v-2]<<8)+m[v-1],N.push(e[b>>10]+e[b>>4&63]+e[b<<2&63]+"=")),N.join("")}return lr}function Sl(){return mi?yr:(mi=!0,yr.read=function(e,i,t,l,h){var s,r,o=h*8-l-1,n=(1<>1,f=-7,p=t?h-1:0,g=t?-1:1,m=e[i+p];for(p+=g,s=m&(1<<-f)-1,m>>=-f,f+=o;f>0;s=s*256+e[i+p],p+=g,f-=8);for(r=s&(1<<-f)-1,s>>=-f,f+=l;f>0;r=r*256+e[i+p],p+=g,f-=8);if(s===0)s=1-a;else{if(s===n)return r?NaN:(m?-1:1)*(1/0);r=r+Math.pow(2,l),s=s-a}return(m?-1:1)*r*Math.pow(2,s-l)},yr.write=function(e,i,t,l,h,s){var r,o,n,a=s*8-h-1,f=(1<>1,g=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=l?0:s-1,b=l?1:-1,v=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(o=isNaN(i)?1:0,r=f):(r=Math.floor(Math.log(i)/Math.LN2),i*(n=Math.pow(2,-r))<1&&(r--,n*=2),r+p>=1?i+=g/n:i+=g*Math.pow(2,1-p),i*n>=2&&(r++,n/=2),r+p>=f?(o=0,r=f):r+p>=1?(o=(i*n-1)*Math.pow(2,h),r=r+p):(o=i*Math.pow(2,p-1)*Math.pow(2,h),r=0));h>=8;e[t+m]=o&255,m+=b,o/=256,h-=8);for(r=r<0;e[t+m]=r&255,m+=b,r/=256,a-=8);e[t+m-b]|=v*128},yr)}function Al(){if(bi)return Nt;bi=!0;let e=El(),i=Sl(),t=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Nt.Buffer=r,Nt.SlowBuffer=N,Nt.INSPECT_MAX_BYTES=50;let l=2147483647;Nt.kMaxLength=l,r.TYPED_ARRAY_SUPPORT=h(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function h(){try{let c=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(c,u),c.foo()===42}catch{return!1}}Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}});function s(c){if(c>l)throw new RangeError('The value "'+c+'" is invalid for option "size"');let u=new Uint8Array(c);return Object.setPrototypeOf(u,r.prototype),u}function r(c,u,d){if(typeof c=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(c)}return o(c,u,d)}r.poolSize=8192;function o(c,u,d){if(typeof c=="string")return p(c,u);if(ArrayBuffer.isView(c))return m(c);if(c==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof c);if(S(c,ArrayBuffer)||c&&S(c.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(S(c,SharedArrayBuffer)||c&&S(c.buffer,SharedArrayBuffer)))return b(c,u,d);if(typeof c=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let _=c.valueOf&&c.valueOf();if(_!=null&&_!==c)return r.from(_,u,d);let P=v(c);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof c[Symbol.toPrimitive]=="function")return r.from(c[Symbol.toPrimitive]("string"),u,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof c)}r.from=function(c,u,d){return o(c,u,d)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function n(c){if(typeof c!="number")throw new TypeError('"size" argument must be of type number');if(c<0)throw new RangeError('The value "'+c+'" is invalid for option "size"')}function a(c,u,d){return n(c),c<=0?s(c):u!==void 0?typeof d=="string"?s(c).fill(u,d):s(c).fill(u):s(c)}r.alloc=function(c,u,d){return a(c,u,d)};function f(c){return n(c),s(c<0?0:C(c)|0)}r.allocUnsafe=function(c){return f(c)},r.allocUnsafeSlow=function(c){return f(c)};function p(c,u){if((typeof u!="string"||u==="")&&(u="utf8"),!r.isEncoding(u))throw new TypeError("Unknown encoding: "+u);let d=B(c,u)|0,_=s(d),P=_.write(c,u);return P!==d&&(_=_.slice(0,P)),_}function g(c){let u=c.length<0?0:C(c.length)|0,d=s(u);for(let _=0;_=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return c|0}function N(c){return+c!=c&&(c=0),r.alloc(+c)}r.isBuffer=function(c){return c!=null&&c._isBuffer===!0&&c!==r.prototype},r.compare=function(c,u){if(S(c,Uint8Array)&&(c=r.from(c,c.offset,c.byteLength)),S(u,Uint8Array)&&(u=r.from(u,u.offset,u.byteLength)),!r.isBuffer(c)||!r.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===u)return 0;let d=c.length,_=u.length;for(let P=0,D=Math.min(d,_);P_.length?(r.isBuffer(D)||(D=r.from(D)),D.copy(_,P)):Uint8Array.prototype.set.call(_,D,P);else if(r.isBuffer(D))D.copy(_,P);else throw new TypeError('"list" argument must be an Array of Buffers');P+=D.length}return _};function B(c,u){if(r.isBuffer(c))return c.length;if(ArrayBuffer.isView(c)||S(c,ArrayBuffer))return c.byteLength;if(typeof c!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof c);let d=c.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&d===0)return 0;let P=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return F(c).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return ee(c).length;default:if(P)return _?-1:F(c).length;u=(""+u).toLowerCase(),P=!0}}r.byteLength=B;function w(c,u,d){let _=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,u>>>=0,d<=u))return"";for(c||(c="utf8");;)switch(c){case"hex":return V(this,u,d);case"utf8":case"utf-8":return K(this,u,d);case"ascii":return _e(this,u,d);case"latin1":case"binary":return he(this,u,d);case"base64":return T(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,u,d);default:if(_)throw new TypeError("Unknown encoding: "+c);c=(c+"").toLowerCase(),_=!0}}r.prototype._isBuffer=!0;function U(c,u,d){let _=c[u];c[u]=c[d],c[d]=_}r.prototype.swap16=function(){let c=this.length;if(c%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;uu&&(c+=" ... "),""},t&&(r.prototype[t]=r.prototype.inspect),r.prototype.compare=function(c,u,d,_,P){if(S(c,Uint8Array)&&(c=r.from(c,c.offset,c.byteLength)),!r.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c);if(u===void 0&&(u=0),d===void 0&&(d=c?c.length:0),_===void 0&&(_=0),P===void 0&&(P=this.length),u<0||d>c.length||_<0||P>this.length)throw new RangeError("out of range index");if(_>=P&&u>=d)return 0;if(_>=P)return-1;if(u>=d)return 1;if(u>>>=0,d>>>=0,_>>>=0,P>>>=0,this===c)return 0;let D=P-_,ce=d-u,Pe=Math.min(D,ce),Me=this.slice(_,P),Ie=c.slice(u,d);for(let Oe=0;Oe2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,j(d)&&(d=P?0:c.length-1),d<0&&(d=c.length+d),d>=c.length){if(P)return-1;d=c.length-1}else if(d<0)if(P)d=0;else return-1;if(typeof u=="string"&&(u=r.from(u,_)),r.isBuffer(u))return u.length===0?-1:I(c,u,d,_,P);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(c,u,d):Uint8Array.prototype.lastIndexOf.call(c,u,d):I(c,[u],d,_,P);throw new TypeError("val must be string, number or Buffer")}function I(c,u,d,_,P){let D=1,ce=c.length,Pe=u.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(c.length<2||u.length<2)return-1;D=2,ce/=2,Pe/=2,d/=2}function Me(Oe,Be){return D===1?Oe[Be]:Oe.readUInt16BE(Be*D)}let Ie;if(P){let Oe=-1;for(Ie=d;Iece&&(d=ce-Pe),Ie=d;Ie>=0;Ie--){let Oe=!0;for(let Be=0;BeP&&(_=P)):_=P;let D=u.length;_>D/2&&(_=D/2);let ce;for(ce=0;ce<_;++ce){let Pe=parseInt(u.substr(ce*2,2),16);if(j(Pe))return ce;c[d+ce]=Pe}return ce}function R(c,u,d,_){return L(F(u,c.length-d),c,d,_)}function Q(c,u,d,_){return L($(u),c,d,_)}function te(c,u,d,_){return L(ee(u),c,d,_)}function se(c,u,d,_){return L(ue(u,c.length-d),c,d,_)}r.prototype.write=function(c,u,d,_){if(u===void 0)_="utf8",d=this.length,u=0;else if(d===void 0&&typeof u=="string")_=u,d=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(d)?(d=d>>>0,_===void 0&&(_="utf8")):(_=d,d=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let P=this.length-u;if((d===void 0||d>P)&&(d=P),c.length>0&&(d<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");_||(_="utf8");let D=!1;for(;;)switch(_){case"hex":return k(this,c,u,d);case"utf8":case"utf-8":return R(this,c,u,d);case"ascii":case"latin1":case"binary":return Q(this,c,u,d);case"base64":return te(this,c,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,c,u,d);default:if(D)throw new TypeError("Unknown encoding: "+_);_=(""+_).toLowerCase(),D=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(c,u,d){return u===0&&d===c.length?e.fromByteArray(c):e.fromByteArray(c.slice(u,d))}function K(c,u,d){d=Math.min(c.length,d);let _=[],P=u;for(;P239?4:D>223?3:D>191?2:1;if(P+Pe<=d){let Me,Ie,Oe,Be;switch(Pe){case 1:D<128&&(ce=D);break;case 2:Me=c[P+1],(Me&192)===128&&(Be=(D&31)<<6|Me&63,Be>127&&(ce=Be));break;case 3:Me=c[P+1],Ie=c[P+2],(Me&192)===128&&(Ie&192)===128&&(Be=(D&15)<<12|(Me&63)<<6|Ie&63,Be>2047&&(Be<55296||Be>57343)&&(ce=Be));break;case 4:Me=c[P+1],Ie=c[P+2],Oe=c[P+3],(Me&192)===128&&(Ie&192)===128&&(Oe&192)===128&&(Be=(D&15)<<18|(Me&63)<<12|(Ie&63)<<6|Oe&63,Be>65535&&Be<1114112&&(ce=Be))}}ce===null?(ce=65533,Pe=1):ce>65535&&(ce-=65536,_.push(ce>>>10&1023|55296),ce=56320|ce&1023),_.push(ce),P+=Pe}return J(_)}let re=4096;function J(c){let u=c.length;if(u<=re)return String.fromCharCode.apply(String,c);let d="",_=0;for(;__)&&(d=_);let P="";for(let D=u;Dd&&(c=d),u<0?(u+=d,u<0&&(u=0)):u>d&&(u=d),ud)throw new RangeError("Trying to access beyond buffer length")}r.prototype.readUintLE=r.prototype.readUIntLE=function(c,u,d){c=c>>>0,u=u>>>0,d||ie(c,u,this.length);let _=this[c],P=1,D=0;for(;++D>>0,u=u>>>0,d||ie(c,u,this.length);let _=this[c+--u],P=1;for(;u>0&&(P*=256);)_+=this[c+--u]*P;return _},r.prototype.readUint8=r.prototype.readUInt8=function(c,u){return c=c>>>0,u||ie(c,1,this.length),this[c]},r.prototype.readUint16LE=r.prototype.readUInt16LE=function(c,u){return c=c>>>0,u||ie(c,2,this.length),this[c]|this[c+1]<<8},r.prototype.readUint16BE=r.prototype.readUInt16BE=function(c,u){return c=c>>>0,u||ie(c,2,this.length),this[c]<<8|this[c+1]},r.prototype.readUint32LE=r.prototype.readUInt32LE=function(c,u){return c=c>>>0,u||ie(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+this[c+3]*16777216},r.prototype.readUint32BE=r.prototype.readUInt32BE=function(c,u){return c=c>>>0,u||ie(c,4,this.length),this[c]*16777216+(this[c+1]<<16|this[c+2]<<8|this[c+3])},r.prototype.readBigUInt64LE=Z(function(c){c=c>>>0,ne(c,"offset");let u=this[c],d=this[c+7];(u===void 0||d===void 0)&&Ee(c,this.length-8);let _=u+this[++c]*2**8+this[++c]*2**16+this[++c]*2**24,P=this[++c]+this[++c]*2**8+this[++c]*2**16+d*2**24;return BigInt(_)+(BigInt(P)<>>0,ne(c,"offset");let u=this[c],d=this[c+7];(u===void 0||d===void 0)&&Ee(c,this.length-8);let _=u*2**24+this[++c]*2**16+this[++c]*2**8+this[++c],P=this[++c]*2**24+this[++c]*2**16+this[++c]*2**8+d;return(BigInt(_)<>>0,u=u>>>0,d||ie(c,u,this.length);let _=this[c],P=1,D=0;for(;++D=P&&(_-=Math.pow(2,8*u)),_},r.prototype.readIntBE=function(c,u,d){c=c>>>0,u=u>>>0,d||ie(c,u,this.length);let _=u,P=1,D=this[c+--_];for(;_>0&&(P*=256);)D+=this[c+--_]*P;return P*=128,D>=P&&(D-=Math.pow(2,8*u)),D},r.prototype.readInt8=function(c,u){return c=c>>>0,u||ie(c,1,this.length),this[c]&128?(255-this[c]+1)*-1:this[c]},r.prototype.readInt16LE=function(c,u){c=c>>>0,u||ie(c,2,this.length);let d=this[c]|this[c+1]<<8;return d&32768?d|4294901760:d},r.prototype.readInt16BE=function(c,u){c=c>>>0,u||ie(c,2,this.length);let d=this[c+1]|this[c]<<8;return d&32768?d|4294901760:d},r.prototype.readInt32LE=function(c,u){return c=c>>>0,u||ie(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},r.prototype.readInt32BE=function(c,u){return c=c>>>0,u||ie(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},r.prototype.readBigInt64LE=Z(function(c){c=c>>>0,ne(c,"offset");let u=this[c],d=this[c+7];(u===void 0||d===void 0)&&Ee(c,this.length-8);let _=this[c+4]+this[c+5]*2**8+this[c+6]*2**16+(d<<24);return(BigInt(_)<>>0,ne(c,"offset");let u=this[c],d=this[c+7];(u===void 0||d===void 0)&&Ee(c,this.length-8);let _=(u<<24)+this[++c]*2**16+this[++c]*2**8+this[++c];return(BigInt(_)<>>0,u||ie(c,4,this.length),i.read(this,c,!0,23,4)},r.prototype.readFloatBE=function(c,u){return c=c>>>0,u||ie(c,4,this.length),i.read(this,c,!1,23,4)},r.prototype.readDoubleLE=function(c,u){return c=c>>>0,u||ie(c,8,this.length),i.read(this,c,!0,52,8)},r.prototype.readDoubleBE=function(c,u){return c=c>>>0,u||ie(c,8,this.length),i.read(this,c,!1,52,8)};function X(c,u,d,_,P,D){if(!r.isBuffer(c))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>P||uc.length)throw new RangeError("Index out of range")}r.prototype.writeUintLE=r.prototype.writeUIntLE=function(c,u,d,_){if(c=+c,u=u>>>0,d=d>>>0,!_){let ce=Math.pow(2,8*d)-1;X(this,c,u,d,ce,0)}let P=1,D=0;for(this[u]=c&255;++D>>0,d=d>>>0,!_){let ce=Math.pow(2,8*d)-1;X(this,c,u,d,ce,0)}let P=d-1,D=1;for(this[u+P]=c&255;--P>=0&&(D*=256);)this[u+P]=c/D&255;return u+d},r.prototype.writeUint8=r.prototype.writeUInt8=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,1,255,0),this[u]=c&255,u+1},r.prototype.writeUint16LE=r.prototype.writeUInt16LE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,2,65535,0),this[u]=c&255,this[u+1]=c>>>8,u+2},r.prototype.writeUint16BE=r.prototype.writeUInt16BE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,2,65535,0),this[u]=c>>>8,this[u+1]=c&255,u+2},r.prototype.writeUint32LE=r.prototype.writeUInt32LE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,4,4294967295,0),this[u+3]=c>>>24,this[u+2]=c>>>16,this[u+1]=c>>>8,this[u]=c&255,u+4},r.prototype.writeUint32BE=r.prototype.writeUInt32BE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,4,4294967295,0),this[u]=c>>>24,this[u+1]=c>>>16,this[u+2]=c>>>8,this[u+3]=c&255,u+4};function O(c,u,d,_,P){ae(u,_,P,c,d,7);let D=Number(u&BigInt(4294967295));c[d++]=D,D=D>>8,c[d++]=D,D=D>>8,c[d++]=D,D=D>>8,c[d++]=D;let ce=Number(u>>BigInt(32)&BigInt(4294967295));return c[d++]=ce,ce=ce>>8,c[d++]=ce,ce=ce>>8,c[d++]=ce,ce=ce>>8,c[d++]=ce,d}function G(c,u,d,_,P){ae(u,_,P,c,d,7);let D=Number(u&BigInt(4294967295));c[d+7]=D,D=D>>8,c[d+6]=D,D=D>>8,c[d+5]=D,D=D>>8,c[d+4]=D;let ce=Number(u>>BigInt(32)&BigInt(4294967295));return c[d+3]=ce,ce=ce>>8,c[d+2]=ce,ce=ce>>8,c[d+1]=ce,ce=ce>>8,c[d]=ce,d+8}r.prototype.writeBigUInt64LE=Z(function(c,u=0){return O(this,c,u,BigInt(0),BigInt("0xffffffffffffffff"))}),r.prototype.writeBigUInt64BE=Z(function(c,u=0){return G(this,c,u,BigInt(0),BigInt("0xffffffffffffffff"))}),r.prototype.writeIntLE=function(c,u,d,_){if(c=+c,u=u>>>0,!_){let Pe=Math.pow(2,8*d-1);X(this,c,u,d,Pe-1,-Pe)}let P=0,D=1,ce=0;for(this[u]=c&255;++P>0)-ce&255;return u+d},r.prototype.writeIntBE=function(c,u,d,_){if(c=+c,u=u>>>0,!_){let Pe=Math.pow(2,8*d-1);X(this,c,u,d,Pe-1,-Pe)}let P=d-1,D=1,ce=0;for(this[u+P]=c&255;--P>=0&&(D*=256);)c<0&&ce===0&&this[u+P+1]!==0&&(ce=1),this[u+P]=(c/D>>0)-ce&255;return u+d},r.prototype.writeInt8=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,1,127,-128),c<0&&(c=255+c+1),this[u]=c&255,u+1},r.prototype.writeInt16LE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,2,32767,-32768),this[u]=c&255,this[u+1]=c>>>8,u+2},r.prototype.writeInt16BE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,2,32767,-32768),this[u]=c>>>8,this[u+1]=c&255,u+2},r.prototype.writeInt32LE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,4,2147483647,-2147483648),this[u]=c&255,this[u+1]=c>>>8,this[u+2]=c>>>16,this[u+3]=c>>>24,u+4},r.prototype.writeInt32BE=function(c,u,d){return c=+c,u=u>>>0,d||X(this,c,u,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[u]=c>>>24,this[u+1]=c>>>16,this[u+2]=c>>>8,this[u+3]=c&255,u+4},r.prototype.writeBigInt64LE=Z(function(c,u=0){return O(this,c,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),r.prototype.writeBigInt64BE=Z(function(c,u=0){return G(this,c,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ve(c,u,d,_,P,D){if(d+_>c.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function ke(c,u,d,_,P){return u=+u,d=d>>>0,P||ve(c,u,d,4),i.write(c,u,d,_,23,4),d+4}r.prototype.writeFloatLE=function(c,u,d){return ke(this,c,u,!0,d)},r.prototype.writeFloatBE=function(c,u,d){return ke(this,c,u,!1,d)};function le(c,u,d,_,P){return u=+u,d=d>>>0,P||ve(c,u,d,8),i.write(c,u,d,_,52,8),d+8}r.prototype.writeDoubleLE=function(c,u,d){return le(this,c,u,!0,d)},r.prototype.writeDoubleBE=function(c,u,d){return le(this,c,u,!1,d)},r.prototype.copy=function(c,u,d,_){if(!r.isBuffer(c))throw new TypeError("argument should be a Buffer");if(d||(d=0),!_&&_!==0&&(_=this.length),u>=c.length&&(u=c.length),u||(u=0),_>0&&_=this.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("sourceEnd out of bounds");_>this.length&&(_=this.length),c.length-u<_-d&&(_=c.length-u+d);let P=_-d;return this===c&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,d,_):Uint8Array.prototype.set.call(c,this.subarray(d,_),u),P},r.prototype.fill=function(c,u,d,_){if(typeof c=="string"){if(typeof u=="string"?(_=u,u=0,d=this.length):typeof d=="string"&&(_=d,d=this.length),_!==void 0&&typeof _!="string")throw new TypeError("encoding must be a string");if(typeof _=="string"&&!r.isEncoding(_))throw new TypeError("Unknown encoding: "+_);if(c.length===1){let D=c.charCodeAt(0);(_==="utf8"&&D<128||_==="latin1")&&(c=D)}}else typeof c=="number"?c=c&255:typeof c=="boolean"&&(c=Number(c));if(u<0||this.length>>0,d=d===void 0?this.length:d>>>0,c||(c=0);let P;if(typeof c=="number")for(P=u;P2**32?P=Y(String(d)):typeof d=="bigint"&&(P=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(P=Y(P)),P+="n"),_+=` It must be ${u}. Received ${P}`,_},RangeError);function Y(c){let u="",d=c.length,_=c[0]==="-"?1:0;for(;d>=_+4;d-=3)u=`_${c.slice(d-3,d)}${u}`;return`${c.slice(0,d)}${u}`}function fe(c,u,d){ne(u,"offset"),(c[u]===void 0||c[u+d]===void 0)&&Ee(u,c.length-(d+1))}function ae(c,u,d,_,P,D){if(c>d||c= 0${ce} and < 2${ce} ** ${(D+1)*8}${ce}`:Pe=`>= -(2${ce} ** ${(D+1)*8-1}${ce}) and < 2 ** ${(D+1)*8-1}${ce}`,new W.ERR_OUT_OF_RANGE("value",Pe,c)}fe(_,P,D)}function ne(c,u){if(typeof c!="number")throw new W.ERR_INVALID_ARG_TYPE(u,"number",c)}function Ee(c,u,d){throw Math.floor(c)!==c?(ne(c,d),new W.ERR_OUT_OF_RANGE("offset","an integer",c)):u<0?new W.ERR_BUFFER_OUT_OF_BOUNDS:new W.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${u}`,c)}let me=/[^+/0-9A-Za-z-_]/g;function x(c){if(c=c.split("=")[0],c=c.trim().replace(me,""),c.length<2)return"";for(;c.length%4!==0;)c=c+"=";return c}function F(c,u){u=u||1/0;let d,_=c.length,P=null,D=[];for(let ce=0;ce<_;++ce){if(d=c.charCodeAt(ce),d>55295&&d<57344){if(!P){if(d>56319){(u-=3)>-1&&D.push(239,191,189);continue}else if(ce+1===_){(u-=3)>-1&&D.push(239,191,189);continue}P=d;continue}if(d<56320){(u-=3)>-1&&D.push(239,191,189),P=d;continue}d=(P-55296<<10|d-56320)+65536}else P&&(u-=3)>-1&&D.push(239,191,189);if(P=null,d<128){if((u-=1)<0)break;D.push(d)}else if(d<2048){if((u-=2)<0)break;D.push(d>>6|192,d&63|128)}else if(d<65536){if((u-=3)<0)break;D.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((u-=4)<0)break;D.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return D}function $(c){let u=[];for(let d=0;d>8,P=d%256,D.push(P),D.push(_);return D}function ee(c){return e.toByteArray(x(c))}function L(c,u,d,_){let P;for(P=0;P<_&&!(P+d>=u.length||P>=c.length);++P)u[P+d]=c[P];return P}function S(c,u){return c instanceof u||c!=null&&c.constructor!=null&&c.constructor.name!=null&&c.constructor.name===u.name}function j(c){return c!==c}let z=function(){let c="0123456789abcdef",u=new Array(256);for(let d=0;d<16;++d){let _=d*16;for(let P=0;P<16;++P)u[_+P]=c[d]+c[P]}return u}();function Z(c){return typeof BigInt>"u"?oe:c}function oe(){throw new Error("BigInt not supported")}return Nt}var lr,gi,yr,mi,Nt,bi,Ct,Wr,Go,Jo,nt=tt(()=>{de(),ge(),pe(),lr={},gi=!1,yr={},mi=!1,Nt={},bi=!1,Ct=Al(),Ct.Buffer,Ct.SlowBuffer,Ct.INSPECT_MAX_BYTES,Ct.kMaxLength,Wr=Ct.Buffer,Go=Ct.INSPECT_MAX_BYTES,Jo=Ct.kMaxLength}),ge=tt(()=>{nt()}),Cl=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0});var i=class{constructor(t){this.aliasToTopic={},this.max=t}put(t,l){return l===0||l>this.max?!1:(this.aliasToTopic[l]=t,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(t){return this.aliasToTopic[t]}clear(){this.aliasToTopic={}}};e.default=i}),Ge=Se((e,i)=>{de(),ge(),pe(),i.exports={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,l){return t.includes(l)},ArrayPrototypeIndexOf(t,l){return t.indexOf(l)},ArrayPrototypeJoin(t,l){return t.join(l)},ArrayPrototypeMap(t,l){return t.map(l)},ArrayPrototypePop(t,l){return t.pop(l)},ArrayPrototypePush(t,l){return t.push(l)},ArrayPrototypeSlice(t,l,h){return t.slice(l,h)},Error,FunctionPrototypeCall(t,l,...h){return t.call(l,...h)},FunctionPrototypeSymbolHasInstance(t,l){return Function.prototype[Symbol.hasInstance].call(t,l)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,l){return Object.defineProperties(t,l)},ObjectDefineProperty(t,l,h){return Object.defineProperty(t,l,h)},ObjectGetOwnPropertyDescriptor(t,l){return Object.getOwnPropertyDescriptor(t,l)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,l){return Object.setPrototypeOf(t,l)},Promise,PromisePrototypeCatch(t,l){return t.catch(l)},PromisePrototypeThen(t,l,h){return t.then(l,h)},PromiseReject(t){return Promise.reject(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,l){return t.test(l)},SafeSet:Set,String,StringPrototypeSlice(t,l,h){return t.slice(l,h)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(t,l,h){return t.set(l,h)},Uint8Array}}),Pt=Se((e,i)=>{de(),ge(),pe();var t=(nt(),De(rt)),l=Object.getPrototypeOf(async function(){}).constructor,h=globalThis.Blob||t.Blob,s=typeof h<"u"?function(o){return o instanceof h}:function(o){return!1},r=class extends Error{constructor(o){if(!Array.isArray(o))throw new TypeError(`Expected input to be an Array, got ${typeof o}`);let n="";for(let a=0;a{o=a,n=f}),resolve:o,reject:n}},promisify(o){return new Promise((n,a)=>{o((f,...p)=>f?a(f):n(...p))})},debuglog(){return function(){}},format(o,...n){return o.replace(/%([sdifj])/g,function(...[a,f]){let p=n.shift();return f==="f"?p.toFixed(6):f==="j"?JSON.stringify(p):f==="s"&&typeof p=="object"?`${p.constructor!==Object?p.constructor.name:""} {}`.trim():p.toString()})},inspect(o){switch(typeof o){case"string":if(o.includes("'"))if(o.includes('"')){if(!o.includes("`")&&!o.includes("${"))return`\`${o}\``}else return`"${o}"`;return`'${o}'`;case"number":return isNaN(o)?"NaN":Object.is(o,-0)?String(o):o;case"bigint":return`${String(o)}n`;case"boolean":case"undefined":return String(o);case"object":return"{}"}},types:{isAsyncFunction(o){return o instanceof l},isArrayBufferView(o){return ArrayBuffer.isView(o)}},isBlob:s},i.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),Li=Se((e,i)=>{de(),ge(),pe();var{AbortController:t,AbortSignal:l}=typeof self<"u"?self:typeof window<"u"?window:void 0;i.exports=t,i.exports.AbortSignal=l,i.exports.default=t}),ht=Se((e,i)=>{de(),ge(),pe();var{format:t,inspect:l,AggregateError:h}=Pt(),s=globalThis.AggregateError||h,r=Symbol("kIsNodeError"),o=["string","function","number","object","Function","Object","boolean","bigint","symbol"],n=/^([A-Z][a-z0-9]*)+$/,a="__node_internal_",f={};function p(B,w){if(!B)throw new f.ERR_INTERNAL_ASSERTION(w)}function g(B){let w="",U=B.length,q=B[0]==="-"?1:0;for(;U>=q+4;U-=3)w=`_${B.slice(U-3,U)}${w}`;return`${B.slice(0,U)}${w}`}function m(B,w,U){if(typeof w=="function")return p(w.length<=U.length,`Code: ${B}; The provided arguments length (${U.length}) does not match the required ones (${w.length}).`),w(...U);let q=(w.match(/%[dfijoOs]/g)||[]).length;return p(q===U.length,`Code: ${B}; The provided arguments length (${U.length}) does not match the required ones (${q}).`),U.length===0?w:t(w,...U)}function b(B,w,U){U||(U=Error);class q extends U{constructor(...k){super(m(B,w,k))}toString(){return`${this.name} [${B}]: ${this.message}`}}Object.defineProperties(q.prototype,{name:{value:U.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${B}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),q.prototype.code=B,q.prototype[r]=!0,f[B]=q}function v(B){let w=a+B.name;return Object.defineProperty(B,"name",{value:w}),B}function C(B,w){if(B&&w&&B!==w){if(Array.isArray(w.errors))return w.errors.push(B),w;let U=new s([w,B],w.message);return U.code=w.code,U}return B||w}var N=class extends Error{constructor(B="The operation was aborted",w=void 0){if(w!==void 0&&typeof w!="object")throw new f.ERR_INVALID_ARG_TYPE("options","Object",w);super(B,w),this.code="ABORT_ERR",this.name="AbortError"}};b("ERR_ASSERTION","%s",Error),b("ERR_INVALID_ARG_TYPE",(B,w,U)=>{p(typeof B=="string","'name' must be a string"),Array.isArray(w)||(w=[w]);let q="The ";B.endsWith(" argument")?q+=`${B} `:q+=`"${B}" ${B.includes(".")?"property":"argument"} `,q+="must be ";let I=[],k=[],R=[];for(let te of w)p(typeof te=="string","All expected entries have to be of type string"),o.includes(te)?I.push(te.toLowerCase()):n.test(te)?k.push(te):(p(te!=="object",'The value "object" should be written as "Object"'),R.push(te));if(k.length>0){let te=I.indexOf("object");te!==-1&&(I.splice(I,te,1),k.push("Object"))}if(I.length>0){switch(I.length){case 1:q+=`of type ${I[0]}`;break;case 2:q+=`one of type ${I[0]} or ${I[1]}`;break;default:{let te=I.pop();q+=`one of type ${I.join(", ")}, or ${te}`}}(k.length>0||R.length>0)&&(q+=" or ")}if(k.length>0){switch(k.length){case 1:q+=`an instance of ${k[0]}`;break;case 2:q+=`an instance of ${k[0]} or ${k[1]}`;break;default:{let te=k.pop();q+=`an instance of ${k.join(", ")}, or ${te}`}}R.length>0&&(q+=" or ")}switch(R.length){case 0:break;case 1:R[0].toLowerCase()!==R[0]&&(q+="an "),q+=`${R[0]}`;break;case 2:q+=`one of ${R[0]} or ${R[1]}`;break;default:{let te=R.pop();q+=`one of ${R.join(", ")}, or ${te}`}}if(U==null)q+=`. Received ${U}`;else if(typeof U=="function"&&U.name)q+=`. Received function ${U.name}`;else if(typeof U=="object"){var Q;if((Q=U.constructor)!==null&&Q!==void 0&&Q.name)q+=`. Received an instance of ${U.constructor.name}`;else{let te=l(U,{depth:-1});q+=`. Received ${te}`}}else{let te=l(U,{colors:!1});te.length>25&&(te=`${te.slice(0,25)}...`),q+=`. Received type ${typeof U} (${te})`}return q},TypeError),b("ERR_INVALID_ARG_VALUE",(B,w,U="is invalid")=>{let q=l(w);return q.length>128&&(q=q.slice(0,128)+"..."),`The ${B.includes(".")?"property":"argument"} '${B}' ${U}. Received ${q}`},TypeError),b("ERR_INVALID_RETURN_VALUE",(B,w,U)=>{var q;let I=U!=null&&(q=U.constructor)!==null&&q!==void 0&&q.name?`instance of ${U.constructor.name}`:`type ${typeof U}`;return`Expected ${B} to be returned from the "${w}" function but got ${I}.`},TypeError),b("ERR_MISSING_ARGS",(...B)=>{p(B.length>0,"At least one arg needs to be specified");let w,U=B.length;switch(B=(Array.isArray(B)?B:[B]).map(q=>`"${q}"`).join(" or "),U){case 1:w+=`The ${B[0]} argument`;break;case 2:w+=`The ${B[0]} and ${B[1]} arguments`;break;default:{let q=B.pop();w+=`The ${B.join(", ")}, and ${q} arguments`}break}return`${w} must be specified`},TypeError),b("ERR_OUT_OF_RANGE",(B,w,U)=>{p(w,'Missing "range" argument');let q;return Number.isInteger(U)&&Math.abs(U)>2**32?q=g(String(U)):typeof U=="bigint"?(q=String(U),(U>2n**32n||U<-(2n**32n))&&(q=g(q)),q+="n"):q=l(U),`The value of "${B}" is out of range. It must be ${w}. Received ${q}`},RangeError),b("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),b("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),b("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),b("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),b("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),b("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),b("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),b("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),b("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),b("ERR_STREAM_WRITE_AFTER_END","write after end",Error),b("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),i.exports={AbortError:N,aggregateTwoErrors:v(C),hideStackFrames:v,codes:f}}),Vr=Se((e,i)=>{de(),ge(),pe();var{ArrayIsArray:t,ArrayPrototypeIncludes:l,ArrayPrototypeJoin:h,ArrayPrototypeMap:s,NumberIsInteger:r,NumberIsNaN:o,NumberMAX_SAFE_INTEGER:n,NumberMIN_SAFE_INTEGER:a,NumberParseInt:f,ObjectPrototypeHasOwnProperty:p,RegExpPrototypeExec:g,String:m,StringPrototypeToUpperCase:b,StringPrototypeTrim:v}=Ge(),{hideStackFrames:C,codes:{ERR_SOCKET_BAD_PORT:N,ERR_INVALID_ARG_TYPE:B,ERR_INVALID_ARG_VALUE:w,ERR_OUT_OF_RANGE:U,ERR_UNKNOWN_SIGNAL:q}}=ht(),{normalizeEncoding:I}=Pt(),{isAsyncFunction:k,isArrayBufferView:R}=Pt().types,Q={};function te(L){return L===(L|0)}function se(L){return L===L>>>0}var T=/^[0-7]+$/,K="must be a 32-bit unsigned integer or an octal string";function re(L,S,j){if(typeof L>"u"&&(L=j),typeof L=="string"){if(g(T,L)===null)throw new w(S,L,K);L=f(L,8)}return he(L,S),L}var J=C((L,S,j=a,z=n)=>{if(typeof L!="number")throw new B(S,"number",L);if(!r(L))throw new U(S,"an integer",L);if(Lz)throw new U(S,`>= ${j} && <= ${z}`,L)}),_e=C((L,S,j=-2147483648,z=2147483647)=>{if(typeof L!="number")throw new B(S,"number",L);if(!r(L))throw new U(S,"an integer",L);if(Lz)throw new U(S,`>= ${j} && <= ${z}`,L)}),he=C((L,S,j=!1)=>{if(typeof L!="number")throw new B(S,"number",L);if(!r(L))throw new U(S,"an integer",L);let z=j?1:0,Z=4294967295;if(LZ)throw new U(S,`>= ${z} && <= ${Z}`,L)});function V(L,S){if(typeof L!="string")throw new B(S,"string",L)}function Ae(L,S,j=void 0,z){if(typeof L!="number")throw new B(S,"number",L);if(j!=null&&Lz||(j!=null||z!=null)&&o(L))throw new U(S,`${j!=null?`>= ${j}`:""}${j!=null&&z!=null?" && ":""}${z!=null?`<= ${z}`:""}`,L)}var ie=C((L,S,j)=>{if(!l(j,L)){let z="must be one of: "+h(s(j,Z=>typeof Z=="string"?`'${Z}'`:m(Z)),", ");throw new w(S,L,z)}});function X(L,S){if(typeof L!="boolean")throw new B(S,"boolean",L)}function O(L,S,j){return L==null||!p(L,S)?j:L[S]}var G=C((L,S,j=null)=>{let z=O(j,"allowArray",!1),Z=O(j,"allowFunction",!1);if(!O(j,"nullable",!1)&&L===null||!z&&t(L)||typeof L!="object"&&(!Z||typeof L!="function"))throw new B(S,"Object",L)}),ve=C((L,S)=>{if(L!=null&&typeof L!="object"&&typeof L!="function")throw new B(S,"a dictionary",L)}),ke=C((L,S,j=0)=>{if(!t(L))throw new B(S,"Array",L);if(L.length{if(!R(L))throw new B(S,["Buffer","TypedArray","DataView"],L)});function fe(L,S){let j=I(S),z=L.length;if(j==="hex"&&z%2!==0)throw new w("encoding",S,`is invalid for data of length ${z}`)}function ae(L,S="Port",j=!0){if(typeof L!="number"&&typeof L!="string"||typeof L=="string"&&v(L).length===0||+L!==+L>>>0||L>65535||L===0&&!j)throw new N(S,L,j);return L|0}var ne=C((L,S)=>{if(L!==void 0&&(L===null||typeof L!="object"||!("aborted"in L)))throw new B(S,"AbortSignal",L)}),Ee=C((L,S)=>{if(typeof L!="function")throw new B(S,"Function",L)}),me=C((L,S)=>{if(typeof L!="function"||k(L))throw new B(S,"Function",L)}),x=C((L,S)=>{if(L!==void 0)throw new B(S,"undefined",L)});function F(L,S,j){if(!l(j,L))throw new B(S,`('${h(j,"|")}')`,L)}var $=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function ue(L,S){if(typeof L>"u"||!g($,L))throw new w(S,L,'must be an array or string of format "; rel=preload; as=style"')}function ee(L){if(typeof L=="string")return ue(L,"hints"),L;if(t(L)){let S=L.length,j="";if(S===0)return j;for(let z=0;z; rel=preload; as=style"')}i.exports={isInt32:te,isUint32:se,parseFileMode:re,validateArray:ke,validateStringArray:le,validateBooleanArray:W,validateBoolean:X,validateBuffer:Y,validateDictionary:ve,validateEncoding:fe,validateFunction:Ee,validateInt32:_e,validateInteger:J,validateNumber:Ae,validateObject:G,validateOneOf:ie,validatePlainFunction:me,validatePort:ae,validateSignalName:A,validateString:V,validateUint32:he,validateUndefined:x,validateUnion:F,validateAbortSignal:ne,validateLinkHeaderValue:ee}}),ir=Se((e,i)=>{de(),ge(),pe();var t=i.exports={},l,h;function s(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?l=setTimeout:l=s}catch{l=s}try{typeof clearTimeout=="function"?h=clearTimeout:h=r}catch{h=r}})();function o(N){if(l===setTimeout)return setTimeout(N,0);if((l===s||!l)&&setTimeout)return l=setTimeout,setTimeout(N,0);try{return l(N,0)}catch{try{return l.call(null,N,0)}catch{return l.call(this,N,0)}}}function n(N){if(h===clearTimeout)return clearTimeout(N);if((h===r||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(N);try{return h(N)}catch{try{return h.call(null,N)}catch{return h.call(this,N)}}}var a=[],f=!1,p,g=-1;function m(){!f||!p||(f=!1,p.length?a=p.concat(a):g=-1,a.length&&b())}function b(){if(!f){var N=o(m);f=!0;for(var B=a.length;B;){for(p=a,a=[];++g1)for(var w=1;w{de(),ge(),pe();var{Symbol:t,SymbolAsyncIterator:l,SymbolIterator:h,SymbolFor:s}=Ge(),r=t("kDestroyed"),o=t("kIsErrored"),n=t("kIsReadable"),a=t("kIsDisturbed"),f=s("nodejs.webstream.isClosedPromise"),p=s("nodejs.webstream.controllerErrorFunction");function g(O,G=!1){var ve;return!!(O&&typeof O.pipe=="function"&&typeof O.on=="function"&&(!G||typeof O.pause=="function"&&typeof O.resume=="function")&&(!O._writableState||((ve=O._readableState)===null||ve===void 0?void 0:ve.readable)!==!1)&&(!O._writableState||O._readableState))}function m(O){var G;return!!(O&&typeof O.write=="function"&&typeof O.on=="function"&&(!O._readableState||((G=O._writableState)===null||G===void 0?void 0:G.writable)!==!1))}function b(O){return!!(O&&typeof O.pipe=="function"&&O._readableState&&typeof O.on=="function"&&typeof O.write=="function")}function v(O){return O&&(O._readableState||O._writableState||typeof O.write=="function"&&typeof O.on=="function"||typeof O.pipe=="function"&&typeof O.on=="function")}function C(O){return!!(O&&!v(O)&&typeof O.pipeThrough=="function"&&typeof O.getReader=="function"&&typeof O.cancel=="function")}function N(O){return!!(O&&!v(O)&&typeof O.getWriter=="function"&&typeof O.abort=="function")}function B(O){return!!(O&&!v(O)&&typeof O.readable=="object"&&typeof O.writable=="object")}function w(O){return C(O)||N(O)||B(O)}function U(O,G){return O==null?!1:G===!0?typeof O[l]=="function":G===!1?typeof O[h]=="function":typeof O[l]=="function"||typeof O[h]=="function"}function q(O){if(!v(O))return null;let G=O._writableState,ve=O._readableState,ke=G||ve;return!!(O.destroyed||O[r]||ke!=null&&ke.destroyed)}function I(O){if(!m(O))return null;if(O.writableEnded===!0)return!0;let G=O._writableState;return G!=null&&G.errored?!1:typeof G?.ended!="boolean"?null:G.ended}function k(O,G){if(!m(O))return null;if(O.writableFinished===!0)return!0;let ve=O._writableState;return ve!=null&&ve.errored?!1:typeof ve?.finished!="boolean"?null:!!(ve.finished||G===!1&&ve.ended===!0&&ve.length===0)}function R(O){if(!g(O))return null;if(O.readableEnded===!0)return!0;let G=O._readableState;return!G||G.errored?!1:typeof G?.ended!="boolean"?null:G.ended}function Q(O,G){if(!g(O))return null;let ve=O._readableState;return ve!=null&&ve.errored?!1:typeof ve?.endEmitted!="boolean"?null:!!(ve.endEmitted||G===!1&&ve.ended===!0&&ve.length===0)}function te(O){return O&&O[n]!=null?O[n]:typeof O?.readable!="boolean"?null:q(O)?!1:g(O)&&O.readable&&!Q(O)}function se(O){return typeof O?.writable!="boolean"?null:q(O)?!1:m(O)&&O.writable&&!I(O)}function T(O,G){return v(O)?q(O)?!0:!(G?.readable!==!1&&te(O)||G?.writable!==!1&&se(O)):null}function K(O){var G,ve;return v(O)?O.writableErrored?O.writableErrored:(G=(ve=O._writableState)===null||ve===void 0?void 0:ve.errored)!==null&&G!==void 0?G:null:null}function re(O){var G,ve;return v(O)?O.readableErrored?O.readableErrored:(G=(ve=O._readableState)===null||ve===void 0?void 0:ve.errored)!==null&&G!==void 0?G:null:null}function J(O){if(!v(O))return null;if(typeof O.closed=="boolean")return O.closed;let G=O._writableState,ve=O._readableState;return typeof G?.closed=="boolean"||typeof ve?.closed=="boolean"?G?.closed||ve?.closed:typeof O._closed=="boolean"&&_e(O)?O._closed:null}function _e(O){return typeof O._closed=="boolean"&&typeof O._defaultKeepAlive=="boolean"&&typeof O._removedConnection=="boolean"&&typeof O._removedContLen=="boolean"}function he(O){return typeof O._sent100=="boolean"&&_e(O)}function V(O){var G;return typeof O._consuming=="boolean"&&typeof O._dumped=="boolean"&&((G=O.req)===null||G===void 0?void 0:G.upgradeOrConnect)===void 0}function Ae(O){if(!v(O))return null;let G=O._writableState,ve=O._readableState,ke=G||ve;return!ke&&he(O)||!!(ke&&ke.autoDestroy&&ke.emitClose&&ke.closed===!1)}function ie(O){var G;return!!(O&&((G=O[a])!==null&&G!==void 0?G:O.readableDidRead||O.readableAborted))}function X(O){var G,ve,ke,le,W,A,Y,fe,ae,ne;return!!(O&&((G=(ve=(ke=(le=(W=(A=O[o])!==null&&A!==void 0?A:O.readableErrored)!==null&&W!==void 0?W:O.writableErrored)!==null&&le!==void 0?le:(Y=O._readableState)===null||Y===void 0?void 0:Y.errorEmitted)!==null&&ke!==void 0?ke:(fe=O._writableState)===null||fe===void 0?void 0:fe.errorEmitted)!==null&&ve!==void 0?ve:(ae=O._readableState)===null||ae===void 0?void 0:ae.errored)!==null&&G!==void 0?G:!((ne=O._writableState)===null||ne===void 0)&&ne.errored))}i.exports={kDestroyed:r,isDisturbed:ie,kIsDisturbed:a,isErrored:X,kIsErrored:o,isReadable:te,kIsReadable:n,kIsClosedPromise:f,kControllerErrorFunction:p,isClosed:J,isDestroyed:q,isDuplexNodeStream:b,isFinished:T,isIterable:U,isReadableNodeStream:g,isReadableStream:C,isReadableEnded:R,isReadableFinished:Q,isReadableErrored:re,isNodeStream:v,isWebStream:w,isWritable:se,isWritableNodeStream:m,isWritableStream:N,isWritableEnded:I,isWritableFinished:k,isWritableErrored:K,isServerRequest:V,isServerResponse:he,willEmitClose:Ae,isTransformStream:B}}),$t=Se((e,i)=>{de(),ge(),pe();var t=ir(),{AbortError:l,codes:h}=ht(),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_PREMATURE_CLOSE:r}=h,{kEmptyObject:o,once:n}=Pt(),{validateAbortSignal:a,validateFunction:f,validateObject:p,validateBoolean:g}=Vr(),{Promise:m,PromisePrototypeThen:b}=Ge(),{isClosed:v,isReadable:C,isReadableNodeStream:N,isReadableStream:B,isReadableFinished:w,isReadableErrored:U,isWritable:q,isWritableNodeStream:I,isWritableStream:k,isWritableFinished:R,isWritableErrored:Q,isNodeStream:te,willEmitClose:se,kIsClosedPromise:T}=Mt();function K(V){return V.setHeader&&typeof V.abort=="function"}var re=()=>{};function J(V,Ae,ie){var X,O;if(arguments.length===2?(ie=Ae,Ae=o):Ae==null?Ae=o:p(Ae,"options"),f(ie,"callback"),a(Ae.signal,"options.signal"),ie=n(ie),B(V)||k(V))return _e(V,Ae,ie);if(!te(V))throw new s("stream",["ReadableStream","WritableStream","Stream"],V);let G=(X=Ae.readable)!==null&&X!==void 0?X:N(V),ve=(O=Ae.writable)!==null&&O!==void 0?O:I(V),ke=V._writableState,le=V._readableState,W=()=>{V.writable||fe()},A=se(V)&&N(V)===G&&I(V)===ve,Y=R(V,!1),fe=()=>{Y=!0,V.destroyed&&(A=!1),!(A&&(!V.readable||G))&&(!G||ae)&&ie.call(V)},ae=w(V,!1),ne=()=>{ae=!0,V.destroyed&&(A=!1),!(A&&(!V.writable||ve))&&(!ve||Y)&&ie.call(V)},Ee=ee=>{ie.call(V,ee)},me=v(V),x=()=>{me=!0;let ee=Q(V)||U(V);if(ee&&typeof ee!="boolean")return ie.call(V,ee);if(G&&!ae&&N(V,!0)&&!w(V,!1))return ie.call(V,new r);if(ve&&!Y&&!R(V,!1))return ie.call(V,new r);ie.call(V)},F=()=>{me=!0;let ee=Q(V)||U(V);if(ee&&typeof ee!="boolean")return ie.call(V,ee);ie.call(V)},$=()=>{V.req.on("finish",fe)};K(V)?(V.on("complete",fe),A||V.on("abort",x),V.req?$():V.on("request",$)):ve&&!ke&&(V.on("end",W),V.on("close",W)),!A&&typeof V.aborted=="boolean"&&V.on("aborted",x),V.on("end",ne),V.on("finish",fe),Ae.error!==!1&&V.on("error",Ee),V.on("close",x),me?t.nextTick(x):ke!=null&&ke.errorEmitted||le!=null&&le.errorEmitted?A||t.nextTick(F):(!G&&(!A||C(V))&&(Y||q(V)===!1)||!ve&&(!A||q(V))&&(ae||C(V)===!1)||le&&V.req&&V.aborted)&&t.nextTick(F);let ue=()=>{ie=re,V.removeListener("aborted",x),V.removeListener("complete",fe),V.removeListener("abort",x),V.removeListener("request",$),V.req&&V.req.removeListener("finish",fe),V.removeListener("end",W),V.removeListener("close",W),V.removeListener("finish",fe),V.removeListener("end",ne),V.removeListener("error",Ee),V.removeListener("close",x)};if(Ae.signal&&!me){let ee=()=>{let L=ie;ue(),L.call(V,new l(void 0,{cause:Ae.signal.reason}))};if(Ae.signal.aborted)t.nextTick(ee);else{let L=ie;ie=n((...S)=>{Ae.signal.removeEventListener("abort",ee),L.apply(V,S)}),Ae.signal.addEventListener("abort",ee)}}return ue}function _e(V,Ae,ie){let X=!1,O=re;if(Ae.signal)if(O=()=>{X=!0,ie.call(V,new l(void 0,{cause:Ae.signal.reason}))},Ae.signal.aborted)t.nextTick(O);else{let ve=ie;ie=n((...ke)=>{Ae.signal.removeEventListener("abort",O),ve.apply(V,ke)}),Ae.signal.addEventListener("abort",O)}let G=(...ve)=>{X||t.nextTick(()=>ie.apply(V,ve))};return b(V[T].promise,G,G),re}function he(V,Ae){var ie;let X=!1;return Ae===null&&(Ae=o),(ie=Ae)!==null&&ie!==void 0&&ie.cleanup&&(g(Ae.cleanup,"cleanup"),X=Ae.cleanup),new m((O,G)=>{let ve=J(V,Ae,ke=>{X&&ve(),ke?G(ke):O()})})}i.exports=J,i.exports.finished=he}),hr=Se((e,i)=>{de(),ge(),pe();var t=ir(),{aggregateTwoErrors:l,codes:{ERR_MULTIPLE_CALLBACK:h},AbortError:s}=ht(),{Symbol:r}=Ge(),{kDestroyed:o,isDestroyed:n,isFinished:a,isServerRequest:f}=Mt(),p=r("kDestroy"),g=r("kConstruct");function m(T,K,re){T&&(T.stack,K&&!K.errored&&(K.errored=T),re&&!re.errored&&(re.errored=T))}function b(T,K){let re=this._readableState,J=this._writableState,_e=J||re;return J!=null&&J.destroyed||re!=null&&re.destroyed?(typeof K=="function"&&K(),this):(m(T,J,re),J&&(J.destroyed=!0),re&&(re.destroyed=!0),_e.constructed?v(this,T,K):this.once(p,function(he){v(this,l(he,T),K)}),this)}function v(T,K,re){let J=!1;function _e(he){if(J)return;J=!0;let V=T._readableState,Ae=T._writableState;m(he,Ae,V),Ae&&(Ae.closed=!0),V&&(V.closed=!0),typeof re=="function"&&re(he),he?t.nextTick(C,T,he):t.nextTick(N,T)}try{T._destroy(K||null,_e)}catch(he){_e(he)}}function C(T,K){B(T,K),N(T)}function N(T){let K=T._readableState,re=T._writableState;re&&(re.closeEmitted=!0),K&&(K.closeEmitted=!0),(re!=null&&re.emitClose||K!=null&&K.emitClose)&&T.emit("close")}function B(T,K){let re=T._readableState,J=T._writableState;J!=null&&J.errorEmitted||re!=null&&re.errorEmitted||(J&&(J.errorEmitted=!0),re&&(re.errorEmitted=!0),T.emit("error",K))}function w(){let T=this._readableState,K=this._writableState;T&&(T.constructed=!0,T.closed=!1,T.closeEmitted=!1,T.destroyed=!1,T.errored=null,T.errorEmitted=!1,T.reading=!1,T.ended=T.readable===!1,T.endEmitted=T.readable===!1),K&&(K.constructed=!0,K.destroyed=!1,K.closed=!1,K.closeEmitted=!1,K.errored=null,K.errorEmitted=!1,K.finalCalled=!1,K.prefinished=!1,K.ended=K.writable===!1,K.ending=K.writable===!1,K.finished=K.writable===!1)}function U(T,K,re){let J=T._readableState,_e=T._writableState;if(_e!=null&&_e.destroyed||J!=null&&J.destroyed)return this;J!=null&&J.autoDestroy||_e!=null&&_e.autoDestroy?T.destroy(K):K&&(K.stack,_e&&!_e.errored&&(_e.errored=K),J&&!J.errored&&(J.errored=K),re?t.nextTick(B,T,K):B(T,K))}function q(T,K){if(typeof T._construct!="function")return;let re=T._readableState,J=T._writableState;re&&(re.constructed=!1),J&&(J.constructed=!1),T.once(g,K),!(T.listenerCount(g)>1)&&t.nextTick(I,T)}function I(T){let K=!1;function re(J){if(K){U(T,J??new h);return}K=!0;let _e=T._readableState,he=T._writableState,V=he||_e;_e&&(_e.constructed=!0),he&&(he.constructed=!0),V.destroyed?T.emit(p,J):J?U(T,J,!0):t.nextTick(k,T)}try{T._construct(J=>{t.nextTick(re,J)})}catch(J){t.nextTick(re,J)}}function k(T){T.emit(g)}function R(T){return T?.setHeader&&typeof T.abort=="function"}function Q(T){T.emit("close")}function te(T,K){T.emit("error",K),t.nextTick(Q,T)}function se(T,K){!T||n(T)||(!K&&!a(T)&&(K=new s),f(T)?(T.socket=null,T.destroy(K)):R(T)?T.abort():R(T.req)?T.req.abort():typeof T.destroy=="function"?T.destroy(K):typeof T.close=="function"?T.close():K?t.nextTick(te,T,K):t.nextTick(Q,T),T.destroyed||(T[o]=!0))}i.exports={construct:q,destroyer:se,destroy:b,undestroy:w,errorOrDestroy:U}});function We(){We.init.call(this)}function xr(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Zo(e){return e._maxListeners===void 0?We.defaultMaxListeners:e._maxListeners}function Ji(e,i,t,l){var h,s,r,o;if(xr(t),(s=e._events)===void 0?(s=e._events=Object.create(null),e._eventsCount=0):(s.newListener!==void 0&&(e.emit("newListener",i,t.listener?t.listener:t),s=e._events),r=s[i]),r===void 0)r=s[i]=t,++e._eventsCount;else if(typeof r=="function"?r=s[i]=l?[t,r]:[r,t]:l?r.unshift(t):r.push(t),(h=Zo(e))>0&&r.length>h&&!r.warned){r.warned=!0;var n=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(i)+" listeners added. Use emitter.setMaxListeners() to increase limit");n.name="MaxListenersExceededWarning",n.emitter=e,n.type=i,n.count=r.length,o=n,console&&console.warn&&console.warn(o)}return e}function kl(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Zi(e,i,t){var l={fired:!1,wrapFn:void 0,target:e,type:i,listener:t},h=kl.bind(l);return h.listener=t,l.wrapFn=h,h}function Xi(e,i,t){var l=e._events;if(l===void 0)return[];var h=l[i];return h===void 0?[]:typeof h=="function"?t?[h.listener||h]:[h]:t?function(s){for(var r=new Array(s.length),o=0;o{de(),ge(),pe(),Vt=typeof Reflect=="object"?Reflect:null,Zr=Vt&&typeof Vt.apply=="function"?Vt.apply:function(e,i,t){return Function.prototype.apply.call(e,i,t)},ro=Vt&&typeof Vt.ownKeys=="function"?Vt.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},Xr=Number.isNaN||function(e){return e!=e},to=We,We.EventEmitter=We,We.prototype._events=void 0,We.prototype._eventsCount=0,We.prototype._maxListeners=void 0,en=10,Object.defineProperty(We,"defaultMaxListeners",{enumerable:!0,get:function(){return en},set:function(e){if(typeof e!="number"||e<0||Xr(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");en=e}}),We.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},We.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Xr(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},We.prototype.getMaxListeners=function(){return Zo(this)},We.prototype.emit=function(e){for(var i=[],t=1;t0&&(s=i[0]),s instanceof Error)throw s;var r=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw r.context=s,r}var o=h[e];if(o===void 0)return!1;if(typeof o=="function")Zr(o,this,i);else{var n=o.length,a=Xo(o,n);for(t=0;t=0;s--)if(t[s]===i||t[s].listener===i){r=t[s].listener,h=s;break}if(h<0)return this;h===0?t.shift():function(o,n){for(;n+1=0;l--)this.removeListener(e,i[l]);return this},We.prototype.listeners=function(e){return Xi(this,e,!0)},We.prototype.rawListeners=function(e){return Xi(this,e,!1)},We.listenerCount=function(e,i){return typeof e.listenerCount=="function"?e.listenerCount(i):eo.call(e,i)},We.prototype.listenerCount=eo,We.prototype.eventNames=function(){return this._eventsCount>0?ro(this._events):[]},ft=to,ft.EventEmitter,ft.defaultMaxListeners,ft.init,ft.listenerCount,ft.EventEmitter,ft.defaultMaxListeners,ft.init,ft.listenerCount}),or={};nr(or,{EventEmitter:()=>es,default:()=>ft,defaultMaxListeners:()=>ts,init:()=>rs,listenerCount:()=>ns,on:()=>is,once:()=>os});var es,ts,rs,ns,is,os,cr=tt(()=>{de(),ge(),pe(),no(),no(),ft.once=function(e,i){return new Promise((t,l)=>{function h(...r){s!==void 0&&e.removeListener("error",s),t(r)}let s;i!=="error"&&(s=r=>{e.removeListener(name,h),l(r)},e.once("error",s)),e.once(i,h)})},ft.on=function(e,i){let t=[],l=[],h=null,s=!1,r={async next(){let a=t.shift();if(a)return createIterResult(a,!1);if(h){let f=Promise.reject(h);return h=null,f}return s?createIterResult(void 0,!0):new Promise((f,p)=>l.push({resolve:f,reject:p}))},async return(){e.removeListener(i,o),e.removeListener("error",n),s=!0;for(let a of l)a.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(a){h=a,e.removeListener(i,o),e.removeListener("error",n)},[Symbol.asyncIterator](){return this}};return e.on(i,o),e.on("error",n),r;function o(...a){let f=l.shift();f?f.resolve(createIterResult(a,!1)):t.push(a)}function n(a){s=!0;let f=l.shift();f?f.reject(a):h=a,r.return()}},{EventEmitter:es,defaultMaxListeners:ts,init:rs,listenerCount:ns,on:is,once:os}=ft}),Ni=Se((e,i)=>{de(),ge(),pe();var{ArrayIsArray:t,ObjectSetPrototypeOf:l}=Ge(),{EventEmitter:h}=(cr(),De(or));function s(o){h.call(this,o)}l(s.prototype,h.prototype),l(s,h),s.prototype.pipe=function(o,n){let a=this;function f(N){o.writable&&o.write(N)===!1&&a.pause&&a.pause()}a.on("data",f);function p(){a.readable&&a.resume&&a.resume()}o.on("drain",p),!o._isStdio&&(!n||n.end!==!1)&&(a.on("end",m),a.on("close",b));let g=!1;function m(){g||(g=!0,o.end())}function b(){g||(g=!0,typeof o.destroy=="function"&&o.destroy())}function v(N){C(),h.listenerCount(this,"error")===0&&this.emit("error",N)}r(a,"error",v),r(o,"error",v);function C(){a.removeListener("data",f),o.removeListener("drain",p),a.removeListener("end",m),a.removeListener("close",b),a.removeListener("error",v),o.removeListener("error",v),a.removeListener("end",C),a.removeListener("close",C),o.removeListener("close",C)}return a.on("end",C),a.on("close",C),o.on("close",C),o.emit("pipe",a),o};function r(o,n,a){if(typeof o.prependListener=="function")return o.prependListener(n,a);!o._events||!o._events[n]?o.on(n,a):t(o._events[n])?o._events[n].unshift(a):o._events[n]=[a,o._events[n]]}i.exports={Stream:s,prependListener:r}}),Hr=Se((e,i)=>{de(),ge(),pe();var{AbortError:t,codes:l}=ht(),{isNodeStream:h,isWebStream:s,kControllerErrorFunction:r}=Mt(),o=$t(),{ERR_INVALID_ARG_TYPE:n}=l,a=(f,p)=>{if(typeof f!="object"||!("aborted"in f))throw new n(p,"AbortSignal",f)};i.exports.addAbortSignal=function(f,p){if(a(f,"signal"),!h(p)&&!s(p))throw new n("stream",["ReadableStream","WritableStream","Stream"],p);return i.exports.addAbortSignalNoValidate(f,p)},i.exports.addAbortSignalNoValidate=function(f,p){if(typeof f!="object"||!("aborted"in f))return p;let g=h(p)?()=>{p.destroy(new t(void 0,{cause:f.reason}))}:()=>{p[r](new t(void 0,{cause:f.reason}))};return f.aborted?g():(f.addEventListener("abort",g),o(p,()=>f.removeEventListener("abort",g))),p}}),Il=Se((e,i)=>{de(),ge(),pe();var{StringPrototypeSlice:t,SymbolIterator:l,TypedArrayPrototypeSet:h,Uint8Array:s}=Ge(),{Buffer:r}=(nt(),De(rt)),{inspect:o}=Pt();i.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(n){let a={data:n,next:null};this.length>0?this.tail.next=a:this.head=a,this.tail=a,++this.length}unshift(n){let a={data:n,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}shift(){if(this.length===0)return;let n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}clear(){this.head=this.tail=null,this.length=0}join(n){if(this.length===0)return"";let a=this.head,f=""+a.data;for(;(a=a.next)!==null;)f+=n+a.data;return f}concat(n){if(this.length===0)return r.alloc(0);let a=r.allocUnsafe(n>>>0),f=this.head,p=0;for(;f;)h(a,f.data,p),p+=f.data.length,f=f.next;return a}consume(n,a){let f=this.head.data;if(ng.length)a+=g,n-=g.length;else{n===g.length?(a+=g,++p,f.next?this.head=f.next:this.head=this.tail=null):(a+=t(g,0,n),this.head=f,f.data=t(g,n));break}++p}while((f=f.next)!==null);return this.length-=p,a}_getBuffer(n){let a=r.allocUnsafe(n),f=n,p=this.head,g=0;do{let m=p.data;if(n>m.length)h(a,m,f-n),n-=m.length;else{n===m.length?(h(a,m,f-n),++g,p.next?this.head=p.next:this.head=this.tail=null):(h(a,new s(m.buffer,m.byteOffset,n),f-n),this.head=p,p.data=m.slice(n));break}++g}while((p=p.next)!==null);return this.length-=g,a}[Symbol.for("nodejs.util.inspect.custom")](n,a){return o(this,{...a,depth:0,customInspect:!1})}}}),Wi=Se((e,i)=>{de(),ge(),pe();var{MathFloor:t,NumberIsInteger:l}=Ge(),{ERR_INVALID_ARG_VALUE:h}=ht().codes;function s(n,a,f){return n.highWaterMark!=null?n.highWaterMark:a?n[f]:null}function r(n){return n?16:16*1024}function o(n,a,f,p){let g=s(a,p,f);if(g!=null){if(!l(g)||g<0){let m=p?`options.${f}`:"options.highWaterMark";throw new h(m,g)}return t(g)}return r(n.objectMode)}i.exports={getHighWaterMark:o,getDefaultHighWaterMark:r}});function io(e){var i=e.length;if(i%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");return t===-1&&(t=i),[t,t===i?0:4-t%4]}function Tl(e,i,t){for(var l,h,s=[],r=i;r>18&63]+yt[h>>12&63]+yt[h>>6&63]+yt[63&h]);return s.join("")}function Ot(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var i=new Uint8Array(e);return Object.setPrototypeOf(i,ye.prototype),i}function ye(e,i,t){if(typeof e=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return yi(e)}return ss(e,i,t)}function ss(e,i,t){if(typeof e=="string")return function(s,r){if(typeof r=="string"&&r!==""||(r="utf8"),!ye.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var o=0|ls(s,r),n=Ot(o),a=n.write(s,r);return a!==o&&(n=n.slice(0,a)),n}(e,i);if(ArrayBuffer.isView(e))return tn(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Bt(e,ArrayBuffer)||e&&Bt(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Bt(e,SharedArrayBuffer)||e&&Bt(e.buffer,SharedArrayBuffer)))return Ol(e,i,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var l=e.valueOf&&e.valueOf();if(l!=null&&l!==e)return ye.from(l,i,t);var h=function(s){if(ye.isBuffer(s)){var r=0|Di(s.length),o=Ot(r);return o.length===0||s.copy(o,0,0,r),o}if(s.length!==void 0)return typeof s.length!="number"||Fi(s.length)?Ot(0):tn(s);if(s.type==="Buffer"&&Array.isArray(s.data))return tn(s.data)}(e);if(h)return h;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ye.from(e[Symbol.toPrimitive]("string"),i,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function as(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function yi(e){return as(e),Ot(e<0?0:0|Di(e))}function tn(e){for(var i=e.length<0?0:0|Di(e.length),t=Ot(i),l=0;l=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function ls(e,i){if(ye.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Bt(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,l=arguments.length>2&&arguments[2]===!0;if(!l&&t===0)return 0;for(var h=!1;;)switch(i){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return vi(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return fs(e).length;default:if(h)return l?-1:vi(e).length;i=(""+i).toLowerCase(),h=!0}}function Bl(e,i,t){var l=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0)<=(i>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Wl(this,i,t);case"utf8":case"utf-8":return hs(this,i,t);case"ascii":return Ll(this,i,t);case"latin1":case"binary":return Nl(this,i,t);case"base64":return Ul(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Dl(this,i,t);default:if(l)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),l=!0}}function Ht(e,i,t){var l=e[i];e[i]=e[t],e[t]=l}function oo(e,i,t,l,h){if(e.length===0)return-1;if(typeof t=="string"?(l=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),Fi(t=+t)&&(t=h?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(h)return-1;t=e.length-1}else if(t<0){if(!h)return-1;t=0}if(typeof i=="string"&&(i=ye.from(i,l)),ye.isBuffer(i))return i.length===0?-1:so(e,i,t,l,h);if(typeof i=="number")return i&=255,typeof Uint8Array.prototype.indexOf=="function"?h?Uint8Array.prototype.indexOf.call(e,i,t):Uint8Array.prototype.lastIndexOf.call(e,i,t):so(e,[i],t,l,h);throw new TypeError("val must be string, number or Buffer")}function so(e,i,t,l,h){var s,r=1,o=e.length,n=i.length;if(l!==void 0&&((l=String(l).toLowerCase())==="ucs2"||l==="ucs-2"||l==="utf16le"||l==="utf-16le")){if(e.length<2||i.length<2)return-1;r=2,o/=2,n/=2,t/=2}function a(m,b){return r===1?m[b]:m.readUInt16BE(b*r)}if(h){var f=-1;for(s=t;so&&(t=o-n),s=t;s>=0;s--){for(var p=!0,g=0;gh&&(l=h):l=h;var s=i.length;l>s/2&&(l=s/2);for(var r=0;r>8,n=r%256,a.push(n),a.push(o);return a}(i,e.length-t),e,t,l)}function Ul(e,i,t){return i===0&&t===e.length?Dr.fromByteArray(e):Dr.fromByteArray(e.slice(i,t))}function hs(e,i,t){t=Math.min(e.length,t);for(var l=[],h=i;h239?4:a>223?3:a>191?2:1;if(h+p<=t)switch(p){case 1:a<128&&(f=a);break;case 2:(192&(s=e[h+1]))==128&&(n=(31&a)<<6|63&s)>127&&(f=n);break;case 3:s=e[h+1],r=e[h+2],(192&s)==128&&(192&r)==128&&(n=(15&a)<<12|(63&s)<<6|63&r)>2047&&(n<55296||n>57343)&&(f=n);break;case 4:s=e[h+1],r=e[h+2],o=e[h+3],(192&s)==128&&(192&r)==128&&(192&o)==128&&(n=(15&a)<<18|(63&s)<<12|(63&r)<<6|63&o)>65535&&n<1114112&&(f=n)}f===null?(f=65533,p=1):f>65535&&(f-=65536,l.push(f>>>10&1023|55296),f=56320|1023&f),l.push(f),h+=p}return function(g){var m=g.length;if(m<=4096)return String.fromCharCode.apply(String,g);for(var b="",v=0;vl)&&(t=l);for(var h="",s=i;st)throw new RangeError("Trying to access beyond buffer length")}function ut(e,i,t,l,h,s){if(!ye.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>h||ie.length)throw new RangeError("Index out of range")}function cs(e,i,t,l,h,s){if(t+l>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function ao(e,i,t,l,h){return i=+i,t>>>=0,h||cs(e,0,t,4),Jt.write(e,i,t,l,23,4),t+4}function lo(e,i,t,l,h){return i=+i,t>>>=0,h||cs(e,0,t,8),Jt.write(e,i,t,l,52,8),t+8}function vi(e,i){var t;i=i||1/0;for(var l=e.length,h=null,s=[],r=0;r55295&&t<57344){if(!h){if(t>56319){(i-=3)>-1&&s.push(239,191,189);continue}if(r+1===l){(i-=3)>-1&&s.push(239,191,189);continue}h=t;continue}if(t<56320){(i-=3)>-1&&s.push(239,191,189),h=t;continue}t=65536+(h-55296<<10|t-56320)}else h&&(i-=3)>-1&&s.push(239,191,189);if(h=null,t<128){if((i-=1)<0)break;s.push(t)}else if(t<2048){if((i-=2)<0)break;s.push(t>>6|192,63&t|128)}else if(t<65536){if((i-=3)<0)break;s.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return s}function fs(e){return Dr.toByteArray(function(i){if((i=(i=i.split("=")[0]).trim().replace(ds,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i}(e))}function zr(e,i,t,l){for(var h=0;h=i.length||h>=e.length);++h)i[h+t]=e[h];return h}function Bt(e,i){return e instanceof i||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===i.name}function Fi(e){return e!=e}function uo(e,i){for(var t in e)i[t]=e[t]}function zt(e,i,t){return mt(e,i,t)}function dr(e){var i;switch(this.encoding=function(t){var l=function(h){if(!h)return"utf8";for(var s;;)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(s)return;h=(""+h).toLowerCase(),s=!0}}(t);if(typeof l!="string"&&(Fr.isEncoding===wi||!wi(t)))throw new Error("Unknown encoding: "+t);return l||t}(e),this.encoding){case"utf16le":this.text=$l,this.end=ql,i=4;break;case"utf8":this.fillLast=Fl,i=4;break;case"base64":this.text=Vl,this.end=Hl,i=3;break;default:return this.write=zl,this.end=Kl,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=Fr.allocUnsafe(i)}function rn(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function Fl(e){var i=this.lastTotal-this.lastNeed,t=function(l,h,s){if((192&h[0])!=128)return l.lastNeed=0,"�";if(l.lastNeed>1&&h.length>1){if((192&h[1])!=128)return l.lastNeed=1,"�";if(l.lastNeed>2&&h.length>2&&(192&h[2])!=128)return l.lastNeed=2,"�"}}(this,e);return t!==void 0?t:this.lastNeed<=e.length?(e.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,i,0,e.length),this.lastNeed-=e.length,void 0)}function $l(e,i){if((e.length-i)%2==0){var t=e.toString("utf16le",i);if(t){var l=t.charCodeAt(t.length-1);if(l>=55296&&l<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",i,e.length-1)}function ql(e){var i=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,t)}return i}function Vl(e,i){var t=(e.length-i)%3;return t===0?e.toString("base64",i):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",i,e.length-t))}function Hl(e){var i=e&&e.length?this.write(e):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function zl(e){return e.toString(this.encoding)}function Kl(e){return e&&e.length?this.write(e):""}var ho,yt,ct,co,Cr,Kt,fo,po,vt,Dr,Jt,nn,ds,ps,pr,gr,mt,go,ur,Fr,wi,mo=tt(()=>{for(de(),ge(),pe(),ho={byteLength:function(e){var i=io(e),t=i[0],l=i[1];return 3*(t+l)/4-l},toByteArray:function(e){var i,t,l=io(e),h=l[0],s=l[1],r=new co(function(a,f,p){return 3*(f+p)/4-p}(0,h,s)),o=0,n=s>0?h-4:h;for(t=0;t>16&255,r[o++]=i>>8&255,r[o++]=255&i;return s===2&&(i=ct[e.charCodeAt(t)]<<2|ct[e.charCodeAt(t+1)]>>4,r[o++]=255&i),s===1&&(i=ct[e.charCodeAt(t)]<<10|ct[e.charCodeAt(t+1)]<<4|ct[e.charCodeAt(t+2)]>>2,r[o++]=i>>8&255,r[o++]=255&i),r},fromByteArray:function(e){for(var i,t=e.length,l=t%3,h=[],s=0,r=t-l;sr?r:s+16383));return l===1?(i=e[t-1],h.push(yt[i>>2]+yt[i<<4&63]+"==")):l===2&&(i=(e[t-2]<<8)+e[t-1],h.push(yt[i>>10]+yt[i>>4&63]+yt[i<<2&63]+"=")),h.join("")}},yt=[],ct=[],co=typeof Uint8Array<"u"?Uint8Array:Array,Cr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kt=0,fo=Cr.length;Kt>1,f=-7,p=t?h-1:0,g=t?-1:1,m=e[i+p];for(p+=g,s=m&(1<<-f)-1,m>>=-f,f+=o;f>0;s=256*s+e[i+p],p+=g,f-=8);for(r=s&(1<<-f)-1,s>>=-f,f+=l;f>0;r=256*r+e[i+p],p+=g,f-=8);if(s===0)s=1-a;else{if(s===n)return r?NaN:1/0*(m?-1:1);r+=Math.pow(2,l),s-=a}return(m?-1:1)*r*Math.pow(2,s-l)},write:function(e,i,t,l,h,s){var r,o,n,a=8*s-h-1,f=(1<>1,g=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=l?0:s-1,b=l?1:-1,v=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(o=isNaN(i)?1:0,r=f):(r=Math.floor(Math.log(i)/Math.LN2),i*(n=Math.pow(2,-r))<1&&(r--,n*=2),(i+=r+p>=1?g/n:g*Math.pow(2,1-p))*n>=2&&(r++,n/=2),r+p>=f?(o=0,r=f):r+p>=1?(o=(i*n-1)*Math.pow(2,h),r+=p):(o=i*Math.pow(2,p-1)*Math.pow(2,h),r=0));h>=8;e[t+m]=255&o,m+=b,o/=256,h-=8);for(r=r<0;e[t+m]=255&r,m+=b,r/=256,a-=8);e[t+m-b]|=128*v}},vt={},Dr=ho,Jt=po,nn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,vt.Buffer=ye,vt.SlowBuffer=function(e){return+e!=e&&(e=0),ye.alloc(+e)},vt.INSPECT_MAX_BYTES=50,vt.kMaxLength=2147483647,ye.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(e,i),e.foo()===42}catch{return!1}}(),ye.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(ye.prototype,"parent",{enumerable:!0,get:function(){if(ye.isBuffer(this))return this.buffer}}),Object.defineProperty(ye.prototype,"offset",{enumerable:!0,get:function(){if(ye.isBuffer(this))return this.byteOffset}}),ye.poolSize=8192,ye.from=function(e,i,t){return ss(e,i,t)},Object.setPrototypeOf(ye.prototype,Uint8Array.prototype),Object.setPrototypeOf(ye,Uint8Array),ye.alloc=function(e,i,t){return function(l,h,s){return as(l),l<=0?Ot(l):h!==void 0?typeof s=="string"?Ot(l).fill(h,s):Ot(l).fill(h):Ot(l)}(e,i,t)},ye.allocUnsafe=function(e){return yi(e)},ye.allocUnsafeSlow=function(e){return yi(e)},ye.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==ye.prototype},ye.compare=function(e,i){if(Bt(e,Uint8Array)&&(e=ye.from(e,e.offset,e.byteLength)),Bt(i,Uint8Array)&&(i=ye.from(i,i.offset,i.byteLength)),!ye.isBuffer(e)||!ye.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===i)return 0;for(var t=e.length,l=i.length,h=0,s=Math.min(t,l);hi&&(e+=" ... "),""},nn&&(ye.prototype[nn]=ye.prototype.inspect),ye.prototype.compare=function(e,i,t,l,h){if(Bt(e,Uint8Array)&&(e=ye.from(e,e.offset,e.byteLength)),!ye.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(i===void 0&&(i=0),t===void 0&&(t=e?e.length:0),l===void 0&&(l=0),h===void 0&&(h=this.length),i<0||t>e.length||l<0||h>this.length)throw new RangeError("out of range index");if(l>=h&&i>=t)return 0;if(l>=h)return-1;if(i>=t)return 1;if(this===e)return 0;for(var s=(h>>>=0)-(l>>>=0),r=(t>>>=0)-(i>>>=0),o=Math.min(s,r),n=this.slice(l,h),a=e.slice(i,t),f=0;f>>=0,isFinite(t)?(t>>>=0,l===void 0&&(l="utf8")):(l=t,t=void 0)}var h=this.length-i;if((t===void 0||t>h)&&(t=h),e.length>0&&(t<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");l||(l="utf8");for(var s=!1;;)switch(l){case"hex":return Pl(this,e,i,t);case"utf8":case"utf-8":return Rl(this,e,i,t);case"ascii":return us(this,e,i,t);case"latin1":case"binary":return xl(this,e,i,t);case"base64":return Ml(this,e,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jl(this,e,i,t);default:if(s)throw new TypeError("Unknown encoding: "+l);l=(""+l).toLowerCase(),s=!0}},ye.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},ye.prototype.slice=function(e,i){var t=this.length;(e=~~e)<0?(e+=t)<0&&(e=0):e>t&&(e=t),(i=i===void 0?t:~~i)<0?(i+=t)<0&&(i=0):i>t&&(i=t),i>>=0,i>>>=0,t||Ze(e,i,this.length);for(var l=this[e],h=1,s=0;++s>>=0,i>>>=0,t||Ze(e,i,this.length);for(var l=this[e+--i],h=1;i>0&&(h*=256);)l+=this[e+--i]*h;return l},ye.prototype.readUInt8=function(e,i){return e>>>=0,i||Ze(e,1,this.length),this[e]},ye.prototype.readUInt16LE=function(e,i){return e>>>=0,i||Ze(e,2,this.length),this[e]|this[e+1]<<8},ye.prototype.readUInt16BE=function(e,i){return e>>>=0,i||Ze(e,2,this.length),this[e]<<8|this[e+1]},ye.prototype.readUInt32LE=function(e,i){return e>>>=0,i||Ze(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ye.prototype.readUInt32BE=function(e,i){return e>>>=0,i||Ze(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ye.prototype.readIntLE=function(e,i,t){e>>>=0,i>>>=0,t||Ze(e,i,this.length);for(var l=this[e],h=1,s=0;++s=(h*=128)&&(l-=Math.pow(2,8*i)),l},ye.prototype.readIntBE=function(e,i,t){e>>>=0,i>>>=0,t||Ze(e,i,this.length);for(var l=i,h=1,s=this[e+--l];l>0&&(h*=256);)s+=this[e+--l]*h;return s>=(h*=128)&&(s-=Math.pow(2,8*i)),s},ye.prototype.readInt8=function(e,i){return e>>>=0,i||Ze(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ye.prototype.readInt16LE=function(e,i){e>>>=0,i||Ze(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},ye.prototype.readInt16BE=function(e,i){e>>>=0,i||Ze(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},ye.prototype.readInt32LE=function(e,i){return e>>>=0,i||Ze(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ye.prototype.readInt32BE=function(e,i){return e>>>=0,i||Ze(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ye.prototype.readFloatLE=function(e,i){return e>>>=0,i||Ze(e,4,this.length),Jt.read(this,e,!0,23,4)},ye.prototype.readFloatBE=function(e,i){return e>>>=0,i||Ze(e,4,this.length),Jt.read(this,e,!1,23,4)},ye.prototype.readDoubleLE=function(e,i){return e>>>=0,i||Ze(e,8,this.length),Jt.read(this,e,!0,52,8)},ye.prototype.readDoubleBE=function(e,i){return e>>>=0,i||Ze(e,8,this.length),Jt.read(this,e,!1,52,8)},ye.prototype.writeUIntLE=function(e,i,t,l){e=+e,i>>>=0,t>>>=0,l||ut(this,e,i,t,Math.pow(2,8*t)-1,0);var h=1,s=0;for(this[i]=255&e;++s>>=0,t>>>=0,l||ut(this,e,i,t,Math.pow(2,8*t)-1,0);var h=t-1,s=1;for(this[i+h]=255&e;--h>=0&&(s*=256);)this[i+h]=e/s&255;return i+t},ye.prototype.writeUInt8=function(e,i,t){return e=+e,i>>>=0,t||ut(this,e,i,1,255,0),this[i]=255&e,i+1},ye.prototype.writeUInt16LE=function(e,i,t){return e=+e,i>>>=0,t||ut(this,e,i,2,65535,0),this[i]=255&e,this[i+1]=e>>>8,i+2},ye.prototype.writeUInt16BE=function(e,i,t){return e=+e,i>>>=0,t||ut(this,e,i,2,65535,0),this[i]=e>>>8,this[i+1]=255&e,i+2},ye.prototype.writeUInt32LE=function(e,i,t){return e=+e,i>>>=0,t||ut(this,e,i,4,4294967295,0),this[i+3]=e>>>24,this[i+2]=e>>>16,this[i+1]=e>>>8,this[i]=255&e,i+4},ye.prototype.writeUInt32BE=function(e,i,t){return e=+e,i>>>=0,t||ut(this,e,i,4,4294967295,0),this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e,i+4},ye.prototype.writeIntLE=function(e,i,t,l){if(e=+e,i>>>=0,!l){var h=Math.pow(2,8*t-1);ut(this,e,i,t,h-1,-h)}var s=0,r=1,o=0;for(this[i]=255&e;++s>0)-o&255;return i+t},ye.prototype.writeIntBE=function(e,i,t,l){if(e=+e,i>>>=0,!l){var h=Math.pow(2,8*t-1);ut(this,e,i,t,h-1,-h)}var s=t-1,r=1,o=0;for(this[i+s]=255&e;--s>=0&&(r*=256);)e<0&&o===0&&this[i+s+1]!==0&&(o=1),this[i+s]=(e/r>>0)-o&255;return i+t},ye.prototype.writeInt8=function(e,i,t){return e=+e,i>>>=0,t||ut(this,e,i,1,127,-128),e<0&&(e=255+e+1),this[i]=255&e,i+1},ye.prototype.writeInt16LE=function(e,i,t){return e=+e,i>>>=0,t||ut(this,e,i,2,32767,-32768),this[i]=255&e,this[i+1]=e>>>8,i+2},ye.prototype.writeInt16BE=function(e,i,t){return e=+e,i>>>=0,t||ut(this,e,i,2,32767,-32768),this[i]=e>>>8,this[i+1]=255&e,i+2},ye.prototype.writeInt32LE=function(e,i,t){return e=+e,i>>>=0,t||ut(this,e,i,4,2147483647,-2147483648),this[i]=255&e,this[i+1]=e>>>8,this[i+2]=e>>>16,this[i+3]=e>>>24,i+4},ye.prototype.writeInt32BE=function(e,i,t){return e=+e,i>>>=0,t||ut(this,e,i,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e,i+4},ye.prototype.writeFloatLE=function(e,i,t){return ao(this,e,i,!0,t)},ye.prototype.writeFloatBE=function(e,i,t){return ao(this,e,i,!1,t)},ye.prototype.writeDoubleLE=function(e,i,t){return lo(this,e,i,!0,t)},ye.prototype.writeDoubleBE=function(e,i,t){return lo(this,e,i,!1,t)},ye.prototype.copy=function(e,i,t,l){if(!ye.isBuffer(e))throw new TypeError("argument should be a Buffer");if(t||(t=0),l||l===0||(l=this.length),i>=e.length&&(i=e.length),i||(i=0),l>0&&l=this.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("sourceEnd out of bounds");l>this.length&&(l=this.length),e.length-i=0;--s)e[s+i]=this[s+t];else Uint8Array.prototype.set.call(e,this.subarray(t,l),i);return h},ye.prototype.fill=function(e,i,t,l){if(typeof e=="string"){if(typeof i=="string"?(l=i,i=0,t=this.length):typeof t=="string"&&(l=t,t=this.length),l!==void 0&&typeof l!="string")throw new TypeError("encoding must be a string");if(typeof l=="string"&&!ye.isEncoding(l))throw new TypeError("Unknown encoding: "+l);if(e.length===1){var h=e.charCodeAt(0);(l==="utf8"&&h<128||l==="latin1")&&(e=h)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(i<0||this.length>>=0,t=t===void 0?this.length:t>>>0,e||(e=0),typeof e=="number")for(s=i;s=0?(n>0&&(h.lastNeed=n-1),n):--o=0?(n>0&&(h.lastNeed=n-2),n):--o=0?(n>0&&(n===2?n=0:h.lastNeed=n-3),n):0}(this,e,i);if(!this.lastNeed)return e.toString("utf8",i);this.lastTotal=t;var l=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,l),e.toString("utf8",i,l)},dr.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},ur.StringDecoder,ur.StringDecoder}),gs={};nr(gs,{StringDecoder:()=>ms,default:()=>ur});var ms,Yl=tt(()=>{de(),ge(),pe(),mo(),mo(),ms=ur.StringDecoder}),bs=Se((e,i)=>{de(),ge(),pe();var t=ir(),{PromisePrototypeThen:l,SymbolAsyncIterator:h,SymbolIterator:s}=Ge(),{Buffer:r}=(nt(),De(rt)),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_NULL_VALUES:n}=ht().codes;function a(f,p,g){let m;if(typeof p=="string"||p instanceof r)return new f({objectMode:!0,...g,read(){this.push(p),this.push(null)}});let b;if(p&&p[h])b=!0,m=p[h]();else if(p&&p[s])b=!1,m=p[s]();else throw new o("iterable",["Iterable"],p);let v=new f({objectMode:!0,highWaterMark:1,...g}),C=!1;v._read=function(){C||(C=!0,B())},v._destroy=function(w,U){l(N(w),()=>t.nextTick(U,w),q=>t.nextTick(U,q||w))};async function N(w){let U=w!=null,q=typeof m.throw=="function";if(U&&q){let{value:I,done:k}=await m.throw(w);if(await I,k)return}if(typeof m.return=="function"){let{value:I}=await m.return();await I}}async function B(){for(;;){try{let{value:w,done:U}=b?await m.next():m.next();if(U)v.push(null);else{let q=w&&typeof w.then=="function"?await w:w;if(q===null)throw C=!1,new n;if(v.push(q))continue;C=!1}}catch(w){v.destroy(w)}break}}return v}i.exports=a}),Kr=Se((e,i)=>{de(),ge(),pe();var t=ir(),{ArrayPrototypeIndexOf:l,NumberIsInteger:h,NumberIsNaN:s,NumberParseInt:r,ObjectDefineProperties:o,ObjectKeys:n,ObjectSetPrototypeOf:a,Promise:f,SafeSet:p,SymbolAsyncIterator:g,Symbol:m}=Ge();i.exports=O,O.ReadableState=X;var{EventEmitter:b}=(cr(),De(or)),{Stream:v,prependListener:C}=Ni(),{Buffer:N}=(nt(),De(rt)),{addAbortSignal:B}=Hr(),w=$t(),U=Pt().debuglog("stream",u=>{U=u}),q=Il(),I=hr(),{getHighWaterMark:k,getDefaultHighWaterMark:R}=Wi(),{aggregateTwoErrors:Q,codes:{ERR_INVALID_ARG_TYPE:te,ERR_METHOD_NOT_IMPLEMENTED:se,ERR_OUT_OF_RANGE:T,ERR_STREAM_PUSH_AFTER_EOF:K,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:re}}=ht(),{validateObject:J}=Vr(),_e=m("kPaused"),{StringDecoder:he}=(Yl(),De(gs)),V=bs();a(O.prototype,v.prototype),a(O,v);var Ae=()=>{},{errorOrDestroy:ie}=I;function X(u,d,_){typeof _!="boolean"&&(_=d instanceof Rt()),this.objectMode=!!(u&&u.objectMode),_&&(this.objectMode=this.objectMode||!!(u&&u.readableObjectMode)),this.highWaterMark=u?k(this,u,"readableHighWaterMark",_):R(!1),this.buffer=new q,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[_e]=null,this.errorEmitted=!1,this.emitClose=!u||u.emitClose!==!1,this.autoDestroy=!u||u.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=u&&u.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,u&&u.encoding&&(this.decoder=new he(u.encoding),this.encoding=u.encoding)}function O(u){if(!(this instanceof O))return new O(u);let d=this instanceof Rt();this._readableState=new X(u,this,d),u&&(typeof u.read=="function"&&(this._read=u.read),typeof u.destroy=="function"&&(this._destroy=u.destroy),typeof u.construct=="function"&&(this._construct=u.construct),u.signal&&!d&&B(u.signal,this)),v.call(this,u),I.construct(this,()=>{this._readableState.needReadable&&ae(this,this._readableState)})}O.prototype.destroy=I.destroy,O.prototype._undestroy=I.undestroy,O.prototype._destroy=function(u,d){d(u)},O.prototype[b.captureRejectionSymbol]=function(u){this.destroy(u)},O.prototype.push=function(u,d){return G(this,u,d,!1)},O.prototype.unshift=function(u,d){return G(this,u,d,!0)};function G(u,d,_,P){U("readableAddChunk",d);let D=u._readableState,ce;if(D.objectMode||(typeof d=="string"?(_=_||D.defaultEncoding,D.encoding!==_&&(P&&D.encoding?d=N.from(d,_).toString(D.encoding):(d=N.from(d,_),_=""))):d instanceof N?_="":v._isUint8Array(d)?(d=v._uint8ArrayToBuffer(d),_=""):d!=null&&(ce=new te("chunk",["string","Buffer","Uint8Array"],d))),ce)ie(u,ce);else if(d===null)D.reading=!1,A(u,D);else if(D.objectMode||d&&d.length>0)if(P)if(D.endEmitted)ie(u,new re);else{if(D.destroyed||D.errored)return!1;ve(u,D,d,!0)}else if(D.ended)ie(u,new K);else{if(D.destroyed||D.errored)return!1;D.reading=!1,D.decoder&&!_?(d=D.decoder.write(d),D.objectMode||d.length!==0?ve(u,D,d,!1):ae(u,D)):ve(u,D,d,!1)}else P||(D.reading=!1,ae(u,D));return!D.ended&&(D.length0?(d.multiAwaitDrain?d.awaitDrainWriters.clear():d.awaitDrainWriters=null,d.dataEmitted=!0,u.emit("data",_)):(d.length+=d.objectMode?1:_.length,P?d.buffer.unshift(_):d.buffer.push(_),d.needReadable&&Y(u)),ae(u,d)}O.prototype.isPaused=function(){let u=this._readableState;return u[_e]===!0||u.flowing===!1},O.prototype.setEncoding=function(u){let d=new he(u);this._readableState.decoder=d,this._readableState.encoding=this._readableState.decoder.encoding;let _=this._readableState.buffer,P="";for(let D of _)P+=d.write(D);return _.clear(),P!==""&&_.push(P),this._readableState.length=P.length,this};var ke=1073741824;function le(u){if(u>ke)throw new T("size","<= 1GiB",u);return u--,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u++,u}function W(u,d){return u<=0||d.length===0&&d.ended?0:d.objectMode?1:s(u)?d.flowing&&d.length?d.buffer.first().length:d.length:u<=d.length?u:d.ended?d.length:0}O.prototype.read=function(u){U("read",u),u===void 0?u=NaN:h(u)||(u=r(u,10));let d=this._readableState,_=u;if(u>d.highWaterMark&&(d.highWaterMark=le(u)),u!==0&&(d.emittedReadable=!1),u===0&&d.needReadable&&((d.highWaterMark!==0?d.length>=d.highWaterMark:d.length>0)||d.ended))return U("read: emitReadable",d.length,d.ended),d.length===0&&d.ended?j(this):Y(this),null;if(u=W(u,d),u===0&&d.ended)return d.length===0&&j(this),null;let P=d.needReadable;if(U("need readable",P),(d.length===0||d.length-u0?D=S(u,d):D=null,D===null?(d.needReadable=d.length<=d.highWaterMark,u=0):(d.length-=u,d.multiAwaitDrain?d.awaitDrainWriters.clear():d.awaitDrainWriters=null),d.length===0&&(d.ended||(d.needReadable=!0),_!==u&&d.ended&&j(this)),D!==null&&!d.errorEmitted&&!d.closeEmitted&&(d.dataEmitted=!0,this.emit("data",D)),D};function A(u,d){if(U("onEofChunk"),!d.ended){if(d.decoder){let _=d.decoder.end();_&&_.length&&(d.buffer.push(_),d.length+=d.objectMode?1:_.length)}d.ended=!0,d.sync?Y(u):(d.needReadable=!1,d.emittedReadable=!0,fe(u))}}function Y(u){let d=u._readableState;U("emitReadable",d.needReadable,d.emittedReadable),d.needReadable=!1,d.emittedReadable||(U("emitReadable",d.flowing),d.emittedReadable=!0,t.nextTick(fe,u))}function fe(u){let d=u._readableState;U("emitReadable_",d.destroyed,d.length,d.ended),!d.destroyed&&!d.errored&&(d.length||d.ended)&&(u.emit("readable"),d.emittedReadable=!1),d.needReadable=!d.flowing&&!d.ended&&d.length<=d.highWaterMark,ue(u)}function ae(u,d){!d.readingMore&&d.constructed&&(d.readingMore=!0,t.nextTick(ne,u,d))}function ne(u,d){for(;!d.reading&&!d.ended&&(d.length1&&P.pipes.includes(u)&&(U("false write response, pause",P.awaitDrainWriters.size),P.awaitDrainWriters.add(u)),_.pause()),Me||(Me=Ee(_,u),u.on("drain",Me))}_.on("data",Ye);function Ye(Je){U("ondata");let at=u.write(Je);U("dest.write",at),at===!1&&Be()}function Qe(Je){if(U("onerror",Je),xe(),u.removeListener("error",Qe),u.listenerCount("error")===0){let at=u._writableState||u._readableState;at&&!at.errorEmitted?ie(u,Je):u.emit("error",Je)}}C(u,"error",Qe);function Ve(){u.removeListener("finish",Xe),xe()}u.once("close",Ve);function Xe(){U("onfinish"),u.removeListener("close",Ve),xe()}u.once("finish",Xe);function xe(){U("unpipe"),_.unpipe(u)}return u.emit("pipe",_),u.writableNeedDrain===!0?P.flowing&&Be():P.flowing||(U("pipe resume"),_.resume()),u};function Ee(u,d){return function(){let _=u._readableState;_.awaitDrainWriters===d?(U("pipeOnDrain",1),_.awaitDrainWriters=null):_.multiAwaitDrain&&(U("pipeOnDrain",_.awaitDrainWriters.size),_.awaitDrainWriters.delete(d)),(!_.awaitDrainWriters||_.awaitDrainWriters.size===0)&&u.listenerCount("data")&&u.resume()}}O.prototype.unpipe=function(u){let d=this._readableState,_={hasUnpiped:!1};if(d.pipes.length===0)return this;if(!u){let D=d.pipes;d.pipes=[],this.pause();for(let ce=0;ce0,P.flowing!==!1&&this.resume()):u==="readable"&&!P.endEmitted&&!P.readableListening&&(P.readableListening=P.needReadable=!0,P.flowing=!1,P.emittedReadable=!1,U("on readable",P.length,P.reading),P.length?Y(this):P.reading||t.nextTick(x,this)),_},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(u,d){let _=v.prototype.removeListener.call(this,u,d);return u==="readable"&&t.nextTick(me,this),_},O.prototype.off=O.prototype.removeListener,O.prototype.removeAllListeners=function(u){let d=v.prototype.removeAllListeners.apply(this,arguments);return(u==="readable"||u===void 0)&&t.nextTick(me,this),d};function me(u){let d=u._readableState;d.readableListening=u.listenerCount("readable")>0,d.resumeScheduled&&d[_e]===!1?d.flowing=!0:u.listenerCount("data")>0?u.resume():d.readableListening||(d.flowing=null)}function x(u){U("readable nexttick read 0"),u.read(0)}O.prototype.resume=function(){let u=this._readableState;return u.flowing||(U("resume"),u.flowing=!u.readableListening,F(this,u)),u[_e]=!1,this};function F(u,d){d.resumeScheduled||(d.resumeScheduled=!0,t.nextTick($,u,d))}function $(u,d){U("resume",d.reading),d.reading||u.read(0),d.resumeScheduled=!1,u.emit("resume"),ue(u),d.flowing&&!d.reading&&u.read(0)}O.prototype.pause=function(){return U("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(U("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[_e]=!0,this};function ue(u){let d=u._readableState;for(U("flow",d.flowing);d.flowing&&u.read()!==null;);}O.prototype.wrap=function(u){let d=!1;u.on("data",P=>{!this.push(P)&&u.pause&&(d=!0,u.pause())}),u.on("end",()=>{this.push(null)}),u.on("error",P=>{ie(this,P)}),u.on("close",()=>{this.destroy()}),u.on("destroy",()=>{this.destroy()}),this._read=()=>{d&&u.resume&&(d=!1,u.resume())};let _=n(u);for(let P=1;P<_.length;P++){let D=_[P];this[D]===void 0&&typeof u[D]=="function"&&(this[D]=u[D].bind(u))}return this},O.prototype[g]=function(){return ee(this)},O.prototype.iterator=function(u){return u!==void 0&&J(u,"options"),ee(this,u)};function ee(u,d){typeof u.read!="function"&&(u=O.wrap(u,{objectMode:!0}));let _=L(u,d);return _.stream=u,_}async function*L(u,d){let _=Ae;function P(Pe){this===u?(_(),_=Ae):_=Pe}u.on("readable",P);let D,ce=w(u,{writable:!1},Pe=>{D=Pe?Q(D,Pe):null,_(),_=Ae});try{for(;;){let Pe=u.destroyed?null:u.read();if(Pe!==null)yield Pe;else{if(D)throw D;if(D===null)return;await new f(P)}}}catch(Pe){throw D=Q(D,Pe),D}finally{(D||d?.destroyOnReturn!==!1)&&(D===void 0||u._readableState.autoDestroy)?I.destroyer(u,null):(u.off("readable",P),ce())}}o(O.prototype,{readable:{__proto__:null,get(){let u=this._readableState;return!!u&&u.readable!==!1&&!u.destroyed&&!u.errorEmitted&&!u.endEmitted},set(u){this._readableState&&(this._readableState.readable=!!u)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(u){this._readableState&&(this._readableState.flowing=u)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(u){this._readableState&&(this._readableState.destroyed=u)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),o(X.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[_e]!==!1},set(u){this[_e]=!!u}}}),O._fromList=S;function S(u,d){if(d.length===0)return null;let _;return d.objectMode?_=d.buffer.shift():!u||u>=d.length?(d.decoder?_=d.buffer.join(""):d.buffer.length===1?_=d.buffer.first():_=d.buffer.concat(d.length),d.buffer.clear()):_=d.buffer.consume(u,d.decoder),_}function j(u){let d=u._readableState;U("endReadable",d.endEmitted),d.endEmitted||(d.ended=!0,t.nextTick(z,d,u))}function z(u,d){if(U("endReadableNT",u.endEmitted,u.length),!u.errored&&!u.closeEmitted&&!u.endEmitted&&u.length===0){if(u.endEmitted=!0,d.emit("end"),d.writable&&d.allowHalfOpen===!1)t.nextTick(Z,d);else if(u.autoDestroy){let _=d._writableState;(!_||_.autoDestroy&&(_.finished||_.writable===!1))&&d.destroy()}}}function Z(u){u.writable&&!u.writableEnded&&!u.destroyed&&u.end()}O.from=function(u,d){return V(O,u,d)};var oe;function c(){return oe===void 0&&(oe={}),oe}O.fromWeb=function(u,d){return c().newStreamReadableFromReadableStream(u,d)},O.toWeb=function(u,d){return c().newReadableStreamFromStreamReadable(u,d)},O.wrap=function(u,d){var _,P;return new O({objectMode:(_=(P=u.readableObjectMode)!==null&&P!==void 0?P:u.objectMode)!==null&&_!==void 0?_:!0,...d,destroy(D,ce){I.destroyer(u,D),ce(D)}}).wrap(u)}}),ys=Se((e,i)=>{de(),ge(),pe();var t=ir(),{ArrayPrototypeSlice:l,Error:h,FunctionPrototypeSymbolHasInstance:s,ObjectDefineProperty:r,ObjectDefineProperties:o,ObjectSetPrototypeOf:n,StringPrototypeToLowerCase:a,Symbol:f,SymbolHasInstance:p}=Ge();i.exports=he,he.WritableState=J;var{EventEmitter:g}=(cr(),De(or)),m=Ni().Stream,{Buffer:b}=(nt(),De(rt)),v=hr(),{addAbortSignal:C}=Hr(),{getHighWaterMark:N,getDefaultHighWaterMark:B}=Wi(),{ERR_INVALID_ARG_TYPE:w,ERR_METHOD_NOT_IMPLEMENTED:U,ERR_MULTIPLE_CALLBACK:q,ERR_STREAM_CANNOT_PIPE:I,ERR_STREAM_DESTROYED:k,ERR_STREAM_ALREADY_FINISHED:R,ERR_STREAM_NULL_VALUES:Q,ERR_STREAM_WRITE_AFTER_END:te,ERR_UNKNOWN_ENCODING:se}=ht().codes,{errorOrDestroy:T}=v;n(he.prototype,m.prototype),n(he,m);function K(){}var re=f("kOnFinished");function J(x,F,$){typeof $!="boolean"&&($=F instanceof Rt()),this.objectMode=!!(x&&x.objectMode),$&&(this.objectMode=this.objectMode||!!(x&&x.writableObjectMode)),this.highWaterMark=x?N(this,x,"writableHighWaterMark",$):B(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let ue=!!(x&&x.decodeStrings===!1);this.decodeStrings=!ue,this.defaultEncoding=x&&x.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=O.bind(void 0,F),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,_e(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!x||x.emitClose!==!1,this.autoDestroy=!x||x.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[re]=[]}function _e(x){x.buffered=[],x.bufferedIndex=0,x.allBuffers=!0,x.allNoop=!0}J.prototype.getBuffer=function(){return l(this.buffered,this.bufferedIndex)},r(J.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function he(x){let F=this instanceof Rt();if(!F&&!s(he,this))return new he(x);this._writableState=new J(x,this,F),x&&(typeof x.write=="function"&&(this._write=x.write),typeof x.writev=="function"&&(this._writev=x.writev),typeof x.destroy=="function"&&(this._destroy=x.destroy),typeof x.final=="function"&&(this._final=x.final),typeof x.construct=="function"&&(this._construct=x.construct),x.signal&&C(x.signal,this)),m.call(this,x),v.construct(this,()=>{let $=this._writableState;$.writing||le(this,$),fe(this,$)})}r(he,p,{__proto__:null,value:function(x){return s(this,x)?!0:this!==he?!1:x&&x._writableState instanceof J}}),he.prototype.pipe=function(){T(this,new I)};function V(x,F,$,ue){let ee=x._writableState;if(typeof $=="function")ue=$,$=ee.defaultEncoding;else{if(!$)$=ee.defaultEncoding;else if($!=="buffer"&&!b.isEncoding($))throw new se($);typeof ue!="function"&&(ue=K)}if(F===null)throw new Q;if(!ee.objectMode)if(typeof F=="string")ee.decodeStrings!==!1&&(F=b.from(F,$),$="buffer");else if(F instanceof b)$="buffer";else if(m._isUint8Array(F))F=m._uint8ArrayToBuffer(F),$="buffer";else throw new w("chunk",["string","Buffer","Uint8Array"],F);let L;return ee.ending?L=new te:ee.destroyed&&(L=new k("write")),L?(t.nextTick(ue,L),T(x,L,!0),L):(ee.pendingcb++,Ae(x,ee,F,$,ue))}he.prototype.write=function(x,F,$){return V(this,x,F,$)===!0},he.prototype.cork=function(){this._writableState.corked++},he.prototype.uncork=function(){let x=this._writableState;x.corked&&(x.corked--,x.writing||le(this,x))},he.prototype.setDefaultEncoding=function(x){if(typeof x=="string"&&(x=a(x)),!b.isEncoding(x))throw new se(x);return this._writableState.defaultEncoding=x,this};function Ae(x,F,$,ue,ee){let L=F.objectMode?1:$.length;F.length+=L;let S=F.length$.bufferedIndex&&le(x,$),ue?$.afterWriteTickInfo!==null&&$.afterWriteTickInfo.cb===ee?$.afterWriteTickInfo.count++:($.afterWriteTickInfo={count:1,cb:ee,stream:x,state:$},t.nextTick(G,$.afterWriteTickInfo)):ve(x,$,1,ee))}function G({stream:x,state:F,count:$,cb:ue}){return F.afterWriteTickInfo=null,ve(x,F,$,ue)}function ve(x,F,$,ue){for(!F.ending&&!x.destroyed&&F.length===0&&F.needDrain&&(F.needDrain=!1,x.emit("drain"));$-- >0;)F.pendingcb--,ue();F.destroyed&&ke(F),fe(x,F)}function ke(x){if(x.writing)return;for(let ee=x.bufferedIndex;ee1&&x._writev){F.pendingcb-=L-1;let j=F.allNoop?K:Z=>{for(let oe=S;oe<$.length;++oe)$[oe].callback(Z)},z=F.allNoop&&S===0?$:l($,S);z.allBuffers=F.allBuffers,ie(x,F,!0,F.length,z,"",j),_e(F)}else{do{let{chunk:j,encoding:z,callback:Z}=$[S];$[S++]=null;let oe=ee?1:j.length;ie(x,F,!1,oe,j,z,Z)}while(S<$.length&&!F.writing);S===$.length?_e(F):S>256?($.splice(0,S),F.bufferedIndex=0):F.bufferedIndex=S}F.bufferProcessing=!1}he.prototype._write=function(x,F,$){if(this._writev)this._writev([{chunk:x,encoding:F}],$);else throw new U("_write()")},he.prototype._writev=null,he.prototype.end=function(x,F,$){let ue=this._writableState;typeof x=="function"?($=x,x=null,F=null):typeof F=="function"&&($=F,F=null);let ee;if(x!=null){let L=V(this,x,F);L instanceof h&&(ee=L)}return ue.corked&&(ue.corked=1,this.uncork()),ee||(!ue.errored&&!ue.ending?(ue.ending=!0,fe(this,ue,!0),ue.ended=!0):ue.finished?ee=new R("end"):ue.destroyed&&(ee=new k("end"))),typeof $=="function"&&(ee||ue.finished?t.nextTick($,ee):ue[re].push($)),this};function W(x){return x.ending&&!x.destroyed&&x.constructed&&x.length===0&&!x.errored&&x.buffered.length===0&&!x.finished&&!x.writing&&!x.errorEmitted&&!x.closeEmitted}function A(x,F){let $=!1;function ue(ee){if($){T(x,ee??q());return}if($=!0,F.pendingcb--,ee){let L=F[re].splice(0);for(let S=0;S{W(ee)?ae(ue,ee):ee.pendingcb--},x,F)):W(F)&&(F.pendingcb++,ae(x,F))))}function ae(x,F){F.pendingcb--,F.finished=!0;let $=F[re].splice(0);for(let ue=0;ue<$.length;ue++)$[ue]();if(x.emit("finish"),F.autoDestroy){let ue=x._readableState;(!ue||ue.autoDestroy&&(ue.endEmitted||ue.readable===!1))&&x.destroy()}}o(he.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(x){this._writableState&&(this._writableState.destroyed=x)}},writable:{__proto__:null,get(){let x=this._writableState;return!!x&&x.writable!==!1&&!x.destroyed&&!x.errored&&!x.ending&&!x.ended},set(x){this._writableState&&(this._writableState.writable=!!x)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let x=this._writableState;return x?!x.destroyed&&!x.ending&&x.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var ne=v.destroy;he.prototype.destroy=function(x,F){let $=this._writableState;return!$.destroyed&&($.bufferedIndex<$.buffered.length||$[re].length)&&t.nextTick(ke,$),ne.call(this,x,F),this},he.prototype._undestroy=v.undestroy,he.prototype._destroy=function(x,F){F(x)},he.prototype[g.captureRejectionSymbol]=function(x){this.destroy(x)};var Ee;function me(){return Ee===void 0&&(Ee={}),Ee}he.fromWeb=function(x,F){return me().newStreamWritableFromWritableStream(x,F)},he.toWeb=function(x){return me().newWritableStreamFromStreamWritable(x)}}),Ql=Se((e,i)=>{de(),ge(),pe();var t=ir(),l=(nt(),De(rt)),{isReadable:h,isWritable:s,isIterable:r,isNodeStream:o,isReadableNodeStream:n,isWritableNodeStream:a,isDuplexNodeStream:f}=Mt(),p=$t(),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:m,ERR_INVALID_RETURN_VALUE:b}}=ht(),{destroyer:v}=hr(),C=Rt(),N=Kr(),{createDeferredPromise:B}=Pt(),w=bs(),U=globalThis.Blob||l.Blob,q=typeof U<"u"?function(se){return se instanceof U}:function(se){return!1},I=globalThis.AbortController||Li().AbortController,{FunctionPrototypeCall:k}=Ge(),R=class extends C{constructor(se){super(se),se?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),se?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};i.exports=function se(T,K){if(f(T))return T;if(n(T))return te({readable:T});if(a(T))return te({writable:T});if(o(T))return te({writable:!1,readable:!1});if(typeof T=="function"){let{value:J,write:_e,final:he,destroy:V}=Q(T);if(r(J))return w(R,J,{objectMode:!0,write:_e,final:he,destroy:V});let Ae=J?.then;if(typeof Ae=="function"){let ie,X=k(Ae,J,O=>{if(O!=null)throw new b("nully","body",O)},O=>{v(ie,O)});return ie=new R({objectMode:!0,readable:!1,write:_e,final(O){he(async()=>{try{await X,t.nextTick(O,null)}catch(G){t.nextTick(O,G)}})},destroy:V})}throw new b("Iterable, AsyncIterable or AsyncFunction",K,J)}if(q(T))return se(T.arrayBuffer());if(r(T))return w(R,T,{objectMode:!0,writable:!1});if(typeof T?.writable=="object"||typeof T?.readable=="object"){let J=T!=null&&T.readable?n(T?.readable)?T?.readable:se(T.readable):void 0,_e=T!=null&&T.writable?a(T?.writable)?T?.writable:se(T.writable):void 0;return te({readable:J,writable:_e})}let re=T?.then;if(typeof re=="function"){let J;return k(re,T,_e=>{_e!=null&&J.push(_e),J.push(null)},_e=>{v(J,_e)}),J=new R({objectMode:!0,writable:!1,read(){}})}throw new m(K,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],T)};function Q(se){let{promise:T,resolve:K}=B(),re=new I,J=re.signal;return{value:se(async function*(){for(;;){let _e=T;T=null;let{chunk:he,done:V,cb:Ae}=await _e;if(t.nextTick(Ae),V)return;if(J.aborted)throw new g(void 0,{cause:J.reason});({promise:T,resolve:K}=B()),yield he}}(),{signal:J}),write(_e,he,V){let Ae=K;K=null,Ae({chunk:_e,done:!1,cb:V})},final(_e){let he=K;K=null,he({done:!0,cb:_e})},destroy(_e,he){re.abort(),he(_e)}}}function te(se){let T=se.readable&&typeof se.readable.read!="function"?N.wrap(se.readable):se.readable,K=se.writable,re=!!h(T),J=!!s(K),_e,he,V,Ae,ie;function X(O){let G=Ae;Ae=null,G?G(O):O&&ie.destroy(O)}return ie=new R({readableObjectMode:!!(T!=null&&T.readableObjectMode),writableObjectMode:!!(K!=null&&K.writableObjectMode),readable:re,writable:J}),J&&(p(K,O=>{J=!1,O&&v(T,O),X(O)}),ie._write=function(O,G,ve){K.write(O,G)?ve():_e=ve},ie._final=function(O){K.end(),he=O},K.on("drain",function(){if(_e){let O=_e;_e=null,O()}}),K.on("finish",function(){if(he){let O=he;he=null,O()}})),re&&(p(T,O=>{re=!1,O&&v(T,O),X(O)}),T.on("readable",function(){if(V){let O=V;V=null,O()}}),T.on("end",function(){ie.push(null)}),ie._read=function(){for(;;){let O=T.read();if(O===null){V=ie._read;return}if(!ie.push(O))return}}),ie._destroy=function(O,G){!O&&Ae!==null&&(O=new g),V=null,_e=null,he=null,Ae===null?G(O):(Ae=G,v(K,O),v(T,O))},ie}}),Rt=Se((e,i)=>{de(),ge(),pe();var{ObjectDefineProperties:t,ObjectGetOwnPropertyDescriptor:l,ObjectKeys:h,ObjectSetPrototypeOf:s}=Ge();i.exports=n;var r=Kr(),o=ys();s(n.prototype,r.prototype),s(n,r);{let g=h(o.prototype);for(let m=0;m{de(),ge(),pe();var{ObjectSetPrototypeOf:t,Symbol:l}=Ge();i.exports=n;var{ERR_METHOD_NOT_IMPLEMENTED:h}=ht().codes,s=Rt(),{getHighWaterMark:r}=Wi();t(n.prototype,s.prototype),t(n,s);var o=l("kCallback");function n(p){if(!(this instanceof n))return new n(p);let g=p?r(this,p,"readableHighWaterMark",!0):null;g===0&&(p={...p,highWaterMark:null,readableHighWaterMark:g,writableHighWaterMark:p.writableHighWaterMark||0}),s.call(this,p),this._readableState.sync=!1,this[o]=null,p&&(typeof p.transform=="function"&&(this._transform=p.transform),typeof p.flush=="function"&&(this._flush=p.flush)),this.on("prefinish",f)}function a(p){typeof this._flush=="function"&&!this.destroyed?this._flush((g,m)=>{if(g){p?p(g):this.destroy(g);return}m!=null&&this.push(m),this.push(null),p&&p()}):(this.push(null),p&&p())}function f(){this._final!==a&&a.call(this)}n.prototype._final=a,n.prototype._transform=function(p,g,m){throw new h("_transform()")},n.prototype._write=function(p,g,m){let b=this._readableState,v=this._writableState,C=b.length;this._transform(p,g,(N,B)=>{if(N){m(N);return}B!=null&&this.push(B),v.ended||C===b.length||b.length{de(),ge(),pe();var{ObjectSetPrototypeOf:t}=Ge();i.exports=h;var l=vs();t(h.prototype,l.prototype),t(h,l);function h(s){if(!(this instanceof h))return new h(s);l.call(this,s)}h.prototype._transform=function(s,r,o){o(null,s)}}),$i=Se((e,i)=>{de(),ge(),pe();var t=ir(),{ArrayIsArray:l,Promise:h,SymbolAsyncIterator:s}=Ge(),r=$t(),{once:o}=Pt(),n=hr(),a=Rt(),{aggregateTwoErrors:f,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:g,ERR_MISSING_ARGS:m,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:v},AbortError:C}=ht(),{validateFunction:N,validateAbortSignal:B}=Vr(),{isIterable:w,isReadable:U,isReadableNodeStream:q,isNodeStream:I,isTransformStream:k,isWebStream:R,isReadableStream:Q,isReadableEnded:te}=Mt(),se=globalThis.AbortController||Li().AbortController,T,K;function re(G,ve,ke){let le=!1;G.on("close",()=>{le=!0});let W=r(G,{readable:ve,writable:ke},A=>{le=!A});return{destroy:A=>{le||(le=!0,n.destroyer(G,A||new b("pipe")))},cleanup:W}}function J(G){return N(G[G.length-1],"streams[stream.length - 1]"),G.pop()}function _e(G){if(w(G))return G;if(q(G))return he(G);throw new p("val",["Readable","Iterable","AsyncIterable"],G)}async function*he(G){K||(K=Kr()),yield*K.prototype[s].call(G)}async function V(G,ve,ke,{end:le}){let W,A=null,Y=ne=>{if(ne&&(W=ne),A){let Ee=A;A=null,Ee()}},fe=()=>new h((ne,Ee)=>{W?Ee(W):A=()=>{W?Ee(W):ne()}});ve.on("drain",Y);let ae=r(ve,{readable:!1},Y);try{ve.writableNeedDrain&&await fe();for await(let ne of G)ve.write(ne)||await fe();le&&ve.end(),await fe(),ke()}catch(ne){ke(W!==ne?f(W,ne):ne)}finally{ae(),ve.off("drain",Y)}}async function Ae(G,ve,ke,{end:le}){k(ve)&&(ve=ve.writable);let W=ve.getWriter();try{for await(let A of G)await W.ready,W.write(A).catch(()=>{});await W.ready,le&&await W.close(),ke()}catch(A){try{await W.abort(A),ke(A)}catch(Y){ke(Y)}}}function ie(...G){return X(G,o(J(G)))}function X(G,ve,ke){if(G.length===1&&l(G[0])&&(G=G[0]),G.length<2)throw new m("streams");let le=new se,W=le.signal,A=ke?.signal,Y=[];B(A,"options.signal");function fe(){F(new C)}A?.addEventListener("abort",fe);let ae,ne,Ee=[],me=0;function x(L){F(L,--me===0)}function F(L,S){if(L&&(!ae||ae.code==="ERR_STREAM_PREMATURE_CLOSE")&&(ae=L),!(!ae&&!S)){for(;Ee.length;)Ee.shift()(ae);A?.removeEventListener("abort",fe),le.abort(),S&&(ae||Y.forEach(j=>j()),t.nextTick(ve,ae,ne))}}let $;for(let L=0;L0,Z=j||ke?.end!==!1,oe=L===G.length-1;if(I(S)){let c=function(u){u&&u.name!=="AbortError"&&u.code!=="ERR_STREAM_PREMATURE_CLOSE"&&x(u)};if(Z){let{destroy:u,cleanup:d}=re(S,j,z);Ee.push(u),U(S)&&oe&&Y.push(d)}S.on("error",c),U(S)&&oe&&Y.push(()=>{S.removeListener("error",c)})}if(L===0)if(typeof S=="function"){if($=S({signal:W}),!w($))throw new g("Iterable, AsyncIterable or Stream","source",$)}else w(S)||q(S)||k(S)?$=S:$=a.from(S);else if(typeof S=="function"){if(k($)){var ue;$=_e((ue=$)===null||ue===void 0?void 0:ue.readable)}else $=_e($);if($=S($,{signal:W}),j){if(!w($,!0))throw new g("AsyncIterable",`transform[${L-1}]`,$)}else{var ee;T||(T=ws());let c=new T({objectMode:!0}),u=(ee=$)===null||ee===void 0?void 0:ee.then;if(typeof u=="function")me++,u.call($,P=>{ne=P,P!=null&&c.write(P),Z&&c.end(),t.nextTick(x)},P=>{c.destroy(P),t.nextTick(x,P)});else if(w($,!0))me++,V($,c,x,{end:Z});else if(Q($)||k($)){let P=$.readable||$;me++,V(P,c,x,{end:Z})}else throw new g("AsyncIterable or Promise","destination",$);$=c;let{destroy:d,cleanup:_}=re($,!1,!0);Ee.push(d),oe&&Y.push(_)}}else if(I(S)){if(q($)){me+=2;let c=O($,S,x,{end:Z});U(S)&&oe&&Y.push(c)}else if(k($)||Q($)){let c=$.readable||$;me++,V(c,S,x,{end:Z})}else if(w($))me++,V($,S,x,{end:Z});else throw new p("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],$);$=S}else if(R(S)){if(q($))me++,Ae(_e($),S,x,{end:Z});else if(Q($)||w($))me++,Ae($,S,x,{end:Z});else if(k($))me++,Ae($.readable,S,x,{end:Z});else throw new p("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],$);$=S}else $=a.from(S)}return(W!=null&&W.aborted||A!=null&&A.aborted)&&t.nextTick(fe),$}function O(G,ve,ke,{end:le}){let W=!1;if(ve.on("close",()=>{W||ke(new v)}),G.pipe(ve,{end:!1}),le){let A=function(){W=!0,ve.end()};te(G)?t.nextTick(A):G.once("end",A)}else ke();return r(G,{readable:!0,writable:!1},A=>{let Y=G._readableState;A&&A.code==="ERR_STREAM_PREMATURE_CLOSE"&&Y&&Y.ended&&!Y.errored&&!Y.errorEmitted?G.once("end",ke).once("error",ke):ke(A)}),r(ve,{readable:!1,writable:!0},ke)}i.exports={pipelineImpl:X,pipeline:ie}}),_s=Se((e,i)=>{de(),ge(),pe();var{pipeline:t}=$i(),l=Rt(),{destroyer:h}=hr(),{isNodeStream:s,isReadable:r,isWritable:o,isWebStream:n,isTransformStream:a,isWritableStream:f,isReadableStream:p}=Mt(),{AbortError:g,codes:{ERR_INVALID_ARG_VALUE:m,ERR_MISSING_ARGS:b}}=ht(),v=$t();i.exports=function(...C){if(C.length===0)throw new b("streams");if(C.length===1)return l.from(C[0]);let N=[...C];if(typeof C[0]=="function"&&(C[0]=l.from(C[0])),typeof C[C.length-1]=="function"){let T=C.length-1;C[T]=l.from(C[T])}for(let T=0;T0&&!(o(C[T])||f(C[T])||a(C[T])))throw new m(`streams[${T}]`,N[T],"must be writable")}let B,w,U,q,I;function k(T){let K=q;q=null,K?K(T):T?I.destroy(T):!se&&!te&&I.destroy()}let R=C[0],Q=t(C,k),te=!!(o(R)||f(R)||a(R)),se=!!(r(Q)||p(Q)||a(Q));if(I=new l({writableObjectMode:!!(R!=null&&R.writableObjectMode),readableObjectMode:!!(Q!=null&&Q.writableObjectMode),writable:te,readable:se}),te){if(s(R))I._write=function(K,re,J){R.write(K,re)?J():B=J},I._final=function(K){R.end(),w=K},R.on("drain",function(){if(B){let K=B;B=null,K()}});else if(n(R)){let K=(a(R)?R.writable:R).getWriter();I._write=async function(re,J,_e){try{await K.ready,K.write(re).catch(()=>{}),_e()}catch(he){_e(he)}},I._final=async function(re){try{await K.ready,K.close().catch(()=>{}),w=re}catch(J){re(J)}}}let T=a(Q)?Q.readable:Q;v(T,()=>{if(w){let K=w;w=null,K()}})}if(se){if(s(Q))Q.on("readable",function(){if(U){let T=U;U=null,T()}}),Q.on("end",function(){I.push(null)}),I._read=function(){for(;;){let T=Q.read();if(T===null){U=I._read;return}if(!I.push(T))return}};else if(n(Q)){let T=(a(Q)?Q.readable:Q).getReader();I._read=async function(){for(;;)try{let{value:K,done:re}=await T.read();if(!I.push(K))return;if(re){I.push(null);return}}catch{return}}}}return I._destroy=function(T,K){!T&&q!==null&&(T=new g),U=null,B=null,w=null,q===null?K(T):(q=K,s(Q)&&h(Q,T))},I}}),Gl=Se((e,i)=>{de(),ge(),pe();var t=globalThis.AbortController||Li().AbortController,{codes:{ERR_INVALID_ARG_VALUE:l,ERR_INVALID_ARG_TYPE:h,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:r},AbortError:o}=ht(),{validateAbortSignal:n,validateInteger:a,validateObject:f}=Vr(),p=Ge().Symbol("kWeak"),{finished:g}=$t(),m=_s(),{addAbortSignalNoValidate:b}=Hr(),{isWritable:v,isNodeStream:C}=Mt(),{ArrayPrototypePush:N,MathFloor:B,Number:w,NumberIsNaN:U,Promise:q,PromiseReject:I,PromisePrototypeThen:k,Symbol:R}=Ge(),Q=R("kEmpty"),te=R("kEof");function se(le,W){if(W!=null&&f(W,"options"),W?.signal!=null&&n(W.signal,"options.signal"),C(le)&&!v(le))throw new l("stream",le,"must be writable");let A=m(this,le);return W!=null&&W.signal&&b(W.signal,A),A}function T(le,W){if(typeof le!="function")throw new h("fn",["Function","AsyncFunction"],le);W!=null&&f(W,"options"),W?.signal!=null&&n(W.signal,"options.signal");let A=1;return W?.concurrency!=null&&(A=B(W.concurrency)),a(A,"concurrency",1),(async function*(){var Y,fe;let ae=new t,ne=this,Ee=[],me=ae.signal,x={signal:me},F=()=>ae.abort();W!=null&&(Y=W.signal)!==null&&Y!==void 0&&Y.aborted&&F(),W==null||(fe=W.signal)===null||fe===void 0||fe.addEventListener("abort",F);let $,ue,ee=!1;function L(){ee=!0}async function S(){try{for await(let Z of ne){var j;if(ee)return;if(me.aborted)throw new o;try{Z=le(Z,x)}catch(oe){Z=I(oe)}Z!==Q&&(typeof((j=Z)===null||j===void 0?void 0:j.catch)=="function"&&Z.catch(L),Ee.push(Z),$&&($(),$=null),!ee&&Ee.length&&Ee.length>=A&&await new q(oe=>{ue=oe}))}Ee.push(te)}catch(Z){let oe=I(Z);k(oe,void 0,L),Ee.push(oe)}finally{var z;ee=!0,$&&($(),$=null),W==null||(z=W.signal)===null||z===void 0||z.removeEventListener("abort",F)}}S();try{for(;;){for(;Ee.length>0;){let j=await Ee[0];if(j===te)return;if(me.aborted)throw new o;j!==Q&&(yield j),Ee.shift(),ue&&(ue(),ue=null)}await new q(j=>{$=j})}}finally{ae.abort(),ee=!0,ue&&(ue(),ue=null)}}).call(this)}function K(le=void 0){return le!=null&&f(le,"options"),le?.signal!=null&&n(le.signal,"options.signal"),(async function*(){let W=0;for await(let Y of this){var A;if(le!=null&&(A=le.signal)!==null&&A!==void 0&&A.aborted)throw new o({cause:le.signal.reason});yield[W++,Y]}}).call(this)}async function re(le,W=void 0){for await(let A of V.call(this,le,W))return!0;return!1}async function J(le,W=void 0){if(typeof le!="function")throw new h("fn",["Function","AsyncFunction"],le);return!await re.call(this,async(...A)=>!await le(...A),W)}async function _e(le,W){for await(let A of V.call(this,le,W))return A}async function he(le,W){if(typeof le!="function")throw new h("fn",["Function","AsyncFunction"],le);async function A(Y,fe){return await le(Y,fe),Q}for await(let Y of T.call(this,A,W));}function V(le,W){if(typeof le!="function")throw new h("fn",["Function","AsyncFunction"],le);async function A(Y,fe){return await le(Y,fe)?Y:Q}return T.call(this,A,W)}var Ae=class extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function ie(le,W,A){var Y;if(typeof le!="function")throw new h("reducer",["Function","AsyncFunction"],le);A!=null&&f(A,"options"),A?.signal!=null&&n(A.signal,"options.signal");let fe=arguments.length>1;if(A!=null&&(Y=A.signal)!==null&&Y!==void 0&&Y.aborted){let x=new o(void 0,{cause:A.signal.reason});throw this.once("error",()=>{}),await g(this.destroy(x)),x}let ae=new t,ne=ae.signal;if(A!=null&&A.signal){let x={once:!0,[p]:this};A.signal.addEventListener("abort",()=>ae.abort(),x)}let Ee=!1;try{for await(let x of this){var me;if(Ee=!0,A!=null&&(me=A.signal)!==null&&me!==void 0&&me.aborted)throw new o;fe?W=await le(W,x,{signal:ne}):(W=x,fe=!0)}if(!Ee&&!fe)throw new Ae}finally{ae.abort()}return W}async function X(le){le!=null&&f(le,"options"),le?.signal!=null&&n(le.signal,"options.signal");let W=[];for await(let Y of this){var A;if(le!=null&&(A=le.signal)!==null&&A!==void 0&&A.aborted)throw new o(void 0,{cause:le.signal.reason});N(W,Y)}return W}function O(le,W){let A=T.call(this,le,W);return(async function*(){for await(let Y of A)yield*Y}).call(this)}function G(le){if(le=w(le),U(le))return 0;if(le<0)throw new r("number",">= 0",le);return le}function ve(le,W=void 0){return W!=null&&f(W,"options"),W?.signal!=null&&n(W.signal,"options.signal"),le=G(le),(async function*(){var A;if(W!=null&&(A=W.signal)!==null&&A!==void 0&&A.aborted)throw new o;for await(let fe of this){var Y;if(W!=null&&(Y=W.signal)!==null&&Y!==void 0&&Y.aborted)throw new o;le--<=0&&(yield fe)}}).call(this)}function ke(le,W=void 0){return W!=null&&f(W,"options"),W?.signal!=null&&n(W.signal,"options.signal"),le=G(le),(async function*(){var A;if(W!=null&&(A=W.signal)!==null&&A!==void 0&&A.aborted)throw new o;for await(let fe of this){var Y;if(W!=null&&(Y=W.signal)!==null&&Y!==void 0&&Y.aborted)throw new o;if(le-- >0)yield fe;else return}}).call(this)}i.exports.streamReturningOperators={asIndexedPairs:K,drop:ve,filter:V,flatMap:O,map:T,take:ke,compose:se},i.exports.promiseReturningOperators={every:J,forEach:he,reduce:ie,toArray:X,some:re,find:_e}}),Es=Se((e,i)=>{de(),ge(),pe();var{ArrayPrototypePop:t,Promise:l}=Ge(),{isIterable:h,isNodeStream:s,isWebStream:r}=Mt(),{pipelineImpl:o}=$i(),{finished:n}=$t();Ss();function a(...f){return new l((p,g)=>{let m,b,v=f[f.length-1];if(v&&typeof v=="object"&&!s(v)&&!h(v)&&!r(v)){let C=t(f);m=C.signal,b=C.end}o(f,(C,N)=>{C?g(C):p(N)},{signal:m,end:b})})}i.exports={finished:n,pipeline:a}}),Ss=Se((e,i)=>{de(),ge(),pe();var{Buffer:t}=(nt(),De(rt)),{ObjectDefineProperty:l,ObjectKeys:h,ReflectApply:s}=Ge(),{promisify:{custom:r}}=Pt(),{streamReturningOperators:o,promiseReturningOperators:n}=Gl(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:a}}=ht(),f=_s(),{pipeline:p}=$i(),{destroyer:g}=hr(),m=$t(),b=Es(),v=Mt(),C=i.exports=Ni().Stream;C.isDisturbed=v.isDisturbed,C.isErrored=v.isErrored,C.isReadable=v.isReadable,C.Readable=Kr();for(let B of h(o)){let w=function(...q){if(new.target)throw a();return C.Readable.from(s(U,this,q))},U=o[B];l(w,"name",{__proto__:null,value:U.name}),l(w,"length",{__proto__:null,value:U.length}),l(C.Readable.prototype,B,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}for(let B of h(n)){let w=function(...q){if(new.target)throw a();return s(U,this,q)},U=n[B];l(w,"name",{__proto__:null,value:U.name}),l(w,"length",{__proto__:null,value:U.length}),l(C.Readable.prototype,B,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}C.Writable=ys(),C.Duplex=Rt(),C.Transform=vs(),C.PassThrough=ws(),C.pipeline=p;var{addAbortSignal:N}=Hr();C.addAbortSignal=N,C.finished=m,C.destroy=g,C.compose=f,l(C,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return b}}),l(p,r,{__proto__:null,enumerable:!0,get(){return b.pipeline}}),l(m,r,{__proto__:null,enumerable:!0,get(){return b.finished}}),C.Stream=C,C._isUint8Array=function(B){return B instanceof Uint8Array},C._uint8ArrayToBuffer=function(B){return t.from(B.buffer,B.byteOffset,B.byteLength)}}),sr=Se((e,i)=>{de(),ge(),pe();var t=Ss(),l=Es(),h=t.Readable.destroy;i.exports=t.Readable,i.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,i.exports._isUint8Array=t._isUint8Array,i.exports.isDisturbed=t.isDisturbed,i.exports.isErrored=t.isErrored,i.exports.isReadable=t.isReadable,i.exports.Readable=t.Readable,i.exports.Writable=t.Writable,i.exports.Duplex=t.Duplex,i.exports.Transform=t.Transform,i.exports.PassThrough=t.PassThrough,i.exports.addAbortSignal=t.addAbortSignal,i.exports.finished=t.finished,i.exports.destroy=t.destroy,i.exports.destroy=h,i.exports.pipeline=t.pipeline,i.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return l}}),i.exports.Stream=t.Stream,i.exports.default=i.exports}),Jl=Se((e,i)=>{de(),ge(),pe(),typeof Object.create=="function"?i.exports=function(t,l){l&&(t.super_=l,t.prototype=Object.create(l.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:i.exports=function(t,l){if(l){t.super_=l;var h=function(){};h.prototype=l.prototype,t.prototype=new h,t.prototype.constructor=t}}}),Zl=Se((e,i)=>{de(),ge(),pe();var{Buffer:t}=(nt(),De(rt)),l=Symbol.for("BufferList");function h(s){if(!(this instanceof h))return new h(s);h._init.call(this,s)}h._init=function(s){Object.defineProperty(this,l,{value:!0}),this._bufs=[],this.length=0,s&&this.append(s)},h.prototype._new=function(s){return new h(s)},h.prototype._offset=function(s){if(s===0)return[0,0];let r=0;for(let o=0;othis.length||s<0)return;let r=this._offset(s);return this._bufs[r[0]][r[1]]},h.prototype.slice=function(s,r){return typeof s=="number"&&s<0&&(s+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,s,r)},h.prototype.copy=function(s,r,o,n){if((typeof o!="number"||o<0)&&(o=0),(typeof n!="number"||n>this.length)&&(n=this.length),o>=this.length||n<=0)return s||t.alloc(0);let a=!!s,f=this._offset(o),p=n-o,g=p,m=a&&r||0,b=f[1];if(o===0&&n===this.length){if(!a)return this._bufs.length===1?this._bufs[0]:t.concat(this._bufs,this.length);for(let v=0;vC)this._bufs[v].copy(s,m,b),m+=C;else{this._bufs[v].copy(s,m,b,b+g),m+=C;break}g-=C,b&&(b=0)}return s.length>m?s.slice(0,m):s},h.prototype.shallowSlice=function(s,r){if(s=s||0,r=typeof r!="number"?this.length:r,s<0&&(s+=this.length),r<0&&(r+=this.length),s===r)return this._new();let o=this._offset(s),n=this._offset(r),a=this._bufs.slice(o[0],n[0]+1);return n[1]===0?a.pop():a[a.length-1]=a[a.length-1].slice(0,n[1]),o[1]!==0&&(a[0]=a[0].slice(o[1])),this._new(a)},h.prototype.toString=function(s,r,o){return this.slice(r,o).toString(s)},h.prototype.consume=function(s){if(s=Math.trunc(s),Number.isNaN(s)||s<=0)return this;for(;this._bufs.length;)if(s>=this._bufs[0].length)s-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(s),this.length-=s;break}return this},h.prototype.duplicate=function(){let s=this._new();for(let r=0;rthis.length?this.length:r;let n=this._offset(r),a=n[0],f=n[1];for(;a=s.length){let g=p.indexOf(s,f);if(g!==-1)return this._reverseOffset([a,g]);f=p.length-s.length+1}else{let g=this._reverseOffset([a,f]);if(this._match(g,s))return g;f++}f=0}return-1},h.prototype._match=function(s,r){if(this.length-s{de(),ge(),pe();var t=sr().Duplex,l=Jl(),h=Zl();function s(r){if(!(this instanceof s))return new s(r);if(typeof r=="function"){this._callback=r;let o=(function(n){this._callback&&(this._callback(n),this._callback=null)}).bind(this);this.on("pipe",function(n){n.on("error",o)}),this.on("unpipe",function(n){n.removeListener("error",o)}),r=null}h._init.call(this,r),t.call(this)}l(s,t),Object.assign(s.prototype,h.prototype),s.prototype._new=function(r){return new s(r)},s.prototype._write=function(r,o,n){this._appendBuffer(r),typeof n=="function"&&n()},s.prototype._read=function(r){if(!this.length)return this.push(null);r=Math.min(r,this.length),this.push(this.slice(0,r)),this.consume(r)},s.prototype.end=function(r){t.prototype.end.call(this,r),this._callback&&(this._callback(null,this.slice()),this._callback=null)},s.prototype._destroy=function(r,o){this._bufs.length=0,this.length=0,o(r)},s.prototype._isBufferList=function(r){return r instanceof s||r instanceof h||s.isBufferList(r)},s.isBufferList=h.isBufferList,i.exports=s,i.exports.BufferListStream=s,i.exports.BufferList=h}),eu=Se((e,i)=>{de(),ge(),pe();var t=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};i.exports=t}),As=Se((e,i)=>{de(),ge(),pe();var t=i.exports,{Buffer:l}=(nt(),De(rt));t.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},t.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},t.requiredHeaderFlagsErrors={};for(let s in t.requiredHeaderFlags){let r=t.requiredHeaderFlags[s];t.requiredHeaderFlagsErrors[s]="Invalid header flag bits, must be 0x"+r.toString(16)+" for "+t.types[s]+" packet"}t.codes={};for(let s in t.types){let r=t.types[s];t.codes[r]=s}t.CMD_SHIFT=4,t.CMD_MASK=240,t.DUP_MASK=8,t.QOS_MASK=3,t.QOS_SHIFT=1,t.RETAIN_MASK=1,t.VARBYTEINT_MASK=127,t.VARBYTEINT_FIN_MASK=128,t.VARBYTEINT_MAX=268435455,t.SESSIONPRESENT_MASK=1,t.SESSIONPRESENT_HEADER=l.from([t.SESSIONPRESENT_MASK]),t.CONNACK_HEADER=l.from([t.codes.connack<[0,1].map(o=>[0,1].map(n=>{let a=l.alloc(1);return a.writeUInt8(t.codes[s]<l.from([s])),t.EMPTY={pingreq:l.from([t.codes.pingreq<<4,0]),pingresp:l.from([t.codes.pingresp<<4,0]),disconnect:l.from([t.codes.disconnect<<4,0])},t.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},t.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},t.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},t.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},t.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},t.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),tu=Se((e,i)=>{de(),ge(),pe();var t=1e3,l=t*60,h=l*60,s=h*24,r=s*7,o=s*365.25;i.exports=function(g,m){m=m||{};var b=typeof g;if(b==="string"&&g.length>0)return n(g);if(b==="number"&&isFinite(g))return m.long?f(g):a(g);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(g))};function n(g){if(g=String(g),!(g.length>100)){var m=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(m){var b=parseFloat(m[1]),v=(m[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return b*o;case"weeks":case"week":case"w":return b*r;case"days":case"day":case"d":return b*s;case"hours":case"hour":case"hrs":case"hr":case"h":return b*h;case"minutes":case"minute":case"mins":case"min":case"m":return b*l;case"seconds":case"second":case"secs":case"sec":case"s":return b*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function a(g){var m=Math.abs(g);return m>=s?Math.round(g/s)+"d":m>=h?Math.round(g/h)+"h":m>=l?Math.round(g/l)+"m":m>=t?Math.round(g/t)+"s":g+"ms"}function f(g){var m=Math.abs(g);return m>=s?p(g,m,s,"day"):m>=h?p(g,m,h,"hour"):m>=l?p(g,m,l,"minute"):m>=t?p(g,m,t,"second"):g+" ms"}function p(g,m,b,v){var C=m>=b*1.5;return Math.round(g/b)+" "+v+(C?"s":"")}}),ru=Se((e,i)=>{de(),ge(),pe();function t(l){s.debug=s,s.default=s,s.coerce=p,s.disable=n,s.enable=o,s.enabled=a,s.humanize=tu(),s.destroy=g,Object.keys(l).forEach(m=>{s[m]=l[m]}),s.names=[],s.skips=[],s.formatters={};function h(m){let b=0;for(let v=0;v{if(R==="%%")return"%";k++;let te=s.formatters[Q];if(typeof te=="function"){let se=w[k];R=te.call(U,se),w.splice(k,1),k--}return R}),s.formatArgs.call(U,w),(U.log||s.log).apply(U,w)}return B.namespace=m,B.useColors=s.useColors(),B.color=s.selectColor(m),B.extend=r,B.destroy=s.destroy,Object.defineProperty(B,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(C!==s.namespaces&&(C=s.namespaces,N=s.enabled(m)),N),set:w=>{v=w}}),typeof s.init=="function"&&s.init(B),B}function r(m,b){let v=s(this.namespace+(typeof b>"u"?":":b)+m);return v.log=this.log,v}function o(m){s.save(m),s.namespaces=m,s.names=[],s.skips=[];let b,v=(typeof m=="string"?m:"").split(/[\s,]+/),C=v.length;for(b=0;b"-"+b)].join(",");return s.enable(""),m}function a(m){if(m[m.length-1]==="*")return!0;let b,v;for(b=0,v=s.skips.length;b{de(),ge(),pe(),e.formatArgs=l,e.save=h,e.load=s,e.useColors=t,e.storage=r(),e.destroy=(()=>{let n=!1;return()=>{n||(n=!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`."))}})(),e.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 t(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1: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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function l(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+i.exports.humanize(this.diff),!this.useColors)return;let a="color: "+this.color;n.splice(1,0,a,"color: inherit");let f=0,p=0;n[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(f++,g==="%c"&&(p=f))}),n.splice(p,0,a)}e.log=console.debug||console.log||(()=>{});function h(n){try{n?e.storage.setItem("debug",n):e.storage.removeItem("debug")}catch{}}function s(){let n;try{n=e.storage.getItem("debug")}catch{}return!n&&typeof Le<"u"&&"env"in Le&&(n=Le.env.DEBUG),n}function r(){try{return localStorage}catch{}}i.exports=ru()(e);var{formatters:o}=i.exports;o.j=function(n){try{return JSON.stringify(n)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}}),nu=Se((e,i)=>{de(),ge(),pe();var t=Xl(),{EventEmitter:l}=(cr(),De(or)),h=eu(),s=As(),r=xt()("mqtt-packet:parser"),o=class _i extends l{constructor(){super(),this.parser=this.constructor.parser}static parser(a){return this instanceof _i?(this.settings=a||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new _i().parser(a)}_resetState(){r("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new h,this.error=null,this._list=t(),this._stateCounter=0}parse(a){for(this.error&&this._resetState(),this._list.append(a),r("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++,r("parse: state complete. _stateCounter is now: %d",this._stateCounter),r("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return r("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let a=this._list.readUInt8(0),f=a>>s.CMD_SHIFT;this.packet.cmd=s.types[f];let p=a&15,g=s.requiredHeaderFlags[f];return g!=null&&p!==g?this._emitError(new Error(s.requiredHeaderFlagsErrors[f])):(this.packet.retain=(a&s.RETAIN_MASK)!==0,this.packet.qos=a>>s.QOS_SHIFT&s.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(a&s.DUP_MASK)!==0,r("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let a=this._parseVarByteNum(!0);return a&&(this.packet.length=a.value,this._list.consume(a.bytes)),r("_parseLength %d",a.value),!!a}_parsePayload(){r("_parsePayload: payload %O",this._list);let a=!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"))}a=!0}return r("_parsePayload complete result: %s",a),a}_parseConnect(){r("_parseConnect");let a,f,p,g,m={},b=this.packet,v=this._parseString();if(v===null)return this._emitError(new Error("Cannot parse protocolId"));if(v!=="MQTT"&&v!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(b.protocolId=v,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(b.protocolVersion=this._list.readUInt8(this._pos),b.protocolVersion>=128&&(b.bridgeMode=!0,b.protocolVersion=b.protocolVersion-128),b.protocolVersion!==3&&b.protocolVersion!==4&&b.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(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));m.username=this._list.readUInt8(this._pos)&s.USERNAME_MASK,m.password=this._list.readUInt8(this._pos)&s.PASSWORD_MASK,m.will=this._list.readUInt8(this._pos)&s.WILL_FLAG_MASK;let C=!!(this._list.readUInt8(this._pos)&s.WILL_RETAIN_MASK),N=(this._list.readUInt8(this._pos)&s.WILL_QOS_MASK)>>s.WILL_QOS_SHIFT;if(m.will)b.will={},b.will.retain=C,b.will.qos=N;else{if(C)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(N)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(b.clean=(this._list.readUInt8(this._pos)&s.CLEAN_SESSION_MASK)!==0,this._pos++,b.keepalive=this._parseNum(),b.keepalive===-1)return this._emitError(new Error("Packet too short"));if(b.protocolVersion===5){let w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(b.properties=w)}let B=this._parseString();if(B===null)return this._emitError(new Error("Packet too short"));if(b.clientId=B,r("_parseConnect: packet.clientId: %s",b.clientId),m.will){if(b.protocolVersion===5){let w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(b.will.properties=w)}if(a=this._parseString(),a===null)return this._emitError(new Error("Cannot parse will topic"));if(b.will.topic=a,r("_parseConnect: packet.will.topic: %s",b.will.topic),f=this._parseBuffer(),f===null)return this._emitError(new Error("Cannot parse will payload"));b.will.payload=f,r("_parseConnect: packet.will.paylaod: %s",b.will.payload)}if(m.username){if(g=this._parseString(),g===null)return this._emitError(new Error("Cannot parse username"));b.username=g,r("_parseConnect: packet.username: %s",b.username)}if(m.password){if(p=this._parseBuffer(),p===null)return this._emitError(new Error("Cannot parse password"));b.password=p}return this.settings=b,r("_parseConnect: complete"),b}_parseConnack(){r("_parseConnack");let a=this.packet;if(this._list.length<1)return null;let f=this._list.readUInt8(this._pos++);if(f>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(a.sessionPresent=!!(f&s.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?a.reasonCode=this._list.readUInt8(this._pos++):a.reasonCode=0;else{if(this._list.length<2)return null;a.returnCode=this._list.readUInt8(this._pos++)}if(a.returnCode===-1||a.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let p=this._parseProperties();Object.getOwnPropertyNames(p).length&&(a.properties=p)}r("_parseConnack: complete")}_parsePublish(){r("_parsePublish");let a=this.packet;if(a.topic=this._parseString(),a.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(a.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(a.properties=f)}a.payload=this._list.slice(this._pos,a.length),r("_parsePublish: payload from buffer list: %o",a.payload)}}_parseSubscribe(){r("_parseSubscribe");let a=this.packet,f,p,g,m,b,v,C;if(a.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let N=this._parseProperties();Object.getOwnPropertyNames(N).length&&(a.properties=N)}if(a.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=a.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(p=this._parseByte(),this.settings.protocolVersion===5){if(p&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(p&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(g=p&s.SUBSCRIBE_OPTIONS_QOS_MASK,g>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(v=(p>>s.SUBSCRIBE_OPTIONS_NL_SHIFT&s.SUBSCRIBE_OPTIONS_NL_MASK)!==0,b=(p>>s.SUBSCRIBE_OPTIONS_RAP_SHIFT&s.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,m=p>>s.SUBSCRIBE_OPTIONS_RH_SHIFT&s.SUBSCRIBE_OPTIONS_RH_MASK,m>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));C={topic:f,qos:g},this.settings.protocolVersion===5?(C.nl=v,C.rap=b,C.rh=m):this.settings.bridgeMode&&(C.rh=0,C.rap=!0,C.nl=!0),r("_parseSubscribe: push subscription `%s` to subscription",C),a.subscriptions.push(C)}}}_parseSuback(){r("_parseSuback");let a=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(a.properties=f)}if(a.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&f!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(f)}}}_parseUnsubscribe(){r("_parseUnsubscribe");let a=this.packet;if(a.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(a.properties=f)}if(a.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(a.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!s.MQTT5_PUBACK_PUBREC_CODES[a.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!s.MQTT5_PUBREL_PUBCOMP_CODES[a.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}r("_parseConfirmation: packet.reasonCode `%d`",a.reasonCode)}else a.reasonCode=0;if(a.length>3){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(a.properties=f)}}return!0}_parseDisconnect(){let a=this.packet;if(r("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(a.reasonCode=this._parseByte(),s.MQTT5_DISCONNECT_CODES[a.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):a.reasonCode=0;let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(a.properties=f)}return r("_parseDisconnect result: true"),!0}_parseAuth(){r("_parseAuth");let a=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(a.reasonCode=this._parseByte(),!s.MQTT5_AUTH_CODES[a.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let f=this._parseProperties();return Object.getOwnPropertyNames(f).length&&(a.properties=f),r("_parseAuth: result: true"),!0}_parseMessageId(){let a=this.packet;return a.messageId=this._parseNum(),a.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(r("_parseMessageId: packet.messageId %d",a.messageId),!0)}_parseString(a){let f=this._parseNum(),p=f+this._pos;if(f===-1||p>this._list.length||p>this.packet.length)return null;let g=this._list.toString("utf8",this._pos,p);return this._pos+=f,r("_parseString: result: %s",g),g}_parseStringPair(){return r("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let a=this._parseNum(),f=a+this._pos;if(a===-1||f>this._list.length||f>this.packet.length)return null;let p=this._list.slice(this._pos,f);return this._pos+=a,r("_parseBuffer: result: %o",p),p}_parseNum(){if(this._list.length-this._pos<2)return-1;let a=this._list.readUInt16BE(this._pos);return this._pos+=2,r("_parseNum: result: %s",a),a}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let a=this._list.readUInt32BE(this._pos);return this._pos+=4,r("_parse4ByteNum: result: %s",a),a}_parseVarByteNum(a){r("_parseVarByteNum");let f=4,p=0,g=1,m=0,b=!1,v,C=this._pos?this._pos:0;for(;p=p&&this._emitError(new Error("Invalid variable byte integer")),C&&(this._pos+=p),b?a?b={bytes:p,value:m}:b=m:b=!1,r("_parseVarByteNum: result: %o",b),b}_parseByte(){let a;return this._pos{de(),ge(),pe();var{Buffer:t}=(nt(),De(rt)),l=65536,h={},s=t.isBuffer(t.from([1,2]).subarray(0,1));function r(f){let p=t.allocUnsafe(2);return p.writeUInt8(f>>8,0),p.writeUInt8(f&255,1),p}function o(){for(let f=0;f0&&(p=p|128),m.writeUInt8(p,g++);while(f>0&&g<4);return f>0&&(g=0),s?m.subarray(0,g):m.slice(0,g)}function a(f){let p=t.allocUnsafe(4);return p.writeUInt32BE(f,0),p}i.exports={cache:h,generateCache:o,generateNumber:r,genBufVariableByteInt:n,generate4ByteBuffer:a}}),ou=Se((e,i)=>{de(),ge(),pe(),typeof Le>"u"||!Le.version||Le.version.indexOf("v0.")===0||Le.version.indexOf("v1.")===0&&Le.version.indexOf("v1.8.")!==0?i.exports={nextTick:t}:i.exports=Le;function t(l,h,s,r){if(typeof l!="function")throw new TypeError('"callback" argument must be a function');var o=arguments.length,n,a;switch(o){case 0:case 1:return Le.nextTick(l);case 2:return Le.nextTick(function(){l.call(null,h)});case 3:return Le.nextTick(function(){l.call(null,h,s)});case 4:return Le.nextTick(function(){l.call(null,h,s,r)});default:for(n=new Array(o-1),a=0;a{de(),ge(),pe();var t=As(),{Buffer:l}=(nt(),De(rt)),h=l.allocUnsafe(0),s=l.from([0]),r=iu(),o=ou().nextTick,n=xt()("mqtt-packet:writeToStream"),a=r.cache,f=r.generateNumber,p=r.generateCache,g=r.genBufVariableByteInt,m=r.generate4ByteBuffer,b=he,v=!0;function C(W,A,Y){switch(n("generate called"),A.cork&&(A.cork(),o(N,A)),v&&(v=!1,p()),n("generate: packet.cmd: %s",W.cmd),W.cmd){case"connect":return B(W,A);case"connack":return w(W,A,Y);case"publish":return U(W,A,Y);case"puback":case"pubrec":case"pubrel":case"pubcomp":return q(W,A,Y);case"subscribe":return I(W,A,Y);case"suback":return k(W,A,Y);case"unsubscribe":return R(W,A,Y);case"unsuback":return Q(W,A,Y);case"pingreq":case"pingresp":return te(W,A);case"disconnect":return se(W,A,Y);case"auth":return T(W,A,Y);default:return A.destroy(new Error("Unknown command")),!1}}Object.defineProperty(C,"cacheNumbers",{get(){return b===he},set(W){W?((!a||Object.keys(a).length===0)&&(v=!0),b=he):(v=!1,b=V)}});function N(W){W.uncork()}function B(W,A,Y){let fe=W||{},ae=fe.protocolId||"MQTT",ne=fe.protocolVersion||4,Ee=fe.will,me=fe.clean,x=fe.keepalive||0,F=fe.clientId||"",$=fe.username,ue=fe.password,ee=fe.properties;me===void 0&&(me=!0);let L=0;if(!ae||typeof ae!="string"&&!l.isBuffer(ae))return A.destroy(new Error("Invalid protocolId")),!1;if(L+=ae.length+2,ne!==3&&ne!==4&&ne!==5)return A.destroy(new Error("Invalid protocol version")),!1;if(L+=1,(typeof F=="string"||l.isBuffer(F))&&(F||ne>=4)&&(F||me))L+=l.byteLength(F)+2;else{if(ne<4)return A.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(me*1===0)return A.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof x!="number"||x<0||x>65535||x%1!==0)return A.destroy(new Error("Invalid keepalive")),!1;L+=2,L+=1;let S,j;if(ne===5){if(S=X(A,ee),!S)return!1;L+=S.length}if(Ee){if(typeof Ee!="object")return A.destroy(new Error("Invalid will")),!1;if(!Ee.topic||typeof Ee.topic!="string")return A.destroy(new Error("Invalid will topic")),!1;if(L+=l.byteLength(Ee.topic)+2,L+=2,Ee.payload)if(Ee.payload.length>=0)typeof Ee.payload=="string"?L+=l.byteLength(Ee.payload):L+=Ee.payload.length;else return A.destroy(new Error("Invalid will payload")),!1;if(j={},ne===5){if(j=X(A,Ee.properties),!j)return!1;L+=j.length}}let z=!1;if($!=null)if(le($))z=!0,L+=l.byteLength($)+2;else return A.destroy(new Error("Invalid username")),!1;if(ue!=null){if(!z)return A.destroy(new Error("Username is required to use password")),!1;if(le(ue))L+=ke(ue)+2;else return A.destroy(new Error("Invalid password")),!1}A.write(t.CONNECT_HEADER),re(A,L),ie(A,ae),fe.bridgeMode&&(ne+=128),A.write(ne===131?t.VERSION131:ne===132?t.VERSION132:ne===4?t.VERSION4:ne===5?t.VERSION5:t.VERSION3);let Z=0;return Z|=$!=null?t.USERNAME_MASK:0,Z|=ue!=null?t.PASSWORD_MASK:0,Z|=Ee&&Ee.retain?t.WILL_RETAIN_MASK:0,Z|=Ee&&Ee.qos?Ee.qos<0&&b(A,F),ee?.write(),n("publish: payload: %o",x),A.write(x)}function q(W,A,Y){let fe=Y?Y.protocolVersion:4,ae=W||{},ne=ae.cmd||"puback",Ee=ae.messageId,me=ae.dup&&ne==="pubrel"?t.DUP_MASK:0,x=0,F=ae.reasonCode,$=ae.properties,ue=fe===5?3:2;if(ne==="pubrel"&&(x=1),typeof Ee!="number")return A.destroy(new Error("Invalid messageId")),!1;let ee=null;if(fe===5&&typeof $=="object"){if(ee=O(A,$,Y,ue),!ee)return!1;ue+=ee.length}return A.write(t.ACKS[ne][x][me][0]),ue===3&&(ue+=F!==0?1:-1),re(A,ue),b(A,Ee),fe===5&&ue!==2&&A.write(l.from([F])),ee!==null?ee.write():ue===4&&A.write(l.from([0])),!0}function I(W,A,Y){n("subscribe: packet: ");let fe=Y?Y.protocolVersion:4,ae=W||{},ne=ae.dup?t.DUP_MASK:0,Ee=ae.messageId,me=ae.subscriptions,x=ae.properties,F=0;if(typeof Ee!="number")return A.destroy(new Error("Invalid messageId")),!1;F+=2;let $=null;if(fe===5){if($=X(A,x),!$)return!1;F+=$.length}if(typeof me=="object"&&me.length)for(let ee=0;ee2)return A.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}F+=l.byteLength(L)+2+1}else return A.destroy(new Error("Invalid subscriptions")),!1;n("subscribe: writing to stream: %o",t.SUBSCRIBE_HEADER),A.write(t.SUBSCRIBE_HEADER[1][ne?1:0][0]),re(A,F),b(A,Ee),$!==null&&$.write();let ue=!0;for(let ee of me){let L=ee.topic,S=ee.qos,j=+ee.nl,z=+ee.rap,Z=ee.rh,oe;J(A,L),oe=t.SUBSCRIBE_OPTIONS_QOS[S],fe===5&&(oe|=j?t.SUBSCRIBE_OPTIONS_NL:0,oe|=z?t.SUBSCRIBE_OPTIONS_RAP:0,oe|=Z?t.SUBSCRIBE_OPTIONS_RH[Z]:0),ue=A.write(l.from([oe]))}return ue}function k(W,A,Y){let fe=Y?Y.protocolVersion:4,ae=W||{},ne=ae.messageId,Ee=ae.granted,me=ae.properties,x=0;if(typeof ne!="number")return A.destroy(new Error("Invalid messageId")),!1;if(x+=2,typeof Ee=="object"&&Ee.length)for(let $=0;$t.VARBYTEINT_MAX)return W.destroy(new Error(`Invalid variable byte integer: ${A}`)),!1;let Y=K[A];return Y||(Y=g(A),A<16384&&(K[A]=Y)),n("writeVarByteInt: writing to stream: %o",Y),W.write(Y)}function J(W,A){let Y=l.byteLength(A);return b(W,Y),n("writeString: %s",A),W.write(A,"utf8")}function _e(W,A,Y){J(W,A),J(W,Y)}function he(W,A){return n("writeNumberCached: number: %d",A),n("writeNumberCached: %o",a[A]),W.write(a[A])}function V(W,A){let Y=f(A);return n("writeNumberGenerated: %o",Y),W.write(Y)}function Ae(W,A){let Y=m(A);return n("write4ByteNumber: %o",Y),W.write(Y)}function ie(W,A){typeof A=="string"?J(W,A):A?(b(W,A.length),W.write(A)):b(W,0)}function X(W,A){if(typeof A!="object"||A.length!=null)return{length:1,write(){ve(W,{},0)}};let Y=0;function fe(ae,ne){let Ee=t.propertiesTypes[ae],me=0;switch(Ee){case"byte":{if(typeof ne!="boolean")return W.destroy(new Error(`Invalid ${ae}: ${ne}`)),!1;me+=2;break}case"int8":{if(typeof ne!="number"||ne<0||ne>255)return W.destroy(new Error(`Invalid ${ae}: ${ne}`)),!1;me+=2;break}case"binary":{if(ne&&ne===null)return W.destroy(new Error(`Invalid ${ae}: ${ne}`)),!1;me+=1+l.byteLength(ne)+2;break}case"int16":{if(typeof ne!="number"||ne<0||ne>65535)return W.destroy(new Error(`Invalid ${ae}: ${ne}`)),!1;me+=3;break}case"int32":{if(typeof ne!="number"||ne<0||ne>4294967295)return W.destroy(new Error(`Invalid ${ae}: ${ne}`)),!1;me+=5;break}case"var":{if(typeof ne!="number"||ne<0||ne>268435455)return W.destroy(new Error(`Invalid ${ae}: ${ne}`)),!1;me+=1+l.byteLength(g(ne));break}case"string":{if(typeof ne!="string")return W.destroy(new Error(`Invalid ${ae}: ${ne}`)),!1;me+=3+l.byteLength(ne.toString());break}case"pair":{if(typeof ne!="object")return W.destroy(new Error(`Invalid ${ae}: ${ne}`)),!1;me+=Object.getOwnPropertyNames(ne).reduce((x,F)=>{let $=ne[F];return Array.isArray($)?x+=$.reduce((ue,ee)=>(ue+=3+l.byteLength(F.toString())+2+l.byteLength(ee.toString()),ue),0):x+=3+l.byteLength(F.toString())+2+l.byteLength(ne[F].toString()),x},0);break}default:return W.destroy(new Error(`Invalid property ${ae}: ${ne}`)),!1}return me}if(A)for(let ae in A){let ne=0,Ee=0,me=A[ae];if(Array.isArray(me))for(let x=0;xne;){let me=ae.shift();if(me&&A[me])delete A[me],Ee=X(W,A);else return!1}return Ee}function G(W,A,Y){switch(t.propertiesTypes[A]){case"byte":{W.write(l.from([t.properties[A]])),W.write(l.from([+Y]));break}case"int8":{W.write(l.from([t.properties[A]])),W.write(l.from([Y]));break}case"binary":{W.write(l.from([t.properties[A]])),ie(W,Y);break}case"int16":{W.write(l.from([t.properties[A]])),b(W,Y);break}case"int32":{W.write(l.from([t.properties[A]])),Ae(W,Y);break}case"var":{W.write(l.from([t.properties[A]])),re(W,Y);break}case"string":{W.write(l.from([t.properties[A]])),J(W,Y);break}case"pair":{Object.getOwnPropertyNames(Y).forEach(fe=>{let ae=Y[fe];Array.isArray(ae)?ae.forEach(ne=>{W.write(l.from([t.properties[A]])),_e(W,fe.toString(),ne.toString())}):(W.write(l.from([t.properties[A]])),_e(W,fe.toString(),ae.toString()))});break}default:return W.destroy(new Error(`Invalid property ${A} value: ${Y}`)),!1}}function ve(W,A,Y){re(W,Y);for(let fe in A)if(Object.prototype.hasOwnProperty.call(A,fe)&&A[fe]!==null){let ae=A[fe];if(Array.isArray(ae))for(let ne=0;ne{de(),ge(),pe();var t=Cs(),{EventEmitter:l}=(cr(),De(or)),{Buffer:h}=(nt(),De(rt));function s(o,n){let a=new r;return t(o,a,n),a.concat()}var r=class extends l{constructor(){super(),this._array=new Array(20),this._i=0}write(o){return this._array[this._i++]=o,!0}concat(){let o=0,n=new Array(this._array.length),a=this._array,f=0,p;for(p=0;p{de(),ge(),pe(),e.parser=nu().parser,e.generate=su(),e.writeToStream=Cs()}),ks=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0});var i=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let t=this.nextId++;return this.nextId===65536&&(this.nextId=1),t}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(t){return!0}deallocate(t){}clear(){}};e.default=i}),lu=Se((e,i)=>{de(),ge(),pe(),i.exports=l;function t(s){return s instanceof Wr?Wr.from(s):new s.constructor(s.buffer.slice(),s.byteOffset,s.length)}function l(s){if(s=s||{},s.circles)return h(s);return s.proto?n:o;function r(a,f){for(var p=Object.keys(a),g=new Array(p.length),m=0;m{de(),ge(),pe(),i.exports=lu()()}),hu=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function i(l){let h=l.split("/");for(let s=0;s{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0});var i=sr(),t={objectMode:!0},l={clean:!0},h=class{constructor(s){this.options=s||{},this.options=Object.assign(Object.assign({},l),s),this._inflights=new Map}put(s,r){return this._inflights.set(s.messageId,s),r&&r(),this}createStream(){let s=new i.Readable(t),r=[],o=!1,n=0;return this._inflights.forEach((a,f)=>{r.push(a)}),s._read=()=>{!o&&n{if(!o)return o=!0,setTimeout(()=>{s.emit("close")},0),s},s}del(s,r){let o=this._inflights.get(s.messageId);return o?(this._inflights.delete(s.messageId),r(null,o)):r&&r(new Error("missing packet")),this}get(s,r){let o=this._inflights.get(s.messageId);return o?r(null,o):r&&r(new Error("missing packet")),this}close(s){this.options.clean&&(this._inflights=null),s&&s()}};e.default=h}),cu=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0});var i=[0,16,128,131,135,144,145,151,153],t=(l,h,s)=>{l.log("handlePublish: packet %o",h),s=typeof s<"u"?s:l.noop;let r=h.topic.toString(),o=h.payload,{qos:n}=h,{messageId:a}=h,{options:f}=l;if(l.options.protocolVersion===5){let p;if(h.properties&&(p=h.properties.topicAlias),typeof p<"u")if(r.length===0)if(p>0&&p<=65535){let g=l.topicAliasRecv.getTopicByAlias(p);if(g)r=g,l.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",r,p);else{l.log("handlePublish :: unregistered topic alias. alias: %d",p),l.emit("error",new Error("Received unregistered Topic Alias"));return}}else{l.log("handlePublish :: topic alias out of range. alias: %d",p),l.emit("error",new Error("Received Topic Alias is out of range"));return}else if(l.topicAliasRecv.put(r,p))l.log("handlePublish :: registered topic: %s - alias: %d",r,p);else{l.log("handlePublish :: topic alias out of range. alias: %d",p),l.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(l.log("handlePublish: qos %d",n),n){case 2:{f.customHandleAcks(r,o,h,(p,g)=>{if(typeof p=="number"&&(g=p,p=null),p)return l.emit("error",p);if(i.indexOf(g)===-1)return l.emit("error",new Error("Wrong reason code for pubrec"));g?l._sendPacket({cmd:"pubrec",messageId:a,reasonCode:g},s):l.incomingStore.put(h,()=>{l._sendPacket({cmd:"pubrec",messageId:a},s)})});break}case 1:{f.customHandleAcks(r,o,h,(p,g)=>{if(typeof p=="number"&&(g=p,p=null),p)return l.emit("error",p);if(i.indexOf(g)===-1)return l.emit("error",new Error("Wrong reason code for puback"));g||l.emit("message",r,o,h),l.handleMessage(h,m=>{if(m)return s&&s(m);l._sendPacket({cmd:"puback",messageId:a,reasonCode:g},s)})});break}case 0:l.emit("message",r,o,h),l.handleMessage(h,s);break;default:l.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=t}),fu=Se((e,i)=>{i.exports={version:"5.10.1"}}),fr=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var i=class Ts extends Error{constructor(h,s){super(h),this.code=s,Object.setPrototypeOf(this,Ts.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=i;function t(l,h,s=!1){var r;let o=[h];for(;;){let n=o[0],a=Object.getPrototypeOf(n);if(a?.prototype)o.unshift(a);else break}for(let n of o)for(let a of Object.getOwnPropertyNames(n.prototype))(s||a!=="constructor")&&Object.defineProperty(l.prototype,a,(r=Object.getOwnPropertyDescriptor(n.prototype,a))!==null&&r!==void 0?r:Object.create(null))}e.applyMixin=t,e.nextTick=typeof Le?.nextTick=="function"?Le.nextTick:l=>{setTimeout(l,0)},e.MQTTJS_VERSION=fu().version}),Yr=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var i=fr();e.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var t=(l,h)=>{let{messageId:s}=h,r=h.cmd,o=null,n=l.outgoing[s]?l.outgoing[s].cb:null,a=null;if(!n){l.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(l.log("_handleAck :: packet type",r),r){case"pubcomp":case"puback":{let f=h.reasonCode;f&&f>0&&f!==16?(a=new i.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[f]}`,f),l._removeOutgoingAndStoreMessage(s,()=>{n(a,h)})):l._removeOutgoingAndStoreMessage(s,n);break}case"pubrec":{o={cmd:"pubrel",qos:2,messageId:s};let f=h.reasonCode;f&&f>0&&f!==16?(a=new i.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[f]}`,f),l._removeOutgoingAndStoreMessage(s,()=>{n(a,h)})):l._sendPacket(o);break}case"suback":{delete l.outgoing[s],l.messageIdProvider.deallocate(s);let f=h.granted;for(let p=0;p{delete l._resubscribeTopics[b]})}}delete l.messageIdToTopic[s],l._invokeStoreProcessingQueue(),n(a,h);break}case"unsuback":{delete l.outgoing[s],l.messageIdProvider.deallocate(s),l._invokeStoreProcessingQueue(),n(null,h);break}default:l.emit("error",new Error("unrecognized packet type"))}l.disconnecting&&Object.keys(l.outgoing).length===0&&l.emit("outgoingEmpty")};e.default=t}),du=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0});var i=fr(),t=Yr(),l=(h,s)=>{let{options:r}=h,o=r.protocolVersion,n=o===5?s.reasonCode:s.returnCode;if(o!==5){let a=new i.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${o}`,n);h.emit("error",a);return}h.handleAuth(s,(a,f)=>{if(a){h.emit("error",a);return}if(n===24)h.reconnecting=!1,h._sendPacket(f);else{let p=new i.ErrorWithReasonCode(`Connection refused: ${t.ReasonCodes[n]}`,n);h.emit("error",p)}})};e.default=l}),pu=Se(e=>{var m,b,v,C,N,B,w,U,q,I,k,R,Q,te,se,T,K,re,J,_e,he,V,Ae,ie,X,Ei,G,ve,ke,le,Os,A,Y,fe,Wt,Dt,Si,Mr,jr,Fe,Ai,vr,ee;de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var i=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,t=new Set,l=typeof Le=="object"&&Le?Le:{},h=(L,S,j,z)=>{typeof l.emitWarning=="function"?l.emitWarning(L,S,j,z):console.error(`[${j}] ${S}: ${L}`)},s=globalThis.AbortController,r=globalThis.AbortSignal;if(typeof s>"u"){r=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(j,z){this._onabort.push(z)}},s=class{constructor(){S()}signal=new r;abort(j){if(!this.signal.aborted){this.signal.reason=j,this.signal.aborted=!0;for(let z of this.signal._onabort)z(j);this.signal.onabort?.(j)}}};let L=l.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",S=()=>{L&&(L=!1,h("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",S))}}var o=L=>!t.has(L),n=L=>L&&L===Math.floor(L)&&L>0&&isFinite(L),a=L=>n(L)?L<=Math.pow(2,8)?Uint8Array:L<=Math.pow(2,16)?Uint16Array:L<=Math.pow(2,32)?Uint32Array:L<=Number.MAX_SAFE_INTEGER?f:null:null,f=class extends Array{constructor(L){super(L),this.fill(0)}},p=(m=class{heap;length;static create(S){let j=a(S);if(!j)return[];Re(m,b,!0);let z=new m(S,j);return Re(m,b,!1),z}constructor(S,j){if(!M(m,b))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new j(S),this.length=0}push(S){this.heap[this.length++]=S}pop(){return this.heap[--this.length]}},b=new WeakMap,je(m,b,!1),m),g=(ee=class{constructor(S){je(this,X);je(this,v);je(this,C);je(this,N);je(this,B);je(this,w);ot(this,"ttl");ot(this,"ttlResolution");ot(this,"ttlAutopurge");ot(this,"updateAgeOnGet");ot(this,"updateAgeOnHas");ot(this,"allowStale");ot(this,"noDisposeOnSet");ot(this,"noUpdateTTL");ot(this,"maxEntrySize");ot(this,"sizeCalculation");ot(this,"noDeleteOnFetchRejection");ot(this,"noDeleteOnStaleGet");ot(this,"allowStaleOnFetchAbort");ot(this,"allowStaleOnFetchRejection");ot(this,"ignoreFetchAbort");je(this,U);je(this,q);je(this,I);je(this,k);je(this,R);je(this,Q);je(this,te);je(this,se);je(this,T);je(this,K);je(this,re);je(this,J);je(this,_e);je(this,he);je(this,V);je(this,Ae);je(this,ie);je(this,G,()=>{});je(this,ve,()=>{});je(this,ke,()=>{});je(this,le,()=>!1);je(this,A,S=>{});je(this,Y,(S,j,z)=>{});je(this,fe,(S,j,z,Z)=>{if(z||Z)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:j=0,ttl:z,ttlResolution:Z=1,ttlAutopurge:oe,updateAgeOnGet:c,updateAgeOnHas:u,allowStale:d,dispose:_,disposeAfter:P,noDisposeOnSet:D,noUpdateTTL:ce,maxSize:Pe=0,maxEntrySize:Me=0,sizeCalculation:Ie,fetchMethod:Oe,noDeleteOnFetchRejection:Be,noDeleteOnStaleGet:Ye,allowStaleOnFetchRejection:Qe,allowStaleOnFetchAbort:Ve,ignoreFetchAbort:Xe}=S;if(j!==0&&!n(j))throw new TypeError("max option must be a nonnegative integer");let xe=j?a(j):Array;if(!xe)throw new Error("invalid max value: "+j);if(Re(this,v,j),Re(this,C,Pe),this.maxEntrySize=Me||M(this,C),this.sizeCalculation=Ie,this.sizeCalculation){if(!M(this,C)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Oe!==void 0&&typeof Oe!="function")throw new TypeError("fetchMethod must be a function if specified");if(Re(this,w,Oe),Re(this,Ae,!!Oe),Re(this,I,new Map),Re(this,k,new Array(j).fill(void 0)),Re(this,R,new Array(j).fill(void 0)),Re(this,Q,new xe(j)),Re(this,te,new xe(j)),Re(this,se,0),Re(this,T,0),Re(this,K,p.create(j)),Re(this,U,0),Re(this,q,0),typeof _=="function"&&Re(this,N,_),typeof P=="function"?(Re(this,B,P),Re(this,re,[])):(Re(this,B,void 0),Re(this,re,void 0)),Re(this,V,!!M(this,N)),Re(this,ie,!!M(this,B)),this.noDisposeOnSet=!!D,this.noUpdateTTL=!!ce,this.noDeleteOnFetchRejection=!!Be,this.allowStaleOnFetchRejection=!!Qe,this.allowStaleOnFetchAbort=!!Ve,this.ignoreFetchAbort=!!Xe,this.maxEntrySize!==0){if(M(this,C)!==0&&!n(M(this,C)))throw new TypeError("maxSize must be a positive integer if specified");if(!n(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Te(this,X,Os).call(this)}if(this.allowStale=!!d,this.noDeleteOnStaleGet=!!Ye,this.updateAgeOnGet=!!c,this.updateAgeOnHas=!!u,this.ttlResolution=n(Z)||Z===0?Z:1,this.ttlAutopurge=!!oe,this.ttl=z||0,this.ttl){if(!n(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Te(this,X,Ei).call(this)}if(M(this,v)===0&&this.ttl===0&&M(this,C)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!M(this,v)&&!M(this,C)){let Je="LRU_CACHE_UNBOUNDED";o(Je)&&(t.add(Je),h("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Je,ee))}}static unsafeExposeInternals(S){return{starts:M(S,_e),ttls:M(S,he),sizes:M(S,J),keyMap:M(S,I),keyList:M(S,k),valList:M(S,R),next:M(S,Q),prev:M(S,te),get head(){return M(S,se)},get tail(){return M(S,T)},free:M(S,K),isBackgroundFetch:j=>{var z;return Te(z=S,X,Fe).call(z,j)},backgroundFetch:(j,z,Z,oe)=>{var c;return Te(c=S,X,jr).call(c,j,z,Z,oe)},moveToTail:j=>{var z;return Te(z=S,X,vr).call(z,j)},indexes:j=>{var z;return Te(z=S,X,Wt).call(z,j)},rindexes:j=>{var z;return Te(z=S,X,Dt).call(z,j)},isStale:j=>{var z;return M(z=S,le).call(z,j)}}}get max(){return M(this,v)}get maxSize(){return M(this,C)}get calculatedSize(){return M(this,q)}get size(){return M(this,U)}get fetchMethod(){return M(this,w)}get dispose(){return M(this,N)}get disposeAfter(){return M(this,B)}getRemainingTTL(S){return M(this,I).has(S)?1/0:0}*entries(){for(let S of Te(this,X,Wt).call(this))M(this,R)[S]!==void 0&&M(this,k)[S]!==void 0&&!Te(this,X,Fe).call(this,M(this,R)[S])&&(yield[M(this,k)[S],M(this,R)[S]])}*rentries(){for(let S of Te(this,X,Dt).call(this))M(this,R)[S]!==void 0&&M(this,k)[S]!==void 0&&!Te(this,X,Fe).call(this,M(this,R)[S])&&(yield[M(this,k)[S],M(this,R)[S]])}*keys(){for(let S of Te(this,X,Wt).call(this)){let j=M(this,k)[S];j!==void 0&&!Te(this,X,Fe).call(this,M(this,R)[S])&&(yield j)}}*rkeys(){for(let S of Te(this,X,Dt).call(this)){let j=M(this,k)[S];j!==void 0&&!Te(this,X,Fe).call(this,M(this,R)[S])&&(yield j)}}*values(){for(let S of Te(this,X,Wt).call(this))M(this,R)[S]!==void 0&&!Te(this,X,Fe).call(this,M(this,R)[S])&&(yield M(this,R)[S])}*rvalues(){for(let S of Te(this,X,Dt).call(this))M(this,R)[S]!==void 0&&!Te(this,X,Fe).call(this,M(this,R)[S])&&(yield M(this,R)[S])}[Symbol.iterator](){return this.entries()}find(S,j={}){for(let z of Te(this,X,Wt).call(this)){let Z=M(this,R)[z],oe=Te(this,X,Fe).call(this,Z)?Z.__staleWhileFetching:Z;if(oe!==void 0&&S(oe,M(this,k)[z],this))return this.get(M(this,k)[z],j)}}forEach(S,j=this){for(let z of Te(this,X,Wt).call(this)){let Z=M(this,R)[z],oe=Te(this,X,Fe).call(this,Z)?Z.__staleWhileFetching:Z;oe!==void 0&&S.call(j,oe,M(this,k)[z],this)}}rforEach(S,j=this){for(let z of Te(this,X,Dt).call(this)){let Z=M(this,R)[z],oe=Te(this,X,Fe).call(this,Z)?Z.__staleWhileFetching:Z;oe!==void 0&&S.call(j,oe,M(this,k)[z],this)}}purgeStale(){let S=!1;for(let j of Te(this,X,Dt).call(this,{allowStale:!0}))M(this,le).call(this,j)&&(this.delete(M(this,k)[j]),S=!0);return S}dump(){let S=[];for(let j of Te(this,X,Wt).call(this,{allowStale:!0})){let z=M(this,k)[j],Z=M(this,R)[j],oe=Te(this,X,Fe).call(this,Z)?Z.__staleWhileFetching:Z;if(oe===void 0||z===void 0)continue;let c={value:oe};if(M(this,he)&&M(this,_e)){c.ttl=M(this,he)[j];let u=i.now()-M(this,_e)[j];c.start=Math.floor(Date.now()-u)}M(this,J)&&(c.size=M(this,J)[j]),S.unshift([z,c])}return S}load(S){this.clear();for(let[j,z]of S){if(z.start){let Z=Date.now()-z.start;z.start=i.now()-Z}this.set(j,z.value,z)}}set(S,j,z={}){var ce,Pe,Me;if(j===void 0)return this.delete(S),this;let{ttl:Z=this.ttl,start:oe,noDisposeOnSet:c=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:d}=z,{noUpdateTTL:_=this.noUpdateTTL}=z,P=M(this,fe).call(this,S,j,z.size||0,u);if(this.maxEntrySize&&P>this.maxEntrySize)return d&&(d.set="miss",d.maxEntrySizeExceeded=!0),this.delete(S),this;let D=M(this,U)===0?void 0:M(this,I).get(S);if(D===void 0)D=M(this,U)===0?M(this,T):M(this,K).length!==0?M(this,K).pop():M(this,U)===M(this,v)?Te(this,X,Mr).call(this,!1):M(this,U),M(this,k)[D]=S,M(this,R)[D]=j,M(this,I).set(S,D),M(this,Q)[M(this,T)]=D,M(this,te)[D]=M(this,T),Re(this,T,D),Ar(this,U)._++,M(this,Y).call(this,D,P,d),d&&(d.set="add"),_=!1;else{Te(this,X,vr).call(this,D);let Ie=M(this,R)[D];if(j!==Ie){if(M(this,Ae)&&Te(this,X,Fe).call(this,Ie)){Ie.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Oe}=Ie;Oe!==void 0&&!c&&(M(this,V)&&((ce=M(this,N))==null||ce.call(this,Oe,S,"set")),M(this,ie)&&M(this,re)?.push([Oe,S,"set"]))}else c||(M(this,V)&&((Pe=M(this,N))==null||Pe.call(this,Ie,S,"set")),M(this,ie)&&M(this,re)?.push([Ie,S,"set"]));if(M(this,A).call(this,D),M(this,Y).call(this,D,P,d),M(this,R)[D]=j,d){d.set="replace";let Oe=Ie&&Te(this,X,Fe).call(this,Ie)?Ie.__staleWhileFetching:Ie;Oe!==void 0&&(d.oldValue=Oe)}}else d&&(d.set="update")}if(Z!==0&&!M(this,he)&&Te(this,X,Ei).call(this),M(this,he)&&(_||M(this,ke).call(this,D,Z,oe),d&&M(this,ve).call(this,d,D)),!c&&M(this,ie)&&M(this,re)){let Ie=M(this,re),Oe;for(;Oe=Ie?.shift();)(Me=M(this,B))==null||Me.call(this,...Oe)}return this}pop(){var S;try{for(;M(this,U);){let j=M(this,R)[M(this,se)];if(Te(this,X,Mr).call(this,!0),Te(this,X,Fe).call(this,j)){if(j.__staleWhileFetching)return j.__staleWhileFetching}else if(j!==void 0)return j}}finally{if(M(this,ie)&&M(this,re)){let j=M(this,re),z;for(;z=j?.shift();)(S=M(this,B))==null||S.call(this,...z)}}}has(S,j={}){let{updateAgeOnHas:z=this.updateAgeOnHas,status:Z}=j,oe=M(this,I).get(S);if(oe!==void 0){let c=M(this,R)[oe];if(Te(this,X,Fe).call(this,c)&&c.__staleWhileFetching===void 0)return!1;if(M(this,le).call(this,oe))Z&&(Z.has="stale",M(this,ve).call(this,Z,oe));else return z&&M(this,G).call(this,oe),Z&&(Z.has="hit",M(this,ve).call(this,Z,oe)),!0}else Z&&(Z.has="miss");return!1}peek(S,j={}){let{allowStale:z=this.allowStale}=j,Z=M(this,I).get(S);if(Z!==void 0&&(z||!M(this,le).call(this,Z))){let oe=M(this,R)[Z];return Te(this,X,Fe).call(this,oe)?oe.__staleWhileFetching:oe}}async fetch(S,j={}){let{allowStale:z=this.allowStale,updateAgeOnGet:Z=this.updateAgeOnGet,noDeleteOnStaleGet:oe=this.noDeleteOnStaleGet,ttl:c=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:d=0,sizeCalculation:_=this.sizeCalculation,noUpdateTTL:P=this.noUpdateTTL,noDeleteOnFetchRejection:D=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:ce=this.allowStaleOnFetchRejection,ignoreFetchAbort:Pe=this.ignoreFetchAbort,allowStaleOnFetchAbort:Me=this.allowStaleOnFetchAbort,context:Ie,forceRefresh:Oe=!1,status:Be,signal:Ye}=j;if(!M(this,Ae))return Be&&(Be.fetch="get"),this.get(S,{allowStale:z,updateAgeOnGet:Z,noDeleteOnStaleGet:oe,status:Be});let Qe={allowStale:z,updateAgeOnGet:Z,noDeleteOnStaleGet:oe,ttl:c,noDisposeOnSet:u,size:d,sizeCalculation:_,noUpdateTTL:P,noDeleteOnFetchRejection:D,allowStaleOnFetchRejection:ce,allowStaleOnFetchAbort:Me,ignoreFetchAbort:Pe,status:Be,signal:Ye},Ve=M(this,I).get(S);if(Ve===void 0){Be&&(Be.fetch="miss");let Xe=Te(this,X,jr).call(this,S,Ve,Qe,Ie);return Xe.__returned=Xe}else{let Xe=M(this,R)[Ve];if(Te(this,X,Fe).call(this,Xe)){let Er=z&&Xe.__staleWhileFetching!==void 0;return Be&&(Be.fetch="inflight",Er&&(Be.returnedStale=!0)),Er?Xe.__staleWhileFetching:Xe.__returned=Xe}let xe=M(this,le).call(this,Ve);if(!Oe&&!xe)return Be&&(Be.fetch="hit"),Te(this,X,vr).call(this,Ve),Z&&M(this,G).call(this,Ve),Be&&M(this,ve).call(this,Be,Ve),Xe;let Je=Te(this,X,jr).call(this,S,Ve,Qe,Ie),at=Je.__staleWhileFetching!==void 0&&z;return Be&&(Be.fetch=xe?"stale":"refresh",at&&xe&&(Be.returnedStale=!0)),at?Je.__staleWhileFetching:Je.__returned=Je}}get(S,j={}){let{allowStale:z=this.allowStale,updateAgeOnGet:Z=this.updateAgeOnGet,noDeleteOnStaleGet:oe=this.noDeleteOnStaleGet,status:c}=j,u=M(this,I).get(S);if(u!==void 0){let d=M(this,R)[u],_=Te(this,X,Fe).call(this,d);return c&&M(this,ve).call(this,c,u),M(this,le).call(this,u)?(c&&(c.get="stale"),_?(c&&z&&d.__staleWhileFetching!==void 0&&(c.returnedStale=!0),z?d.__staleWhileFetching:void 0):(oe||this.delete(S),c&&z&&(c.returnedStale=!0),z?d:void 0)):(c&&(c.get="hit"),_?d.__staleWhileFetching:(Te(this,X,vr).call(this,u),Z&&M(this,G).call(this,u),d))}else c&&(c.get="miss")}delete(S){var z,Z;let j=!1;if(M(this,U)!==0){let oe=M(this,I).get(S);if(oe!==void 0)if(j=!0,M(this,U)===1)this.clear();else{M(this,A).call(this,oe);let c=M(this,R)[oe];Te(this,X,Fe).call(this,c)?c.__abortController.abort(new Error("deleted")):(M(this,V)||M(this,ie))&&(M(this,V)&&((z=M(this,N))==null||z.call(this,c,S,"delete")),M(this,ie)&&M(this,re)?.push([c,S,"delete"])),M(this,I).delete(S),M(this,k)[oe]=void 0,M(this,R)[oe]=void 0,oe===M(this,T)?Re(this,T,M(this,te)[oe]):oe===M(this,se)?Re(this,se,M(this,Q)[oe]):(M(this,Q)[M(this,te)[oe]]=M(this,Q)[oe],M(this,te)[M(this,Q)[oe]]=M(this,te)[oe]),Ar(this,U)._--,M(this,K).push(oe)}}if(M(this,ie)&&M(this,re)?.length){let oe=M(this,re),c;for(;c=oe?.shift();)(Z=M(this,B))==null||Z.call(this,...c)}return j}clear(){var S,j;for(let z of Te(this,X,Dt).call(this,{allowStale:!0})){let Z=M(this,R)[z];if(Te(this,X,Fe).call(this,Z))Z.__abortController.abort(new Error("deleted"));else{let oe=M(this,k)[z];M(this,V)&&((S=M(this,N))==null||S.call(this,Z,oe,"delete")),M(this,ie)&&M(this,re)?.push([Z,oe,"delete"])}}if(M(this,I).clear(),M(this,R).fill(void 0),M(this,k).fill(void 0),M(this,he)&&M(this,_e)&&(M(this,he).fill(0),M(this,_e).fill(0)),M(this,J)&&M(this,J).fill(0),Re(this,se,0),Re(this,T,0),M(this,K).length=0,Re(this,q,0),Re(this,U,0),M(this,ie)&&M(this,re)){let z=M(this,re),Z;for(;Z=z?.shift();)(j=M(this,B))==null||j.call(this,...Z)}}},v=new WeakMap,C=new WeakMap,N=new WeakMap,B=new WeakMap,w=new WeakMap,U=new WeakMap,q=new WeakMap,I=new WeakMap,k=new WeakMap,R=new WeakMap,Q=new WeakMap,te=new WeakMap,se=new WeakMap,T=new WeakMap,K=new WeakMap,re=new WeakMap,J=new WeakMap,_e=new WeakMap,he=new WeakMap,V=new WeakMap,Ae=new WeakMap,ie=new WeakMap,X=new WeakSet,Ei=function(){let S=new f(M(this,v)),j=new f(M(this,v));Re(this,he,S),Re(this,_e,j),Re(this,ke,(oe,c,u=i.now())=>{if(j[oe]=c!==0?u:0,S[oe]=c,c!==0&&this.ttlAutopurge){let d=setTimeout(()=>{M(this,le).call(this,oe)&&this.delete(M(this,k)[oe])},c+1);d.unref&&d.unref()}}),Re(this,G,oe=>{j[oe]=S[oe]!==0?i.now():0}),Re(this,ve,(oe,c)=>{if(S[c]){let u=S[c],d=j[c];oe.ttl=u,oe.start=d,oe.now=z||Z();let _=oe.now-d;oe.remainingTTL=u-_}});let z=0,Z=()=>{let oe=i.now();if(this.ttlResolution>0){z=oe;let c=setTimeout(()=>z=0,this.ttlResolution);c.unref&&c.unref()}return oe};this.getRemainingTTL=oe=>{let c=M(this,I).get(oe);if(c===void 0)return 0;let u=S[c],d=j[c];if(u===0||d===0)return 1/0;let _=(z||Z())-d;return u-_},Re(this,le,oe=>S[oe]!==0&&j[oe]!==0&&(z||Z())-j[oe]>S[oe])},G=new WeakMap,ve=new WeakMap,ke=new WeakMap,le=new WeakMap,Os=function(){let S=new f(M(this,v));Re(this,q,0),Re(this,J,S),Re(this,A,j=>{Re(this,q,M(this,q)-S[j]),S[j]=0}),Re(this,fe,(j,z,Z,oe)=>{if(Te(this,X,Fe).call(this,z))return 0;if(!n(Z))if(oe){if(typeof oe!="function")throw new TypeError("sizeCalculation must be a function");if(Z=oe(z,j),!n(Z))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Z}),Re(this,Y,(j,z,Z)=>{if(S[j]=z,M(this,C)){let oe=M(this,C)-S[j];for(;M(this,q)>oe;)Te(this,X,Mr).call(this,!0)}Re(this,q,M(this,q)+S[j]),Z&&(Z.entrySize=z,Z.totalCalculatedSize=M(this,q))})},A=new WeakMap,Y=new WeakMap,fe=new WeakMap,Wt=function*({allowStale:S=this.allowStale}={}){if(M(this,U))for(let j=M(this,T);!(!Te(this,X,Si).call(this,j)||((S||!M(this,le).call(this,j))&&(yield j),j===M(this,se)));)j=M(this,te)[j]},Dt=function*({allowStale:S=this.allowStale}={}){if(M(this,U))for(let j=M(this,se);!(!Te(this,X,Si).call(this,j)||((S||!M(this,le).call(this,j))&&(yield j),j===M(this,T)));)j=M(this,Q)[j]},Si=function(S){return S!==void 0&&M(this,I).get(M(this,k)[S])===S},Mr=function(S){var oe;let j=M(this,se),z=M(this,k)[j],Z=M(this,R)[j];return M(this,Ae)&&Te(this,X,Fe).call(this,Z)?Z.__abortController.abort(new Error("evicted")):(M(this,V)||M(this,ie))&&(M(this,V)&&((oe=M(this,N))==null||oe.call(this,Z,z,"evict")),M(this,ie)&&M(this,re)?.push([Z,z,"evict"])),M(this,A).call(this,j),S&&(M(this,k)[j]=void 0,M(this,R)[j]=void 0,M(this,K).push(j)),M(this,U)===1?(Re(this,se,Re(this,T,0)),M(this,K).length=0):Re(this,se,M(this,Q)[j]),M(this,I).delete(z),Ar(this,U)._--,j},jr=function(S,j,z,Z){let oe=j===void 0?void 0:M(this,R)[j];if(Te(this,X,Fe).call(this,oe))return oe;let c=new s,{signal:u}=z;u?.addEventListener("abort",()=>c.abort(u.reason),{signal:c.signal});let d={signal:c.signal,options:z,context:Z},_=(Ie,Oe=!1)=>{let{aborted:Be}=c.signal,Ye=z.ignoreFetchAbort&&Ie!==void 0;if(z.status&&(Be&&!Oe?(z.status.fetchAborted=!0,z.status.fetchError=c.signal.reason,Ye&&(z.status.fetchAbortIgnored=!0)):z.status.fetchResolved=!0),Be&&!Ye&&!Oe)return D(c.signal.reason);let Qe=Pe;return M(this,R)[j]===Pe&&(Ie===void 0?Qe.__staleWhileFetching?M(this,R)[j]=Qe.__staleWhileFetching:this.delete(S):(z.status&&(z.status.fetchUpdated=!0),this.set(S,Ie,d.options))),Ie},P=Ie=>(z.status&&(z.status.fetchRejected=!0,z.status.fetchError=Ie),D(Ie)),D=Ie=>{let{aborted:Oe}=c.signal,Be=Oe&&z.allowStaleOnFetchAbort,Ye=Be||z.allowStaleOnFetchRejection,Qe=Ye||z.noDeleteOnFetchRejection,Ve=Pe;if(M(this,R)[j]===Pe&&(!Qe||Ve.__staleWhileFetching===void 0?this.delete(S):Be||(M(this,R)[j]=Ve.__staleWhileFetching)),Ye)return z.status&&Ve.__staleWhileFetching!==void 0&&(z.status.returnedStale=!0),Ve.__staleWhileFetching;if(Ve.__returned===Ve)throw Ie},ce=(Ie,Oe)=>{var Ye;let Be=(Ye=M(this,w))==null?void 0:Ye.call(this,S,oe,d);Be&&Be instanceof Promise&&Be.then(Qe=>Ie(Qe===void 0?void 0:Qe),Oe),c.signal.addEventListener("abort",()=>{(!z.ignoreFetchAbort||z.allowStaleOnFetchAbort)&&(Ie(void 0),z.allowStaleOnFetchAbort&&(Ie=Qe=>_(Qe,!0)))})};z.status&&(z.status.fetchDispatched=!0);let Pe=new Promise(ce).then(_,P),Me=Object.assign(Pe,{__abortController:c,__staleWhileFetching:oe,__returned:void 0});return j===void 0?(this.set(S,Me,{...d.options,status:void 0}),j=M(this,I).get(S)):M(this,R)[j]=Me,Me},Fe=function(S){if(!M(this,Ae))return!1;let j=S;return!!j&&j instanceof Promise&&j.hasOwnProperty("__staleWhileFetching")&&j.__abortController instanceof s},Ai=function(S,j){M(this,te)[j]=S,M(this,Q)[S]=j},vr=function(S){S!==M(this,T)&&(S===M(this,se)?Re(this,se,M(this,Q)[S]):Te(this,X,Ai).call(this,M(this,te)[S],M(this,Q)[S]),Te(this,X,Ai).call(this,M(this,T),S),Re(this,T,S))},ee);e.LRUCache=g}),jt=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var i=class{constructor(h=0){this.iteratorType=h}equals(h){return this.o===h.o}};e.ContainerIterator=i;var t=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};e.Base=t;var l=class extends t{};e.Container=l}),gu=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=jt(),t=class extends i.Base{constructor(h=[]){super(),this.S=[];let s=this;h.forEach(function(r){s.push(r)})}clear(){this.i=0,this.S=[]}push(h){return this.S.push(h),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},l=t;e.default=l}),mu=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=jt(),t=class extends i.Base{constructor(h=[]){super(),this.j=0,this.q=[];let s=this;h.forEach(function(r){s.push(r)})}clear(){this.q=[],this.i=this.j=0}push(h){let s=this.q.length;if(this.j/s>.5&&this.j+this.i>=s&&s>4096){let r=this.i;for(let o=0;o{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=jt(),t=class extends i.Base{constructor(h=[],s=function(o,n){return o>n?-1:o>1;for(let n=this.i-1>>1;n>=0;--n)this.k(n,o)}m(h){let s=this.C[h];for(;h>0;){let r=h-1>>1,o=this.C[r];if(this.v(o,s)<=0)break;this.C[h]=o,h=r}this.C[h]=s}k(h,s){let r=this.C[h];for(;h0&&(o=n,a=this.C[n]),this.v(a,r)>=0)break;this.C[h]=a,h=o}this.C[h]=r}clear(){this.i=0,this.C.length=0}push(h){this.C.push(h),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let h=this.C[0],s=this.C.pop();return this.i-=1,this.i&&(this.C[0]=s,this.k(0,this.i>>1)),h}top(){return this.C[0]}find(h){return this.C.indexOf(h)>=0}remove(h){let s=this.C.indexOf(h);return s<0?!1:(s===0?this.pop():s===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(s,1,this.C.pop()),this.i-=1,this.m(s),this.k(s,this.i>>1)),!0)}updateItem(h){let s=this.C.indexOf(h);return s<0?!1:(this.m(s),this.k(s,this.i>>1),!0)}toArray(){return[...this.C]}},l=t;e.default=l}),qi=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=jt(),t=class extends i.Container{},l=t;e.default=l}),Ut=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=i;function i(){throw new RangeError("Iterator access denied!")}}),Bs=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var i=jt(),t=Ut(),l=class extends i.ContainerIterator{constructor(h,s){super(s),this.o=h,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,t.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,t.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,t.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,t.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(h){this.container.setElementByPos(this.o,h)}};e.RandomIterator=l}),yu=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=l(qi()),t=Bs();function l(o){return o&&o.t?o:{default:o}}var h=class Ps extends t.RandomIterator{constructor(n,a,f){super(n,f),this.container=a}copy(){return new Ps(this.o,this.container,this.iteratorType)}},s=class extends i.default{constructor(o=[],n=!0){if(super(),Array.isArray(o))this.J=n?[...o]:o,this.i=o.length;else{this.J=[];let a=this;o.forEach(function(f){a.pushBack(f)})}}clear(){this.i=0,this.J.length=0}begin(){return new h(0,this)}end(){return new h(this.i,this)}rBegin(){return new h(this.i-1,this,1)}rEnd(){return new h(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;return this.J[o]}eraseElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;return this.J.splice(o,1),this.i-=1,this.i}eraseElementByValue(o){let n=0;for(let a=0;athis.i-1)throw new RangeError;this.J[o]=n}insert(o,n,a=1){if(o<0||o>this.i)throw new RangeError;return this.J.splice(o,0,...new Array(a).fill(n)),this.i+=a,this.i}find(o){for(let n=0;n{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=h(qi()),t=jt(),l=Ut();function h(n){return n&&n.t?n:{default:n}}var s=class Rs extends t.ContainerIterator{constructor(a,f,p,g){super(g),this.o=a,this.h=f,this.container=p,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o.l}set pointer(a){this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o.l=a}copy(){return new Rs(this.o,this.h,this.container,this.iteratorType)}},r=class extends i.default{constructor(n=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let a=this;n.forEach(function(f){a.pushBack(f)})}V(n){let{L:a,B:f}=n;a.B=f,f.L=a,n===this.p&&(this.p=f),n===this._&&(this._=a),this.i-=1}G(n,a){let f=a.B,p={l:n,L:a,B:f};a.B=p,f.L=p,a===this.h&&(this.p=p),f===this.h&&(this._=p),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new s(this.p,this.h,this)}end(){return new s(this.h,this.h,this)}rBegin(){return new s(this._,this.h,this,1)}rEnd(){return new s(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(n){if(n<0||n>this.i-1)throw new RangeError;let a=this.p;for(;n--;)a=a.B;return a.l}eraseElementByPos(n){if(n<0||n>this.i-1)throw new RangeError;let a=this.p;for(;n--;)a=a.B;return this.V(a),this.i}eraseElementByValue(n){let a=this.p;for(;a!==this.h;)a.l===n&&this.V(a),a=a.B;return this.i}eraseElementByIterator(n){let a=n.o;return a===this.h&&(0,l.throwIteratorAccessError)(),n=n.next(),this.V(a),n}pushBack(n){return this.G(n,this._),this.i}popBack(){if(this.i===0)return;let n=this._.l;return this.V(this._),n}pushFront(n){return this.G(n,this.h),this.i}popFront(){if(this.i===0)return;let n=this.p.l;return this.V(this.p),n}setElementByPos(n,a){if(n<0||n>this.i-1)throw new RangeError;let f=this.p;for(;n--;)f=f.B;f.l=a}insert(n,a,f=1){if(n<0||n>this.i)throw new RangeError;if(f<=0)return this.i;if(n===0)for(;f--;)this.pushFront(a);else if(n===this.i)for(;f--;)this.pushBack(a);else{let p=this.p;for(let m=1;m{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=l(qi()),t=Bs();function l(o){return o&&o.t?o:{default:o}}var h=class xs extends t.RandomIterator{constructor(n,a,f){super(n,f),this.container=a}copy(){return new xs(this.o,this.container,this.iteratorType)}},s=class extends i.default{constructor(o=[],n=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let a=(()=>{if(typeof o.length=="number")return o.length;if(typeof o.size=="number")return o.size;if(typeof o.size=="function")return o.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=n,this.P=Math.max(Math.ceil(a/this.F),1);for(let g=0;g>1)-(f>>1),this.D=this.N=this.F-a%this.F>>1;let p=this;o.forEach(function(g){p.pushBack(g)})}T(){let o=[],n=Math.max(this.P>>1,1);for(let a=0;a>1}begin(){return new h(0,this)}end(){return new h(this.i,this)}rBegin(){return new h(this.i-1,this,1)}rEnd(){return new h(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(o){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,o}pushFront(o){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=o,this.i}popFront(){if(this.i===0)return;let o=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:n,curNodePointerIndex:a}=this.O(o);return this.A[n][a]}setElementByPos(o,n){if(o<0||o>this.i-1)throw new RangeError;let{curNodeBucketIndex:a,curNodePointerIndex:f}=this.O(o);this.A[a][f]=n}insert(o,n,a=1){if(o<0||o>this.i)throw new RangeError;if(o===0)for(;a--;)this.pushFront(n);else if(o===this.i)for(;a--;)this.pushBack(n);else{let f=[];for(let p=o;pthis.i-1)throw new RangeError;if(o===0)this.popFront();else if(o===this.i-1)this.popBack();else{let n=[];for(let f=o+1;fo;)this.popBack();return this.i}sort(o){let n=[];for(let a=0;a{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var i=class{constructor(l,h){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=l,this.l=h}L(){let l=this;if(l.ee===1&&l.tt.tt===l)l=l.W;else if(l.U)for(l=l.U;l.W;)l=l.W;else{let h=l.tt;for(;h.U===l;)l=h,h=l.tt;l=h}return l}B(){let l=this;if(l.W){for(l=l.W;l.U;)l=l.U;return l}else{let h=l.tt;for(;h.W===l;)l=h,h=l.tt;return l.W!==h?h:l}}te(){let l=this.tt,h=this.W,s=h.U;return l.tt===this?l.tt=h:l.U===this?l.U=h:l.W=h,h.tt=l,h.U=this,this.tt=h,this.W=s,s&&(s.tt=this),h}se(){let l=this.tt,h=this.U,s=h.W;return l.tt===this?l.tt=h:l.U===this?l.U=h:l.W=h,h.tt=l,h.W=this,this.tt=h,this.U=s,s&&(s.tt=this),h}};e.TreeNode=i;var t=class extends i{constructor(){super(...arguments),this.rt=1}te(){let l=super.te();return this.ie(),l.ie(),l}se(){let l=super.se();return this.ie(),l.ie(),l}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};e.TreeNodeEnableIndex=t}),Ms=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=_u(),t=jt(),l=Ut(),h=class extends t.Container{constructor(r=function(n,a){return na?1:0},o=!1){super(),this.Y=void 0,this.v=r,o?(this.re=i.TreeNodeEnableIndex,this.M=function(n,a,f){let p=this.ne(n,a,f);if(p){let g=p.tt;for(;g!==this.h;)g.rt+=1,g=g.tt;let m=this.he(p);if(m){let{parentNode:b,grandParent:v,curNode:C}=m;b.ie(),v.ie(),C.ie()}}return this.i},this.V=function(n){let a=this.fe(n);for(;a!==this.h;)a.rt-=1,a=a.tt}):(this.re=i.TreeNode,this.M=function(n,a,f){let p=this.ne(n,a,f);return p&&this.he(p),this.i},this.V=this.fe),this.h=new this.re}X(r,o){let n=this.h;for(;r;){let a=this.v(r.u,o);if(a<0)r=r.W;else if(a>0)n=r,r=r.U;else return r}return n}Z(r,o){let n=this.h;for(;r;)this.v(r.u,o)<=0?r=r.W:(n=r,r=r.U);return n}$(r,o){let n=this.h;for(;r;){let a=this.v(r.u,o);if(a<0)n=r,r=r.W;else if(a>0)r=r.U;else return r}return n}rr(r,o){let n=this.h;for(;r;)this.v(r.u,o)<0?(n=r,r=r.W):r=r.U;return n}ue(r){for(;;){let o=r.tt;if(o===this.h)return;if(r.ee===1){r.ee=0;return}if(r===o.U){let n=o.W;if(n.ee===1)n.ee=0,o.ee=1,o===this.Y?this.Y=o.te():o.te();else if(n.W&&n.W.ee===1){n.ee=o.ee,o.ee=0,n.W.ee=0,o===this.Y?this.Y=o.te():o.te();return}else n.U&&n.U.ee===1?(n.ee=1,n.U.ee=0,n.se()):(n.ee=1,r=o)}else{let n=o.U;if(n.ee===1)n.ee=0,o.ee=1,o===this.Y?this.Y=o.se():o.se();else if(n.U&&n.U.ee===1){n.ee=o.ee,o.ee=0,n.U.ee=0,o===this.Y?this.Y=o.se():o.se();return}else n.W&&n.W.ee===1?(n.ee=1,n.W.ee=0,n.te()):(n.ee=1,r=o)}}}fe(r){if(this.i===1)return this.clear(),this.h;let o=r;for(;o.U||o.W;){if(o.W)for(o=o.W;o.U;)o=o.U;else o=o.U;[r.u,o.u]=[o.u,r.u],[r.l,o.l]=[o.l,r.l],r=o}this.h.U===o?this.h.U=o.tt:this.h.W===o&&(this.h.W=o.tt),this.ue(o);let n=o.tt;return o===n.U?n.U=void 0:n.W=void 0,this.i-=1,this.Y.ee=0,n}oe(r,o){return r===void 0?!1:this.oe(r.U,o)||o(r)?!0:this.oe(r.W,o)}he(r){for(;;){let o=r.tt;if(o.ee===0)return;let n=o.tt;if(o===n.U){let a=n.W;if(a&&a.ee===1){if(a.ee=o.ee=0,n===this.Y)return;n.ee=1,r=n;continue}else if(r===o.W){if(r.ee=0,r.U&&(r.U.tt=o),r.W&&(r.W.tt=n),o.W=r.U,n.U=r.W,r.U=o,r.W=n,n===this.Y)this.Y=r,this.h.tt=r;else{let f=n.tt;f.U===n?f.U=r:f.W=r}return r.tt=n.tt,o.tt=r,n.tt=r,n.ee=1,{parentNode:o,grandParent:n,curNode:r}}else o.ee=0,n===this.Y?this.Y=n.se():n.se(),n.ee=1}else{let a=n.U;if(a&&a.ee===1){if(a.ee=o.ee=0,n===this.Y)return;n.ee=1,r=n;continue}else if(r===o.U){if(r.ee=0,r.U&&(r.U.tt=n),r.W&&(r.W.tt=o),n.W=r.U,o.U=r.W,r.U=n,r.W=o,n===this.Y)this.Y=r,this.h.tt=r;else{let f=n.tt;f.U===n?f.U=r:f.W=r}return r.tt=n.tt,o.tt=r,n.tt=r,n.ee=1,{parentNode:o,grandParent:n,curNode:r}}else o.ee=0,n===this.Y?this.Y=n.te():n.te(),n.ee=1}return}}ne(r,o,n){if(this.Y===void 0){this.i+=1,this.Y=new this.re(r,o),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let a,f=this.h.U,p=this.v(f.u,r);if(p===0){f.l=o;return}else if(p>0)f.U=new this.re(r,o),f.U.tt=f,a=f.U,this.h.U=a;else{let g=this.h.W,m=this.v(g.u,r);if(m===0){g.l=o;return}else if(m<0)g.W=new this.re(r,o),g.W.tt=g,a=g.W,this.h.W=a;else{if(n!==void 0){let b=n.o;if(b!==this.h){let v=this.v(b.u,r);if(v===0){b.l=o;return}else if(v>0){let C=b.L(),N=this.v(C.u,r);if(N===0){C.l=o;return}else N<0&&(a=new this.re(r,o),C.W===void 0?(C.W=a,a.tt=C):(b.U=a,a.tt=b))}}}if(a===void 0)for(a=this.Y;;){let b=this.v(a.u,r);if(b>0){if(a.U===void 0){a.U=new this.re(r,o),a.U.tt=a,a=a.U;break}a=a.U}else if(b<0){if(a.W===void 0){a.W=new this.re(r,o),a.W.tt=a,a=a.W;break}a=a.W}else{a.l=o;return}}}}return this.i+=1,a}I(r,o){for(;r;){let n=this.v(r.u,o);if(n<0)r=r.W;else if(n>0)r=r.U;else return r}return r||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(r,o){let n=r.o;if(n===this.h&&(0,l.throwIteratorAccessError)(),this.i===1)return n.u=o,!0;if(n===this.h.U)return this.v(n.B().u,o)>0?(n.u=o,!0):!1;if(n===this.h.W)return this.v(n.L().u,o)<0?(n.u=o,!0):!1;let a=n.L().u;if(this.v(a,o)>=0)return!1;let f=n.B().u;return this.v(f,o)<=0?!1:(n.u=o,!0)}eraseElementByPos(r){if(r<0||r>this.i-1)throw new RangeError;let o=0,n=this;return this.oe(this.Y,function(a){return r===o?(n.V(a),!0):(o+=1,!1)}),this.i}eraseElementByKey(r){if(this.i===0)return!1;let o=this.I(this.Y,r);return o===this.h?!1:(this.V(o),!0)}eraseElementByIterator(r){let o=r.o;o===this.h&&(0,l.throwIteratorAccessError)();let n=o.W===void 0;return r.iteratorType===0?n&&r.next():(!n||o.U===void 0)&&r.next(),this.V(o),r}forEach(r){let o=0;for(let n of this)r(n,o++,this)}getElementByPos(r){if(r<0||r>this.i-1)throw new RangeError;let o,n=0;for(let a of this){if(n===r){o=a;break}n+=1}return o}getHeight(){if(this.i===0)return 0;let r=function(o){return o?Math.max(r(o.U),r(o.W))+1:0};return r(this.Y)}},s=h;e.default=s}),js=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=jt(),t=Ut(),l=class extends i.ContainerIterator{constructor(s,r,o){super(o),this.o=s,this.h=r,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,t.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,t.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,t.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,t.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let s=this.o,r=this.h.tt;if(s===this.h)return r?r.rt-1:0;let o=0;for(s.U&&(o+=s.U.rt);s!==r;){let n=s.tt;s===n.W&&(o+=1,n.U&&(o+=n.U.rt)),s=n}return o}},h=l;e.default=h}),Eu=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=h(Ms()),t=h(js()),l=Ut();function h(n){return n&&n.t?n:{default:n}}var s=class Us extends t.default{constructor(a,f,p,g){super(a,f,g),this.container=p}get pointer(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o.u}copy(){return new Us(this.o,this.h,this.container,this.iteratorType)}},r=class extends i.default{constructor(n=[],a,f){super(a,f);let p=this;n.forEach(function(g){p.insert(g)})}*K(n){n!==void 0&&(yield*this.K(n.U),yield n.u,yield*this.K(n.W))}begin(){return new s(this.h.U||this.h,this.h,this)}end(){return new s(this.h,this.h,this)}rBegin(){return new s(this.h.W||this.h,this.h,this,1)}rEnd(){return new s(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(n,a){return this.M(n,void 0,a)}find(n){let a=this.I(this.Y,n);return new s(a,this.h,this)}lowerBound(n){let a=this.X(this.Y,n);return new s(a,this.h,this)}upperBound(n){let a=this.Z(this.Y,n);return new s(a,this.h,this)}reverseLowerBound(n){let a=this.$(this.Y,n);return new s(a,this.h,this)}reverseUpperBound(n){let a=this.rr(this.Y,n);return new s(a,this.h,this)}union(n){let a=this;return n.forEach(function(f){a.insert(f)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},o=r;e.default=o}),Su=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=h(Ms()),t=h(js()),l=Ut();function h(n){return n&&n.t?n:{default:n}}var s=class Ls extends t.default{constructor(a,f,p,g){super(a,f,g),this.container=p}get pointer(){this.o===this.h&&(0,l.throwIteratorAccessError)();let a=this;return new Proxy([],{get(f,p){if(p==="0")return a.o.u;if(p==="1")return a.o.l},set(f,p,g){if(p!=="1")throw new TypeError("props must be 1");return a.o.l=g,!0}})}copy(){return new Ls(this.o,this.h,this.container,this.iteratorType)}},r=class extends i.default{constructor(n=[],a,f){super(a,f);let p=this;n.forEach(function(g){p.setElement(g[0],g[1])})}*K(n){n!==void 0&&(yield*this.K(n.U),yield[n.u,n.l],yield*this.K(n.W))}begin(){return new s(this.h.U||this.h,this.h,this)}end(){return new s(this.h,this.h,this)}rBegin(){return new s(this.h.W||this.h,this.h,this,1)}rEnd(){return new s(this.h,this.h,this,1)}front(){if(this.i===0)return;let n=this.h.U;return[n.u,n.l]}back(){if(this.i===0)return;let n=this.h.W;return[n.u,n.l]}lowerBound(n){let a=this.X(this.Y,n);return new s(a,this.h,this)}upperBound(n){let a=this.Z(this.Y,n);return new s(a,this.h,this)}reverseLowerBound(n){let a=this.$(this.Y,n);return new s(a,this.h,this)}reverseUpperBound(n){let a=this.rr(this.Y,n);return new s(a,this.h,this)}setElement(n,a,f){return this.M(n,a,f)}find(n){let a=this.I(this.Y,n);return new s(a,this.h,this)}getElementByKey(n){return this.I(this.Y,n).l}union(n){let a=this;return n.forEach(function(f){a.setElement(f[0],f[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},o=r;e.default=o}),Ns=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=i;function i(t){let l=typeof t;return l==="object"&&t!==null||l==="function"}}),Ws=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var i=jt(),t=h(Ns()),l=Ut();function h(o){return o&&o.t?o:{default:o}}var s=class extends i.ContainerIterator{constructor(o,n,a){super(a),this.o=o,this.h=n,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=s;var r=class extends i.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(o){let{L:n,B:a}=o;n.B=a,a.L=n,o===this.p&&(this.p=a),o===this._&&(this._=n),this.i-=1}M(o,n,a){a===void 0&&(a=(0,t.default)(o));let f;if(a){let p=o[this.HASH_TAG];if(p!==void 0)return this.H[p].l=n,this.i;Object.defineProperty(o,this.HASH_TAG,{value:this.H.length,configurable:!0}),f={u:o,l:n,L:this._,B:this.h},this.H.push(f)}else{let p=this.g[o];if(p)return p.l=n,this.i;f={u:o,l:n,L:this._,B:this.h},this.g[o]=f}return this.i===0?(this.p=f,this.h.B=f):this._.B=f,this._=f,this.h.L=f,++this.i}I(o,n){if(n===void 0&&(n=(0,t.default)(o)),n){let a=o[this.HASH_TAG];return a===void 0?this.h:this.H[a]}else return this.g[o]||this.h}clear(){let o=this.HASH_TAG;this.H.forEach(function(n){delete n.u[o]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(o,n){let a;if(n===void 0&&(n=(0,t.default)(o)),n){let f=o[this.HASH_TAG];if(f===void 0)return!1;delete o[this.HASH_TAG],a=this.H[f],delete this.H[f]}else{if(a=this.g[o],a===void 0)return!1;delete this.g[o]}return this.V(a),!0}eraseElementByIterator(o){let n=o.o;return n===this.h&&(0,l.throwIteratorAccessError)(),this.V(n),o.next()}eraseElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let n=this.p;for(;o--;)n=n.B;return this.V(n),this.i}};e.HashContainer=r}),Au=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Ws(),t=Ut(),l=class Ds extends i.HashContainerIterator{constructor(o,n,a,f){super(o,n,f),this.container=a}get pointer(){return this.o===this.h&&(0,t.throwIteratorAccessError)(),this.o.u}copy(){return new Ds(this.o,this.h,this.container,this.iteratorType)}},h=class extends i.HashContainer{constructor(r=[]){super();let o=this;r.forEach(function(n){o.insert(n)})}begin(){return new l(this.p,this.h,this)}end(){return new l(this.h,this.h,this)}rBegin(){return new l(this._,this.h,this,1)}rEnd(){return new l(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(r,o){return this.M(r,void 0,o)}getElementByPos(r){if(r<0||r>this.i-1)throw new RangeError;let o=this.p;for(;r--;)o=o.B;return o.u}find(r,o){let n=this.I(r,o);return new l(n,this.h,this)}forEach(r){let o=0,n=this.p;for(;n!==this.h;)r(n.u,o++,this),n=n.B}[Symbol.iterator](){return(function*(){let r=this.p;for(;r!==this.h;)yield r.u,r=r.B}).bind(this)()}},s=h;e.default=s}),Cu=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Ws(),t=h(Ns()),l=Ut();function h(n){return n&&n.t?n:{default:n}}var s=class Fs extends i.HashContainerIterator{constructor(a,f,p,g){super(a,f,g),this.container=p}get pointer(){this.o===this.h&&(0,l.throwIteratorAccessError)();let a=this;return new Proxy([],{get(f,p){if(p==="0")return a.o.u;if(p==="1")return a.o.l},set(f,p,g){if(p!=="1")throw new TypeError("props must be 1");return a.o.l=g,!0}})}copy(){return new Fs(this.o,this.h,this.container,this.iteratorType)}},r=class extends i.HashContainer{constructor(n=[]){super();let a=this;n.forEach(function(f){a.setElement(f[0],f[1])})}begin(){return new s(this.p,this.h,this)}end(){return new s(this.h,this.h,this)}rBegin(){return new s(this._,this.h,this,1)}rEnd(){return new s(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(n,a,f){return this.M(n,a,f)}getElementByKey(n,a){if(a===void 0&&(a=(0,t.default)(n)),a){let p=n[this.HASH_TAG];return p!==void 0?this.H[p].l:void 0}let f=this.g[n];return f?f.l:void 0}getElementByPos(n){if(n<0||n>this.i-1)throw new RangeError;let a=this.p;for(;n--;)a=a.B;return[a.u,a.l]}find(n,a){let f=this.I(n,a);return new s(f,this.h,this)}forEach(n){let a=0,f=this.p;for(;f!==this.h;)n([f.u,f.l],a++,this),f=f.B}[Symbol.iterator](){return(function*(){let n=this.p;for(;n!==this.h;)yield[n.u,n.l],n=n.B}).bind(this)()}},o=r;e.default=o}),ku=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return h.default}});var i=p(gu()),t=p(mu()),l=p(bu()),h=p(yu()),s=p(vu()),r=p(wu()),o=p(Eu()),n=p(Su()),a=p(Au()),f=p(Cu());function p(g){return g&&g.t?g:{default:g}}}),Iu=Se((e,i)=>{de(),ge(),pe();var t=ku().OrderedSet,l=xt()("number-allocator:trace"),h=xt()("number-allocator:error");function s(o,n){this.low=o,this.high=n}s.prototype.equals=function(o){return this.low===o.low&&this.high===o.high},s.prototype.compare=function(o){return this.lowa.compare(f)),l("Create"),this.clear()}r.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},r.prototype.alloc=function(){if(this.ss.size()===0)return l("alloc():empty"),null;let o=this.ss.begin(),n=o.pointer.low,a=o.pointer.high,f=n;return f+1<=a?this.ss.updateKeyByIterator(o,new s(n+1,a)):this.ss.eraseElementByPos(0),l("alloc():"+f),f},r.prototype.use=function(o){let n=new s(o,o),a=this.ss.lowerBound(n);if(!a.equals(this.ss.end())){let f=a.pointer.low,p=a.pointer.high;return a.pointer.equals(n)?(this.ss.eraseElementByIterator(a),l("use():"+o),!0):f>o?!1:f===o?(this.ss.updateKeyByIterator(a,new s(f+1,p)),l("use():"+o),!0):p===o?(this.ss.updateKeyByIterator(a,new s(f,p-1)),l("use():"+o),!0):(this.ss.updateKeyByIterator(a,new s(o+1,p)),this.ss.insert(new s(f,o-1)),l("use():"+o),!0)}return l("use():failed"),!1},r.prototype.free=function(o){if(othis.max){h("free():"+o+" is out of range");return}let n=new s(o,o),a=this.ss.upperBound(n);if(a.equals(this.ss.end())){if(a.equals(this.ss.begin())){this.ss.insert(n);return}a.pre();let f=a.pointer.high;a.pointer.high+1===o?this.ss.updateKeyByIterator(a,new s(f,o)):this.ss.insert(n)}else if(a.equals(this.ss.begin()))if(o+1===a.pointer.low){let f=a.pointer.high;this.ss.updateKeyByIterator(a,new s(o,f))}else this.ss.insert(n);else{let f=a.pointer.low,p=a.pointer.high;a.pre();let g=a.pointer.low;a.pointer.high+1===o?o+1===f?(this.ss.eraseElementByIterator(a),this.ss.updateKeyByIterator(a,new s(g,p))):this.ss.updateKeyByIterator(a,new s(g,o)):o+1===f?(this.ss.eraseElementByIterator(a.next()),this.ss.insert(new s(o,p))):this.ss.insert(n)}l("free():"+o)},r.prototype.clear=function(){l("clear()"),this.ss.clear(),this.ss.insert(new s(this.min,this.max))},r.prototype.intervalCount=function(){return this.ss.size()},r.prototype.dump=function(){console.log("length:"+this.ss.size());for(let o of this.ss)console.log(o)},i.exports=r}),$s=Se((e,i)=>{de(),ge(),pe();var t=Iu();i.exports.NumberAllocator=t}),Tu=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0});var i=pu(),t=$s(),l=class{constructor(h){h>0&&(this.aliasToTopic=new i.LRUCache({max:h}),this.topicToAlias={},this.numberAllocator=new t.NumberAllocator(1,h),this.max=h,this.length=0)}put(h,s){if(s===0||s>this.max)return!1;let r=this.aliasToTopic.get(s);return r&&delete this.topicToAlias[r],this.aliasToTopic.set(s,h),this.topicToAlias[h]=s,this.numberAllocator.use(s),this.length=this.aliasToTopic.size,!0}getTopicByAlias(h){return this.aliasToTopic.get(h)}getAliasByTopic(h){let s=this.topicToAlias[h];return typeof s<"u"&&this.aliasToTopic.get(s),s}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};e.default=l}),Ou=Se(e=>{de(),ge(),pe();var i=e&&e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0});var t=Yr(),l=i(Tu()),h=fr(),s=(r,o)=>{r.log("_handleConnack");let{options:n}=r,a=n.protocolVersion===5?o.reasonCode:o.returnCode;if(clearTimeout(r.connackTimer),delete r.topicAliasSend,o.properties){if(o.properties.topicAliasMaximum){if(o.properties.topicAliasMaximum>65535){r.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}o.properties.topicAliasMaximum>0&&(r.topicAliasSend=new l.default(o.properties.topicAliasMaximum))}o.properties.serverKeepAlive&&n.keepalive&&(n.keepalive=o.properties.serverKeepAlive),o.properties.maximumPacketSize&&(n.properties||(n.properties={}),n.properties.maximumPacketSize=o.properties.maximumPacketSize)}if(a===0)r.reconnecting=!1,r._onConnect(o);else if(a>0){let f=new h.ErrorWithReasonCode(`Connection refused: ${t.ReasonCodes[a]}`,a);r.emit("error",f)}};e.default=s}),Bu=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0});var i=(t,l,h)=>{t.log("handling pubrel packet");let s=typeof h<"u"?h:t.noop,{messageId:r}=l,o={cmd:"pubcomp",messageId:r};t.incomingStore.get(l,(n,a)=>{n?t._sendPacket(o,s):(t.emit("message",a.topic,a.payload,a),t.handleMessage(a,f=>{if(f)return s(f);t.incomingStore.del(a,t.noop),t._sendPacket(o,s)}))})};e.default=i}),Pu=Se(e=>{de(),ge(),pe();var i=e&&e.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0});var t=i(cu()),l=i(du()),h=i(Ou()),s=i(Yr()),r=i(Bu()),o=(n,a,f)=>{let{options:p}=n;if(p.protocolVersion===5&&p.properties&&p.properties.maximumPacketSize&&p.properties.maximumPacketSize{de(),ge(),pe();var i=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var t=i((cr(),De(or))),l=fr(),h=class{};e.TypedEventEmitter=h,(0,l.applyMixin)(h,t.default)}),Qr=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var i=()=>{var s;return typeof window<"u"?typeof navigator<"u"&&((s=navigator.userAgent)===null||s===void 0?void 0:s.toLowerCase().indexOf(" electron/"))>-1&&Le!=null&&Le.versions?!Object.prototype.hasOwnProperty.call(Le.versions,"electron"):typeof window.document<"u":!1},t=()=>{var s,r;return!!(typeof self=="object"&&!((r=(s=self?.constructor)===null||s===void 0?void 0:s.name)===null||r===void 0)&&r.includes("WorkerGlobalScope"))},l=()=>typeof navigator<"u"&&navigator.product==="ReactNative",h=i()||t()||l();e.isWebWorker=t(),e.isReactNativeBrowser=l(),e.default=h}),xu=Se((e,i)=>{de(),ge(),pe(),function(t,l){typeof e=="object"&&typeof i<"u"?l(e):typeof define=="function"&&define.amd?define(["exports"],l):(t=typeof globalThis<"u"?globalThis:t||self,l(t.fastUniqueNumbers={}))}(e,function(t){var l=function(m){return function(b){var v=m(b);return b.add(v),v}},h=function(m){return function(b,v){return m.set(b,v),v}},s=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,r=536870912,o=r*2,n=function(m,b){return function(v){var C=b.get(v),N=C===void 0?v.size:Cs)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;v.has(N);)N=Math.floor(Math.random()*s);return m(v,N)}},a=new WeakMap,f=h(a),p=n(f,a),g=l(p);t.addUniqueNumber=g,t.generateUniqueNumber=p})}),Mu=Se((e,i)=>{de(),ge(),pe(),function(t,l){typeof e=="object"&&typeof i<"u"?l(e,xu()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],l):(t=typeof globalThis<"u"?globalThis:t||self,l(t.workerTimersBroker={},t.fastUniqueNumbers))}(e,function(t,l){var h=function(o){return o.method!==void 0&&o.method==="call"},s=function(o){return o.error===null&&typeof o.id=="number"},r=function(o){var n=new Map([[0,function(){}]]),a=new Map([[0,function(){}]]),f=new Map,p=new Worker(o);p.addEventListener("message",function(C){var N=C.data;if(h(N)){var B=N.params,w=B.timerId,U=B.timerType;if(U==="interval"){var q=n.get(w);if(typeof q=="number"){var I=f.get(q);if(I===void 0||I.timerId!==w||I.timerType!==U)throw new Error("The timer is in an undefined state.")}else if(typeof q<"u")q();else throw new Error("The timer is in an undefined state.")}else if(U==="timeout"){var k=a.get(w);if(typeof k=="number"){var R=f.get(k);if(R===void 0||R.timerId!==w||R.timerType!==U)throw new Error("The timer is in an undefined state.")}else if(typeof k<"u")k(),a.delete(w);else throw new Error("The timer is in an undefined state.")}}else if(s(N)){var Q=N.id,te=f.get(Q);if(te===void 0)throw new Error("The timer is in an undefined state.");var se=te.timerId,T=te.timerType;f.delete(Q),T==="interval"?n.delete(se):a.delete(se)}else{var K=N.error.message;throw new Error(K)}});var g=function(C){var N=l.generateUniqueNumber(f);f.set(N,{timerId:C,timerType:"interval"}),n.set(C,N),p.postMessage({id:N,method:"clear",params:{timerId:C,timerType:"interval"}})},m=function(C){var N=l.generateUniqueNumber(f);f.set(N,{timerId:C,timerType:"timeout"}),a.set(C,N),p.postMessage({id:N,method:"clear",params:{timerId:C,timerType:"timeout"}})},b=function(C){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,B=l.generateUniqueNumber(n);return n.set(B,function(){C(),typeof n.get(B)=="function"&&p.postMessage({id:null,method:"set",params:{delay:N,now:performance.now(),timerId:B,timerType:"interval"}})}),p.postMessage({id:null,method:"set",params:{delay:N,now:performance.now(),timerId:B,timerType:"interval"}}),B},v=function(C){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,B=l.generateUniqueNumber(a);return a.set(B,C),p.postMessage({id:null,method:"set",params:{delay:N,now:performance.now(),timerId:B,timerType:"timeout"}}),B};return{clearInterval:g,clearTimeout:m,setInterval:b,setTimeout:v}};t.load=r})}),ju=Se((e,i)=>{de(),ge(),pe(),function(t,l){typeof e=="object"&&typeof i<"u"?l(e,Mu()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],l):(t=typeof globalThis<"u"?globalThis:t||self,l(t.workerTimers={},t.workerTimersBroker))}(e,function(t,l){var h=function(p,g){var m=null;return function(){if(m!==null)return m;var b=new Blob([g],{type:"application/javascript; charset=utf-8"}),v=URL.createObjectURL(b);return m=p(v),setTimeout(function(){return URL.revokeObjectURL(v)}),m}},s=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,r=h(l.load,s),o=function(p){return r().clearInterval(p)},n=function(p){return r().clearTimeout(p)},a=function(){var p;return(p=r()).setInterval.apply(p,arguments)},f=function(){var p;return(p=r()).setTimeout.apply(p,arguments)};t.clearInterval=o,t.clearTimeout=n,t.setInterval=a,t.setTimeout=f})}),Uu=Se(e=>{de(),ge(),pe();var i=e&&e.__createBinding||(Object.create?function(a,f,p,g){g===void 0&&(g=p);var m=Object.getOwnPropertyDescriptor(f,p);(!m||("get"in m?!f.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return f[p]}}),Object.defineProperty(a,g,m)}:function(a,f,p,g){g===void 0&&(g=p),a[g]=f[p]}),t=e&&e.__setModuleDefault||(Object.create?function(a,f){Object.defineProperty(a,"default",{enumerable:!0,value:f})}:function(a,f){a.default=f}),l=e&&e.__importStar||function(a){if(a&&a.__esModule)return a;var f={};if(a!=null)for(var p in a)p!=="default"&&Object.prototype.hasOwnProperty.call(a,p)&&i(f,a,p);return t(f,a),f};Object.defineProperty(e,"__esModule",{value:!0});var h=l(Qr()),s=ju(),r={set:s.setInterval,clear:s.clearInterval},o={set:(a,f)=>setInterval(a,f),clear:a=>clearInterval(a)},n=a=>{switch(a){case"native":return o;case"worker":return r;case"auto":default:return h.default&&!h.isWebWorker&&!h.isReactNativeBrowser?r:o}};e.default=n}),qs=Se(e=>{de(),ge(),pe();var i=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0});var t=i(Uu()),l=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(h,s){this.destroyed=!1,this.client=h,this.timer=typeof s=="object"&&"set"in s&&"clear"in s?s:(0,t.default)(s),this.setKeepalive(h.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(h){if(h*=1e3,isNaN(h)||h<=0||h>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${h}`);this._keepalive=h,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${h}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let h=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+h,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};e.default=l}),Ci=Se(e=>{de(),ge(),pe();var i=e&&e.__createBinding||(Object.create?function(q,I,k,R){R===void 0&&(R=k);var Q=Object.getOwnPropertyDescriptor(I,k);(!Q||("get"in Q?!I.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return I[k]}}),Object.defineProperty(q,R,Q)}:function(q,I,k,R){R===void 0&&(R=k),q[R]=I[k]}),t=e&&e.__setModuleDefault||(Object.create?function(q,I){Object.defineProperty(q,"default",{enumerable:!0,value:I})}:function(q,I){q.default=I}),l=e&&e.__importStar||function(q){if(q&&q.__esModule)return q;var I={};if(q!=null)for(var k in q)k!=="default"&&Object.prototype.hasOwnProperty.call(q,k)&&i(I,q,k);return t(I,q),I},h=e&&e.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(e,"__esModule",{value:!0});var s=h(Cl()),r=h(au()),o=h(ks()),n=sr(),a=h(uu()),f=l(hu()),p=h(xt()),g=h(Is()),m=h(Pu()),b=fr(),v=Ru(),C=h(qs()),N=l(Qr()),B=globalThis.setImmediate||((...q)=>{let I=q.shift();(0,b.nextTick)(()=>{I(...q)})}),w={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},U=class ki extends v.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(I,k){super(),this.options=k||{};for(let R in w)typeof this.options[R]>"u"?this.options[R]=w[R]:this.options[R]=k[R];this.log=this.options.log||(0,p.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",ki.VERSION),N.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",N.default?"browser":"node"),this.log("MqttClient :: options.protocol",k.protocol),this.log("MqttClient :: options.protocolVersion",k.protocolVersion),this.log("MqttClient :: options.username",k.username),this.log("MqttClient :: options.keepalive",k.keepalive),this.log("MqttClient :: options.reconnectPeriod",k.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",k.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",k.properties?k.properties.topicAliasMaximum:void 0),this.options.clientId=typeof k.clientId=="string"?k.clientId:ki.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=k.protocolVersion===5&&k.customHandleAcks?k.customHandleAcks:(...R)=>{R[3](null,0)},this.options.writeCache||(r.default.writeToStream.cacheNumbers=!1),this.streamBuilder=I,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new o.default:this.options.messageIdProvider,this.outgoingStore=k.outgoingStore||new g.default,this.incomingStore=k.incomingStore||new g.default,this.queueQoSZero=k.queueQoSZero===void 0?!0:k.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,k.properties&&k.properties.topicAliasMaximum>0&&(k.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new s.default(k.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:R}=this,Q=()=>{let te=R.shift();this.log("deliver :: entry %o",te);let se=null;if(!te){this._resubscribe();return}se=te.packet,this.log("deliver :: call _sendPacket for %o",se);let T=!0;se.messageId&&se.messageId!==0&&(this.messageIdProvider.register(se.messageId)||(T=!1)),T?this._sendPacket(se,K=>{te.cb&&te.cb(K),Q()}):(this.log("messageId: %d has already used. The message is skipped and removed.",se.messageId),Q())};this.log("connect :: sending queued packets"),Q()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(I,k){k()}handleMessage(I,k){k()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var I;let k=new n.Writable,R=r.default.parser(this.options),Q=null,te=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new g.default,this.outgoingStore=this.options.outgoingStore||new g.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),R.on("packet",J=>{this.log("parser :: on packet push to packets array."),te.push(J)});let se=()=>{this.log("work :: getting next packet in queue");let J=te.shift();if(J)this.log("work :: packet pulled from queue"),(0,m.default)(this,J,T);else{this.log("work :: no packets in queue");let _e=Q;Q=null,this.log("work :: done flag is %s",!!_e),_e&&_e()}},T=()=>{if(te.length)(0,b.nextTick)(se);else{let J=Q;Q=null,J()}};k._write=(J,_e,he)=>{Q=he,this.log("writable stream :: parsing buffer"),R.parse(J),se()};let K=J=>{this.log("streamErrorHandler :: error",J.message),J.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",J)):this.noop(J)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(k),this.stream.on("error",K),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let re={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(re.will=Object.assign(Object.assign({},this.options.will),{payload:(I=this.options.will)===null||I===void 0?void 0:I.payload})),this.topicAliasRecv&&(re.properties||(re.properties={}),this.topicAliasRecv&&(re.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(re),R.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.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"){let J=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(J)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(I,k,R,Q){this.log("publish :: message `%s` to topic `%s`",k,I);let{options:te}=this;typeof R=="function"&&(Q=R,R=null),R=R||{},R=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),R);let{qos:se,retain:T,dup:K,properties:re,cbStorePut:J}=R;if(this._checkDisconnecting(Q))return this;let _e=()=>{let he=0;if((se===1||se===2)&&(he=this._nextId(),he===null))return this.log("No messageId left"),!1;let V={cmd:"publish",topic:I,payload:k,qos:se,retain:T,messageId:he,dup:K};switch(te.protocolVersion===5&&(V.properties=re),this.log("publish :: qos",se),se){case 1:case 2:this.outgoing[V.messageId]={volatile:!1,cb:Q||this.noop},this.log("MqttClient:publish: packet cmd: %s",V.cmd),this._sendPacket(V,void 0,J);break;default:this.log("MqttClient:publish: packet cmd: %s",V.cmd),this._sendPacket(V,Q,J);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!_e())&&this._storeProcessingQueue.push({invoke:_e,cbStorePut:R.cbStorePut,callback:Q}),this}publishAsync(I,k,R){return new Promise((Q,te)=>{this.publish(I,k,R,(se,T)=>{se?te(se):Q(T)})})}subscribe(I,k,R){let Q=this.options.protocolVersion;typeof k=="function"&&(R=k),R=R||this.noop;let te=!1,se=[];typeof I=="string"?(I=[I],se=I):Array.isArray(I)?se=I:typeof I=="object"&&(te=I.resubscribe,delete I.resubscribe,se=Object.keys(I));let T=f.validateTopics(se);if(T!==null)return B(R,new Error(`Invalid topic ${T}`)),this;if(this._checkDisconnecting(R))return this.log("subscribe: discconecting true"),this;let K={qos:0};Q===5&&(K.nl=!1,K.rap=!1,K.rh=0),k=Object.assign(Object.assign({},K),k);let re=k.properties,J=[],_e=(V,Ae)=>{if(Ae=Ae||k,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,V)||this._resubscribeTopics[V].qos{this.log("subscribe: array topic %s",V),_e(V)}):Object.keys(I).forEach(V=>{this.log("subscribe: object topic %s, %o",V,I[V]),_e(V,I[V])}),!J.length)return R(null,[]),this;let he=()=>{let V=this._nextId();if(V===null)return this.log("No messageId left"),!1;let Ae={cmd:"subscribe",subscriptions:J,messageId:V};if(re&&(Ae.properties=re),this.options.resubscribe){this.log("subscribe :: resubscribe true");let ie=[];J.forEach(X=>{if(this.options.reconnectPeriod>0){let O={qos:X.qos};Q===5&&(O.nl=X.nl||!1,O.rap=X.rap||!1,O.rh=X.rh||0,O.properties=X.properties),this._resubscribeTopics[X.topic]=O,ie.push(X.topic)}}),this.messageIdToTopic[Ae.messageId]=ie}return this.outgoing[Ae.messageId]={volatile:!0,cb(ie,X){if(!ie){let{granted:O}=X;for(let G=0;G0||!he())&&this._storeProcessingQueue.push({invoke:he,callback:R}),this}subscribeAsync(I,k){return new Promise((R,Q)=>{this.subscribe(I,k,(te,se)=>{te?Q(te):R(se)})})}unsubscribe(I,k,R){typeof I=="string"&&(I=[I]),typeof k=="function"&&(R=k),R=R||this.noop;let Q=f.validateTopics(I);if(Q!==null)return B(R,new Error(`Invalid topic ${Q}`)),this;if(this._checkDisconnecting(R))return this;let te=()=>{let se=this._nextId();if(se===null)return this.log("No messageId left"),!1;let T={cmd:"unsubscribe",messageId:se,unsubscriptions:[]};return typeof I=="string"?T.unsubscriptions=[I]:Array.isArray(I)&&(T.unsubscriptions=I),this.options.resubscribe&&T.unsubscriptions.forEach(K=>{delete this._resubscribeTopics[K]}),typeof k=="object"&&k.properties&&(T.properties=k.properties),this.outgoing[T.messageId]={volatile:!0,cb:R},this.log("unsubscribe: call _sendPacket"),this._sendPacket(T),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!te())&&this._storeProcessingQueue.push({invoke:te,callback:R}),this}unsubscribeAsync(I,k){return new Promise((R,Q)=>{this.unsubscribe(I,k,(te,se)=>{te?Q(te):R(se)})})}end(I,k,R){this.log("end :: (%s)",this.options.clientId),(I==null||typeof I!="boolean")&&(R=R||k,k=I,I=!1),typeof k!="object"&&(R=R||k,k=null),this.log("end :: cb? %s",!!R),(!R||typeof R!="function")&&(R=this.noop);let Q=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(se=>{this.outgoingStore.close(T=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),R){let K=se||T;this.log("end :: closeStores: invoking callback with args"),R(K)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},te=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,I),this._cleanUp(I,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,b.nextTick)(Q)},k)};return this.disconnecting?(R(),this):(this._clearReconnect(),this.disconnecting=!0,!I&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,te,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),te()),this)}endAsync(I,k){return new Promise((R,Q)=>{this.end(I,k,te=>{te?Q(te):R()})})}removeOutgoingMessage(I){if(this.outgoing[I]){let{cb:k}=this.outgoing[I];this._removeOutgoingAndStoreMessage(I,()=>{k(new Error("Message removed"))})}return this}reconnect(I){this.log("client reconnect");let k=()=>{I?(this.options.incomingStore=I.incomingStore,this.options.outgoingStore=I.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new g.default,this.outgoingStore=this.options.outgoingStore||new g.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=k:k(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(I=>{this.outgoing[I].volatile&&typeof this.outgoing[I].cb=="function"&&(this.outgoing[I].cb(new Error("Connection closed")),delete this.outgoing[I])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(I=>{typeof this.outgoing[I].cb=="function"&&(this.outgoing[I].cb(new Error("Connection closed")),delete this.outgoing[I])}))}_removeTopicAliasAndRecoverTopicName(I){let k;I.properties&&(k=I.properties.topicAlias);let R=I.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",k,R),R.length===0){if(typeof k>"u")return new Error("Unregistered Topic Alias");if(R=this.topicAliasSend.getTopicByAlias(k),typeof R>"u")return new Error("Unregistered Topic Alias");I.topic=R}k&&delete I.properties.topicAlias}_checkDisconnecting(I){return this.disconnecting&&(I&&I!==this.noop?I(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(I,k,R={}){if(k&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",k)),this.log("_cleanUp :: forced? %s",I),I)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let Q=Object.assign({cmd:"disconnect"},R);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(Q,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),B(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),k&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",k),k())}_storeAndSend(I,k,R){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",I.cmd);let Q=I,te;if(Q.cmd==="publish"&&(Q=(0,a.default)(I),te=this._removeTopicAliasAndRecoverTopicName(Q),te))return k&&k(te);this.outgoingStore.put(Q,se=>{if(se)return k&&k(se);R(),this._writePacket(I,k)})}_applyTopicAlias(I){if(this.options.protocolVersion===5&&I.cmd==="publish"){let k;I.properties&&(k=I.properties.topicAlias);let R=I.topic.toString();if(this.topicAliasSend)if(k){if(R.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",R,k),!this.topicAliasSend.put(R,k)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",R,k),new Error("Sending Topic Alias out of range")}else R.length!==0&&(this.options.autoAssignTopicAlias?(k=this.topicAliasSend.getAliasByTopic(R),k?(I.topic="",I.properties=Object.assign(Object.assign({},I.properties),{topicAlias:k}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",R,k)):(k=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(R,k),I.properties=Object.assign(Object.assign({},I.properties),{topicAlias:k}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",R,k))):this.options.autoUseTopicAlias&&(k=this.topicAliasSend.getAliasByTopic(R),k&&(I.topic="",I.properties=Object.assign(Object.assign({},I.properties),{topicAlias:k}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",R,k))));else if(k)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",R,k),new Error("Sending Topic Alias out of range")}}_noop(I){this.log("noop ::",I)}_writePacket(I,k){this.log("_writePacket :: packet: %O",I),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",I),this.log("_writePacket :: writing to stream");let R=r.default.writeToStream(I,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",R),!R&&k&&k!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",k)):k&&(this.log("_writePacket :: invoking cb"),k())}_sendPacket(I,k,R,Q){this.log("_sendPacket :: (%s) :: start",this.options.clientId),R=R||this.noop,k=k||this.noop;let te=this._applyTopicAlias(I);if(te){k(te);return}if(!this.connected){if(I.cmd==="auth"){this._writePacket(I,k);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(I,k,R);return}if(Q){this._writePacket(I,k);return}switch(I.cmd){case"publish":break;case"pubrel":this._storeAndSend(I,k,R);return;default:this._writePacket(I,k);return}switch(I.qos){case 2:case 1:this._storeAndSend(I,k,R);break;case 0:default:this._writePacket(I,k);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(I,k,R){this.log("_storePacket :: packet: %o",I),this.log("_storePacket :: cb? %s",!!k),R=R||this.noop;let Q=I;if(Q.cmd==="publish"){Q=(0,a.default)(I);let se=this._removeTopicAliasAndRecoverTopicName(Q);if(se)return k&&k(se)}let te=Q.qos||0;te===0&&this.queueQoSZero||Q.cmd!=="publish"?this.queue.push({packet:Q,cb:k}):te>0?(k=this.outgoing[Q.messageId]?this.outgoing[Q.messageId].cb:null,this.outgoingStore.put(Q,se=>{if(se)return k&&k(se);R()})):k&&k(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new C.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(I=!1){this.keepaliveManager&&this.options.keepalive&&(I||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let I=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&I.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let k=0;k{let R=this.outgoingStore.createStream(),Q=()=>{R.destroy(),R=null,this._flushStoreProcessingQueue(),te()},te=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",Q),R.on("error",T=>{te(),this._flushStoreProcessingQueue(),this.removeListener("close",Q),this.emit("error",T)});let se=()=>{if(!R)return;let T=R.read(1),K;if(!T){R.once("readable",se);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[T.messageId]){se();return}!this.disconnecting&&!this.reconnectTimer?(K=this.outgoing[T.messageId]?this.outgoing[T.messageId].cb:null,this.outgoing[T.messageId]={volatile:!1,cb(re,J){K&&K(re,J),se()}},this._packetIdsDuringStoreProcessing[T.messageId]=!0,this.messageIdProvider.register(T.messageId)?this._sendPacket(T,void 0,void 0,!0):this.log("messageId: %d has already used.",T.messageId)):R.destroy&&R.destroy()};R.on("end",()=>{let T=!0;for(let K in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[K]){T=!1;break}this.removeListener("close",Q),T?(te(),this._invokeAllStoreProcessingQueue(),this.emit("connect",I)):k()}),se()};k()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let I=this._storeProcessingQueue[0];if(I&&I.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let I of this._storeProcessingQueue)I.cbStorePut&&I.cbStorePut(new Error("Connection closed")),I.callback&&I.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(I,k){delete this.outgoing[I],this.outgoingStore.del({messageId:I},(R,Q)=>{k(R,Q),this.messageIdProvider.deallocate(I),this._invokeStoreProcessingQueue()})}};U.VERSION=b.MQTTJS_VERSION,e.default=U}),Lu=Se(e=>{de(),ge(),pe(),Object.defineProperty(e,"__esModule",{value:!0});var i=$s(),t=class{constructor(){this.numberAllocator=new i.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(l){return this.numberAllocator.use(l)}deallocate(l){this.numberAllocator.free(l)}clear(){this.numberAllocator.clear()}};e.default=t});function Yt(e){throw new RangeError(Hs[e])}function bo(e,i){let t=e.split("@"),l="";t.length>1&&(l=t[0]+"@",e=t[1]);let h=function(s,r){let o=[],n=s.length;for(;n--;)o[n]=r(s[n]);return o}((e=e.replace(Vs,".")).split("."),i).join(".");return l+h}function yo(e){let i=[],t=0,l=e.length;for(;t=55296&&h<=56319&&t{de(),ge(),pe(),vo=/^xn--/,wo=/[^\0-\x7E]/,Vs=/[\x2E\u3002\uFF0E\uFF61]/g,Hs={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},gt=Math.floor,kr=String.fromCharCode,on=function(e,i){return e+22+75*(e<26)-((i!=0)<<5)},sn=function(e,i,t){let l=0;for(e=t?gt(e/700):e>>1,e+=gt(e/i);e>455;l+=36)e=gt(e/35);return gt(l+36*e/(e+38))},an=function(e){let i=[],t=e.length,l=0,h=128,s=72,r=e.lastIndexOf("-");r<0&&(r=0);for(let n=0;n=128&&Yt("not-basic"),i.push(e.charCodeAt(n));for(let n=r>0?r+1:0;n=t&&Yt("invalid-input");let m=(o=e.charCodeAt(n++))-48<10?o-22:o-65<26?o-65:o-97<26?o-97:36;(m>=36||m>gt((2147483647-l)/p))&&Yt("overflow"),l+=m*p;let b=g<=s?1:g>=s+26?26:g-s;if(mgt(2147483647/v)&&Yt("overflow"),p*=v}let f=i.length+1;s=sn(l-a,f,a==0),gt(l/f)>2147483647-h&&Yt("overflow"),h+=gt(l/f),l%=f,i.splice(l++,0,h)}var o;return String.fromCodePoint(...i)},ln=function(e){let i=[],t=(e=yo(e)).length,l=128,h=0,s=72;for(let n of e)n<128&&i.push(kr(n));let r=i.length,o=r;for(r&&i.push("-");o=l&&fgt((2147483647-h)/a)&&Yt("overflow"),h+=(n-l)*a,l=n;for(let f of e)if(f2147483647&&Yt("overflow"),f==l){let p=h;for(let g=36;;g+=36){let m=g<=s?1:g>=s+26?26:g-s;if(pString.fromCodePoint(...e)},decode:an,encode:ln,toASCII:function(e){return bo(e,function(i){return wo.test(i)?"xn--"+ln(i):i})},toUnicode:function(e){return bo(e,function(i){return vo.test(i)?an(i.slice(4).toLowerCase()):i})}},Ft.decode,Ft.encode,Ft.toASCII,Ft.toUnicode,Ft.ucs2,Ft.version});function Wu(e,i){return Object.prototype.hasOwnProperty.call(e,i)}var _o,ar,Eo,wt,Du=tt(()=>{de(),ge(),pe(),_o=function(e,i,t,l){i=i||"&",t=t||"=";var h={};if(typeof e!="string"||e.length===0)return h;var s=/\+/g;e=e.split(i);var r=1e3;l&&typeof l.maxKeys=="number"&&(r=l.maxKeys);var o=e.length;r>0&&o>r&&(o=r);for(var n=0;n=0?(a=m.substr(0,b),f=m.substr(b+1)):(a=m,f=""),p=decodeURIComponent(a),g=decodeURIComponent(f),Wu(h,p)?Array.isArray(h[p])?h[p].push(g):h[p]=[h[p],g]:h[p]=g}return h},ar=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},Eo=function(e,i,t,l){return i=i||"&",t=t||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(h){var s=encodeURIComponent(ar(h))+t;return Array.isArray(e[h])?e[h].map(function(r){return s+encodeURIComponent(ar(r))}).join(i):s+encodeURIComponent(ar(e[h]))}).join(i):l?encodeURIComponent(ar(l))+t+encodeURIComponent(ar(e)):""},wt={},wt.decode=wt.parse=_o,wt.encode=wt.stringify=Eo,wt.decode,wt.encode,wt.parse,wt.stringify});function Ii(){throw new Error("setTimeout has not been defined")}function Ti(){throw new Error("clearTimeout has not been defined")}function zs(e){if(kt===setTimeout)return setTimeout(e,0);if((kt===Ii||!kt)&&setTimeout)return kt=setTimeout,setTimeout(e,0);try{return kt(e,0)}catch{try{return kt.call(null,e,0)}catch{return kt.call(this||tr,e,0)}}}function Fu(){rr&&Xt&&(rr=!1,Xt.length?Et=Xt.concat(Et):_r=-1,Et.length&&Ks())}function Ks(){if(!rr){var e=zs(Fu);rr=!0;for(var i=Et.length;i;){for(Xt=Et,Et=[];++_r{de(),ge(),pe(),tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Ke=Ao={},function(){try{kt=typeof setTimeout=="function"?setTimeout:Ii}catch{kt=Ii}try{It=typeof clearTimeout=="function"?clearTimeout:Ti}catch{It=Ti}}(),Et=[],rr=!1,_r=-1,Ke.nextTick=function(e){var i=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t1)for(var N=1;N{de(),ge(),pe(),Ur={},Oi=!1,Gt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,$e=qu(),$e.platform="browser",$e.addListener,$e.argv,$e.binding,$e.browser,$e.chdir,$e.cwd,$e.emit,$e.env,$e.listeners,$e.nextTick,$e.off,$e.on,$e.once,$e.prependListener,$e.prependOnceListener,$e.removeAllListeners,$e.removeListener,$e.title,$e.umask,$e.version,$e.versions});function Vu(){if(Bi)return Lr;Bi=!0;var e=$e;function i(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function t(s,r){for(var o="",n=0,a=-1,f=0,p,g=0;g<=s.length;++g){if(g2){var m=o.lastIndexOf("/");if(m!==o.length-1){m===-1?(o="",n=0):(o=o.slice(0,m),n=o.length-1-o.lastIndexOf("/")),a=g,f=0;continue}}else if(o.length===2||o.length===1){o="",n=0,a=g,f=0;continue}}r&&(o.length>0?o+="/..":o="..",n=2)}else o.length>0?o+="/"+s.slice(a+1,g):o=s.slice(a+1,g),n=g-a-1;a=g,f=0}else p===46&&f!==-1?++f:f=-1}return o}function l(s,r){var o=r.dir||r.root,n=r.base||(r.name||"")+(r.ext||"");return o?o===r.root?o+n:o+s+n:n}var h={resolve:function(){for(var s="",r=!1,o,n=arguments.length-1;n>=-1&&!r;n--){var a;n>=0?a=arguments[n]:(o===void 0&&(o=e.cwd()),a=o),i(a),a.length!==0&&(s=a+"/"+s,r=a.charCodeAt(0)===47)}return s=t(s,!r),r?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(s){if(i(s),s.length===0)return".";var r=s.charCodeAt(0)===47,o=s.charCodeAt(s.length-1)===47;return s=t(s,!r),s.length===0&&!r&&(s="."),s.length>0&&o&&(s+="/"),r?"/"+s:s},isAbsolute:function(s){return i(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,r=0;r0&&(s===void 0?s=o:s+="/"+o)}return s===void 0?".":h.normalize(s)},relative:function(s,r){if(i(s),i(r),s===r||(s=h.resolve(s),r=h.resolve(r),s===r))return"";for(var o=1;om){if(r.charCodeAt(f+v)===47)return r.slice(f+v+1);if(v===0)return r.slice(f+v)}else a>m&&(s.charCodeAt(o+v)===47?b=v:v===0&&(b=0));break}var C=s.charCodeAt(o+v),N=r.charCodeAt(f+v);if(C!==N)break;C===47&&(b=v)}var B="";for(v=o+b+1;v<=n;++v)(v===n||s.charCodeAt(v)===47)&&(B.length===0?B+="..":B+="/..");return B.length>0?B+r.slice(f+b):(f+=b,r.charCodeAt(f)===47&&++f,r.slice(f))},_makeLong:function(s){return s},dirname:function(s){if(i(s),s.length===0)return".";for(var r=s.charCodeAt(0),o=r===47,n=-1,a=!0,f=s.length-1;f>=1;--f)if(r=s.charCodeAt(f),r===47){if(!a){n=f;break}}else a=!1;return n===-1?o?"/":".":o&&n===1?"//":s.slice(0,n)},basename:function(s,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(s);var o=0,n=-1,a=!0,f;if(r!==void 0&&r.length>0&&r.length<=s.length){if(r.length===s.length&&r===s)return"";var p=r.length-1,g=-1;for(f=s.length-1;f>=0;--f){var m=s.charCodeAt(f);if(m===47){if(!a){o=f+1;break}}else g===-1&&(a=!1,g=f+1),p>=0&&(m===r.charCodeAt(p)?--p===-1&&(n=f):(p=-1,n=g))}return o===n?n=g:n===-1&&(n=s.length),s.slice(o,n)}else{for(f=s.length-1;f>=0;--f)if(s.charCodeAt(f)===47){if(!a){o=f+1;break}}else n===-1&&(a=!1,n=f+1);return n===-1?"":s.slice(o,n)}},extname:function(s){i(s);for(var r=-1,o=0,n=-1,a=!0,f=0,p=s.length-1;p>=0;--p){var g=s.charCodeAt(p);if(g===47){if(!a){o=p+1;break}continue}n===-1&&(a=!1,n=p+1),g===46?r===-1?r=p:f!==1&&(f=1):r!==-1&&(f=-1)}return r===-1||n===-1||f===0||f===1&&r===n-1&&r===o+1?"":s.slice(r,n)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return l("/",s)},parse:function(s){i(s);var r={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return r;var o=s.charCodeAt(0),n=o===47,a;n?(r.root="/",a=1):a=0;for(var f=-1,p=0,g=-1,m=!0,b=s.length-1,v=0;b>=a;--b){if(o=s.charCodeAt(b),o===47){if(!m){p=b+1;break}continue}g===-1&&(m=!1,g=b+1),o===46?f===-1?f=b:v!==1&&(v=1):f!==-1&&(v=-1)}return f===-1||g===-1||v===0||v===1&&f===g-1&&f===p+1?g!==-1&&(p===0&&n?r.base=r.name=s.slice(1,g):r.base=r.name=s.slice(p,g)):(p===0&&n?(r.name=s.slice(1,f),r.base=s.slice(1,g)):(r.name=s.slice(p,f),r.base=s.slice(p,g)),r.ext=s.slice(f,g)),p>0?r.dir=s.slice(0,p-1):n&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return h.posix=h,Lr=h,Lr}var Lr,Bi,Pi,Hu=tt(()=>{de(),ge(),pe(),Ys(),Lr={},Bi=!1,Pi=Vu()}),Qs={};nr(Qs,{URL:()=>da,Url:()=>la,default:()=>Ne,fileURLToPath:()=>Gs,format:()=>ua,parse:()=>fa,pathToFileURL:()=>Js,resolve:()=>ha,resolveObject:()=>ca});function pt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function mr(e,i,t){if(e&&bt.isObject(e)&&e instanceof pt)return e;var l=new pt;return l.parse(e,i,t),l}function zu(){if(Ri)return Nr;Ri=!0;var e=He;function i(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function t(s,r){for(var o="",n=0,a=-1,f=0,p,g=0;g<=s.length;++g){if(g2){var m=o.lastIndexOf("/");if(m!==o.length-1){m===-1?(o="",n=0):(o=o.slice(0,m),n=o.length-1-o.lastIndexOf("/")),a=g,f=0;continue}}else if(o.length===2||o.length===1){o="",n=0,a=g,f=0;continue}}r&&(o.length>0?o+="/..":o="..",n=2)}else o.length>0?o+="/"+s.slice(a+1,g):o=s.slice(a+1,g),n=g-a-1;a=g,f=0}else p===46&&f!==-1?++f:f=-1}return o}function l(s,r){var o=r.dir||r.root,n=r.base||(r.name||"")+(r.ext||"");return o?o===r.root?o+n:o+s+n:n}var h={resolve:function(){for(var s="",r=!1,o,n=arguments.length-1;n>=-1&&!r;n--){var a;n>=0?a=arguments[n]:(o===void 0&&(o=e.cwd()),a=o),i(a),a.length!==0&&(s=a+"/"+s,r=a.charCodeAt(0)===47)}return s=t(s,!r),r?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(s){if(i(s),s.length===0)return".";var r=s.charCodeAt(0)===47,o=s.charCodeAt(s.length-1)===47;return s=t(s,!r),s.length===0&&!r&&(s="."),s.length>0&&o&&(s+="/"),r?"/"+s:s},isAbsolute:function(s){return i(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,r=0;r0&&(s===void 0?s=o:s+="/"+o)}return s===void 0?".":h.normalize(s)},relative:function(s,r){if(i(s),i(r),s===r||(s=h.resolve(s),r=h.resolve(r),s===r))return"";for(var o=1;om){if(r.charCodeAt(f+v)===47)return r.slice(f+v+1);if(v===0)return r.slice(f+v)}else a>m&&(s.charCodeAt(o+v)===47?b=v:v===0&&(b=0));break}var C=s.charCodeAt(o+v),N=r.charCodeAt(f+v);if(C!==N)break;C===47&&(b=v)}var B="";for(v=o+b+1;v<=n;++v)(v===n||s.charCodeAt(v)===47)&&(B.length===0?B+="..":B+="/..");return B.length>0?B+r.slice(f+b):(f+=b,r.charCodeAt(f)===47&&++f,r.slice(f))},_makeLong:function(s){return s},dirname:function(s){if(i(s),s.length===0)return".";for(var r=s.charCodeAt(0),o=r===47,n=-1,a=!0,f=s.length-1;f>=1;--f)if(r=s.charCodeAt(f),r===47){if(!a){n=f;break}}else a=!1;return n===-1?o?"/":".":o&&n===1?"//":s.slice(0,n)},basename:function(s,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(s);var o=0,n=-1,a=!0,f;if(r!==void 0&&r.length>0&&r.length<=s.length){if(r.length===s.length&&r===s)return"";var p=r.length-1,g=-1;for(f=s.length-1;f>=0;--f){var m=s.charCodeAt(f);if(m===47){if(!a){o=f+1;break}}else g===-1&&(a=!1,g=f+1),p>=0&&(m===r.charCodeAt(p)?--p===-1&&(n=f):(p=-1,n=g))}return o===n?n=g:n===-1&&(n=s.length),s.slice(o,n)}else{for(f=s.length-1;f>=0;--f)if(s.charCodeAt(f)===47){if(!a){o=f+1;break}}else n===-1&&(a=!1,n=f+1);return n===-1?"":s.slice(o,n)}},extname:function(s){i(s);for(var r=-1,o=0,n=-1,a=!0,f=0,p=s.length-1;p>=0;--p){var g=s.charCodeAt(p);if(g===47){if(!a){o=p+1;break}continue}n===-1&&(a=!1,n=p+1),g===46?r===-1?r=p:f!==1&&(f=1):r!==-1&&(f=-1)}return r===-1||n===-1||f===0||f===1&&r===n-1&&r===o+1?"":s.slice(r,n)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return l("/",s)},parse:function(s){i(s);var r={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return r;var o=s.charCodeAt(0),n=o===47,a;n?(r.root="/",a=1):a=0;for(var f=-1,p=0,g=-1,m=!0,b=s.length-1,v=0;b>=a;--b){if(o=s.charCodeAt(b),o===47){if(!m){p=b+1;break}continue}g===-1&&(m=!1,g=b+1),o===46?f===-1?f=b:v!==1&&(v=1):f!==-1&&(v=-1)}return f===-1||g===-1||v===0||v===1&&f===g-1&&f===p+1?g!==-1&&(p===0&&n?r.base=r.name=s.slice(1,g):r.base=r.name=s.slice(p,g)):(p===0&&n?(r.name=s.slice(1,f),r.base=s.slice(1,g)):(r.name=s.slice(p,f),r.base=s.slice(p,g)),r.ext=s.slice(f,g)),p>0?r.dir=s.slice(0,p-1):n&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return h.posix=h,Nr=h,Nr}function Ku(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return $r?Yu(e):Qu(e)}function Yu(e){let i=e.hostname,t=e.pathname;for(let l=0;lta||h!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return t.slice(1)}}function Qu(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=e.pathname;for(let t=0;tba||h!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return t.slice(1)}}function Zu(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=e.pathname;for(let t=0;t{de(),ge(),pe(),Nu(),Du(),$u(),Hu(),Ys(),Ne={},Co=Ft,bt={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},Ne.parse=mr,Ne.resolve=function(e,i){return mr(e,!1,!0).resolve(i)},Ne.resolveObject=function(e,i){return e?mr(e,!1,!0).resolveObject(i):i},Ne.format=function(e){return bt.isString(e)&&(e=mr(e)),e instanceof pt?e.format():pt.prototype.format.call(e)},Ne.Url=pt,ko=/^([a-z0-9.+-]+:)/i,Io=/:[0-9]*$/,To=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Oo=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` diff --git a/packages/modules/web_themes/koala/web/assets/store-init-BnCEmsd-.js b/packages/modules/web_themes/koala/web/assets/store-init-BnCEmsd-.js deleted file mode 100644 index 29adc38dfa..0000000000 --- a/packages/modules/web_themes/koala/web/assets/store-init-BnCEmsd-.js +++ /dev/null @@ -1 +0,0 @@ -import{b as t}from"./index-D17w0IYB.js";import{u as o}from"./mqtt-store-DXcyZOMZ.js";const s=t(()=>{o().initialize()});export{s as default}; diff --git a/packages/modules/web_themes/koala/web/assets/store-init-_8zf6SsG.js b/packages/modules/web_themes/koala/web/assets/store-init-_8zf6SsG.js new file mode 100644 index 0000000000..5872e37770 --- /dev/null +++ b/packages/modules/web_themes/koala/web/assets/store-init-_8zf6SsG.js @@ -0,0 +1 @@ +import{b as t}from"./index-v0G7K8Rw.js";import{u as o}from"./mqtt-store-DM4t93V9.js";const s=t(()=>{o().initialize()});export{s as default}; diff --git a/packages/modules/web_themes/koala/web/assets/use-quasar-BcbqF7R8.js b/packages/modules/web_themes/koala/web/assets/use-quasar-D-0UrVnZ.js similarity index 99% rename from packages/modules/web_themes/koala/web/assets/use-quasar-BcbqF7R8.js rename to packages/modules/web_themes/koala/web/assets/use-quasar-D-0UrVnZ.js index fda353e581..b667604200 100644 --- a/packages/modules/web_themes/koala/web/assets/use-quasar-BcbqF7R8.js +++ b/packages/modules/web_themes/koala/web/assets/use-quasar-D-0UrVnZ.js @@ -1 +1 @@ -import{r as T,s as zt,j as G,c as k,o as O,N as $e,n as J,h as z,g as A,aq as H,a as m,d as ne,aL as Tt,aM as qt,G as dt,I as ve,f as Et,aH as Ct,an as ue,P as V,w as B,U as K,Y as xt,aN as se,u as Pt,am as Ht,aO as Lt,aP as Mt,aQ as _t,J as Be,aR as ft,aS as kt,aT as Ve,M as _,V as $t,k as je,L as Bt,O as Ot,S as ye,ap as we,T as Le,al as At,K as Wt,v as Dt,$ as Qe,aU as Vt,i as jt,aV as Qt}from"./index-D17w0IYB.js";function Ft(){const e=T(!zt.value);return e.value===!1&&G(()=>{e.value=!0}),{isHydrated:e}}const vt=typeof ResizeObserver<"u",Fe=vt===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},Ie=k({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n=null,o,l={width:-1,height:-1};function a(s){s===!0||e.debounce===0||e.debounce==="0"?i():n===null&&(n=setTimeout(i,e.debounce))}function i(){if(n!==null&&(clearTimeout(n),n=null),o){const{offsetWidth:s,offsetHeight:u}=o;(s!==l.width||u!==l.height)&&(l={width:s,height:u},t("resize",l))}}const{proxy:r}=A();if(r.trigger=a,vt===!0){let s;const u=f=>{o=r.$el.parentNode,o?(s=new ResizeObserver(a),s.observe(o),i()):f!==!0&&J(()=>{u(!0)})};return G(()=>{u()}),O(()=>{n!==null&&clearTimeout(n),s!==void 0&&(s.disconnect!==void 0?s.disconnect():o&&s.unobserve(o))}),$e}else{let s=function(){n!==null&&(clearTimeout(n),n=null),g!==void 0&&(g.removeEventListener!==void 0&&g.removeEventListener("resize",a,H.passive),g=void 0)},u=function(){s(),o&&o.contentDocument&&(g=o.contentDocument.defaultView,g.addEventListener("resize",a,H.passive),i())};const{isHydrated:f}=Ft();let g;return G(()=>{J(()=>{o=r.$el,o&&u()})}),O(s),()=>{if(f.value===!0)return z("object",{class:"q--avoid-card-border",style:Fe.style,tabindex:-1,type:"text/html",data:Fe.url,"aria-hidden":"true",onLoad:u})}}}}),Tl=k({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=m(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>z("div",{class:n.value},ne(t.default))}}),he={dark:{type:Boolean,default:null}};function me(e,t){return m(()=>e.dark===null?t.dark.isActive:e.dark)}const ql=k({name:"QItem",props:{...he,...Tt,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=A(),l=me(e,o),{hasLink:a,linkAttrs:i,linkClass:r,linkTag:s,navigateOnClick:u}=qt(),f=T(null),g=T(null),p=m(()=>e.clickable===!0||a.value===!0||e.tag==="label"),c=m(()=>e.disable!==!0&&p.value===!0),v=m(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(l.value===!0?" q-item--dark":"")+(a.value===!0&&e.active===null?r.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(c.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),q=m(()=>e.insetLevel===void 0?null:{["padding"+(o.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function P(b){c.value===!0&&(g.value!==null&&(b.qKeyEvent!==!0&&document.activeElement===f.value?g.value.focus():document.activeElement===g.value&&f.value.focus()),u(b))}function $(b){if(c.value===!0&&dt(b,[13,32])===!0){ve(b),b.qKeyEvent=!0;const L=new MouseEvent("click",b);L.qKeyEvent=!0,f.value.dispatchEvent(L)}n("keyup",b)}function y(){const b=Et(t.default,[]);return c.value===!0&&b.unshift(z("div",{class:"q-focus-helper",tabindex:-1,ref:g})),b}return()=>{const b={ref:f,class:v.value,style:q.value,role:"listitem",onClick:P,onKeyup:$};return c.value===!0?(b.tabindex=e.tabindex||"0",Object.assign(b,i.value)):p.value===!0&&(b["aria-disabled"]="true"),z(s.value,b,y())}}}),It={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Se={xs:2,sm:4,md:8,lg:16,xl:24},El=k({name:"QSeparator",props:{...he,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=A(),n=me(e,t.proxy.$q),o=m(()=>e.vertical===!0?"vertical":"horizontal"),l=m(()=>` q-separator--${o.value}`),a=m(()=>e.inset!==!1?`${l.value}-${It[e.inset]}`:""),i=m(()=>`q-separator${l.value}${a.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),r=m(()=>{const s={};if(e.size!==void 0&&(s[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const u=e.spaced===!0?`${Se.md}px`:e.spaced in Se?`${Se[e.spaced]}px`:e.spaced,f=e.vertical===!0?["Left","Right"]:["Top","Bottom"];s[`margin${f[0]}`]=s[`margin${f[1]}`]=u}return s});return()=>z("hr",{class:i.value,style:r.value,"aria-orientation":o.value})}}),Cl=k({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=m(()=>parseInt(e.lines,10)),o=m(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),l=m(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>z("div",{style:l.value,class:o.value},ne(t.default))}});function ce(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Ct.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const ht={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},xl={...ht,contextMenu:Boolean};function Rt({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:o,proxy:l,emit:a}=A(),i=T(null);let r=null;function s(c){return i.value===null?!1:c===void 0||c.touches===void 0||c.touches.length<=1}const u={};n===void 0&&(Object.assign(u,{hide(c){l.hide(c)},toggle(c){l.toggle(c),c.qAnchorHandled=!0},toggleKey(c){dt(c,13)===!0&&u.toggle(c)},contextClick(c){l.hide(c),ue(c),J(()=>{l.show(c),c.qAnchorHandled=!0})},prevent:ue,mobileTouch(c){if(u.mobileCleanup(c),s(c)!==!0)return;l.hide(c),i.value.classList.add("non-selectable");const v=c.target;V(u,"anchor",[[v,"touchmove","mobileCleanup","passive"],[v,"touchend","mobileCleanup","passive"],[v,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),r=setTimeout(()=>{r=null,l.show(c),c.qAnchorHandled=!0},300)},mobileCleanup(c){i.value.classList.remove("non-selectable"),r!==null&&(clearTimeout(r),r=null),e.value===!0&&c!==void 0&&ce()}}),n=function(c=o.contextMenu){if(o.noParentEvent===!0||i.value===null)return;let v;c===!0?l.$q.platform.is.mobile===!0?v=[[i.value,"touchstart","mobileTouch","passive"]]:v=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:v=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],V(u,"anchor",v)});function f(){K(u,"anchor")}function g(c){for(i.value=c;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;n()}function p(){if(o.target===!1||o.target===""||l.$el.parentNode===null)i.value=null;else if(o.target===!0)g(l.$el.parentNode);else{let c=o.target;if(typeof o.target=="string")try{c=document.querySelector(o.target)}catch{c=void 0}c!=null?(i.value=c.$el||c,n()):(i.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return B(()=>o.contextMenu,c=>{i.value!==null&&(f(),n(c))}),B(()=>o.target,()=>{i.value!==null&&f(),p()}),B(()=>o.noParentEvent,c=>{i.value!==null&&(c===!0?f():n())}),G(()=>{p(),t!==!0&&o.modelValue===!0&&i.value===null&&a("update:modelValue",!1)}),O(()=>{r!==null&&clearTimeout(r),f()}),{anchorEl:i,canShow:s,anchorEvents:u}}function Nt(e,t){const n=T(null);let o;function l(r,s){const u=`${s!==void 0?"add":"remove"}EventListener`,f=s!==void 0?s:o;r!==window&&r[u]("scroll",f,H.passive),window[u]("scroll",f,H.passive),o=s}function a(){n.value!==null&&(l(n.value),n.value=null)}const i=B(()=>e.noParentEvent,()=>{n.value!==null&&(a(),t())});return O(i),{localScrollTarget:n,unconfigureScrollTarget:a,changeScrollEvent:l}}const Xt={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Yt=["beforeShow","show","beforeHide","hide"];function Kt({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:l,processOnMount:a}){const i=A(),{props:r,emit:s,proxy:u}=i;let f;function g(y){e.value===!0?v(y):p(y)}function p(y){if(r.disable===!0||y!==void 0&&y.qAnchorHandled===!0||t!==void 0&&t(y)!==!0)return;const b=r["onUpdate:modelValue"]!==void 0;b===!0&&(s("update:modelValue",!0),f=y,J(()=>{f===y&&(f=void 0)})),(r.modelValue===null||b===!1)&&c(y)}function c(y){e.value!==!0&&(e.value=!0,s("beforeShow",y),o!==void 0?o(y):s("show",y))}function v(y){if(r.disable===!0)return;const b=r["onUpdate:modelValue"]!==void 0;b===!0&&(s("update:modelValue",!1),f=y,J(()=>{f===y&&(f=void 0)})),(r.modelValue===null||b===!1)&&q(y)}function q(y){e.value!==!1&&(e.value=!1,s("beforeHide",y),l!==void 0?l(y):s("hide",y))}function P(y){r.disable===!0&&y===!0?r["onUpdate:modelValue"]!==void 0&&s("update:modelValue",!1):y===!0!==e.value&&(y===!0?c:q)(f)}B(()=>r.modelValue,P),n!==void 0&&xt(i)===!0&&B(()=>u.$route.fullPath,()=>{n.value===!0&&e.value===!0&&v()}),a===!0&&G(()=>{P(r.modelValue)});const $={show:p,hide:v,toggle:g};return Object.assign(u,$),$}let I=[],le=[];function mt(e){le=le.filter(t=>t!==e)}function Ut(e){mt(e),le.push(e)}function Re(e){mt(e),le.length===0&&I.length!==0&&(I[I.length-1](),I=[])}function Pl(e){le.length===0?e():I.push(e)}function Hl(e){I=I.filter(t=>t!==e)}const U=[];function Ll(e){return U.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function Gt(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return se(e)}else if(e.__qPortal===!0){const n=se(e);return n!==void 0&&n.$options.name==="QPopupProxy"?(e.hide(t),n):e}e=se(e)}while(e!=null)}function Ml(e,t,n){for(;n!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(n--,e.$options.name==="QMenu"){e=Gt(e,t);continue}e.hide(t)}e=se(e)}}const Jt=k({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Zt(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function el(e,t,n,o){const l=T(!1),a=T(!1);let i=null;const r={},s=o==="dialog"&&Zt(e);function u(g){if(g===!0){Re(r),a.value=!0;return}a.value=!1,l.value===!1&&(s===!1&&i===null&&(i=Mt(!1,o)),l.value=!0,U.push(e.proxy),Ut(r))}function f(g){if(a.value=!1,g!==!0)return;Re(r),l.value=!1;const p=U.indexOf(e.proxy);p!==-1&&U.splice(p,1),i!==null&&(_t(i),i=null)}return Pt(()=>{f(!0)}),e.proxy.__qPortal=!0,Ht(e.proxy,"contentEl",()=>t.value),{showPortal:u,hidePortal:f,portalIsActive:l,portalIsAccessible:a,renderPortal:()=>s===!0?n():l.value===!0?[z(Lt,{to:i},z(Jt,n))]:void 0}}const ze={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function tl(e,t=()=>{},n=()=>{}){return{transitionProps:m(()=>{const o=`q-transition--${e.transitionShow||t()}`,l=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${l}-leave-from`,leaveActiveClass:`${l}-leave-active`,leaveToClass:`${l}-leave-to`}}),transitionStyle:m(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function ll(){let e;const t=A();function n(){e=void 0}return Be(n),O(n),{removeTick:n,registerTick(o){e=o,J(()=>{e===o&&(ft(t)===!1&&e(),e=void 0)})}}}function nl(){let e=null;const t=A();function n(){e!==null&&(clearTimeout(e),e=null)}return Be(n),O(n),{removeTimeout:n,registerTimeout(o,l){n(),ft(t)===!1&&(e=setTimeout(()=>{e=null,o()},l))}}}const gt=[Element,String],ol=[null,document,document.body,document.scrollingElement,document.documentElement];function bt(e,t){let n=kt(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return ol.includes(n)?window:n}function Oe(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Ae(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function pt(e,t,n=0){const o=arguments[3]===void 0?performance.now():arguments[3],l=Oe(e);if(n<=0){l!==t&&Me(e,t);return}requestAnimationFrame(a=>{const i=a-o,r=l+(t-l)/Math.max(i,n)*i;Me(e,r),r!==t&&pt(e,t,n-i,a)})}function yt(e,t,n=0){const o=arguments[3]===void 0?performance.now():arguments[3],l=Ae(e);if(n<=0){l!==t&&_e(e,t);return}requestAnimationFrame(a=>{const i=a-o,r=l+(t-l)/Math.max(i,n)*i;_e(e,r),r!==t&&yt(e,t,n-i,a)})}function Me(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function _e(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function Ne(e,t,n){if(n){pt(e,t,n);return}Me(e,t)}function Te(e,t,n){if(n){yt(e,t,n);return}_e(e,t)}let re;function il(){if(re!==void 0)return re;const e=document.createElement("p"),t=document.createElement("div");Ve(e,{width:"100%",height:"200px"}),Ve(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;return n===o&&(o=t.clientWidth),t.remove(),re=n-o,re}function rl(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const{notPassiveCapture:de}=H,R=[];function fe(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=U.length-1;for(;n>=0;){const o=U[n].$;if(o.type.name==="QTooltip"){n--;continue}if(o.type.name!=="QDialog")break;if(o.props.seamless!==!0)return;n--}for(let o=R.length-1;o>=0;o--){const l=R[o];if((l.anchorEl.value===null||l.anchorEl.value.contains(t)===!1)&&(t===document.body||l.innerRef.value!==null&&l.innerRef.value.contains(t)===!1))e.qClickOutside=!0,l.onClickOutside(e);else return}}function al(e){R.push(e),R.length===1&&(document.addEventListener("mousedown",fe,de),document.addEventListener("touchstart",fe,de))}function Xe(e){const t=R.findIndex(n=>n===e);t!==-1&&(R.splice(t,1),R.length===0&&(document.removeEventListener("mousedown",fe,de),document.removeEventListener("touchstart",fe,de)))}let Ye,Ke;function Ue(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function sl(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const ke={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{ke[`${e}#ltr`]=e,ke[`${e}#rtl`]=e});function Ge(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:ke[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function ul(e,t){let{top:n,left:o,right:l,bottom:a,width:i,height:r}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],o-=t[0],a+=t[1],l+=t[0],i+=t[0],r+=t[1]),{top:n,bottom:a,height:r,left:o,right:l,width:i,middle:o+(l-o)/2,center:n+(a-n)/2}}function cl(e,t,n){let{top:o,left:l}=e.getBoundingClientRect();return o+=t.top,l+=t.left,n!==void 0&&(o+=n[1],l+=n[0]),{top:o,bottom:o+1,height:1,left:l,right:l+1,width:1,middle:l,center:o}}function dl(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Je(e,t,n,o){return{top:e[n.vertical]-t[o.vertical],left:e[n.horizontal]-t[o.horizontal]}}function wt(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{wt(e,t+1)},10);return}const{targetEl:n,offset:o,anchorEl:l,anchorOrigin:a,selfOrigin:i,absoluteOffset:r,fit:s,cover:u,maxHeight:f,maxWidth:g}=e;if(_.is.ios===!0&&window.visualViewport!==void 0){const W=document.body.style,{offsetLeft:C,offsetTop:M}=window.visualViewport;C!==Ye&&(W.setProperty("--q-pe-left",C+"px"),Ye=C),M!==Ke&&(W.setProperty("--q-pe-top",M+"px"),Ke=M)}const{scrollLeft:p,scrollTop:c}=n,v=r===void 0?ul(l,u===!0?[0,0]:o):cl(l,r,o);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:g,maxHeight:f,visibility:"visible"});const{offsetWidth:q,offsetHeight:P}=n,{elWidth:$,elHeight:y}=s===!0||u===!0?{elWidth:Math.max(v.width,q),elHeight:u===!0?Math.max(v.height,P):P}:{elWidth:q,elHeight:P};let b={maxWidth:g,maxHeight:f};(s===!0||u===!0)&&(b.minWidth=v.width+"px",u===!0&&(b.minHeight=v.height+"px")),Object.assign(n.style,b);const L=dl($,y);let S=Je(v,L,a,i);if(r===void 0||o===void 0)qe(S,v,L,a,i);else{const{top:W,left:C}=S;qe(S,v,L,a,i);let M=!1;if(S.top!==W){M=!0;const E=2*o[1];v.center=v.top-=E,v.bottom-=E+2}if(S.left!==C){M=!0;const E=2*o[0];v.middle=v.left-=E,v.right-=E+2}M===!0&&(S=Je(v,L,a,i),qe(S,v,L,a,i))}b={top:S.top+"px",left:S.left+"px"},S.maxHeight!==void 0&&(b.maxHeight=S.maxHeight+"px",v.height>S.maxHeight&&(b.minHeight=b.maxHeight)),S.maxWidth!==void 0&&(b.maxWidth=S.maxWidth+"px",v.width>S.maxWidth&&(b.minWidth=b.maxWidth)),Object.assign(n.style,b),n.scrollTop!==c&&(n.scrollTop=c),n.scrollLeft!==p&&(n.scrollLeft=p)}function qe(e,t,n,o,l){const a=n.bottom,i=n.right,r=il(),s=window.innerHeight-r,u=document.body.clientWidth;if(e.top<0||e.top+a>s)if(l.vertical==="center")e.top=t[o.vertical]>s/2?Math.max(0,s-a):0,e.maxHeight=Math.min(a,s);else if(t[o.vertical]>s/2){const f=Math.min(s,o.vertical==="center"?t.center:o.vertical===l.vertical?t.bottom:t.top);e.maxHeight=Math.min(a,f),e.top=Math.max(0,f-a)}else e.top=Math.max(0,o.vertical==="center"?t.center:o.vertical===l.vertical?t.top:t.bottom),e.maxHeight=Math.min(a,s-e.top);if(e.left<0||e.left+i>u)if(e.maxWidth=Math.min(i,u),l.horizontal==="middle")e.left=t[o.horizontal]>u/2?Math.max(0,u-i):0;else if(t[o.horizontal]>u/2){const f=Math.min(u,o.horizontal==="middle"?t.middle:o.horizontal===l.horizontal?t.right:t.left);e.maxWidth=Math.min(i,f),e.left=Math.max(0,f-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?t.middle:o.horizontal===l.horizontal?t.left:t.right),e.maxWidth=Math.min(i,u-e.left)}const _l=k({name:"QTooltip",inheritAttrs:!1,props:{...ht,...Xt,...ze,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...ze.transitionShow,default:"jump-down"},transitionHide:{...ze.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Ue},self:{type:String,default:"top middle",validator:Ue},offset:{type:Array,default:()=>[14,14],validator:sl},scrollTarget:gt,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Yt],setup(e,{slots:t,emit:n,attrs:o}){let l,a;const i=A(),{proxy:{$q:r}}=i,s=T(null),u=T(!1),f=m(()=>Ge(e.anchor,r.lang.rtl)),g=m(()=>Ge(e.self,r.lang.rtl)),p=m(()=>e.persistent!==!0),{registerTick:c,removeTick:v}=ll(),{registerTimeout:q}=nl(),{transitionProps:P,transitionStyle:$}=tl(e),{localScrollTarget:y,changeScrollEvent:b,unconfigureScrollTarget:L}=Nt(e,Y),{anchorEl:S,canShow:W,anchorEvents:C}=Rt({showing:u,configureAnchorEl:X}),{show:M,hide:E}=Kt({showing:u,canShow:W,handleShow:ge,handleHide:d,hideOnRouteChange:p,processOnMount:!0});Object.assign(C,{delayShow:D,delayHide:j});const{showPortal:oe,hidePortal:ie,renderPortal:N}=el(i,s,St,"tooltip");if(r.platform.is.mobile===!0){const x={anchorEl:S,innerRef:s,onClickOutside(Q){return E(Q),Q.target.classList.contains("q-dialog__backdrop")&&ve(Q),!0}},pe=m(()=>e.modelValue===null&&e.persistent!==!0&&u.value===!0);B(pe,Q=>{(Q===!0?al:Xe)(x)}),O(()=>{Xe(x)})}function ge(x){oe(),c(()=>{a=new MutationObserver(()=>w()),a.observe(s.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),w(),Y()}),l===void 0&&(l=B(()=>r.screen.width+"|"+r.screen.height+"|"+e.self+"|"+e.anchor+"|"+r.lang.rtl,w)),q(()=>{oe(!0),n("show",x)},e.transitionDuration)}function d(x){v(),ie(),h(),q(()=>{ie(!0),n("hide",x)},e.transitionDuration)}function h(){a!==void 0&&(a.disconnect(),a=void 0),l!==void 0&&(l(),l=void 0),L(),K(C,"tooltipTemp")}function w(){wt({targetEl:s.value,offset:e.offset,anchorEl:S.value,anchorOrigin:f.value,selfOrigin:g.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function D(x){if(r.platform.is.mobile===!0){ce(),document.body.classList.add("non-selectable");const pe=S.value,Q=["touchmove","touchcancel","touchend","click"].map(De=>[pe,De,"delayHide","passiveCapture"]);V(C,"tooltipTemp",Q)}q(()=>{M(x)},e.delay)}function j(x){r.platform.is.mobile===!0&&(K(C,"tooltipTemp"),ce(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),q(()=>{E(x)},e.hideDelay)}function X(){if(e.noParentEvent===!0||S.value===null)return;const x=r.platform.is.mobile===!0?[[S.value,"touchstart","delayShow","passive"]]:[[S.value,"mouseenter","delayShow","passive"],[S.value,"mouseleave","delayHide","passive"]];V(C,"anchor",x)}function Y(){if(S.value!==null||e.scrollTarget!==void 0){y.value=bt(S.value,e.scrollTarget);const x=e.noParentEvent===!0?w:E;b(y.value,x)}}function be(){return u.value===!0?z("div",{...o,ref:s,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",o.class],style:[o.style,$.value],role:"tooltip"},ne(t.default)):null}function St(){return z($t,P.value,be)}return O(h),Object.assign(i.proxy,{updatePosition:w}),N}}),kl=k({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:t}){const n=m(()=>{const o=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(l=>e[l]===!0).map(l=>`q-btn-group--${l}`).join(" ");return`q-btn-group row no-wrap${o.length!==0?" "+o:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>z("div",{class:n.value},ne(t.default))}}),fl=["ul","ol"],$l=k({name:"QList",props:{...he,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const n=A(),o=me(e,n.proxy.$q),l=m(()=>fl.includes(e.tag)?null:"list"),a=m(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(o.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>z(e.tag,{class:a.value,role:l.value},ne(t.default))}}),vl=k({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[z("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),z("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),je(z("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),je(z("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),{passive:Ze}=H,hl=["both","horizontal","vertical"],ml=k({name:"QScrollObserver",props:{axis:{type:String,validator:e=>hl.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:gt},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let o=null,l,a;B(()=>e.scrollTarget,()=>{s(),r()});function i(){o!==null&&o();const g=Math.max(0,Oe(l)),p=Ae(l),c={top:g-n.position.top,left:p-n.position.left};if(e.axis==="vertical"&&c.top===0||e.axis==="horizontal"&&c.left===0)return;const v=Math.abs(c.top)>=Math.abs(c.left)?c.top<0?"up":"down":c.left<0?"left":"right";n.position={top:g,left:p},n.directionChanged=n.direction!==v,n.delta=c,n.directionChanged===!0&&(n.direction=v,n.inflectionPoint=n.position),t("scroll",{...n})}function r(){l=bt(a,e.scrollTarget),l.addEventListener("scroll",u,Ze),u(!0)}function s(){l!==void 0&&(l.removeEventListener("scroll",u,Ze),l=void 0)}function u(g){if(g===!0||e.debounce===0||e.debounce==="0")i();else if(o===null){const[p,c]=e.debounce?[setTimeout(i,e.debounce),clearTimeout]:[requestAnimationFrame(i),cancelAnimationFrame];o=()=>{c(p),o=null}}}const{proxy:f}=A();return B(()=>f.$q.lang.rtl,i),G(()=>{a=f.$el.parentNode,r()}),O(()=>{o!==null&&o(),s()}),Object.assign(f,{trigger:u,getPosition:()=>n}),$e}}),We={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},gl=Object.keys(We);We.all=!0;function et(e){const t={};for(const n of gl)e[n]===!0&&(t[n]=!0);return Object.keys(t).length===0?We:(t.horizontal===!0?t.left=t.right=!0:t.left===!0&&t.right===!0&&(t.horizontal=!0),t.vertical===!0?t.up=t.down=!0:t.up===!0&&t.down===!0&&(t.vertical=!0),t.horizontal===!0&&t.vertical===!0&&(t.all=!0),t)}const bl=["INPUT","TEXTAREA"];function tt(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&bl.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function Ee(e,t,n){const o=Le(e);let l,a=o.left-t.event.x,i=o.top-t.event.y,r=Math.abs(a),s=Math.abs(i);const u=t.direction;u.horizontal===!0&&u.vertical!==!0?l=a<0?"left":"right":u.horizontal!==!0&&u.vertical===!0?l=i<0?"up":"down":u.up===!0&&i<0?(l="up",r>s&&(u.left===!0&&a<0?l="left":u.right===!0&&a>0&&(l="right"))):u.down===!0&&i>0?(l="down",r>s&&(u.left===!0&&a<0?l="left":u.right===!0&&a>0&&(l="right"))):u.left===!0&&a<0?(l="left",r0&&(l="down"))):u.right===!0&&a>0&&(l="right",r0&&(l="down")));let f=!1;if(l===void 0&&n===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};l=t.event.lastDir,f=!0,l==="left"||l==="right"?(o.left-=a,r=0,a=0):(o.top-=i,s=0,i=0)}return{synthetic:f,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:o,direction:l,isFirst:t.event.isFirst,isFinal:n===!0,duration:Date.now()-t.event.time,distance:{x:r,y:s},offset:{x:a,y:i},delta:{x:o.left-t.event.lastX,y:o.top-t.event.lastY}}}}let pl=0;const lt=Bt({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(n.mouse!==!0&&_.has.touch!==!0)return;function o(a,i){n.mouse===!0&&i===!0?ve(a):(n.stop===!0&&we(a),n.prevent===!0&&ue(a))}const l={uid:"qvtp_"+pl++,handler:t,modifiers:n,direction:et(n),noop:$e,mouseStart(a){tt(a,l)&&Ot(a)&&(V(l,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),l.start(a,!0))},touchStart(a){if(tt(a,l)){const i=a.target;V(l,"temp",[[i,"touchmove","move","notPassiveCapture"],[i,"touchcancel","end","passiveCapture"],[i,"touchend","end","passiveCapture"]]),l.start(a)}},start(a,i){if(_.is.firefox===!0&&ye(e,!0),l.lastEvt=a,i===!0||n.stop===!0){if(l.direction.all!==!0&&(i!==!0||l.modifiers.mouseAllDir!==!0&&l.modifiers.mousealldir!==!0)){const u=a.type.indexOf("mouse")!==-1?new MouseEvent(a.type,a):new TouchEvent(a.type,a);a.defaultPrevented===!0&&ue(u),a.cancelBubble===!0&&we(u),Object.assign(u,{qKeyEvent:a.qKeyEvent,qClickOutside:a.qClickOutside,qAnchorHandled:a.qAnchorHandled,qClonedBy:a.qClonedBy===void 0?[l.uid]:a.qClonedBy.concat(l.uid)}),l.initialEvent={target:a.target,event:u}}we(a)}const{left:r,top:s}=Le(a);l.event={x:r,y:s,time:Date.now(),mouse:i===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:r,lastY:s}},move(a){if(l.event===void 0)return;const i=Le(a),r=i.left-l.event.x,s=i.top-l.event.y;if(r===0&&s===0)return;l.lastEvt=a;const u=l.event.mouse===!0,f=()=>{o(a,u);let c;n.preserveCursor!==!0&&n.preservecursor!==!0&&(c=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),u===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),ce(),l.styleCleanup=v=>{if(l.styleCleanup=void 0,c!==void 0&&(document.documentElement.style.cursor=c),document.body.classList.remove("non-selectable"),u===!0){const q=()=>{document.body.classList.remove("no-pointer-events--children")};v!==void 0?setTimeout(()=>{q(),v()},50):q()}else v!==void 0&&v()}};if(l.event.detected===!0){l.event.isFirst!==!0&&o(a,l.event.mouse);const{payload:c,synthetic:v}=Ee(a,l,!1);c!==void 0&&(l.handler(c)===!1?l.end(a):(l.styleCleanup===void 0&&l.event.isFirst===!0&&f(),l.event.lastX=c.position.left,l.event.lastY=c.position.top,l.event.lastDir=v===!0?void 0:c.direction,l.event.isFirst=!1));return}if(l.direction.all===!0||u===!0&&(l.modifiers.mouseAllDir===!0||l.modifiers.mousealldir===!0)){f(),l.event.detected=!0,l.move(a);return}const g=Math.abs(r),p=Math.abs(s);g!==p&&(l.direction.horizontal===!0&&g>p||l.direction.vertical===!0&&g0||l.direction.left===!0&&g>p&&r<0||l.direction.right===!0&&g>p&&r>0?(l.event.detected=!0,l.move(a)):l.end(a,!0))},end(a,i){if(l.event!==void 0){if(K(l,"temp"),_.is.firefox===!0&&ye(e,!1),i===!0)l.styleCleanup!==void 0&&l.styleCleanup(),l.event.detected!==!0&&l.initialEvent!==void 0&&l.initialEvent.target.dispatchEvent(l.initialEvent.event);else if(l.event.detected===!0){l.event.isFirst===!0&&l.handler(Ee(a===void 0?l.lastEvt:a,l).payload);const{payload:r}=Ee(a===void 0?l.lastEvt:a,l,!0),s=()=>{l.handler(r)};l.styleCleanup!==void 0?l.styleCleanup(s):s()}l.event=void 0,l.initialEvent=void 0,l.lastEvt=void 0}}};if(e.__qtouchpan=l,n.mouse===!0){const a=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";V(l,"main",[[e,"mousedown","mouseStart",`passive${a}`]])}_.has.touch===!0&&V(l,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;n!==void 0&&(t.oldValue!==t.value&&(typeof value!="function"&&n.end(),n.handler=t.value),n.direction=et(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),K(t,"main"),K(t,"temp"),_.is.firefox===!0&&ye(e,!1),t.styleCleanup!==void 0&&t.styleCleanup(),delete e.__qtouchpan)}});function Z(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function Bl(e,t,n){if(n<=t)return t;const o=n-t+1;let l=t+(e-t)%o;return le>=250?50:Math.ceil(e/5),Ol=k({name:"QScrollArea",props:{...he,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(e,{slots:t,emit:n}){const o=T(!1),l=T(!1),a=T(!1),i={vertical:T(0),horizontal:T(0)},r={vertical:{ref:T(null),position:T(0),size:T(0)},horizontal:{ref:T(null),position:T(0),size:T(0)}},{proxy:s}=A(),u=me(e,s.$q);let f=null,g;const p=T(null),c=m(()=>"q-scrollarea"+(u.value===!0?" q-scrollarea--dark":""));Object.assign(i,{verticalInner:m(()=>i.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:m(()=>i.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),r.vertical.percentage=m(()=>{const d=r.vertical.size.value-i.vertical.value;if(d<=0)return 0;const h=Z(r.vertical.position.value/d,0,1);return Math.round(h*1e4)/1e4}),r.vertical.thumbHidden=m(()=>(e.visible===null?a.value:e.visible)!==!0&&o.value===!1&&l.value===!1||r.vertical.size.value<=i.vertical.value+1),r.vertical.thumbStart=m(()=>e.verticalOffset[0]+r.vertical.percentage.value*(i.verticalInner.value-r.vertical.thumbSize.value)),r.vertical.thumbSize=m(()=>Math.round(Z(i.verticalInner.value*i.verticalInner.value/r.vertical.size.value,it(i.verticalInner.value),i.verticalInner.value))),r.vertical.style=m(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${r.vertical.thumbStart.value}px`,height:`${r.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),r.vertical.thumbClass=m(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(r.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),r.vertical.barClass=m(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(r.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),r.horizontal.percentage=m(()=>{const d=r.horizontal.size.value-i.horizontal.value;if(d<=0)return 0;const h=Z(Math.abs(r.horizontal.position.value)/d,0,1);return Math.round(h*1e4)/1e4}),r.horizontal.thumbHidden=m(()=>(e.visible===null?a.value:e.visible)!==!0&&o.value===!1&&l.value===!1||r.horizontal.size.value<=i.horizontal.value+1),r.horizontal.thumbStart=m(()=>e.horizontalOffset[0]+r.horizontal.percentage.value*(i.horizontalInner.value-r.horizontal.thumbSize.value)),r.horizontal.thumbSize=m(()=>Math.round(Z(i.horizontalInner.value*i.horizontalInner.value/r.horizontal.size.value,it(i.horizontalInner.value),i.horizontalInner.value))),r.horizontal.style=m(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[s.$q.lang.rtl===!0?"right":"left"]:`${r.horizontal.thumbStart.value}px`,width:`${r.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),r.horizontal.thumbClass=m(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(r.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),r.horizontal.barClass=m(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(r.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const v=m(()=>r.vertical.thumbHidden.value===!0&&r.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function q(){const d={};return nt.forEach(h=>{const w=r[h];Object.assign(d,{[h+"Position"]:w.position.value,[h+"Percentage"]:w.percentage.value,[h+"Size"]:w.size.value,[h+"ContainerSize"]:i[h].value,[h+"ContainerInnerSize"]:i[h+"Inner"].value})}),d}const P=At(()=>{const d=q();d.ref=s,n("scroll",d)},0);function $(d,h,w){if(nt.includes(d)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(d==="vertical"?Ne:Te)(p.value,h,w)}function y({height:d,width:h}){let w=!1;i.vertical.value!==d&&(i.vertical.value=d,w=!0),i.horizontal.value!==h&&(i.horizontal.value=h,w=!0),w===!0&&C()}function b({position:d}){let h=!1;r.vertical.position.value!==d.top&&(r.vertical.position.value=d.top,h=!0),r.horizontal.position.value!==d.left&&(r.horizontal.position.value=d.left,h=!0),h===!0&&C()}function L({height:d,width:h}){r.horizontal.size.value!==h&&(r.horizontal.size.value=h,C()),r.vertical.size.value!==d&&(r.vertical.size.value=d,C())}function S(d,h){const w=r[h];if(d.isFirst===!0){if(w.thumbHidden.value===!0)return;g=w.position.value,l.value=!0}else if(l.value!==!0)return;d.isFinal===!0&&(l.value=!1);const D=Ce[h],j=(w.size.value-i[h].value)/(i[h+"Inner"].value-w.thumbSize.value),X=d.distance[D.dist],Y=g+(d.direction===D.dir?1:-1)*X*j;M(Y,h)}function W(d,h){const w=r[h];if(w.thumbHidden.value!==!0){const D=h==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],j=d[Ce[h].offset]-D,X=w.thumbStart.value-D;if(jX+w.thumbSize.value){const Y=j-w.thumbSize.value/2,be=Z(Y/(i[h+"Inner"].value-w.thumbSize.value),0,1);M(be*Math.max(0,w.size.value-i[h].value),h)}w.ref.value!==null&&w.ref.value.dispatchEvent(new MouseEvent(d.type,d))}}function C(){o.value=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,o.value=!1},e.delay),e.onScroll!==void 0&&P()}function M(d,h){p.value[Ce[h].scroll]=d}let E=null;function oe(){E!==null&&clearTimeout(E),E=setTimeout(()=>{E=null,a.value=!0},s.$q.platform.is.ios?50:0)}function ie(){E!==null&&(clearTimeout(E),E=null),a.value=!1}let N=null;B(()=>s.$q.lang.rtl,d=>{p.value!==null&&Te(p.value,Math.abs(r.horizontal.position.value)*(d===!0?-1:1))}),Be(()=>{N={top:r.vertical.position.value,left:r.horizontal.position.value}}),Wt(()=>{if(N===null)return;const d=p.value;d!==null&&(Te(d,N.left),Ne(d,N.top))}),O(P.cancel),Object.assign(s,{getScrollTarget:()=>p.value,getScroll:q,getScrollPosition:()=>({top:r.vertical.position.value,left:r.horizontal.position.value}),getScrollPercentage:()=>({top:r.vertical.percentage.value,left:r.horizontal.percentage.value}),setScrollPosition:$,setScrollPercentage(d,h,w){$(d,h*(r[d].size.value-i[d].value)*(d==="horizontal"&&s.$q.lang.rtl===!0?-1:1),w)}});const ge={scroll:r,thumbVertDir:[[lt,d=>{S(d,"vertical")},void 0,{vertical:!0,...ot}]],thumbHorizDir:[[lt,d=>{S(d,"horizontal")},void 0,{horizontal:!0,...ot}]],onVerticalMousedown(d){W(d,"vertical")},onHorizontalMousedown(d){W(d,"horizontal")}};return()=>z("div",{class:c.value,onMouseenter:oe,onMouseleave:ie},[z("div",{ref:p,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[z("div",{class:"q-scrollarea__content absolute",style:v.value},Dt(t.default,[z(Ie,{debounce:0,onResize:L})])),z(ml,{axis:"both",onScroll:b})]),z(Ie,{debounce:0,onResize:y}),z(vl,{store:ge,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}});function Al(e,t,n){let o;function l(){o!==void 0&&(Qe.remove(o),o=void 0)}return O(()=>{e.value===!0&&l()}),{removeFromHistory:l,addToHistory(){o={condition:()=>n.value===!0,handler:t},Qe.add(o)}}}let ee=0,xe,Pe,te,He=!1,rt,at,st,F=null;function yl(e){wl(e)&&ve(e)}function wl(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=Vt(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),l=n||o?e.deltaY:e.deltaX;for(let a=0;a0&&i.scrollTop+i.clientHeight===i.scrollHeight:l<0&&i.scrollLeft===0?!0:l>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function ut(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ae(e){He!==!0&&(He=!0,requestAnimationFrame(()=>{He=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:o}=document.scrollingElement;(te===void 0||t!==window.innerHeight)&&(te=n-t,document.scrollingElement.scrollTop=o),o>te&&(document.scrollingElement.scrollTop-=Math.ceil((o-te)/8))}))}function ct(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:o,overflowX:l}=window.getComputedStyle(t);xe=Ae(window),Pe=Oe(window),rt=t.style.left,at=t.style.top,st=window.location.href,t.style.left=`-${xe}px`,t.style.top=`-${Pe}px`,l!=="hidden"&&(l==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),o!=="hidden"&&(o==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,_.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ae,H.passiveCapture),window.visualViewport.addEventListener("scroll",ae,H.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ut,H.passiveCapture))}_.is.desktop===!0&&_.is.mac===!0&&window[`${e}EventListener`]("wheel",yl,H.notPassive),e==="remove"&&(_.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",ae,H.passiveCapture),window.visualViewport.removeEventListener("scroll",ae,H.passiveCapture)):window.removeEventListener("scroll",ut,H.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=rt,t.style.top=at,window.location.href===st&&window.scrollTo(xe,Pe),te=void 0)}function Sl(e){let t="add";if(e===!0){if(ee++,F!==null){clearTimeout(F),F=null;return}if(ee>1)return}else{if(ee===0||(ee--,ee>0))return;if(t="remove",_.is.ios===!0&&_.is.nativeMobile===!0){F!==null&&clearTimeout(F),F=setTimeout(()=>{ct(t),F=null},100);return}}ct(t)}function Wl(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,Sl(t))}}}function Dl(){return jt(Qt)}export{el as A,Pl as B,Ll as C,Ml as D,Hl as E,gt as F,bt as G,xl as H,Ue as I,sl as J,Nt as K,Rt as L,Xe as M,wt as N,Ge as O,Gt as P,Ie as Q,al as R,Bl as S,lt as T,he as a,Yt as b,me as c,nl as d,Kt as e,Al as f,Z as g,Wl as h,il as i,ml as j,Dl as k,Ol as l,$l as m,ql as n,Tl as o,El as p,Cl as q,kl as r,_l as s,ll as t,Xt as u,et as v,tt as w,ce as x,ze as y,tl as z}; +import{r as T,s as zt,j as G,c as k,o as O,N as $e,n as J,h as z,g as A,aq as H,a as m,d as ne,aL as Tt,aM as qt,G as dt,I as ve,f as Et,aH as Ct,an as ue,P as V,w as B,U as K,Y as xt,aN as se,u as Pt,am as Ht,aO as Lt,aP as Mt,aQ as _t,J as Be,aR as ft,aS as kt,aT as Ve,M as _,V as $t,k as je,L as Bt,O as Ot,S as ye,ap as we,T as Le,al as At,K as Wt,v as Dt,$ as Qe,aU as Vt,i as jt,aV as Qt}from"./index-v0G7K8Rw.js";function Ft(){const e=T(!zt.value);return e.value===!1&&G(()=>{e.value=!0}),{isHydrated:e}}const vt=typeof ResizeObserver<"u",Fe=vt===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},Ie=k({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n=null,o,l={width:-1,height:-1};function a(s){s===!0||e.debounce===0||e.debounce==="0"?i():n===null&&(n=setTimeout(i,e.debounce))}function i(){if(n!==null&&(clearTimeout(n),n=null),o){const{offsetWidth:s,offsetHeight:u}=o;(s!==l.width||u!==l.height)&&(l={width:s,height:u},t("resize",l))}}const{proxy:r}=A();if(r.trigger=a,vt===!0){let s;const u=f=>{o=r.$el.parentNode,o?(s=new ResizeObserver(a),s.observe(o),i()):f!==!0&&J(()=>{u(!0)})};return G(()=>{u()}),O(()=>{n!==null&&clearTimeout(n),s!==void 0&&(s.disconnect!==void 0?s.disconnect():o&&s.unobserve(o))}),$e}else{let s=function(){n!==null&&(clearTimeout(n),n=null),g!==void 0&&(g.removeEventListener!==void 0&&g.removeEventListener("resize",a,H.passive),g=void 0)},u=function(){s(),o&&o.contentDocument&&(g=o.contentDocument.defaultView,g.addEventListener("resize",a,H.passive),i())};const{isHydrated:f}=Ft();let g;return G(()=>{J(()=>{o=r.$el,o&&u()})}),O(s),()=>{if(f.value===!0)return z("object",{class:"q--avoid-card-border",style:Fe.style,tabindex:-1,type:"text/html",data:Fe.url,"aria-hidden":"true",onLoad:u})}}}}),Tl=k({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=m(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>z("div",{class:n.value},ne(t.default))}}),he={dark:{type:Boolean,default:null}};function me(e,t){return m(()=>e.dark===null?t.dark.isActive:e.dark)}const ql=k({name:"QItem",props:{...he,...Tt,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=A(),l=me(e,o),{hasLink:a,linkAttrs:i,linkClass:r,linkTag:s,navigateOnClick:u}=qt(),f=T(null),g=T(null),p=m(()=>e.clickable===!0||a.value===!0||e.tag==="label"),c=m(()=>e.disable!==!0&&p.value===!0),v=m(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(l.value===!0?" q-item--dark":"")+(a.value===!0&&e.active===null?r.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(c.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),q=m(()=>e.insetLevel===void 0?null:{["padding"+(o.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function P(b){c.value===!0&&(g.value!==null&&(b.qKeyEvent!==!0&&document.activeElement===f.value?g.value.focus():document.activeElement===g.value&&f.value.focus()),u(b))}function $(b){if(c.value===!0&&dt(b,[13,32])===!0){ve(b),b.qKeyEvent=!0;const L=new MouseEvent("click",b);L.qKeyEvent=!0,f.value.dispatchEvent(L)}n("keyup",b)}function y(){const b=Et(t.default,[]);return c.value===!0&&b.unshift(z("div",{class:"q-focus-helper",tabindex:-1,ref:g})),b}return()=>{const b={ref:f,class:v.value,style:q.value,role:"listitem",onClick:P,onKeyup:$};return c.value===!0?(b.tabindex=e.tabindex||"0",Object.assign(b,i.value)):p.value===!0&&(b["aria-disabled"]="true"),z(s.value,b,y())}}}),It={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Se={xs:2,sm:4,md:8,lg:16,xl:24},El=k({name:"QSeparator",props:{...he,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=A(),n=me(e,t.proxy.$q),o=m(()=>e.vertical===!0?"vertical":"horizontal"),l=m(()=>` q-separator--${o.value}`),a=m(()=>e.inset!==!1?`${l.value}-${It[e.inset]}`:""),i=m(()=>`q-separator${l.value}${a.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),r=m(()=>{const s={};if(e.size!==void 0&&(s[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const u=e.spaced===!0?`${Se.md}px`:e.spaced in Se?`${Se[e.spaced]}px`:e.spaced,f=e.vertical===!0?["Left","Right"]:["Top","Bottom"];s[`margin${f[0]}`]=s[`margin${f[1]}`]=u}return s});return()=>z("hr",{class:i.value,style:r.value,"aria-orientation":o.value})}}),Cl=k({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=m(()=>parseInt(e.lines,10)),o=m(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),l=m(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>z("div",{style:l.value,class:o.value},ne(t.default))}});function ce(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Ct.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const ht={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},xl={...ht,contextMenu:Boolean};function Rt({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:o,proxy:l,emit:a}=A(),i=T(null);let r=null;function s(c){return i.value===null?!1:c===void 0||c.touches===void 0||c.touches.length<=1}const u={};n===void 0&&(Object.assign(u,{hide(c){l.hide(c)},toggle(c){l.toggle(c),c.qAnchorHandled=!0},toggleKey(c){dt(c,13)===!0&&u.toggle(c)},contextClick(c){l.hide(c),ue(c),J(()=>{l.show(c),c.qAnchorHandled=!0})},prevent:ue,mobileTouch(c){if(u.mobileCleanup(c),s(c)!==!0)return;l.hide(c),i.value.classList.add("non-selectable");const v=c.target;V(u,"anchor",[[v,"touchmove","mobileCleanup","passive"],[v,"touchend","mobileCleanup","passive"],[v,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),r=setTimeout(()=>{r=null,l.show(c),c.qAnchorHandled=!0},300)},mobileCleanup(c){i.value.classList.remove("non-selectable"),r!==null&&(clearTimeout(r),r=null),e.value===!0&&c!==void 0&&ce()}}),n=function(c=o.contextMenu){if(o.noParentEvent===!0||i.value===null)return;let v;c===!0?l.$q.platform.is.mobile===!0?v=[[i.value,"touchstart","mobileTouch","passive"]]:v=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:v=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],V(u,"anchor",v)});function f(){K(u,"anchor")}function g(c){for(i.value=c;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;n()}function p(){if(o.target===!1||o.target===""||l.$el.parentNode===null)i.value=null;else if(o.target===!0)g(l.$el.parentNode);else{let c=o.target;if(typeof o.target=="string")try{c=document.querySelector(o.target)}catch{c=void 0}c!=null?(i.value=c.$el||c,n()):(i.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return B(()=>o.contextMenu,c=>{i.value!==null&&(f(),n(c))}),B(()=>o.target,()=>{i.value!==null&&f(),p()}),B(()=>o.noParentEvent,c=>{i.value!==null&&(c===!0?f():n())}),G(()=>{p(),t!==!0&&o.modelValue===!0&&i.value===null&&a("update:modelValue",!1)}),O(()=>{r!==null&&clearTimeout(r),f()}),{anchorEl:i,canShow:s,anchorEvents:u}}function Nt(e,t){const n=T(null);let o;function l(r,s){const u=`${s!==void 0?"add":"remove"}EventListener`,f=s!==void 0?s:o;r!==window&&r[u]("scroll",f,H.passive),window[u]("scroll",f,H.passive),o=s}function a(){n.value!==null&&(l(n.value),n.value=null)}const i=B(()=>e.noParentEvent,()=>{n.value!==null&&(a(),t())});return O(i),{localScrollTarget:n,unconfigureScrollTarget:a,changeScrollEvent:l}}const Xt={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Yt=["beforeShow","show","beforeHide","hide"];function Kt({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:l,processOnMount:a}){const i=A(),{props:r,emit:s,proxy:u}=i;let f;function g(y){e.value===!0?v(y):p(y)}function p(y){if(r.disable===!0||y!==void 0&&y.qAnchorHandled===!0||t!==void 0&&t(y)!==!0)return;const b=r["onUpdate:modelValue"]!==void 0;b===!0&&(s("update:modelValue",!0),f=y,J(()=>{f===y&&(f=void 0)})),(r.modelValue===null||b===!1)&&c(y)}function c(y){e.value!==!0&&(e.value=!0,s("beforeShow",y),o!==void 0?o(y):s("show",y))}function v(y){if(r.disable===!0)return;const b=r["onUpdate:modelValue"]!==void 0;b===!0&&(s("update:modelValue",!1),f=y,J(()=>{f===y&&(f=void 0)})),(r.modelValue===null||b===!1)&&q(y)}function q(y){e.value!==!1&&(e.value=!1,s("beforeHide",y),l!==void 0?l(y):s("hide",y))}function P(y){r.disable===!0&&y===!0?r["onUpdate:modelValue"]!==void 0&&s("update:modelValue",!1):y===!0!==e.value&&(y===!0?c:q)(f)}B(()=>r.modelValue,P),n!==void 0&&xt(i)===!0&&B(()=>u.$route.fullPath,()=>{n.value===!0&&e.value===!0&&v()}),a===!0&&G(()=>{P(r.modelValue)});const $={show:p,hide:v,toggle:g};return Object.assign(u,$),$}let I=[],le=[];function mt(e){le=le.filter(t=>t!==e)}function Ut(e){mt(e),le.push(e)}function Re(e){mt(e),le.length===0&&I.length!==0&&(I[I.length-1](),I=[])}function Pl(e){le.length===0?e():I.push(e)}function Hl(e){I=I.filter(t=>t!==e)}const U=[];function Ll(e){return U.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function Gt(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return se(e)}else if(e.__qPortal===!0){const n=se(e);return n!==void 0&&n.$options.name==="QPopupProxy"?(e.hide(t),n):e}e=se(e)}while(e!=null)}function Ml(e,t,n){for(;n!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(n--,e.$options.name==="QMenu"){e=Gt(e,t);continue}e.hide(t)}e=se(e)}}const Jt=k({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Zt(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function el(e,t,n,o){const l=T(!1),a=T(!1);let i=null;const r={},s=o==="dialog"&&Zt(e);function u(g){if(g===!0){Re(r),a.value=!0;return}a.value=!1,l.value===!1&&(s===!1&&i===null&&(i=Mt(!1,o)),l.value=!0,U.push(e.proxy),Ut(r))}function f(g){if(a.value=!1,g!==!0)return;Re(r),l.value=!1;const p=U.indexOf(e.proxy);p!==-1&&U.splice(p,1),i!==null&&(_t(i),i=null)}return Pt(()=>{f(!0)}),e.proxy.__qPortal=!0,Ht(e.proxy,"contentEl",()=>t.value),{showPortal:u,hidePortal:f,portalIsActive:l,portalIsAccessible:a,renderPortal:()=>s===!0?n():l.value===!0?[z(Lt,{to:i},z(Jt,n))]:void 0}}const ze={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function tl(e,t=()=>{},n=()=>{}){return{transitionProps:m(()=>{const o=`q-transition--${e.transitionShow||t()}`,l=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${l}-leave-from`,leaveActiveClass:`${l}-leave-active`,leaveToClass:`${l}-leave-to`}}),transitionStyle:m(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function ll(){let e;const t=A();function n(){e=void 0}return Be(n),O(n),{removeTick:n,registerTick(o){e=o,J(()=>{e===o&&(ft(t)===!1&&e(),e=void 0)})}}}function nl(){let e=null;const t=A();function n(){e!==null&&(clearTimeout(e),e=null)}return Be(n),O(n),{removeTimeout:n,registerTimeout(o,l){n(),ft(t)===!1&&(e=setTimeout(()=>{e=null,o()},l))}}}const gt=[Element,String],ol=[null,document,document.body,document.scrollingElement,document.documentElement];function bt(e,t){let n=kt(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return ol.includes(n)?window:n}function Oe(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Ae(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function pt(e,t,n=0){const o=arguments[3]===void 0?performance.now():arguments[3],l=Oe(e);if(n<=0){l!==t&&Me(e,t);return}requestAnimationFrame(a=>{const i=a-o,r=l+(t-l)/Math.max(i,n)*i;Me(e,r),r!==t&&pt(e,t,n-i,a)})}function yt(e,t,n=0){const o=arguments[3]===void 0?performance.now():arguments[3],l=Ae(e);if(n<=0){l!==t&&_e(e,t);return}requestAnimationFrame(a=>{const i=a-o,r=l+(t-l)/Math.max(i,n)*i;_e(e,r),r!==t&&yt(e,t,n-i,a)})}function Me(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function _e(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function Ne(e,t,n){if(n){pt(e,t,n);return}Me(e,t)}function Te(e,t,n){if(n){yt(e,t,n);return}_e(e,t)}let re;function il(){if(re!==void 0)return re;const e=document.createElement("p"),t=document.createElement("div");Ve(e,{width:"100%",height:"200px"}),Ve(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;return n===o&&(o=t.clientWidth),t.remove(),re=n-o,re}function rl(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const{notPassiveCapture:de}=H,R=[];function fe(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=U.length-1;for(;n>=0;){const o=U[n].$;if(o.type.name==="QTooltip"){n--;continue}if(o.type.name!=="QDialog")break;if(o.props.seamless!==!0)return;n--}for(let o=R.length-1;o>=0;o--){const l=R[o];if((l.anchorEl.value===null||l.anchorEl.value.contains(t)===!1)&&(t===document.body||l.innerRef.value!==null&&l.innerRef.value.contains(t)===!1))e.qClickOutside=!0,l.onClickOutside(e);else return}}function al(e){R.push(e),R.length===1&&(document.addEventListener("mousedown",fe,de),document.addEventListener("touchstart",fe,de))}function Xe(e){const t=R.findIndex(n=>n===e);t!==-1&&(R.splice(t,1),R.length===0&&(document.removeEventListener("mousedown",fe,de),document.removeEventListener("touchstart",fe,de)))}let Ye,Ke;function Ue(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function sl(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const ke={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{ke[`${e}#ltr`]=e,ke[`${e}#rtl`]=e});function Ge(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:ke[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function ul(e,t){let{top:n,left:o,right:l,bottom:a,width:i,height:r}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],o-=t[0],a+=t[1],l+=t[0],i+=t[0],r+=t[1]),{top:n,bottom:a,height:r,left:o,right:l,width:i,middle:o+(l-o)/2,center:n+(a-n)/2}}function cl(e,t,n){let{top:o,left:l}=e.getBoundingClientRect();return o+=t.top,l+=t.left,n!==void 0&&(o+=n[1],l+=n[0]),{top:o,bottom:o+1,height:1,left:l,right:l+1,width:1,middle:l,center:o}}function dl(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Je(e,t,n,o){return{top:e[n.vertical]-t[o.vertical],left:e[n.horizontal]-t[o.horizontal]}}function wt(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{wt(e,t+1)},10);return}const{targetEl:n,offset:o,anchorEl:l,anchorOrigin:a,selfOrigin:i,absoluteOffset:r,fit:s,cover:u,maxHeight:f,maxWidth:g}=e;if(_.is.ios===!0&&window.visualViewport!==void 0){const W=document.body.style,{offsetLeft:C,offsetTop:M}=window.visualViewport;C!==Ye&&(W.setProperty("--q-pe-left",C+"px"),Ye=C),M!==Ke&&(W.setProperty("--q-pe-top",M+"px"),Ke=M)}const{scrollLeft:p,scrollTop:c}=n,v=r===void 0?ul(l,u===!0?[0,0]:o):cl(l,r,o);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:g,maxHeight:f,visibility:"visible"});const{offsetWidth:q,offsetHeight:P}=n,{elWidth:$,elHeight:y}=s===!0||u===!0?{elWidth:Math.max(v.width,q),elHeight:u===!0?Math.max(v.height,P):P}:{elWidth:q,elHeight:P};let b={maxWidth:g,maxHeight:f};(s===!0||u===!0)&&(b.minWidth=v.width+"px",u===!0&&(b.minHeight=v.height+"px")),Object.assign(n.style,b);const L=dl($,y);let S=Je(v,L,a,i);if(r===void 0||o===void 0)qe(S,v,L,a,i);else{const{top:W,left:C}=S;qe(S,v,L,a,i);let M=!1;if(S.top!==W){M=!0;const E=2*o[1];v.center=v.top-=E,v.bottom-=E+2}if(S.left!==C){M=!0;const E=2*o[0];v.middle=v.left-=E,v.right-=E+2}M===!0&&(S=Je(v,L,a,i),qe(S,v,L,a,i))}b={top:S.top+"px",left:S.left+"px"},S.maxHeight!==void 0&&(b.maxHeight=S.maxHeight+"px",v.height>S.maxHeight&&(b.minHeight=b.maxHeight)),S.maxWidth!==void 0&&(b.maxWidth=S.maxWidth+"px",v.width>S.maxWidth&&(b.minWidth=b.maxWidth)),Object.assign(n.style,b),n.scrollTop!==c&&(n.scrollTop=c),n.scrollLeft!==p&&(n.scrollLeft=p)}function qe(e,t,n,o,l){const a=n.bottom,i=n.right,r=il(),s=window.innerHeight-r,u=document.body.clientWidth;if(e.top<0||e.top+a>s)if(l.vertical==="center")e.top=t[o.vertical]>s/2?Math.max(0,s-a):0,e.maxHeight=Math.min(a,s);else if(t[o.vertical]>s/2){const f=Math.min(s,o.vertical==="center"?t.center:o.vertical===l.vertical?t.bottom:t.top);e.maxHeight=Math.min(a,f),e.top=Math.max(0,f-a)}else e.top=Math.max(0,o.vertical==="center"?t.center:o.vertical===l.vertical?t.top:t.bottom),e.maxHeight=Math.min(a,s-e.top);if(e.left<0||e.left+i>u)if(e.maxWidth=Math.min(i,u),l.horizontal==="middle")e.left=t[o.horizontal]>u/2?Math.max(0,u-i):0;else if(t[o.horizontal]>u/2){const f=Math.min(u,o.horizontal==="middle"?t.middle:o.horizontal===l.horizontal?t.right:t.left);e.maxWidth=Math.min(i,f),e.left=Math.max(0,f-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?t.middle:o.horizontal===l.horizontal?t.left:t.right),e.maxWidth=Math.min(i,u-e.left)}const _l=k({name:"QTooltip",inheritAttrs:!1,props:{...ht,...Xt,...ze,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...ze.transitionShow,default:"jump-down"},transitionHide:{...ze.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Ue},self:{type:String,default:"top middle",validator:Ue},offset:{type:Array,default:()=>[14,14],validator:sl},scrollTarget:gt,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Yt],setup(e,{slots:t,emit:n,attrs:o}){let l,a;const i=A(),{proxy:{$q:r}}=i,s=T(null),u=T(!1),f=m(()=>Ge(e.anchor,r.lang.rtl)),g=m(()=>Ge(e.self,r.lang.rtl)),p=m(()=>e.persistent!==!0),{registerTick:c,removeTick:v}=ll(),{registerTimeout:q}=nl(),{transitionProps:P,transitionStyle:$}=tl(e),{localScrollTarget:y,changeScrollEvent:b,unconfigureScrollTarget:L}=Nt(e,Y),{anchorEl:S,canShow:W,anchorEvents:C}=Rt({showing:u,configureAnchorEl:X}),{show:M,hide:E}=Kt({showing:u,canShow:W,handleShow:ge,handleHide:d,hideOnRouteChange:p,processOnMount:!0});Object.assign(C,{delayShow:D,delayHide:j});const{showPortal:oe,hidePortal:ie,renderPortal:N}=el(i,s,St,"tooltip");if(r.platform.is.mobile===!0){const x={anchorEl:S,innerRef:s,onClickOutside(Q){return E(Q),Q.target.classList.contains("q-dialog__backdrop")&&ve(Q),!0}},pe=m(()=>e.modelValue===null&&e.persistent!==!0&&u.value===!0);B(pe,Q=>{(Q===!0?al:Xe)(x)}),O(()=>{Xe(x)})}function ge(x){oe(),c(()=>{a=new MutationObserver(()=>w()),a.observe(s.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),w(),Y()}),l===void 0&&(l=B(()=>r.screen.width+"|"+r.screen.height+"|"+e.self+"|"+e.anchor+"|"+r.lang.rtl,w)),q(()=>{oe(!0),n("show",x)},e.transitionDuration)}function d(x){v(),ie(),h(),q(()=>{ie(!0),n("hide",x)},e.transitionDuration)}function h(){a!==void 0&&(a.disconnect(),a=void 0),l!==void 0&&(l(),l=void 0),L(),K(C,"tooltipTemp")}function w(){wt({targetEl:s.value,offset:e.offset,anchorEl:S.value,anchorOrigin:f.value,selfOrigin:g.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function D(x){if(r.platform.is.mobile===!0){ce(),document.body.classList.add("non-selectable");const pe=S.value,Q=["touchmove","touchcancel","touchend","click"].map(De=>[pe,De,"delayHide","passiveCapture"]);V(C,"tooltipTemp",Q)}q(()=>{M(x)},e.delay)}function j(x){r.platform.is.mobile===!0&&(K(C,"tooltipTemp"),ce(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),q(()=>{E(x)},e.hideDelay)}function X(){if(e.noParentEvent===!0||S.value===null)return;const x=r.platform.is.mobile===!0?[[S.value,"touchstart","delayShow","passive"]]:[[S.value,"mouseenter","delayShow","passive"],[S.value,"mouseleave","delayHide","passive"]];V(C,"anchor",x)}function Y(){if(S.value!==null||e.scrollTarget!==void 0){y.value=bt(S.value,e.scrollTarget);const x=e.noParentEvent===!0?w:E;b(y.value,x)}}function be(){return u.value===!0?z("div",{...o,ref:s,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",o.class],style:[o.style,$.value],role:"tooltip"},ne(t.default)):null}function St(){return z($t,P.value,be)}return O(h),Object.assign(i.proxy,{updatePosition:w}),N}}),kl=k({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:t}){const n=m(()=>{const o=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(l=>e[l]===!0).map(l=>`q-btn-group--${l}`).join(" ");return`q-btn-group row no-wrap${o.length!==0?" "+o:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>z("div",{class:n.value},ne(t.default))}}),fl=["ul","ol"],$l=k({name:"QList",props:{...he,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const n=A(),o=me(e,n.proxy.$q),l=m(()=>fl.includes(e.tag)?null:"list"),a=m(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(o.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>z(e.tag,{class:a.value,role:l.value},ne(t.default))}}),vl=k({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[z("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),z("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),je(z("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),je(z("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),{passive:Ze}=H,hl=["both","horizontal","vertical"],ml=k({name:"QScrollObserver",props:{axis:{type:String,validator:e=>hl.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:gt},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let o=null,l,a;B(()=>e.scrollTarget,()=>{s(),r()});function i(){o!==null&&o();const g=Math.max(0,Oe(l)),p=Ae(l),c={top:g-n.position.top,left:p-n.position.left};if(e.axis==="vertical"&&c.top===0||e.axis==="horizontal"&&c.left===0)return;const v=Math.abs(c.top)>=Math.abs(c.left)?c.top<0?"up":"down":c.left<0?"left":"right";n.position={top:g,left:p},n.directionChanged=n.direction!==v,n.delta=c,n.directionChanged===!0&&(n.direction=v,n.inflectionPoint=n.position),t("scroll",{...n})}function r(){l=bt(a,e.scrollTarget),l.addEventListener("scroll",u,Ze),u(!0)}function s(){l!==void 0&&(l.removeEventListener("scroll",u,Ze),l=void 0)}function u(g){if(g===!0||e.debounce===0||e.debounce==="0")i();else if(o===null){const[p,c]=e.debounce?[setTimeout(i,e.debounce),clearTimeout]:[requestAnimationFrame(i),cancelAnimationFrame];o=()=>{c(p),o=null}}}const{proxy:f}=A();return B(()=>f.$q.lang.rtl,i),G(()=>{a=f.$el.parentNode,r()}),O(()=>{o!==null&&o(),s()}),Object.assign(f,{trigger:u,getPosition:()=>n}),$e}}),We={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},gl=Object.keys(We);We.all=!0;function et(e){const t={};for(const n of gl)e[n]===!0&&(t[n]=!0);return Object.keys(t).length===0?We:(t.horizontal===!0?t.left=t.right=!0:t.left===!0&&t.right===!0&&(t.horizontal=!0),t.vertical===!0?t.up=t.down=!0:t.up===!0&&t.down===!0&&(t.vertical=!0),t.horizontal===!0&&t.vertical===!0&&(t.all=!0),t)}const bl=["INPUT","TEXTAREA"];function tt(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&bl.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function Ee(e,t,n){const o=Le(e);let l,a=o.left-t.event.x,i=o.top-t.event.y,r=Math.abs(a),s=Math.abs(i);const u=t.direction;u.horizontal===!0&&u.vertical!==!0?l=a<0?"left":"right":u.horizontal!==!0&&u.vertical===!0?l=i<0?"up":"down":u.up===!0&&i<0?(l="up",r>s&&(u.left===!0&&a<0?l="left":u.right===!0&&a>0&&(l="right"))):u.down===!0&&i>0?(l="down",r>s&&(u.left===!0&&a<0?l="left":u.right===!0&&a>0&&(l="right"))):u.left===!0&&a<0?(l="left",r0&&(l="down"))):u.right===!0&&a>0&&(l="right",r0&&(l="down")));let f=!1;if(l===void 0&&n===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};l=t.event.lastDir,f=!0,l==="left"||l==="right"?(o.left-=a,r=0,a=0):(o.top-=i,s=0,i=0)}return{synthetic:f,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:o,direction:l,isFirst:t.event.isFirst,isFinal:n===!0,duration:Date.now()-t.event.time,distance:{x:r,y:s},offset:{x:a,y:i},delta:{x:o.left-t.event.lastX,y:o.top-t.event.lastY}}}}let pl=0;const lt=Bt({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(n.mouse!==!0&&_.has.touch!==!0)return;function o(a,i){n.mouse===!0&&i===!0?ve(a):(n.stop===!0&&we(a),n.prevent===!0&&ue(a))}const l={uid:"qvtp_"+pl++,handler:t,modifiers:n,direction:et(n),noop:$e,mouseStart(a){tt(a,l)&&Ot(a)&&(V(l,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),l.start(a,!0))},touchStart(a){if(tt(a,l)){const i=a.target;V(l,"temp",[[i,"touchmove","move","notPassiveCapture"],[i,"touchcancel","end","passiveCapture"],[i,"touchend","end","passiveCapture"]]),l.start(a)}},start(a,i){if(_.is.firefox===!0&&ye(e,!0),l.lastEvt=a,i===!0||n.stop===!0){if(l.direction.all!==!0&&(i!==!0||l.modifiers.mouseAllDir!==!0&&l.modifiers.mousealldir!==!0)){const u=a.type.indexOf("mouse")!==-1?new MouseEvent(a.type,a):new TouchEvent(a.type,a);a.defaultPrevented===!0&&ue(u),a.cancelBubble===!0&&we(u),Object.assign(u,{qKeyEvent:a.qKeyEvent,qClickOutside:a.qClickOutside,qAnchorHandled:a.qAnchorHandled,qClonedBy:a.qClonedBy===void 0?[l.uid]:a.qClonedBy.concat(l.uid)}),l.initialEvent={target:a.target,event:u}}we(a)}const{left:r,top:s}=Le(a);l.event={x:r,y:s,time:Date.now(),mouse:i===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:r,lastY:s}},move(a){if(l.event===void 0)return;const i=Le(a),r=i.left-l.event.x,s=i.top-l.event.y;if(r===0&&s===0)return;l.lastEvt=a;const u=l.event.mouse===!0,f=()=>{o(a,u);let c;n.preserveCursor!==!0&&n.preservecursor!==!0&&(c=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),u===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),ce(),l.styleCleanup=v=>{if(l.styleCleanup=void 0,c!==void 0&&(document.documentElement.style.cursor=c),document.body.classList.remove("non-selectable"),u===!0){const q=()=>{document.body.classList.remove("no-pointer-events--children")};v!==void 0?setTimeout(()=>{q(),v()},50):q()}else v!==void 0&&v()}};if(l.event.detected===!0){l.event.isFirst!==!0&&o(a,l.event.mouse);const{payload:c,synthetic:v}=Ee(a,l,!1);c!==void 0&&(l.handler(c)===!1?l.end(a):(l.styleCleanup===void 0&&l.event.isFirst===!0&&f(),l.event.lastX=c.position.left,l.event.lastY=c.position.top,l.event.lastDir=v===!0?void 0:c.direction,l.event.isFirst=!1));return}if(l.direction.all===!0||u===!0&&(l.modifiers.mouseAllDir===!0||l.modifiers.mousealldir===!0)){f(),l.event.detected=!0,l.move(a);return}const g=Math.abs(r),p=Math.abs(s);g!==p&&(l.direction.horizontal===!0&&g>p||l.direction.vertical===!0&&g0||l.direction.left===!0&&g>p&&r<0||l.direction.right===!0&&g>p&&r>0?(l.event.detected=!0,l.move(a)):l.end(a,!0))},end(a,i){if(l.event!==void 0){if(K(l,"temp"),_.is.firefox===!0&&ye(e,!1),i===!0)l.styleCleanup!==void 0&&l.styleCleanup(),l.event.detected!==!0&&l.initialEvent!==void 0&&l.initialEvent.target.dispatchEvent(l.initialEvent.event);else if(l.event.detected===!0){l.event.isFirst===!0&&l.handler(Ee(a===void 0?l.lastEvt:a,l).payload);const{payload:r}=Ee(a===void 0?l.lastEvt:a,l,!0),s=()=>{l.handler(r)};l.styleCleanup!==void 0?l.styleCleanup(s):s()}l.event=void 0,l.initialEvent=void 0,l.lastEvt=void 0}}};if(e.__qtouchpan=l,n.mouse===!0){const a=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";V(l,"main",[[e,"mousedown","mouseStart",`passive${a}`]])}_.has.touch===!0&&V(l,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;n!==void 0&&(t.oldValue!==t.value&&(typeof value!="function"&&n.end(),n.handler=t.value),n.direction=et(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),K(t,"main"),K(t,"temp"),_.is.firefox===!0&&ye(e,!1),t.styleCleanup!==void 0&&t.styleCleanup(),delete e.__qtouchpan)}});function Z(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function Bl(e,t,n){if(n<=t)return t;const o=n-t+1;let l=t+(e-t)%o;return le>=250?50:Math.ceil(e/5),Ol=k({name:"QScrollArea",props:{...he,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(e,{slots:t,emit:n}){const o=T(!1),l=T(!1),a=T(!1),i={vertical:T(0),horizontal:T(0)},r={vertical:{ref:T(null),position:T(0),size:T(0)},horizontal:{ref:T(null),position:T(0),size:T(0)}},{proxy:s}=A(),u=me(e,s.$q);let f=null,g;const p=T(null),c=m(()=>"q-scrollarea"+(u.value===!0?" q-scrollarea--dark":""));Object.assign(i,{verticalInner:m(()=>i.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:m(()=>i.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),r.vertical.percentage=m(()=>{const d=r.vertical.size.value-i.vertical.value;if(d<=0)return 0;const h=Z(r.vertical.position.value/d,0,1);return Math.round(h*1e4)/1e4}),r.vertical.thumbHidden=m(()=>(e.visible===null?a.value:e.visible)!==!0&&o.value===!1&&l.value===!1||r.vertical.size.value<=i.vertical.value+1),r.vertical.thumbStart=m(()=>e.verticalOffset[0]+r.vertical.percentage.value*(i.verticalInner.value-r.vertical.thumbSize.value)),r.vertical.thumbSize=m(()=>Math.round(Z(i.verticalInner.value*i.verticalInner.value/r.vertical.size.value,it(i.verticalInner.value),i.verticalInner.value))),r.vertical.style=m(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${r.vertical.thumbStart.value}px`,height:`${r.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),r.vertical.thumbClass=m(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(r.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),r.vertical.barClass=m(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(r.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),r.horizontal.percentage=m(()=>{const d=r.horizontal.size.value-i.horizontal.value;if(d<=0)return 0;const h=Z(Math.abs(r.horizontal.position.value)/d,0,1);return Math.round(h*1e4)/1e4}),r.horizontal.thumbHidden=m(()=>(e.visible===null?a.value:e.visible)!==!0&&o.value===!1&&l.value===!1||r.horizontal.size.value<=i.horizontal.value+1),r.horizontal.thumbStart=m(()=>e.horizontalOffset[0]+r.horizontal.percentage.value*(i.horizontalInner.value-r.horizontal.thumbSize.value)),r.horizontal.thumbSize=m(()=>Math.round(Z(i.horizontalInner.value*i.horizontalInner.value/r.horizontal.size.value,it(i.horizontalInner.value),i.horizontalInner.value))),r.horizontal.style=m(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[s.$q.lang.rtl===!0?"right":"left"]:`${r.horizontal.thumbStart.value}px`,width:`${r.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),r.horizontal.thumbClass=m(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(r.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),r.horizontal.barClass=m(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(r.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const v=m(()=>r.vertical.thumbHidden.value===!0&&r.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function q(){const d={};return nt.forEach(h=>{const w=r[h];Object.assign(d,{[h+"Position"]:w.position.value,[h+"Percentage"]:w.percentage.value,[h+"Size"]:w.size.value,[h+"ContainerSize"]:i[h].value,[h+"ContainerInnerSize"]:i[h+"Inner"].value})}),d}const P=At(()=>{const d=q();d.ref=s,n("scroll",d)},0);function $(d,h,w){if(nt.includes(d)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(d==="vertical"?Ne:Te)(p.value,h,w)}function y({height:d,width:h}){let w=!1;i.vertical.value!==d&&(i.vertical.value=d,w=!0),i.horizontal.value!==h&&(i.horizontal.value=h,w=!0),w===!0&&C()}function b({position:d}){let h=!1;r.vertical.position.value!==d.top&&(r.vertical.position.value=d.top,h=!0),r.horizontal.position.value!==d.left&&(r.horizontal.position.value=d.left,h=!0),h===!0&&C()}function L({height:d,width:h}){r.horizontal.size.value!==h&&(r.horizontal.size.value=h,C()),r.vertical.size.value!==d&&(r.vertical.size.value=d,C())}function S(d,h){const w=r[h];if(d.isFirst===!0){if(w.thumbHidden.value===!0)return;g=w.position.value,l.value=!0}else if(l.value!==!0)return;d.isFinal===!0&&(l.value=!1);const D=Ce[h],j=(w.size.value-i[h].value)/(i[h+"Inner"].value-w.thumbSize.value),X=d.distance[D.dist],Y=g+(d.direction===D.dir?1:-1)*X*j;M(Y,h)}function W(d,h){const w=r[h];if(w.thumbHidden.value!==!0){const D=h==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],j=d[Ce[h].offset]-D,X=w.thumbStart.value-D;if(jX+w.thumbSize.value){const Y=j-w.thumbSize.value/2,be=Z(Y/(i[h+"Inner"].value-w.thumbSize.value),0,1);M(be*Math.max(0,w.size.value-i[h].value),h)}w.ref.value!==null&&w.ref.value.dispatchEvent(new MouseEvent(d.type,d))}}function C(){o.value=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,o.value=!1},e.delay),e.onScroll!==void 0&&P()}function M(d,h){p.value[Ce[h].scroll]=d}let E=null;function oe(){E!==null&&clearTimeout(E),E=setTimeout(()=>{E=null,a.value=!0},s.$q.platform.is.ios?50:0)}function ie(){E!==null&&(clearTimeout(E),E=null),a.value=!1}let N=null;B(()=>s.$q.lang.rtl,d=>{p.value!==null&&Te(p.value,Math.abs(r.horizontal.position.value)*(d===!0?-1:1))}),Be(()=>{N={top:r.vertical.position.value,left:r.horizontal.position.value}}),Wt(()=>{if(N===null)return;const d=p.value;d!==null&&(Te(d,N.left),Ne(d,N.top))}),O(P.cancel),Object.assign(s,{getScrollTarget:()=>p.value,getScroll:q,getScrollPosition:()=>({top:r.vertical.position.value,left:r.horizontal.position.value}),getScrollPercentage:()=>({top:r.vertical.percentage.value,left:r.horizontal.percentage.value}),setScrollPosition:$,setScrollPercentage(d,h,w){$(d,h*(r[d].size.value-i[d].value)*(d==="horizontal"&&s.$q.lang.rtl===!0?-1:1),w)}});const ge={scroll:r,thumbVertDir:[[lt,d=>{S(d,"vertical")},void 0,{vertical:!0,...ot}]],thumbHorizDir:[[lt,d=>{S(d,"horizontal")},void 0,{horizontal:!0,...ot}]],onVerticalMousedown(d){W(d,"vertical")},onHorizontalMousedown(d){W(d,"horizontal")}};return()=>z("div",{class:c.value,onMouseenter:oe,onMouseleave:ie},[z("div",{ref:p,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[z("div",{class:"q-scrollarea__content absolute",style:v.value},Dt(t.default,[z(Ie,{debounce:0,onResize:L})])),z(ml,{axis:"both",onScroll:b})]),z(Ie,{debounce:0,onResize:y}),z(vl,{store:ge,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}});function Al(e,t,n){let o;function l(){o!==void 0&&(Qe.remove(o),o=void 0)}return O(()=>{e.value===!0&&l()}),{removeFromHistory:l,addToHistory(){o={condition:()=>n.value===!0,handler:t},Qe.add(o)}}}let ee=0,xe,Pe,te,He=!1,rt,at,st,F=null;function yl(e){wl(e)&&ve(e)}function wl(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=Vt(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),l=n||o?e.deltaY:e.deltaX;for(let a=0;a0&&i.scrollTop+i.clientHeight===i.scrollHeight:l<0&&i.scrollLeft===0?!0:l>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function ut(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ae(e){He!==!0&&(He=!0,requestAnimationFrame(()=>{He=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:o}=document.scrollingElement;(te===void 0||t!==window.innerHeight)&&(te=n-t,document.scrollingElement.scrollTop=o),o>te&&(document.scrollingElement.scrollTop-=Math.ceil((o-te)/8))}))}function ct(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:o,overflowX:l}=window.getComputedStyle(t);xe=Ae(window),Pe=Oe(window),rt=t.style.left,at=t.style.top,st=window.location.href,t.style.left=`-${xe}px`,t.style.top=`-${Pe}px`,l!=="hidden"&&(l==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),o!=="hidden"&&(o==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,_.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ae,H.passiveCapture),window.visualViewport.addEventListener("scroll",ae,H.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ut,H.passiveCapture))}_.is.desktop===!0&&_.is.mac===!0&&window[`${e}EventListener`]("wheel",yl,H.notPassive),e==="remove"&&(_.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",ae,H.passiveCapture),window.visualViewport.removeEventListener("scroll",ae,H.passiveCapture)):window.removeEventListener("scroll",ut,H.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=rt,t.style.top=at,window.location.href===st&&window.scrollTo(xe,Pe),te=void 0)}function Sl(e){let t="add";if(e===!0){if(ee++,F!==null){clearTimeout(F),F=null;return}if(ee>1)return}else{if(ee===0||(ee--,ee>0))return;if(t="remove",_.is.ios===!0&&_.is.nativeMobile===!0){F!==null&&clearTimeout(F),F=setTimeout(()=>{ct(t),F=null},100);return}}ct(t)}function Wl(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,Sl(t))}}}function Dl(){return jt(Qt)}export{el as A,Pl as B,Ll as C,Ml as D,Hl as E,gt as F,bt as G,xl as H,Ue as I,sl as J,Nt as K,Rt as L,Xe as M,wt as N,Ge as O,Gt as P,Ie as Q,al as R,Bl as S,lt as T,he as a,Yt as b,me as c,nl as d,Kt as e,Al as f,Z as g,Wl as h,il as i,ml as j,Dl as k,Ol as l,$l as m,ql as n,Tl as o,El as p,Cl as q,kl as r,_l as s,ll as t,Xt as u,et as v,tt as w,ce as x,ze as y,tl as z}; diff --git a/packages/modules/web_themes/koala/web/index.html b/packages/modules/web_themes/koala/web/index.html index 1a9569c07f..99dc8cce56 100644 --- a/packages/modules/web_themes/koala/web/index.html +++ b/packages/modules/web_themes/koala/web/index.html @@ -1,3 +1,3 @@ -openWB +openWB
\ No newline at end of file