From d81a35985d808946dd70f8df30b3da98dbd61b88 Mon Sep 17 00:00:00 2001 From: jemu75 Date: Sat, 9 Jul 2022 17:45:37 +0200 Subject: [PATCH] v3.34.3 --- README.md | 2 +- package.json | 2 +- public/cfg/config.json | 5 ++ public/cfg/templ_shellyrgb_mqtt.json | 2 +- public/cfg/templ_water.json | 17 ++--- public/cfg/templ_waterfall.json | 28 ++++++++ src/components/TemplCam.vue | 4 +- src/components/TemplDefault.vue | 3 +- src/components/TemplWdTimer.vue | 67 +++++++++++++++---- src/plugins/fhem.js | 43 +++++++++--- www/fhemapp/cfg/templ_shellyrgb_mqtt.json | 2 +- www/fhemapp/cfg/templ_water.json | 17 ++--- www/fhemapp/cfg/templ_waterfall.json | 28 ++++++++ .../{396.8ecd64f4.css => 507.8ecd64f4.css} | 0 .../{617.b79779ed.css => 630.b79779ed.css} | 0 .../css/{583.8ecd64f4.css => 96.00e0efdd.css} | 2 +- www/fhemapp/index.html | 2 +- ...acy.39686d97.js => 285-legacy.2d64a31e.js} | 0 .../js/{285.6fc47f33.js => 285.6f4a97dd.js} | 0 ...acy.c29a322f.js => 322-legacy.a42867bd.js} | 0 .../js/{322.a37a620a.js => 322.33ddfd11.js} | 0 ...acy.ef87a395.js => 337-legacy.33201bb8.js} | 2 +- .../js/{337.3c817406.js => 337.f1a9c2fa.js} | 2 +- ...acy.c0fe53a6.js => 507-legacy.4f288f72.js} | 2 +- .../js/{396.02bb2eaa.js => 507.4ff242cc.js} | 2 +- www/fhemapp/js/583-legacy.482ee3b1.js | 1 - www/fhemapp/js/583.18a1d800.js | 1 - ...acy.1d5c53e3.js => 630-legacy.44e29b6a.js} | 2 +- .../js/{617.e31d04c8.js => 630.98a6a9da.js} | 2 +- www/fhemapp/js/798-legacy.154ede8b.js | 1 + www/fhemapp/js/798-legacy.741473f9.js | 1 - www/fhemapp/js/798.430ef374.js | 1 + www/fhemapp/js/798.46c09455.js | 1 - ...acy.8b8fa91e.js => 869-legacy.4d6f8e36.js} | 2 +- .../js/{869.df959138.js => 869.71b20017.js} | 2 +- www/fhemapp/js/96-legacy.29e7d923.js | 1 + www/fhemapp/js/96.96944520.js | 1 + ...acy.45707965.js => app-legacy.60fdd80b.js} | 2 +- www/fhemapp/js/app.43ae2549.js | 1 + www/fhemapp/js/app.9b04bc9d.js | 1 - ...dc.js => chunk-vendors-legacy.68ec7361.js} | 2 +- ....38de9a7d.js => chunk-vendors.d1a10a6a.js} | 14 ++-- 42 files changed, 201 insertions(+), 67 deletions(-) mode change 100755 => 100644 public/cfg/templ_water.json create mode 100644 public/cfg/templ_waterfall.json create mode 100644 www/fhemapp/cfg/templ_waterfall.json rename www/fhemapp/css/{396.8ecd64f4.css => 507.8ecd64f4.css} (100%) rename www/fhemapp/css/{617.b79779ed.css => 630.b79779ed.css} (100%) rename www/fhemapp/css/{583.8ecd64f4.css => 96.00e0efdd.css} (64%) rename www/fhemapp/js/{285-legacy.39686d97.js => 285-legacy.2d64a31e.js} (100%) rename www/fhemapp/js/{285.6fc47f33.js => 285.6f4a97dd.js} (100%) rename www/fhemapp/js/{322-legacy.c29a322f.js => 322-legacy.a42867bd.js} (100%) rename www/fhemapp/js/{322.a37a620a.js => 322.33ddfd11.js} (100%) rename www/fhemapp/js/{337-legacy.ef87a395.js => 337-legacy.33201bb8.js} (99%) rename www/fhemapp/js/{337.3c817406.js => 337.f1a9c2fa.js} (99%) rename www/fhemapp/js/{396-legacy.c0fe53a6.js => 507-legacy.4f288f72.js} (78%) rename www/fhemapp/js/{396.02bb2eaa.js => 507.4ff242cc.js} (82%) delete mode 100644 www/fhemapp/js/583-legacy.482ee3b1.js delete mode 100644 www/fhemapp/js/583.18a1d800.js rename www/fhemapp/js/{617-legacy.1d5c53e3.js => 630-legacy.44e29b6a.js} (83%) rename www/fhemapp/js/{617.e31d04c8.js => 630.98a6a9da.js} (83%) create mode 100644 www/fhemapp/js/798-legacy.154ede8b.js delete mode 100644 www/fhemapp/js/798-legacy.741473f9.js create mode 100644 www/fhemapp/js/798.430ef374.js delete mode 100644 www/fhemapp/js/798.46c09455.js rename www/fhemapp/js/{869-legacy.8b8fa91e.js => 869-legacy.4d6f8e36.js} (99%) rename www/fhemapp/js/{869.df959138.js => 869.71b20017.js} (99%) create mode 100644 www/fhemapp/js/96-legacy.29e7d923.js create mode 100644 www/fhemapp/js/96.96944520.js rename www/fhemapp/js/{app-legacy.45707965.js => app-legacy.60fdd80b.js} (50%) create mode 100644 www/fhemapp/js/app.43ae2549.js delete mode 100644 www/fhemapp/js/app.9b04bc9d.js rename www/fhemapp/js/{chunk-vendors-legacy.bb1050dc.js => chunk-vendors-legacy.68ec7361.js} (86%) rename www/fhemapp/js/{chunk-vendors.38de9a7d.js => chunk-vendors.d1a10a6a.js} (56%) diff --git a/README.md b/README.md index a98fb11c..addc9f2f 100755 --- a/README.md +++ b/README.md @@ -885,7 +885,7 @@ Da *Cam* kein Standard-Template ist, könnt ihr nur ausgewählte Eigenschaften ``` "setup": { "size": "col-12 col-md-6 col-lg-6", - "source": "" + "source": ["reading:value:url"], "status": { "bar": ["reading:value:level:color"] }, diff --git a/package.json b/package.json index 6c58436f..d087cc2f 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fhemapp", - "version": "3.34.2", + "version": "3.34.3", "private": true, "author": "jemu75", "scripts": { diff --git a/public/cfg/config.json b/public/cfg/config.json index a1ef1b1a..603adcd2 100755 --- a/public/cfg/config.json +++ b/public/cfg/config.json @@ -1,4 +1,9 @@ { + "connection": { + "location": "http://fhem", + "port": "8083", + "path": "fhem" + }, "options": { "maxChartPoints": 100, "logBuffer": 500 diff --git a/public/cfg/templ_shellyrgb_mqtt.json b/public/cfg/templ_shellyrgb_mqtt.json index b1b9a6e3..31cf4c93 100755 --- a/public/cfg/templ_shellyrgb_mqtt.json +++ b/public/cfg/templ_shellyrgb_mqtt.json @@ -18,7 +18,7 @@ { "leftBtn": "mdi-lightbulb-outline", "leftClick": ["gain::gain 0"], - "slider": ["gain::gain %v:%n:0:100"], + "slider": ["gain::gain %v:%n:0:100:1"], "text": "Helligkeit", "rightBtn": "mdi-lightbulb-on-outline", "rightClick": ["gain::gain 100"] diff --git a/public/cfg/templ_water.json b/public/cfg/templ_water.json old mode 100755 new mode 100644 index de6275e1..3232ae05 --- a/public/cfg/templ_water.json +++ b/public/cfg/templ_water.json @@ -1,28 +1,29 @@ { "name": "water", "author": "jemu75", - "date": "2021-06-14", + "date": "2022-06-26", "status": { "bar": ["state:on:100:success","state:off:0:success"], "error": ["Connected.receiver.Readings.Activity.Value:^(?!alive):100:error:keine Verbindung"] }, "main": [ + { + "text": ["timedOn:running:läuft...","Connected.weekdaytimer.Attributes.disable:1:manuell","Connected.weekdaytimer.Attributes.comment::%s","state:off:aus"], + "rightBtn": "mdi-timer-outline", + "rightMenu": ["aus:off","15 Minuten:on-for-timer 900","30 Minuten:on-for-timer 1800","45 Minuten:on-for-timer 2700","60 Minuten:on-for-timer 3600","automatich:set Connected.weekdaytimer enable","manuell:set Connected.weekdaytimer disable"] + }, { "leftBtn": "mdi-power-off", "leftClick": ["state::off"], "text": ["state:on:an","state:off:aus","state::%s"], "rightBtn": "mdi-power-on", "rightClick": ["state::on"] - }, - { - "text": ["timedOn:running:läuft...","timedOn::aus"], - "rightBtn": "mdi-timer-outline", - "rightMenu": ["15 Minuten:on-for-timer 900","30 Minuten:on-for-timer 1800","60 Minuten:on-for-timer 3600"] } ], "info": { "left1": ["state:off::mdi-water-off","state:on::mdi-watering-can"], - "left2": ["timedOn:running::mdi-timer-outline"], - "mid1": ["Readings.trigLast.Time::%t"] + "left2": ["Connected.weekdaytimer.Attributes.disable:1::","Connected.weekdaytimer.Attributes.disable:0::mdi-calendar-clock"], + "mid1": ["Readings.trigLast.Time::%t"], + "right2": ["timedOn:running::mdi-timer-outline"] } } diff --git a/public/cfg/templ_waterfall.json b/public/cfg/templ_waterfall.json new file mode 100644 index 00000000..3c678982 --- /dev/null +++ b/public/cfg/templ_waterfall.json @@ -0,0 +1,28 @@ +{ + "name": "waterfall", + "author": "jemu75", + "date": "2022-06-27", + "status": { + "bar": ["state:on:100:success","state:off:0:success"], + "error": ["Connected.receiver.Readings.Activity.Value:^(?!alive):100:error:keine Verbindung"] + }, + "main": [ + { + "text": ["timedOn:running:läuft...","state:off:aus"], + "rightBtn": "mdi-timer-outline", + "rightMenu": ["aus:off","15 Minuten:on-for-timer 900","30 Minuten:on-for-timer 1800","45 Minuten:on-for-timer 2700","60 Minuten:on-for-timer 3600"] + }, + { + "leftBtn": "mdi-power-off", + "leftClick": ["state::off"], + "text": ["state:on:an","state:off:aus","state::%s"], + "rightBtn": "mdi-power-on", + "rightClick": ["state::on"] + } + ], + "info": { + "left1": ["state:off::mdi-water-off","state:on::mdi-watering-can"], + "mid1": ["Readings.trigLast.Time::%t"], + "right2": ["timedOn:running::mdi-timer-outline"] + } +} diff --git a/src/components/TemplCam.vue b/src/components/TemplCam.vue index 963c333c..0575c2f6 100755 --- a/src/components/TemplCam.vue +++ b/src/components/TemplCam.vue @@ -140,7 +140,9 @@ created() { this.app.options = this.$fhem.app.options; this.size = this.$fhem.getEl(this.item, 'Options', 'setup', 'size') || 'col-12 col-sm-12 col-md-6 col-lg-4'; - this.source = this.$fhem.getEl(this.item, 'Options', 'setup', 'source') || ''; + + let srcUrl = this.$fhem.handleVals(this.item, this.$fhem.getEl(this.item, 'Options', 'setup', 'source') || ''); + this.source = srcUrl[0]; if(this.$route.params.filter && this.$route.params.filter.match('&size=max')) { this.maxSize = true; diff --git a/src/components/TemplDefault.vue b/src/components/TemplDefault.vue index 80b5c290..7e469499 100755 --- a/src/components/TemplDefault.vue +++ b/src/components/TemplDefault.vue @@ -590,9 +590,10 @@ this.main[lvl].sliderPrevent = true; let cmd = this.createCmd(param[0]); - let decimal = (param[4] && param[4].match('.')) ? 1 : 0; + let decimal = (param[4] && param[4].match('\\.')) ? 1 : 0; cmd = cmd.replace('%v', val.toFixed(decimal)); + this.sendCmd(cmd); } } diff --git a/src/components/TemplWdTimer.vue b/src/components/TemplWdTimer.vue index 9a0fa51d..553c01fc 100755 --- a/src/components/TemplWdTimer.vue +++ b/src/components/TemplWdTimer.vue @@ -50,6 +50,32 @@
+ + +
+ {{ text }} +
+
+
+
+ + + + + + + {{ profile.time }} + + + {{ profile.weekdays }} + + + + +
@@ -127,14 +153,18 @@ status: { color: 'success', level: 0 - }, + }, + text: '', app: { options: { debugMode: false } }, - setup: { - + defs: { + device: null, + globalWeekdays: null, + lang: null, + profiles: [] } }), @@ -143,19 +173,13 @@ immediate: true, deep: true, handler() { - //this.doList(); } } }, created() { - let setup = this.iconSet = this.$fhem.getEl(this.item, 'Options','setup'); this.app.options = this.$fhem.app.options; if(this.$fhem.getEl(this.item, 'Options', 'setup', 'expanded')) this.expand(); - if(setup) { - // achtung hier noch differenzieren! - this.setup = setup; - } this.loadDefs(); }, @@ -171,10 +195,29 @@ }, loadDefs() { + this.defs = { + device: null, + globalWeekdays: null, + lang: null, + profiles: [] + }; + if(this.$fhem.getEl(this.item, 'Internals', 'TYPE') === 'WeekdayTimer') { - let def = this.$fhem.getEl(this.item, 'Internals', 'DEF') || ''; - let defs = def.split(' '); - console.log(defs); + let defs = this.$fhem.getEl(this.item, 'Internals', 'DEF').split(' '); + if(defs.length > 1) { + for(var [idx, def] of defs.entries()) { + if(idx === 0) this.defs.device = def; + if(idx > 0 && /^[0-8]*$/.test(def)) this.defs.globalWeekdays = def; + if(idx > 0 && /^de|en|fr|nl$/.test(def)) this.defs.lang = def; + if(idx > 0 && /\|/.test(def)) { + let defParts = def.split('|'); + let defPart = {}; + if(/:|^{*}$/.test(defParts[0])) defParts.unshift(this.defs.globalWeekdays || '0123456'); + if(defParts.length > 2) defPart = { weekdays: defParts[0].split(''), time: new Date('1900-01-01T' + defParts[1]), cmd: defParts[2] }; + this.defs.profiles.push(defPart); + } + } + } } else { this.$fhem.log({ lvl: 1, msg: 'Template is not a FHEM-WeekdayTimer.', meta: this.item }); } diff --git a/src/plugins/fhem.js b/src/plugins/fhem.js index 9d6f5277..ac55bcad 100755 --- a/src/plugins/fhem.js +++ b/src/plugins/fhem.js @@ -476,28 +476,52 @@ class Fhem extends EventEmitter { } // subFunction for readLogFile() - split timestamp and value and reduce data if large array - handleLogData(data) { + handleLogData(data, calc) { let items = data.split('\n'); if(items.length > 3) items.splice(-3, 3); let result = []; let steps = items.length > this.app.options.maxChartPoints ? parseInt(items.length / this.app.options.maxChartPoints) : 1; // important for performance let nextStep = steps; - let sumVal = 0; + let sumVal = null; let idx = 1; + let lastTs = null; for(const item of items) { let itemPart = item.split(' '); let timestamp = Date.parse(itemPart[0].replace('_','T')); + let ts = new Date(timestamp); + let calcTs = null; let value = parseFloat(itemPart[1]); - sumVal += value; + if(calc) { + if(/-min/.test(calc) && (sumVal > value || !sumVal)) sumVal = value; + if(/-max/.test(calc) && sumVal < value) sumVal = value; + if(/-avg/.test(calc)) sumVal = (sumVal + value) / 2; + if(/-delta/.test(calc) && !sumVal) sumVal = value; - if(idx >= nextStep || idx === items.length) { - if(idx === items.length) steps = steps - (nextStep - idx); + if(/hour-/.test(calc)) calcTs = new Date(ts.getFullYear() +'-' + (ts.getMonth() + 1) + '-' + ts.getDate()).setHours(ts.getHours()); + if(/day-/.test(calc)) calcTs = new Date(ts.getFullYear() +'-' + (ts.getMonth() + 1) + '-' + ts.getDate()).setHours(12); + if(/week-/.test(calc)) calcTs = new Date(ts.getFullYear() +'-' + (ts.getMonth() + 1) + '-' + ts.getDate()).setDate(ts.getDate() - ts.getDay() + 3); + if(/month-/.test(calc)) calcTs = new Date(ts.getFullYear() +'-' + (ts.getMonth() + 1) + '-1'); + if(/year-/.test(calc)) calcTs = new Date(ts.getFullYear() + '-1-1'); - result.push({ timestamp, value: sumVal / steps }); - nextStep += steps; - sumVal = 0; + if(!lastTs) lastTs = calcTs; + + if(calcTs > lastTs || idx === items.length) { + result.push({ timestamp: lastTs, value: sumVal }); + sumVal = null; + lastTs = calcTs; + } + } else { + sumVal += value; + + if(idx >= nextStep || idx === items.length) { + if(idx === items.length) steps = steps - (nextStep - idx); + + result.push({ timestamp, value: sumVal / steps }); + nextStep += steps; + sumVal = 0; + } } idx ++; @@ -527,8 +551,9 @@ class Fhem extends EventEmitter { cmd += select ? ' ' + select[0].replace(/\(|\)/g,'') : ' 4:' + defPart[1]; let logData = await this.request([{ param: 'cmd', value: cmd }, { param: 'XHR', value: '1' }],'text', { id: idx }); + let calc = defPart[11] ? defPart[11] : null; - if(logData) data.push({ id: logData.id, data: this.handleLogData(await logData.data) }); + if(logData) data.push({ id: logData.id, data: this.handleLogData(await logData.data, calc) }); idx ++; } diff --git a/www/fhemapp/cfg/templ_shellyrgb_mqtt.json b/www/fhemapp/cfg/templ_shellyrgb_mqtt.json index b1b9a6e3..31cf4c93 100644 --- a/www/fhemapp/cfg/templ_shellyrgb_mqtt.json +++ b/www/fhemapp/cfg/templ_shellyrgb_mqtt.json @@ -18,7 +18,7 @@ { "leftBtn": "mdi-lightbulb-outline", "leftClick": ["gain::gain 0"], - "slider": ["gain::gain %v:%n:0:100"], + "slider": ["gain::gain %v:%n:0:100:1"], "text": "Helligkeit", "rightBtn": "mdi-lightbulb-on-outline", "rightClick": ["gain::gain 100"] diff --git a/www/fhemapp/cfg/templ_water.json b/www/fhemapp/cfg/templ_water.json index de6275e1..3232ae05 100644 --- a/www/fhemapp/cfg/templ_water.json +++ b/www/fhemapp/cfg/templ_water.json @@ -1,28 +1,29 @@ { "name": "water", "author": "jemu75", - "date": "2021-06-14", + "date": "2022-06-26", "status": { "bar": ["state:on:100:success","state:off:0:success"], "error": ["Connected.receiver.Readings.Activity.Value:^(?!alive):100:error:keine Verbindung"] }, "main": [ + { + "text": ["timedOn:running:läuft...","Connected.weekdaytimer.Attributes.disable:1:manuell","Connected.weekdaytimer.Attributes.comment::%s","state:off:aus"], + "rightBtn": "mdi-timer-outline", + "rightMenu": ["aus:off","15 Minuten:on-for-timer 900","30 Minuten:on-for-timer 1800","45 Minuten:on-for-timer 2700","60 Minuten:on-for-timer 3600","automatich:set Connected.weekdaytimer enable","manuell:set Connected.weekdaytimer disable"] + }, { "leftBtn": "mdi-power-off", "leftClick": ["state::off"], "text": ["state:on:an","state:off:aus","state::%s"], "rightBtn": "mdi-power-on", "rightClick": ["state::on"] - }, - { - "text": ["timedOn:running:läuft...","timedOn::aus"], - "rightBtn": "mdi-timer-outline", - "rightMenu": ["15 Minuten:on-for-timer 900","30 Minuten:on-for-timer 1800","60 Minuten:on-for-timer 3600"] } ], "info": { "left1": ["state:off::mdi-water-off","state:on::mdi-watering-can"], - "left2": ["timedOn:running::mdi-timer-outline"], - "mid1": ["Readings.trigLast.Time::%t"] + "left2": ["Connected.weekdaytimer.Attributes.disable:1::","Connected.weekdaytimer.Attributes.disable:0::mdi-calendar-clock"], + "mid1": ["Readings.trigLast.Time::%t"], + "right2": ["timedOn:running::mdi-timer-outline"] } } diff --git a/www/fhemapp/cfg/templ_waterfall.json b/www/fhemapp/cfg/templ_waterfall.json new file mode 100644 index 00000000..3c678982 --- /dev/null +++ b/www/fhemapp/cfg/templ_waterfall.json @@ -0,0 +1,28 @@ +{ + "name": "waterfall", + "author": "jemu75", + "date": "2022-06-27", + "status": { + "bar": ["state:on:100:success","state:off:0:success"], + "error": ["Connected.receiver.Readings.Activity.Value:^(?!alive):100:error:keine Verbindung"] + }, + "main": [ + { + "text": ["timedOn:running:läuft...","state:off:aus"], + "rightBtn": "mdi-timer-outline", + "rightMenu": ["aus:off","15 Minuten:on-for-timer 900","30 Minuten:on-for-timer 1800","45 Minuten:on-for-timer 2700","60 Minuten:on-for-timer 3600"] + }, + { + "leftBtn": "mdi-power-off", + "leftClick": ["state::off"], + "text": ["state:on:an","state:off:aus","state::%s"], + "rightBtn": "mdi-power-on", + "rightClick": ["state::on"] + } + ], + "info": { + "left1": ["state:off::mdi-water-off","state:on::mdi-watering-can"], + "mid1": ["Readings.trigLast.Time::%t"], + "right2": ["timedOn:running::mdi-timer-outline"] + } +} diff --git a/www/fhemapp/css/396.8ecd64f4.css b/www/fhemapp/css/507.8ecd64f4.css similarity index 100% rename from www/fhemapp/css/396.8ecd64f4.css rename to www/fhemapp/css/507.8ecd64f4.css diff --git a/www/fhemapp/css/617.b79779ed.css b/www/fhemapp/css/630.b79779ed.css similarity index 100% rename from www/fhemapp/css/617.b79779ed.css rename to www/fhemapp/css/630.b79779ed.css diff --git a/www/fhemapp/css/583.8ecd64f4.css b/www/fhemapp/css/96.00e0efdd.css similarity index 64% rename from www/fhemapp/css/583.8ecd64f4.css rename to www/fhemapp/css/96.00e0efdd.css index bdb88a33..b7db564a 100644 --- a/www/fhemapp/css/583.8ecd64f4.css +++ b/www/fhemapp/css/96.00e0efdd.css @@ -1 +1 @@ -.vjs-tree__brackets{cursor:pointer}.vjs-tree__brackets:hover{color:#1890ff}.vjs-check-controller{position:absolute;left:0}.vjs-check-controller.is-checked .vjs-check-controller__inner{background-color:#1890ff;border-color:#0076e4}.vjs-check-controller.is-checked .vjs-check-controller__inner.is-checkbox:after{-webkit-transform:rotate(45deg) scaleY(1);transform:rotate(45deg) scaleY(1)}.vjs-check-controller.is-checked .vjs-check-controller__inner.is-radio:after{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}.vjs-check-controller .vjs-check-controller__inner{display:inline-block;position:relative;border:1px solid #bfcbd9;border-radius:2px;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;width:16px;height:16px;background-color:#fff;z-index:1;cursor:pointer;-webkit-transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46);-o-transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.vjs-check-controller .vjs-check-controller__inner:after{-webkit-box-sizing:content-box;box-sizing:content-box;content:"";border:2px solid #fff;border-left:0;border-top:0;height:8px;left:4px;position:absolute;top:1px;-webkit-transform:rotate(45deg) scaleY(0);transform:rotate(45deg) scaleY(0);width:4px;-webkit-transition:-webkit-transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transition:-webkit-transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;-o-transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s,-webkit-transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;-webkit-transform-origin:center;transform-origin:center}.vjs-check-controller .vjs-check-controller__inner.is-radio{border-radius:100%}.vjs-check-controller .vjs-check-controller__inner.is-radio:after{border-radius:100%;height:4px;background-color:#fff;left:50%;top:50%}.vjs-check-controller .vjs-check-controller__original{opacity:0;outline:none;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.vjs-tree__node{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.vjs-tree__node.has-selector{padding-left:30px}.vjs-tree__node.is-highlight,.vjs-tree__node:hover{background-color:#e6f7ff}.vjs-tree__node .vjs-tree__indent{-webkit-box-flex:0;-ms-flex:0 0 1em;flex:0 0 1em}.vjs-tree__node .vjs-tree__indent.has-line{border-left:1px dashed #bfcbd9}.vjs-comment{color:#bfcbd9}.vjs-value__null{color:#ff4949}.vjs-value__boolean,.vjs-value__number{color:#1d8ce0}.vjs-value__string{color:#13ce66}.vjs-tree{font-family:Monaco,Menlo,Consolas,Bitstream Vera Sans Mono,monospace;font-size:14px}.vjs-tree.is-virtual{overflow:auto}.vjs-tree.is-virtual .vjs-tree__node{white-space:nowrap}.select[data-v-4fc9ba56]{-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}.theme--light.v-card{background-color:#fff;color:rgba(0,0,0,.87)}.theme--light.v-card>.v-card__subtitle,.theme--light.v-card>.v-card__text{color:rgba(0,0,0,.6)}.theme--dark.v-card{background-color:#1e1e1e;color:#fff}.theme--dark.v-card>.v-card__subtitle,.theme--dark.v-card>.v-card__text{color:hsla(0,0%,100%,.7)}.v-sheet.v-card{border-radius:4px}.v-sheet.v-card:not(.v-sheet--outlined){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.v-sheet.v-card.v-sheet--shaped{border-radius:24px 4px}.v-card{border-width:thin;display:block;max-width:100%;outline:none;text-decoration:none;transition-property:box-shadow,opacity;overflow-wrap:break-word;position:relative;white-space:normal}.v-card>.v-card__progress+:not(.v-btn):not(.v-chip):not(.v-avatar),.v-card>:first-child:not(.v-btn):not(.v-chip):not(.v-avatar){border-top-left-radius:inherit;border-top-right-radius:inherit}.v-card>:last-child:not(.v-btn):not(.v-chip):not(.v-avatar){border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.v-card__progress{top:0;left:0;right:0;overflow:hidden}.v-card__subtitle+.v-card__text{padding-top:0}.v-card__subtitle,.v-card__text{font-size:.875rem;font-weight:400;line-height:1.375rem;letter-spacing:.0071428571em}.v-card__subtitle,.v-card__text,.v-card__title{padding:16px}.v-card__title{align-items:center;display:flex;flex-wrap:wrap;font-size:1.25rem;font-weight:500;letter-spacing:.0125em;line-height:2rem;word-break:break-all}.v-card__title+.v-card__subtitle,.v-card__title+.v-card__text{padding-top:0}.v-card__title+.v-card__subtitle{margin-top:-16px}.v-card__text{width:100%}.v-card__actions{align-items:center;display:flex;padding:8px}.v-card__actions>.v-btn.v-btn{padding:0 8px}.v-application--is-ltr .v-card__actions>.v-btn.v-btn+.v-btn{margin-left:8px}.v-application--is-ltr .v-card__actions>.v-btn.v-btn .v-icon--left{margin-left:4px}.v-application--is-ltr .v-card__actions>.v-btn.v-btn .v-icon--right{margin-right:4px}.v-application--is-rtl .v-card__actions>.v-btn.v-btn+.v-btn{margin-right:8px}.v-application--is-rtl .v-card__actions>.v-btn.v-btn .v-icon--left{margin-right:4px}.v-application--is-rtl .v-card__actions>.v-btn.v-btn .v-icon--right{margin-left:4px}.v-card--flat{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)!important}.v-sheet.v-card--hover{cursor:pointer;transition:box-shadow .4s cubic-bezier(.25,.8,.25,1)}.v-sheet.v-card--hover:focus,.v-sheet.v-card--hover:hover{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.v-card--link,.v-card--link .v-chip{cursor:pointer}.v-card--link:focus:before{opacity:.08}.v-card--link:before{background:currentColor;bottom:0;content:"";left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s}.v-card--disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__progress){opacity:.6;transition:inherit}.v-card--loading{overflow:hidden}.v-card--raised{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.theme--light.v-progress-linear{color:rgba(0,0,0,.87)}.theme--dark.v-progress-linear{color:#fff}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.6,1);width:100%}.v-progress-linear__buffer{height:inherit;left:0;position:absolute;top:0;transition:inherit;width:100%}.v-progress-linear--reverse .v-progress-linear__buffer{left:auto;right:0}.v-progress-linear__background{bottom:0;left:0;position:absolute;top:0;transition:inherit}.v-progress-linear--reverse .v-progress-linear__background{left:auto;right:0}.v-progress-linear__content{align-items:center;display:flex;height:100%;left:0;justify-content:center;position:absolute;top:0;width:100%}.v-progress-linear--reverse .v-progress-linear__content{left:auto;right:0}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit}.v-progress-linear--reverse .v-progress-linear__determinate{left:auto;right:0}.v-progress-linear .v-progress-linear__indeterminate .long,.v-progress-linear .v-progress-linear__indeterminate .short{-webkit-animation-play-state:paused;animation-play-state:paused;background-color:inherit;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto;will-change:left,right}.v-progress-linear .v-progress-linear__indeterminate--active .long{-webkit-animation-name:indeterminate-ltr;animation-name:indeterminate-ltr;-webkit-animation-duration:2.2s;animation-duration:2.2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.v-progress-linear .v-progress-linear__indeterminate--active .short{-webkit-animation-name:indeterminate-short-ltr;animation-name:indeterminate-short-ltr;-webkit-animation-duration:2.2s;animation-duration:2.2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate--active .long{-webkit-animation-name:indeterminate-rtl;animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate--active .short{-webkit-animation-name:indeterminate-short-rtl;animation-name:indeterminate-short-rtl}.v-progress-linear__stream{-webkit-animation:stream-ltr .25s linear infinite;animation:stream-ltr .25s linear infinite;-webkit-animation-play-state:paused;animation-play-state:paused;border-color:currentColor;border-top:4px dotted;bottom:0;left:auto;right:-8px;opacity:.3;pointer-events:none;position:absolute;top:calc(50% - 2px);transition:inherit}.v-progress-linear--reverse .v-progress-linear__stream{-webkit-animation:stream-rtl .25s linear infinite;animation:stream-rtl .25s linear infinite;left:-8px;right:auto}.v-progress-linear__wrapper{overflow:hidden;position:relative;transition:inherit}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--reactive .v-progress-linear__content{pointer-events:none}.v-progress-linear--rounded{border-radius:4px}.v-progress-linear--striped .v-progress-linear__determinate{background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-size:40px 40px;background-repeat:repeat}.v-progress-linear--query .v-progress-linear__indeterminate--active .long{-webkit-animation-name:query-ltr;animation-name:query-ltr;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.v-progress-linear--query .v-progress-linear__indeterminate--active .short{-webkit-animation-name:query-short-ltr;animation-name:query-short-ltr;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.v-progress-linear--query.v-progress-linear--reverse .v-progress-linear__indeterminate--active .long{-webkit-animation-name:query-rtl;animation-name:query-rtl}.v-progress-linear--query.v-progress-linear--reverse .v-progress-linear__indeterminate--active .short{-webkit-animation-name:query-short-rtl;animation-name:query-short-rtl}.v-progress-linear--visible .v-progress-linear__indeterminate--active .long,.v-progress-linear--visible .v-progress-linear__indeterminate--active .short,.v-progress-linear--visible .v-progress-linear__stream{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@-webkit-keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@-webkit-keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@-webkit-keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@-webkit-keyframes query-ltr{0%{right:-90%;left:100%}60%{right:-90%;left:100%}to{right:100%;left:-35%}}@keyframes query-ltr{0%{right:-90%;left:100%}60%{right:-90%;left:100%}to{right:100%;left:-35%}}@-webkit-keyframes query-rtl{0%{right:100%;left:-90%}60%{right:100%;left:-90%}to{right:-35%;left:100%}}@keyframes query-rtl{0%{right:100%;left:-90%}60%{right:100%;left:-90%}to{right:-35%;left:100%}}@-webkit-keyframes query-short-ltr{0%{right:-200%;left:100%}60%{right:107%;left:-8%}to{right:107%;left:-8%}}@keyframes query-short-ltr{0%{right:-200%;left:100%}60%{right:107%;left:-8%}to{right:107%;left:-8%}}@-webkit-keyframes query-short-rtl{0%{right:100%;left:-200%}60%{right:-8%;left:107%}to{right:-8%;left:107%}}@keyframes query-short-rtl{0%{right:100%;left:-200%}60%{right:-8%;left:107%}to{right:-8%;left:107%}}@-webkit-keyframes stream-ltr{to{transform:translateX(-8px)}}@keyframes stream-ltr{to{transform:translateX(-8px)}}@-webkit-keyframes stream-rtl{to{transform:translateX(8px)}}@keyframes stream-rtl{to{transform:translateX(8px)}}.v-dialog{border-radius:4px;margin:24px;overflow-y:auto;pointer-events:auto;transition:.3s cubic-bezier(.25,.8,.25,1);width:100%;z-index:inherit;box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.v-dialog:not(.v-dialog--fullscreen){max-height:90%}.v-dialog>*{width:100%}.v-dialog>.v-card>.v-card__title{font-size:1.25rem;font-weight:500;letter-spacing:.0125em;padding:16px 24px 10px}.v-dialog>.v-card>.v-card__subtitle,.v-dialog>.v-card>.v-card__text{padding:0 24px 20px}.v-dialog>.v-card>.v-card__actions{padding:8px 16px}.v-dialog__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;transition:.2s cubic-bezier(.25,.8,.25,1),z-index 1ms;width:100%;z-index:6;outline:none}.v-dialog__container{display:none}.v-dialog__container--attached{display:inline}.v-dialog--animated{-webkit-animation-duration:.15s;animation-duration:.15s;-webkit-animation-name:animate-dialog;animation-name:animate-dialog;-webkit-animation-timing-function:cubic-bezier(.25,.8,.25,1);animation-timing-function:cubic-bezier(.25,.8,.25,1)}.v-dialog--fullscreen{border-radius:0;margin:0;height:100%;position:fixed;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-card{min-height:100%;min-width:100%;margin:0!important;padding:0!important}.v-dialog--scrollable,.v-dialog--scrollable>form{display:flex}.v-dialog--scrollable>.v-card,.v-dialog--scrollable>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-card>.v-card__actions,.v-dialog--scrollable>.v-card>.v-card__title,.v-dialog--scrollable>form>.v-card>.v-card__actions,.v-dialog--scrollable>form>.v-card>.v-card__title{flex:0 0 auto}.v-dialog--scrollable>.v-card>.v-card__text,.v-dialog--scrollable>form>.v-card>.v-card__text{-webkit-backface-visibility:hidden;backface-visibility:hidden;flex:1 1 auto;overflow-y:auto}@-webkit-keyframes animate-dialog{0%{transform:scale(1)}50%{transform:scale(1.03)}to{transform:scale(1)}}@keyframes animate-dialog{0%{transform:scale(1)}50%{transform:scale(1.03)}to{transform:scale(1)}}.theme--light.v-system-bar{background-color:#e0e0e0;color:rgba(0,0,0,.6)}.theme--light.v-system-bar .v-icon{color:rgba(0,0,0,.6)}.theme--light.v-system-bar--lights-out{background-color:hsla(0,0%,100%,.7)!important}.theme--dark.v-system-bar{background-color:#000;color:hsla(0,0%,100%,.7)}.theme--dark.v-system-bar .v-icon{color:hsla(0,0%,100%,.7)}.theme--dark.v-system-bar--lights-out{background-color:rgba(0,0,0,.2)!important}.v-system-bar{align-items:center;display:flex;font-size:.875rem;font-weight:400;padding:0 8px}.v-system-bar .v-icon{font-size:1rem;margin-right:4px}.v-system-bar--absolute,.v-system-bar--fixed{left:0;top:0;width:100%;z-index:3}.v-system-bar--fixed{position:fixed}.v-system-bar--absolute{position:absolute}.v-system-bar--window .v-icon{font-size:1.25rem;margin-right:8px} \ No newline at end of file +.vjs-tree__brackets{cursor:pointer}.vjs-tree__brackets:hover{color:#1890ff}.vjs-check-controller{position:absolute;left:0}.vjs-check-controller.is-checked .vjs-check-controller__inner{background-color:#1890ff;border-color:#0076e4}.vjs-check-controller.is-checked .vjs-check-controller__inner.is-checkbox:after{-webkit-transform:rotate(45deg) scaleY(1);transform:rotate(45deg) scaleY(1)}.vjs-check-controller.is-checked .vjs-check-controller__inner.is-radio:after{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}.vjs-check-controller .vjs-check-controller__inner{display:inline-block;position:relative;border:1px solid #bfcbd9;border-radius:2px;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;width:16px;height:16px;background-color:#fff;z-index:1;cursor:pointer;-webkit-transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46);-o-transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.vjs-check-controller .vjs-check-controller__inner:after{-webkit-box-sizing:content-box;box-sizing:content-box;content:"";border:2px solid #fff;border-left:0;border-top:0;height:8px;left:4px;position:absolute;top:1px;-webkit-transform:rotate(45deg) scaleY(0);transform:rotate(45deg) scaleY(0);width:4px;-webkit-transition:-webkit-transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transition:-webkit-transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;-o-transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s,-webkit-transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;-webkit-transform-origin:center;transform-origin:center}.vjs-check-controller .vjs-check-controller__inner.is-radio{border-radius:100%}.vjs-check-controller .vjs-check-controller__inner.is-radio:after{border-radius:100%;height:4px;background-color:#fff;left:50%;top:50%}.vjs-check-controller .vjs-check-controller__original{opacity:0;outline:none;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.vjs-tree__node{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.vjs-tree__node.has-selector{padding-left:30px}.vjs-tree__node.is-highlight,.vjs-tree__node:hover{background-color:#e6f7ff}.vjs-tree__node .vjs-tree__indent{-webkit-box-flex:0;-ms-flex:0 0 1em;flex:0 0 1em}.vjs-tree__node .vjs-tree__indent.has-line{border-left:1px dashed #bfcbd9}.vjs-comment{color:#bfcbd9}.vjs-value__null{color:#ff4949}.vjs-value__boolean,.vjs-value__number{color:#1d8ce0}.vjs-value__string{color:#13ce66}.vjs-tree{font-family:Monaco,Menlo,Consolas,Bitstream Vera Sans Mono,monospace;font-size:14px}.vjs-tree.is-virtual{overflow:auto}.vjs-tree.is-virtual .vjs-tree__node{white-space:nowrap}.select[data-v-4fc9ba56]{-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}.theme--light.v-card{background-color:#fff;color:rgba(0,0,0,.87)}.theme--light.v-card>.v-card__subtitle,.theme--light.v-card>.v-card__text{color:rgba(0,0,0,.6)}.theme--dark.v-card{background-color:#1e1e1e;color:#fff}.theme--dark.v-card>.v-card__subtitle,.theme--dark.v-card>.v-card__text{color:hsla(0,0%,100%,.7)}.v-sheet.v-card{border-radius:4px}.v-sheet.v-card:not(.v-sheet--outlined){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.v-sheet.v-card.v-sheet--shaped{border-radius:24px 4px}.v-card{border-width:thin;display:block;max-width:100%;outline:none;text-decoration:none;transition-property:box-shadow,opacity;overflow-wrap:break-word;position:relative;white-space:normal}.v-card>.v-card__progress+:not(.v-btn):not(.v-chip):not(.v-avatar),.v-card>:first-child:not(.v-btn):not(.v-chip):not(.v-avatar){border-top-left-radius:inherit;border-top-right-radius:inherit}.v-card>:last-child:not(.v-btn):not(.v-chip):not(.v-avatar){border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.v-card__progress{top:0;left:0;right:0;overflow:hidden}.v-card__subtitle+.v-card__text{padding-top:0}.v-card__subtitle,.v-card__text{font-size:.875rem;font-weight:400;line-height:1.375rem;letter-spacing:.0071428571em}.v-card__subtitle,.v-card__text,.v-card__title{padding:16px}.v-card__title{align-items:center;display:flex;flex-wrap:wrap;font-size:1.25rem;font-weight:500;letter-spacing:.0125em;line-height:2rem;word-break:break-all}.v-card__title+.v-card__subtitle,.v-card__title+.v-card__text{padding-top:0}.v-card__title+.v-card__subtitle{margin-top:-16px}.v-card__text{width:100%}.v-card__actions{align-items:center;display:flex;padding:8px}.v-card__actions>.v-btn.v-btn{padding:0 8px}.v-application--is-ltr .v-card__actions>.v-btn.v-btn+.v-btn{margin-left:8px}.v-application--is-ltr .v-card__actions>.v-btn.v-btn .v-icon--left{margin-left:4px}.v-application--is-ltr .v-card__actions>.v-btn.v-btn .v-icon--right{margin-right:4px}.v-application--is-rtl .v-card__actions>.v-btn.v-btn+.v-btn{margin-right:8px}.v-application--is-rtl .v-card__actions>.v-btn.v-btn .v-icon--left{margin-right:4px}.v-application--is-rtl .v-card__actions>.v-btn.v-btn .v-icon--right{margin-left:4px}.v-card--flat{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)!important}.v-sheet.v-card--hover{cursor:pointer;transition:box-shadow .4s cubic-bezier(.25,.8,.25,1)}.v-sheet.v-card--hover:focus,.v-sheet.v-card--hover:hover{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.v-card--link,.v-card--link .v-chip{cursor:pointer}.v-card--link:focus:before{opacity:.08}.v-card--link:before{background:currentColor;bottom:0;content:"";left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s}.v-card--disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__progress){opacity:.6;transition:inherit}.v-card--loading{overflow:hidden}.v-card--raised{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.theme--light.v-progress-linear{color:rgba(0,0,0,.87)}.theme--dark.v-progress-linear{color:#fff}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.6,1);width:100%}.v-progress-linear__buffer{height:inherit;left:0;position:absolute;top:0;transition:inherit;width:100%}.v-progress-linear--reverse .v-progress-linear__buffer{left:auto;right:0}.v-progress-linear__background{bottom:0;left:0;position:absolute;top:0;transition:inherit}.v-progress-linear--reverse .v-progress-linear__background{left:auto;right:0}.v-progress-linear__content{align-items:center;display:flex;height:100%;left:0;justify-content:center;position:absolute;top:0;width:100%}.v-progress-linear--reverse .v-progress-linear__content{left:auto;right:0}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit}.v-progress-linear--reverse .v-progress-linear__determinate{left:auto;right:0}.v-progress-linear .v-progress-linear__indeterminate .long,.v-progress-linear .v-progress-linear__indeterminate .short{-webkit-animation-play-state:paused;animation-play-state:paused;background-color:inherit;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto;will-change:left,right}.v-progress-linear .v-progress-linear__indeterminate--active .long{-webkit-animation-name:indeterminate-ltr;animation-name:indeterminate-ltr;-webkit-animation-duration:2.2s;animation-duration:2.2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.v-progress-linear .v-progress-linear__indeterminate--active .short{-webkit-animation-name:indeterminate-short-ltr;animation-name:indeterminate-short-ltr;-webkit-animation-duration:2.2s;animation-duration:2.2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate--active .long{-webkit-animation-name:indeterminate-rtl;animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate--active .short{-webkit-animation-name:indeterminate-short-rtl;animation-name:indeterminate-short-rtl}.v-progress-linear__stream{-webkit-animation:stream-ltr .25s linear infinite;animation:stream-ltr .25s linear infinite;-webkit-animation-play-state:paused;animation-play-state:paused;border-color:currentColor;border-top:4px dotted;bottom:0;left:auto;right:-8px;opacity:.3;pointer-events:none;position:absolute;top:calc(50% - 2px);transition:inherit}.v-progress-linear--reverse .v-progress-linear__stream{-webkit-animation:stream-rtl .25s linear infinite;animation:stream-rtl .25s linear infinite;left:-8px;right:auto}.v-progress-linear__wrapper{overflow:hidden;position:relative;transition:inherit}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--reactive .v-progress-linear__content{pointer-events:none}.v-progress-linear--rounded{border-radius:4px}.v-progress-linear--striped .v-progress-linear__determinate{background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-size:40px 40px;background-repeat:repeat}.v-progress-linear--query .v-progress-linear__indeterminate--active .long{-webkit-animation-name:query-ltr;animation-name:query-ltr;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.v-progress-linear--query .v-progress-linear__indeterminate--active .short{-webkit-animation-name:query-short-ltr;animation-name:query-short-ltr;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.v-progress-linear--query.v-progress-linear--reverse .v-progress-linear__indeterminate--active .long{-webkit-animation-name:query-rtl;animation-name:query-rtl}.v-progress-linear--query.v-progress-linear--reverse .v-progress-linear__indeterminate--active .short{-webkit-animation-name:query-short-rtl;animation-name:query-short-rtl}.v-progress-linear--visible .v-progress-linear__indeterminate--active .long,.v-progress-linear--visible .v-progress-linear__indeterminate--active .short,.v-progress-linear--visible .v-progress-linear__stream{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@-webkit-keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@-webkit-keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@-webkit-keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@-webkit-keyframes query-ltr{0%{right:-90%;left:100%}60%{right:-90%;left:100%}to{right:100%;left:-35%}}@keyframes query-ltr{0%{right:-90%;left:100%}60%{right:-90%;left:100%}to{right:100%;left:-35%}}@-webkit-keyframes query-rtl{0%{right:100%;left:-90%}60%{right:100%;left:-90%}to{right:-35%;left:100%}}@keyframes query-rtl{0%{right:100%;left:-90%}60%{right:100%;left:-90%}to{right:-35%;left:100%}}@-webkit-keyframes query-short-ltr{0%{right:-200%;left:100%}60%{right:107%;left:-8%}to{right:107%;left:-8%}}@keyframes query-short-ltr{0%{right:-200%;left:100%}60%{right:107%;left:-8%}to{right:107%;left:-8%}}@-webkit-keyframes query-short-rtl{0%{right:100%;left:-200%}60%{right:-8%;left:107%}to{right:-8%;left:107%}}@keyframes query-short-rtl{0%{right:100%;left:-200%}60%{right:-8%;left:107%}to{right:-8%;left:107%}}@-webkit-keyframes stream-ltr{to{transform:translateX(-8px)}}@keyframes stream-ltr{to{transform:translateX(-8px)}}@-webkit-keyframes stream-rtl{to{transform:translateX(8px)}}@keyframes stream-rtl{to{transform:translateX(8px)}}.v-dialog{border-radius:4px;margin:24px;overflow-y:auto;pointer-events:auto;transition:.3s cubic-bezier(.25,.8,.25,1);width:100%;z-index:inherit;box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.v-dialog:not(.v-dialog--fullscreen){max-height:90%}.v-dialog>*{width:100%}.v-dialog>.v-card>.v-card__title{font-size:1.25rem;font-weight:500;letter-spacing:.0125em;padding:16px 24px 10px}.v-dialog>.v-card>.v-card__subtitle,.v-dialog>.v-card>.v-card__text{padding:0 24px 20px}.v-dialog>.v-card>.v-card__actions{padding:8px 16px}.v-dialog__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;transition:.2s cubic-bezier(.25,.8,.25,1),z-index 1ms;width:100%;z-index:6;outline:none}.v-dialog__container{display:none}.v-dialog__container--attached{display:inline}.v-dialog--animated{-webkit-animation-duration:.15s;animation-duration:.15s;-webkit-animation-name:animate-dialog;animation-name:animate-dialog;-webkit-animation-timing-function:cubic-bezier(.25,.8,.25,1);animation-timing-function:cubic-bezier(.25,.8,.25,1)}.v-dialog--fullscreen{border-radius:0;margin:0;height:100%;position:fixed;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-card{min-height:100%;min-width:100%;margin:0!important;padding:0!important}.v-dialog--scrollable,.v-dialog--scrollable>form{display:flex}.v-dialog--scrollable>.v-card,.v-dialog--scrollable>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-card>.v-card__actions,.v-dialog--scrollable>.v-card>.v-card__title,.v-dialog--scrollable>form>.v-card>.v-card__actions,.v-dialog--scrollable>form>.v-card>.v-card__title{flex:0 0 auto}.v-dialog--scrollable>.v-card>.v-card__text,.v-dialog--scrollable>form>.v-card>.v-card__text{-webkit-backface-visibility:hidden;backface-visibility:hidden;flex:1 1 auto;overflow-y:auto}@-webkit-keyframes animate-dialog{0%{transform:scale(1)}50%{transform:scale(1.03)}to{transform:scale(1)}}@keyframes animate-dialog{0%{transform:scale(1)}50%{transform:scale(1.03)}to{transform:scale(1)}}.theme--light.v-expansion-panels .v-expansion-panel{background-color:#fff;color:rgba(0,0,0,.87)}.theme--light.v-expansion-panels .v-expansion-panel--disabled{color:rgba(0,0,0,.38)}.theme--light.v-expansion-panels .v-expansion-panel:not(:first-child):after{border-color:rgba(0,0,0,.12)}.theme--light.v-expansion-panels .v-expansion-panel-header .v-expansion-panel-header__icon .v-icon{color:rgba(0,0,0,.54)}.theme--light.v-expansion-panels.v-expansion-panels--focusable .v-expansion-panel-header:hover:before{opacity:.04}.theme--light.v-expansion-panels.v-expansion-panels--focusable .v-expansion-panel-header--active:before,.theme--light.v-expansion-panels.v-expansion-panels--focusable .v-expansion-panel-header--active:hover:before,.theme--light.v-expansion-panels.v-expansion-panels--focusable .v-expansion-panel-header:focus:before{opacity:.12}.theme--light.v-expansion-panels.v-expansion-panels--focusable .v-expansion-panel-header--active:focus:before{opacity:.16}.theme--light.v-expansion-panels.v-expansion-panels--hover>.v-expansion-panel>.v-expansion-panel-header:hover:hover:before{opacity:.04}.theme--light.v-expansion-panels.v-expansion-panels--hover>.v-expansion-panel>.v-expansion-panel-header:hover:focus:before{opacity:.12}.theme--light.v-expansion-panels.v-expansion-panels--hover>.v-expansion-panel>.v-expansion-panel-header:hover--active:before,.theme--light.v-expansion-panels.v-expansion-panels--hover>.v-expansion-panel>.v-expansion-panel-header:hover--active:hover:before{opacity:.12}.theme--light.v-expansion-panels.v-expansion-panels--hover>.v-expansion-panel>.v-expansion-panel-header:hover--active:focus:before{opacity:.16}.theme--dark.v-expansion-panels .v-expansion-panel{background-color:#1e1e1e;color:#fff}.theme--dark.v-expansion-panels .v-expansion-panel--disabled{color:hsla(0,0%,100%,.5)}.theme--dark.v-expansion-panels .v-expansion-panel:not(:first-child):after{border-color:hsla(0,0%,100%,.12)}.theme--dark.v-expansion-panels .v-expansion-panel-header .v-expansion-panel-header__icon .v-icon{color:#fff}.theme--dark.v-expansion-panels.v-expansion-panels--focusable .v-expansion-panel-header:hover:before{opacity:.08}.theme--dark.v-expansion-panels.v-expansion-panels--focusable .v-expansion-panel-header--active:before,.theme--dark.v-expansion-panels.v-expansion-panels--focusable .v-expansion-panel-header--active:hover:before,.theme--dark.v-expansion-panels.v-expansion-panels--focusable .v-expansion-panel-header:focus:before{opacity:.24}.theme--dark.v-expansion-panels.v-expansion-panels--focusable .v-expansion-panel-header--active:focus:before{opacity:.32}.theme--dark.v-expansion-panels.v-expansion-panels--hover>.v-expansion-panel>.v-expansion-panel-header:hover:hover:before{opacity:.08}.theme--dark.v-expansion-panels.v-expansion-panels--hover>.v-expansion-panel>.v-expansion-panel-header:hover:focus:before{opacity:.24}.theme--dark.v-expansion-panels.v-expansion-panels--hover>.v-expansion-panel>.v-expansion-panel-header:hover--active:before,.theme--dark.v-expansion-panels.v-expansion-panels--hover>.v-expansion-panel>.v-expansion-panel-header:hover--active:hover:before{opacity:.24}.theme--dark.v-expansion-panels.v-expansion-panels--hover>.v-expansion-panel>.v-expansion-panel-header:hover--active:focus:before{opacity:.32}.v-expansion-panels{border-radius:4px;display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;z-index:1}.v-expansion-panels>*{cursor:auto}.v-expansion-panels>:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.v-expansion-panels>:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.v-expansion-panels:not(.v-expansion-panels--accordion):not(.v-expansion-panels--tile)>.v-expansion-panel--active{border-radius:4px}.v-expansion-panels:not(.v-expansion-panels--accordion):not(.v-expansion-panels--tile)>.v-expansion-panel--active+.v-expansion-panel{border-top-left-radius:4px;border-top-right-radius:4px}.v-expansion-panels:not(.v-expansion-panels--accordion):not(.v-expansion-panels--tile)>.v-expansion-panel--next-active{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.v-expansion-panels:not(.v-expansion-panels--accordion):not(.v-expansion-panels--tile)>.v-expansion-panel--next-active .v-expansion-panel-header{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-expansion-panel:before{border-radius:inherit;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:-1;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.v-expansion-panel:not(:first-child):after{border-top:thin solid;content:"";left:0;position:absolute;right:0;top:0;transition:border-color .2s cubic-bezier(.4,0,.2,1),opacity .2s cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-header{pointer-events:none}.v-expansion-panel--active+.v-expansion-panel,.v-expansion-panel--active:not(:first-child){margin-top:16px}.v-expansion-panel--active+.v-expansion-panel:after,.v-expansion-panel--active:not(:first-child):after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-header{min-height:64px}.v-expansion-panel--active>.v-expansion-panel-header--active .v-expansion-panel-header__icon:not(.v-expansion-panel-header__icon--disable-rotate) .v-icon{transform:rotate(-180deg)}.v-expansion-panel-header__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-application--is-ltr .v-expansion-panel-header__icon{margin-left:auto}.v-application--is-rtl .v-expansion-panel-header__icon{margin-right:auto}.v-expansion-panel-header{align-items:center;border-top-left-radius:inherit;border-top-right-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:48px;outline:none;padding:16px 24px;position:relative;transition:min-height .3s cubic-bezier(.25,.8,.5,1);width:100%}.v-application--is-ltr .v-expansion-panel-header{text-align:left}.v-application--is-rtl .v-expansion-panel-header{text-align:right}.v-expansion-panel-header:not(.v-expansion-panel-header--mousedown):focus:before{opacity:.12}.v-expansion-panel-header:before{background-color:currentColor;border-radius:inherit;bottom:0;content:"";left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .3s cubic-bezier(.25,.8,.5,1)}.v-expansion-panel-header>:not(.v-expansion-panel-header__icon){flex:1 1 auto}.v-expansion-panel-content{display:flex}.v-expansion-panel-content__wrap{padding:0 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-expansion-panels--flat>.v-expansion-panel:after{border-top:none}.v-expansion-panels--flat>.v-expansion-panel:before{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.v-expansion-panels--tile,.v-expansion-panels--tile>.v-expansion-panel:before{border-radius:0}.theme--light.v-system-bar{background-color:#e0e0e0;color:rgba(0,0,0,.6)}.theme--light.v-system-bar .v-icon{color:rgba(0,0,0,.6)}.theme--light.v-system-bar--lights-out{background-color:hsla(0,0%,100%,.7)!important}.theme--dark.v-system-bar{background-color:#000;color:hsla(0,0%,100%,.7)}.theme--dark.v-system-bar .v-icon{color:hsla(0,0%,100%,.7)}.theme--dark.v-system-bar--lights-out{background-color:rgba(0,0,0,.2)!important}.v-system-bar{align-items:center;display:flex;font-size:.875rem;font-weight:400;padding:0 8px}.v-system-bar .v-icon{font-size:1rem;margin-right:4px}.v-system-bar--absolute,.v-system-bar--fixed{left:0;top:0;width:100%;z-index:3}.v-system-bar--fixed{position:fixed}.v-system-bar--absolute{position:absolute}.v-system-bar--window .v-icon{font-size:1.25rem;margin-right:8px} \ No newline at end of file diff --git a/www/fhemapp/index.html b/www/fhemapp/index.html index 2f67f506..d99ba846 100644 --- a/www/fhemapp/index.html +++ b/www/fhemapp/index.html @@ -1 +1 @@ -fhemapp
\ No newline at end of file +fhemapp
\ No newline at end of file diff --git a/www/fhemapp/js/285-legacy.39686d97.js b/www/fhemapp/js/285-legacy.2d64a31e.js similarity index 100% rename from www/fhemapp/js/285-legacy.39686d97.js rename to www/fhemapp/js/285-legacy.2d64a31e.js diff --git a/www/fhemapp/js/285.6fc47f33.js b/www/fhemapp/js/285.6f4a97dd.js similarity index 100% rename from www/fhemapp/js/285.6fc47f33.js rename to www/fhemapp/js/285.6f4a97dd.js diff --git a/www/fhemapp/js/322-legacy.c29a322f.js b/www/fhemapp/js/322-legacy.a42867bd.js similarity index 100% rename from www/fhemapp/js/322-legacy.c29a322f.js rename to www/fhemapp/js/322-legacy.a42867bd.js diff --git a/www/fhemapp/js/322.a37a620a.js b/www/fhemapp/js/322.33ddfd11.js similarity index 100% rename from www/fhemapp/js/322.a37a620a.js rename to www/fhemapp/js/322.33ddfd11.js diff --git a/www/fhemapp/js/337-legacy.ef87a395.js b/www/fhemapp/js/337-legacy.33201bb8.js similarity index 99% rename from www/fhemapp/js/337-legacy.ef87a395.js rename to www/fhemapp/js/337-legacy.33201bb8.js index 72069a86..d95a753d 100644 --- a/www/fhemapp/js/337-legacy.ef87a395.js +++ b/www/fhemapp/js/337-legacy.33201bb8.js @@ -1 +1 @@ -"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[337],{1152:function(t,e,i){i.d(e,{Z:function(){return T}});var s=i(3796),n=i(8932),o=i(4367),a=(i(9653),i(9826),i(1539),i(1038),i(8783),i(2222),i(3210),i(6699),i(2023),i(3242)),c=i(5795),l=i(4561),r=i(5907),h=i(5936),u=i(423),d=i(3712),v=i(2936),f=i(8085),m=i(5600),p=i(549),g=i(3325),x=i(1824),_=i(4589),C=i(1439),k=(0,g.Z)(r.Z,l.Z,h.Z,u.Z,d.Z,v.Z,f.Z),T=k.extend({name:"v-menu",directives:{ClickOutside:m.Z,Resize:p.Z},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?(0,_.kb)(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":(0,_.kb)(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return(0,_.kb)(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return(0,_.kb)(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return(0,_.kb)(Math.min(e,t))||"0"},calculatedTop:function(){var t=this.auto?(0,_.kb)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,e){if(t in this.tiles){var i=this.tiles[t];i.classList.add("v-list-item--highlighted");var s=this.$refs.content.scrollTop,n=this.$refs.content.clientHeight;s>i.offsetTop-8?(0,C.Z)(i.offsetTop-i.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):s+n1?1:5}}},[i("v-icon",[t._v("mdi-file-tree-outline")])],1),i("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),i("v-spacer"),i("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[i("v-icon",[t._v("mdi-close")])],1)],1),i("v-card-text",[i("div",{ref:"jsonContent",staticClass:"select"},[i("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)])],1)],1)],1)},n=[],o=i(4566),a=i.n(o),c={name:"JsonList",props:{item:{type:Object,default:function(){return{name:"json"}}}},data:function(){return{dialog:!1,deep:1}},components:{VueJsonPretty:a()},methods:{toFhem:function(){var t=this.$fhem.createURL([{param:"detail",value:this.item.Name}]);return t}}},l=c,r=i(1001),h=i(3453),u=i.n(h),d=i(3150),v=i(2371),f=i(7118),m=i(5424),p=i(4497),g=i(6428),x=i(9762),_=(0,r.Z)(l,s,n,!1,null,"4fc9ba56",null),C=_.exports;u()(_,{VBtn:d.Z,VCard:v.Z,VCardText:f.ZB,VCardTitle:f.EB,VChip:m.Z,VDialog:p.Z,VIcon:g.Z,VSpacer:x.Z})},2965:function(t,e,i){i.r(e),i.d(e,{default:function(){return w}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.Options.show?i("v-col",{class:t.item.Options.setup.size||t.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.item.Options.status.level||t.status.level,color:t.item.Options.status.color||t.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.name)+" "),i("v-spacer"),t.app.options.debugMode?i("jsonList",{attrs:{item:t.item}}):t._e()],1),i("v-divider"),t.item.Options.status.isActive?t._e():i("div",[i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.item.Options.status.error)+" ")])])],1)],1),i("v-divider")],1),t.item.Options.status.isActive?i("div",[i("v-card-text",{staticClass:"pa-0"},t._l(t.panelItems,(function(e){return i("div",{key:e.Name,attrs:{align:"center"}},[i("v-row",{staticClass:"ma-1",attrs:{dense:"",align:"center"}},[i("v-col",{staticClass:"col-2"},[i("v-progress-circular",{attrs:{value:e.level,color:e.color}})],1),i("v-col",{staticClass:"text-truncate",attrs:{align:"left"}},[i("div",{staticClass:"text-truncate headline"},[t._v(" "+t._s(e.title)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(e.text)+" ")])]),i("v-col",{staticClass:"col-2",attrs:{align:"center"}},[e.route&&!e.click&&e.icon?i("v-btn",{attrs:{icon:"",link:"",to:e.route}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.icon)+" ")])],1):t._e(),e.click&&!e.route&&e.icon?i("div",[i("v-btn",{attrs:{icon:""},on:{click:function(i){return t.set(e.device,e.click)}}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.icon)+" ")])],1)],1):t._e(),e.menu&&!e.route&&!e.click&&e.icon?i("div",[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,o=s.attrs;return[i("v-btn",t._g(t._b({attrs:{icon:""}},"v-btn",o,!1),n),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.icon)+" ")])],1)]}}],null,!0)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:e.menuIdx,callback:function(i){t.$set(e,"menuIdx",i)},expression:"el.menuIdx"}},t._l(e.menu,(function(s,n){return i("v-list-item",{key:n,on:{click:function(i){return t.set(e.device,s.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(s.name)+" ")])],1),s.active?i("v-list-item-icon",[i("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e()],1)],1),i("v-divider")],1)})),0)],1):t._e(),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),i("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1):t._e()},n=[],o=i(2032),a=i(8932),c=(i(4916),i(4723),i(3123),i(561),i(7601),i(2222),i(1249),i(8309),i(1830)),l={components:{jsonList:c.Z},props:{item:{type:Object,default:function(){return{name:"panel"}}}},data:function(){return{name:"panel",size:"col-12 col-sm-6 col-md-6 col-lg-6",status:{color:"success",level:100},app:{options:{debugMode:!1}},panelItems:[]}},watch:{item:{immediate:!0,deep:!0,handler:function(){this.doList()}}},created:function(){this.app.options=this.$fhem.app.options},methods:{set:function(t,e){var i=e.match("set")?e:"set "+t+" "+e;this.$fhem.request(i)},checkMenu:function(t,e){var i=!1;if(e){var s,n=e.split(" ");n[0].match("set")&&n.splice(0,2),1===n.length&&n.splice(0,0,"state");var o=/\./.test(n[0])?n[0].split("."):["Readings",n[0],"Value"],c=(s=this.$fhem).getEl.apply(s,[t].concat((0,a.Z)(o)));c&&c===n[1]&&(i=!0)}return i},loadItem:function(t){var e=this.$fhem.getEl(t,"Name")||"",i=this.$fhem.getEl(t,"Attributes","alias")||t.Name,s=this.$fhem.getEl(t,"Options","name")||i,n=this.$fhem.getEl(t,"Options","panel","link")||"",a=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","status"))||[],c=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","btn"))||[],l=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","click"))||[],r=this.$fhem.getEl(t,"Options","panel","menu")||[],h=this.$fhem.getEl(t,"Options","panel","min")||0,u=this.$fhem.getEl(t,"Options","panel","max")||100,d=100/(u-h),v=((a[1]||0)-h)*d,f=[];if(r.length>0){var m,p=(0,o.Z)(r);try{for(p.s();!(m=p.n()).done;){var g=m.value,x=g.split(":"),_=this.checkMenu(t,x[1]);2==x.length&&f.push({name:x[0],cmd:x[1],active:_})}}catch(k){p.e(k)}finally{p.f()}}var C={device:e,title:s,text:a[0]||"",level:a[3]?100-v:v,color:a[2]||"success",icon:c[0]||"",route:n,click:l[0]||"",menu:f};return C},doList:function(){if(this.item.Connected)for(var t in this.status.color="success",this.item.Options.connected){var e=this.panelItems.map((function(t){return t.name})).indexOf(t),i=this.loadItem(this.item.Connected[t]),s={name:t,device:i.device,level:i.level,color:i.color,title:i.title,text:i.text,icon:i.icon,route:i.route,click:i.click,menu:i.menu,menuIdx:i.menu.map((function(t){return t.active})).indexOf(!0)};"success"!=i.color&&(this.status.color=i.color,this.status.level=100),-1!=e?this.panelItems.splice(e,1,s):this.panelItems.push(s)}}}},r=l,h=i(1001),u=i(3453),d=i.n(u),v=i(3150),f=i(2371),m=i(7118),p=i(2102),g=i(1418),x=i(6428),_=i(6816),C=i(7620),k=i(1960),T=i(3249),I=i(459),O=i(1152),y=i(624),b=i(7003),Z=i(2877),$=i(9762),A=i(2691),V=(0,h.Z)(r,s,n,!1,null,null,null),w=V.exports;d()(V,{VBtn:v.Z,VCard:f.Z,VCardText:m.ZB,VCardTitle:m.EB,VCol:p.Z,VDivider:g.Z,VIcon:x.Z,VList:_.Z,VListItem:C.Z,VListItemContent:k.km,VListItemGroup:T.Z,VListItemIcon:I.Z,VListItemTitle:k.V9,VMenu:O.Z,VProgressCircular:y.Z,VProgressLinear:b.Z,VRow:Z.Z,VSpacer:$.Z,VSystemBar:A.Z})}}]); \ No newline at end of file +"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[337],{1152:function(t,e,i){i.d(e,{Z:function(){return T}});var s=i(3796),n=i(8932),o=i(4367),a=(i(9653),i(9826),i(1539),i(1038),i(8783),i(2222),i(3210),i(6699),i(2023),i(3242)),c=i(5795),l=i(4561),r=i(5907),h=i(5936),u=i(423),d=i(3712),v=i(2936),f=i(8085),m=i(5600),p=i(549),g=i(3325),x=i(1824),_=i(4589),C=i(1439),k=(0,g.Z)(r.Z,l.Z,h.Z,u.Z,d.Z,v.Z,f.Z),T=k.extend({name:"v-menu",directives:{ClickOutside:m.Z,Resize:p.Z},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?(0,_.kb)(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":(0,_.kb)(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return(0,_.kb)(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return(0,_.kb)(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return(0,_.kb)(Math.min(e,t))||"0"},calculatedTop:function(){var t=this.auto?(0,_.kb)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,e){if(t in this.tiles){var i=this.tiles[t];i.classList.add("v-list-item--highlighted");var s=this.$refs.content.scrollTop,n=this.$refs.content.clientHeight;s>i.offsetTop-8?(0,C.Z)(i.offsetTop-i.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):s+n1?1:5}}},[i("v-icon",[t._v("mdi-file-tree-outline")])],1),i("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),i("v-spacer"),i("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[i("v-icon",[t._v("mdi-close")])],1)],1),i("v-card-text",[i("div",{ref:"jsonContent",staticClass:"select"},[i("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)])],1)],1)],1)},n=[],o=i(4566),a=i.n(o),c={name:"JsonList",props:{item:{type:Object,default:function(){return{name:"json"}}}},data:function(){return{dialog:!1,deep:1}},components:{VueJsonPretty:a()},methods:{toFhem:function(){var t=this.$fhem.createURL([{param:"detail",value:this.item.Name}]);return t}}},l=c,r=i(1001),h=i(3453),u=i.n(h),d=i(3150),v=i(2371),f=i(7118),m=i(5424),p=i(4497),g=i(6428),x=i(9762),_=(0,r.Z)(l,s,n,!1,null,"4fc9ba56",null),C=_.exports;u()(_,{VBtn:d.Z,VCard:v.Z,VCardText:f.ZB,VCardTitle:f.EB,VChip:m.Z,VDialog:p.Z,VIcon:g.Z,VSpacer:x.Z})},2965:function(t,e,i){i.r(e),i.d(e,{default:function(){return w}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.Options.show?i("v-col",{class:t.item.Options.setup.size||t.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.item.Options.status.level||t.status.level,color:t.item.Options.status.color||t.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.name)+" "),i("v-spacer"),t.app.options.debugMode?i("jsonList",{attrs:{item:t.item}}):t._e()],1),i("v-divider"),t.item.Options.status.isActive?t._e():i("div",[i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.item.Options.status.error)+" ")])])],1)],1),i("v-divider")],1),t.item.Options.status.isActive?i("div",[i("v-card-text",{staticClass:"pa-0"},t._l(t.panelItems,(function(e){return i("div",{key:e.Name,attrs:{align:"center"}},[i("v-row",{staticClass:"ma-1",attrs:{dense:"",align:"center"}},[i("v-col",{staticClass:"col-2"},[i("v-progress-circular",{attrs:{value:e.level,color:e.color}})],1),i("v-col",{staticClass:"text-truncate",attrs:{align:"left"}},[i("div",{staticClass:"text-truncate headline"},[t._v(" "+t._s(e.title)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(e.text)+" ")])]),i("v-col",{staticClass:"col-2",attrs:{align:"center"}},[e.route&&!e.click&&e.icon?i("v-btn",{attrs:{icon:"",link:"",to:e.route}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.icon)+" ")])],1):t._e(),e.click&&!e.route&&e.icon?i("div",[i("v-btn",{attrs:{icon:""},on:{click:function(i){return t.set(e.device,e.click)}}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.icon)+" ")])],1)],1):t._e(),e.menu&&!e.route&&!e.click&&e.icon?i("div",[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,o=s.attrs;return[i("v-btn",t._g(t._b({attrs:{icon:""}},"v-btn",o,!1),n),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.icon)+" ")])],1)]}}],null,!0)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:e.menuIdx,callback:function(i){t.$set(e,"menuIdx",i)},expression:"el.menuIdx"}},t._l(e.menu,(function(s,n){return i("v-list-item",{key:n,on:{click:function(i){return t.set(e.device,s.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(s.name)+" ")])],1),s.active?i("v-list-item-icon",[i("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e()],1)],1),i("v-divider")],1)})),0)],1):t._e(),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),i("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1):t._e()},n=[],o=i(2032),a=i(8932),c=(i(4916),i(4723),i(3123),i(561),i(7601),i(2222),i(1249),i(8309),i(1830)),l={components:{jsonList:c.Z},props:{item:{type:Object,default:function(){return{name:"panel"}}}},data:function(){return{name:"panel",size:"col-12 col-sm-6 col-md-6 col-lg-6",status:{color:"success",level:100},app:{options:{debugMode:!1}},panelItems:[]}},watch:{item:{immediate:!0,deep:!0,handler:function(){this.doList()}}},created:function(){this.app.options=this.$fhem.app.options},methods:{set:function(t,e){var i=e.match("set")?e:"set "+t+" "+e;this.$fhem.request(i)},checkMenu:function(t,e){var i=!1;if(e){var s,n=e.split(" ");n[0].match("set")&&n.splice(0,2),1===n.length&&n.splice(0,0,"state");var o=/\./.test(n[0])?n[0].split("."):["Readings",n[0],"Value"],c=(s=this.$fhem).getEl.apply(s,[t].concat((0,a.Z)(o)));c&&c===n[1]&&(i=!0)}return i},loadItem:function(t){var e=this.$fhem.getEl(t,"Name")||"",i=this.$fhem.getEl(t,"Attributes","alias")||t.Name,s=this.$fhem.getEl(t,"Options","name")||i,n=this.$fhem.getEl(t,"Options","panel","link")||"",a=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","status"))||[],c=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","btn"))||[],l=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","click"))||[],r=this.$fhem.getEl(t,"Options","panel","menu")||[],h=this.$fhem.getEl(t,"Options","panel","min")||0,u=this.$fhem.getEl(t,"Options","panel","max")||100,d=100/(u-h),v=((a[1]||0)-h)*d,f=[];if(r.length>0){var m,p=(0,o.Z)(r);try{for(p.s();!(m=p.n()).done;){var g=m.value,x=g.split(":"),_=this.checkMenu(t,x[1]);2==x.length&&f.push({name:x[0],cmd:x[1],active:_})}}catch(k){p.e(k)}finally{p.f()}}var C={device:e,title:s,text:a[0]||"",level:a[3]?100-v:v,color:a[2]||"success",icon:c[0]||"",route:n,click:l[0]||"",menu:f};return C},doList:function(){if(this.item.Connected)for(var t in this.status.color="success",this.item.Options.connected){var e=this.panelItems.map((function(t){return t.name})).indexOf(t),i=this.loadItem(this.item.Connected[t]),s={name:t,device:i.device,level:i.level,color:i.color,title:i.title,text:i.text,icon:i.icon,route:i.route,click:i.click,menu:i.menu,menuIdx:i.menu.map((function(t){return t.active})).indexOf(!0)};"success"!=i.color&&(this.status.color=i.color,this.status.level=100),-1!=e?this.panelItems.splice(e,1,s):this.panelItems.push(s)}}}},r=l,h=i(1001),u=i(3453),d=i.n(u),v=i(3150),f=i(2371),m=i(7118),p=i(2102),g=i(1418),x=i(6428),_=i(6816),C=i(7620),k=i(1960),T=i(7874),I=i(459),O=i(1152),y=i(624),b=i(7003),Z=i(2877),$=i(9762),A=i(2691),V=(0,h.Z)(r,s,n,!1,null,null,null),w=V.exports;d()(V,{VBtn:v.Z,VCard:f.Z,VCardText:m.ZB,VCardTitle:m.EB,VCol:p.Z,VDivider:g.Z,VIcon:x.Z,VList:_.Z,VListItem:C.Z,VListItemContent:k.km,VListItemGroup:T.Z,VListItemIcon:I.Z,VListItemTitle:k.V9,VMenu:O.Z,VProgressCircular:y.Z,VProgressLinear:b.Z,VRow:Z.Z,VSpacer:$.Z,VSystemBar:A.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/337.3c817406.js b/www/fhemapp/js/337.f1a9c2fa.js similarity index 99% rename from www/fhemapp/js/337.3c817406.js rename to www/fhemapp/js/337.f1a9c2fa.js index ba33ed0e..df3188b7 100644 --- a/www/fhemapp/js/337.3c817406.js +++ b/www/fhemapp/js/337.f1a9c2fa.js @@ -1 +1 @@ -"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[337],{1152:function(t,e,i){i.d(e,{Z:function(){return _}});var s=i(3242),n=i(5795),o=i(4561),l=i(5907),a=i(5936),c=i(423),r=i(3712),h=i(2936),d=i(8085),u=i(5600),m=i(549),v=i(3325),p=i(1824),f=i(4589),g=i(1439);const x=(0,v.Z)(l.Z,o.Z,a.Z,c.Z,r.Z,h.Z,d.Z);var _=x.extend({name:"v-menu",directives:{ClickOutside:u.Z,Resize:m.Z},provide(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile(){return this.tiles[this.listIndex]},calculatedLeft(){const t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?(0,f.kb)(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight(){const t=this.auto?"200px":(0,f.kb)(this.maxHeight);return t||"0"},calculatedMaxWidth(){return(0,f.kb)(this.maxWidth)||"0"},calculatedMinWidth(){if(this.minWidth)return(0,f.kb)(this.minWidth)||"0";const t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return(0,f.kb)(Math.min(e,t))||"0"},calculatedTop(){const t=this.auto?(0,f.kb)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles(){return Boolean(this.tiles.find((t=>t.tabIndex>-1)))},styles(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive(t){t||(this.listIndex=-1)},isContentActive(t){this.hasJustFocused=t},listIndex(t,e){if(t in this.tiles){const e=this.tiles[t];e.classList.add("v-list-item--highlighted");const i=this.$refs.content.scrollTop,s=this.$refs.content.clientHeight;i>e.offsetTop-8?(0,g.Z)(e.offsetTop-e.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):i+s{this.startTransition().then((()=>{this.$refs.content&&(this.calculatedTopAuto=this.calcTopAuto(),this.auto&&(this.$refs.content.scrollTop=this.calcScrollPosition()))}))}))},calcScrollPosition(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active"),i=t.scrollHeight-t.offsetHeight;return e?Math.min(i,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);const i=e.offsetTop-this.calcScrollPosition(),s=t.querySelector(".v-list-item").offsetTop;return this.computedTop-i-s-1},changeListIndex(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==f.Do.tab){if(t.keyCode===f.Do.down)this.nextTile();else if(t.keyCode===f.Do.up)this.prevTile();else if(t.keyCode===f.Do.end)this.lastTile();else if(t.keyCode===f.Do.home)this.firstTile();else{if(t.keyCode!==f.Do.enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional(t){const e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes(){const t=n.Z.options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?{...t,"aria-activedescendant":this.activeTile.id}:t},genActivatorListeners(){const t=a.Z.options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition(){const t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives(){const t=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&t.push({name:"click-outside",value:{handler:()=>{this.isActive=!1},closeConditional:this.closeConditional,include:()=>[this.$el,...this.getOpenDependentElements()]}}),t},genContent(){const t={attrs:{...this.getScopeIdAttrs(),role:"role"in this.$attrs?this.$attrs.role:"menu"},staticClass:"v-menu__content",class:{...this.rootThemeClasses,...this.roundedClasses,"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive,[this.contentClass.trim()]:!0},style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:t=>{const e=t.target;e.getAttribute("disabled")||this.closeOnContentClick&&(this.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(t.on=t.on||{},t.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(t.on=t.on||{},t.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(t.on=t.on||{},t.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",t,this.getContentSlot())},getTiles(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item, .v-divider, .v-subheader")))},mouseEnterHandler(){this.runDelay("open",(()=>{this.hasJustFocused||(this.hasJustFocused=!0)}))},mouseLeaveHandler(t){this.runDelay("close",(()=>{var e;null!=(e=this.$refs.content)&&e.contains(t.relatedTarget)||requestAnimationFrame((()=>{this.isActive=!1,this.callDeactivate()}))}))},nextTile(){const t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile(){const t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},lastTile(){const t=this.tiles[this.tiles.length-1];t&&(this.listIndex=this.tiles.length-1,-1===t.tabIndex&&this.prevTile())},firstTile(){const t=this.tiles[0];t&&(this.listIndex=0,-1===t.tabIndex&&this.nextTile())},onKeyDown(t){if(t.keyCode===f.Do.esc){setTimeout((()=>{this.isActive=!1}));const t=this.getActivator();this.$nextTick((()=>t&&t.focus()))}else!this.isActive&&[f.Do.up,f.Do.down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((()=>this.changeListIndex(t)))},onResize(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render(t){const e={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",e,[!this.activator&&this.genActivator(),this.showLazyContent((()=>[this.$createElement(s.Z,{props:{root:!0,light:this.light,dark:this.dark}},[this.genTransition()])]))])}})},1830:function(t,e,i){i.d(e,{Z:function(){return C}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"text-center"},["zzz"!=t.item.Options.sortby?i("v-chip",{attrs:{small:"",color:"secondary"}},[i("v-icon",{attrs:{left:""}},[t._v(" mdi-sort-ascending ")]),t._v(" "+t._s(t.item.Options.sortby)+" ")],1):t._e(),i("v-btn",{attrs:{href:t.toFhem(),target:"_blank",small:"",icon:""}},[i("v-icon",{attrs:{small:""}},[t._v(" mdi-link ")])],1),i("v-dialog",{attrs:{"max-width":"90%",scrollable:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[i("v-icon",{attrs:{small:""}},[t._v(" mdi-code-json ")])],1)]}}]),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[i("v-card",{staticClass:"secondary lighten-1"},[i("v-card-title",{staticClass:"secondary"},[i("v-btn",{attrs:{icon:""},on:{click:function(e){t.deep=t.deep>1?1:5}}},[i("v-icon",[t._v("mdi-file-tree-outline")])],1),i("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),i("v-spacer"),i("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[i("v-icon",[t._v("mdi-close")])],1)],1),i("v-card-text",[i("div",{ref:"jsonContent",staticClass:"select"},[i("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)])],1)],1)],1)},n=[],o=i(4566),l=i.n(o),a={name:"JsonList",props:{item:{type:Object,default:()=>({name:"json"})}},data(){return{dialog:!1,deep:1}},components:{VueJsonPretty:l()},methods:{toFhem(){let t=this.$fhem.createURL([{param:"detail",value:this.item.Name}]);return t}}},c=a,r=i(1001),h=i(3453),d=i.n(h),u=i(3150),m=i(2371),v=i(7118),p=i(5424),f=i(4497),g=i(6428),x=i(9762),_=(0,r.Z)(c,s,n,!1,null,"4fc9ba56",null),C=_.exports;d()(_,{VBtn:u.Z,VCard:m.Z,VCardText:v.ZB,VCardTitle:v.EB,VChip:p.Z,VDialog:f.Z,VIcon:g.Z,VSpacer:x.Z})},2965:function(t,e,i){i.r(e),i.d(e,{default:function(){return A}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.Options.show?i("v-col",{class:t.item.Options.setup.size||t.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.item.Options.status.level||t.status.level,color:t.item.Options.status.color||t.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.name)+" "),i("v-spacer"),t.app.options.debugMode?i("jsonList",{attrs:{item:t.item}}):t._e()],1),i("v-divider"),t.item.Options.status.isActive?t._e():i("div",[i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.item.Options.status.error)+" ")])])],1)],1),i("v-divider")],1),t.item.Options.status.isActive?i("div",[i("v-card-text",{staticClass:"pa-0"},t._l(t.panelItems,(function(e){return i("div",{key:e.Name,attrs:{align:"center"}},[i("v-row",{staticClass:"ma-1",attrs:{dense:"",align:"center"}},[i("v-col",{staticClass:"col-2"},[i("v-progress-circular",{attrs:{value:e.level,color:e.color}})],1),i("v-col",{staticClass:"text-truncate",attrs:{align:"left"}},[i("div",{staticClass:"text-truncate headline"},[t._v(" "+t._s(e.title)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(e.text)+" ")])]),i("v-col",{staticClass:"col-2",attrs:{align:"center"}},[e.route&&!e.click&&e.icon?i("v-btn",{attrs:{icon:"",link:"",to:e.route}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.icon)+" ")])],1):t._e(),e.click&&!e.route&&e.icon?i("div",[i("v-btn",{attrs:{icon:""},on:{click:function(i){return t.set(e.device,e.click)}}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.icon)+" ")])],1)],1):t._e(),e.menu&&!e.route&&!e.click&&e.icon?i("div",[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,o=s.attrs;return[i("v-btn",t._g(t._b({attrs:{icon:""}},"v-btn",o,!1),n),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.icon)+" ")])],1)]}}],null,!0)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:e.menuIdx,callback:function(i){t.$set(e,"menuIdx",i)},expression:"el.menuIdx"}},t._l(e.menu,(function(s,n){return i("v-list-item",{key:n,on:{click:function(i){return t.set(e.device,s.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(s.name)+" ")])],1),s.active?i("v-list-item-icon",[i("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e()],1)],1),i("v-divider")],1)})),0)],1):t._e(),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),i("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1):t._e()},n=[],o=i(1830),l={components:{jsonList:o.Z},props:{item:{type:Object,default:()=>({name:"panel"})}},data:()=>({name:"panel",size:"col-12 col-sm-6 col-md-6 col-lg-6",status:{color:"success",level:100},app:{options:{debugMode:!1}},panelItems:[]}),watch:{item:{immediate:!0,deep:!0,handler(){this.doList()}}},created(){this.app.options=this.$fhem.app.options},methods:{set(t,e){let i=e.match("set")?e:"set "+t+" "+e;this.$fhem.request(i)},checkMenu(t,e){let i=!1;if(e){let s=e.split(" ");s[0].match("set")&&s.splice(0,2),1===s.length&&s.splice(0,0,"state");let n=/\./.test(s[0])?s[0].split("."):["Readings",s[0],"Value"],o=this.$fhem.getEl(t,...n);o&&o===s[1]&&(i=!0)}return i},loadItem(t){let e=this.$fhem.getEl(t,"Name")||"",i=this.$fhem.getEl(t,"Attributes","alias")||t.Name,s=this.$fhem.getEl(t,"Options","name")||i,n=this.$fhem.getEl(t,"Options","panel","link")||"",o=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","status"))||[],l=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","btn"))||[],a=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","click"))||[],c=this.$fhem.getEl(t,"Options","panel","menu")||[],r=this.$fhem.getEl(t,"Options","panel","min")||0,h=this.$fhem.getEl(t,"Options","panel","max")||100,d=100/(h-r),u=((o[1]||0)-r)*d,m=[];if(c.length>0)for(const p of c){let e=p.split(":"),i=this.checkMenu(t,e[1]);2==e.length&&m.push({name:e[0],cmd:e[1],active:i})}let v={device:e,title:s,text:o[0]||"",level:o[3]?100-u:u,color:o[2]||"success",icon:l[0]||"",route:n,click:a[0]||"",menu:m};return v},doList(){if(this.item.Connected)for(var t in this.status.color="success",this.item.Options.connected){let e=this.panelItems.map((t=>t.name)).indexOf(t),i=this.loadItem(this.item.Connected[t]),s={name:t,device:i.device,level:i.level,color:i.color,title:i.title,text:i.text,icon:i.icon,route:i.route,click:i.click,menu:i.menu,menuIdx:i.menu.map((t=>t.active)).indexOf(!0)};"success"!=i.color&&(this.status.color=i.color,this.status.level=100),-1!=e?this.panelItems.splice(e,1,s):this.panelItems.push(s)}}}},a=l,c=i(1001),r=i(3453),h=i.n(r),d=i(3150),u=i(2371),m=i(7118),v=i(2102),p=i(1418),f=i(6428),g=i(6816),x=i(7620),_=i(1960),C=i(3249),k=i(459),T=i(1152),I=i(624),O=i(7003),b=i(2877),y=i(9762),$=i(2691),Z=(0,c.Z)(a,s,n,!1,null,null,null),A=Z.exports;h()(Z,{VBtn:d.Z,VCard:u.Z,VCardText:m.ZB,VCardTitle:m.EB,VCol:v.Z,VDivider:p.Z,VIcon:f.Z,VList:g.Z,VListItem:x.Z,VListItemContent:_.km,VListItemGroup:C.Z,VListItemIcon:k.Z,VListItemTitle:_.V9,VMenu:T.Z,VProgressCircular:I.Z,VProgressLinear:O.Z,VRow:b.Z,VSpacer:y.Z,VSystemBar:$.Z})}}]); \ No newline at end of file +"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[337],{1152:function(t,e,i){i.d(e,{Z:function(){return _}});var s=i(3242),n=i(5795),o=i(4561),l=i(5907),a=i(5936),c=i(423),r=i(3712),h=i(2936),d=i(8085),u=i(5600),m=i(549),v=i(3325),p=i(1824),f=i(4589),g=i(1439);const x=(0,v.Z)(l.Z,o.Z,a.Z,c.Z,r.Z,h.Z,d.Z);var _=x.extend({name:"v-menu",directives:{ClickOutside:u.Z,Resize:m.Z},provide(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile(){return this.tiles[this.listIndex]},calculatedLeft(){const t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?(0,f.kb)(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight(){const t=this.auto?"200px":(0,f.kb)(this.maxHeight);return t||"0"},calculatedMaxWidth(){return(0,f.kb)(this.maxWidth)||"0"},calculatedMinWidth(){if(this.minWidth)return(0,f.kb)(this.minWidth)||"0";const t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return(0,f.kb)(Math.min(e,t))||"0"},calculatedTop(){const t=this.auto?(0,f.kb)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles(){return Boolean(this.tiles.find((t=>t.tabIndex>-1)))},styles(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive(t){t||(this.listIndex=-1)},isContentActive(t){this.hasJustFocused=t},listIndex(t,e){if(t in this.tiles){const e=this.tiles[t];e.classList.add("v-list-item--highlighted");const i=this.$refs.content.scrollTop,s=this.$refs.content.clientHeight;i>e.offsetTop-8?(0,g.Z)(e.offsetTop-e.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):i+s{this.startTransition().then((()=>{this.$refs.content&&(this.calculatedTopAuto=this.calcTopAuto(),this.auto&&(this.$refs.content.scrollTop=this.calcScrollPosition()))}))}))},calcScrollPosition(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active"),i=t.scrollHeight-t.offsetHeight;return e?Math.min(i,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);const i=e.offsetTop-this.calcScrollPosition(),s=t.querySelector(".v-list-item").offsetTop;return this.computedTop-i-s-1},changeListIndex(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==f.Do.tab){if(t.keyCode===f.Do.down)this.nextTile();else if(t.keyCode===f.Do.up)this.prevTile();else if(t.keyCode===f.Do.end)this.lastTile();else if(t.keyCode===f.Do.home)this.firstTile();else{if(t.keyCode!==f.Do.enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional(t){const e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes(){const t=n.Z.options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?{...t,"aria-activedescendant":this.activeTile.id}:t},genActivatorListeners(){const t=a.Z.options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition(){const t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives(){const t=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&t.push({name:"click-outside",value:{handler:()=>{this.isActive=!1},closeConditional:this.closeConditional,include:()=>[this.$el,...this.getOpenDependentElements()]}}),t},genContent(){const t={attrs:{...this.getScopeIdAttrs(),role:"role"in this.$attrs?this.$attrs.role:"menu"},staticClass:"v-menu__content",class:{...this.rootThemeClasses,...this.roundedClasses,"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive,[this.contentClass.trim()]:!0},style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:t=>{const e=t.target;e.getAttribute("disabled")||this.closeOnContentClick&&(this.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(t.on=t.on||{},t.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(t.on=t.on||{},t.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(t.on=t.on||{},t.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",t,this.getContentSlot())},getTiles(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item, .v-divider, .v-subheader")))},mouseEnterHandler(){this.runDelay("open",(()=>{this.hasJustFocused||(this.hasJustFocused=!0)}))},mouseLeaveHandler(t){this.runDelay("close",(()=>{var e;null!=(e=this.$refs.content)&&e.contains(t.relatedTarget)||requestAnimationFrame((()=>{this.isActive=!1,this.callDeactivate()}))}))},nextTile(){const t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile(){const t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},lastTile(){const t=this.tiles[this.tiles.length-1];t&&(this.listIndex=this.tiles.length-1,-1===t.tabIndex&&this.prevTile())},firstTile(){const t=this.tiles[0];t&&(this.listIndex=0,-1===t.tabIndex&&this.nextTile())},onKeyDown(t){if(t.keyCode===f.Do.esc){setTimeout((()=>{this.isActive=!1}));const t=this.getActivator();this.$nextTick((()=>t&&t.focus()))}else!this.isActive&&[f.Do.up,f.Do.down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((()=>this.changeListIndex(t)))},onResize(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render(t){const e={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",e,[!this.activator&&this.genActivator(),this.showLazyContent((()=>[this.$createElement(s.Z,{props:{root:!0,light:this.light,dark:this.dark}},[this.genTransition()])]))])}})},1830:function(t,e,i){i.d(e,{Z:function(){return C}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"text-center"},["zzz"!=t.item.Options.sortby?i("v-chip",{attrs:{small:"",color:"secondary"}},[i("v-icon",{attrs:{left:""}},[t._v(" mdi-sort-ascending ")]),t._v(" "+t._s(t.item.Options.sortby)+" ")],1):t._e(),i("v-btn",{attrs:{href:t.toFhem(),target:"_blank",small:"",icon:""}},[i("v-icon",{attrs:{small:""}},[t._v(" mdi-link ")])],1),i("v-dialog",{attrs:{"max-width":"90%",scrollable:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[i("v-icon",{attrs:{small:""}},[t._v(" mdi-code-json ")])],1)]}}]),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[i("v-card",{staticClass:"secondary lighten-1"},[i("v-card-title",{staticClass:"secondary"},[i("v-btn",{attrs:{icon:""},on:{click:function(e){t.deep=t.deep>1?1:5}}},[i("v-icon",[t._v("mdi-file-tree-outline")])],1),i("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),i("v-spacer"),i("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[i("v-icon",[t._v("mdi-close")])],1)],1),i("v-card-text",[i("div",{ref:"jsonContent",staticClass:"select"},[i("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)])],1)],1)],1)},n=[],o=i(4566),l=i.n(o),a={name:"JsonList",props:{item:{type:Object,default:()=>({name:"json"})}},data(){return{dialog:!1,deep:1}},components:{VueJsonPretty:l()},methods:{toFhem(){let t=this.$fhem.createURL([{param:"detail",value:this.item.Name}]);return t}}},c=a,r=i(1001),h=i(3453),d=i.n(h),u=i(3150),m=i(2371),v=i(7118),p=i(5424),f=i(4497),g=i(6428),x=i(9762),_=(0,r.Z)(c,s,n,!1,null,"4fc9ba56",null),C=_.exports;d()(_,{VBtn:u.Z,VCard:m.Z,VCardText:v.ZB,VCardTitle:v.EB,VChip:p.Z,VDialog:f.Z,VIcon:g.Z,VSpacer:x.Z})},2965:function(t,e,i){i.r(e),i.d(e,{default:function(){return A}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.Options.show?i("v-col",{class:t.item.Options.setup.size||t.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.item.Options.status.level||t.status.level,color:t.item.Options.status.color||t.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.name)+" "),i("v-spacer"),t.app.options.debugMode?i("jsonList",{attrs:{item:t.item}}):t._e()],1),i("v-divider"),t.item.Options.status.isActive?t._e():i("div",[i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.item.Options.status.error)+" ")])])],1)],1),i("v-divider")],1),t.item.Options.status.isActive?i("div",[i("v-card-text",{staticClass:"pa-0"},t._l(t.panelItems,(function(e){return i("div",{key:e.Name,attrs:{align:"center"}},[i("v-row",{staticClass:"ma-1",attrs:{dense:"",align:"center"}},[i("v-col",{staticClass:"col-2"},[i("v-progress-circular",{attrs:{value:e.level,color:e.color}})],1),i("v-col",{staticClass:"text-truncate",attrs:{align:"left"}},[i("div",{staticClass:"text-truncate headline"},[t._v(" "+t._s(e.title)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(e.text)+" ")])]),i("v-col",{staticClass:"col-2",attrs:{align:"center"}},[e.route&&!e.click&&e.icon?i("v-btn",{attrs:{icon:"",link:"",to:e.route}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.icon)+" ")])],1):t._e(),e.click&&!e.route&&e.icon?i("div",[i("v-btn",{attrs:{icon:""},on:{click:function(i){return t.set(e.device,e.click)}}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.icon)+" ")])],1)],1):t._e(),e.menu&&!e.route&&!e.click&&e.icon?i("div",[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,o=s.attrs;return[i("v-btn",t._g(t._b({attrs:{icon:""}},"v-btn",o,!1),n),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.icon)+" ")])],1)]}}],null,!0)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:e.menuIdx,callback:function(i){t.$set(e,"menuIdx",i)},expression:"el.menuIdx"}},t._l(e.menu,(function(s,n){return i("v-list-item",{key:n,on:{click:function(i){return t.set(e.device,s.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(s.name)+" ")])],1),s.active?i("v-list-item-icon",[i("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e()],1)],1),i("v-divider")],1)})),0)],1):t._e(),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),i("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1):t._e()},n=[],o=i(1830),l={components:{jsonList:o.Z},props:{item:{type:Object,default:()=>({name:"panel"})}},data:()=>({name:"panel",size:"col-12 col-sm-6 col-md-6 col-lg-6",status:{color:"success",level:100},app:{options:{debugMode:!1}},panelItems:[]}),watch:{item:{immediate:!0,deep:!0,handler(){this.doList()}}},created(){this.app.options=this.$fhem.app.options},methods:{set(t,e){let i=e.match("set")?e:"set "+t+" "+e;this.$fhem.request(i)},checkMenu(t,e){let i=!1;if(e){let s=e.split(" ");s[0].match("set")&&s.splice(0,2),1===s.length&&s.splice(0,0,"state");let n=/\./.test(s[0])?s[0].split("."):["Readings",s[0],"Value"],o=this.$fhem.getEl(t,...n);o&&o===s[1]&&(i=!0)}return i},loadItem(t){let e=this.$fhem.getEl(t,"Name")||"",i=this.$fhem.getEl(t,"Attributes","alias")||t.Name,s=this.$fhem.getEl(t,"Options","name")||i,n=this.$fhem.getEl(t,"Options","panel","link")||"",o=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","status"))||[],l=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","btn"))||[],a=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","click"))||[],c=this.$fhem.getEl(t,"Options","panel","menu")||[],r=this.$fhem.getEl(t,"Options","panel","min")||0,h=this.$fhem.getEl(t,"Options","panel","max")||100,d=100/(h-r),u=((o[1]||0)-r)*d,m=[];if(c.length>0)for(const p of c){let e=p.split(":"),i=this.checkMenu(t,e[1]);2==e.length&&m.push({name:e[0],cmd:e[1],active:i})}let v={device:e,title:s,text:o[0]||"",level:o[3]?100-u:u,color:o[2]||"success",icon:l[0]||"",route:n,click:a[0]||"",menu:m};return v},doList(){if(this.item.Connected)for(var t in this.status.color="success",this.item.Options.connected){let e=this.panelItems.map((t=>t.name)).indexOf(t),i=this.loadItem(this.item.Connected[t]),s={name:t,device:i.device,level:i.level,color:i.color,title:i.title,text:i.text,icon:i.icon,route:i.route,click:i.click,menu:i.menu,menuIdx:i.menu.map((t=>t.active)).indexOf(!0)};"success"!=i.color&&(this.status.color=i.color,this.status.level=100),-1!=e?this.panelItems.splice(e,1,s):this.panelItems.push(s)}}}},a=l,c=i(1001),r=i(3453),h=i.n(r),d=i(3150),u=i(2371),m=i(7118),v=i(2102),p=i(1418),f=i(6428),g=i(6816),x=i(7620),_=i(1960),C=i(7874),k=i(459),T=i(1152),I=i(624),O=i(7003),b=i(2877),y=i(9762),$=i(2691),Z=(0,c.Z)(a,s,n,!1,null,null,null),A=Z.exports;h()(Z,{VBtn:d.Z,VCard:u.Z,VCardText:m.ZB,VCardTitle:m.EB,VCol:v.Z,VDivider:p.Z,VIcon:f.Z,VList:g.Z,VListItem:x.Z,VListItemContent:_.km,VListItemGroup:C.Z,VListItemIcon:k.Z,VListItemTitle:_.V9,VMenu:T.Z,VProgressCircular:I.Z,VProgressLinear:O.Z,VRow:b.Z,VSpacer:y.Z,VSystemBar:$.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/396-legacy.c0fe53a6.js b/www/fhemapp/js/507-legacy.4f288f72.js similarity index 78% rename from www/fhemapp/js/396-legacy.c0fe53a6.js rename to www/fhemapp/js/507-legacy.4f288f72.js index e9f25a67..42e74daf 100644 --- a/www/fhemapp/js/396-legacy.c0fe53a6.js +++ b/www/fhemapp/js/507-legacy.4f288f72.js @@ -1 +1 @@ -"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[396],{1830:function(t,e,i){i.d(e,{Z:function(){return g}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"text-center"},["zzz"!=t.item.Options.sortby?i("v-chip",{attrs:{small:"",color:"secondary"}},[i("v-icon",{attrs:{left:""}},[t._v(" mdi-sort-ascending ")]),t._v(" "+t._s(t.item.Options.sortby)+" ")],1):t._e(),i("v-btn",{attrs:{href:t.toFhem(),target:"_blank",small:"",icon:""}},[i("v-icon",{attrs:{small:""}},[t._v(" mdi-link ")])],1),i("v-dialog",{attrs:{"max-width":"90%",scrollable:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,o=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",o,!1),s),[i("v-icon",{attrs:{small:""}},[t._v(" mdi-code-json ")])],1)]}}]),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[i("v-card",{staticClass:"secondary lighten-1"},[i("v-card-title",{staticClass:"secondary"},[i("v-btn",{attrs:{icon:""},on:{click:function(e){t.deep=t.deep>1?1:5}}},[i("v-icon",[t._v("mdi-file-tree-outline")])],1),i("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),i("v-spacer"),i("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[i("v-icon",[t._v("mdi-close")])],1)],1),i("v-card-text",[i("div",{ref:"jsonContent",staticClass:"select"},[i("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)])],1)],1)],1)},o=[],n=i(4566),a=i.n(n),c={name:"JsonList",props:{item:{type:Object,default:function(){return{name:"json"}}}},data:function(){return{dialog:!1,deep:1}},components:{VueJsonPretty:a()},methods:{toFhem:function(){var t=this.$fhem.createURL([{param:"detail",value:this.item.Name}]);return t}}},r=c,l=i(1001),m=i(3453),d=i.n(m),p=i(3150),v=i(2371),u=i(7118),f=i(5424),h=i(4497),_=i(6428),x=i(9762),C=(0,l.Z)(r,s,o,!1,null,"4fc9ba56",null),g=C.exports;d()(C,{VBtn:p.Z,VCard:v.Z,VCardText:u.ZB,VCardTitle:u.EB,VChip:f.Z,VDialog:h.Z,VIcon:_.Z,VSpacer:x.Z})},8519:function(t,e,i){i.r(e),i.d(e,{default:function(){return b}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-col",{class:t.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.item.Options.status.level||t.status.level,color:t.item.Options.status.color||t.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.name)+" "),i("v-spacer"),i("v-btn",{attrs:{small:"",icon:""},on:{click:function(e){return t.expandBtn()}}},[i("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.expandIcon)+" ")])],1),t.app.options.debugMode?i("jsonList",{attrs:{item:t.item}}):t._e()],1),i("v-divider"),t.item.Options.status.isActive?t._e():i("div",[i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.item.Options.status.error)+" ")])])],1)],1),i("v-divider")],1),t.item.Options.status.isActive?i("div",[i("v-card-text",{staticClass:"pa-0"},[i("img",{attrs:{src:t.source,width:"100%"}})])],1):t._e(),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon||t.camIcon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),i("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1)},o=[],n=(i(7327),i(1539),i(4916),i(4723),i(1830)),a={components:{jsonList:n.Z},props:{item:{type:Object,default:function(){return{name:"cam"}}}},data:function(){return{name:"cam",size:"",source:"",camIcon:"mdi-cctv",expandIcon:"mdi-arrow-expand",maxSize:!1,status:{color:"success",level:0},app:{options:{debugMode:!1}}}},created:function(){this.app.options=this.$fhem.app.options,this.size=this.$fhem.getEl(this.item,"Options","setup","size")||"col-12 col-sm-12 col-md-6 col-lg-4",this.source=this.$fhem.getEl(this.item,"Options","setup","source")||"",this.$route.params.filter&&this.$route.params.filter.match("&size=max")&&(this.maxSize=!0,this.size="col-12",this.expandIcon="mdi-arrow-collapse")},methods:{expandBtn:function(){this.maxSize?(this.maxSize=!1,this.size=this.$fhem.getEl(this.item,"Options","setup","size")||"col-12 col-sm-12 col-md-6 col-lg-4",this.expandIcon="mdi-arrow-expand"):(this.maxSize=!0,this.size="col-12",this.expandIcon="mdi-arrow-collapse")}}},c=a,r=i(1001),l=i(3453),m=i.n(l),d=i(3150),p=i(2371),v=i(7118),u=i(2102),f=i(1418),h=i(6428),_=i(7003),x=i(2877),C=i(9762),g=i(2691),O=(0,r.Z)(c,s,o,!1,null,null,null),b=O.exports;m()(O,{VBtn:d.Z,VCard:p.Z,VCardText:v.ZB,VCardTitle:v.EB,VCol:u.Z,VDivider:f.Z,VIcon:h.Z,VProgressLinear:_.Z,VRow:x.Z,VSpacer:C.Z,VSystemBar:g.Z})}}]); \ No newline at end of file +"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[507],{1830:function(t,e,i){i.d(e,{Z:function(){return g}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"text-center"},["zzz"!=t.item.Options.sortby?i("v-chip",{attrs:{small:"",color:"secondary"}},[i("v-icon",{attrs:{left:""}},[t._v(" mdi-sort-ascending ")]),t._v(" "+t._s(t.item.Options.sortby)+" ")],1):t._e(),i("v-btn",{attrs:{href:t.toFhem(),target:"_blank",small:"",icon:""}},[i("v-icon",{attrs:{small:""}},[t._v(" mdi-link ")])],1),i("v-dialog",{attrs:{"max-width":"90%",scrollable:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,o=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",o,!1),s),[i("v-icon",{attrs:{small:""}},[t._v(" mdi-code-json ")])],1)]}}]),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[i("v-card",{staticClass:"secondary lighten-1"},[i("v-card-title",{staticClass:"secondary"},[i("v-btn",{attrs:{icon:""},on:{click:function(e){t.deep=t.deep>1?1:5}}},[i("v-icon",[t._v("mdi-file-tree-outline")])],1),i("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),i("v-spacer"),i("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[i("v-icon",[t._v("mdi-close")])],1)],1),i("v-card-text",[i("div",{ref:"jsonContent",staticClass:"select"},[i("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)])],1)],1)],1)},o=[],n=i(4566),a=i.n(n),r={name:"JsonList",props:{item:{type:Object,default:function(){return{name:"json"}}}},data:function(){return{dialog:!1,deep:1}},components:{VueJsonPretty:a()},methods:{toFhem:function(){var t=this.$fhem.createURL([{param:"detail",value:this.item.Name}]);return t}}},c=r,l=i(1001),m=i(3453),d=i.n(m),p=i(3150),v=i(2371),u=i(7118),f=i(5424),h=i(4497),_=i(6428),x=i(9762),C=(0,l.Z)(c,s,o,!1,null,"4fc9ba56",null),g=C.exports;d()(C,{VBtn:p.Z,VCard:v.Z,VCardText:u.ZB,VCardTitle:u.EB,VChip:f.Z,VDialog:h.Z,VIcon:_.Z,VSpacer:x.Z})},1643:function(t,e,i){i.r(e),i.d(e,{default:function(){return b}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-col",{class:t.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.item.Options.status.level||t.status.level,color:t.item.Options.status.color||t.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.name)+" "),i("v-spacer"),i("v-btn",{attrs:{small:"",icon:""},on:{click:function(e){return t.expandBtn()}}},[i("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.expandIcon)+" ")])],1),t.app.options.debugMode?i("jsonList",{attrs:{item:t.item}}):t._e()],1),i("v-divider"),t.item.Options.status.isActive?t._e():i("div",[i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.item.Options.status.error)+" ")])])],1)],1),i("v-divider")],1),t.item.Options.status.isActive?i("div",[i("v-card-text",{staticClass:"pa-0"},[i("img",{attrs:{src:t.source,width:"100%"}})])],1):t._e(),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon||t.camIcon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),i("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1)},o=[],n=(i(7327),i(1539),i(4916),i(4723),i(1830)),a={components:{jsonList:n.Z},props:{item:{type:Object,default:function(){return{name:"cam"}}}},data:function(){return{name:"cam",size:"",source:"",camIcon:"mdi-cctv",expandIcon:"mdi-arrow-expand",maxSize:!1,status:{color:"success",level:0},app:{options:{debugMode:!1}}}},created:function(){this.app.options=this.$fhem.app.options,this.size=this.$fhem.getEl(this.item,"Options","setup","size")||"col-12 col-sm-12 col-md-6 col-lg-4";var t=this.$fhem.handleVals(this.item,this.$fhem.getEl(this.item,"Options","setup","source")||"");this.source=t[0],this.$route.params.filter&&this.$route.params.filter.match("&size=max")&&(this.maxSize=!0,this.size="col-12",this.expandIcon="mdi-arrow-collapse")},methods:{expandBtn:function(){this.maxSize?(this.maxSize=!1,this.size=this.$fhem.getEl(this.item,"Options","setup","size")||"col-12 col-sm-12 col-md-6 col-lg-4",this.expandIcon="mdi-arrow-expand"):(this.maxSize=!0,this.size="col-12",this.expandIcon="mdi-arrow-collapse")}}},r=a,c=i(1001),l=i(3453),m=i.n(l),d=i(3150),p=i(2371),v=i(7118),u=i(2102),f=i(1418),h=i(6428),_=i(7003),x=i(2877),C=i(9762),g=i(2691),O=(0,c.Z)(r,s,o,!1,null,null,null),b=O.exports;m()(O,{VBtn:d.Z,VCard:p.Z,VCardText:v.ZB,VCardTitle:v.EB,VCol:u.Z,VDivider:f.Z,VIcon:h.Z,VProgressLinear:_.Z,VRow:x.Z,VSpacer:C.Z,VSystemBar:g.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/396.02bb2eaa.js b/www/fhemapp/js/507.4ff242cc.js similarity index 82% rename from www/fhemapp/js/396.02bb2eaa.js rename to www/fhemapp/js/507.4ff242cc.js index aeff646b..dbc90f52 100644 --- a/www/fhemapp/js/396.02bb2eaa.js +++ b/www/fhemapp/js/507.4ff242cc.js @@ -1 +1 @@ -"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[396],{1830:function(t,e,s){s.d(e,{Z:function(){return g}});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"text-center"},["zzz"!=t.item.Options.sortby?s("v-chip",{attrs:{small:"",color:"secondary"}},[s("v-icon",{attrs:{left:""}},[t._v(" mdi-sort-ascending ")]),t._v(" "+t._s(t.item.Options.sortby)+" ")],1):t._e(),s("v-btn",{attrs:{href:t.toFhem(),target:"_blank",small:"",icon:""}},[s("v-icon",{attrs:{small:""}},[t._v(" mdi-link ")])],1),s("v-dialog",{attrs:{"max-width":"90%",scrollable:""},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on,o=e.attrs;return[s("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",o,!1),i),[s("v-icon",{attrs:{small:""}},[t._v(" mdi-code-json ")])],1)]}}]),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[s("v-card",{staticClass:"secondary lighten-1"},[s("v-card-title",{staticClass:"secondary"},[s("v-btn",{attrs:{icon:""},on:{click:function(e){t.deep=t.deep>1?1:5}}},[s("v-icon",[t._v("mdi-file-tree-outline")])],1),s("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),s("v-spacer"),s("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[s("v-icon",[t._v("mdi-close")])],1)],1),s("v-card-text",[s("div",{ref:"jsonContent",staticClass:"select"},[s("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)])],1)],1)],1)},o=[],a=s(4566),n=s.n(a),c={name:"JsonList",props:{item:{type:Object,default:()=>({name:"json"})}},data(){return{dialog:!1,deep:1}},components:{VueJsonPretty:n()},methods:{toFhem(){let t=this.$fhem.createURL([{param:"detail",value:this.item.Name}]);return t}}},r=c,l=s(1001),m=s(3453),d=s.n(m),p=s(3150),v=s(2371),u=s(7118),h=s(5424),f=s(4497),_=s(6428),x=s(9762),C=(0,l.Z)(r,i,o,!1,null,"4fc9ba56",null),g=C.exports;d()(C,{VBtn:p.Z,VCard:v.Z,VCardText:u.ZB,VCardTitle:u.EB,VChip:h.Z,VDialog:f.Z,VIcon:_.Z,VSpacer:x.Z})},8519:function(t,e,s){s.r(e),s.d(e,{default:function(){return b}});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-col",{class:t.size},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:t.item.Options.status.level||t.status.level,color:t.item.Options.status.color||t.status.color,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.name)+" "),s("v-spacer"),s("v-btn",{attrs:{small:"",icon:""},on:{click:function(e){return t.expandBtn()}}},[s("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.expandIcon)+" ")])],1),t.app.options.debugMode?s("jsonList",{attrs:{item:t.item}}):t._e()],1),s("v-divider"),t.item.Options.status.isActive?t._e():s("div",[s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",{attrs:{align:"center"}},[s("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.item.Options.status.error)+" ")])])],1)],1),s("v-divider")],1),t.item.Options.status.isActive?s("div",[s("v-card-text",{staticClass:"pa-0"},[s("img",{attrs:{src:t.source,width:"100%"}})])],1):t._e(),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon||t.camIcon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),s("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),s("v-spacer"),s("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),s("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),s("v-spacer"),s("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),s("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1)},o=[],a=s(1830),n={components:{jsonList:a.Z},props:{item:{type:Object,default:()=>({name:"cam"})}},data:()=>({name:"cam",size:"",source:"",camIcon:"mdi-cctv",expandIcon:"mdi-arrow-expand",maxSize:!1,status:{color:"success",level:0},app:{options:{debugMode:!1}}}),created(){this.app.options=this.$fhem.app.options,this.size=this.$fhem.getEl(this.item,"Options","setup","size")||"col-12 col-sm-12 col-md-6 col-lg-4",this.source=this.$fhem.getEl(this.item,"Options","setup","source")||"",this.$route.params.filter&&this.$route.params.filter.match("&size=max")&&(this.maxSize=!0,this.size="col-12",this.expandIcon="mdi-arrow-collapse")},methods:{expandBtn(){this.maxSize?(this.maxSize=!1,this.size=this.$fhem.getEl(this.item,"Options","setup","size")||"col-12 col-sm-12 col-md-6 col-lg-4",this.expandIcon="mdi-arrow-expand"):(this.maxSize=!0,this.size="col-12",this.expandIcon="mdi-arrow-collapse")}}},c=n,r=s(1001),l=s(3453),m=s.n(l),d=s(3150),p=s(2371),v=s(7118),u=s(2102),h=s(1418),f=s(6428),_=s(7003),x=s(2877),C=s(9762),g=s(2691),O=(0,r.Z)(c,i,o,!1,null,null,null),b=O.exports;m()(O,{VBtn:d.Z,VCard:p.Z,VCardText:v.ZB,VCardTitle:v.EB,VCol:u.Z,VDivider:h.Z,VIcon:f.Z,VProgressLinear:_.Z,VRow:x.Z,VSpacer:C.Z,VSystemBar:g.Z})}}]); \ No newline at end of file +"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[507],{1830:function(t,e,s){s.d(e,{Z:function(){return g}});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"text-center"},["zzz"!=t.item.Options.sortby?s("v-chip",{attrs:{small:"",color:"secondary"}},[s("v-icon",{attrs:{left:""}},[t._v(" mdi-sort-ascending ")]),t._v(" "+t._s(t.item.Options.sortby)+" ")],1):t._e(),s("v-btn",{attrs:{href:t.toFhem(),target:"_blank",small:"",icon:""}},[s("v-icon",{attrs:{small:""}},[t._v(" mdi-link ")])],1),s("v-dialog",{attrs:{"max-width":"90%",scrollable:""},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on,o=e.attrs;return[s("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",o,!1),i),[s("v-icon",{attrs:{small:""}},[t._v(" mdi-code-json ")])],1)]}}]),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[s("v-card",{staticClass:"secondary lighten-1"},[s("v-card-title",{staticClass:"secondary"},[s("v-btn",{attrs:{icon:""},on:{click:function(e){t.deep=t.deep>1?1:5}}},[s("v-icon",[t._v("mdi-file-tree-outline")])],1),s("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),s("v-spacer"),s("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[s("v-icon",[t._v("mdi-close")])],1)],1),s("v-card-text",[s("div",{ref:"jsonContent",staticClass:"select"},[s("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)])],1)],1)],1)},o=[],a=s(4566),n=s.n(a),c={name:"JsonList",props:{item:{type:Object,default:()=>({name:"json"})}},data(){return{dialog:!1,deep:1}},components:{VueJsonPretty:n()},methods:{toFhem(){let t=this.$fhem.createURL([{param:"detail",value:this.item.Name}]);return t}}},r=c,l=s(1001),m=s(3453),d=s.n(m),p=s(3150),v=s(2371),u=s(7118),h=s(5424),f=s(4497),_=s(6428),x=s(9762),C=(0,l.Z)(r,i,o,!1,null,"4fc9ba56",null),g=C.exports;d()(C,{VBtn:p.Z,VCard:v.Z,VCardText:u.ZB,VCardTitle:u.EB,VChip:h.Z,VDialog:f.Z,VIcon:_.Z,VSpacer:x.Z})},1643:function(t,e,s){s.r(e),s.d(e,{default:function(){return b}});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-col",{class:t.size},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:t.item.Options.status.level||t.status.level,color:t.item.Options.status.color||t.status.color,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.name)+" "),s("v-spacer"),s("v-btn",{attrs:{small:"",icon:""},on:{click:function(e){return t.expandBtn()}}},[s("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.expandIcon)+" ")])],1),t.app.options.debugMode?s("jsonList",{attrs:{item:t.item}}):t._e()],1),s("v-divider"),t.item.Options.status.isActive?t._e():s("div",[s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",{attrs:{align:"center"}},[s("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.item.Options.status.error)+" ")])])],1)],1),s("v-divider")],1),t.item.Options.status.isActive?s("div",[s("v-card-text",{staticClass:"pa-0"},[s("img",{attrs:{src:t.source,width:"100%"}})])],1):t._e(),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon||t.camIcon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),s("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),s("v-spacer"),s("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),s("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),s("v-spacer"),s("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),s("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1)},o=[],a=s(1830),n={components:{jsonList:a.Z},props:{item:{type:Object,default:()=>({name:"cam"})}},data:()=>({name:"cam",size:"",source:"",camIcon:"mdi-cctv",expandIcon:"mdi-arrow-expand",maxSize:!1,status:{color:"success",level:0},app:{options:{debugMode:!1}}}),created(){this.app.options=this.$fhem.app.options,this.size=this.$fhem.getEl(this.item,"Options","setup","size")||"col-12 col-sm-12 col-md-6 col-lg-4";let t=this.$fhem.handleVals(this.item,this.$fhem.getEl(this.item,"Options","setup","source")||"");this.source=t[0],this.$route.params.filter&&this.$route.params.filter.match("&size=max")&&(this.maxSize=!0,this.size="col-12",this.expandIcon="mdi-arrow-collapse")},methods:{expandBtn(){this.maxSize?(this.maxSize=!1,this.size=this.$fhem.getEl(this.item,"Options","setup","size")||"col-12 col-sm-12 col-md-6 col-lg-4",this.expandIcon="mdi-arrow-expand"):(this.maxSize=!0,this.size="col-12",this.expandIcon="mdi-arrow-collapse")}}},c=n,r=s(1001),l=s(3453),m=s.n(l),d=s(3150),p=s(2371),v=s(7118),u=s(2102),h=s(1418),f=s(6428),_=s(7003),x=s(2877),C=s(9762),g=s(2691),O=(0,r.Z)(c,i,o,!1,null,null,null),b=O.exports;m()(O,{VBtn:d.Z,VCard:p.Z,VCardText:v.ZB,VCardTitle:v.EB,VCol:u.Z,VDivider:h.Z,VIcon:f.Z,VProgressLinear:_.Z,VRow:x.Z,VSpacer:C.Z,VSystemBar:g.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/583-legacy.482ee3b1.js b/www/fhemapp/js/583-legacy.482ee3b1.js deleted file mode 100644 index 19c48660..00000000 --- a/www/fhemapp/js/583-legacy.482ee3b1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[583],{1830:function(t,e,i){i.d(e,{Z:function(){return C}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"text-center"},["zzz"!=t.item.Options.sortby?i("v-chip",{attrs:{small:"",color:"secondary"}},[i("v-icon",{attrs:{left:""}},[t._v(" mdi-sort-ascending ")]),t._v(" "+t._s(t.item.Options.sortby)+" ")],1):t._e(),i("v-btn",{attrs:{href:t.toFhem(),target:"_blank",small:"",icon:""}},[i("v-icon",{attrs:{small:""}},[t._v(" mdi-link ")])],1),i("v-dialog",{attrs:{"max-width":"90%",scrollable:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,o=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",o,!1),s),[i("v-icon",{attrs:{small:""}},[t._v(" mdi-code-json ")])],1)]}}]),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[i("v-card",{staticClass:"secondary lighten-1"},[i("v-card-title",{staticClass:"secondary"},[i("v-btn",{attrs:{icon:""},on:{click:function(e){t.deep=t.deep>1?1:5}}},[i("v-icon",[t._v("mdi-file-tree-outline")])],1),i("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),i("v-spacer"),i("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[i("v-icon",[t._v("mdi-close")])],1)],1),i("v-card-text",[i("div",{ref:"jsonContent",staticClass:"select"},[i("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)])],1)],1)],1)},o=[],n=i(4566),a=i.n(n),r={name:"JsonList",props:{item:{type:Object,default:function(){return{name:"json"}}}},data:function(){return{dialog:!1,deep:1}},components:{VueJsonPretty:a()},methods:{toFhem:function(){var t=this.$fhem.createURL([{param:"detail",value:this.item.Name}]);return t}}},c=r,l=i(1001),d=i(3453),m=i.n(d),p=i(3150),v=i(2371),u=i(7118),f=i(5424),h=i(4497),_=i(6428),x=i(9762),g=(0,l.Z)(c,s,o,!1,null,"4fc9ba56",null),C=g.exports;m()(g,{VBtn:p.Z,VCard:v.Z,VCardText:u.ZB,VCardTitle:u.EB,VChip:f.Z,VDialog:h.Z,VIcon:_.Z,VSpacer:x.Z})},5638:function(t,e,i){i.r(e),i.d(e,{default:function(){return b}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.Options.show?i("v-col",{class:t.item.Options.setup.size||t.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.item.Options.status.level||t.status.level,color:t.item.Options.status.color||t.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.name)+" "),i("v-spacer"),t.item.Options.status.isActive?i("v-btn",{attrs:{small:"",icon:""},on:{click:t.expand}},[i("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.maxIcon)+" ")])],1):t._e(),t.app.options.debugMode?i("jsonList",{attrs:{item:t.item}}):t._e()],1),i("v-divider"),t.item.Options.status.isActive?t._e():i("div",[i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.item.Options.status.error)+" ")])])],1)],1),i("v-divider")],1),t.item.Options.status.isActive?i("div",[i("v-card-text")],1):t._e(),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),i("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1):t._e()},o=[],n=(i(4916),i(3123),i(1830)),a={components:{jsonList:n.Z},props:{item:{type:Object,default:function(){return{name:"wdtimer"}}}},data:function(){return{name:"wdtimer",maxIcon:"mdi-arrow-expand",expanded:!1,size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{color:"success",level:0},app:{options:{debugMode:!1}},setup:{}}},watch:{item:{immediate:!0,deep:!0,handler:function(){}}},created:function(){var t=this.iconSet=this.$fhem.getEl(this.item,"Options","setup");this.app.options=this.$fhem.app.options,this.$fhem.getEl(this.item,"Options","setup","expanded")&&this.expand(),t&&(this.setup=t),this.loadDefs()},methods:{expand:function(){this.expanded?(this.expanded=!1,this.maxIcon="mdi-arrow-expand"):(this.expanded=!0,this.maxIcon="mdi-arrow-collapse")},loadDefs:function(){if("WeekdayTimer"===this.$fhem.getEl(this.item,"Internals","TYPE")){var t=this.$fhem.getEl(this.item,"Internals","DEF")||"",e=t.split(" ");console.log(e)}else this.$fhem.log({lvl:1,msg:"Template is not a FHEM-WeekdayTimer.",meta:this.item})}}},r=a,c=i(1001),l=i(3453),d=i.n(l),m=i(3150),p=i(2371),v=i(7118),u=i(2102),f=i(1418),h=i(6428),_=i(7003),x=i(2877),g=i(9762),C=i(2691),O=(0,c.Z)(r,s,o,!1,null,null,null),b=O.exports;d()(O,{VBtn:m.Z,VCard:p.Z,VCardText:v.ZB,VCardTitle:v.EB,VCol:u.Z,VDivider:f.Z,VIcon:h.Z,VProgressLinear:_.Z,VRow:x.Z,VSpacer:g.Z,VSystemBar:C.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/583.18a1d800.js b/www/fhemapp/js/583.18a1d800.js deleted file mode 100644 index fb649d33..00000000 --- a/www/fhemapp/js/583.18a1d800.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[583],{1830:function(t,e,i){i.d(e,{Z:function(){return C}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"text-center"},["zzz"!=t.item.Options.sortby?i("v-chip",{attrs:{small:"",color:"secondary"}},[i("v-icon",{attrs:{left:""}},[t._v(" mdi-sort-ascending ")]),t._v(" "+t._s(t.item.Options.sortby)+" ")],1):t._e(),i("v-btn",{attrs:{href:t.toFhem(),target:"_blank",small:"",icon:""}},[i("v-icon",{attrs:{small:""}},[t._v(" mdi-link ")])],1),i("v-dialog",{attrs:{"max-width":"90%",scrollable:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,o=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",o,!1),s),[i("v-icon",{attrs:{small:""}},[t._v(" mdi-code-json ")])],1)]}}]),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[i("v-card",{staticClass:"secondary lighten-1"},[i("v-card-title",{staticClass:"secondary"},[i("v-btn",{attrs:{icon:""},on:{click:function(e){t.deep=t.deep>1?1:5}}},[i("v-icon",[t._v("mdi-file-tree-outline")])],1),i("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),i("v-spacer"),i("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[i("v-icon",[t._v("mdi-close")])],1)],1),i("v-card-text",[i("div",{ref:"jsonContent",staticClass:"select"},[i("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)])],1)],1)],1)},o=[],n=i(4566),a=i.n(n),r={name:"JsonList",props:{item:{type:Object,default:()=>({name:"json"})}},data(){return{dialog:!1,deep:1}},components:{VueJsonPretty:a()},methods:{toFhem(){let t=this.$fhem.createURL([{param:"detail",value:this.item.Name}]);return t}}},l=r,c=i(1001),d=i(3453),m=i.n(d),p=i(3150),v=i(2371),h=i(7118),u=i(5424),f=i(4497),_=i(6428),x=i(9762),g=(0,c.Z)(l,s,o,!1,null,"4fc9ba56",null),C=g.exports;m()(g,{VBtn:p.Z,VCard:v.Z,VCardText:h.ZB,VCardTitle:h.EB,VChip:u.Z,VDialog:f.Z,VIcon:_.Z,VSpacer:x.Z})},5638:function(t,e,i){i.r(e),i.d(e,{default:function(){return b}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.Options.show?i("v-col",{class:t.item.Options.setup.size||t.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.item.Options.status.level||t.status.level,color:t.item.Options.status.color||t.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.name)+" "),i("v-spacer"),t.item.Options.status.isActive?i("v-btn",{attrs:{small:"",icon:""},on:{click:t.expand}},[i("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.maxIcon)+" ")])],1):t._e(),t.app.options.debugMode?i("jsonList",{attrs:{item:t.item}}):t._e()],1),i("v-divider"),t.item.Options.status.isActive?t._e():i("div",[i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.item.Options.status.error)+" ")])])],1)],1),i("v-divider")],1),t.item.Options.status.isActive?i("div",[i("v-card-text")],1):t._e(),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),i("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1):t._e()},o=[],n=i(1830),a={components:{jsonList:n.Z},props:{item:{type:Object,default:()=>({name:"wdtimer"})}},data:()=>({name:"wdtimer",maxIcon:"mdi-arrow-expand",expanded:!1,size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{color:"success",level:0},app:{options:{debugMode:!1}},setup:{}}),watch:{item:{immediate:!0,deep:!0,handler(){}}},created(){let t=this.iconSet=this.$fhem.getEl(this.item,"Options","setup");this.app.options=this.$fhem.app.options,this.$fhem.getEl(this.item,"Options","setup","expanded")&&this.expand(),t&&(this.setup=t),this.loadDefs()},methods:{expand(){this.expanded?(this.expanded=!1,this.maxIcon="mdi-arrow-expand"):(this.expanded=!0,this.maxIcon="mdi-arrow-collapse")},loadDefs(){if("WeekdayTimer"===this.$fhem.getEl(this.item,"Internals","TYPE")){let t=this.$fhem.getEl(this.item,"Internals","DEF")||"",e=t.split(" ");console.log(e)}else this.$fhem.log({lvl:1,msg:"Template is not a FHEM-WeekdayTimer.",meta:this.item})}}},r=a,l=i(1001),c=i(3453),d=i.n(c),m=i(3150),p=i(2371),v=i(7118),h=i(2102),u=i(1418),f=i(6428),_=i(7003),x=i(2877),g=i(9762),C=i(2691),O=(0,l.Z)(r,s,o,!1,null,null,null),b=O.exports;d()(O,{VBtn:m.Z,VCard:p.Z,VCardText:v.ZB,VCardTitle:v.EB,VCol:h.Z,VDivider:u.Z,VIcon:f.Z,VProgressLinear:_.Z,VRow:x.Z,VSpacer:g.Z,VSystemBar:C.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/617-legacy.1d5c53e3.js b/www/fhemapp/js/630-legacy.44e29b6a.js similarity index 83% rename from www/fhemapp/js/617-legacy.1d5c53e3.js rename to www/fhemapp/js/630-legacy.44e29b6a.js index b3004e07..1635b6d4 100644 --- a/www/fhemapp/js/617-legacy.1d5c53e3.js +++ b/www/fhemapp/js/630-legacy.44e29b6a.js @@ -1 +1 @@ -"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[617],{1152:function(t,i,e){e.d(i,{Z:function(){return b}});var n=e(3796),s=e(8932),l=e(4367),o=(e(9653),e(9826),e(1539),e(1038),e(8783),e(2222),e(3210),e(6699),e(2023),e(3242)),a=e(5795),r=e(4561),c=e(5907),h=e(5936),d=e(423),u=e(3712),m=e(2936),v=e(8085),f=e(5600),p=e(549),g=e(3325),x=e(1824),_=e(4589),C=e(1439),k=(0,g.Z)(c.Z,r.Z,h.Z,d.Z,u.Z,m.Z,v.Z),b=k.extend({name:"v-menu",directives:{ClickOutside:f.Z,Resize:p.Z},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?(0,_.kb)(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":(0,_.kb)(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return(0,_.kb)(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return(0,_.kb)(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),i=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return(0,_.kb)(Math.min(i,t))||"0"},calculatedTop:function(){var t=this.auto?(0,_.kb)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,i){if(t in this.tiles){var e=this.tiles[t];e.classList.add("v-list-item--highlighted");var n=this.$refs.content.scrollTop,s=this.$refs.content.clientHeight;n>e.offsetTop-8?(0,C.Z)(e.offsetTop-e.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):n+s0&&i.leftBtn?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-menu",{attrs:{bottom:"",right:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(n){var s=n.on,l=n.attrs;return[e("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",l,!1),s),[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(i.leftBtn)+" ")])],1)]}}],null,!0)},[e("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[e("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:i.leftMenuIdx,callback:function(e){t.$set(i,"leftMenuIdx",e)},expression:"level.leftMenuIdx"}},t._l(i.leftMenu,(function(i,n){return e("v-list-item",{key:n,on:{click:function(e){return t.sendMenuCmd(i.cmd)}}},[e("v-list-item-content",[e("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(i.name)+" ")])],1),i.active?e("v-list-item-icon",[e("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e(),i.leftBtn&&!i.slider?e("v-divider",{attrs:{vertical:""}}):t._e(),i.midBtn||i.slider?t._e():e("v-col",{attrs:{align:i.textAlign}},[e("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(i.text)+" ")])]),!i.text2||i.midBtn||i.slider?t._e():e("v-col",{attrs:{align:i.text2Align}},[e("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(i.text2)+" ")])]),0===i.midMenu.length&&i.midBtn?e("v-col",{staticClass:"headline",attrs:{align:"center"}},[e("v-btn",{attrs:{small:"",icon:"",disabled:i.midBtnDisabled,color:i.midBtnColor},on:{touchstart:function(e){return t.clickStart(i.idx,"mid","touch")},touchend:function(e){return t.clickEnd(i.idx,"mid","touch")},mousedown:function(e){return t.clickStart(i.idx,"mid","mouse")},mouseup:function(e){return t.clickEnd(i.idx,"mid","mouse")}}},[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(i.midBtn)+" ")])],1)],1):t._e(),i.midMenu.length>0&&i.midBtn?e("v-col",{staticClass:"headline",attrs:{align:"center"}},[e("v-menu",{attrs:{bottom:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(n){var s=n.on,l=n.attrs;return[i.text?e("v-btn",t._g(t._b({staticClass:"headline font-weight-bold",attrs:{block:"",plain:""}},"v-btn",l,!1),s),[t._v(" "+t._s(i.text)+" ")]):t._e(),i.text?t._e():e("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",l,!1),s),[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(i.midBtn)+" ")])],1)]}}],null,!0)},[e("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[e("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:i.midMenuIdx,callback:function(e){t.$set(i,"midMenuIdx",e)},expression:"level.midMenuIdx"}},t._l(i.midMenu,(function(i,n){return e("v-list-item",{key:n,on:{click:function(e){return t.sendMenuCmd(i.cmd)}}},[e("v-list-item-content",[e("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(i.name)+" ")])],1),i.active?e("v-list-item-icon",[e("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e(),i.slider?e("v-col",{attrs:{align:"center"}},[e("v-slider",{attrs:{min:i.sliderMin,max:i.sliderMax,label:i.text,"hide-details":"","thumb-label":"","thumb-size":"48",color:"success",step:i.sliderStep},on:{change:function(e){return t.setSlider(i.idx,i.sliderCurrent)}},scopedSlots:t._u([{key:"thumb-label",fn:function(n){var s=n.value;return[e("div",{staticClass:"text-h6"},[t._v(" "+t._s(t.sliderVal(i.idx,s))+" ")])]}}],null,!0),model:{value:i.sliderCurrent,callback:function(e){t.$set(i,"sliderCurrent",e)},expression:"level.sliderCurrent"}})],1):t._e(),i.rightBtn&&!i.slider?e("v-divider",{attrs:{vertical:""}}):t._e(),0===i.rightMenu.length&&i.rightBtn?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-btn",{attrs:{small:"",icon:"",disabled:i.rightBtnDisabled,color:i.rightBtnColor},on:{touchstart:function(e){return t.clickStart(i.idx,"right","touch")},touchend:function(e){return t.clickEnd(i.idx,"right","touch")},mousedown:function(e){return t.clickStart(i.idx,"right","mouse")},mouseup:function(e){return t.clickEnd(i.idx,"right","mouse")}}},[i.slider?e("div",[e("v-icon",[t._v(" "+t._s(i.rightBtn)+" ")])],1):t._e(),i.slider?t._e():e("div",[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(i.rightBtn)+" ")])],1)])],1):t._e(),i.rightMenu.length>0&&i.rightBtn?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(n){var s=n.on,l=n.attrs;return[e("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",l,!1),s),[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(i.rightBtn)+" ")])],1)]}}],null,!0)},[e("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[e("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:i.rightMenuIdx,callback:function(e){t.$set(i,"rightMenuIdx",e)},expression:"level.rightMenuIdx"}},t._l(i.rightMenu,(function(i,n){return e("v-list-item",{key:n,on:{click:function(e){return t.sendMenuCmd(i.cmd)}}},[e("v-list-item-content",[e("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(i.name)+" ")])],1),i.active?e("v-list-item-icon",[e("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e()],1)],1),e("v-divider")],1):t._e()])})),0):t._e(),e("v-system-bar",{attrs:{color:"secondary darken-1"}},[e("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),e("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),e("v-spacer"),e("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),e("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),e("v-spacer"),e("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),e("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1):t._e()},s=[],l=e(2032),o=e(8932),a=(e(4916),e(7601),e(5306),e(3123),e(4723),e(3210),e(9600),e(4553),e(6977),e(561),e(2222),e(1249),e(1830)),r={components:{jsonList:a.Z},props:{item:{type:Object,default:function(){return{name:"default"}}}},data:function(){return{name:"default",app:{options:{debugMode:!1}},main:[],lvlMax:1,lvlIcon:null,timer:!1,long:!1,pendingClick:0,touchFirst:!1}},watch:{item:{immediate:!1,deep:!0,handler:function(){this.setVals()}}},created:function(){this.app.options=this.$fhem.app.options,this.lvlMax=this.item.Options.setup.main.length,this.lvlIcon=this.lvlMax>1?this.item.Options.setup.expand?"mdi-arrow-expand":"mdi-swap-vertical":null,this.setLvl(this.$fhem.getEl(this.item,"Options","setup","expanded")&&this.$fhem.getEl(this.item,"Options","setup","expand")?-1:0),this.setVals()},methods:{sendCmd:function(t,i){var e=this;i?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){e.$fhem.request(t)}),1e3)):this.$fhem.request(t)},sendMenuCmd:function(t){var i=this.$fhem.getEl(this.item,"Internals","NAME");/%d/.test(t)&&(t=t.replace("%d",i)),this.sendCmd(t)},updateReading:function(t){var i=t.split(" ");4===i.length&&this.$fhem.getEl(this.item,"Readings",i[2],"Value")&&(this.item.Readings[i[2]].Value=i[3])},createCmd:function(t){var i="";if(t.match("set")||t.match("get")){var e=t.trim().split(" ");if(e[1]&&e[1].match("Connected")){var n=e[1].replace("Connected.","");e[1]=this.$fhem.getEl(this.item,"Connected",n,"Internals","NAME"),e[1]?i=e.join(" "):this.$fhem.log({lvl:1,msg:"Connected Device not found. "+this.item.Options})}else i=t}else i="set "+this.item.Name+" "+t;return i},clickStart:function(t,i,e){var n=this;this.long=!1,this.$fhem.log({lvl:5,msg:"ClickStart: type "+i+":"+e}),this.touchFirst&&"mouse"===e||("touch"===e&&(this.touchFirst=!0),this.timer=setInterval((function(){n.long=!0;var e=n.item.Options.setup.main[t][i+"Long"];if(n.$fhem.log({lvl:5,msg:"ClickEvent: Long ["+e+"]"}),e){var s=n.$fhem.handleVals(n.item,e);if(s[0]){var l=n.createCmd(s[0]);n.sendCmd(l),n.timer=clearInterval(n.timer)}}}),1e3))},clickEnd:function(t,i,e){if(this.$fhem.log({lvl:5,msg:"ClickEnd: type "+i+":"+e}),!this.touchFirst||"mouse"!==e){"touch"===e&&(this.touchFirst=!0),this.timer=clearInterval(this.timer);var n=this.item.Options.setup.main[t][i+(this.long?"LongRelease":"Click")];if(this.$fhem.log({lvl:5,msg:"ClickEvent: "+(this.long?"LongRelease":"Click")+" ["+n+"]"}),n){var s=this.$fhem.handleVals(this.item,n);if(s[0]){var l=this.item.Options.setup.expand?t:0;this.main[l].sliderPrevent=!1;var o=this.createCmd(s[0]),a=-1!=n.findIndex((function(t){return t.match("%i")}));!this.long&&a&&this.updateReading(o),this.sendCmd(o,a)}}}},sliderVal:function(t,i){var e=this.item.Options.setup.main[t].slider,n=i;if(e){var s=this.$fhem.handleVals(this.item,e),l=s[4]&&s[4].match(".")?1:0;n=i.toFixed(l)}return n},setSlider:function(t,i){var e=this.item.Options.setup.main[t].slider;if(e){var n=this.$fhem.handleVals(this.item,e);if(n[0]){var s=this.item.Options.setup.expand?t:0;this.main[s].sliderPrevent=!0;var l=this.createCmd(n[0]),o=n[4]&&n[4].match(".")?1:0;l=l.replace("%v",i.toFixed(o)),this.sendCmd(l)}}},checkMenu:function(t){var i=!1;if(t){var e,n=t.split(" ");n[0].match("set")&&n.splice(0,2),1===n.length&&n.splice(0,0,"state");var s=/\./.test(n[0])?n[0].split("."):["Readings",n[0],"Value"],l=(e=this.$fhem).getEl.apply(e,[this.item].concat((0,o.Z)(s)));l&&l===n[1]&&(i=!0)}return i},createMenu:function(t){var i=[];if(t&&t.length>0){var e,n=(0,l.Z)(t);try{for(n.s();!(e=n.n()).done;){var s=e.value,o=s.split(":");if(o.length>1){var a=this.createCmd(o[1].replace(/:/g,":")),r=this.checkMenu(a);i.push({name:o[0],cmd:a,active:r})}}}catch(c){n.e(c)}finally{n.f()}}return i},lvlBtn:function(){var t=0;this.item.Options.setup.expand?(t=this.main.length>1?0:-1,this.lvlIcon=-1===t?"mdi-arrow-collapse":"mdi-arrow-expand"):(t=this.main[0].idx+1,t>this.lvlMax-1&&(t=0)),this.setLvl(t),this.setVals()},setLvl:function(t){var i=-1!=t?t:0,e=-1!=t?t:this.lvlMax-1;this.main.splice(0);for(var n=i;n<=e;n++){var s={idx:n,show:!0,leftBtn:"",leftBtnDisabled:!1,leftBtnColor:"",leftMenu:[],leftMenuIdx:-1,text:"",textAlign:"",text2:"",text2Align:"",midBtn:"",midBtnDisabled:!1,midBtnColor:"",midMenu:[],midMenuIdx:-1,slider:!1,sliderCurrent:0,sliderPrevent:!1,sliderMin:0,sliderMax:100,sliderStep:1,rightBtn:"",rightBtnDisabled:!1,rightBtnColor:"",rightMenu:[],rightMenuIdx:-1};this.main.push(s)}},setVals:function(){for(var t in this.main){var i=this.main[t].idx,e=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].show),n=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].text),s=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].text2),l=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].slider),o=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].leftBtn),a=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].midBtn),r=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].rightBtn),c=this.createMenu(this.item.Options.setup.main[i].leftMenu),h=this.createMenu(this.item.Options.setup.main[i].midMenu),d=this.createMenu(this.item.Options.setup.main[i].rightMenu);this.main[t].show="false"!==e[0],this.main[t].text=n[0]||"",this.main[t].textAlign=n[1]||"center",this.main[t].text2=s[0]||"",this.main[t].text2Align=s[1]||"center",this.main[t].leftBtn=o[0]||"",this.main[t].midBtn=a[0]||"",this.main[t].rightBtn=r[0]||"",this.main[t].leftBtnDisabled=!!o[1],this.main[t].midBtnDisabled=!!a[1],this.main[t].rightBtnDisabled=!!r[1],this.main[t].leftBtnColor=o[2]||"",this.main[t].midBtnColor=a[2]||"",this.main[t].rightBtnColor=r[2]||"",this.main[t].leftMenu=c,this.main[t].leftMenuIdx=c.map((function(t){return t.active})).indexOf(!0),this.main[t].midMenu=h,this.main[t].midMenuIdx=h.map((function(t){return t.active})).indexOf(!0),this.main[t].rightMenu=d,this.main[t].rightMenuIdx=d.map((function(t){return t.active})).indexOf(!0),this.main[t].slider=!!l[0],this.main[t].sliderMin=l[2]||0,this.main[t].sliderMax=l[3]||100,this.main[t].sliderStep=l[4]||1,this.main[t].sliderPrevent?this.main[t].sliderCurrent===l[1]&&(this.main[t].sliderPrevent=!1,this.main[t].sliderCurrent=l[1]||0):this.main[t].sliderCurrent=l[1]||0}}}},c=r,h=e(1001),d=e(3453),u=e.n(d),m=e(3150),v=e(2371),f=e(7118),p=e(2102),g=e(1418),x=e(6428),_=e(6816),C=e(7620),k=e(1960),b=e(3249),I=e(459),M=e(1152),O=e(7003),T=e(2877),B=e(7611),y=e(9762),$=e(2691),A=(0,h.Z)(c,n,s,!1,null,null,null),Z=A.exports;u()(A,{VBtn:m.Z,VCard:v.Z,VCardText:f.ZB,VCardTitle:f.EB,VCol:p.Z,VDivider:g.Z,VIcon:x.Z,VList:_.Z,VListItem:C.Z,VListItemContent:k.km,VListItemGroup:b.Z,VListItemIcon:I.Z,VListItemTitle:k.V9,VMenu:M.Z,VProgressLinear:O.Z,VRow:T.Z,VSlider:B.Z,VSpacer:y.Z,VSystemBar:$.Z})}}]); \ No newline at end of file +"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[630],{1152:function(t,i,e){e.d(i,{Z:function(){return b}});var n=e(3796),s=e(8932),l=e(4367),o=(e(9653),e(9826),e(1539),e(1038),e(8783),e(2222),e(3210),e(6699),e(2023),e(3242)),a=e(5795),r=e(4561),c=e(5907),h=e(5936),d=e(423),u=e(3712),m=e(2936),v=e(8085),f=e(5600),p=e(549),g=e(3325),x=e(1824),_=e(4589),C=e(1439),k=(0,g.Z)(c.Z,r.Z,h.Z,d.Z,u.Z,m.Z,v.Z),b=k.extend({name:"v-menu",directives:{ClickOutside:f.Z,Resize:p.Z},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?(0,_.kb)(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":(0,_.kb)(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return(0,_.kb)(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return(0,_.kb)(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),i=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return(0,_.kb)(Math.min(i,t))||"0"},calculatedTop:function(){var t=this.auto?(0,_.kb)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,i){if(t in this.tiles){var e=this.tiles[t];e.classList.add("v-list-item--highlighted");var n=this.$refs.content.scrollTop,s=this.$refs.content.clientHeight;n>e.offsetTop-8?(0,C.Z)(e.offsetTop-e.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):n+s0&&i.leftBtn?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-menu",{attrs:{bottom:"",right:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(n){var s=n.on,l=n.attrs;return[e("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",l,!1),s),[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(i.leftBtn)+" ")])],1)]}}],null,!0)},[e("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[e("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:i.leftMenuIdx,callback:function(e){t.$set(i,"leftMenuIdx",e)},expression:"level.leftMenuIdx"}},t._l(i.leftMenu,(function(i,n){return e("v-list-item",{key:n,on:{click:function(e){return t.sendMenuCmd(i.cmd)}}},[e("v-list-item-content",[e("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(i.name)+" ")])],1),i.active?e("v-list-item-icon",[e("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e(),i.leftBtn&&!i.slider?e("v-divider",{attrs:{vertical:""}}):t._e(),i.midBtn||i.slider?t._e():e("v-col",{attrs:{align:i.textAlign}},[e("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(i.text)+" ")])]),!i.text2||i.midBtn||i.slider?t._e():e("v-col",{attrs:{align:i.text2Align}},[e("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(i.text2)+" ")])]),0===i.midMenu.length&&i.midBtn?e("v-col",{staticClass:"headline",attrs:{align:"center"}},[e("v-btn",{attrs:{small:"",icon:"",disabled:i.midBtnDisabled,color:i.midBtnColor},on:{touchstart:function(e){return t.clickStart(i.idx,"mid","touch")},touchend:function(e){return t.clickEnd(i.idx,"mid","touch")},mousedown:function(e){return t.clickStart(i.idx,"mid","mouse")},mouseup:function(e){return t.clickEnd(i.idx,"mid","mouse")}}},[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(i.midBtn)+" ")])],1)],1):t._e(),i.midMenu.length>0&&i.midBtn?e("v-col",{staticClass:"headline",attrs:{align:"center"}},[e("v-menu",{attrs:{bottom:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(n){var s=n.on,l=n.attrs;return[i.text?e("v-btn",t._g(t._b({staticClass:"headline font-weight-bold",attrs:{block:"",plain:""}},"v-btn",l,!1),s),[t._v(" "+t._s(i.text)+" ")]):t._e(),i.text?t._e():e("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",l,!1),s),[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(i.midBtn)+" ")])],1)]}}],null,!0)},[e("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[e("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:i.midMenuIdx,callback:function(e){t.$set(i,"midMenuIdx",e)},expression:"level.midMenuIdx"}},t._l(i.midMenu,(function(i,n){return e("v-list-item",{key:n,on:{click:function(e){return t.sendMenuCmd(i.cmd)}}},[e("v-list-item-content",[e("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(i.name)+" ")])],1),i.active?e("v-list-item-icon",[e("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e(),i.slider?e("v-col",{attrs:{align:"center"}},[e("v-slider",{attrs:{min:i.sliderMin,max:i.sliderMax,label:i.text,"hide-details":"","thumb-label":"","thumb-size":"48",color:"success",step:i.sliderStep},on:{change:function(e){return t.setSlider(i.idx,i.sliderCurrent)}},scopedSlots:t._u([{key:"thumb-label",fn:function(n){var s=n.value;return[e("div",{staticClass:"text-h6"},[t._v(" "+t._s(t.sliderVal(i.idx,s))+" ")])]}}],null,!0),model:{value:i.sliderCurrent,callback:function(e){t.$set(i,"sliderCurrent",e)},expression:"level.sliderCurrent"}})],1):t._e(),i.rightBtn&&!i.slider?e("v-divider",{attrs:{vertical:""}}):t._e(),0===i.rightMenu.length&&i.rightBtn?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-btn",{attrs:{small:"",icon:"",disabled:i.rightBtnDisabled,color:i.rightBtnColor},on:{touchstart:function(e){return t.clickStart(i.idx,"right","touch")},touchend:function(e){return t.clickEnd(i.idx,"right","touch")},mousedown:function(e){return t.clickStart(i.idx,"right","mouse")},mouseup:function(e){return t.clickEnd(i.idx,"right","mouse")}}},[i.slider?e("div",[e("v-icon",[t._v(" "+t._s(i.rightBtn)+" ")])],1):t._e(),i.slider?t._e():e("div",[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(i.rightBtn)+" ")])],1)])],1):t._e(),i.rightMenu.length>0&&i.rightBtn?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(n){var s=n.on,l=n.attrs;return[e("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",l,!1),s),[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(i.rightBtn)+" ")])],1)]}}],null,!0)},[e("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[e("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:i.rightMenuIdx,callback:function(e){t.$set(i,"rightMenuIdx",e)},expression:"level.rightMenuIdx"}},t._l(i.rightMenu,(function(i,n){return e("v-list-item",{key:n,on:{click:function(e){return t.sendMenuCmd(i.cmd)}}},[e("v-list-item-content",[e("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(i.name)+" ")])],1),i.active?e("v-list-item-icon",[e("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e()],1)],1),e("v-divider")],1):t._e()])})),0):t._e(),e("v-system-bar",{attrs:{color:"secondary darken-1"}},[e("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),e("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),e("v-spacer"),e("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),e("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),e("v-spacer"),e("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),e("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1):t._e()},s=[],l=e(2032),o=e(8932),a=(e(4916),e(7601),e(5306),e(3123),e(4723),e(3210),e(9600),e(4553),e(6977),e(561),e(2222),e(1249),e(1830)),r={components:{jsonList:a.Z},props:{item:{type:Object,default:function(){return{name:"default"}}}},data:function(){return{name:"default",app:{options:{debugMode:!1}},main:[],lvlMax:1,lvlIcon:null,timer:!1,long:!1,pendingClick:0,touchFirst:!1}},watch:{item:{immediate:!1,deep:!0,handler:function(){this.setVals()}}},created:function(){this.app.options=this.$fhem.app.options,this.lvlMax=this.item.Options.setup.main.length,this.lvlIcon=this.lvlMax>1?this.item.Options.setup.expand?"mdi-arrow-expand":"mdi-swap-vertical":null,this.setLvl(this.$fhem.getEl(this.item,"Options","setup","expanded")&&this.$fhem.getEl(this.item,"Options","setup","expand")?-1:0),this.setVals()},methods:{sendCmd:function(t,i){var e=this;i?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){e.$fhem.request(t)}),1e3)):this.$fhem.request(t)},sendMenuCmd:function(t){var i=this.$fhem.getEl(this.item,"Internals","NAME");/%d/.test(t)&&(t=t.replace("%d",i)),this.sendCmd(t)},updateReading:function(t){var i=t.split(" ");4===i.length&&this.$fhem.getEl(this.item,"Readings",i[2],"Value")&&(this.item.Readings[i[2]].Value=i[3])},createCmd:function(t){var i="";if(t.match("set")||t.match("get")){var e=t.trim().split(" ");if(e[1]&&e[1].match("Connected")){var n=e[1].replace("Connected.","");e[1]=this.$fhem.getEl(this.item,"Connected",n,"Internals","NAME"),e[1]?i=e.join(" "):this.$fhem.log({lvl:1,msg:"Connected Device not found. "+this.item.Options})}else i=t}else i="set "+this.item.Name+" "+t;return i},clickStart:function(t,i,e){var n=this;this.long=!1,this.$fhem.log({lvl:5,msg:"ClickStart: type "+i+":"+e}),this.touchFirst&&"mouse"===e||("touch"===e&&(this.touchFirst=!0),this.timer=setInterval((function(){n.long=!0;var e=n.item.Options.setup.main[t][i+"Long"];if(n.$fhem.log({lvl:5,msg:"ClickEvent: Long ["+e+"]"}),e){var s=n.$fhem.handleVals(n.item,e);if(s[0]){var l=n.createCmd(s[0]);n.sendCmd(l),n.timer=clearInterval(n.timer)}}}),1e3))},clickEnd:function(t,i,e){if(this.$fhem.log({lvl:5,msg:"ClickEnd: type "+i+":"+e}),!this.touchFirst||"mouse"!==e){"touch"===e&&(this.touchFirst=!0),this.timer=clearInterval(this.timer);var n=this.item.Options.setup.main[t][i+(this.long?"LongRelease":"Click")];if(this.$fhem.log({lvl:5,msg:"ClickEvent: "+(this.long?"LongRelease":"Click")+" ["+n+"]"}),n){var s=this.$fhem.handleVals(this.item,n);if(s[0]){var l=this.item.Options.setup.expand?t:0;this.main[l].sliderPrevent=!1;var o=this.createCmd(s[0]),a=-1!=n.findIndex((function(t){return t.match("%i")}));!this.long&&a&&this.updateReading(o),this.sendCmd(o,a)}}}},sliderVal:function(t,i){var e=this.item.Options.setup.main[t].slider,n=i;if(e){var s=this.$fhem.handleVals(this.item,e),l=s[4]&&s[4].match(".")?1:0;n=i.toFixed(l)}return n},setSlider:function(t,i){var e=this.item.Options.setup.main[t].slider;if(e){var n=this.$fhem.handleVals(this.item,e);if(n[0]){var s=this.item.Options.setup.expand?t:0;this.main[s].sliderPrevent=!0;var l=this.createCmd(n[0]),o=n[4]&&n[4].match("\\.")?1:0;l=l.replace("%v",i.toFixed(o)),this.sendCmd(l)}}},checkMenu:function(t){var i=!1;if(t){var e,n=t.split(" ");n[0].match("set")&&n.splice(0,2),1===n.length&&n.splice(0,0,"state");var s=/\./.test(n[0])?n[0].split("."):["Readings",n[0],"Value"],l=(e=this.$fhem).getEl.apply(e,[this.item].concat((0,o.Z)(s)));l&&l===n[1]&&(i=!0)}return i},createMenu:function(t){var i=[];if(t&&t.length>0){var e,n=(0,l.Z)(t);try{for(n.s();!(e=n.n()).done;){var s=e.value,o=s.split(":");if(o.length>1){var a=this.createCmd(o[1].replace(/:/g,":")),r=this.checkMenu(a);i.push({name:o[0],cmd:a,active:r})}}}catch(c){n.e(c)}finally{n.f()}}return i},lvlBtn:function(){var t=0;this.item.Options.setup.expand?(t=this.main.length>1?0:-1,this.lvlIcon=-1===t?"mdi-arrow-collapse":"mdi-arrow-expand"):(t=this.main[0].idx+1,t>this.lvlMax-1&&(t=0)),this.setLvl(t),this.setVals()},setLvl:function(t){var i=-1!=t?t:0,e=-1!=t?t:this.lvlMax-1;this.main.splice(0);for(var n=i;n<=e;n++){var s={idx:n,show:!0,leftBtn:"",leftBtnDisabled:!1,leftBtnColor:"",leftMenu:[],leftMenuIdx:-1,text:"",textAlign:"",text2:"",text2Align:"",midBtn:"",midBtnDisabled:!1,midBtnColor:"",midMenu:[],midMenuIdx:-1,slider:!1,sliderCurrent:0,sliderPrevent:!1,sliderMin:0,sliderMax:100,sliderStep:1,rightBtn:"",rightBtnDisabled:!1,rightBtnColor:"",rightMenu:[],rightMenuIdx:-1};this.main.push(s)}},setVals:function(){for(var t in this.main){var i=this.main[t].idx,e=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].show),n=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].text),s=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].text2),l=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].slider),o=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].leftBtn),a=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].midBtn),r=this.$fhem.handleVals(this.item,this.item.Options.setup.main[i].rightBtn),c=this.createMenu(this.item.Options.setup.main[i].leftMenu),h=this.createMenu(this.item.Options.setup.main[i].midMenu),d=this.createMenu(this.item.Options.setup.main[i].rightMenu);this.main[t].show="false"!==e[0],this.main[t].text=n[0]||"",this.main[t].textAlign=n[1]||"center",this.main[t].text2=s[0]||"",this.main[t].text2Align=s[1]||"center",this.main[t].leftBtn=o[0]||"",this.main[t].midBtn=a[0]||"",this.main[t].rightBtn=r[0]||"",this.main[t].leftBtnDisabled=!!o[1],this.main[t].midBtnDisabled=!!a[1],this.main[t].rightBtnDisabled=!!r[1],this.main[t].leftBtnColor=o[2]||"",this.main[t].midBtnColor=a[2]||"",this.main[t].rightBtnColor=r[2]||"",this.main[t].leftMenu=c,this.main[t].leftMenuIdx=c.map((function(t){return t.active})).indexOf(!0),this.main[t].midMenu=h,this.main[t].midMenuIdx=h.map((function(t){return t.active})).indexOf(!0),this.main[t].rightMenu=d,this.main[t].rightMenuIdx=d.map((function(t){return t.active})).indexOf(!0),this.main[t].slider=!!l[0],this.main[t].sliderMin=l[2]||0,this.main[t].sliderMax=l[3]||100,this.main[t].sliderStep=l[4]||1,this.main[t].sliderPrevent?this.main[t].sliderCurrent===l[1]&&(this.main[t].sliderPrevent=!1,this.main[t].sliderCurrent=l[1]||0):this.main[t].sliderCurrent=l[1]||0}}}},c=r,h=e(1001),d=e(3453),u=e.n(d),m=e(3150),v=e(2371),f=e(7118),p=e(2102),g=e(1418),x=e(6428),_=e(6816),C=e(7620),k=e(1960),b=e(7874),I=e(459),M=e(1152),O=e(7003),T=e(2877),B=e(7611),y=e(9762),$=e(2691),A=(0,h.Z)(c,n,s,!1,null,null,null),Z=A.exports;u()(A,{VBtn:m.Z,VCard:v.Z,VCardText:f.ZB,VCardTitle:f.EB,VCol:p.Z,VDivider:g.Z,VIcon:x.Z,VList:_.Z,VListItem:C.Z,VListItemContent:k.km,VListItemGroup:b.Z,VListItemIcon:I.Z,VListItemTitle:k.V9,VMenu:M.Z,VProgressLinear:O.Z,VRow:T.Z,VSlider:B.Z,VSpacer:y.Z,VSystemBar:$.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/617.e31d04c8.js b/www/fhemapp/js/630.98a6a9da.js similarity index 83% rename from www/fhemapp/js/617.e31d04c8.js rename to www/fhemapp/js/630.98a6a9da.js index d34926af..0315876c 100644 --- a/www/fhemapp/js/617.e31d04c8.js +++ b/www/fhemapp/js/630.98a6a9da.js @@ -1 +1 @@ -"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[617],{1152:function(t,e,i){i.d(e,{Z:function(){return _}});var s=i(3242),n=i(5795),l=i(4561),o=i(5907),a=i(5936),r=i(423),c=i(3712),h=i(2936),d=i(8085),m=i(5600),u=i(549),v=i(3325),f=i(1824),p=i(4589),g=i(1439);const x=(0,v.Z)(o.Z,l.Z,a.Z,r.Z,c.Z,h.Z,d.Z);var _=x.extend({name:"v-menu",directives:{ClickOutside:m.Z,Resize:u.Z},provide(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile(){return this.tiles[this.listIndex]},calculatedLeft(){const t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?(0,p.kb)(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight(){const t=this.auto?"200px":(0,p.kb)(this.maxHeight);return t||"0"},calculatedMaxWidth(){return(0,p.kb)(this.maxWidth)||"0"},calculatedMinWidth(){if(this.minWidth)return(0,p.kb)(this.minWidth)||"0";const t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return(0,p.kb)(Math.min(e,t))||"0"},calculatedTop(){const t=this.auto?(0,p.kb)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles(){return Boolean(this.tiles.find((t=>t.tabIndex>-1)))},styles(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive(t){t||(this.listIndex=-1)},isContentActive(t){this.hasJustFocused=t},listIndex(t,e){if(t in this.tiles){const e=this.tiles[t];e.classList.add("v-list-item--highlighted");const i=this.$refs.content.scrollTop,s=this.$refs.content.clientHeight;i>e.offsetTop-8?(0,g.Z)(e.offsetTop-e.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):i+s{this.startTransition().then((()=>{this.$refs.content&&(this.calculatedTopAuto=this.calcTopAuto(),this.auto&&(this.$refs.content.scrollTop=this.calcScrollPosition()))}))}))},calcScrollPosition(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active"),i=t.scrollHeight-t.offsetHeight;return e?Math.min(i,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);const i=e.offsetTop-this.calcScrollPosition(),s=t.querySelector(".v-list-item").offsetTop;return this.computedTop-i-s-1},changeListIndex(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==p.Do.tab){if(t.keyCode===p.Do.down)this.nextTile();else if(t.keyCode===p.Do.up)this.prevTile();else if(t.keyCode===p.Do.end)this.lastTile();else if(t.keyCode===p.Do.home)this.firstTile();else{if(t.keyCode!==p.Do.enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional(t){const e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes(){const t=n.Z.options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?{...t,"aria-activedescendant":this.activeTile.id}:t},genActivatorListeners(){const t=a.Z.options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition(){const t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives(){const t=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&t.push({name:"click-outside",value:{handler:()=>{this.isActive=!1},closeConditional:this.closeConditional,include:()=>[this.$el,...this.getOpenDependentElements()]}}),t},genContent(){const t={attrs:{...this.getScopeIdAttrs(),role:"role"in this.$attrs?this.$attrs.role:"menu"},staticClass:"v-menu__content",class:{...this.rootThemeClasses,...this.roundedClasses,"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive,[this.contentClass.trim()]:!0},style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:t=>{const e=t.target;e.getAttribute("disabled")||this.closeOnContentClick&&(this.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(t.on=t.on||{},t.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(t.on=t.on||{},t.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(t.on=t.on||{},t.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",t,this.getContentSlot())},getTiles(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item, .v-divider, .v-subheader")))},mouseEnterHandler(){this.runDelay("open",(()=>{this.hasJustFocused||(this.hasJustFocused=!0)}))},mouseLeaveHandler(t){this.runDelay("close",(()=>{var e;null!=(e=this.$refs.content)&&e.contains(t.relatedTarget)||requestAnimationFrame((()=>{this.isActive=!1,this.callDeactivate()}))}))},nextTile(){const t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile(){const t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},lastTile(){const t=this.tiles[this.tiles.length-1];t&&(this.listIndex=this.tiles.length-1,-1===t.tabIndex&&this.prevTile())},firstTile(){const t=this.tiles[0];t&&(this.listIndex=0,-1===t.tabIndex&&this.nextTile())},onKeyDown(t){if(t.keyCode===p.Do.esc){setTimeout((()=>{this.isActive=!1}));const t=this.getActivator();this.$nextTick((()=>t&&t.focus()))}else!this.isActive&&[p.Do.up,p.Do.down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((()=>this.changeListIndex(t)))},onResize(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render(t){const e={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",e,[!this.activator&&this.genActivator(),this.showLazyContent((()=>[this.$createElement(s.Z,{props:{root:!0,light:this.light,dark:this.dark}},[this.genTransition()])]))])}})},6490:function(t,e,i){i.r(e),i.d(e,{default:function(){return $}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.Options.show?i("v-col",{class:t.item.Options.setup.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.item.Options.status.level,color:t.item.Options.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.name)+" "),i("v-spacer"),t.lvlIcon&&t.item.Options.status.isActive?i("v-btn",{attrs:{small:"",icon:""},on:{click:function(e){return t.lvlBtn()}}},[i("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.lvlIcon)+" ")])],1):t._e(),t.app.options.debugMode?i("jsonList",{attrs:{item:t.item}}):t._e()],1),i("v-divider"),t.item.Options.status.isActive?t._e():i("div",[i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.item.Options.status.error)+" ")])])],1)],1),i("v-divider")],1),t.item.Options.status.isActive?i("div",t._l(t.main,(function(e){return i("div",{key:e.idx},[e.show?i("div",[t._v(" "+t._s(e.order)+" "),i("v-card-text",[i("v-row",{attrs:{align:"center"}},[0==e.leftMenu.length&&e.leftBtn?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-btn",{attrs:{small:"",icon:"",color:e.leftBtnColor,disabled:e.leftBtnDisabled},on:{touchstart:function(i){return t.clickStart(e.idx,"left","touch")},touchend:function(i){return t.clickEnd(e.idx,"left","touch")},mousedown:function(i){return t.clickStart(e.idx,"left","mouse")},mouseup:function(i){return t.clickEnd(e.idx,"left","mouse")}}},[e.slider?i("div",[i("v-icon",[t._v(" "+t._s(e.leftBtn)+" ")])],1):t._e(),e.slider?t._e():i("div",[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.leftBtn)+" ")])],1)])],1):t._e(),e.leftMenu.length>0&&e.leftBtn?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",right:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,l=s.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",l,!1),n),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.leftBtn)+" ")])],1)]}}],null,!0)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:e.leftMenuIdx,callback:function(i){t.$set(e,"leftMenuIdx",i)},expression:"level.leftMenuIdx"}},t._l(e.leftMenu,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.sendMenuCmd(e.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(e.name)+" ")])],1),e.active?i("v-list-item-icon",[i("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e(),e.leftBtn&&!e.slider?i("v-divider",{attrs:{vertical:""}}):t._e(),e.midBtn||e.slider?t._e():i("v-col",{attrs:{align:e.textAlign}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(e.text)+" ")])]),!e.text2||e.midBtn||e.slider?t._e():i("v-col",{attrs:{align:e.text2Align}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(e.text2)+" ")])]),0===e.midMenu.length&&e.midBtn?i("v-col",{staticClass:"headline",attrs:{align:"center"}},[i("v-btn",{attrs:{small:"",icon:"",disabled:e.midBtnDisabled,color:e.midBtnColor},on:{touchstart:function(i){return t.clickStart(e.idx,"mid","touch")},touchend:function(i){return t.clickEnd(e.idx,"mid","touch")},mousedown:function(i){return t.clickStart(e.idx,"mid","mouse")},mouseup:function(i){return t.clickEnd(e.idx,"mid","mouse")}}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.midBtn)+" ")])],1)],1):t._e(),e.midMenu.length>0&&e.midBtn?i("v-col",{staticClass:"headline",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,l=s.attrs;return[e.text?i("v-btn",t._g(t._b({staticClass:"headline font-weight-bold",attrs:{block:"",plain:""}},"v-btn",l,!1),n),[t._v(" "+t._s(e.text)+" ")]):t._e(),e.text?t._e():i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",l,!1),n),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.midBtn)+" ")])],1)]}}],null,!0)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:e.midMenuIdx,callback:function(i){t.$set(e,"midMenuIdx",i)},expression:"level.midMenuIdx"}},t._l(e.midMenu,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.sendMenuCmd(e.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(e.name)+" ")])],1),e.active?i("v-list-item-icon",[i("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e(),e.slider?i("v-col",{attrs:{align:"center"}},[i("v-slider",{attrs:{min:e.sliderMin,max:e.sliderMax,label:e.text,"hide-details":"","thumb-label":"","thumb-size":"48",color:"success",step:e.sliderStep},on:{change:function(i){return t.setSlider(e.idx,e.sliderCurrent)}},scopedSlots:t._u([{key:"thumb-label",fn:function(s){var n=s.value;return[i("div",{staticClass:"text-h6"},[t._v(" "+t._s(t.sliderVal(e.idx,n))+" ")])]}}],null,!0),model:{value:e.sliderCurrent,callback:function(i){t.$set(e,"sliderCurrent",i)},expression:"level.sliderCurrent"}})],1):t._e(),e.rightBtn&&!e.slider?i("v-divider",{attrs:{vertical:""}}):t._e(),0===e.rightMenu.length&&e.rightBtn?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-btn",{attrs:{small:"",icon:"",disabled:e.rightBtnDisabled,color:e.rightBtnColor},on:{touchstart:function(i){return t.clickStart(e.idx,"right","touch")},touchend:function(i){return t.clickEnd(e.idx,"right","touch")},mousedown:function(i){return t.clickStart(e.idx,"right","mouse")},mouseup:function(i){return t.clickEnd(e.idx,"right","mouse")}}},[e.slider?i("div",[i("v-icon",[t._v(" "+t._s(e.rightBtn)+" ")])],1):t._e(),e.slider?t._e():i("div",[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.rightBtn)+" ")])],1)])],1):t._e(),e.rightMenu.length>0&&e.rightBtn?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,l=s.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",l,!1),n),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.rightBtn)+" ")])],1)]}}],null,!0)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:e.rightMenuIdx,callback:function(i){t.$set(e,"rightMenuIdx",i)},expression:"level.rightMenuIdx"}},t._l(e.rightMenu,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.sendMenuCmd(e.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(e.name)+" ")])],1),e.active?i("v-list-item-icon",[i("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e()],1)],1),i("v-divider")],1):t._e()])})),0):t._e(),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),i("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1):t._e()},n=[],l=i(1830),o={components:{jsonList:l.Z},props:{item:{type:Object,default:()=>({name:"default"})}},data:()=>({name:"default",app:{options:{debugMode:!1}},main:[],lvlMax:1,lvlIcon:null,timer:!1,long:!1,pendingClick:0,touchFirst:!1}),watch:{item:{immediate:!1,deep:!0,handler(){this.setVals()}}},created(){this.app.options=this.$fhem.app.options,this.lvlMax=this.item.Options.setup.main.length,this.lvlIcon=this.lvlMax>1?this.item.Options.setup.expand?"mdi-arrow-expand":"mdi-swap-vertical":null,this.setLvl(this.$fhem.getEl(this.item,"Options","setup","expanded")&&this.$fhem.getEl(this.item,"Options","setup","expand")?-1:0),this.setVals()},methods:{sendCmd(t,e){e?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((()=>{this.$fhem.request(t)}),1e3)):this.$fhem.request(t)},sendMenuCmd(t){let e=this.$fhem.getEl(this.item,"Internals","NAME");/%d/.test(t)&&(t=t.replace("%d",e)),this.sendCmd(t)},updateReading(t){let e=t.split(" ");4===e.length&&this.$fhem.getEl(this.item,"Readings",e[2],"Value")&&(this.item.Readings[e[2]].Value=e[3])},createCmd(t){let e="";if(t.match("set")||t.match("get")){let i=t.trim().split(" ");if(i[1]&&i[1].match("Connected")){let t=i[1].replace("Connected.","");i[1]=this.$fhem.getEl(this.item,"Connected",t,"Internals","NAME"),i[1]?e=i.join(" "):this.$fhem.log({lvl:1,msg:"Connected Device not found. "+this.item.Options})}else e=t}else e="set "+this.item.Name+" "+t;return e},clickStart(t,e,i){this.long=!1,this.$fhem.log({lvl:5,msg:"ClickStart: type "+e+":"+i}),this.touchFirst&&"mouse"===i||("touch"===i&&(this.touchFirst=!0),this.timer=setInterval((()=>{this.long=!0;let i=this.item.Options.setup.main[t][e+"Long"];if(this.$fhem.log({lvl:5,msg:"ClickEvent: Long ["+i+"]"}),i){let t=this.$fhem.handleVals(this.item,i);if(t[0]){let e=this.createCmd(t[0]);this.sendCmd(e),this.timer=clearInterval(this.timer)}}}),1e3))},clickEnd(t,e,i){if(this.$fhem.log({lvl:5,msg:"ClickEnd: type "+e+":"+i}),this.touchFirst&&"mouse"===i)return;"touch"===i&&(this.touchFirst=!0),this.timer=clearInterval(this.timer);let s=this.item.Options.setup.main[t][e+(this.long?"LongRelease":"Click")];if(this.$fhem.log({lvl:5,msg:"ClickEvent: "+(this.long?"LongRelease":"Click")+" ["+s+"]"}),s){let e=this.$fhem.handleVals(this.item,s);if(e[0]){let i=this.item.Options.setup.expand?t:0;this.main[i].sliderPrevent=!1;let n=this.createCmd(e[0]),l=-1!=s.findIndex((t=>t.match("%i")));!this.long&&l&&this.updateReading(n),this.sendCmd(n,l)}}},sliderVal(t,e){let i=this.item.Options.setup.main[t].slider,s=e;if(i){let t=this.$fhem.handleVals(this.item,i),n=t[4]&&t[4].match(".")?1:0;s=e.toFixed(n)}return s},setSlider(t,e){let i=this.item.Options.setup.main[t].slider;if(i){let s=this.$fhem.handleVals(this.item,i);if(s[0]){let i=this.item.Options.setup.expand?t:0;this.main[i].sliderPrevent=!0;let n=this.createCmd(s[0]),l=s[4]&&s[4].match(".")?1:0;n=n.replace("%v",e.toFixed(l)),this.sendCmd(n)}}},checkMenu(t){let e=!1;if(t){let i=t.split(" ");i[0].match("set")&&i.splice(0,2),1===i.length&&i.splice(0,0,"state");let s=/\./.test(i[0])?i[0].split("."):["Readings",i[0],"Value"],n=this.$fhem.getEl(this.item,...s);n&&n===i[1]&&(e=!0)}return e},createMenu(t){let e=[];if(t&&t.length>0)for(let i of t){let t=i.split(":");if(t.length>1){let i=this.createCmd(t[1].replace(/:/g,":")),s=this.checkMenu(i);e.push({name:t[0],cmd:i,active:s})}}return e},lvlBtn(){let t=0;this.item.Options.setup.expand?(t=this.main.length>1?0:-1,this.lvlIcon=-1===t?"mdi-arrow-collapse":"mdi-arrow-expand"):(t=this.main[0].idx+1,t>this.lvlMax-1&&(t=0)),this.setLvl(t),this.setVals()},setLvl(t){let e=-1!=t?t:0,i=-1!=t?t:this.lvlMax-1;this.main.splice(0);for(let s=e;s<=i;s++){let t={idx:s,show:!0,leftBtn:"",leftBtnDisabled:!1,leftBtnColor:"",leftMenu:[],leftMenuIdx:-1,text:"",textAlign:"",text2:"",text2Align:"",midBtn:"",midBtnDisabled:!1,midBtnColor:"",midMenu:[],midMenuIdx:-1,slider:!1,sliderCurrent:0,sliderPrevent:!1,sliderMin:0,sliderMax:100,sliderStep:1,rightBtn:"",rightBtnDisabled:!1,rightBtnColor:"",rightMenu:[],rightMenuIdx:-1};this.main.push(t)}},setVals(){for(const t in this.main){let e=this.main[t].idx,i=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].show),s=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].text),n=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].text2),l=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].slider),o=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].leftBtn),a=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].midBtn),r=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].rightBtn),c=this.createMenu(this.item.Options.setup.main[e].leftMenu),h=this.createMenu(this.item.Options.setup.main[e].midMenu),d=this.createMenu(this.item.Options.setup.main[e].rightMenu);this.main[t].show="false"!==i[0],this.main[t].text=s[0]||"",this.main[t].textAlign=s[1]||"center",this.main[t].text2=n[0]||"",this.main[t].text2Align=n[1]||"center",this.main[t].leftBtn=o[0]||"",this.main[t].midBtn=a[0]||"",this.main[t].rightBtn=r[0]||"",this.main[t].leftBtnDisabled=!!o[1],this.main[t].midBtnDisabled=!!a[1],this.main[t].rightBtnDisabled=!!r[1],this.main[t].leftBtnColor=o[2]||"",this.main[t].midBtnColor=a[2]||"",this.main[t].rightBtnColor=r[2]||"",this.main[t].leftMenu=c,this.main[t].leftMenuIdx=c.map((t=>t.active)).indexOf(!0),this.main[t].midMenu=h,this.main[t].midMenuIdx=h.map((t=>t.active)).indexOf(!0),this.main[t].rightMenu=d,this.main[t].rightMenuIdx=d.map((t=>t.active)).indexOf(!0),this.main[t].slider=!!l[0],this.main[t].sliderMin=l[2]||0,this.main[t].sliderMax=l[3]||100,this.main[t].sliderStep=l[4]||1,this.main[t].sliderPrevent?this.main[t].sliderCurrent===l[1]&&(this.main[t].sliderPrevent=!1,this.main[t].sliderCurrent=l[1]||0):this.main[t].sliderCurrent=l[1]||0}}}},a=o,r=i(1001),c=i(3453),h=i.n(c),d=i(3150),m=i(2371),u=i(7118),v=i(2102),f=i(1418),p=i(6428),g=i(6816),x=i(7620),_=i(1960),C=i(3249),k=i(459),b=i(1152),I=i(7003),M=i(2877),O=i(7611),T=i(9762),B=i(2691),y=(0,r.Z)(a,s,n,!1,null,null,null),$=y.exports;h()(y,{VBtn:d.Z,VCard:m.Z,VCardText:u.ZB,VCardTitle:u.EB,VCol:v.Z,VDivider:f.Z,VIcon:p.Z,VList:g.Z,VListItem:x.Z,VListItemContent:_.km,VListItemGroup:C.Z,VListItemIcon:k.Z,VListItemTitle:_.V9,VMenu:b.Z,VProgressLinear:I.Z,VRow:M.Z,VSlider:O.Z,VSpacer:T.Z,VSystemBar:B.Z})}}]); \ No newline at end of file +"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[630],{1152:function(t,e,i){i.d(e,{Z:function(){return _}});var s=i(3242),n=i(5795),l=i(4561),o=i(5907),a=i(5936),r=i(423),c=i(3712),h=i(2936),d=i(8085),m=i(5600),u=i(549),v=i(3325),f=i(1824),p=i(4589),g=i(1439);const x=(0,v.Z)(o.Z,l.Z,a.Z,r.Z,c.Z,h.Z,d.Z);var _=x.extend({name:"v-menu",directives:{ClickOutside:m.Z,Resize:u.Z},provide(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile(){return this.tiles[this.listIndex]},calculatedLeft(){const t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?(0,p.kb)(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight(){const t=this.auto?"200px":(0,p.kb)(this.maxHeight);return t||"0"},calculatedMaxWidth(){return(0,p.kb)(this.maxWidth)||"0"},calculatedMinWidth(){if(this.minWidth)return(0,p.kb)(this.minWidth)||"0";const t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return(0,p.kb)(Math.min(e,t))||"0"},calculatedTop(){const t=this.auto?(0,p.kb)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles(){return Boolean(this.tiles.find((t=>t.tabIndex>-1)))},styles(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive(t){t||(this.listIndex=-1)},isContentActive(t){this.hasJustFocused=t},listIndex(t,e){if(t in this.tiles){const e=this.tiles[t];e.classList.add("v-list-item--highlighted");const i=this.$refs.content.scrollTop,s=this.$refs.content.clientHeight;i>e.offsetTop-8?(0,g.Z)(e.offsetTop-e.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):i+s{this.startTransition().then((()=>{this.$refs.content&&(this.calculatedTopAuto=this.calcTopAuto(),this.auto&&(this.$refs.content.scrollTop=this.calcScrollPosition()))}))}))},calcScrollPosition(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active"),i=t.scrollHeight-t.offsetHeight;return e?Math.min(i,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);const i=e.offsetTop-this.calcScrollPosition(),s=t.querySelector(".v-list-item").offsetTop;return this.computedTop-i-s-1},changeListIndex(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==p.Do.tab){if(t.keyCode===p.Do.down)this.nextTile();else if(t.keyCode===p.Do.up)this.prevTile();else if(t.keyCode===p.Do.end)this.lastTile();else if(t.keyCode===p.Do.home)this.firstTile();else{if(t.keyCode!==p.Do.enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional(t){const e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes(){const t=n.Z.options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?{...t,"aria-activedescendant":this.activeTile.id}:t},genActivatorListeners(){const t=a.Z.options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition(){const t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives(){const t=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&t.push({name:"click-outside",value:{handler:()=>{this.isActive=!1},closeConditional:this.closeConditional,include:()=>[this.$el,...this.getOpenDependentElements()]}}),t},genContent(){const t={attrs:{...this.getScopeIdAttrs(),role:"role"in this.$attrs?this.$attrs.role:"menu"},staticClass:"v-menu__content",class:{...this.rootThemeClasses,...this.roundedClasses,"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive,[this.contentClass.trim()]:!0},style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:t=>{const e=t.target;e.getAttribute("disabled")||this.closeOnContentClick&&(this.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(t.on=t.on||{},t.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(t.on=t.on||{},t.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(t.on=t.on||{},t.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",t,this.getContentSlot())},getTiles(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item, .v-divider, .v-subheader")))},mouseEnterHandler(){this.runDelay("open",(()=>{this.hasJustFocused||(this.hasJustFocused=!0)}))},mouseLeaveHandler(t){this.runDelay("close",(()=>{var e;null!=(e=this.$refs.content)&&e.contains(t.relatedTarget)||requestAnimationFrame((()=>{this.isActive=!1,this.callDeactivate()}))}))},nextTile(){const t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile(){const t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},lastTile(){const t=this.tiles[this.tiles.length-1];t&&(this.listIndex=this.tiles.length-1,-1===t.tabIndex&&this.prevTile())},firstTile(){const t=this.tiles[0];t&&(this.listIndex=0,-1===t.tabIndex&&this.nextTile())},onKeyDown(t){if(t.keyCode===p.Do.esc){setTimeout((()=>{this.isActive=!1}));const t=this.getActivator();this.$nextTick((()=>t&&t.focus()))}else!this.isActive&&[p.Do.up,p.Do.down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((()=>this.changeListIndex(t)))},onResize(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render(t){const e={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",e,[!this.activator&&this.genActivator(),this.showLazyContent((()=>[this.$createElement(s.Z,{props:{root:!0,light:this.light,dark:this.dark}},[this.genTransition()])]))])}})},1167:function(t,e,i){i.r(e),i.d(e,{default:function(){return $}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.Options.show?i("v-col",{class:t.item.Options.setup.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.item.Options.status.level,color:t.item.Options.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.name)+" "),i("v-spacer"),t.lvlIcon&&t.item.Options.status.isActive?i("v-btn",{attrs:{small:"",icon:""},on:{click:function(e){return t.lvlBtn()}}},[i("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.lvlIcon)+" ")])],1):t._e(),t.app.options.debugMode?i("jsonList",{attrs:{item:t.item}}):t._e()],1),i("v-divider"),t.item.Options.status.isActive?t._e():i("div",[i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.item.Options.status.error)+" ")])])],1)],1),i("v-divider")],1),t.item.Options.status.isActive?i("div",t._l(t.main,(function(e){return i("div",{key:e.idx},[e.show?i("div",[t._v(" "+t._s(e.order)+" "),i("v-card-text",[i("v-row",{attrs:{align:"center"}},[0==e.leftMenu.length&&e.leftBtn?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-btn",{attrs:{small:"",icon:"",color:e.leftBtnColor,disabled:e.leftBtnDisabled},on:{touchstart:function(i){return t.clickStart(e.idx,"left","touch")},touchend:function(i){return t.clickEnd(e.idx,"left","touch")},mousedown:function(i){return t.clickStart(e.idx,"left","mouse")},mouseup:function(i){return t.clickEnd(e.idx,"left","mouse")}}},[e.slider?i("div",[i("v-icon",[t._v(" "+t._s(e.leftBtn)+" ")])],1):t._e(),e.slider?t._e():i("div",[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.leftBtn)+" ")])],1)])],1):t._e(),e.leftMenu.length>0&&e.leftBtn?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",right:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,l=s.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",l,!1),n),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.leftBtn)+" ")])],1)]}}],null,!0)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:e.leftMenuIdx,callback:function(i){t.$set(e,"leftMenuIdx",i)},expression:"level.leftMenuIdx"}},t._l(e.leftMenu,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.sendMenuCmd(e.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(e.name)+" ")])],1),e.active?i("v-list-item-icon",[i("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e(),e.leftBtn&&!e.slider?i("v-divider",{attrs:{vertical:""}}):t._e(),e.midBtn||e.slider?t._e():i("v-col",{attrs:{align:e.textAlign}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(e.text)+" ")])]),!e.text2||e.midBtn||e.slider?t._e():i("v-col",{attrs:{align:e.text2Align}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(e.text2)+" ")])]),0===e.midMenu.length&&e.midBtn?i("v-col",{staticClass:"headline",attrs:{align:"center"}},[i("v-btn",{attrs:{small:"",icon:"",disabled:e.midBtnDisabled,color:e.midBtnColor},on:{touchstart:function(i){return t.clickStart(e.idx,"mid","touch")},touchend:function(i){return t.clickEnd(e.idx,"mid","touch")},mousedown:function(i){return t.clickStart(e.idx,"mid","mouse")},mouseup:function(i){return t.clickEnd(e.idx,"mid","mouse")}}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.midBtn)+" ")])],1)],1):t._e(),e.midMenu.length>0&&e.midBtn?i("v-col",{staticClass:"headline",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,l=s.attrs;return[e.text?i("v-btn",t._g(t._b({staticClass:"headline font-weight-bold",attrs:{block:"",plain:""}},"v-btn",l,!1),n),[t._v(" "+t._s(e.text)+" ")]):t._e(),e.text?t._e():i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",l,!1),n),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.midBtn)+" ")])],1)]}}],null,!0)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:e.midMenuIdx,callback:function(i){t.$set(e,"midMenuIdx",i)},expression:"level.midMenuIdx"}},t._l(e.midMenu,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.sendMenuCmd(e.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(e.name)+" ")])],1),e.active?i("v-list-item-icon",[i("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e(),e.slider?i("v-col",{attrs:{align:"center"}},[i("v-slider",{attrs:{min:e.sliderMin,max:e.sliderMax,label:e.text,"hide-details":"","thumb-label":"","thumb-size":"48",color:"success",step:e.sliderStep},on:{change:function(i){return t.setSlider(e.idx,e.sliderCurrent)}},scopedSlots:t._u([{key:"thumb-label",fn:function(s){var n=s.value;return[i("div",{staticClass:"text-h6"},[t._v(" "+t._s(t.sliderVal(e.idx,n))+" ")])]}}],null,!0),model:{value:e.sliderCurrent,callback:function(i){t.$set(e,"sliderCurrent",i)},expression:"level.sliderCurrent"}})],1):t._e(),e.rightBtn&&!e.slider?i("v-divider",{attrs:{vertical:""}}):t._e(),0===e.rightMenu.length&&e.rightBtn?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-btn",{attrs:{small:"",icon:"",disabled:e.rightBtnDisabled,color:e.rightBtnColor},on:{touchstart:function(i){return t.clickStart(e.idx,"right","touch")},touchend:function(i){return t.clickEnd(e.idx,"right","touch")},mousedown:function(i){return t.clickStart(e.idx,"right","mouse")},mouseup:function(i){return t.clickEnd(e.idx,"right","mouse")}}},[e.slider?i("div",[i("v-icon",[t._v(" "+t._s(e.rightBtn)+" ")])],1):t._e(),e.slider?t._e():i("div",[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.rightBtn)+" ")])],1)])],1):t._e(),e.rightMenu.length>0&&e.rightBtn?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,l=s.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",l,!1),n),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(e.rightBtn)+" ")])],1)]}}],null,!0)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:e.rightMenuIdx,callback:function(i){t.$set(e,"rightMenuIdx",i)},expression:"level.rightMenuIdx"}},t._l(e.rightMenu,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.sendMenuCmd(e.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(e.name)+" ")])],1),e.active?i("v-list-item-icon",[i("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1):t._e()],1)],1),i("v-divider")],1):t._e()])})),0):t._e(),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0",attrs:{color:t.item.Options.info.left1IconColor}},[t._v(" "+t._s(t.item.Options.info.left1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.left2IconColor}},[t._v(" "+t._s(t.item.Options.info.left2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.left2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.mid1IconColor}},[t._v(" "+t._s(t.item.Options.info.mid1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid1Text)+" ")]),i("v-icon",{staticClass:"ml-2",attrs:{color:t.item.Options.info.mid2IconColor}},[t._v(" "+t._s(t.item.Options.info.mid2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.mid2Text)+" ")]),i("v-spacer"),i("v-icon",{attrs:{color:t.item.Options.info.right1IconColor}},[t._v(" "+t._s(t.item.Options.info.right1Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right1Text)+" ")]),i("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:t.item.Options.info.right2IconColor}},[t._v(" "+t._s(t.item.Options.info.right2Icon)+" ")]),i("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.item.Options.info.right2Text)+" ")])],1)],1)],1):t._e()},n=[],l=i(1830),o={components:{jsonList:l.Z},props:{item:{type:Object,default:()=>({name:"default"})}},data:()=>({name:"default",app:{options:{debugMode:!1}},main:[],lvlMax:1,lvlIcon:null,timer:!1,long:!1,pendingClick:0,touchFirst:!1}),watch:{item:{immediate:!1,deep:!0,handler(){this.setVals()}}},created(){this.app.options=this.$fhem.app.options,this.lvlMax=this.item.Options.setup.main.length,this.lvlIcon=this.lvlMax>1?this.item.Options.setup.expand?"mdi-arrow-expand":"mdi-swap-vertical":null,this.setLvl(this.$fhem.getEl(this.item,"Options","setup","expanded")&&this.$fhem.getEl(this.item,"Options","setup","expand")?-1:0),this.setVals()},methods:{sendCmd(t,e){e?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((()=>{this.$fhem.request(t)}),1e3)):this.$fhem.request(t)},sendMenuCmd(t){let e=this.$fhem.getEl(this.item,"Internals","NAME");/%d/.test(t)&&(t=t.replace("%d",e)),this.sendCmd(t)},updateReading(t){let e=t.split(" ");4===e.length&&this.$fhem.getEl(this.item,"Readings",e[2],"Value")&&(this.item.Readings[e[2]].Value=e[3])},createCmd(t){let e="";if(t.match("set")||t.match("get")){let i=t.trim().split(" ");if(i[1]&&i[1].match("Connected")){let t=i[1].replace("Connected.","");i[1]=this.$fhem.getEl(this.item,"Connected",t,"Internals","NAME"),i[1]?e=i.join(" "):this.$fhem.log({lvl:1,msg:"Connected Device not found. "+this.item.Options})}else e=t}else e="set "+this.item.Name+" "+t;return e},clickStart(t,e,i){this.long=!1,this.$fhem.log({lvl:5,msg:"ClickStart: type "+e+":"+i}),this.touchFirst&&"mouse"===i||("touch"===i&&(this.touchFirst=!0),this.timer=setInterval((()=>{this.long=!0;let i=this.item.Options.setup.main[t][e+"Long"];if(this.$fhem.log({lvl:5,msg:"ClickEvent: Long ["+i+"]"}),i){let t=this.$fhem.handleVals(this.item,i);if(t[0]){let e=this.createCmd(t[0]);this.sendCmd(e),this.timer=clearInterval(this.timer)}}}),1e3))},clickEnd(t,e,i){if(this.$fhem.log({lvl:5,msg:"ClickEnd: type "+e+":"+i}),this.touchFirst&&"mouse"===i)return;"touch"===i&&(this.touchFirst=!0),this.timer=clearInterval(this.timer);let s=this.item.Options.setup.main[t][e+(this.long?"LongRelease":"Click")];if(this.$fhem.log({lvl:5,msg:"ClickEvent: "+(this.long?"LongRelease":"Click")+" ["+s+"]"}),s){let e=this.$fhem.handleVals(this.item,s);if(e[0]){let i=this.item.Options.setup.expand?t:0;this.main[i].sliderPrevent=!1;let n=this.createCmd(e[0]),l=-1!=s.findIndex((t=>t.match("%i")));!this.long&&l&&this.updateReading(n),this.sendCmd(n,l)}}},sliderVal(t,e){let i=this.item.Options.setup.main[t].slider,s=e;if(i){let t=this.$fhem.handleVals(this.item,i),n=t[4]&&t[4].match(".")?1:0;s=e.toFixed(n)}return s},setSlider(t,e){let i=this.item.Options.setup.main[t].slider;if(i){let s=this.$fhem.handleVals(this.item,i);if(s[0]){let i=this.item.Options.setup.expand?t:0;this.main[i].sliderPrevent=!0;let n=this.createCmd(s[0]),l=s[4]&&s[4].match("\\.")?1:0;n=n.replace("%v",e.toFixed(l)),this.sendCmd(n)}}},checkMenu(t){let e=!1;if(t){let i=t.split(" ");i[0].match("set")&&i.splice(0,2),1===i.length&&i.splice(0,0,"state");let s=/\./.test(i[0])?i[0].split("."):["Readings",i[0],"Value"],n=this.$fhem.getEl(this.item,...s);n&&n===i[1]&&(e=!0)}return e},createMenu(t){let e=[];if(t&&t.length>0)for(let i of t){let t=i.split(":");if(t.length>1){let i=this.createCmd(t[1].replace(/:/g,":")),s=this.checkMenu(i);e.push({name:t[0],cmd:i,active:s})}}return e},lvlBtn(){let t=0;this.item.Options.setup.expand?(t=this.main.length>1?0:-1,this.lvlIcon=-1===t?"mdi-arrow-collapse":"mdi-arrow-expand"):(t=this.main[0].idx+1,t>this.lvlMax-1&&(t=0)),this.setLvl(t),this.setVals()},setLvl(t){let e=-1!=t?t:0,i=-1!=t?t:this.lvlMax-1;this.main.splice(0);for(let s=e;s<=i;s++){let t={idx:s,show:!0,leftBtn:"",leftBtnDisabled:!1,leftBtnColor:"",leftMenu:[],leftMenuIdx:-1,text:"",textAlign:"",text2:"",text2Align:"",midBtn:"",midBtnDisabled:!1,midBtnColor:"",midMenu:[],midMenuIdx:-1,slider:!1,sliderCurrent:0,sliderPrevent:!1,sliderMin:0,sliderMax:100,sliderStep:1,rightBtn:"",rightBtnDisabled:!1,rightBtnColor:"",rightMenu:[],rightMenuIdx:-1};this.main.push(t)}},setVals(){for(const t in this.main){let e=this.main[t].idx,i=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].show),s=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].text),n=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].text2),l=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].slider),o=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].leftBtn),a=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].midBtn),r=this.$fhem.handleVals(this.item,this.item.Options.setup.main[e].rightBtn),c=this.createMenu(this.item.Options.setup.main[e].leftMenu),h=this.createMenu(this.item.Options.setup.main[e].midMenu),d=this.createMenu(this.item.Options.setup.main[e].rightMenu);this.main[t].show="false"!==i[0],this.main[t].text=s[0]||"",this.main[t].textAlign=s[1]||"center",this.main[t].text2=n[0]||"",this.main[t].text2Align=n[1]||"center",this.main[t].leftBtn=o[0]||"",this.main[t].midBtn=a[0]||"",this.main[t].rightBtn=r[0]||"",this.main[t].leftBtnDisabled=!!o[1],this.main[t].midBtnDisabled=!!a[1],this.main[t].rightBtnDisabled=!!r[1],this.main[t].leftBtnColor=o[2]||"",this.main[t].midBtnColor=a[2]||"",this.main[t].rightBtnColor=r[2]||"",this.main[t].leftMenu=c,this.main[t].leftMenuIdx=c.map((t=>t.active)).indexOf(!0),this.main[t].midMenu=h,this.main[t].midMenuIdx=h.map((t=>t.active)).indexOf(!0),this.main[t].rightMenu=d,this.main[t].rightMenuIdx=d.map((t=>t.active)).indexOf(!0),this.main[t].slider=!!l[0],this.main[t].sliderMin=l[2]||0,this.main[t].sliderMax=l[3]||100,this.main[t].sliderStep=l[4]||1,this.main[t].sliderPrevent?this.main[t].sliderCurrent===l[1]&&(this.main[t].sliderPrevent=!1,this.main[t].sliderCurrent=l[1]||0):this.main[t].sliderCurrent=l[1]||0}}}},a=o,r=i(1001),c=i(3453),h=i.n(c),d=i(3150),m=i(2371),u=i(7118),v=i(2102),f=i(1418),p=i(6428),g=i(6816),x=i(7620),_=i(1960),C=i(7874),k=i(459),b=i(1152),I=i(7003),M=i(2877),O=i(7611),T=i(9762),B=i(2691),y=(0,r.Z)(a,s,n,!1,null,null,null),$=y.exports;h()(y,{VBtn:d.Z,VCard:m.Z,VCardText:u.ZB,VCardTitle:u.EB,VCol:v.Z,VDivider:f.Z,VIcon:p.Z,VList:g.Z,VListItem:x.Z,VListItemContent:_.km,VListItemGroup:C.Z,VListItemIcon:k.Z,VListItemTitle:_.V9,VMenu:b.Z,VProgressLinear:I.Z,VRow:M.Z,VSlider:O.Z,VSpacer:T.Z,VSystemBar:B.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/798-legacy.154ede8b.js b/www/fhemapp/js/798-legacy.154ede8b.js new file mode 100644 index 00000000..da2d206a --- /dev/null +++ b/www/fhemapp/js/798-legacy.154ede8b.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[798],{6798:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-row",e._l(e.app.data.deviceList,(function(e){return n(e.Options.component,{key:e.Internals.FUUID,tag:"component",attrs:{item:e}})})),1)],1)},r=[],s=(n(1539),n(8783),n(3948),n(8309),n(4916),n(4723),n(7327),n(3123),{name:"DevicesView",components:{templ_default:function(){return Promise.all([n.e(121),n.e(288),n.e(322),n.e(630)]).then(n.bind(n,1167))},templ_panel:function(){return Promise.all([n.e(121),n.e(337)]).then(n.bind(n,2965))},templ_chart:function(){return Promise.all([n.e(121),n.e(288),n.e(285),n.e(387)]).then(n.bind(n,387))},templ_weather:function(){return n.e(947).then(n.bind(n,9285))},templ_list:function(){return Promise.all([n.e(121),n.e(687)]).then(n.bind(n,2405))},templ_wdtimer:function(){return Promise.all([n.e(121),n.e(96)]).then(n.bind(n,1977))},templ_scenes:function(){return n.e(869).then(n.bind(n,1869))},templ_sonos:function(){return Promise.all([n.e(121),n.e(288),n.e(322),n.e(475)]).then(n.bind(n,400))},templ_sysmon:function(){return Promise.all([n.e(121),n.e(289)]).then(n.bind(n,5193))},templ_hmlan:function(){return n.e(438).then(n.bind(n,7438))},templ_cam:function(){return Promise.all([n.e(121),n.e(507)]).then(n.bind(n,1643))},templ_iframe:function(){return Promise.all([n.e(121),n.e(154)]).then(n.bind(n,2756))}},data:function(){return{app:{session:{connect:!1},options:{mobileHeader:!1},data:{deviceList:[],header:""}}}},watch:{$route:function(){this.subscribe()},"app.session.ready":function(e){e&&this.subscribe()}},mounted:function(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data},methods:{setHeader:function(){(this.app.options.mobileHeader||"page"===this.app.options.mobileHeaderContent)&&("Devices"===this.$route.name?this.$route.params.filter.match("device=")?this.$fhem.app.appBar.mobileHeader="":this.$fhem.app.appBar.mobileHeader=this.$route.params.filter.split("=")[1]:this.$fhem.app.appBar.mobileHeader=this.$route.name)},subscribe:function(){var e=this.$route.params.filter||this.$route.path;this.setHeader(),this.$fhem.getDevices(e)}}}),a=s,o=n(1001),p=n(3453),u=n.n(p),l=n(2877),m=(0,o.Z)(a,i,r,!1,null,null,null),h=m.exports;u()(m,{VRow:l.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/798-legacy.741473f9.js b/www/fhemapp/js/798-legacy.741473f9.js deleted file mode 100644 index 446b990c..00000000 --- a/www/fhemapp/js/798-legacy.741473f9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[798],{6798:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-row",e._l(e.app.data.deviceList,(function(e){return n(e.Options.component,{key:e.Internals.FUUID,tag:"component",attrs:{item:e}})})),1)],1)},r=[],s=(n(1539),n(8783),n(3948),n(8309),n(4916),n(4723),n(7327),n(3123),{name:"DevicesView",components:{templ_default:function(){return Promise.all([n.e(121),n.e(288),n.e(322),n.e(617)]).then(n.bind(n,6490))},templ_panel:function(){return Promise.all([n.e(121),n.e(337)]).then(n.bind(n,2965))},templ_chart:function(){return Promise.all([n.e(121),n.e(288),n.e(285),n.e(387)]).then(n.bind(n,387))},templ_weather:function(){return n.e(947).then(n.bind(n,9285))},templ_list:function(){return Promise.all([n.e(121),n.e(687)]).then(n.bind(n,2405))},templ_wdtimer:function(){return Promise.all([n.e(121),n.e(583)]).then(n.bind(n,5638))},templ_scenes:function(){return n.e(869).then(n.bind(n,1869))},templ_sonos:function(){return Promise.all([n.e(121),n.e(288),n.e(322),n.e(475)]).then(n.bind(n,400))},templ_sysmon:function(){return Promise.all([n.e(121),n.e(289)]).then(n.bind(n,5193))},templ_hmlan:function(){return n.e(438).then(n.bind(n,7438))},templ_cam:function(){return Promise.all([n.e(121),n.e(396)]).then(n.bind(n,8519))},templ_iframe:function(){return Promise.all([n.e(121),n.e(154)]).then(n.bind(n,2756))}},data:function(){return{app:{session:{connect:!1},options:{mobileHeader:!1},data:{deviceList:[],header:""}}}},watch:{$route:function(){this.subscribe()},"app.session.ready":function(e){e&&this.subscribe()}},mounted:function(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data},methods:{setHeader:function(){(this.app.options.mobileHeader||"page"===this.app.options.mobileHeaderContent)&&("Devices"===this.$route.name?this.$route.params.filter.match("device=")?this.$fhem.app.appBar.mobileHeader="":this.$fhem.app.appBar.mobileHeader=this.$route.params.filter.split("=")[1]:this.$fhem.app.appBar.mobileHeader=this.$route.name)},subscribe:function(){var e=this.$route.params.filter||this.$route.path;this.setHeader(),this.$fhem.getDevices(e)}}}),a=s,o=n(1001),p=n(3453),u=n.n(p),l=n(2877),m=(0,o.Z)(a,i,r,!1,null,null,null),h=m.exports;u()(m,{VRow:l.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/798.430ef374.js b/www/fhemapp/js/798.430ef374.js new file mode 100644 index 00000000..e4b39013 --- /dev/null +++ b/www/fhemapp/js/798.430ef374.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[798],{6798:function(e,t,i){i.r(t),i.d(t,{default:function(){return d}});var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("v-row",e._l(e.app.data.deviceList,(function(e){return i(e.Options.component,{key:e.Internals.FUUID,tag:"component",attrs:{item:e}})})),1)],1)},a=[],n={name:"DevicesView",components:{templ_default:()=>Promise.all([i.e(121),i.e(288),i.e(322),i.e(630)]).then(i.bind(i,1167)),templ_panel:()=>Promise.all([i.e(121),i.e(337)]).then(i.bind(i,2965)),templ_chart:()=>Promise.all([i.e(121),i.e(288),i.e(285),i.e(387)]).then(i.bind(i,387)),templ_weather:()=>i.e(947).then(i.bind(i,9285)),templ_list:()=>Promise.all([i.e(121),i.e(687)]).then(i.bind(i,2405)),templ_wdtimer:()=>Promise.all([i.e(121),i.e(96)]).then(i.bind(i,1977)),templ_scenes:()=>i.e(869).then(i.bind(i,1869)),templ_sonos:()=>Promise.all([i.e(121),i.e(288),i.e(322),i.e(475)]).then(i.bind(i,400)),templ_sysmon:()=>Promise.all([i.e(121),i.e(289)]).then(i.bind(i,5193)),templ_hmlan:()=>i.e(438).then(i.bind(i,7438)),templ_cam:()=>Promise.all([i.e(121),i.e(507)]).then(i.bind(i,1643)),templ_iframe:()=>Promise.all([i.e(121),i.e(154)]).then(i.bind(i,2756))},data:()=>({app:{session:{connect:!1},options:{mobileHeader:!1},data:{deviceList:[],header:""}}}),watch:{$route(){this.subscribe()},"app.session.ready"(e){e&&this.subscribe()}},mounted(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data},methods:{setHeader(){(this.app.options.mobileHeader||"page"===this.app.options.mobileHeaderContent)&&("Devices"===this.$route.name?this.$route.params.filter.match("device=")?this.$fhem.app.appBar.mobileHeader="":this.$fhem.app.appBar.mobileHeader=this.$route.params.filter.split("=")[1]:this.$fhem.app.appBar.mobileHeader=this.$route.name)},subscribe(){let e=this.$route.params.filter||this.$route.path;this.setHeader(),this.$fhem.getDevices(e)}}},p=n,l=i(1001),o=i(3453),r=i.n(o),m=i(2877),h=(0,l.Z)(p,s,a,!1,null,null,null),d=h.exports;r()(h,{VRow:m.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/798.46c09455.js b/www/fhemapp/js/798.46c09455.js deleted file mode 100644 index 1785e2dd..00000000 --- a/www/fhemapp/js/798.46c09455.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[798],{6798:function(e,t,i){i.r(t),i.d(t,{default:function(){return d}});var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("v-row",e._l(e.app.data.deviceList,(function(e){return i(e.Options.component,{key:e.Internals.FUUID,tag:"component",attrs:{item:e}})})),1)],1)},a=[],n={name:"DevicesView",components:{templ_default:()=>Promise.all([i.e(121),i.e(288),i.e(322),i.e(617)]).then(i.bind(i,6490)),templ_panel:()=>Promise.all([i.e(121),i.e(337)]).then(i.bind(i,2965)),templ_chart:()=>Promise.all([i.e(121),i.e(288),i.e(285),i.e(387)]).then(i.bind(i,387)),templ_weather:()=>i.e(947).then(i.bind(i,9285)),templ_list:()=>Promise.all([i.e(121),i.e(687)]).then(i.bind(i,2405)),templ_wdtimer:()=>Promise.all([i.e(121),i.e(583)]).then(i.bind(i,5638)),templ_scenes:()=>i.e(869).then(i.bind(i,1869)),templ_sonos:()=>Promise.all([i.e(121),i.e(288),i.e(322),i.e(475)]).then(i.bind(i,400)),templ_sysmon:()=>Promise.all([i.e(121),i.e(289)]).then(i.bind(i,5193)),templ_hmlan:()=>i.e(438).then(i.bind(i,7438)),templ_cam:()=>Promise.all([i.e(121),i.e(396)]).then(i.bind(i,8519)),templ_iframe:()=>Promise.all([i.e(121),i.e(154)]).then(i.bind(i,2756))},data:()=>({app:{session:{connect:!1},options:{mobileHeader:!1},data:{deviceList:[],header:""}}}),watch:{$route(){this.subscribe()},"app.session.ready"(e){e&&this.subscribe()}},mounted(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data},methods:{setHeader(){(this.app.options.mobileHeader||"page"===this.app.options.mobileHeaderContent)&&("Devices"===this.$route.name?this.$route.params.filter.match("device=")?this.$fhem.app.appBar.mobileHeader="":this.$fhem.app.appBar.mobileHeader=this.$route.params.filter.split("=")[1]:this.$fhem.app.appBar.mobileHeader=this.$route.name)},subscribe(){let e=this.$route.params.filter||this.$route.path;this.setHeader(),this.$fhem.getDevices(e)}}},p=n,l=i(1001),o=i(3453),r=i.n(o),m=i(2877),h=(0,l.Z)(p,s,a,!1,null,null,null),d=h.exports;r()(h,{VRow:m.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/869-legacy.8b8fa91e.js b/www/fhemapp/js/869-legacy.4d6f8e36.js similarity index 99% rename from www/fhemapp/js/869-legacy.8b8fa91e.js rename to www/fhemapp/js/869-legacy.4d6f8e36.js index d6871a0f..98914d0a 100644 --- a/www/fhemapp/js/869-legacy.8b8fa91e.js +++ b/www/fhemapp/js/869-legacy.4d6f8e36.js @@ -1 +1 @@ -"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[869],{9968:function(){},2371:function(t,e,i){var s=i(4367),n=(i(9653),i(4944),i(3792),i(9968),i(5648)),a=i(7342),r=i(6505),o=i(3325);e["Z"]=(0,o.Z)(a.Z,r.Z,n.Z).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes:function(){return(0,s.Z)((0,s.Z)({"v-card":!0},r.Z.options.computed.classes.call(this)),{},{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},n.Z.options.computed.classes.call(this))},styles:function(){var t=(0,s.Z)({},n.Z.options.computed.styles.call(this));return this.img&&(t.background='url("'.concat(this.img,'") center center / cover no-repeat')),t}},methods:{genProgress:function(){var t=a.Z.options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render:function(t){var e=this.generateRouteLink(),i=e.tag,s=e.data;return s.style=this.styles,this.isClickable&&(s.attrs=s.attrs||{},s.attrs.tabindex=0),t(i,this.setBackgroundColor(this.color,s),[this.genProgress(),this.$slots.default])}})},7118:function(t,e,i){i.d(e,{h7:function(){return a},Qq:function(){return r},ZB:function(){return o},EB:function(){return l}});var s=i(2371),n=i(4589),a=(0,n.Ji)("v-card__actions"),r=(0,n.Ji)("v-card__subtitle"),o=(0,n.Ji)("v-card__text"),l=(0,n.Ji)("v-card__title");s.Z},1152:function(t,e,i){i.d(e,{Z:function(){return k}});var s=i(3796),n=i(8932),a=i(4367),r=(i(9653),i(9826),i(1539),i(1038),i(8783),i(2222),i(3210),i(6699),i(2023),i(3242)),o=i(5795),l=i(4561),c=i(5907),h=i(5936),u=i(423),d=i(3712),f=i(2936),v=i(8085),m=i(5600),p=i(549),g=i(3325),b=i(1824),x=i(4589),y=i(1439),_=(0,g.Z)(c.Z,l.Z,h.Z,u.Z,d.Z,f.Z,v.Z),k=_.extend({name:"v-menu",directives:{ClickOutside:m.Z,Resize:p.Z},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?(0,x.kb)(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":(0,x.kb)(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return(0,x.kb)(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return(0,x.kb)(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return(0,x.kb)(Math.min(e,t))||"0"},calculatedTop:function(){var t=this.auto?(0,x.kb)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,e){if(t in this.tiles){var i=this.tiles[t];i.classList.add("v-list-item--highlighted");var s=this.$refs.content.scrollTop,n=this.$refs.content.clientHeight;s>i.offsetTop-8?(0,y.Z)(i.offsetTop-i.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):s+n100?100:parseFloat(t)}},render:function(t){var e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:{bottom:this.bottom?0:void 0,height:this.active?(0,u.kb)(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},2691:function(t,e,i){i.d(e,{Z:function(){return c}});var s=i(4367),n=(i(9653),i(9253),i(3358)),a=i(6952),r=i(8085),o=i(3325),l=i(4589),c=(0,o.Z)((0,n.Z)("bar",["height","window"]),a.Z,r.Z).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return(0,s.Z)({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles:function(){return{height:(0,l.kb)(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),(0,l.z9)(this))}})},3242:function(t,e,i){i(9826),i(1539);var s=i(8085);e["Z"]=s.Z.extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:s.Z.options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},7342:function(t,e,i){i.d(e,{Z:function(){return r}});i(9653);var s=i(144),n=i(7003),a=n.Z,r=s.Z.extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(a,{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},423:function(t,e,i){var s=i(144);e["Z"]=s.Z.extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})},1869:function(t,e,i){i.r(e),i.d(e,{default:function(){return B}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.Options.show?i("v-col",{class:t.setup.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.vals.status.level,color:t.vals.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" ")]),i("v-divider"),i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold text-truncate"},[t._v(" "+t._s(t._f("scene_text")(t.vals.main.text))+" ")])]),i("v-divider",{attrs:{vertical:""}}),i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.rightIcon)+" ")])],1)]}}],null,!1,4018787445)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:t.vals.sceneSelected,callback:function(e){t.$set(t.vals,"sceneSelected",e)},expression:"vals.sceneSelected"}},t._l(t.vals.scenes,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.setScene(e)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(t._f("scene_text")(e))+" ")])],1),e===t.vals.main.text?i("v-list-item-icon",[i("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1)],1)],1),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",[t._v(t._s(t.vals.info.left1Icon))]),t._v(t._s(t.vals.info.left1Text)+" ")],1)],1)],1):t._e()},n=[],a=i(8932),r=(i(4916),i(5306),i(561),i(3123),{filters:{scene_text:function(t){return t.replace(/_/g," ")}},props:{item:{type:Object,default:function(){return{name:"scene"}}}},data:function(){return{name:"scene",setup:{size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{bar:["state:unknown:0:success","state::100:success"]},main:[{text:["state:unknown:...","state::%s"]}],info:{left1:["state:unknown::mdi-movie-open","state:::mdi-movie-open-check"]}},vals:{title:"",status:{level:0,color:""},main:{text:"",rightIcon:"mdi-dots-vertical"},info:{left1Icon:"",left1Text:""},scenes:[],sceneSelected:-1}}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||e,this.setValues(),this.vals.sceneSelected=this.vals.scenes.indexOf(this.vals.main.text)}}},created:function(){var t=this.$fhem.getEl(this.item,"Options","setup","size"),e=this.$fhem.getEl(this.item,"Options","setup","status"),i=this.$fhem.getEl(this.item,"Options","setup","main"),s=this.$fhem.getEl(this.item,"Options","setup","info");t&&(this.setup.size=t),e&&Object.assign(this.setup.status,e),i&&Object.assign(this.setup.main,i),s&&Object.assign(this.setup.info,s),this.setValues(),this.loadScenes()},methods:{setValues:function(){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),e=this.$fhem.handleVals(this.item,this.setup.main[0].text),i=this.$fhem.handleVals(this.item,this.setup.info.left1);this.vals.status.level=t[0]||"100",this.vals.status.color=t[1]||"success",this.vals.main.text=e[0]||"",this.vals.info.left1Icon=i[1]||"",this.vals.info.left1Text=i[0]||""},loadScenes:function(){var t=this,e=[{param:"cmd",value:"get "+this.item.Name+" scenes"},{param:"XHR",value:"1"}];this.vals.scenes.splice(0),this.$fhem.request(e).then((function(e){if(e){var i,s=e.replace("\n\n","").split("\n");(i=t.vals.scenes).push.apply(i,(0,a.Z)(s))}t.vals.sceneSelected=t.vals.scenes.indexOf(t.vals.main.text)}))},setScene:function(t){if(this.vals.mainState=t,this.vals.mainState!=this.item.Readings.state.Value){var e="set "+this.item.Name+" scene "+this.vals.mainState;this.$fhem.request(e)}}}}),o=r,l=i(1001),c=i(3453),h=i.n(c),u=i(3150),d=i(2371),f=i(7118),v=i(2102),m=i(1418),p=i(6428),g=i(6816),b=i(7620),x=i(1960),y=i(3249),_=i(459),k=i(1152),Z=i(7003),C=i(2877),T=i(2691),$=(0,l.Z)(o,s,n,!1,null,null,null),B=$.exports;h()($,{VBtn:u.Z,VCard:d.Z,VCardText:f.ZB,VCardTitle:f.EB,VCol:v.Z,VDivider:m.Z,VIcon:p.Z,VList:g.Z,VListItem:b.Z,VListItemContent:x.km,VListItemGroup:y.Z,VListItemIcon:_.Z,VListItemTitle:x.V9,VMenu:k.Z,VProgressLinear:Z.Z,VRow:C.Z,VSystemBar:T.Z})}}]); \ No newline at end of file +"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[869],{9968:function(){},2371:function(t,e,i){var s=i(4367),n=(i(9653),i(4944),i(3792),i(9968),i(5648)),a=i(7342),r=i(6505),o=i(3325);e["Z"]=(0,o.Z)(a.Z,r.Z,n.Z).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes:function(){return(0,s.Z)((0,s.Z)({"v-card":!0},r.Z.options.computed.classes.call(this)),{},{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},n.Z.options.computed.classes.call(this))},styles:function(){var t=(0,s.Z)({},n.Z.options.computed.styles.call(this));return this.img&&(t.background='url("'.concat(this.img,'") center center / cover no-repeat')),t}},methods:{genProgress:function(){var t=a.Z.options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render:function(t){var e=this.generateRouteLink(),i=e.tag,s=e.data;return s.style=this.styles,this.isClickable&&(s.attrs=s.attrs||{},s.attrs.tabindex=0),t(i,this.setBackgroundColor(this.color,s),[this.genProgress(),this.$slots.default])}})},7118:function(t,e,i){i.d(e,{h7:function(){return a},Qq:function(){return r},ZB:function(){return o},EB:function(){return l}});var s=i(2371),n=i(4589),a=(0,n.Ji)("v-card__actions"),r=(0,n.Ji)("v-card__subtitle"),o=(0,n.Ji)("v-card__text"),l=(0,n.Ji)("v-card__title");s.Z},1152:function(t,e,i){i.d(e,{Z:function(){return k}});var s=i(3796),n=i(8932),a=i(4367),r=(i(9653),i(9826),i(1539),i(1038),i(8783),i(2222),i(3210),i(6699),i(2023),i(3242)),o=i(5795),l=i(4561),c=i(5907),h=i(5936),u=i(423),d=i(3712),f=i(2936),v=i(8085),m=i(5600),p=i(549),g=i(3325),b=i(1824),x=i(4589),y=i(1439),_=(0,g.Z)(c.Z,l.Z,h.Z,u.Z,d.Z,f.Z,v.Z),k=_.extend({name:"v-menu",directives:{ClickOutside:m.Z,Resize:p.Z},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?(0,x.kb)(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":(0,x.kb)(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return(0,x.kb)(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return(0,x.kb)(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return(0,x.kb)(Math.min(e,t))||"0"},calculatedTop:function(){var t=this.auto?(0,x.kb)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,e){if(t in this.tiles){var i=this.tiles[t];i.classList.add("v-list-item--highlighted");var s=this.$refs.content.scrollTop,n=this.$refs.content.clientHeight;s>i.offsetTop-8?(0,y.Z)(i.offsetTop-i.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):s+n100?100:parseFloat(t)}},render:function(t){var e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:{bottom:this.bottom?0:void 0,height:this.active?(0,u.kb)(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},2691:function(t,e,i){i.d(e,{Z:function(){return c}});var s=i(4367),n=(i(9653),i(9253),i(3358)),a=i(6952),r=i(8085),o=i(3325),l=i(4589),c=(0,o.Z)((0,n.Z)("bar",["height","window"]),a.Z,r.Z).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return(0,s.Z)({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles:function(){return{height:(0,l.kb)(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),(0,l.z9)(this))}})},3242:function(t,e,i){i(9826),i(1539);var s=i(8085);e["Z"]=s.Z.extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:s.Z.options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},7342:function(t,e,i){i.d(e,{Z:function(){return r}});i(9653);var s=i(144),n=i(7003),a=n.Z,r=s.Z.extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(a,{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},423:function(t,e,i){var s=i(144);e["Z"]=s.Z.extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})},1869:function(t,e,i){i.r(e),i.d(e,{default:function(){return B}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.Options.show?i("v-col",{class:t.setup.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.vals.status.level,color:t.vals.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" ")]),i("v-divider"),i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold text-truncate"},[t._v(" "+t._s(t._f("scene_text")(t.vals.main.text))+" ")])]),i("v-divider",{attrs:{vertical:""}}),i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.rightIcon)+" ")])],1)]}}],null,!1,4018787445)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:t.vals.sceneSelected,callback:function(e){t.$set(t.vals,"sceneSelected",e)},expression:"vals.sceneSelected"}},t._l(t.vals.scenes,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.setScene(e)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(t._f("scene_text")(e))+" ")])],1),e===t.vals.main.text?i("v-list-item-icon",[i("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1)],1)],1),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",[t._v(t._s(t.vals.info.left1Icon))]),t._v(t._s(t.vals.info.left1Text)+" ")],1)],1)],1):t._e()},n=[],a=i(8932),r=(i(4916),i(5306),i(561),i(3123),{filters:{scene_text:function(t){return t.replace(/_/g," ")}},props:{item:{type:Object,default:function(){return{name:"scene"}}}},data:function(){return{name:"scene",setup:{size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{bar:["state:unknown:0:success","state::100:success"]},main:[{text:["state:unknown:...","state::%s"]}],info:{left1:["state:unknown::mdi-movie-open","state:::mdi-movie-open-check"]}},vals:{title:"",status:{level:0,color:""},main:{text:"",rightIcon:"mdi-dots-vertical"},info:{left1Icon:"",left1Text:""},scenes:[],sceneSelected:-1}}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||e,this.setValues(),this.vals.sceneSelected=this.vals.scenes.indexOf(this.vals.main.text)}}},created:function(){var t=this.$fhem.getEl(this.item,"Options","setup","size"),e=this.$fhem.getEl(this.item,"Options","setup","status"),i=this.$fhem.getEl(this.item,"Options","setup","main"),s=this.$fhem.getEl(this.item,"Options","setup","info");t&&(this.setup.size=t),e&&Object.assign(this.setup.status,e),i&&Object.assign(this.setup.main,i),s&&Object.assign(this.setup.info,s),this.setValues(),this.loadScenes()},methods:{setValues:function(){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),e=this.$fhem.handleVals(this.item,this.setup.main[0].text),i=this.$fhem.handleVals(this.item,this.setup.info.left1);this.vals.status.level=t[0]||"100",this.vals.status.color=t[1]||"success",this.vals.main.text=e[0]||"",this.vals.info.left1Icon=i[1]||"",this.vals.info.left1Text=i[0]||""},loadScenes:function(){var t=this,e=[{param:"cmd",value:"get "+this.item.Name+" scenes"},{param:"XHR",value:"1"}];this.vals.scenes.splice(0),this.$fhem.request(e).then((function(e){if(e){var i,s=e.replace("\n\n","").split("\n");(i=t.vals.scenes).push.apply(i,(0,a.Z)(s))}t.vals.sceneSelected=t.vals.scenes.indexOf(t.vals.main.text)}))},setScene:function(t){if(this.vals.mainState=t,this.vals.mainState!=this.item.Readings.state.Value){var e="set "+this.item.Name+" scene "+this.vals.mainState;this.$fhem.request(e)}}}}),o=r,l=i(1001),c=i(3453),h=i.n(c),u=i(3150),d=i(2371),f=i(7118),v=i(2102),m=i(1418),p=i(6428),g=i(6816),b=i(7620),x=i(1960),y=i(7874),_=i(459),k=i(1152),Z=i(7003),C=i(2877),T=i(2691),$=(0,l.Z)(o,s,n,!1,null,null,null),B=$.exports;h()($,{VBtn:u.Z,VCard:d.Z,VCardText:f.ZB,VCardTitle:f.EB,VCol:v.Z,VDivider:m.Z,VIcon:p.Z,VList:g.Z,VListItem:b.Z,VListItemContent:x.km,VListItemGroup:y.Z,VListItemIcon:_.Z,VListItemTitle:x.V9,VMenu:k.Z,VProgressLinear:Z.Z,VRow:C.Z,VSystemBar:T.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/869.df959138.js b/www/fhemapp/js/869.71b20017.js similarity index 99% rename from www/fhemapp/js/869.df959138.js rename to www/fhemapp/js/869.71b20017.js index 3761f185..0a836be7 100644 --- a/www/fhemapp/js/869.df959138.js +++ b/www/fhemapp/js/869.71b20017.js @@ -1 +1 @@ -"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[869],{9968:function(){},2371:function(t,e,s){s(9968);var i=s(5648),n=s(7342),a=s(6505),r=s(3325);e["Z"]=(0,r.Z)(n.Z,a.Z,i.Z).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes(){return{"v-card":!0,...a.Z.options.computed.classes.call(this),"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised,...i.Z.options.computed.classes.call(this)}},styles(){const t={...i.Z.options.computed.styles.call(this)};return this.img&&(t.background=`url("${this.img}") center center / cover no-repeat`),t}},methods:{genProgress(){const t=n.Z.options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render(t){const{tag:e,data:s}=this.generateRouteLink();return s.style=this.styles,this.isClickable&&(s.attrs=s.attrs||{},s.attrs.tabindex=0),t(e,this.setBackgroundColor(this.color,s),[this.genProgress(),this.$slots.default])}})},7118:function(t,e,s){s.d(e,{h7:function(){return a},Qq:function(){return r},ZB:function(){return l},EB:function(){return o}});var i=s(2371),n=s(4589);const a=(0,n.Ji)("v-card__actions"),r=(0,n.Ji)("v-card__subtitle"),l=(0,n.Ji)("v-card__text"),o=(0,n.Ji)("v-card__title");i.Z},1152:function(t,e,s){s.d(e,{Z:function(){return x}});var i=s(3242),n=s(5795),a=s(4561),r=s(5907),l=s(5936),o=s(423),h=s(3712),c=s(2936),d=s(8085),u=s(5600),v=s(549),m=s(3325),f=s(1824),p=s(4589),g=s(1439);const b=(0,m.Z)(r.Z,a.Z,l.Z,o.Z,h.Z,c.Z,d.Z);var x=b.extend({name:"v-menu",directives:{ClickOutside:u.Z,Resize:v.Z},provide(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile(){return this.tiles[this.listIndex]},calculatedLeft(){const t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?(0,p.kb)(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight(){const t=this.auto?"200px":(0,p.kb)(this.maxHeight);return t||"0"},calculatedMaxWidth(){return(0,p.kb)(this.maxWidth)||"0"},calculatedMinWidth(){if(this.minWidth)return(0,p.kb)(this.minWidth)||"0";const t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return(0,p.kb)(Math.min(e,t))||"0"},calculatedTop(){const t=this.auto?(0,p.kb)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles(){return Boolean(this.tiles.find((t=>t.tabIndex>-1)))},styles(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive(t){t||(this.listIndex=-1)},isContentActive(t){this.hasJustFocused=t},listIndex(t,e){if(t in this.tiles){const e=this.tiles[t];e.classList.add("v-list-item--highlighted");const s=this.$refs.content.scrollTop,i=this.$refs.content.clientHeight;s>e.offsetTop-8?(0,g.Z)(e.offsetTop-e.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):s+i{this.startTransition().then((()=>{this.$refs.content&&(this.calculatedTopAuto=this.calcTopAuto(),this.auto&&(this.$refs.content.scrollTop=this.calcScrollPosition()))}))}))},calcScrollPosition(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active"),s=t.scrollHeight-t.offsetHeight;return e?Math.min(s,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);const s=e.offsetTop-this.calcScrollPosition(),i=t.querySelector(".v-list-item").offsetTop;return this.computedTop-s-i-1},changeListIndex(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==p.Do.tab){if(t.keyCode===p.Do.down)this.nextTile();else if(t.keyCode===p.Do.up)this.prevTile();else if(t.keyCode===p.Do.end)this.lastTile();else if(t.keyCode===p.Do.home)this.firstTile();else{if(t.keyCode!==p.Do.enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional(t){const e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes(){const t=n.Z.options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?{...t,"aria-activedescendant":this.activeTile.id}:t},genActivatorListeners(){const t=l.Z.options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition(){const t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives(){const t=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&t.push({name:"click-outside",value:{handler:()=>{this.isActive=!1},closeConditional:this.closeConditional,include:()=>[this.$el,...this.getOpenDependentElements()]}}),t},genContent(){const t={attrs:{...this.getScopeIdAttrs(),role:"role"in this.$attrs?this.$attrs.role:"menu"},staticClass:"v-menu__content",class:{...this.rootThemeClasses,...this.roundedClasses,"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive,[this.contentClass.trim()]:!0},style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:t=>{const e=t.target;e.getAttribute("disabled")||this.closeOnContentClick&&(this.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(t.on=t.on||{},t.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(t.on=t.on||{},t.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(t.on=t.on||{},t.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",t,this.getContentSlot())},getTiles(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item, .v-divider, .v-subheader")))},mouseEnterHandler(){this.runDelay("open",(()=>{this.hasJustFocused||(this.hasJustFocused=!0)}))},mouseLeaveHandler(t){this.runDelay("close",(()=>{var e;null!=(e=this.$refs.content)&&e.contains(t.relatedTarget)||requestAnimationFrame((()=>{this.isActive=!1,this.callDeactivate()}))}))},nextTile(){const t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile(){const t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},lastTile(){const t=this.tiles[this.tiles.length-1];t&&(this.listIndex=this.tiles.length-1,-1===t.tabIndex&&this.prevTile())},firstTile(){const t=this.tiles[0];t&&(this.listIndex=0,-1===t.tabIndex&&this.nextTile())},onKeyDown(t){if(t.keyCode===p.Do.esc){setTimeout((()=>{this.isActive=!1}));const t=this.getActivator();this.$nextTick((()=>t&&t.focus()))}else!this.isActive&&[p.Do.up,p.Do.down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((()=>this.changeListIndex(t)))},onResize(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render(t){const e={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",e,[!this.activator&&this.genActivator(),this.showLazyContent((()=>[this.$createElement(i.Z,{props:{root:!0,light:this.light,dark:this.dark}},[this.genTransition()])]))])}})},7003:function(t,e,s){s.d(e,{Z:function(){return u}});var i=s(5827),n=s(8083),a=s(6952),r=s(3536),l=s(1431),o=s(8085),h=s(4589),c=s(3325);const d=(0,c.Z)(a.Z,(0,r.d)(["absolute","fixed","top","bottom"]),l.Z,o.Z);var u=d.extend({name:"v-progress-linear",directives:{intersect:n.Z},props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data(){return{internalLazyValue:this.value||0,isVisible:!0}},computed:{__cachedBackground(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:(0,h.kb)(this.normalizedValue,"%")}}))},__cachedIndeterminate(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:(0,h.kb)(100-this.normalizedBuffer,"%")}})):null},backgroundStyle(){const t=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return{opacity:t,[this.isReversed?"right":"left"]:(0,h.kb)(this.normalizedValue,"%"),width:(0,h.kb)(Math.max(0,this.normalizedBuffer-this.normalizedValue),"%")}},classes(){return{"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped,"v-progress-linear--visible":this.isVisible,...this.themeClasses}},computedTransition(){return this.indeterminate?i.Z5:i.Qn},isReversed(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer(){return this.normalize(this.bufferValue)},normalizedValue(){return this.normalize(this.internalLazyValue)},reactive(){return Boolean(this.$listeners.change)},styles(){const t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(t.width=(0,h.kb)(this.normalizedBuffer,"%")),t}},methods:{genContent(){const t=(0,h.z9)(this,"default",{value:this.internalLazyValue});return t?this.$createElement("div",{staticClass:"v-progress-linear__content"},t):null},genListeners(){const t=this.$listeners;return this.reactive&&(t.click=this.onClick),t},genProgressBar(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:{[t]:!0}}))},onClick(t){if(!this.reactive)return;const{width:e}=this.$el.getBoundingClientRect();this.internalValue=t.offsetX/e*100},onObserve(t,e,s){this.isVisible=s},normalize(t){return t<0?0:t>100?100:parseFloat(t)}},render(t){const e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:{bottom:this.bottom?0:void 0,height:this.active?(0,h.kb)(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},2691:function(t,e,s){s.d(e,{Z:function(){return o}});var i=s(3358),n=s(6952),a=s(8085),r=s(3325),l=s(4589),o=(0,r.Z)((0,i.Z)("bar",["height","window"]),n.Z,a.Z).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes(){return{"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window,...this.themeClasses}},computedHeight(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles(){return{height:(0,l.kb)(this.computedHeight)}}},methods:{updateApplication(){return this.$el?this.$el.clientHeight:this.computedHeight}},render(t){const e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),(0,l.z9)(this))}})},3242:function(t,e,s){var i=s(8085);e["Z"]=i.Z.extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark(){return this.root?this.rootIsDark:i.Z.options.computed.isDark.call(this)}},render(){return this.$slots.default&&this.$slots.default.find((t=>!t.isComment&&" "!==t.text))}})},7342:function(t,e,s){s.d(e,{Z:function(){return r}});var i=s(144),n=s(7003),a=n.Z,r=i.Z.extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress(){return!1===this.loading?null:this.$slots.progress||this.$createElement(a,{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},423:function(t,e,s){var i=s(144);e["Z"]=i.Z.extend({name:"returnable",props:{returnValue:null},data:()=>({isActive:!1,originalValue:null}),watch:{isActive(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save(t){this.originalValue=t,setTimeout((()=>{this.isActive=!1}))}}})},1869:function(t,e,s){s.r(e),s.d(e,{default:function(){return $}});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.item.Options.show?s("v-col",{class:t.setup.size},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:t.vals.status.level,color:t.vals.status.color,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" ")]),s("v-divider"),s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",{attrs:{align:"center"}},[s("div",{staticClass:"headline font-weight-bold text-truncate"},[t._v(" "+t._s(t._f("scene_text")(t.vals.main.text))+" ")])]),s("v-divider",{attrs:{vertical:""}}),s("v-col",{staticClass:"col-3",attrs:{align:"center"}},[s("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on,n=e.attrs;return[s("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),i),[s("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.rightIcon)+" ")])],1)]}}],null,!1,4018787445)},[s("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[s("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:t.vals.sceneSelected,callback:function(e){t.$set(t.vals,"sceneSelected",e)},expression:"vals.sceneSelected"}},t._l(t.vals.scenes,(function(e,i){return s("v-list-item",{key:i,on:{click:function(s){return t.setScene(e)}}},[s("v-list-item-content",[s("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(t._f("scene_text")(e))+" ")])],1),e===t.vals.main.text?s("v-list-item-icon",[s("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1)],1)],1),s("v-divider"),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",[t._v(t._s(t.vals.info.left1Icon))]),t._v(t._s(t.vals.info.left1Text)+" ")],1)],1)],1):t._e()},n=[],a={filters:{scene_text(t){return t.replace(/_/g," ")}},props:{item:{type:Object,default:()=>({name:"scene"})}},data:()=>({name:"scene",setup:{size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{bar:["state:unknown:0:success","state::100:success"]},main:[{text:["state:unknown:...","state::%s"]}],info:{left1:["state:unknown::mdi-movie-open","state:::mdi-movie-open-check"]}},vals:{title:"",status:{level:0,color:""},main:{text:"",rightIcon:"mdi-dots-vertical"},info:{left1Icon:"",left1Text:""},scenes:[],sceneSelected:-1}}),watch:{item:{immediate:!0,deep:!0,handler(t){let e=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||e,this.setValues(),this.vals.sceneSelected=this.vals.scenes.indexOf(this.vals.main.text)}}},created(){let t=this.$fhem.getEl(this.item,"Options","setup","size"),e=this.$fhem.getEl(this.item,"Options","setup","status"),s=this.$fhem.getEl(this.item,"Options","setup","main"),i=this.$fhem.getEl(this.item,"Options","setup","info");t&&(this.setup.size=t),e&&Object.assign(this.setup.status,e),s&&Object.assign(this.setup.main,s),i&&Object.assign(this.setup.info,i),this.setValues(),this.loadScenes()},methods:{setValues(){let t=this.$fhem.handleVals(this.item,this.setup.status.bar),e=this.$fhem.handleVals(this.item,this.setup.main[0].text),s=this.$fhem.handleVals(this.item,this.setup.info.left1);this.vals.status.level=t[0]||"100",this.vals.status.color=t[1]||"success",this.vals.main.text=e[0]||"",this.vals.info.left1Icon=s[1]||"",this.vals.info.left1Text=s[0]||""},loadScenes(){let t=[{param:"cmd",value:"get "+this.item.Name+" scenes"},{param:"XHR",value:"1"}];this.vals.scenes.splice(0),this.$fhem.request(t).then((t=>{if(t){let e=t.replace("\n\n","").split("\n");this.vals.scenes.push(...e)}this.vals.sceneSelected=this.vals.scenes.indexOf(this.vals.main.text)}))},setScene(t){if(this.vals.mainState=t,this.vals.mainState!=this.item.Readings.state.Value){let t="set "+this.item.Name+" scene "+this.vals.mainState;this.$fhem.request(t)}}}},r=a,l=s(1001),o=s(3453),h=s.n(o),c=s(3150),d=s(2371),u=s(7118),v=s(2102),m=s(1418),f=s(6428),p=s(6816),g=s(7620),b=s(1960),x=s(3249),y=s(459),_=s(1152),k=s(7003),C=s(2877),T=s(2691),Z=(0,l.Z)(r,i,n,!1,null,null,null),$=Z.exports;h()(Z,{VBtn:c.Z,VCard:d.Z,VCardText:u.ZB,VCardTitle:u.EB,VCol:v.Z,VDivider:m.Z,VIcon:f.Z,VList:p.Z,VListItem:g.Z,VListItemContent:b.km,VListItemGroup:x.Z,VListItemIcon:y.Z,VListItemTitle:b.V9,VMenu:_.Z,VProgressLinear:k.Z,VRow:C.Z,VSystemBar:T.Z})}}]); \ No newline at end of file +"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[869],{9968:function(){},2371:function(t,e,s){s(9968);var i=s(5648),n=s(7342),a=s(6505),r=s(3325);e["Z"]=(0,r.Z)(n.Z,a.Z,i.Z).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes(){return{"v-card":!0,...a.Z.options.computed.classes.call(this),"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised,...i.Z.options.computed.classes.call(this)}},styles(){const t={...i.Z.options.computed.styles.call(this)};return this.img&&(t.background=`url("${this.img}") center center / cover no-repeat`),t}},methods:{genProgress(){const t=n.Z.options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render(t){const{tag:e,data:s}=this.generateRouteLink();return s.style=this.styles,this.isClickable&&(s.attrs=s.attrs||{},s.attrs.tabindex=0),t(e,this.setBackgroundColor(this.color,s),[this.genProgress(),this.$slots.default])}})},7118:function(t,e,s){s.d(e,{h7:function(){return a},Qq:function(){return r},ZB:function(){return l},EB:function(){return o}});var i=s(2371),n=s(4589);const a=(0,n.Ji)("v-card__actions"),r=(0,n.Ji)("v-card__subtitle"),l=(0,n.Ji)("v-card__text"),o=(0,n.Ji)("v-card__title");i.Z},1152:function(t,e,s){s.d(e,{Z:function(){return x}});var i=s(3242),n=s(5795),a=s(4561),r=s(5907),l=s(5936),o=s(423),h=s(3712),c=s(2936),d=s(8085),u=s(5600),v=s(549),m=s(3325),f=s(1824),p=s(4589),g=s(1439);const b=(0,m.Z)(r.Z,a.Z,l.Z,o.Z,h.Z,c.Z,d.Z);var x=b.extend({name:"v-menu",directives:{ClickOutside:u.Z,Resize:v.Z},provide(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile(){return this.tiles[this.listIndex]},calculatedLeft(){const t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?(0,p.kb)(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight(){const t=this.auto?"200px":(0,p.kb)(this.maxHeight);return t||"0"},calculatedMaxWidth(){return(0,p.kb)(this.maxWidth)||"0"},calculatedMinWidth(){if(this.minWidth)return(0,p.kb)(this.minWidth)||"0";const t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return(0,p.kb)(Math.min(e,t))||"0"},calculatedTop(){const t=this.auto?(0,p.kb)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles(){return Boolean(this.tiles.find((t=>t.tabIndex>-1)))},styles(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive(t){t||(this.listIndex=-1)},isContentActive(t){this.hasJustFocused=t},listIndex(t,e){if(t in this.tiles){const e=this.tiles[t];e.classList.add("v-list-item--highlighted");const s=this.$refs.content.scrollTop,i=this.$refs.content.clientHeight;s>e.offsetTop-8?(0,g.Z)(e.offsetTop-e.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):s+i{this.startTransition().then((()=>{this.$refs.content&&(this.calculatedTopAuto=this.calcTopAuto(),this.auto&&(this.$refs.content.scrollTop=this.calcScrollPosition()))}))}))},calcScrollPosition(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active"),s=t.scrollHeight-t.offsetHeight;return e?Math.min(s,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);const s=e.offsetTop-this.calcScrollPosition(),i=t.querySelector(".v-list-item").offsetTop;return this.computedTop-s-i-1},changeListIndex(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==p.Do.tab){if(t.keyCode===p.Do.down)this.nextTile();else if(t.keyCode===p.Do.up)this.prevTile();else if(t.keyCode===p.Do.end)this.lastTile();else if(t.keyCode===p.Do.home)this.firstTile();else{if(t.keyCode!==p.Do.enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional(t){const e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes(){const t=n.Z.options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?{...t,"aria-activedescendant":this.activeTile.id}:t},genActivatorListeners(){const t=l.Z.options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition(){const t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives(){const t=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&t.push({name:"click-outside",value:{handler:()=>{this.isActive=!1},closeConditional:this.closeConditional,include:()=>[this.$el,...this.getOpenDependentElements()]}}),t},genContent(){const t={attrs:{...this.getScopeIdAttrs(),role:"role"in this.$attrs?this.$attrs.role:"menu"},staticClass:"v-menu__content",class:{...this.rootThemeClasses,...this.roundedClasses,"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive,[this.contentClass.trim()]:!0},style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:t=>{const e=t.target;e.getAttribute("disabled")||this.closeOnContentClick&&(this.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(t.on=t.on||{},t.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(t.on=t.on||{},t.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(t.on=t.on||{},t.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",t,this.getContentSlot())},getTiles(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item, .v-divider, .v-subheader")))},mouseEnterHandler(){this.runDelay("open",(()=>{this.hasJustFocused||(this.hasJustFocused=!0)}))},mouseLeaveHandler(t){this.runDelay("close",(()=>{var e;null!=(e=this.$refs.content)&&e.contains(t.relatedTarget)||requestAnimationFrame((()=>{this.isActive=!1,this.callDeactivate()}))}))},nextTile(){const t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile(){const t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},lastTile(){const t=this.tiles[this.tiles.length-1];t&&(this.listIndex=this.tiles.length-1,-1===t.tabIndex&&this.prevTile())},firstTile(){const t=this.tiles[0];t&&(this.listIndex=0,-1===t.tabIndex&&this.nextTile())},onKeyDown(t){if(t.keyCode===p.Do.esc){setTimeout((()=>{this.isActive=!1}));const t=this.getActivator();this.$nextTick((()=>t&&t.focus()))}else!this.isActive&&[p.Do.up,p.Do.down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((()=>this.changeListIndex(t)))},onResize(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render(t){const e={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",e,[!this.activator&&this.genActivator(),this.showLazyContent((()=>[this.$createElement(i.Z,{props:{root:!0,light:this.light,dark:this.dark}},[this.genTransition()])]))])}})},7003:function(t,e,s){s.d(e,{Z:function(){return u}});var i=s(5827),n=s(8083),a=s(6952),r=s(3536),l=s(1431),o=s(8085),h=s(4589),c=s(3325);const d=(0,c.Z)(a.Z,(0,r.d)(["absolute","fixed","top","bottom"]),l.Z,o.Z);var u=d.extend({name:"v-progress-linear",directives:{intersect:n.Z},props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data(){return{internalLazyValue:this.value||0,isVisible:!0}},computed:{__cachedBackground(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:(0,h.kb)(this.normalizedValue,"%")}}))},__cachedIndeterminate(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:(0,h.kb)(100-this.normalizedBuffer,"%")}})):null},backgroundStyle(){const t=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return{opacity:t,[this.isReversed?"right":"left"]:(0,h.kb)(this.normalizedValue,"%"),width:(0,h.kb)(Math.max(0,this.normalizedBuffer-this.normalizedValue),"%")}},classes(){return{"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped,"v-progress-linear--visible":this.isVisible,...this.themeClasses}},computedTransition(){return this.indeterminate?i.Z5:i.Qn},isReversed(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer(){return this.normalize(this.bufferValue)},normalizedValue(){return this.normalize(this.internalLazyValue)},reactive(){return Boolean(this.$listeners.change)},styles(){const t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(t.width=(0,h.kb)(this.normalizedBuffer,"%")),t}},methods:{genContent(){const t=(0,h.z9)(this,"default",{value:this.internalLazyValue});return t?this.$createElement("div",{staticClass:"v-progress-linear__content"},t):null},genListeners(){const t=this.$listeners;return this.reactive&&(t.click=this.onClick),t},genProgressBar(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:{[t]:!0}}))},onClick(t){if(!this.reactive)return;const{width:e}=this.$el.getBoundingClientRect();this.internalValue=t.offsetX/e*100},onObserve(t,e,s){this.isVisible=s},normalize(t){return t<0?0:t>100?100:parseFloat(t)}},render(t){const e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:{bottom:this.bottom?0:void 0,height:this.active?(0,h.kb)(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},2691:function(t,e,s){s.d(e,{Z:function(){return o}});var i=s(3358),n=s(6952),a=s(8085),r=s(3325),l=s(4589),o=(0,r.Z)((0,i.Z)("bar",["height","window"]),n.Z,a.Z).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes(){return{"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window,...this.themeClasses}},computedHeight(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles(){return{height:(0,l.kb)(this.computedHeight)}}},methods:{updateApplication(){return this.$el?this.$el.clientHeight:this.computedHeight}},render(t){const e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),(0,l.z9)(this))}})},3242:function(t,e,s){var i=s(8085);e["Z"]=i.Z.extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark(){return this.root?this.rootIsDark:i.Z.options.computed.isDark.call(this)}},render(){return this.$slots.default&&this.$slots.default.find((t=>!t.isComment&&" "!==t.text))}})},7342:function(t,e,s){s.d(e,{Z:function(){return r}});var i=s(144),n=s(7003),a=n.Z,r=i.Z.extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress(){return!1===this.loading?null:this.$slots.progress||this.$createElement(a,{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},423:function(t,e,s){var i=s(144);e["Z"]=i.Z.extend({name:"returnable",props:{returnValue:null},data:()=>({isActive:!1,originalValue:null}),watch:{isActive(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save(t){this.originalValue=t,setTimeout((()=>{this.isActive=!1}))}}})},1869:function(t,e,s){s.r(e),s.d(e,{default:function(){return $}});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.item.Options.show?s("v-col",{class:t.setup.size},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:t.vals.status.level,color:t.vals.status.color,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" ")]),s("v-divider"),s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",{attrs:{align:"center"}},[s("div",{staticClass:"headline font-weight-bold text-truncate"},[t._v(" "+t._s(t._f("scene_text")(t.vals.main.text))+" ")])]),s("v-divider",{attrs:{vertical:""}}),s("v-col",{staticClass:"col-3",attrs:{align:"center"}},[s("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on,n=e.attrs;return[s("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),i),[s("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.rightIcon)+" ")])],1)]}}],null,!1,4018787445)},[s("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[s("v-list-item-group",{attrs:{"active-class":"success--text"},model:{value:t.vals.sceneSelected,callback:function(e){t.$set(t.vals,"sceneSelected",e)},expression:"vals.sceneSelected"}},t._l(t.vals.scenes,(function(e,i){return s("v-list-item",{key:i,on:{click:function(s){return t.setScene(e)}}},[s("v-list-item-content",[s("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(t._f("scene_text")(e))+" ")])],1),e===t.vals.main.text?s("v-list-item-icon",[s("v-icon",[t._v("mdi-check")])],1):t._e()],1)})),1)],1)],1)],1)],1)],1),s("v-divider"),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",[t._v(t._s(t.vals.info.left1Icon))]),t._v(t._s(t.vals.info.left1Text)+" ")],1)],1)],1):t._e()},n=[],a={filters:{scene_text(t){return t.replace(/_/g," ")}},props:{item:{type:Object,default:()=>({name:"scene"})}},data:()=>({name:"scene",setup:{size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{bar:["state:unknown:0:success","state::100:success"]},main:[{text:["state:unknown:...","state::%s"]}],info:{left1:["state:unknown::mdi-movie-open","state:::mdi-movie-open-check"]}},vals:{title:"",status:{level:0,color:""},main:{text:"",rightIcon:"mdi-dots-vertical"},info:{left1Icon:"",left1Text:""},scenes:[],sceneSelected:-1}}),watch:{item:{immediate:!0,deep:!0,handler(t){let e=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||e,this.setValues(),this.vals.sceneSelected=this.vals.scenes.indexOf(this.vals.main.text)}}},created(){let t=this.$fhem.getEl(this.item,"Options","setup","size"),e=this.$fhem.getEl(this.item,"Options","setup","status"),s=this.$fhem.getEl(this.item,"Options","setup","main"),i=this.$fhem.getEl(this.item,"Options","setup","info");t&&(this.setup.size=t),e&&Object.assign(this.setup.status,e),s&&Object.assign(this.setup.main,s),i&&Object.assign(this.setup.info,i),this.setValues(),this.loadScenes()},methods:{setValues(){let t=this.$fhem.handleVals(this.item,this.setup.status.bar),e=this.$fhem.handleVals(this.item,this.setup.main[0].text),s=this.$fhem.handleVals(this.item,this.setup.info.left1);this.vals.status.level=t[0]||"100",this.vals.status.color=t[1]||"success",this.vals.main.text=e[0]||"",this.vals.info.left1Icon=s[1]||"",this.vals.info.left1Text=s[0]||""},loadScenes(){let t=[{param:"cmd",value:"get "+this.item.Name+" scenes"},{param:"XHR",value:"1"}];this.vals.scenes.splice(0),this.$fhem.request(t).then((t=>{if(t){let e=t.replace("\n\n","").split("\n");this.vals.scenes.push(...e)}this.vals.sceneSelected=this.vals.scenes.indexOf(this.vals.main.text)}))},setScene(t){if(this.vals.mainState=t,this.vals.mainState!=this.item.Readings.state.Value){let t="set "+this.item.Name+" scene "+this.vals.mainState;this.$fhem.request(t)}}}},r=a,l=s(1001),o=s(3453),h=s.n(o),c=s(3150),d=s(2371),u=s(7118),v=s(2102),m=s(1418),f=s(6428),p=s(6816),g=s(7620),b=s(1960),x=s(7874),y=s(459),_=s(1152),k=s(7003),C=s(2877),T=s(2691),Z=(0,l.Z)(r,i,n,!1,null,null,null),$=Z.exports;h()(Z,{VBtn:c.Z,VCard:d.Z,VCardText:u.ZB,VCardTitle:u.EB,VCol:v.Z,VDivider:m.Z,VIcon:f.Z,VList:p.Z,VListItem:g.Z,VListItemContent:b.km,VListItemGroup:x.Z,VListItemIcon:y.Z,VListItemTitle:b.V9,VMenu:_.Z,VProgressLinear:k.Z,VRow:C.Z,VSystemBar:T.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/96-legacy.29e7d923.js b/www/fhemapp/js/96-legacy.29e7d923.js new file mode 100644 index 00000000..31f6503f --- /dev/null +++ b/www/fhemapp/js/96-legacy.29e7d923.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[96],{1830:function(e,t,n){n.d(t,{Z:function(){return b}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"text-center"},["zzz"!=e.item.Options.sortby?n("v-chip",{attrs:{small:"",color:"secondary"}},[n("v-icon",{attrs:{left:""}},[e._v(" mdi-sort-ascending ")]),e._v(" "+e._s(e.item.Options.sortby)+" ")],1):e._e(),n("v-btn",{attrs:{href:e.toFhem(),target:"_blank",small:"",icon:""}},[n("v-icon",{attrs:{small:""}},[e._v(" mdi-link ")])],1),n("v-dialog",{attrs:{"max-width":"90%",scrollable:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,s=t.attrs;return[n("v-btn",e._g(e._b({attrs:{small:"",icon:""}},"v-btn",s,!1),i),[n("v-icon",{attrs:{small:""}},[e._v(" mdi-code-json ")])],1)]}}]),model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[n("v-card",{staticClass:"secondary lighten-1"},[n("v-card-title",{staticClass:"secondary"},[n("v-btn",{attrs:{icon:""},on:{click:function(t){e.deep=e.deep>1?1:5}}},[n("v-icon",[e._v("mdi-file-tree-outline")])],1),n("v-spacer"),e._v(" "+e._s(e.item.Name)+" "),n("v-spacer"),n("v-btn",{attrs:{icon:""},on:{click:function(t){e.dialog=!1}}},[n("v-icon",[e._v("mdi-close")])],1)],1),n("v-card-text",[n("div",{ref:"jsonContent",staticClass:"select"},[n("vue-json-pretty",{attrs:{"show-line":!1,deep:e.deep,data:e.item}})],1)])],1)],1)],1)},s=[],a=n(4566),o=n.n(a),l={name:"JsonList",props:{item:{type:Object,default:function(){return{name:"json"}}}},data:function(){return{dialog:!1,deep:1}},components:{VueJsonPretty:o()},methods:{toFhem:function(){var e=this.$fhem.createURL([{param:"detail",value:this.item.Name}]);return e}}},r=l,c=n(1001),d=n(3453),p=n.n(d),u=n(3150),v=n(2371),h=n(7118),f=n(5424),m=n(4497),x=n(6428),g=n(9762),_=(0,c.Z)(r,i,s,!1,null,"4fc9ba56",null),b=_.exports;p()(_,{VBtn:u.Z,VCard:v.Z,VCardText:h.ZB,VCardTitle:h.EB,VChip:f.Z,VDialog:m.Z,VIcon:x.Z,VSpacer:g.Z})},1977:function(e,t,n){n.r(t),n.d(t,{default:function(){return S}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.Options.show?n("v-col",{class:e.item.Options.setup.size||e.size},[n("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[n("v-progress-linear",{attrs:{height:"7",value:e.item.Options.status.level||e.status.level,color:e.item.Options.status.color||e.status.color,"background-color":"secondary darken-1"}}),n("v-card-title",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.name)+" "),n("v-spacer"),e.item.Options.status.isActive?n("v-btn",{attrs:{small:"",icon:""},on:{click:e.expand}},[n("v-icon",{attrs:{small:""}},[e._v(" "+e._s(e.maxIcon)+" ")])],1):e._e(),e.app.options.debugMode?n("jsonList",{attrs:{item:e.item}}):e._e()],1),n("v-divider"),e.item.Options.status.isActive?e._e():n("div",[n("v-card-text",[n("v-row",{attrs:{align:"center"}},[n("v-col",{attrs:{align:"center"}},[n("div",{staticClass:"headline font-weight-bold"},[e._v(" "+e._s(e.item.Options.status.error)+" ")])])],1)],1),n("v-divider")],1),e.item.Options.status.isActive?n("div",[n("v-card-text",[n("v-row",{attrs:{align:"center"}},[n("v-col",{attrs:{align:"center"}},[n("div",{staticClass:"headline font-weight-bold"},[e._v(" "+e._s(e.text)+" ")])])],1)],1),n("v-card-text",{staticClass:"pa-0"},[e.expanded?n("v-row",{attrs:{align:"center"}},[n("v-col",[n("v-expansion-panels",{attrs:{accordion:"",focusable:"",flat:""}},e._l(e.defs.profiles,(function(t,i){return n("v-expansion-panel",{key:i},[n("v-expansion-panel-header",{attrs:{color:"secondary"}},[e._v(" "+e._s(t.time)+" ")]),n("v-expansion-panel-content",[e._v(" "+e._s(t.weekdays)+" ")])],1)})),1)],1)],1):e._e()],1)],1):e._e(),n("v-divider"),n("v-system-bar",{attrs:{color:"secondary darken-1"}},[n("v-icon",{staticClass:"ml-0",attrs:{color:e.item.Options.info.left1IconColor}},[e._v(" "+e._s(e.item.Options.info.left1Icon)+" ")]),n("div",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.info.left1Text)+" ")]),n("v-icon",{staticClass:"ml-2",attrs:{color:e.item.Options.info.left2IconColor}},[e._v(" "+e._s(e.item.Options.info.left2Icon)+" ")]),n("div",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.info.left2Text)+" ")]),n("v-spacer"),n("v-icon",{attrs:{color:e.item.Options.info.mid1IconColor}},[e._v(" "+e._s(e.item.Options.info.mid1Icon)+" ")]),n("div",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.info.mid1Text)+" ")]),n("v-icon",{staticClass:"ml-2",attrs:{color:e.item.Options.info.mid2IconColor}},[e._v(" "+e._s(e.item.Options.info.mid2Icon)+" ")]),n("div",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.info.mid2Text)+" ")]),n("v-spacer"),n("v-icon",{attrs:{color:e.item.Options.info.right1IconColor}},[e._v(" "+e._s(e.item.Options.info.right1Icon)+" ")]),n("div",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.info.right1Text)+" ")]),n("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:e.item.Options.info.right2IconColor}},[e._v(" "+e._s(e.item.Options.info.right2Icon)+" ")]),n("div",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.info.right2Text)+" ")])],1)],1)],1):e._e()},s=[],a=n(5200),o=n(2032),l=(n(4916),n(3123),n(1539),n(3948),n(7601),n(1830)),r={components:{jsonList:l.Z},props:{item:{type:Object,default:function(){return{name:"wdtimer"}}}},data:function(){return{name:"wdtimer",maxIcon:"mdi-arrow-expand",expanded:!1,size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{color:"success",level:0},text:"",app:{options:{debugMode:!1}},defs:{device:null,globalWeekdays:null,lang:null,profiles:[]}}},watch:{item:{immediate:!0,deep:!0,handler:function(){}}},created:function(){this.app.options=this.$fhem.app.options,this.$fhem.getEl(this.item,"Options","setup","expanded")&&this.expand(),this.loadDefs()},methods:{expand:function(){this.expanded?(this.expanded=!1,this.maxIcon="mdi-arrow-expand"):(this.expanded=!0,this.maxIcon="mdi-arrow-collapse")},loadDefs:function(){if(this.defs={device:null,globalWeekdays:null,lang:null,profiles:[]},"WeekdayTimer"===this.$fhem.getEl(this.item,"Internals","TYPE")){var e=this.$fhem.getEl(this.item,"Internals","DEF").split(" ");if(e.length>1){var t,n=(0,o.Z)(e.entries());try{for(n.s();!(t=n.n()).done;){var i=(0,a.Z)(t.value,2),s=i[0],l=i[1];if(0===s&&(this.defs.device=l),s>0&&/^[0-8]*$/.test(l)&&(this.defs.globalWeekdays=l),s>0&&/^de|en|fr|nl$/.test(l)&&(this.defs.lang=l),s>0&&/\|/.test(l)){var r=l.split("|"),c={};/:|^{*}$/.test(r[0])&&r.unshift(this.defs.globalWeekdays||"0123456"),r.length>2&&(c={weekdays:r[0].split(""),time:new Date("1900-01-01T"+r[1]),cmd:r[2]}),this.defs.profiles.push(c)}}}catch(d){n.e(d)}finally{n.f()}}}else this.$fhem.log({lvl:1,msg:"Template is not a FHEM-WeekdayTimer.",meta:this.item})}}},c=r,d=n(1001),p=n(3453),u=n.n(p),v=n(3150),h=n(2371),f=n(7118),m=n(2102),x=n(1418),g=n(4367),_=n(7352),b=n(6257),C=n(4589),y=n(3325),k=(0,y.Z)((0,_.d)("expansionPanels","v-expansion-panel","v-expansion-panels"),(0,b.J)("expansionPanel",!0)).extend({name:"v-expansion-panel",props:{disabled:Boolean,readonly:Boolean},data:function(){return{content:null,header:null,nextIsActive:!1}},computed:{classes:function(){return(0,g.Z)({"v-expansion-panel--active":this.isActive,"v-expansion-panel--next-active":this.nextIsActive,"v-expansion-panel--disabled":this.isDisabled},this.groupClasses)},isDisabled:function(){return this.expansionPanels.disabled||this.disabled},isReadonly:function(){return this.expansionPanels.readonly||this.readonly}},methods:{registerContent:function(e){this.content=e},unregisterContent:function(){this.content=null},registerHeader:function(e){this.header=e,e.$on("click",this.onClick)},unregisterHeader:function(){this.header=null},onClick:function(e){e.detail&&this.header.$el.blur(),this.$emit("click",e),this.isReadonly||this.isDisabled||this.toggle()},toggle:function(){var e=this;this.$nextTick((function(){return e.$emit("change")}))}},render:function(e){return e("div",{staticClass:"v-expansion-panel",class:this.classes,attrs:{"aria-expanded":String(this.isActive)}},(0,C.z9)(this))}}),Z=n(5827),O=n(8625),w=n(6952),I=(0,y.Z)(O.Z,w.Z,(0,b.f)("expansionPanel","v-expansion-panel-content","v-expansion-panel")),V=I.extend().extend({name:"v-expansion-panel-content",data:function(){return{isActive:!1}},computed:{parentIsActive:function(){return this.expansionPanel.isActive}},watch:{parentIsActive:{immediate:!0,handler:function(e,t){var n=this;e&&(this.isBooted=!0),null==t?this.isActive=e:this.$nextTick((function(){return n.isActive=e}))}}},created:function(){this.expansionPanel.registerContent(this)},beforeDestroy:function(){this.expansionPanel.unregisterContent()},render:function(e){var t=this;return e(Z.Fx,this.showLazyContent((function(){return[e("div",t.setBackgroundColor(t.color,{staticClass:"v-expansion-panel-content",directives:[{name:"show",value:t.isActive}]}),[e("div",{class:"v-expansion-panel-content__wrap"},(0,C.z9)(t))])]})))}}),A=n(172),$=n(6286),B=(0,y.Z)(w.Z,(0,b.f)("expansionPanel","v-expansion-panel-header","v-expansion-panel")),P=B.extend().extend({name:"v-expansion-panel-header",directives:{ripple:$.Z},props:{disableIconRotate:Boolean,expandIcon:{type:String,default:"$expand"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1}},data:function(){return{hasMousedown:!1}},computed:{classes:function(){return{"v-expansion-panel-header--active":this.isActive,"v-expansion-panel-header--mousedown":this.hasMousedown}},isActive:function(){return this.expansionPanel.isActive},isDisabled:function(){return this.expansionPanel.isDisabled},isReadonly:function(){return this.expansionPanel.isReadonly}},created:function(){this.expansionPanel.registerHeader(this)},beforeDestroy:function(){this.expansionPanel.unregisterHeader()},methods:{onClick:function(e){this.$emit("click",e)},genIcon:function(){var e=(0,C.z9)(this,"actions")||[this.$createElement(A.Z,this.expandIcon)];return this.$createElement(Z.Z5,[this.$createElement("div",{staticClass:"v-expansion-panel-header__icon",class:{"v-expansion-panel-header__icon--disable-rotate":this.disableIconRotate},directives:[{name:"show",value:!this.isDisabled}]},e)])}},render:function(e){var t=this;return e("button",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-header",class:this.classes,attrs:{tabindex:this.isDisabled?-1:null,type:"button","aria-expanded":this.isActive},directives:[{name:"ripple",value:this.ripple}],on:(0,g.Z)((0,g.Z)({},this.$listeners),{},{click:this.onClick,mousedown:function(){return t.hasMousedown=!0},mouseup:function(){return t.hasMousedown=!1}})}),[(0,C.z9)(this,"default",{open:this.isActive},!0),this.hideActions||this.genIcon()])}}),E=(n(4944),n(3792),n(4622)),T=n(1824),D=E.y.extend({name:"v-expansion-panels",provide:function(){return{expansionPanels:this}},props:{accordion:Boolean,disabled:Boolean,flat:Boolean,hover:Boolean,focusable:Boolean,inset:Boolean,popout:Boolean,readonly:Boolean,tile:Boolean},computed:{classes:function(){return(0,g.Z)((0,g.Z)({},E.y.options.computed.classes.call(this)),{},{"v-expansion-panels":!0,"v-expansion-panels--accordion":this.accordion,"v-expansion-panels--flat":this.flat,"v-expansion-panels--hover":this.hover,"v-expansion-panels--focusable":this.focusable,"v-expansion-panels--inset":this.inset,"v-expansion-panels--popout":this.popout,"v-expansion-panels--tile":this.tile})}},created:function(){this.$attrs.hasOwnProperty("expand")&&(0,T.fK)("expand","multiple",this),Array.isArray(this.value)&&this.value.length>0&&"boolean"===typeof this.value[0]&&(0,T.fK)(':value="[true, false, true]"',':value="[0, 2]"',this)},methods:{updateItem:function(e,t){var n=this.getValue(e,t),i=this.getValue(e,t+1);e.isActive=this.toggleMethod(n),e.nextIsActive=this.toggleMethod(i)}}}),z=n(6428),j=n(7003),M=n(2877),R=n(9762),H=n(2691),L=(0,d.Z)(c,i,s,!1,null,null,null),S=L.exports;u()(L,{VBtn:v.Z,VCard:h.Z,VCardText:f.ZB,VCardTitle:f.EB,VCol:m.Z,VDivider:x.Z,VExpansionPanel:k,VExpansionPanelContent:V,VExpansionPanelHeader:P,VExpansionPanels:D,VIcon:z.Z,VProgressLinear:j.Z,VRow:M.Z,VSpacer:R.Z,VSystemBar:H.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/96.96944520.js b/www/fhemapp/js/96.96944520.js new file mode 100644 index 00000000..33c3abb2 --- /dev/null +++ b/www/fhemapp/js/96.96944520.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[96],{1830:function(e,t,s){s.d(t,{Z:function(){return b}});var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"text-center"},["zzz"!=e.item.Options.sortby?s("v-chip",{attrs:{small:"",color:"secondary"}},[s("v-icon",{attrs:{left:""}},[e._v(" mdi-sort-ascending ")]),e._v(" "+e._s(e.item.Options.sortby)+" ")],1):e._e(),s("v-btn",{attrs:{href:e.toFhem(),target:"_blank",small:"",icon:""}},[s("v-icon",{attrs:{small:""}},[e._v(" mdi-link ")])],1),s("v-dialog",{attrs:{"max-width":"90%",scrollable:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,n=t.attrs;return[s("v-btn",e._g(e._b({attrs:{small:"",icon:""}},"v-btn",n,!1),i),[s("v-icon",{attrs:{small:""}},[e._v(" mdi-code-json ")])],1)]}}]),model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[s("v-card",{staticClass:"secondary lighten-1"},[s("v-card-title",{staticClass:"secondary"},[s("v-btn",{attrs:{icon:""},on:{click:function(t){e.deep=e.deep>1?1:5}}},[s("v-icon",[e._v("mdi-file-tree-outline")])],1),s("v-spacer"),e._v(" "+e._s(e.item.Name)+" "),s("v-spacer"),s("v-btn",{attrs:{icon:""},on:{click:function(t){e.dialog=!1}}},[s("v-icon",[e._v("mdi-close")])],1)],1),s("v-card-text",[s("div",{ref:"jsonContent",staticClass:"select"},[s("vue-json-pretty",{attrs:{"show-line":!1,deep:e.deep,data:e.item}})],1)])],1)],1)],1)},n=[],a=s(4566),o=s.n(a),l={name:"JsonList",props:{item:{type:Object,default:()=>({name:"json"})}},data(){return{dialog:!1,deep:1}},components:{VueJsonPretty:o()},methods:{toFhem(){let e=this.$fhem.createURL([{param:"detail",value:this.item.Name}]);return e}}},r=l,c=s(1001),d=s(3453),p=s.n(d),h=s(3150),v=s(2371),m=s(7118),u=s(5424),x=s(4497),f=s(6428),g=s(9762),_=(0,c.Z)(r,i,n,!1,null,"4fc9ba56",null),b=_.exports;p()(_,{VBtn:h.Z,VCard:v.Z,VCardText:m.ZB,VCardTitle:m.EB,VChip:u.Z,VDialog:x.Z,VIcon:f.Z,VSpacer:g.Z})},1977:function(e,t,s){s.r(t),s.d(t,{default:function(){return R}});var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.item.Options.show?s("v-col",{class:e.item.Options.setup.size||e.size},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:e.item.Options.status.level||e.status.level,color:e.item.Options.status.color||e.status.color,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.name)+" "),s("v-spacer"),e.item.Options.status.isActive?s("v-btn",{attrs:{small:"",icon:""},on:{click:e.expand}},[s("v-icon",{attrs:{small:""}},[e._v(" "+e._s(e.maxIcon)+" ")])],1):e._e(),e.app.options.debugMode?s("jsonList",{attrs:{item:e.item}}):e._e()],1),s("v-divider"),e.item.Options.status.isActive?e._e():s("div",[s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",{attrs:{align:"center"}},[s("div",{staticClass:"headline font-weight-bold"},[e._v(" "+e._s(e.item.Options.status.error)+" ")])])],1)],1),s("v-divider")],1),e.item.Options.status.isActive?s("div",[s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",{attrs:{align:"center"}},[s("div",{staticClass:"headline font-weight-bold"},[e._v(" "+e._s(e.text)+" ")])])],1)],1),s("v-card-text",{staticClass:"pa-0"},[e.expanded?s("v-row",{attrs:{align:"center"}},[s("v-col",[s("v-expansion-panels",{attrs:{accordion:"",focusable:"",flat:""}},e._l(e.defs.profiles,(function(t,i){return s("v-expansion-panel",{key:i},[s("v-expansion-panel-header",{attrs:{color:"secondary"}},[e._v(" "+e._s(t.time)+" ")]),s("v-expansion-panel-content",[e._v(" "+e._s(t.weekdays)+" ")])],1)})),1)],1)],1):e._e()],1)],1):e._e(),s("v-divider"),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",{staticClass:"ml-0",attrs:{color:e.item.Options.info.left1IconColor}},[e._v(" "+e._s(e.item.Options.info.left1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.info.left1Text)+" ")]),s("v-icon",{staticClass:"ml-2",attrs:{color:e.item.Options.info.left2IconColor}},[e._v(" "+e._s(e.item.Options.info.left2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.info.left2Text)+" ")]),s("v-spacer"),s("v-icon",{attrs:{color:e.item.Options.info.mid1IconColor}},[e._v(" "+e._s(e.item.Options.info.mid1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.info.mid1Text)+" ")]),s("v-icon",{staticClass:"ml-2",attrs:{color:e.item.Options.info.mid2IconColor}},[e._v(" "+e._s(e.item.Options.info.mid2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.info.mid2Text)+" ")]),s("v-spacer"),s("v-icon",{attrs:{color:e.item.Options.info.right1IconColor}},[e._v(" "+e._s(e.item.Options.info.right1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.info.right1Text)+" ")]),s("v-icon",{staticClass:"ml-2 mr-0",attrs:{color:e.item.Options.info.right2IconColor}},[e._v(" "+e._s(e.item.Options.info.right2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[e._v(" "+e._s(e.item.Options.info.right2Text)+" ")])],1)],1)],1):e._e()},n=[],a=s(1830),o={components:{jsonList:a.Z},props:{item:{type:Object,default:()=>({name:"wdtimer"})}},data:()=>({name:"wdtimer",maxIcon:"mdi-arrow-expand",expanded:!1,size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{color:"success",level:0},text:"",app:{options:{debugMode:!1}},defs:{device:null,globalWeekdays:null,lang:null,profiles:[]}}),watch:{item:{immediate:!0,deep:!0,handler(){}}},created(){this.app.options=this.$fhem.app.options,this.$fhem.getEl(this.item,"Options","setup","expanded")&&this.expand(),this.loadDefs()},methods:{expand(){this.expanded?(this.expanded=!1,this.maxIcon="mdi-arrow-expand"):(this.expanded=!0,this.maxIcon="mdi-arrow-collapse")},loadDefs(){if(this.defs={device:null,globalWeekdays:null,lang:null,profiles:[]},"WeekdayTimer"===this.$fhem.getEl(this.item,"Internals","TYPE")){let s=this.$fhem.getEl(this.item,"Internals","DEF").split(" ");if(s.length>1)for(var[e,t]of s.entries())if(0===e&&(this.defs.device=t),e>0&&/^[0-8]*$/.test(t)&&(this.defs.globalWeekdays=t),e>0&&/^de|en|fr|nl$/.test(t)&&(this.defs.lang=t),e>0&&/\|/.test(t)){let e=t.split("|"),s={};/:|^{*}$/.test(e[0])&&e.unshift(this.defs.globalWeekdays||"0123456"),e.length>2&&(s={weekdays:e[0].split(""),time:new Date("1900-01-01T"+e[1]),cmd:e[2]}),this.defs.profiles.push(s)}}else this.$fhem.log({lvl:1,msg:"Template is not a FHEM-WeekdayTimer.",meta:this.item})}}},l=o,r=s(1001),c=s(3453),d=s.n(c),p=s(3150),h=s(2371),v=s(7118),m=s(2102),u=s(1418),x=s(7352),f=s(6257),g=s(4589),_=s(3325),b=(0,_.Z)((0,x.d)("expansionPanels","v-expansion-panel","v-expansion-panels"),(0,f.J)("expansionPanel",!0)).extend({name:"v-expansion-panel",props:{disabled:Boolean,readonly:Boolean},data(){return{content:null,header:null,nextIsActive:!1}},computed:{classes(){return{"v-expansion-panel--active":this.isActive,"v-expansion-panel--next-active":this.nextIsActive,"v-expansion-panel--disabled":this.isDisabled,...this.groupClasses}},isDisabled(){return this.expansionPanels.disabled||this.disabled},isReadonly(){return this.expansionPanels.readonly||this.readonly}},methods:{registerContent(e){this.content=e},unregisterContent(){this.content=null},registerHeader(e){this.header=e,e.$on("click",this.onClick)},unregisterHeader(){this.header=null},onClick(e){e.detail&&this.header.$el.blur(),this.$emit("click",e),this.isReadonly||this.isDisabled||this.toggle()},toggle(){this.$nextTick((()=>this.$emit("change")))}},render(e){return e("div",{staticClass:"v-expansion-panel",class:this.classes,attrs:{"aria-expanded":String(this.isActive)}},(0,g.z9)(this))}}),C=s(5827),y=s(8625),k=s(6952);const O=(0,_.Z)(y.Z,k.Z,(0,f.f)("expansionPanel","v-expansion-panel-content","v-expansion-panel"));var w=O.extend().extend({name:"v-expansion-panel-content",data:()=>({isActive:!1}),computed:{parentIsActive(){return this.expansionPanel.isActive}},watch:{parentIsActive:{immediate:!0,handler(e,t){e&&(this.isBooted=!0),null==t?this.isActive=e:this.$nextTick((()=>this.isActive=e))}}},created(){this.expansionPanel.registerContent(this)},beforeDestroy(){this.expansionPanel.unregisterContent()},render(e){return e(C.Fx,this.showLazyContent((()=>[e("div",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-content",directives:[{name:"show",value:this.isActive}]}),[e("div",{class:"v-expansion-panel-content__wrap"},(0,g.z9)(this))])])))}}),I=s(172),Z=s(6286);const V=(0,_.Z)(k.Z,(0,f.f)("expansionPanel","v-expansion-panel-header","v-expansion-panel"));var A=V.extend().extend({name:"v-expansion-panel-header",directives:{ripple:Z.Z},props:{disableIconRotate:Boolean,expandIcon:{type:String,default:"$expand"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1}},data:()=>({hasMousedown:!1}),computed:{classes(){return{"v-expansion-panel-header--active":this.isActive,"v-expansion-panel-header--mousedown":this.hasMousedown}},isActive(){return this.expansionPanel.isActive},isDisabled(){return this.expansionPanel.isDisabled},isReadonly(){return this.expansionPanel.isReadonly}},created(){this.expansionPanel.registerHeader(this)},beforeDestroy(){this.expansionPanel.unregisterHeader()},methods:{onClick(e){this.$emit("click",e)},genIcon(){const e=(0,g.z9)(this,"actions")||[this.$createElement(I.Z,this.expandIcon)];return this.$createElement(C.Z5,[this.$createElement("div",{staticClass:"v-expansion-panel-header__icon",class:{"v-expansion-panel-header__icon--disable-rotate":this.disableIconRotate},directives:[{name:"show",value:!this.isDisabled}]},e)])}},render(e){return e("button",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-header",class:this.classes,attrs:{tabindex:this.isDisabled?-1:null,type:"button","aria-expanded":this.isActive},directives:[{name:"ripple",value:this.ripple}],on:{...this.$listeners,click:this.onClick,mousedown:()=>this.hasMousedown=!0,mouseup:()=>this.hasMousedown=!1}}),[(0,g.z9)(this,"default",{open:this.isActive},!0),this.hideActions||this.genIcon()])}}),$=s(4622),B=s(1824),P=$.y.extend({name:"v-expansion-panels",provide(){return{expansionPanels:this}},props:{accordion:Boolean,disabled:Boolean,flat:Boolean,hover:Boolean,focusable:Boolean,inset:Boolean,popout:Boolean,readonly:Boolean,tile:Boolean},computed:{classes(){return{...$.y.options.computed.classes.call(this),"v-expansion-panels":!0,"v-expansion-panels--accordion":this.accordion,"v-expansion-panels--flat":this.flat,"v-expansion-panels--hover":this.hover,"v-expansion-panels--focusable":this.focusable,"v-expansion-panels--inset":this.inset,"v-expansion-panels--popout":this.popout,"v-expansion-panels--tile":this.tile}}},created(){this.$attrs.hasOwnProperty("expand")&&(0,B.fK)("expand","multiple",this),Array.isArray(this.value)&&this.value.length>0&&"boolean"===typeof this.value[0]&&(0,B.fK)(':value="[true, false, true]"',':value="[0, 2]"',this)},methods:{updateItem(e,t){const s=this.getValue(e,t),i=this.getValue(e,t+1);e.isActive=this.toggleMethod(s),e.nextIsActive=this.toggleMethod(i)}}}),E=s(6428),T=s(7003),D=s(2877),z=s(9762),j=s(2691),M=(0,r.Z)(l,i,n,!1,null,null,null),R=M.exports;d()(M,{VBtn:p.Z,VCard:h.Z,VCardText:v.ZB,VCardTitle:v.EB,VCol:m.Z,VDivider:u.Z,VExpansionPanel:b,VExpansionPanelContent:w,VExpansionPanelHeader:A,VExpansionPanels:P,VIcon:E.Z,VProgressLinear:T.Z,VRow:D.Z,VSpacer:z.Z,VSystemBar:j.Z})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/app-legacy.45707965.js b/www/fhemapp/js/app-legacy.60fdd80b.js similarity index 50% rename from www/fhemapp/js/app-legacy.45707965.js rename to www/fhemapp/js/app-legacy.60fdd80b.js index d3a93bc8..fb791e8c 100644 --- a/www/fhemapp/js/app-legacy.45707965.js +++ b/www/fhemapp/js/app-legacy.60fdd80b.js @@ -1 +1 @@ -(function(){var t={4376:function(t,e,n){"use strict";n(6992),n(8674),n(9601),n(7727);var a=n(144),s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-app",{staticClass:"noselect"},[a("v-overlay",{attrs:{value:t.app.options.loading}},[a("v-progress-circular",{attrs:{indeterminate:"",size:"64"}})],1),a("v-app-bar",{attrs:{app:"",color:t.appBar.color,dark:"","clipped-left":""}},[t.appBar.drawer?t._e():a("div",[a("v-app-bar-nav-icon",{on:{click:function(e){e.stopPropagation(),t.appBar.drawer=!t.appBar.drawer}}})],1),t.appBar.drawer?a("div",{staticClass:"text-h5"},[a("div",{staticClass:"text-h5 hidden-md-and-down"},[t._v(" "+t._s(t.appBar.clock)+" ")])]):t._e(),a("v-spacer"),t.app.options.mobileHeader||t.app.options.mobileHeaderContent?a("div",{staticClass:"text-h5 hidden-lg-and-up"},[t._v(" "+t._s(t.appBar.mobileHeader)+" ")]):t._e(),a("div",{staticClass:"text-h5 hidden-md-and-down"},[t._v(" "+t._s(t.appBar.header)+" ")]),a("v-spacer"),t.app.options.debugMode?a("v-btn",{attrs:{icon:""},on:{click:function(e){return t.goTo("/syslog")}}},[a("v-icon",[t._v("mdi-format-list-bulleted")])],1):t._e(),t.app.options.reloadBtn?a("v-btn",{attrs:{icon:""},on:{click:function(e){return t.reload()}}},[a("v-icon",[t._v("mdi-reload")])],1):t._e(),t.app.options.homeBtn&&!t.appBar.drawer?a("v-btn",{staticClass:"text-h5",attrs:{icon:""},on:{click:function(e){return t.goTo()}}},[a("v-icon",[t._v("mdi-home")])],1):t._e(),a("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,s=e.attrs;return[a("v-icon",t._g(t._b({staticClass:"ml-3",attrs:{small:"",color:t.status.color},domProps:{textContent:t._s(t.status.icon)}},"v-icon",s,!1),n))]}}])},[a("div",{domProps:{textContent:t._s(t.status.text)}}),a("div",{domProps:{textContent:t._s(t.status.time)}})])],1),a("v-navigation-drawer",{attrs:{app:"",color:"secondary",dark:this.$vuetify.theme.dark,clipped:""},model:{value:t.appBar.drawer,callback:function(e){t.$set(t.appBar,"drawer",e)},expression:"appBar.drawer"}},[a("v-img",{attrs:{src:n(2862)}}),a("v-divider"),a("v-list",{attrs:{nav:""}},[a("v-list-item",{key:"home",attrs:{link:"",to:"/"}},[a("v-list-item-icon",[a("v-icon",[t._v("mdi-home")])],1),a("v-list-item-content",[a("v-list-item-title",{staticClass:"text-left"},[t._v(" "+t._s(t.$t("app.navigation.home"))+" ")])],1)],1),a("v-divider"),t.showGroups?a("v-list-group",{attrs:{color:"secondary lighten-4","prepend-icon":"mdi-lightbulb-group",value:t.app.options.expandGroups},scopedSlots:t._u([{key:"activator",fn:function(){return[a("v-list-item-title",[t._v(t._s(t.$t("app.navigation.group")))])]},proxy:!0}],null,!1,444615855)},t._l(t.app.data.groupList,(function(e){return a("v-chip",{key:e.title,staticClass:"ma-2",attrs:{link:"",to:"/devices/"+e.route}},[t._v(" "+t._s(e.title)+" ")])})),1):t._e(),t.showRooms?a("v-list-group",{attrs:{color:"secondary lighten-4","prepend-icon":"mdi-floor-plan",value:t.app.options.expandRooms},scopedSlots:t._u([{key:"activator",fn:function(){return[a("v-list-item-title",[t._v(t._s(t.$t("app.navigation.room")))])]},proxy:!0}],null,!1,438615151)},t._l(t.app.data.roomList,(function(e){return a("v-chip",{key:e.title,staticClass:"ma-2",attrs:{link:"",to:"/devices/"+e.route}},[t._v(" "+t._s(e.title)+" ")])})),1):t._e(),a("v-divider"),a("v-list-item",{key:"dashboard",attrs:{link:"",to:"/dashboard"}},[a("v-list-item-icon",[a("v-icon",[t._v("mdi-view-dashboard")])],1),a("v-list-item-content",[a("v-list-item-title",{staticClass:"text-left"},[t._v(" "+t._s(t.$t("app.navigation.dashboard"))+" ")])],1)],1),a("v-divider"),a("v-list-item",{key:"system",attrs:{link:"",to:"/system"}},[a("v-list-item-icon",[a("v-icon",[t._v("mdi-tools")])],1),a("v-list-item-content",[a("v-list-item-title",{staticClass:"text-left"},[t._v(" "+t._s(t.$t("app.navigation.system"))+" ")])],1)],1),a("v-divider"),a("v-list-item",[a("v-list-item-content",[a("v-list-item-subtitle",[t._v(" "+t._s(t.version)+" ")])],1)],1)],1)],1),a("v-main",[a("v-container",{attrs:{fluid:""}},[a("Broadcaster"),a("router-view")],1)],1)],1)},r=[],i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-alert",{attrs:{value:t.alert,type:t.type,dense:"",text:"",outlined:""}},[n("v-row",{attrs:{align:"center"}},[n("v-col",[n("div",[t._v(" "+t._s(t.message)+" ")]),n("div",[t._v(" "+t._s(t.meta)+" ")])]),n("v-col",{staticClass:"shrink"},[n("v-btn",{attrs:{icon:"",small:""},on:{click:function(e){return t.clearMessage()}}},[n("v-icon",{attrs:{color:t.type}},[t._v(" mdi-close-circle ")])],1)],1)],1)],1)},o=[],p=(n(561),{name:"BroadCaster",data:function(){return{alert:!1,type:"info",types:["","error","info","info","success","warning"],message:"",meta:"",msgList:[]}},watch:{msgList:function(){this.msgList&&this.msgList.length>0?(this.type=this.types[this.msgList[0].lvl],this.message=this.msgList[0].msg,this.meta=this.msgList[0].meta,this.alert=!0):(this.alert=!1,this.type="info",this.message="",this.meta="")}},mounted:function(){var t=this;this.$fhem.on("message",(function(e){var n={lvl:5,msg:"no valid message received",meta:""};Object.assign(n,e),t.msgList.unshift(n)}))},methods:{clearMessage:function(){this.msgList.length>0&&this.msgList.splice(0,1)}}}),c=p,l=n(1001),u=n(3453),h=n.n(u),d=n(1234),m=n(3150),f=n(2102),v=n(6428),g=n(2877),b=(0,l.Z)(c,i,o,!1,null,null,null),y=b.exports;h()(b,{VAlert:d.Z,VBtn:m.Z,VCol:f.Z,VIcon:v.Z,VRow:g.Z});var k={components:{Broadcaster:y},data:function(){return{appBar:{color:"",drawer:null,clock:null,header:null},app:{options:{loading:!1,reloadBtn:!1,expandGroups:!1,expandRooms:!1,mobileHeaderContent:!1},session:{connect:!1},data:{roomList:[],groupList:[]}},version:"v"+n(4147).i8,status:{color:"secondary",icon:"mdi-circle",text:"unbekannt",time:""}}},computed:{showRooms:function(){return this.app.data.roomList.length>0},showGroups:function(){return this.app.data.groupList.length>0}},watch:{"app.session.connect":function(t){this.status.color=t?"success":"error",this.status.text=t?"online":"offline",this.status.time=this.$fhem.getDateTime()}},mounted:function(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.appBar=this.$fhem.app.appBar},methods:{reload:function(){location.reload(!0)},goTo:function(t){var e=t||"/";this.$router.currentRoute.path!=e&&this.$router.push(e)}}},x=k,w=n(7524),O=n(426),C=n(5206),Z=n(5424),R=n(9846),_=n(1418),L=n(7047),S=n(6816),j=n(9443),T=n(7620),E=n(1960),D=n(459),I=n(7877),B=n(5132),V=n(1058),F=n(624),A=n(9762),N=n(9330),P=(0,l.Z)(x,s,r,!1,null,"3b4d7587",null),H=P.exports;h()(P,{VApp:w.Z,VAppBar:O.Z,VAppBarNavIcon:C.Z,VBtn:m.Z,VChip:Z.Z,VContainer:R.Z,VDivider:_.Z,VIcon:v.Z,VImg:L.Z,VList:S.Z,VListGroup:j.Z,VListItem:T.Z,VListItemContent:E.km,VListItemIcon:D.Z,VListItemSubtitle:E.oZ,VListItemTitle:E.V9,VMain:I.Z,VNavigationDrawer:B.Z,VOverlay:V.Z,VProgressCircular:F.Z,VSpacer:A.Z,VTooltip:N.Z});n(1539),n(8783),n(3948);var M=n(8345);a.Z.use(M.Z);var $=[{path:"/",name:"Home",component:function(){return n.e(798).then(n.bind(n,6798))}},{path:"/system",name:"System",component:function(){return n.e(798).then(n.bind(n,6798))}},{path:"/dashboard",name:"Dashboard",component:function(){return n.e(798).then(n.bind(n,6798))}},{path:"/devices/:filter",name:"Devices",component:function(){return n.e(798).then(n.bind(n,6798))}},{path:"/settings",name:"Settings",component:function(){return n.e(884).then(n.bind(n,6884))}},{path:"/syslog",name:"Syslog",component:function(){return Promise.all([n.e(121),n.e(288),n.e(285),n.e(44)]).then(n.bind(n,4044))}}],U=new M.Z({mode:"hash",base:"",routes:$}),q=U,z=n(9132),G=n(9146),J=n(1846);a.Z.use(z.Z);var X={lang:{locales:{de:G.Z},current:"de"},theme:{dark:!0,themes:{dark:{primary:J.Z.grey.darken4,secondary:J.Z.grey.darken3,success:J.Z.green.accent2,accent:J.Z.green.accent2},light:{primary:J.Z.grey,secondary:J.Z.grey.lighten3,success:J.Z.green.accent3,accent:J.Z.green.accent3}}}},W=new z.Z(X),K=n(7166),Q=n.n(K),Y=(n(4747),n(4916),n(4723),n(7152));function tt(){var t=n(8973),e={};return t.keys().forEach((function(n){var a=n.match(/([A-Za-z0-9-_]+)\./i);if(a&&a.length>1){var s=a[1];e[s]=t(n)}})),e}a.Z.use(Y.Z);var et=new Y.Z({locale:"de",fallbackLocale:"en",messages:tt()}),nt=n(2032),at=n(8932),st=n(6198),rt=n(9726),it=n(6133),ot=n(2751),pt=n(796),ct=n(6035),lt=(n(5666),n(7042),n(3123),n(5306),n(7941),n(8309),n(1249),n(2707),n(9600),n(7601),n(9714),n(6977),n(2222),n(4603),n(8450),n(8386),n(2479),n(7187)),ut=n.n(lt),ht=function(t){(0,pt.Z)(n,t);var e=(0,ct.Z)(n);function n(){var t;return(0,it.Z)(this,n),t=e.call(this),t.app={connection:{location:window.location.protocol+"//"+window.location.hostname,port:window.location.port,path:"fhem",type:"websocket"},conn:null,connOffset:0,session:{connect:!1,ready:!1,csrf:null,restart:!1,restartCnt:0,logList:[]},options:{lang:"de",debugMode:!1,debugLevel:5,loading:!1,loadCount:0,clockInterval:1e3,clockFormat:{hour:"2-digit",minute:"2-digit"},clock:null,date:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500,ignoreFhemRoom:!1,ignoreFhemGroup:!1,ignoreFhemSortby:!1,mobileHeader:!1},theme:{dark:!0,themes:{}},appBar:{color:"primary",drawer:!1,clock:null,header:null,mobileHeader:null},templates:[],componentMap:[{name:"panel",component:"templ_panel"},{name:"chart",component:"templ_chart"},{name:"weather",component:"templ_weather"},{name:"list",component:"templ_list"},{name:"wdtimer",component:"templ_wdtimer"},{name:"sysmon",component:"templ_sysmon"},{name:"hmlan",component:"templ_hmlan"},{name:"sonos",component:"templ_sonos"},{name:"scenes",component:"templ_scenes"},{name:"cam",component:"templ_cam"},{name:"iframe",component:"templ_iframe"}],data:{roomList:[],groupList:[],deviceList:[],routeList:[],header:""},hasConnected:[]},t}return(0,ot.Z)(n,[{key:"loading",set:function(t){t&&this.app.options.loadCount++,!t&&this.app.options.loadCount>0&&this.app.options.loadCount--,this.app.options.loadCount>0&&!this.app.options.loading&&(this.app.options.loading=!0),0===this.app.options.loadCount&&(this.app.options.loading=!1)}},{key:"log",value:function(t){var e=["","mdi-alert-outline","mdi-connection","mdi-send-circle-outline","mdi-sync","mdi-hexagon-multiple-outline"],n=["","error","info","success","success","warning"],a=(new Date).toLocaleTimeString(this.app.options.lang),s=(new Date).getMilliseconds(),r={time:a+":"+("000"+s).slice(-3),msg:t.msg||"",lvl:t.lvl||5,meta:t.meta||null,icon:e[t.lvl||5],color:n[t.lvl||5]};this.app.options.logRecord&&r.lvl<=this.app.options.debugLevel&&(this.app.session.logList.unshift(r),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer)),1==r.lvl&&(this.app.options.loadCount=0,this.app.options.loading=!1,this.emit("message",r))}},{key:"getDate",value:function(t){var e=t?parseInt(t):0;return function(t){return new Date(t.setDate(t.getDate()-e)).toISOString()}(new Date).split("T")[0]}},{key:"getWeekDay",value:function(t){var e=null;if(t){var n=/\d{2}.\d{2}.\d{4}/.exec(t);if(n&&1===n.length){var a=n[0].split(".");t=a[2]+"/"+a[1]+"/"+a[0]}e=new Date(t).toLocaleString(this.app.options.lang,{weekday:"long"})}return e}},{key:"getDateTime",value:function(t){var e=t||(new Date).toISOString();return new Date(e.replace(" ","T")).toLocaleString(this.app.options.lang,{dateStyle:"short",timeStyle:"medium"}).replace(",","")}},{key:"createURL",value:function(t){var e=this.app.connection,n=e.location?e.location:"",a=e.port?":"+e.port.replace(":",""):"",s=e.path?"/"+e.path.replace("/",""):"",r="";return"object"==(0,rt.Z)(t)&&t.length>0&&t.forEach((function(t){t.param&&t.value&&(r+=r?"&":"?",r+=t.param+"="+encodeURIComponent(t.value))})),n+a+s+r}},{key:"getEl",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a0?s.push.apply(s,(0,at.Z)(e)):s.push(e)),"string"===typeof e&&s.push({param:"cmd",value:e}),r=this.createURL(s),this.log({lvl:3,msg:"Request: "+r}),t.next=9,fetch(r).then((function(t){var e=null;return"csrf"===n&&(e=t.headers.get("x-fhem-csrftoken")),"json"===n&&(e=t.json()),e||(e=t.text()),"object"===(0,rt.Z)(a)?Object.assign(a,{data:e}):e})).catch((function(t){return i.log({lvl:1,msg:"Request failed "+r,meta:t.message})}));case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n,a){return t.apply(this,arguments)}return e}()},{key:"getJsonFile",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=new Headers,n.append("pragma","no-cache"),n.append("cache-control","no-cache"),a={method:"GET",headers:n},t.next=6,fetch(e,a).then((function(t){return t.json()})).catch((function(t){return r.log({lvl:1,msg:"Read Json-Data from "+e+" failed.",meta:t})}));case 6:return s=t.sent,s&&this.log({lvl:5,msg:"Json-Data parsed from "+e,meta:s}),t.next=10,s;case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"readConfig",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getJsonFile(e);case 2:if(n=t.sent,n){for(a=0,s=Object.keys(n);a0)){t.next=41;break}n=[],a=[],this.app.data.routeList.splice(0),s=(0,nt.Z)(e.Results),t.prev=8,s.s();case 10:if((r=s.n()).done){t.next=27;break}return i=r.value,t.next=14,this.createOptions(i);case 14:if(o=t.sent,!o.template){t.next=25;break}return t.next=18,this.getTemplate(o);case 18:p=t.sent,p&&this.app.templates.push(p),o.room&&this.createNaviItems(o,n,"room"),o.group&&this.createNaviItems(o,a,"group"),o.home&&this.createRoutes(o,"/"),o.dashboard&&this.createRoutes(o,"/dashboard"),o.system&&this.createRoutes(o,"/system");case 25:t.next=10;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t["catch"](8),s.e(t.t0);case 32:return t.prev=32,s.f(),t.finish(32);case 35:n.sort((function(t,e){return t.title>e.title?1:e.title>t.title?-1:0})),a.sort((function(t,e){return t.title>e.title?1:e.title>t.title?-1:0})),this.app.data.roomList=Object.assign([],n),this.app.data.groupList=Object.assign([],a),this.app.session.ready=!0,this.loading=!1;case 41:case"end":return t.stop()}}),t,this,[[8,29,32,35]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"createConnected",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r,i,o,p,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n={},a=this.app.hasConnected.indexOf(e.Name),-1!=a){t.next=30;break}if(this.app.hasConnected.push(e.Name),!("connected"in e.Options)){t.next=28;break}s=Object.keys(e.Options.connected),r=0,i=s;case 7:if(!(re.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0})),this.app.data.deviceList=Object.assign([],r),this.loading=!1),i++;case 39:t.next=15;break;case 41:t.next=46;break;case 43:t.prev=43,t.t0=t["catch"](13),o.e(t.t0);case 46:return t.prev=46,o.f(),t.finish(46);case 49:case"end":return t.stop()}}),t,this,[[13,43,46,49]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"checkUpdate",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(){var e,n,a,s,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]);case 2:if(e=t.sent,n=0,e){a=e.split("\n").splice(2),s=(0,nt.Z)(a);try{for(s.s();!(r=s.n()).done;)i=r.value,i.match("UPD")&&!i.match("excluded")&&n++}catch(o){s.e(o)}finally{s.f()}}return t.abrupt("return",n>0);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"handleLogData",value:function(t){var e=t.split("\n");e.length>3&&e.splice(-3,3);var n,a=[],s=e.length>this.app.options.maxChartPoints?parseInt(e.length/this.app.options.maxChartPoints):1,r=s,i=0,o=1,p=(0,nt.Z)(e);try{for(p.s();!(n=p.n()).done;){var c=n.value,l=c.split(" "),u=Date.parse(l[0].replace("_","T")),h=parseFloat(l[1]);i+=h,(o>=r||o===e.length)&&(o===e.length&&(s-=r-o),a.push({timestamp:u,value:i/s}),r+=s,i=0),o++}}catch(d){p.e(d)}finally{p.f()}return this.log({lvl:5,msg:"handle Chartdata (Lines: "+e.length+")"}),a}},{key:"readLogData",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r,i,o,p,c,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=[],this.loading=!0,!(e.defs&&e.defs.length>0)){t.next=40;break}a=0,s=(0,nt.Z)(e.defs),t.prev=5,s.s();case 7:if((r=s.n()).done){t.next=32;break}return i=r.value,o=/\(.*\)/.exec(i),p=o?i.replace(o[0],"_").split(":"):i.split(":"),c="get ",c+=p[0]?p[0]:e.deviceName,c+=e.from?" - - "+e.from:"",c+=e.to?" "+e.to:"",c+=o?" "+o[0].replace(/\(|\)/g,""):" 4:"+p[1],t.next=18,this.request([{param:"cmd",value:c},{param:"XHR",value:"1"}],"text",{id:a});case 18:if(l=t.sent,!l){t.next=29;break}return t.t0=n,t.t1=l.id,t.t2=this,t.next=25,l.data;case 25:t.t3=t.sent,t.t4=t.t2.handleLogData.call(t.t2,t.t3),t.t5={id:t.t1,data:t.t4},t.t0.push.call(t.t0,t.t5);case 29:a++;case 30:t.next=7;break;case 32:t.next=37;break;case 34:t.prev=34,t.t6=t["catch"](5),s.e(t.t6);case 37:return t.prev=37,s.f(),t.finish(37);case 40:return this.loading=!1,t.abrupt("return",Object.assign(e,{data:n}));case 42:case"end":return t.stop()}}),t,this,[[5,34,37,40]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"replaceVals",value:function(t,e,n){for(var a=/-?[0-9]/.exec(e),s=[],r=2;r1?l+"Tage ":l>0?l+"Tag ":"";d+=u>0?u+"h ":"",d+=h>0?h+"min":"",i=t[r].replace("%a",d)}if(/%n/.test(t[r])&&a){/%n.[0-9]/.test(t[r])||(t[r]=t[r].replace("%n","%n.0"));var m=/%n../.exec(t[r]),f=m[0].replace("%n.","");i=t[r].replace(m[0],parseFloat(e.slice(a.index)).toLocaleString(this.app.options.lang,{minimumFractionDigits:f,maximumFractionDigits:f}))}if(/%i/.test(t[r])&&a){var v=parseFloat(t[r].split("%i")[1]);if("isNaN"!=v){var g=v.toString().split(".")[1]||"",b=g.length,y=parseFloat(e.slice(a.index))+v;i=t[r].replace("%i"+v,y.toFixed(b))}}i=i.replace(/:/g,":"),s.push(i)}return s}},{key:"handleVals",value:function(t,e){var n=[];if("string"===typeof e&&(n=[e]),"object"===(0,rt.Z)(t)&&"object"===(0,rt.Z)(e)&&e.length>0){var a,s=(0,nt.Z)(e);try{for(s.s();!(a=s.n()).done;){var r=a.value,i=r.split(":");if(i.length>2){var o=/\./.test(i[0])?i[0].split("."):["Readings",i[0],"Value"],p=this.getEl.apply(this,[t].concat((0,at.Z)(o)))||this.getEl(t,"Readings",i[0],"Value");if(p){var c=!1,l=parseFloat(i[1]);if(isNaN(l))RegExp(i[1]?i[1]:".").test(p)&&(c=!0);else{var u=/-?[0-9]/.exec(p);-1!=u.index&&parseFloat(p.slice(u.index))>=l&&(c=!0)}if(c){n=this.replaceVals(i,p,t.Name);break}}}}}catch(h){s.e(h)}finally{s.f()}}return n}},{key:"handleTemplate",value:function(t){var e=this.getEl(t,"Options","setup","show"),n=this.getEl(t,"Options","setup","status","bar"),a=this.getEl(t,"Options","setup","status","error"),s=this.getEl(t,"Options","setup","info");if(e){var r=this.handleVals(t,e);t.Options.show="false"!==r[0],r[1]&&(t.Options.setup.size=r[1]),r[2]&&(t.Options.sortby=r[2])}if(n){var i=this.getEl(t,"Options","setup","status","min")||0,o=this.getEl(t,"Options","setup","status","max")||100,p=this.handleVals(t,n),c=100/(o-i),l=(p[0]||"0"-i)*c;t.Options.status.level=p[2]?100-l:l,t.Options.status.color=p[1]||"success"}if(a){var u=this.handleVals(t,a);u.length>0?(t.Options.status.level=u[0]||"100",t.Options.status.color=u[1]||"error",t.Options.status.error=u[2]||"Fehler",t.Options.status.isActive=!1):t.Options.status.isActive=!0}if(s){var h=this.handleVals(t,s.left1),d=this.handleVals(t,s.left2),m=this.handleVals(t,s.mid1),f=this.handleVals(t,s.mid2),v=this.handleVals(t,s.right1),g=this.handleVals(t,s.right2);t.Options.info.left1IconColor=h[2]||"",t.Options.info.left1Icon=h[1]||"",t.Options.info.left1Text=h[0]||"",t.Options.info.left2IconColor=d[2]||"",t.Options.info.left2Icon=d[1]||"",t.Options.info.left2Text=d[0]||"",t.Options.info.mid1IconColor=m[2]||"",t.Options.info.mid1Icon=m[1]||"",t.Options.info.mid1Text=m[0]||"",t.Options.info.mid2IconColor=f[2]||"",t.Options.info.mid2Icon=f[1]||"",t.Options.info.mid2Text=f[0]||"",t.Options.info.right1IconColor=v[2]||"",t.Options.info.right1Icon=v[1]||"",t.Options.info.right1Text=v[0]||"",t.Options.info.right2IconColor=g[2]||"",t.Options.info.right2Icon=g[1]||"",t.Options.info.right2Text=g[0]||""}}},{key:"handleData",value:function(t){var e=JSON.parse(t),n=null;if(!e[2].match("0){var i=this.handleData(r);if(i){var o,p=0,c=(0,nt.Z)(this.app.data.deviceList);try{for(c.s();!(o=c.n()).done;){var l=o.value,u=this.app.data.deviceList[p],h=Object.assign({},u);if(l.Name===i.Name&&("Readings"===i.devicePart&&this.getEl(h,"Readings",i.param,i.paramPart)&&(h.Readings[i.param][i.paramPart]=i.value),"Attributes"===i.devicePart&&this.getEl(h,"Attributes",i.param)&&(h.Attributes[i.param]=i.value),this.handleTemplate(h),this.app.data.deviceList.splice(p,1,h),this.app.data.deviceList.sort((function(t,e){return t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0}))),"Connected"in l)for(var d=0,m=0,f=Object.values(l.Connected);me.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0}))}d++}p++}}catch(b){c.e(b)}finally{c.f()}}}}}catch(b){s.e(b)}finally{s.f()}}},{key:"connOpen",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.app.session.connect=!0,this.app.session.restartCnt=0,this.log({lvl:2,msg:"Connection with FHEM is opened.",meta:this.app.connection}),t.next=5,this.request({},"csrf");case 5:this.app.session.csrf=t.sent,this.log({lvl:2,msg:"Crsf-Token received.",meta:{token:this.app.session.csrf}}),this.loadStructure();case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"connClose",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.ready=!1,this.app.conn=null,this.app.session.restart||(n=0==this.app.session.restartCnt?1:3e3,this.app.session.restart=!0,setTimeout((function(){s.app.session.restart=!1,s.app.session.restartCnt++,s.connStart()}),n),a={info:"Connection ("+this.app.connection.type+") "+(e?"failed.":"was closed."),errCode:e||""},this.log({lvl:2,msg:"Connection with FHEM was closed. Try to Reconnect in "+n/1e3+" seconds...",meta:a}),this.loading=!1);case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"connStart",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(){var e,n,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],n=this.createURL(e),"websocket"===this.app.connection.type?(this.app.conn=new WebSocket(n.replace(/^http/i,"ws")),this.app.conn.onopen=function(){return a.connOpen()},this.app.conn.onmessage=function(t){return a.doUpdate(t)},this.app.conn.onclose=function(){return a.connClose()},this.app.conn.onerror=function(t){return a.connClose(t)}):(this.app.conn=new XMLHttpRequest,this.app.conn.open("GET",n,!0),this.app.conn.onreadystatechange=function(){200===a.app.conn.status&&2===a.app.conn.readyState&&a.connOpen(),200===a.app.conn.status&&3===a.app.conn.readyState&&a.doUpdate()},this.app.conn.onerror=function(t){return a.connClose(t)},this.app.conn.send());case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setClock",value:function(){var t=new Date;this.app.appBar.clock=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat),this.app.appBar.header=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"clock"===this.app.options.mobileHeaderContent&&(this.app.appBar.mobileHeader=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat)),"date"===this.app.options.mobileHeaderContent&&(this.app.appBar.mobileHeader=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}))}},{key:"init",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e,n){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.getWeekDay("2022-04-06 08:37:29"),this.log({lvl:2,msg:"Starting FHEMApp..."}),this.loading=!0,t.next=5,this.readConfig("./cfg/config.json");case 5:this.connStart(),e&&this.app.theme&&(-1!=this.app.theme.dark&&Object.assign(e.framework.theme,{dark:this.app.theme.dark}),this.app.theme.themes.light&&Object.assign(e.framework.theme.themes.light,this.app.theme.themes.light),this.app.theme.themes.dark&&Object.assign(e.framework.theme.themes.dark,this.app.theme.themes.dark)),n&&this.app.options.lang&&(n.locale=this.app.options.lang),this.setClock(),setInterval((function(){return a.setClock()}),this.app.options.clockInterval);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}()}]),n}(ut()),dt={install:function(t,e,n){t.prototype.$fhem=new ht,t.prototype.$fhem.init(e,n)}};a.Z.use(dt,W,et),a.Z.use(Q()),a.Z.component("apex-chart",Q()),a.Z.config.productionTip=!1,new a.Z({vuetify:W,router:q,i18n:et,render:function(t){return t(H)}}).$mount("#app")},8973:function(t,e,n){var a={"./de.json":9929,"./en.json":790};function s(t){var e=r(t);return n(e)}function r(t){if(!n.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}s.keys=function(){return Object.keys(a)},s.resolve=r,t.exports=s,s.id=8973},2862:function(t,e,n){"use strict";t.exports=n.p+"img/FHEM_Logo.a2a7fc8d.png"},4147:function(t){"use strict";t.exports={i8:"3.34.2"}},9929:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Gruppen","room":"Bereiche","dashboard":"Dashboard","system":"System"},"dates":{"from":"von","to":"bis"}},"templates":{"sysmon":{"updateBtn":["prüfe Updates...","system aktuell","update","update läuft.."],"restartBtn":"neustart","updateDialog":{"header":"FHEM Update","text":"Update wurde erfolgreich beendet. FHEM sollte neu gestartet werden.","restartBtn":"jetzt neustarten"}}}}')},790:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Groups","room":"Area","dashboard":"Dashboard","system":"System"},"dates":{"from":"From","to":"To"}},"templates":{"sysmon":{"updateBtn":["check updates...","up to date","update","update running..."],"restartBtn":"restart","updateDialog":{"header":"FHEM Update","text":"Update was successful finished. FHEM should be restarted now.","restartBtn":"restart now"}}}}')}},e={};function n(a){var s=e[a];if(void 0!==s)return s.exports;var r=e[a]={exports:{}};return t[a].call(r.exports,r,r.exports,n),r.exports}n.m=t,function(){var t=[];n.O=function(e,a,s,r){if(!a){var i=1/0;for(l=0;l=r)&&Object.keys(n.O).every((function(t){return n.O[t](a[p])}))?a.splice(p--,1):(o=!1,r0&&t[l-1][2]>r;l--)t[l]=t[l-1];t[l]=[a,s,r]}}(),function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})}}(),function(){n.f={},n.e=function(t){return Promise.all(Object.keys(n.f).reduce((function(e,a){return n.f[a](t,e),e}),[]))}}(),function(){n.u=function(t){return"js/"+t+"-legacy."+{44:"3af77626",121:"62a3b348",154:"c725f673",285:"39686d97",288:"6d3eb988",289:"70352cc3",322:"c29a322f",337:"ef87a395",387:"c8bf8023",396:"c0fe53a6",438:"e54dc5ad",475:"24b478c9",583:"482ee3b1",617:"1d5c53e3",687:"8a4b5993",798:"741473f9",869:"8b8fa91e",884:"c1922847",947:"43621317"}[t]+".js"}}(),function(){n.miniCssF=function(t){return"css/"+t+"."+{44:"7086d1d2",154:"8ecd64f4",285:"b6c37c1b",288:"a57bcf5c",289:"8ecd64f4",337:"b2abc4be",387:"5322d21c",396:"8ecd64f4",438:"85e1c6a8",475:"35328724",583:"8ecd64f4",617:"b79779ed",687:"8ecd64f4",869:"5fde8d03",947:"85e1c6a8"}[t]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="fhemapp:";n.l=function(a,s,r,i){if(t[a])t[a].push(s);else{var o,p;if(void 0!==r)for(var c=document.getElementsByTagName("script"),l=0;l0?(this.type=this.types[this.msgList[0].lvl],this.message=this.msgList[0].msg,this.meta=this.msgList[0].meta,this.alert=!0):(this.alert=!1,this.type="info",this.message="",this.meta="")}},mounted:function(){var t=this;this.$fhem.on("message",(function(e){var n={lvl:5,msg:"no valid message received",meta:""};Object.assign(n,e),t.msgList.unshift(n)}))},methods:{clearMessage:function(){this.msgList.length>0&&this.msgList.splice(0,1)}}}),l=p,c=n(1001),u=n(3453),h=n.n(u),d=n(1234),m=n(3150),f=n(2102),v=n(6428),g=n(2877),b=(0,c.Z)(l,i,o,!1,null,null,null),y=b.exports;h()(b,{VAlert:d.Z,VBtn:m.Z,VCol:f.Z,VIcon:v.Z,VRow:g.Z});var k={components:{Broadcaster:y},data:function(){return{appBar:{color:"",drawer:null,clock:null,header:null},app:{options:{loading:!1,reloadBtn:!1,expandGroups:!1,expandRooms:!1,mobileHeaderContent:!1},session:{connect:!1},data:{roomList:[],groupList:[]}},version:"v"+n(4147).i8,status:{color:"secondary",icon:"mdi-circle",text:"unbekannt",time:""}}},computed:{showRooms:function(){return this.app.data.roomList.length>0},showGroups:function(){return this.app.data.groupList.length>0}},watch:{"app.session.connect":function(t){this.status.color=t?"success":"error",this.status.text=t?"online":"offline",this.status.time=this.$fhem.getDateTime()}},mounted:function(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.appBar=this.$fhem.app.appBar},methods:{reload:function(){location.reload(!0)},goTo:function(t){var e=t||"/";this.$router.currentRoute.path!=e&&this.$router.push(e)}}},w=k,x=n(7524),O=n(426),C=n(5206),Z=n(5424),R=n(9846),_=n(1418),L=n(7047),D=n(6816),S=n(9443),j=n(7620),T=n(1960),E=n(459),I=n(7877),F=n(5132),B=n(1058),V=n(624),A=n(9762),N=n(9330),P=(0,c.Z)(w,s,r,!1,null,"3b4d7587",null),H=P.exports;h()(P,{VApp:x.Z,VAppBar:O.Z,VAppBarNavIcon:C.Z,VBtn:m.Z,VChip:Z.Z,VContainer:R.Z,VDivider:_.Z,VIcon:v.Z,VImg:L.Z,VList:D.Z,VListGroup:S.Z,VListItem:j.Z,VListItemContent:T.km,VListItemIcon:E.Z,VListItemSubtitle:T.oZ,VListItemTitle:T.V9,VMain:I.Z,VNavigationDrawer:F.Z,VOverlay:B.Z,VProgressCircular:V.Z,VSpacer:A.Z,VTooltip:N.Z});n(1539),n(8783),n(3948);var M=n(8345);a.Z.use(M.Z);var $=[{path:"/",name:"Home",component:function(){return n.e(798).then(n.bind(n,6798))}},{path:"/system",name:"System",component:function(){return n.e(798).then(n.bind(n,6798))}},{path:"/dashboard",name:"Dashboard",component:function(){return n.e(798).then(n.bind(n,6798))}},{path:"/devices/:filter",name:"Devices",component:function(){return n.e(798).then(n.bind(n,6798))}},{path:"/settings",name:"Settings",component:function(){return n.e(884).then(n.bind(n,6884))}},{path:"/syslog",name:"Syslog",component:function(){return Promise.all([n.e(121),n.e(288),n.e(285),n.e(44)]).then(n.bind(n,4044))}}],U=new M.Z({mode:"hash",base:"",routes:$}),q=U,z=n(9132),G=n(9146),J=n(1846);a.Z.use(z.Z);var X={lang:{locales:{de:G.Z},current:"de"},theme:{dark:!0,themes:{dark:{primary:J.Z.grey.darken4,secondary:J.Z.grey.darken3,success:J.Z.green.accent2,accent:J.Z.green.accent2},light:{primary:J.Z.grey,secondary:J.Z.grey.lighten3,success:J.Z.green.accent3,accent:J.Z.green.accent3}}}},Y=new z.Z(X),W=n(7166),K=n.n(W),Q=(n(4747),n(4916),n(4723),n(7152));function tt(){var t=n(8973),e={};return t.keys().forEach((function(n){var a=n.match(/([A-Za-z0-9-_]+)\./i);if(a&&a.length>1){var s=a[1];e[s]=t(n)}})),e}a.Z.use(Q.Z);var et=new Q.Z({locale:"de",fallbackLocale:"en",messages:tt()}),nt=n(2032),at=n(8932),st=n(6198),rt=n(9726),it=n(6133),ot=n(2751),pt=n(796),lt=n(6035),ct=(n(5666),n(7042),n(3123),n(5306),n(7941),n(8309),n(1249),n(2707),n(9600),n(7601),n(9714),n(6977),n(2222),n(4603),n(8450),n(8386),n(2479),n(7187)),ut=n.n(ct),ht=function(t){(0,pt.Z)(n,t);var e=(0,lt.Z)(n);function n(){var t;return(0,it.Z)(this,n),t=e.call(this),t.app={connection:{location:window.location.protocol+"//"+window.location.hostname,port:window.location.port,path:"fhem",type:"websocket"},conn:null,connOffset:0,session:{connect:!1,ready:!1,csrf:null,restart:!1,restartCnt:0,logList:[]},options:{lang:"de",debugMode:!1,debugLevel:5,loading:!1,loadCount:0,clockInterval:1e3,clockFormat:{hour:"2-digit",minute:"2-digit"},clock:null,date:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500,ignoreFhemRoom:!1,ignoreFhemGroup:!1,ignoreFhemSortby:!1,mobileHeader:!1},theme:{dark:!0,themes:{}},appBar:{color:"primary",drawer:!1,clock:null,header:null,mobileHeader:null},templates:[],componentMap:[{name:"panel",component:"templ_panel"},{name:"chart",component:"templ_chart"},{name:"weather",component:"templ_weather"},{name:"list",component:"templ_list"},{name:"wdtimer",component:"templ_wdtimer"},{name:"sysmon",component:"templ_sysmon"},{name:"hmlan",component:"templ_hmlan"},{name:"sonos",component:"templ_sonos"},{name:"scenes",component:"templ_scenes"},{name:"cam",component:"templ_cam"},{name:"iframe",component:"templ_iframe"}],data:{roomList:[],groupList:[],deviceList:[],routeList:[],header:""},hasConnected:[]},t}return(0,ot.Z)(n,[{key:"loading",set:function(t){t&&this.app.options.loadCount++,!t&&this.app.options.loadCount>0&&this.app.options.loadCount--,this.app.options.loadCount>0&&!this.app.options.loading&&(this.app.options.loading=!0),0===this.app.options.loadCount&&(this.app.options.loading=!1)}},{key:"log",value:function(t){var e=["","mdi-alert-outline","mdi-connection","mdi-send-circle-outline","mdi-sync","mdi-hexagon-multiple-outline"],n=["","error","info","success","success","warning"],a=(new Date).toLocaleTimeString(this.app.options.lang),s=(new Date).getMilliseconds(),r={time:a+":"+("000"+s).slice(-3),msg:t.msg||"",lvl:t.lvl||5,meta:t.meta||null,icon:e[t.lvl||5],color:n[t.lvl||5]};this.app.options.logRecord&&r.lvl<=this.app.options.debugLevel&&(this.app.session.logList.unshift(r),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer)),1==r.lvl&&(this.app.options.loadCount=0,this.app.options.loading=!1,this.emit("message",r))}},{key:"getDate",value:function(t){var e=t?parseInt(t):0;return function(t){return new Date(t.setDate(t.getDate()-e)).toISOString()}(new Date).split("T")[0]}},{key:"getWeekDay",value:function(t){var e=null;if(t){var n=/\d{2}.\d{2}.\d{4}/.exec(t);if(n&&1===n.length){var a=n[0].split(".");t=a[2]+"/"+a[1]+"/"+a[0]}e=new Date(t).toLocaleString(this.app.options.lang,{weekday:"long"})}return e}},{key:"getDateTime",value:function(t){var e=t||(new Date).toISOString();return new Date(e.replace(" ","T")).toLocaleString(this.app.options.lang,{dateStyle:"short",timeStyle:"medium"}).replace(",","")}},{key:"createURL",value:function(t){var e=this.app.connection,n=e.location?e.location:"",a=e.port?":"+e.port.replace(":",""):"",s=e.path?"/"+e.path.replace("/",""):"",r="";return"object"==(0,rt.Z)(t)&&t.length>0&&t.forEach((function(t){t.param&&t.value&&(r+=r?"&":"?",r+=t.param+"="+encodeURIComponent(t.value))})),n+a+s+r}},{key:"getEl",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a0?s.push.apply(s,(0,at.Z)(e)):s.push(e)),"string"===typeof e&&s.push({param:"cmd",value:e}),r=this.createURL(s),this.log({lvl:3,msg:"Request: "+r}),t.next=9,fetch(r).then((function(t){var e=null;return"csrf"===n&&(e=t.headers.get("x-fhem-csrftoken")),"json"===n&&(e=t.json()),e||(e=t.text()),"object"===(0,rt.Z)(a)?Object.assign(a,{data:e}):e})).catch((function(t){return i.log({lvl:1,msg:"Request failed "+r,meta:t.message})}));case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n,a){return t.apply(this,arguments)}return e}()},{key:"getJsonFile",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=new Headers,n.append("pragma","no-cache"),n.append("cache-control","no-cache"),a={method:"GET",headers:n},t.next=6,fetch(e,a).then((function(t){return t.json()})).catch((function(t){return r.log({lvl:1,msg:"Read Json-Data from "+e+" failed.",meta:t})}));case 6:return s=t.sent,s&&this.log({lvl:5,msg:"Json-Data parsed from "+e,meta:s}),t.next=10,s;case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"readConfig",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getJsonFile(e);case 2:if(n=t.sent,n){for(a=0,s=Object.keys(n);a0)){t.next=41;break}n=[],a=[],this.app.data.routeList.splice(0),s=(0,nt.Z)(e.Results),t.prev=8,s.s();case 10:if((r=s.n()).done){t.next=27;break}return i=r.value,t.next=14,this.createOptions(i);case 14:if(o=t.sent,!o.template){t.next=25;break}return t.next=18,this.getTemplate(o);case 18:p=t.sent,p&&this.app.templates.push(p),o.room&&this.createNaviItems(o,n,"room"),o.group&&this.createNaviItems(o,a,"group"),o.home&&this.createRoutes(o,"/"),o.dashboard&&this.createRoutes(o,"/dashboard"),o.system&&this.createRoutes(o,"/system");case 25:t.next=10;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t["catch"](8),s.e(t.t0);case 32:return t.prev=32,s.f(),t.finish(32);case 35:n.sort((function(t,e){return t.title>e.title?1:e.title>t.title?-1:0})),a.sort((function(t,e){return t.title>e.title?1:e.title>t.title?-1:0})),this.app.data.roomList=Object.assign([],n),this.app.data.groupList=Object.assign([],a),this.app.session.ready=!0,this.loading=!1;case 41:case"end":return t.stop()}}),t,this,[[8,29,32,35]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"createConnected",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r,i,o,p,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n={},a=this.app.hasConnected.indexOf(e.Name),-1!=a){t.next=30;break}if(this.app.hasConnected.push(e.Name),!("connected"in e.Options)){t.next=28;break}s=Object.keys(e.Options.connected),r=0,i=s;case 7:if(!(re.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0})),this.app.data.deviceList=Object.assign([],r),this.loading=!1),i++;case 39:t.next=15;break;case 41:t.next=46;break;case 43:t.prev=43,t.t0=t["catch"](13),o.e(t.t0);case 46:return t.prev=46,o.f(),t.finish(46);case 49:case"end":return t.stop()}}),t,this,[[13,43,46,49]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"checkUpdate",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(){var e,n,a,s,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]);case 2:if(e=t.sent,n=0,e){a=e.split("\n").splice(2),s=(0,nt.Z)(a);try{for(s.s();!(r=s.n()).done;)i=r.value,i.match("UPD")&&!i.match("excluded")&&n++}catch(o){s.e(o)}finally{s.f()}}return t.abrupt("return",n>0);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"handleLogData",value:function(t,e){var n=t.split("\n");n.length>3&&n.splice(-3,3);var a,s=[],r=n.length>this.app.options.maxChartPoints?parseInt(n.length/this.app.options.maxChartPoints):1,i=r,o=null,p=1,l=null,c=(0,nt.Z)(n);try{for(c.s();!(a=c.n()).done;){var u=a.value,h=u.split(" "),d=Date.parse(h[0].replace("_","T")),m=new Date(d),f=null,v=parseFloat(h[1]);e?(/-min/.test(e)&&(o>v||!o)&&(o=v),/-max/.test(e)&&ol||p===n.length)&&(s.push({timestamp:l,value:o}),o=null,l=f)):(o+=v,(p>=i||p===n.length)&&(p===n.length&&(r-=i-p),s.push({timestamp:d,value:o/r}),i+=r,o=0)),p++}}catch(g){c.e(g)}finally{c.f()}return this.log({lvl:5,msg:"handle Chartdata (Lines: "+n.length+")"}),s}},{key:"readLogData",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r,i,o,p,l,c,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=[],this.loading=!0,!(e.defs&&e.defs.length>0)){t.next=42;break}a=0,s=(0,nt.Z)(e.defs),t.prev=5,s.s();case 7:if((r=s.n()).done){t.next=34;break}return i=r.value,o=/\(.*\)/.exec(i),p=o?i.replace(o[0],"_").split(":"):i.split(":"),l="get ",l+=p[0]?p[0]:e.deviceName,l+=e.from?" - - "+e.from:"",l+=e.to?" "+e.to:"",l+=o?" "+o[0].replace(/\(|\)/g,""):" 4:"+p[1],t.next=18,this.request([{param:"cmd",value:l},{param:"XHR",value:"1"}],"text",{id:a});case 18:if(c=t.sent,u=p[11]?p[11]:null,!c){t.next=31;break}return t.t0=n,t.t1=c.id,t.t2=this,t.next=26,c.data;case 26:t.t3=t.sent,t.t4=u,t.t5=t.t2.handleLogData.call(t.t2,t.t3,t.t4),t.t6={id:t.t1,data:t.t5},t.t0.push.call(t.t0,t.t6);case 31:a++;case 32:t.next=7;break;case 34:t.next=39;break;case 36:t.prev=36,t.t7=t["catch"](5),s.e(t.t7);case 39:return t.prev=39,s.f(),t.finish(39);case 42:return this.loading=!1,t.abrupt("return",Object.assign(e,{data:n}));case 44:case"end":return t.stop()}}),t,this,[[5,36,39,42]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"replaceVals",value:function(t,e,n){for(var a=/-?[0-9]/.exec(e),s=[],r=2;r1?c+"Tage ":c>0?c+"Tag ":"";d+=u>0?u+"h ":"",d+=h>0?h+"min":"",i=t[r].replace("%a",d)}if(/%n/.test(t[r])&&a){/%n.[0-9]/.test(t[r])||(t[r]=t[r].replace("%n","%n.0"));var m=/%n../.exec(t[r]),f=m[0].replace("%n.","");i=t[r].replace(m[0],parseFloat(e.slice(a.index)).toLocaleString(this.app.options.lang,{minimumFractionDigits:f,maximumFractionDigits:f}))}if(/%i/.test(t[r])&&a){var v=parseFloat(t[r].split("%i")[1]);if("isNaN"!=v){var g=v.toString().split(".")[1]||"",b=g.length,y=parseFloat(e.slice(a.index))+v;i=t[r].replace("%i"+v,y.toFixed(b))}}i=i.replace(/:/g,":"),s.push(i)}return s}},{key:"handleVals",value:function(t,e){var n=[];if("string"===typeof e&&(n=[e]),"object"===(0,rt.Z)(t)&&"object"===(0,rt.Z)(e)&&e.length>0){var a,s=(0,nt.Z)(e);try{for(s.s();!(a=s.n()).done;){var r=a.value,i=r.split(":");if(i.length>2){var o=/\./.test(i[0])?i[0].split("."):["Readings",i[0],"Value"],p=this.getEl.apply(this,[t].concat((0,at.Z)(o)))||this.getEl(t,"Readings",i[0],"Value");if(p){var l=!1,c=parseFloat(i[1]);if(isNaN(c))RegExp(i[1]?i[1]:".").test(p)&&(l=!0);else{var u=/-?[0-9]/.exec(p);-1!=u.index&&parseFloat(p.slice(u.index))>=c&&(l=!0)}if(l){n=this.replaceVals(i,p,t.Name);break}}}}}catch(h){s.e(h)}finally{s.f()}}return n}},{key:"handleTemplate",value:function(t){var e=this.getEl(t,"Options","setup","show"),n=this.getEl(t,"Options","setup","status","bar"),a=this.getEl(t,"Options","setup","status","error"),s=this.getEl(t,"Options","setup","info");if(e){var r=this.handleVals(t,e);t.Options.show="false"!==r[0],r[1]&&(t.Options.setup.size=r[1]),r[2]&&(t.Options.sortby=r[2])}if(n){var i=this.getEl(t,"Options","setup","status","min")||0,o=this.getEl(t,"Options","setup","status","max")||100,p=this.handleVals(t,n),l=100/(o-i),c=(p[0]||"0"-i)*l;t.Options.status.level=p[2]?100-c:c,t.Options.status.color=p[1]||"success"}if(a){var u=this.handleVals(t,a);u.length>0?(t.Options.status.level=u[0]||"100",t.Options.status.color=u[1]||"error",t.Options.status.error=u[2]||"Fehler",t.Options.status.isActive=!1):t.Options.status.isActive=!0}if(s){var h=this.handleVals(t,s.left1),d=this.handleVals(t,s.left2),m=this.handleVals(t,s.mid1),f=this.handleVals(t,s.mid2),v=this.handleVals(t,s.right1),g=this.handleVals(t,s.right2);t.Options.info.left1IconColor=h[2]||"",t.Options.info.left1Icon=h[1]||"",t.Options.info.left1Text=h[0]||"",t.Options.info.left2IconColor=d[2]||"",t.Options.info.left2Icon=d[1]||"",t.Options.info.left2Text=d[0]||"",t.Options.info.mid1IconColor=m[2]||"",t.Options.info.mid1Icon=m[1]||"",t.Options.info.mid1Text=m[0]||"",t.Options.info.mid2IconColor=f[2]||"",t.Options.info.mid2Icon=f[1]||"",t.Options.info.mid2Text=f[0]||"",t.Options.info.right1IconColor=v[2]||"",t.Options.info.right1Icon=v[1]||"",t.Options.info.right1Text=v[0]||"",t.Options.info.right2IconColor=g[2]||"",t.Options.info.right2Icon=g[1]||"",t.Options.info.right2Text=g[0]||""}}},{key:"handleData",value:function(t){var e=JSON.parse(t),n=null;if(!e[2].match("0){var i=this.handleData(r);if(i){var o,p=0,l=(0,nt.Z)(this.app.data.deviceList);try{for(l.s();!(o=l.n()).done;){var c=o.value,u=this.app.data.deviceList[p],h=Object.assign({},u);if(c.Name===i.Name&&("Readings"===i.devicePart&&this.getEl(h,"Readings",i.param,i.paramPart)&&(h.Readings[i.param][i.paramPart]=i.value),"Attributes"===i.devicePart&&this.getEl(h,"Attributes",i.param)&&(h.Attributes[i.param]=i.value),this.handleTemplate(h),this.app.data.deviceList.splice(p,1,h),this.app.data.deviceList.sort((function(t,e){return t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0}))),"Connected"in c)for(var d=0,m=0,f=Object.values(c.Connected);me.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0}))}d++}p++}}catch(b){l.e(b)}finally{l.f()}}}}}catch(b){s.e(b)}finally{s.f()}}},{key:"connOpen",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.app.session.connect=!0,this.app.session.restartCnt=0,this.log({lvl:2,msg:"Connection with FHEM is opened.",meta:this.app.connection}),t.next=5,this.request({},"csrf");case 5:this.app.session.csrf=t.sent,this.log({lvl:2,msg:"Crsf-Token received.",meta:{token:this.app.session.csrf}}),this.loadStructure();case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"connClose",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.ready=!1,this.app.conn=null,this.app.session.restart||(n=0==this.app.session.restartCnt?1:3e3,this.app.session.restart=!0,setTimeout((function(){s.app.session.restart=!1,s.app.session.restartCnt++,s.connStart()}),n),a={info:"Connection ("+this.app.connection.type+") "+(e?"failed.":"was closed."),errCode:e||""},this.log({lvl:2,msg:"Connection with FHEM was closed. Try to Reconnect in "+n/1e3+" seconds...",meta:a}),this.loading=!1);case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"connStart",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(){var e,n,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],n=this.createURL(e),"websocket"===this.app.connection.type?(this.app.conn=new WebSocket(n.replace(/^http/i,"ws")),this.app.conn.onopen=function(){return a.connOpen()},this.app.conn.onmessage=function(t){return a.doUpdate(t)},this.app.conn.onclose=function(){return a.connClose()},this.app.conn.onerror=function(t){return a.connClose(t)}):(this.app.conn=new XMLHttpRequest,this.app.conn.open("GET",n,!0),this.app.conn.onreadystatechange=function(){200===a.app.conn.status&&2===a.app.conn.readyState&&a.connOpen(),200===a.app.conn.status&&3===a.app.conn.readyState&&a.doUpdate()},this.app.conn.onerror=function(t){return a.connClose(t)},this.app.conn.send());case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setClock",value:function(){var t=new Date;this.app.appBar.clock=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat),this.app.appBar.header=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"clock"===this.app.options.mobileHeaderContent&&(this.app.appBar.mobileHeader=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat)),"date"===this.app.options.mobileHeaderContent&&(this.app.appBar.mobileHeader=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}))}},{key:"init",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e,n){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.getWeekDay("2022-04-06 08:37:29"),this.log({lvl:2,msg:"Starting FHEMApp..."}),this.loading=!0,t.next=5,this.readConfig("./cfg/config.json");case 5:this.connStart(),e&&this.app.theme&&(-1!=this.app.theme.dark&&Object.assign(e.framework.theme,{dark:this.app.theme.dark}),this.app.theme.themes.light&&Object.assign(e.framework.theme.themes.light,this.app.theme.themes.light),this.app.theme.themes.dark&&Object.assign(e.framework.theme.themes.dark,this.app.theme.themes.dark)),n&&this.app.options.lang&&(n.locale=this.app.options.lang),this.setClock(),setInterval((function(){return a.setClock()}),this.app.options.clockInterval);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}()}]),n}(ut()),dt={install:function(t,e,n){t.prototype.$fhem=new ht,t.prototype.$fhem.init(e,n)}};a.Z.use(dt,Y,et),a.Z.use(K()),a.Z.component("apex-chart",K()),a.Z.config.productionTip=!1,new a.Z({vuetify:Y,router:q,i18n:et,render:function(t){return t(H)}}).$mount("#app")},8973:function(t,e,n){var a={"./de.json":9929,"./en.json":790};function s(t){var e=r(t);return n(e)}function r(t){if(!n.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}s.keys=function(){return Object.keys(a)},s.resolve=r,t.exports=s,s.id=8973},2862:function(t,e,n){"use strict";t.exports=n.p+"img/FHEM_Logo.a2a7fc8d.png"},4147:function(t){"use strict";t.exports={i8:"3.34.3"}},9929:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Gruppen","room":"Bereiche","dashboard":"Dashboard","system":"System"},"dates":{"from":"von","to":"bis"}},"templates":{"sysmon":{"updateBtn":["prüfe Updates...","system aktuell","update","update läuft.."],"restartBtn":"neustart","updateDialog":{"header":"FHEM Update","text":"Update wurde erfolgreich beendet. FHEM sollte neu gestartet werden.","restartBtn":"jetzt neustarten"}}}}')},790:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Groups","room":"Area","dashboard":"Dashboard","system":"System"},"dates":{"from":"From","to":"To"}},"templates":{"sysmon":{"updateBtn":["check updates...","up to date","update","update running..."],"restartBtn":"restart","updateDialog":{"header":"FHEM Update","text":"Update was successful finished. FHEM should be restarted now.","restartBtn":"restart now"}}}}')}},e={};function n(a){var s=e[a];if(void 0!==s)return s.exports;var r=e[a]={exports:{}};return t[a].call(r.exports,r,r.exports,n),r.exports}n.m=t,function(){var t=[];n.O=function(e,a,s,r){if(!a){var i=1/0;for(c=0;c=r)&&Object.keys(n.O).every((function(t){return n.O[t](a[p])}))?a.splice(p--,1):(o=!1,r0&&t[c-1][2]>r;c--)t[c]=t[c-1];t[c]=[a,s,r]}}(),function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})}}(),function(){n.f={},n.e=function(t){return Promise.all(Object.keys(n.f).reduce((function(e,a){return n.f[a](t,e),e}),[]))}}(),function(){n.u=function(t){return"js/"+t+"-legacy."+{44:"3af77626",96:"29e7d923",121:"62a3b348",154:"c725f673",285:"2d64a31e",288:"6d3eb988",289:"70352cc3",322:"a42867bd",337:"33201bb8",387:"c8bf8023",438:"e54dc5ad",475:"24b478c9",507:"4f288f72",630:"44e29b6a",687:"8a4b5993",798:"154ede8b",869:"4d6f8e36",884:"c1922847",947:"43621317"}[t]+".js"}}(),function(){n.miniCssF=function(t){return"css/"+t+"."+{44:"7086d1d2",96:"00e0efdd",154:"8ecd64f4",285:"b6c37c1b",288:"a57bcf5c",289:"8ecd64f4",337:"b2abc4be",387:"5322d21c",438:"85e1c6a8",475:"35328724",507:"8ecd64f4",630:"b79779ed",687:"8ecd64f4",869:"5fde8d03",947:"85e1c6a8"}[t]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="fhemapp:";n.l=function(a,s,r,i){if(t[a])t[a].push(s);else{var o,p;if(void 0!==r)for(var l=document.getElementsByTagName("script"),c=0;c({alert:!1,type:"info",types:["","error","info","info","success","warning"],message:"",meta:"",msgList:[]}),watch:{msgList(){this.msgList&&this.msgList.length>0?(this.type=this.types[this.msgList[0].lvl],this.message=this.msgList[0].msg,this.meta=this.msgList[0].meta,this.alert=!0):(this.alert=!1,this.type="info",this.message="",this.meta="")}},mounted(){this.$fhem.on("message",(t=>{let e={lvl:5,msg:"no valid message received",meta:""};Object.assign(e,t),this.msgList.unshift(e)}))},methods:{clearMessage(){this.msgList.length>0&&this.msgList.splice(0,1)}}},p=l,c=s(1001),h=s(3453),d=s.n(h),u=s(1234),m=s(3150),g=s(2102),f=s(6428),v=s(2877),b=(0,c.Z)(p,i,r,!1,null,null,null),y=b.exports;d()(b,{VAlert:u.Z,VBtn:m.Z,VCol:g.Z,VIcon:f.Z,VRow:v.Z});var w={components:{Broadcaster:y},data:()=>({appBar:{color:"",drawer:null,clock:null,header:null},app:{options:{loading:!1,reloadBtn:!1,expandGroups:!1,expandRooms:!1,mobileHeaderContent:!1},session:{connect:!1},data:{roomList:[],groupList:[]}},version:"v"+s(4147).i8,status:{color:"secondary",icon:"mdi-circle",text:"unbekannt",time:""}}),computed:{showRooms(){return this.app.data.roomList.length>0},showGroups(){return this.app.data.groupList.length>0}},watch:{"app.session.connect"(t){this.status.color=t?"success":"error",this.status.text=t?"online":"offline",this.status.time=this.$fhem.getDateTime()}},mounted(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.appBar=this.$fhem.app.appBar},methods:{reload(){location.reload(!0)},goTo(t){let e=t||"/";this.$router.currentRoute.path!=e&&this.$router.push(e)}}},O=w,C=s(7524),k=s(426),x=s(5206),_=s(5424),L=s(9846),D=s(1418),R=s(7047),S=s(6816),j=s(9443),T=s(7620),Z=s(1960),E=s(459),I=s(7877),F=s(5132),B=s(1058),V=s(624),N=s(9762),P=s(9330),A=(0,c.Z)(O,n,o,!1,null,"3b4d7587",null),H=A.exports;d()(A,{VApp:C.Z,VAppBar:k.Z,VAppBarNavIcon:x.Z,VBtn:m.Z,VChip:_.Z,VContainer:L.Z,VDivider:D.Z,VIcon:f.Z,VImg:R.Z,VList:S.Z,VListGroup:j.Z,VListItem:T.Z,VListItemContent:Z.km,VListItemIcon:E.Z,VListItemSubtitle:Z.oZ,VListItemTitle:Z.V9,VMain:I.Z,VNavigationDrawer:F.Z,VOverlay:B.Z,VProgressCircular:V.Z,VSpacer:N.Z,VTooltip:P.Z});var M=s(8345);a.Z.use(M.Z);const $=[{path:"/",name:"Home",component:()=>s.e(798).then(s.bind(s,6798))},{path:"/system",name:"System",component:()=>s.e(798).then(s.bind(s,6798))},{path:"/dashboard",name:"Dashboard",component:()=>s.e(798).then(s.bind(s,6798))},{path:"/devices/:filter",name:"Devices",component:()=>s.e(798).then(s.bind(s,6798))},{path:"/settings",name:"Settings",component:()=>s.e(884).then(s.bind(s,6884))},{path:"/syslog",name:"Syslog",component:()=>Promise.all([s.e(121),s.e(288),s.e(285),s.e(44)]).then(s.bind(s,4044))}],U=new M.Z({mode:"hash",base:"",routes:$});var q=U,z=s(9132),G=s(9146),J=s(1846);a.Z.use(z.Z);const X={lang:{locales:{de:G.Z},current:"de"},theme:{dark:!0,themes:{dark:{primary:J.Z.grey.darken4,secondary:J.Z.grey.darken3,success:J.Z.green.accent2,accent:J.Z.green.accent2},light:{primary:J.Z.grey,secondary:J.Z.grey.lighten3,success:J.Z.green.accent3,accent:J.Z.green.accent3}}}};var Y=new z.Z(X),W=s(7166),K=s.n(W),Q=s(7152);function tt(){const t=s(8973),e={};return t.keys().forEach((s=>{const a=s.match(/([A-Za-z0-9-_]+)\./i);if(a&&a.length>1){const n=a[1];e[n]=t(s)}})),e}a.Z.use(Q.Z);var et=new Q.Z({locale:"de",fallbackLocale:"en",messages:tt()}),st=s(7187),at=s.n(st);class nt extends(at()){constructor(){super(),this.app={connection:{location:window.location.protocol+"//"+window.location.hostname,port:window.location.port,path:"fhem",type:"websocket"},conn:null,connOffset:0,session:{connect:!1,ready:!1,csrf:null,restart:!1,restartCnt:0,logList:[]},options:{lang:"de",debugMode:!1,debugLevel:5,loading:!1,loadCount:0,clockInterval:1e3,clockFormat:{hour:"2-digit",minute:"2-digit"},clock:null,date:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500,ignoreFhemRoom:!1,ignoreFhemGroup:!1,ignoreFhemSortby:!1,mobileHeader:!1},theme:{dark:!0,themes:{}},appBar:{color:"primary",drawer:!1,clock:null,header:null,mobileHeader:null},templates:[],componentMap:[{name:"panel",component:"templ_panel"},{name:"chart",component:"templ_chart"},{name:"weather",component:"templ_weather"},{name:"list",component:"templ_list"},{name:"wdtimer",component:"templ_wdtimer"},{name:"sysmon",component:"templ_sysmon"},{name:"hmlan",component:"templ_hmlan"},{name:"sonos",component:"templ_sonos"},{name:"scenes",component:"templ_scenes"},{name:"cam",component:"templ_cam"},{name:"iframe",component:"templ_iframe"}],data:{roomList:[],groupList:[],deviceList:[],routeList:[],header:""},hasConnected:[]}}set loading(t){t&&this.app.options.loadCount++,!t&&this.app.options.loadCount>0&&this.app.options.loadCount--,this.app.options.loadCount>0&&!this.app.options.loading&&(this.app.options.loading=!0),0===this.app.options.loadCount&&(this.app.options.loading=!1)}log(t){let e=["","mdi-alert-outline","mdi-connection","mdi-send-circle-outline","mdi-sync","mdi-hexagon-multiple-outline"],s=["","error","info","success","success","warning"],a=(new Date).toLocaleTimeString(this.app.options.lang),n=(new Date).getMilliseconds(),o={time:a+":"+("000"+n).slice(-3),msg:t.msg||"",lvl:t.lvl||5,meta:t.meta||null,icon:e[t.lvl||5],color:s[t.lvl||5]};this.app.options.logRecord&&o.lvl<=this.app.options.debugLevel&&(this.app.session.logList.unshift(o),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer)),1==o.lvl&&(this.app.options.loadCount=0,this.app.options.loading=!1,this.emit("message",o))}getDate(t){let e=t?parseInt(t):0;return(t=>new Date(t.setDate(t.getDate()-e)).toISOString())(new Date).split("T")[0]}getWeekDay(t){let e=null;if(t){let s=/\d{2}.\d{2}.\d{4}/.exec(t);if(s&&1===s.length){let e=s[0].split(".");t=e[2]+"/"+e[1]+"/"+e[0]}e=new Date(t).toLocaleString(this.app.options.lang,{weekday:"long"})}return e}getDateTime(t){let e=t||(new Date).toISOString();return new Date(e.replace(" ","T")).toLocaleString(this.app.options.lang,{dateStyle:"short",timeStyle:"medium"}).replace(",","")}createURL(t){let e=this.app.connection,s=e.location?e.location:"",a=e.port?":"+e.port.replace(":",""):"",n=e.path?"/"+e.path.replace("/",""):"",o="";return"object"==typeof t&&t.length>0&&t.forEach((t=>{t.param&&t.value&&(o+=o?"&":"?",o+=t.param+"="+encodeURIComponent(t.value))})),s+a+n+o}getEl(t,...e){return e.reduce(((t,e)=>t&&t[e]),t)}async request(t,e,s){let a=[];"csrf"!=e&&a.push({param:"fwcsrf",value:this.app.session.csrf}),"json"!==e&&"csrf"!==e||a.push({param:"XHR",value:"1"}),"object"===typeof t&&(t.length>0?a.push(...t):a.push(t)),"string"===typeof t&&a.push({param:"cmd",value:t});let n=this.createURL(a);return this.log({lvl:3,msg:"Request: "+n}),await fetch(n).then((t=>{let a=null;return"csrf"===e&&(a=t.headers.get("x-fhem-csrftoken")),"json"===e&&(a=t.json()),a||(a=t.text()),"object"===typeof s?Object.assign(s,{data:a}):a})).catch((t=>this.log({lvl:1,msg:"Request failed "+n,meta:t.message})))}async getJsonFile(t){let e=new Headers;e.append("pragma","no-cache"),e.append("cache-control","no-cache");let s={method:"GET",headers:e},a=await fetch(t,s).then((t=>t.json())).catch((e=>this.log({lvl:1,msg:"Read Json-Data from "+t+" failed.",meta:e})));return a&&this.log({lvl:5,msg:"Json-Data parsed from "+t,meta:a}),await a}async readConfig(t){let e=await this.getJsonFile(t);if(e){for(const t of Object.keys(e))t in this.app&&Object.assign(this.app[t],e[t]);this.app.options.debugMode&&(this.app.appBar.color="pink darken-4")}else this.log({lvl:2,msg:"No Configuration File found. FHEMApp starting with default settings.",meta:this.app.options})}async createOptions(t){let e=null;if("appOptions"in t.Attributes){try{e=JSON.parse(t.Attributes.appOptions)}catch(s){this.log({lvl:1,msg:"Read `appOptions` from "+t.Name+" failed.",meta:s.message})}e&&(e.device=t.Name,e.name||(e.name=this.getEl(t,"Attributes","alias")||t.Name),e.sortby||this.app.options.ignoreFhemSortby||(e.sortby=this.getEl(t,"Attributes","sortby")||"zzz"),e.room||this.app.options.ignoreFhemRoom||(e.room=this.getEl(t,"Attributes","room")||""),e.group||this.app.options.ignoreFhemGroup||(e.group=this.getEl(t,"Attributes","group")||""),"hidden"===e.room&&(e.room=""),"hidden"===e.group&&(e.group=""),e.sortby||(e.sortby="zzz"),e.setup||(e.setup={}),e.show=!0,e.status={level:null,color:null,isActive:!0,error:null},e.info={left1Icon:null,left1IconColor:null,left1Text:null,left2Icon:null,left2IconColor:null,left2Text:null,mid1Icon:null,mid1IconColor:null,mid1Text:null,mid2Icon:null,mid2IconColor:null,mid2Text:null,right1Icon:null,right1IconColor:null,right1Text:null,right2Icon:null,right2IconColor:null,right2Text:null})}return await e}createRoutes(t,e){let s=this.app.data.routeList.map((t=>t.route)).indexOf(e);-1!=s?this.app.data.routeList[s].deviceList.push(t.device):this.app.data.routeList.push({route:e,deviceList:[t.device]})}createNaviItems(t,e,s){let a=t[s].split(",");for(const n of a){let a=s+"="+n;-1==e.map((t=>t.title)).indexOf(n)&&e.push({title:n,route:a}),this.createRoutes(t,a)}}async getTemplate(t){if(-1==this.app.componentMap.map((t=>t.name)).indexOf(t.template)&&-1==this.app.templates.map((t=>t.name)).indexOf(t.template))return await this.getJsonFile("./cfg/templ_"+t.template+".json")}async loadStructure(){let t=await this.request({param:"cmd",value:"jsonList2 appOptions!= appOptions room group"},"json");if(t&&t.Results.length>0){let e=[],s=[];this.app.data.routeList.splice(0);for(const a of t.Results){let t=await this.createOptions(a);if(t.template){let a=await this.getTemplate(t);a&&this.app.templates.push(a),t.room&&this.createNaviItems(t,e,"room"),t.group&&this.createNaviItems(t,s,"group"),t.home&&this.createRoutes(t,"/"),t.dashboard&&this.createRoutes(t,"/dashboard"),t.system&&this.createRoutes(t,"/system")}}e.sort(((t,e)=>t.title>e.title?1:e.title>t.title?-1:0)),s.sort(((t,e)=>t.title>e.title?1:e.title>t.title?-1:0)),this.app.data.roomList=Object.assign([],e),this.app.data.groupList=Object.assign([],s),this.app.session.ready=!0,this.loading=!1}}async createConnected(t){let e={},s=this.app.hasConnected.indexOf(t.Name);if(-1==s){if(this.app.hasConnected.push(t.Name),"connected"in t.Options){let s=Object.keys(t.Options.connected);for(const a of s){let s=await this.request({param:"cmd",value:"jsonlist2 "+t.Options.connected[a]},"json");if(s&&1==s.Results.length){"PossibleSets"in s.Results[0]&&delete s.Results[0].PossibleSets,"PossibleAttrs"in s.Results[0]&&delete s.Results[0].PossibleAttrs;let t=await this.createOptions(s.Results[0]);t&&(s.Results[0].Options=t),t&&s.Results[0].Options.connected&&(s.Results[0].Connected=await this.createConnected(s.Results[0])),s.Results[0].Options&&this.handleTemplate(s.Results[0]),e[a]=s.Results[0]}}}}else this.log({lvl:1,msg:"FHEM Device "+t.Name+" is defined as connected device, witch is called from himself. ",meta:t});return e}getSetup(t){let e=this.app.templates.map((t=>t.name)).indexOf(t);if(-1!=e){let t=this.app.templates[e],s={};return t.status&&Object.assign(s,{status:t.status}),t.main&&Object.assign(s,{main:t.main}),t.info&&Object.assign(s,{info:t.info}),t.show&&Object.assign(s,{show:t.show}),s.size=t.size||"col-12 col-sm-6 col-md-4 col-lg-4",s.expand=t.expand||!1,s.expanded=t.expanded||!1,s}this.log({lvl:1,msg:"Template Definition "+t+" not found."})}getComponent(t){let e={component:"templ_default"},s=this.app.componentMap.map((t=>t.name)).indexOf(t);if(-1!=s){let t=this.app.componentMap[s].component;t&&(e.component=t)}return e}async getDevices(t){let e=this.app.data.routeList.map((t=>t.route)).indexOf(t);if(this.app.data.deviceList.splice(0),this.app.hasConnected=[],-1!=e||t.match("device=")){let s=-1!=e?this.app.data.routeList[e].deviceList.join(","):t.replace("device=","").split("&")[0];if(s){this.loading=!0;let t=await this.request({param:"cmd",value:"jsonlist2 "+s},"json"),e=[],a=1;for(const s of t.Results){"PossibleSets"in s&&delete s.PossibleSets,"PossibleAttrs"in s&&delete s.PossibleAttrs;let n=await this.createOptions(s),o=this.getComponent(n.template);if(Object.assign(n,o),"templ_default"===n.component){let t=await this.getSetup(n.template);n.setup&&Object.assign(t,n.setup),n.setup=t}s.Options=n,s.Options.connected&&(s.Connected=await this.createConnected(s)),this.handleTemplate(s),e.push(s),a===t.Results.length&&(e.sort(((t,e)=>t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0)),this.app.data.deviceList=Object.assign([],e),this.loading=!1),a++}}}}async checkUpdate(){let t=await this.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]),e=0;if(t){let s=t.split("\n").splice(2);for(const t of s)t.match("UPD")&&!t.match("excluded")&&e++}return e>0}handleLogData(t,e){let s=t.split("\n");s.length>3&&s.splice(-3,3);let a=[],n=s.length>this.app.options.maxChartPoints?parseInt(s.length/this.app.options.maxChartPoints):1,o=n,i=null,r=1,l=null;for(const p of s){let t=p.split(" "),c=Date.parse(t[0].replace("_","T")),h=new Date(c),d=null,u=parseFloat(t[1]);e?(/-min/.test(e)&&(i>u||!i)&&(i=u),/-max/.test(e)&&il||r===s.length)&&(a.push({timestamp:l,value:i}),i=null,l=d)):(i+=u,(r>=o||r===s.length)&&(r===s.length&&(n-=o-r),a.push({timestamp:c,value:i/n}),o+=n,i=0)),r++}return this.log({lvl:5,msg:"handle Chartdata (Lines: "+s.length+")"}),a}async readLogData(t){let e=[];if(this.loading=!0,t.defs&&t.defs.length>0){let s=0;for(const a of t.defs){let n=/\(.*\)/.exec(a),o=n?a.replace(n[0],"_").split(":"):a.split(":"),i="get ";i+=o[0]?o[0]:t.deviceName,i+=t.from?" - - "+t.from:"",i+=t.to?" "+t.to:"",i+=n?" "+n[0].replace(/\(|\)/g,""):" 4:"+o[1];let r=await this.request([{param:"cmd",value:i},{param:"XHR",value:"1"}],"text",{id:s}),l=o[11]?o[11]:null;r&&e.push({id:r.id,data:this.handleLogData(await r.data,l)}),s++}}return this.loading=!1,Object.assign(t,{data:e})}replaceVals(t,e,s){let a=/-?[0-9]/.exec(e),n=[];for(var o=2;o1?r+"Tage ":r>0?r+"Tag ":"";c+=l>0?l+"h ":"",c+=p>0?p+"min":"",i=t[o].replace("%a",c)}if(/%n/.test(t[o])&&a){/%n.[0-9]/.test(t[o])||(t[o]=t[o].replace("%n","%n.0"));let s=/%n../.exec(t[o]),n=s[0].replace("%n.","");i=t[o].replace(s[0],parseFloat(e.slice(a.index)).toLocaleString(this.app.options.lang,{minimumFractionDigits:n,maximumFractionDigits:n}))}if(/%i/.test(t[o])&&a){let s=parseFloat(t[o].split("%i")[1]);if("isNaN"!=s){let n=s.toString().split(".")[1]||"",r=n.length,l=parseFloat(e.slice(a.index))+s;i=t[o].replace("%i"+s,l.toFixed(r))}}i=i.replace(/:/g,":"),n.push(i)}return n}handleVals(t,e){let s=[];if("string"===typeof e&&(s=[e]),"object"===typeof t&&"object"===typeof e&&e.length>0)for(const a of e){let e=a.split(":");if(e.length>2){let a=/\./.test(e[0])?e[0].split("."):["Readings",e[0],"Value"],n=this.getEl(t,...a)||this.getEl(t,"Readings",e[0],"Value");if(n){let a=!1,o=parseFloat(e[1]);if(isNaN(o))RegExp(e[1]?e[1]:".").test(n)&&(a=!0);else{let t=/-?[0-9]/.exec(n);-1!=t.index&&parseFloat(n.slice(t.index))>=o&&(a=!0)}if(a){s=this.replaceVals(e,n,t.Name);break}}}}return s}handleTemplate(t){let e=this.getEl(t,"Options","setup","show"),s=this.getEl(t,"Options","setup","status","bar"),a=this.getEl(t,"Options","setup","status","error"),n=this.getEl(t,"Options","setup","info");if(e){let s=this.handleVals(t,e);t.Options.show="false"!==s[0],s[1]&&(t.Options.setup.size=s[1]),s[2]&&(t.Options.sortby=s[2])}if(s){let e=this.getEl(t,"Options","setup","status","min")||0,a=this.getEl(t,"Options","setup","status","max")||100,n=this.handleVals(t,s),o=100/(a-e),i=(n[0]||"0"-e)*o;t.Options.status.level=n[2]?100-i:i,t.Options.status.color=n[1]||"success"}if(a){let e=this.handleVals(t,a);e.length>0?(t.Options.status.level=e[0]||"100",t.Options.status.color=e[1]||"error",t.Options.status.error=e[2]||"Fehler",t.Options.status.isActive=!1):t.Options.status.isActive=!0}if(n){let e=this.handleVals(t,n.left1),s=this.handleVals(t,n.left2),a=this.handleVals(t,n.mid1),o=this.handleVals(t,n.mid2),i=this.handleVals(t,n.right1),r=this.handleVals(t,n.right2);t.Options.info.left1IconColor=e[2]||"",t.Options.info.left1Icon=e[1]||"",t.Options.info.left1Text=e[0]||"",t.Options.info.left2IconColor=s[2]||"",t.Options.info.left2Icon=s[1]||"",t.Options.info.left2Text=s[0]||"",t.Options.info.mid1IconColor=a[2]||"",t.Options.info.mid1Icon=a[1]||"",t.Options.info.mid1Text=a[0]||"",t.Options.info.mid2IconColor=o[2]||"",t.Options.info.mid2Icon=o[1]||"",t.Options.info.mid2Text=o[0]||"",t.Options.info.right1IconColor=i[2]||"",t.Options.info.right1Icon=i[1]||"",t.Options.info.right1Text=i[0]||"",t.Options.info.right2IconColor=r[2]||"",t.Options.info.right2Icon=r[1]||"",t.Options.info.right2Text=r[0]||""}}handleData(t){let e=JSON.parse(t),s=null;if(!e[2].match("0){let t=this.handleData(s);if(t){let e=0;for(const s of this.app.data.deviceList){let a=this.app.data.deviceList[e],n=Object.assign({},a);if(s.Name===t.Name&&("Readings"===t.devicePart&&this.getEl(n,"Readings",t.param,t.paramPart)&&(n.Readings[t.param][t.paramPart]=t.value),"Attributes"===t.devicePart&&this.getEl(n,"Attributes",t.param)&&(n.Attributes[t.param]=t.value),this.handleTemplate(n),this.app.data.deviceList.splice(e,1,n),this.app.data.deviceList.sort(((t,e)=>t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0))),"Connected"in s){let a=0;for(const o of Object.values(s.Connected)){if(o.Name===t.Name){let o=Object.keys(s.Connected)[a];"Readings"===t.devicePart&&this.getEl(n.Connected[o],"Readings",t.param,t.paramPart)&&(n.Connected[o].Readings[t.param][t.paramPart]=t.value),"Attributes"===t.devicePart&&this.getEl(n.Connected[o],"Attributes",t.param)&&(n.Connected[o].Attributes[t.param]=t.value),this.handleTemplate(n),this.app.data.deviceList.splice(e,1,n),this.app.data.deviceList.sort(((t,e)=>t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0))}a++}}e++}}}}async connOpen(){this.app.session.connect=!0,this.app.session.restartCnt=0,this.log({lvl:2,msg:"Connection with FHEM is opened.",meta:this.app.connection}),this.app.session.csrf=await this.request({},"csrf"),this.log({lvl:2,msg:"Crsf-Token received.",meta:{token:this.app.session.csrf}}),this.loadStructure()}async connClose(t){if(this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.ready=!1,this.app.conn=null,!this.app.session.restart){let e=0==this.app.session.restartCnt?1:3e3;this.app.session.restart=!0,setTimeout((()=>{this.app.session.restart=!1,this.app.session.restartCnt++,this.connStart()}),e);let s={info:"Connection ("+this.app.connection.type+") "+(t?"failed.":"was closed."),errCode:t||""};this.log({lvl:2,msg:"Connection with FHEM was closed. Try to Reconnect in "+e/1e3+" seconds...",meta:s}),this.loading=!1}}async connStart(){let t=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],e=this.createURL(t);"websocket"===this.app.connection.type?(this.app.conn=new WebSocket(e.replace(/^http/i,"ws")),this.app.conn.onopen=()=>this.connOpen(),this.app.conn.onmessage=t=>this.doUpdate(t),this.app.conn.onclose=()=>this.connClose(),this.app.conn.onerror=t=>this.connClose(t)):(this.app.conn=new XMLHttpRequest,this.app.conn.open("GET",e,!0),this.app.conn.onreadystatechange=()=>{200===this.app.conn.status&&2===this.app.conn.readyState&&this.connOpen(),200===this.app.conn.status&&3===this.app.conn.readyState&&this.doUpdate()},this.app.conn.onerror=t=>this.connClose(t),this.app.conn.send())}setClock(){let t=new Date;this.app.appBar.clock=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat),this.app.appBar.header=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"clock"===this.app.options.mobileHeaderContent&&(this.app.appBar.mobileHeader=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat)),"date"===this.app.options.mobileHeaderContent&&(this.app.appBar.mobileHeader=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}))}async init(t,e){this.getWeekDay("2022-04-06 08:37:29"),this.log({lvl:2,msg:"Starting FHEMApp..."}),this.loading=!0,await this.readConfig("./cfg/config.json"),this.connStart(),t&&this.app.theme&&(-1!=this.app.theme.dark&&Object.assign(t.framework.theme,{dark:this.app.theme.dark}),this.app.theme.themes.light&&Object.assign(t.framework.theme.themes.light,this.app.theme.themes.light),this.app.theme.themes.dark&&Object.assign(t.framework.theme.themes.dark,this.app.theme.themes.dark)),e&&this.app.options.lang&&(e.locale=this.app.options.lang),this.setClock(),setInterval((()=>this.setClock()),this.app.options.clockInterval)}}var ot={install(t,e,s){t.prototype.$fhem=new nt,t.prototype.$fhem.init(e,s)}};a.Z.use(ot,Y,et),a.Z.use(K()),a.Z.component("apex-chart",K()),a.Z.config.productionTip=!1,new a.Z({vuetify:Y,router:q,i18n:et,render:t=>t(H)}).$mount("#app")},8973:function(t,e,s){var a={"./de.json":9929,"./en.json":790};function n(t){var e=o(t);return s(e)}function o(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}n.keys=function(){return Object.keys(a)},n.resolve=o,t.exports=n,n.id=8973},2862:function(t,e,s){"use strict";t.exports=s.p+"img/FHEM_Logo.a2a7fc8d.png"},4147:function(t){"use strict";t.exports={i8:"3.34.3"}},9929:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Gruppen","room":"Bereiche","dashboard":"Dashboard","system":"System"},"dates":{"from":"von","to":"bis"}},"templates":{"sysmon":{"updateBtn":["prüfe Updates...","system aktuell","update","update läuft.."],"restartBtn":"neustart","updateDialog":{"header":"FHEM Update","text":"Update wurde erfolgreich beendet. FHEM sollte neu gestartet werden.","restartBtn":"jetzt neustarten"}}}}')},790:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Groups","room":"Area","dashboard":"Dashboard","system":"System"},"dates":{"from":"From","to":"To"}},"templates":{"sysmon":{"updateBtn":["check updates...","up to date","update","update running..."],"restartBtn":"restart","updateDialog":{"header":"FHEM Update","text":"Update was successful finished. FHEM should be restarted now.","restartBtn":"restart now"}}}}')}},e={};function s(a){var n=e[a];if(void 0!==n)return n.exports;var o=e[a]={exports:{}};return t[a].call(o.exports,o,o.exports,s),o.exports}s.m=t,function(){var t=[];s.O=function(e,a,n,o){if(!a){var i=1/0;for(c=0;c=o)&&Object.keys(s.O).every((function(t){return s.O[t](a[l])}))?a.splice(l--,1):(r=!1,o0&&t[c-1][2]>o;c--)t[c]=t[c-1];t[c]=[a,n,o]}}(),function(){s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,{a:e}),e}}(),function(){s.d=function(t,e){for(var a in e)s.o(e,a)&&!s.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})}}(),function(){s.f={},s.e=function(t){return Promise.all(Object.keys(s.f).reduce((function(e,a){return s.f[a](t,e),e}),[]))}}(),function(){s.u=function(t){return"js/"+t+"."+{44:"1ae09cf8",96:"96944520",121:"006dace8",154:"cb009208",285:"6f4a97dd",288:"6d3eb988",289:"acdc7a20",322:"33ddfd11",337:"f1a9c2fa",387:"06272897",438:"27924680",475:"e1a25454",507:"4ff242cc",630:"98a6a9da",687:"0fef760c",798:"430ef374",869:"71b20017",884:"472374d2",947:"371294c0"}[t]+".js"}}(),function(){s.miniCssF=function(t){return"css/"+t+"."+{44:"7086d1d2",96:"00e0efdd",154:"8ecd64f4",285:"b6c37c1b",288:"a57bcf5c",289:"8ecd64f4",337:"b2abc4be",387:"5322d21c",438:"85e1c6a8",475:"35328724",507:"8ecd64f4",630:"b79779ed",687:"8ecd64f4",869:"5fde8d03",947:"85e1c6a8"}[t]+".css"}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="fhemapp:";s.l=function(a,n,o,i){if(t[a])t[a].push(n);else{var r,l;if(void 0!==o)for(var p=document.getElementsByTagName("script"),c=0;c({alert:!1,type:"info",types:["","error","info","info","success","warning"],message:"",meta:"",msgList:[]}),watch:{msgList(){this.msgList&&this.msgList.length>0?(this.type=this.types[this.msgList[0].lvl],this.message=this.msgList[0].msg,this.meta=this.msgList[0].meta,this.alert=!0):(this.alert=!1,this.type="info",this.message="",this.meta="")}},mounted(){this.$fhem.on("message",(t=>{let e={lvl:5,msg:"no valid message received",meta:""};Object.assign(e,t),this.msgList.unshift(e)}))},methods:{clearMessage(){this.msgList.length>0&&this.msgList.splice(0,1)}}},p=l,c=s(1001),h=s(3453),d=s.n(h),u=s(1234),m=s(3150),f=s(2102),g=s(6428),v=s(2877),b=(0,c.Z)(p,i,r,!1,null,null,null),y=b.exports;d()(b,{VAlert:u.Z,VBtn:m.Z,VCol:f.Z,VIcon:g.Z,VRow:v.Z});var O={components:{Broadcaster:y},data:()=>({appBar:{color:"",drawer:null,clock:null,header:null},app:{options:{loading:!1,reloadBtn:!1,expandGroups:!1,expandRooms:!1,mobileHeaderContent:!1},session:{connect:!1},data:{roomList:[],groupList:[]}},version:"v"+s(4147).i8,status:{color:"secondary",icon:"mdi-circle",text:"unbekannt",time:""}}),computed:{showRooms(){return this.app.data.roomList.length>0},showGroups(){return this.app.data.groupList.length>0}},watch:{"app.session.connect"(t){this.status.color=t?"success":"error",this.status.text=t?"online":"offline",this.status.time=this.$fhem.getDateTime()}},mounted(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.appBar=this.$fhem.app.appBar},methods:{reload(){location.reload(!0)},goTo(t){let e=t||"/";this.$router.currentRoute.path!=e&&this.$router.push(e)}}},w=O,C=s(7524),k=s(426),x=s(5206),_=s(5424),L=s(9846),R=s(1418),S=s(7047),j=s(6816),T=s(9443),Z=s(7620),E=s(1960),D=s(459),I=s(7877),B=s(5132),V=s(1058),F=s(624),N=s(9762),P=s(9330),A=(0,c.Z)(w,a,o,!1,null,"3b4d7587",null),H=A.exports;d()(A,{VApp:C.Z,VAppBar:k.Z,VAppBarNavIcon:x.Z,VBtn:m.Z,VChip:_.Z,VContainer:L.Z,VDivider:R.Z,VIcon:g.Z,VImg:S.Z,VList:j.Z,VListGroup:T.Z,VListItem:Z.Z,VListItemContent:E.km,VListItemIcon:D.Z,VListItemSubtitle:E.oZ,VListItemTitle:E.V9,VMain:I.Z,VNavigationDrawer:B.Z,VOverlay:V.Z,VProgressCircular:F.Z,VSpacer:N.Z,VTooltip:P.Z});var M=s(8345);n.Z.use(M.Z);const $=[{path:"/",name:"Home",component:()=>s.e(798).then(s.bind(s,6798))},{path:"/system",name:"System",component:()=>s.e(798).then(s.bind(s,6798))},{path:"/dashboard",name:"Dashboard",component:()=>s.e(798).then(s.bind(s,6798))},{path:"/devices/:filter",name:"Devices",component:()=>s.e(798).then(s.bind(s,6798))},{path:"/settings",name:"Settings",component:()=>s.e(884).then(s.bind(s,6884))},{path:"/syslog",name:"Syslog",component:()=>Promise.all([s.e(121),s.e(288),s.e(285),s.e(44)]).then(s.bind(s,4044))}],U=new M.Z({mode:"hash",base:"",routes:$});var q=U,z=s(9132),G=s(9146),J=s(1846);n.Z.use(z.Z);const X={lang:{locales:{de:G.Z},current:"de"},theme:{dark:!0,themes:{dark:{primary:J.Z.grey.darken4,secondary:J.Z.grey.darken3,success:J.Z.green.accent2,accent:J.Z.green.accent2},light:{primary:J.Z.grey,secondary:J.Z.grey.lighten3,success:J.Z.green.accent3,accent:J.Z.green.accent3}}}};var W=new z.Z(X),K=s(7166),Q=s.n(K),Y=s(7152);function tt(){const t=s(8973),e={};return t.keys().forEach((s=>{const n=s.match(/([A-Za-z0-9-_]+)\./i);if(n&&n.length>1){const a=n[1];e[a]=t(s)}})),e}n.Z.use(Y.Z);var et=new Y.Z({locale:"de",fallbackLocale:"en",messages:tt()}),st=s(7187),nt=s.n(st);class at extends(nt()){constructor(){super(),this.app={connection:{location:window.location.protocol+"//"+window.location.hostname,port:window.location.port,path:"fhem",type:"websocket"},conn:null,connOffset:0,session:{connect:!1,ready:!1,csrf:null,restart:!1,restartCnt:0,logList:[]},options:{lang:"de",debugMode:!1,debugLevel:5,loading:!1,loadCount:0,clockInterval:1e3,clockFormat:{hour:"2-digit",minute:"2-digit"},clock:null,date:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500,ignoreFhemRoom:!1,ignoreFhemGroup:!1,ignoreFhemSortby:!1,mobileHeader:!1},theme:{dark:!0,themes:{}},appBar:{color:"primary",drawer:!1,clock:null,header:null,mobileHeader:null},templates:[],componentMap:[{name:"panel",component:"templ_panel"},{name:"chart",component:"templ_chart"},{name:"weather",component:"templ_weather"},{name:"list",component:"templ_list"},{name:"wdtimer",component:"templ_wdtimer"},{name:"sysmon",component:"templ_sysmon"},{name:"hmlan",component:"templ_hmlan"},{name:"sonos",component:"templ_sonos"},{name:"scenes",component:"templ_scenes"},{name:"cam",component:"templ_cam"},{name:"iframe",component:"templ_iframe"}],data:{roomList:[],groupList:[],deviceList:[],routeList:[],header:""},hasConnected:[]}}set loading(t){t&&this.app.options.loadCount++,!t&&this.app.options.loadCount>0&&this.app.options.loadCount--,this.app.options.loadCount>0&&!this.app.options.loading&&(this.app.options.loading=!0),0===this.app.options.loadCount&&(this.app.options.loading=!1)}log(t){let e=["","mdi-alert-outline","mdi-connection","mdi-send-circle-outline","mdi-sync","mdi-hexagon-multiple-outline"],s=["","error","info","success","success","warning"],n=(new Date).toLocaleTimeString(this.app.options.lang),a=(new Date).getMilliseconds(),o={time:n+":"+("000"+a).slice(-3),msg:t.msg||"",lvl:t.lvl||5,meta:t.meta||null,icon:e[t.lvl||5],color:s[t.lvl||5]};this.app.options.logRecord&&o.lvl<=this.app.options.debugLevel&&(this.app.session.logList.unshift(o),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer)),1==o.lvl&&(this.app.options.loadCount=0,this.app.options.loading=!1,this.emit("message",o))}getDate(t){let e=t?parseInt(t):0;return(t=>new Date(t.setDate(t.getDate()-e)).toISOString())(new Date).split("T")[0]}getWeekDay(t){let e=null;if(t){let s=/\d{2}.\d{2}.\d{4}/.exec(t);if(s&&1===s.length){let e=s[0].split(".");t=e[2]+"/"+e[1]+"/"+e[0]}e=new Date(t).toLocaleString(this.app.options.lang,{weekday:"long"})}return e}getDateTime(t){let e=t||(new Date).toISOString();return new Date(e.replace(" ","T")).toLocaleString(this.app.options.lang,{dateStyle:"short",timeStyle:"medium"}).replace(",","")}createURL(t){let e=this.app.connection,s=e.location?e.location:"",n=e.port?":"+e.port.replace(":",""):"",a=e.path?"/"+e.path.replace("/",""):"",o="";return"object"==typeof t&&t.length>0&&t.forEach((t=>{t.param&&t.value&&(o+=o?"&":"?",o+=t.param+"="+encodeURIComponent(t.value))})),s+n+a+o}getEl(t,...e){return e.reduce(((t,e)=>t&&t[e]),t)}async request(t,e,s){let n=[];"csrf"!=e&&n.push({param:"fwcsrf",value:this.app.session.csrf}),"json"!==e&&"csrf"!==e||n.push({param:"XHR",value:"1"}),"object"===typeof t&&(t.length>0?n.push(...t):n.push(t)),"string"===typeof t&&n.push({param:"cmd",value:t});let a=this.createURL(n);return this.log({lvl:3,msg:"Request: "+a}),await fetch(a).then((t=>{let n=null;return"csrf"===e&&(n=t.headers.get("x-fhem-csrftoken")),"json"===e&&(n=t.json()),n||(n=t.text()),"object"===typeof s?Object.assign(s,{data:n}):n})).catch((t=>this.log({lvl:1,msg:"Request failed "+a,meta:t.message})))}async getJsonFile(t){let e=new Headers;e.append("pragma","no-cache"),e.append("cache-control","no-cache");let s={method:"GET",headers:e},n=await fetch(t,s).then((t=>t.json())).catch((e=>this.log({lvl:1,msg:"Read Json-Data from "+t+" failed.",meta:e})));return n&&this.log({lvl:5,msg:"Json-Data parsed from "+t,meta:n}),await n}async readConfig(t){let e=await this.getJsonFile(t);if(e){for(const t of Object.keys(e))t in this.app&&Object.assign(this.app[t],e[t]);this.app.options.debugMode&&(this.app.appBar.color="pink darken-4")}else this.log({lvl:2,msg:"No Configuration File found. FHEMApp starting with default settings.",meta:this.app.options})}async createOptions(t){let e=null;if("appOptions"in t.Attributes){try{e=JSON.parse(t.Attributes.appOptions)}catch(s){this.log({lvl:1,msg:"Read `appOptions` from "+t.Name+" failed.",meta:s.message})}e&&(e.device=t.Name,e.name||(e.name=this.getEl(t,"Attributes","alias")||t.Name),e.sortby||this.app.options.ignoreFhemSortby||(e.sortby=this.getEl(t,"Attributes","sortby")||"zzz"),e.room||this.app.options.ignoreFhemRoom||(e.room=this.getEl(t,"Attributes","room")||""),e.group||this.app.options.ignoreFhemGroup||(e.group=this.getEl(t,"Attributes","group")||""),"hidden"===e.room&&(e.room=""),"hidden"===e.group&&(e.group=""),e.sortby||(e.sortby="zzz"),e.setup||(e.setup={}),e.show=!0,e.status={level:null,color:null,isActive:!0,error:null},e.info={left1Icon:null,left1IconColor:null,left1Text:null,left2Icon:null,left2IconColor:null,left2Text:null,mid1Icon:null,mid1IconColor:null,mid1Text:null,mid2Icon:null,mid2IconColor:null,mid2Text:null,right1Icon:null,right1IconColor:null,right1Text:null,right2Icon:null,right2IconColor:null,right2Text:null})}return await e}createRoutes(t,e){let s=this.app.data.routeList.map((t=>t.route)).indexOf(e);-1!=s?this.app.data.routeList[s].deviceList.push(t.device):this.app.data.routeList.push({route:e,deviceList:[t.device]})}createNaviItems(t,e,s){let n=t[s].split(",");for(const a of n){let n=s+"="+a;-1==e.map((t=>t.title)).indexOf(a)&&e.push({title:a,route:n}),this.createRoutes(t,n)}}async getTemplate(t){if(-1==this.app.componentMap.map((t=>t.name)).indexOf(t.template)&&-1==this.app.templates.map((t=>t.name)).indexOf(t.template))return await this.getJsonFile("./cfg/templ_"+t.template+".json")}async loadStructure(){let t=await this.request({param:"cmd",value:"jsonList2 appOptions!= appOptions room group"},"json");if(t&&t.Results.length>0){let e=[],s=[];this.app.data.routeList.splice(0);for(const n of t.Results){let t=await this.createOptions(n);if(t.template){let n=await this.getTemplate(t);n&&this.app.templates.push(n),t.room&&this.createNaviItems(t,e,"room"),t.group&&this.createNaviItems(t,s,"group"),t.home&&this.createRoutes(t,"/"),t.dashboard&&this.createRoutes(t,"/dashboard"),t.system&&this.createRoutes(t,"/system")}}e.sort(((t,e)=>t.title>e.title?1:e.title>t.title?-1:0)),s.sort(((t,e)=>t.title>e.title?1:e.title>t.title?-1:0)),this.app.data.roomList=Object.assign([],e),this.app.data.groupList=Object.assign([],s),this.app.session.ready=!0,this.loading=!1}}async createConnected(t){let e={},s=this.app.hasConnected.indexOf(t.Name);if(-1==s){if(this.app.hasConnected.push(t.Name),"connected"in t.Options){let s=Object.keys(t.Options.connected);for(const n of s){let s=await this.request({param:"cmd",value:"jsonlist2 "+t.Options.connected[n]},"json");if(s&&1==s.Results.length){"PossibleSets"in s.Results[0]&&delete s.Results[0].PossibleSets,"PossibleAttrs"in s.Results[0]&&delete s.Results[0].PossibleAttrs;let t=await this.createOptions(s.Results[0]);t&&(s.Results[0].Options=t),t&&s.Results[0].Options.connected&&(s.Results[0].Connected=await this.createConnected(s.Results[0])),s.Results[0].Options&&this.handleTemplate(s.Results[0]),e[n]=s.Results[0]}}}}else this.log({lvl:1,msg:"FHEM Device "+t.Name+" is defined as connected device, witch is called from himself. ",meta:t});return e}getSetup(t){let e=this.app.templates.map((t=>t.name)).indexOf(t);if(-1!=e){let t=this.app.templates[e],s={};return t.status&&Object.assign(s,{status:t.status}),t.main&&Object.assign(s,{main:t.main}),t.info&&Object.assign(s,{info:t.info}),t.show&&Object.assign(s,{show:t.show}),s.size=t.size||"col-12 col-sm-6 col-md-4 col-lg-4",s.expand=t.expand||!1,s.expanded=t.expanded||!1,s}this.log({lvl:1,msg:"Template Definition "+t+" not found."})}getComponent(t){let e={component:"templ_default"},s=this.app.componentMap.map((t=>t.name)).indexOf(t);if(-1!=s){let t=this.app.componentMap[s].component;t&&(e.component=t)}return e}async getDevices(t){let e=this.app.data.routeList.map((t=>t.route)).indexOf(t);if(this.app.data.deviceList.splice(0),this.app.hasConnected=[],-1!=e||t.match("device=")){let s=-1!=e?this.app.data.routeList[e].deviceList.join(","):t.replace("device=","").split("&")[0];if(s){this.loading=!0;let t=await this.request({param:"cmd",value:"jsonlist2 "+s},"json"),e=[],n=1;for(const s of t.Results){"PossibleSets"in s&&delete s.PossibleSets,"PossibleAttrs"in s&&delete s.PossibleAttrs;let a=await this.createOptions(s),o=this.getComponent(a.template);if(Object.assign(a,o),"templ_default"===a.component){let t=await this.getSetup(a.template);a.setup&&Object.assign(t,a.setup),a.setup=t}s.Options=a,s.Options.connected&&(s.Connected=await this.createConnected(s)),this.handleTemplate(s),e.push(s),n===t.Results.length&&(e.sort(((t,e)=>t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0)),this.app.data.deviceList=Object.assign([],e),this.loading=!1),n++}}}}async checkUpdate(){let t=await this.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]),e=0;if(t){let s=t.split("\n").splice(2);for(const t of s)t.match("UPD")&&!t.match("excluded")&&e++}return e>0}handleLogData(t){let e=t.split("\n");e.length>3&&e.splice(-3,3);let s=[],n=e.length>this.app.options.maxChartPoints?parseInt(e.length/this.app.options.maxChartPoints):1,a=n,o=0,i=1;for(const r of e){let t=r.split(" "),l=Date.parse(t[0].replace("_","T")),p=parseFloat(t[1]);o+=p,(i>=a||i===e.length)&&(i===e.length&&(n-=a-i),s.push({timestamp:l,value:o/n}),a+=n,o=0),i++}return this.log({lvl:5,msg:"handle Chartdata (Lines: "+e.length+")"}),s}async readLogData(t){let e=[];if(this.loading=!0,t.defs&&t.defs.length>0){let s=0;for(const n of t.defs){let a=/\(.*\)/.exec(n),o=a?n.replace(a[0],"_").split(":"):n.split(":"),i="get ";i+=o[0]?o[0]:t.deviceName,i+=t.from?" - - "+t.from:"",i+=t.to?" "+t.to:"",i+=a?" "+a[0].replace(/\(|\)/g,""):" 4:"+o[1];let r=await this.request([{param:"cmd",value:i},{param:"XHR",value:"1"}],"text",{id:s});r&&e.push({id:r.id,data:this.handleLogData(await r.data)}),s++}}return this.loading=!1,Object.assign(t,{data:e})}replaceVals(t,e,s){let n=/-?[0-9]/.exec(e),a=[];for(var o=2;o1?r+"Tage ":r>0?r+"Tag ":"";c+=l>0?l+"h ":"",c+=p>0?p+"min":"",i=t[o].replace("%a",c)}if(/%n/.test(t[o])&&n){/%n.[0-9]/.test(t[o])||(t[o]=t[o].replace("%n","%n.0"));let s=/%n../.exec(t[o]),a=s[0].replace("%n.","");i=t[o].replace(s[0],parseFloat(e.slice(n.index)).toLocaleString(this.app.options.lang,{minimumFractionDigits:a,maximumFractionDigits:a}))}if(/%i/.test(t[o])&&n){let s=parseFloat(t[o].split("%i")[1]);if("isNaN"!=s){let a=s.toString().split(".")[1]||"",r=a.length,l=parseFloat(e.slice(n.index))+s;i=t[o].replace("%i"+s,l.toFixed(r))}}i=i.replace(/:/g,":"),a.push(i)}return a}handleVals(t,e){let s=[];if("string"===typeof e&&(s=[e]),"object"===typeof t&&"object"===typeof e&&e.length>0)for(const n of e){let e=n.split(":");if(e.length>2){let n=/\./.test(e[0])?e[0].split("."):["Readings",e[0],"Value"],a=this.getEl(t,...n)||this.getEl(t,"Readings",e[0],"Value");if(a){let n=!1,o=parseFloat(e[1]);if(isNaN(o))RegExp(e[1]?e[1]:".").test(a)&&(n=!0);else{let t=/-?[0-9]/.exec(a);-1!=t.index&&parseFloat(a.slice(t.index))>=o&&(n=!0)}if(n){s=this.replaceVals(e,a,t.Name);break}}}}return s}handleTemplate(t){let e=this.getEl(t,"Options","setup","show"),s=this.getEl(t,"Options","setup","status","bar"),n=this.getEl(t,"Options","setup","status","error"),a=this.getEl(t,"Options","setup","info");if(e){let s=this.handleVals(t,e);t.Options.show="false"!==s[0],s[1]&&(t.Options.setup.size=s[1]),s[2]&&(t.Options.sortby=s[2])}if(s){let e=this.getEl(t,"Options","setup","status","min")||0,n=this.getEl(t,"Options","setup","status","max")||100,a=this.handleVals(t,s),o=100/(n-e),i=(a[0]||"0"-e)*o;t.Options.status.level=a[2]?100-i:i,t.Options.status.color=a[1]||"success"}if(n){let e=this.handleVals(t,n);e.length>0?(t.Options.status.level=e[0]||"100",t.Options.status.color=e[1]||"error",t.Options.status.error=e[2]||"Fehler",t.Options.status.isActive=!1):t.Options.status.isActive=!0}if(a){let e=this.handleVals(t,a.left1),s=this.handleVals(t,a.left2),n=this.handleVals(t,a.mid1),o=this.handleVals(t,a.mid2),i=this.handleVals(t,a.right1),r=this.handleVals(t,a.right2);t.Options.info.left1IconColor=e[2]||"",t.Options.info.left1Icon=e[1]||"",t.Options.info.left1Text=e[0]||"",t.Options.info.left2IconColor=s[2]||"",t.Options.info.left2Icon=s[1]||"",t.Options.info.left2Text=s[0]||"",t.Options.info.mid1IconColor=n[2]||"",t.Options.info.mid1Icon=n[1]||"",t.Options.info.mid1Text=n[0]||"",t.Options.info.mid2IconColor=o[2]||"",t.Options.info.mid2Icon=o[1]||"",t.Options.info.mid2Text=o[0]||"",t.Options.info.right1IconColor=i[2]||"",t.Options.info.right1Icon=i[1]||"",t.Options.info.right1Text=i[0]||"",t.Options.info.right2IconColor=r[2]||"",t.Options.info.right2Icon=r[1]||"",t.Options.info.right2Text=r[0]||""}}handleData(t){let e=JSON.parse(t),s=null;if(!e[2].match("0){let t=this.handleData(s);if(t){let e=0;for(const s of this.app.data.deviceList){let n=this.app.data.deviceList[e],a=Object.assign({},n);if(s.Name===t.Name&&("Readings"===t.devicePart&&this.getEl(a,"Readings",t.param,t.paramPart)&&(a.Readings[t.param][t.paramPart]=t.value),"Attributes"===t.devicePart&&this.getEl(a,"Attributes",t.param)&&(a.Attributes[t.param]=t.value),this.handleTemplate(a),this.app.data.deviceList.splice(e,1,a),this.app.data.deviceList.sort(((t,e)=>t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0))),"Connected"in s){let n=0;for(const o of Object.values(s.Connected)){if(o.Name===t.Name){let o=Object.keys(s.Connected)[n];"Readings"===t.devicePart&&this.getEl(a.Connected[o],"Readings",t.param,t.paramPart)&&(a.Connected[o].Readings[t.param][t.paramPart]=t.value),"Attributes"===t.devicePart&&this.getEl(a.Connected[o],"Attributes",t.param)&&(a.Connected[o].Attributes[t.param]=t.value),this.handleTemplate(a),this.app.data.deviceList.splice(e,1,a),this.app.data.deviceList.sort(((t,e)=>t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0))}n++}}e++}}}}async connOpen(){this.app.session.connect=!0,this.app.session.restartCnt=0,this.log({lvl:2,msg:"Connection with FHEM is opened.",meta:this.app.connection}),this.app.session.csrf=await this.request({},"csrf"),this.log({lvl:2,msg:"Crsf-Token received.",meta:{token:this.app.session.csrf}}),this.loadStructure()}async connClose(t){if(this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.ready=!1,this.app.conn=null,!this.app.session.restart){let e=0==this.app.session.restartCnt?1:3e3;this.app.session.restart=!0,setTimeout((()=>{this.app.session.restart=!1,this.app.session.restartCnt++,this.connStart()}),e);let s={info:"Connection ("+this.app.connection.type+") "+(t?"failed.":"was closed."),errCode:t||""};this.log({lvl:2,msg:"Connection with FHEM was closed. Try to Reconnect in "+e/1e3+" seconds...",meta:s}),this.loading=!1}}async connStart(){let t=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],e=this.createURL(t);"websocket"===this.app.connection.type?(this.app.conn=new WebSocket(e.replace(/^http/i,"ws")),this.app.conn.onopen=()=>this.connOpen(),this.app.conn.onmessage=t=>this.doUpdate(t),this.app.conn.onclose=()=>this.connClose(),this.app.conn.onerror=t=>this.connClose(t)):(this.app.conn=new XMLHttpRequest,this.app.conn.open("GET",e,!0),this.app.conn.onreadystatechange=()=>{200===this.app.conn.status&&2===this.app.conn.readyState&&this.connOpen(),200===this.app.conn.status&&3===this.app.conn.readyState&&this.doUpdate()},this.app.conn.onerror=t=>this.connClose(t),this.app.conn.send())}setClock(){let t=new Date;this.app.appBar.clock=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat),this.app.appBar.header=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"clock"===this.app.options.mobileHeaderContent&&(this.app.appBar.mobileHeader=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat)),"date"===this.app.options.mobileHeaderContent&&(this.app.appBar.mobileHeader=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}))}async init(t,e){this.getWeekDay("2022-04-06 08:37:29"),this.log({lvl:2,msg:"Starting FHEMApp..."}),this.loading=!0,await this.readConfig("./cfg/config.json"),this.connStart(),t&&this.app.theme&&(-1!=this.app.theme.dark&&Object.assign(t.framework.theme,{dark:this.app.theme.dark}),this.app.theme.themes.light&&Object.assign(t.framework.theme.themes.light,this.app.theme.themes.light),this.app.theme.themes.dark&&Object.assign(t.framework.theme.themes.dark,this.app.theme.themes.dark)),e&&this.app.options.lang&&(e.locale=this.app.options.lang),this.setClock(),setInterval((()=>this.setClock()),this.app.options.clockInterval)}}var ot={install(t,e,s){t.prototype.$fhem=new at,t.prototype.$fhem.init(e,s)}};n.Z.use(ot,W,et),n.Z.use(Q()),n.Z.component("apex-chart",Q()),n.Z.config.productionTip=!1,new n.Z({vuetify:W,router:q,i18n:et,render:t=>t(H)}).$mount("#app")},8973:function(t,e,s){var n={"./de.json":9929,"./en.json":790};function a(t){var e=o(t);return s(e)}function o(t){if(!s.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}a.keys=function(){return Object.keys(n)},a.resolve=o,t.exports=a,a.id=8973},2862:function(t,e,s){"use strict";t.exports=s.p+"img/FHEM_Logo.a2a7fc8d.png"},4147:function(t){"use strict";t.exports={i8:"3.34.2"}},9929:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Gruppen","room":"Bereiche","dashboard":"Dashboard","system":"System"},"dates":{"from":"von","to":"bis"}},"templates":{"sysmon":{"updateBtn":["prüfe Updates...","system aktuell","update","update läuft.."],"restartBtn":"neustart","updateDialog":{"header":"FHEM Update","text":"Update wurde erfolgreich beendet. FHEM sollte neu gestartet werden.","restartBtn":"jetzt neustarten"}}}}')},790:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Groups","room":"Area","dashboard":"Dashboard","system":"System"},"dates":{"from":"From","to":"To"}},"templates":{"sysmon":{"updateBtn":["check updates...","up to date","update","update running..."],"restartBtn":"restart","updateDialog":{"header":"FHEM Update","text":"Update was successful finished. FHEM should be restarted now.","restartBtn":"restart now"}}}}')}},e={};function s(n){var a=e[n];if(void 0!==a)return a.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,s),o.exports}s.m=t,function(){var t=[];s.O=function(e,n,a,o){if(!n){var i=1/0;for(c=0;c=o)&&Object.keys(s.O).every((function(t){return s.O[t](n[l])}))?n.splice(l--,1):(r=!1,o0&&t[c-1][2]>o;c--)t[c]=t[c-1];t[c]=[n,a,o]}}(),function(){s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,{a:e}),e}}(),function(){s.d=function(t,e){for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){s.f={},s.e=function(t){return Promise.all(Object.keys(s.f).reduce((function(e,n){return s.f[n](t,e),e}),[]))}}(),function(){s.u=function(t){return"js/"+t+"."+{44:"1ae09cf8",121:"006dace8",154:"cb009208",285:"6fc47f33",288:"6d3eb988",289:"acdc7a20",322:"a37a620a",337:"3c817406",387:"06272897",396:"02bb2eaa",438:"27924680",475:"e1a25454",583:"18a1d800",617:"e31d04c8",687:"0fef760c",798:"46c09455",869:"df959138",884:"472374d2",947:"371294c0"}[t]+".js"}}(),function(){s.miniCssF=function(t){return"css/"+t+"."+{44:"7086d1d2",154:"8ecd64f4",285:"b6c37c1b",288:"a57bcf5c",289:"8ecd64f4",337:"b2abc4be",387:"5322d21c",396:"8ecd64f4",438:"85e1c6a8",475:"35328724",583:"8ecd64f4",617:"b79779ed",687:"8ecd64f4",869:"5fde8d03",947:"85e1c6a8"}[t]+".css"}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="fhemapp:";s.l=function(n,a,o,i){if(t[n])t[n].push(a);else{var r,l;if(void 0!==o)for(var p=document.getElementsByTagName("script"),c=0;ca.maxX-e.width&&(s=(n=a.maxX-e.width)-this.startPoints.box.x),null!=a.minY&&ra.maxY-e.height&&(o=(r=a.maxY-e.height)-this.startPoints.box.y),null!=a.snapToGrid&&(n-=n%a.snapToGrid,r-=r%a.snapToGrid,s-=s%a.snapToGrid,o-=o%a.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:s,y:o},!0):this.el.move(n,r));return i},t.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,i){"function"!=typeof e&&"object"!=typeof e||(i=e,e=!0);var n=this.remember("_draggable")||new t(this);return(e=void 0===e||e)?n.init(i||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function t(t){this.el=t,t.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,e,i){var n="string"!=typeof t?t:e[t];return i?n/2:n},this.pointCoords=function(t,e){var i=this.pointsList[t];return{x:this.pointCoord(i[0],e,"t"===t||"b"===t),y:this.pointCoord(i[1],e,"r"===t||"l"===t)}}}t.prototype.init=function(t,e){var i=this.el.bbox();this.options={};var n=this.el.selectize.defaults.points;for(var r in this.el.selectize.defaults)this.options[r]=this.el.selectize.defaults[r],void 0!==e[r]&&(this.options[r]=e[r]);var a=["points","pointsExclude"];for(var r in a){var s=this.options[a[r]];"string"==typeof s?s=s.length>0?s.split(/\s*,\s*/i):[]:"boolean"==typeof s&&"points"===a[r]&&(s=s?n:[]),this.options[a[r]]=s}this.options.points=[n,this.options.points].reduce((function(t,e){return t.filter((function(t){return e.indexOf(t)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(t,e){return t.filter((function(t){return e.indexOf(t)<0}))})),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},t.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},t.prototype.getPointArray=function(){var t=this.el.bbox();return this.el.array().valueOf().map((function(e){return[e[0]-t.x,e[1]-t.y]}))},t.prototype.drawPoints=function(){for(var t=this,e=this.getPointArray(),i=0,n=e.length;i0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y+i[1]).size(this.parameters.box.width-i[0],this.parameters.box.height-i[1])}};break;case"rt":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).size(this.parameters.box.width+i[0],this.parameters.box.height-i[1])}};break;case"rb":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+i[0],this.parameters.box.height+i[1])}};break;case"lb":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).size(this.parameters.box.width-i[0],this.parameters.box.height+i[1])}};break;case"t":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).height(this.parameters.box.height-i[1])}};break;case"r":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+i[0])}};break;case"b":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+i[1])}};break;case"l":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).width(this.parameters.box.width-i[0])}};break;case"rot":this.calc=function(t,e){var i=t+this.parameters.p.x,n=e+this.parameters.p.y,r=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),a=Math.atan2(n-this.parameters.box.y-this.parameters.box.height/2,i-this.parameters.box.x-this.parameters.box.width/2),s=this.parameters.rotation+180*(a-r)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(s-s%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(t,e){var i=this.snapToGrid(t,e,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),n=this.el.array().valueOf();n[this.parameters.i][0]=this.parameters.pointCoords[0]+i[0],n[this.parameters.i][1]=this.parameters.pointCoords[1]+i[1],this.el.plot(n)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",(function(t){e.update(t||window.event)})),SVG.on(window,"touchend.resize",(function(){e.done()})),SVG.on(window,"mousemove.resize",(function(t){e.update(t||window.event)})),SVG.on(window,"mouseup.resize",(function(){e.done()}))},t.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),n=i.x-this.parameters.p.x,r=i.y-this.parameters.p.y;this.lastUpdateCall=[n,r],this.calc(n,r),this.el.fire("resizing",{dx:n,dy:r,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},t.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},t.prototype.snapToGrid=function(t,e,i,n){var r;return void 0!==n?r=[(i+t)%this.options.snapToGrid,(n+e)%this.options.snapToGrid]:(i=null==i?3:i,r=[(this.parameters.box.x+t+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),t<0&&(r[0]-=this.options.snapToGrid),e<0&&(r[1]-=this.options.snapToGrid),t-=Math.abs(r[0])s.maxX&&(t=s.maxX-r),void 0!==s.minY&&a+es.maxY&&(e=s.maxY-a),[t,e]},t.prototype.checkAspectRatio=function(t,e){if(!this.options.saveAspectRatio)return t;var i=t.slice(),n=this.parameters.box.width/this.parameters.box.height,r=this.parameters.box.width+t[0],a=this.parameters.box.height-t[1],s=r/a;return sn&&(i[0]=this.parameters.box.width-a*n,e&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new t(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var Bt=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new w(this.ctx),this.ctx.axes=new nt(this.ctx),this.ctx.core=new Xt(this.ctx.el,this.ctx),this.ctx.config=new W({}),this.ctx.data=new V(this.ctx),this.ctx.grid=new K(this.ctx),this.ctx.graphics=new S(this.ctx),this.ctx.coreUtils=new L(this.ctx),this.ctx.crosshairs=new rt(this.ctx),this.ctx.events=new et(this.ctx),this.ctx.exports=new U(this.ctx),this.ctx.localization=new it(this.ctx),this.ctx.options=new P,this.ctx.responsive=new at(this.ctx),this.ctx.series=new N(this.ctx),this.ctx.theme=new st(this.ctx),this.ctx.formatters=new Z(this.ctx),this.ctx.titleSubtitle=new ot(this.ctx),this.ctx.legend=new pt(this.ctx),this.ctx.toolbar=new gt(this.ctx),this.ctx.dimensions=new dt(this.ctx),this.ctx.updateHelpers=new Ht(this.ctx),this.ctx.zoomPanSelection=new vt(this.ctx),this.ctx.w.globals.tooltip=new St(this.ctx)}}]),t}(),Yt=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"clear",value:function(t){var e=t.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:e})}},{key:"killSVG",value:function(t){t.each((function(t,e){this.removeClass("*"),this.off(),this.stop()}),!0),t.ungroup(),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,i=t.isUpdating,n=this.w.globals.dom.Paper.node;n.parentNode&&n.parentNode.parentNode&&!i&&(n.parentNode.parentNode.style.minHeight="unset");var r=this.w.globals.dom.baseEl;r&&this.ctx.eventList.forEach((function(t){r.removeEventListener(t,e.ctx.events.documentEvent)}));var a=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(a.Paper),a.Paper.remove(),a.elWrap=null,a.elGraphical=null,a.elAnnotations=null,a.elLegendWrap=null,a.baseEl=null,a.elGridRect=null,a.elGridRectMask=null,a.elGridRectMarkerMask=null,a.elForecastMask=null,a.elNonForecastMask=null,a.elDefs=null}}]),t}(),Wt=new WeakMap;return function(){function t(e,i){o(this,t),this.opts=i,this.ctx=this,this.w=new $(i).init(),this.el=e,this.w.globals.cuid=y.randomId(),this.w.globals.chartID=this.w.config.chart.id?y.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Bt(this).initModules(),this.create=y.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return c(t,[{key:"render",value:function(){var t=this;return new Promise((function(e,i){if(null!==t.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);var n=t.w.config.chart.events.beforeMount;if("function"==typeof n&&n(t,t.w),t.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),function(t,e){var i=!1,n=t.getBoundingClientRect();"none"!==t.style.display&&0!==n.width||(i=!0);var r=new ResizeObserver((function(n){i&&e.call(t,n),i=!0}));t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(t.children).forEach((function(t){return r.observe(t)})):r.observe(t),Wt.set(e,r)}(t.el.parentNode,t.parentResizeHandler),!t.css){var r=t.el.getRootNode&&t.el.getRootNode(),a=y.is("ShadowRoot",r),s=t.el.ownerDocument,o=s.getElementById("apexcharts-css");!a&&o||(t.css=document.createElement("style"),t.css.id="apexcharts-css",t.css.textContent='.apexcharts-canvas {\n position: relative;\n user-select: none;\n /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */\n}\n\n\n/* scrollbar is not visible by default for legend, hence forcing the visibility */\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px;\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, .5);\n box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n}\n\n\n.apexcharts-inner {\n position: relative;\n}\n\n.apexcharts-text tspan {\n font-family: inherit;\n}\n\n.legend-mouseover-inactive {\n transition: 0.15s ease all;\n opacity: 0.20;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0;\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, 0.96);\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30, 30, 30, 0.8);\n}\n\n.apexcharts-tooltip * {\n font-family: inherit;\n}\n\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #ECEFF1;\n border-bottom: 1px solid #ddd;\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.7);\n border-bottom: 1px solid #333;\n}\n\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n font-weight: 600;\n margin-left: 5px;\n}\n\n.apexcharts-tooltip-title:empty,\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-z-value:empty {\n display: none;\n}\n\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-z-value {\n font-weight: 600;\n}\n\n.apexcharts-tooltip-text-goals-label, \n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-goals-group, \n.apexcharts-tooltip-text-goals-label, \n.apexcharts-tooltip-text-goals-value {\n display: flex;\n}\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px;\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0px;\n margin-right: 10px;\n border-radius: 50%;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px;\n}\n\n.apexcharts-tooltip-series-group-hidden {\n opacity: 0;\n height: 0;\n line-height: 0;\n padding: 0 !important;\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-box, .apexcharts-custom-tooltip {\n padding: 4px 8px;\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse;\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0;\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: bold;\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px;\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777;\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: bold;\n display: block;\n margin-bottom: 5px;\n}\n\n.apexcharts-xaxistooltip {\n opacity: 0;\n padding: 9px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #ECEFF1;\n border: 1px solid #90A4AE;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, 0.7);\n border: 1px solid rgba(0, 0, 0, 0.5);\n color: #fff;\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: rgba(236, 239, 241, 0);\n border-width: 6px;\n margin-left: -6px;\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: rgba(144, 164, 174, 0);\n border-width: 7px;\n margin-left: -7px;\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #ECEFF1;\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after {\n border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #ECEFF1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after {\n border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-yaxistooltip {\n opacity: 0;\n padding: 4px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #ECEFF1;\n border: 1px solid #90A4AE;\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, 0.7);\n border: 1px solid rgba(0, 0, 0, 0.5);\n color: #fff;\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: rgba(236, 239, 241, 0);\n border-width: 6px;\n margin-top: -6px;\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: rgba(144, 164, 174, 0);\n border-width: 7px;\n margin-top: -7px;\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%;\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%;\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after {\n border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after {\n border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1;\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none;\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0;\n}\n\n.apexcharts-selection-rect {\n cursor: move;\n}\n\n.svg_select_boundingRect, .svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden;\n}\n.apexcharts-selection-rect + g .svg_select_boundingRect,\n.apexcharts-selection-rect + g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden;\n}\n\n.apexcharts-selection-rect + g .svg_select_points_l,\n.apexcharts-selection-rect + g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible;\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon,\n.apexcharts-reset-icon,\n.apexcharts-pan-icon,\n.apexcharts-selection-icon,\n.apexcharts-menu-icon,\n.apexcharts-toolbar-custom-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6E8192;\n text-align: center;\n}\n\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-menu-icon svg {\n fill: #6E8192;\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(0.76)\n}\n\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg {\n fill: #f3f4f5;\n}\n\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg {\n fill: #008FFB;\n}\n\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg {\n fill: #333;\n}\n\n.apexcharts-selection-icon,\n.apexcharts-menu-icon {\n position: relative;\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px;\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-reset-icon,\n.apexcharts-menu-icon {\n transform: scale(0.85);\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n transform: scale(0.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px;\n}\n\n.apexcharts-pan-icon {\n transform: scale(0.62);\n position: relative;\n left: 1px;\n top: 0px;\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6E8192;\n stroke-width: 2;\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008FFB;\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333;\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0px 6px 2px 6px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: 0.15s ease all;\n pointer-events: none;\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: 0.15s ease all;\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer;\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee;\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0, 0, 0, 0.7);\n color: #fff;\n}\n\n@media screen and (min-width: 768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1;\n }\n}\n\n.apexcharts-datalabel.apexcharts-element-hidden {\n opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabels,\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value {\n cursor: default;\n pointer-events: none;\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: 0.3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease;\n}\n\n.apexcharts-canvas .apexcharts-element-hidden {\n opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-gridline,\n.apexcharts-annotation-rect,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line,\n.apexcharts-zoom-rect,\n.apexcharts-toolbar svg,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-radar-series path,\n.apexcharts-radar-series polygon {\n pointer-events: none;\n}\n\n\n/* markers */\n\n.apexcharts-marker {\n transition: 0.15s ease all;\n}\n\n@keyframes opaque {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n\n/* Resize generated styles */\n\n@keyframes resizeanim {\n from {\n opacity: 0;\n }\n to {\n opacity: 0;\n }\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n}\n\n.resize-triggers,\n.resize-triggers>div,\n.contract-trigger:before {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n overflow: hidden;\n}\n\n.resize-triggers>div {\n background: #eee;\n overflow: auto;\n}\n\n.contract-trigger:before {\n width: 200%;\n height: 200%;\n}',a?r.prepend(t.css):s.head.appendChild(t.css))}var l=t.create(t.w.config.series,{});if(!l)return e(t);t.mount(l).then((function(){"function"==typeof t.w.config.chart.events.mounted&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(l)})).catch((function(t){i(t)}))}else i(new Error("Element not found"))}))}},{key:"create",value:function(t,e){var i=this.w;new Bt(this).initModules();var n=this.w.globals;if(n.noData=!1,n.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new Y(i.config).convertCatToNumericXaxis(i.config,this.ctx),null===this.el)return n.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===n.svgWidth)return n.animationEnded=!0,null;var r=L.checkComboSeries(t);n.comboCharts=r.comboCharts,n.comboBarCount=r.comboBarCount;var a=t.every((function(t){return t.data&&0===t.data.length}));(0===t.length||a)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new M(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),n.noData&&n.collapsedSeries.length!==n.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),n.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new L(this).getLargestMarkerSize(),this.dimensions.plotCoords();var s=this.core.xySettings();this.grid.createGridMask();var o=this.core.plotChartType(t,s),l=new R(this);l.bringForward(),i.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition();var c={plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}};return{elGraph:o,xyRatios:s,elInner:i.globals.dom.elGraphical,dimensions:c}}},{key:"mount",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,n=i.w;return new Promise((function(r,a){if(null===i.el)return a(new Error("Not enough data to display or target element not found"));(null===e||n.globals.allSeriesCollapsed)&&i.series.handleNoData(),"treemap"!==n.config.chart.type&&i.axes.drawAxis(n.config.chart.type,e.xyRatios),i.grid=new K(i);var s=i.grid.drawGrid();i.annotations=new O(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===n.config.grid.position&&s&&n.globals.dom.elGraphical.add(s.el);var o=new q(t.ctx),l=new tt(t.ctx);if(null!==s&&(o.xAxisLabelCorrections(s.xAxisTickWidth),l.setYAxisTextAlignments(),n.config.yaxis.map((function(t,e){-1===n.globals.ignoreYAxisIndexes.indexOf(e)&&l.yAxisTitleRotate(e,t.opposite)}))),"back"===n.config.annotations.position&&(n.globals.dom.Paper.add(n.globals.dom.elAnnotations),i.annotations.drawAxesAnnotations()),Array.isArray(e.elGraph))for(var c=0;c0&&n.globals.memory.methodsToExec.forEach((function(t){t.method(t.params,!1,t.context)})),n.globals.axisCharts||n.globals.noData||i.core.resizeNonAxisCharts(),r(i)}))}},{key:"destroy",value:function(){var t,e;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,t=this.parentResizeHandler,(e=Wt.get(t))&&(e.disconnect(),Wt.delete(t));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach((function(t,e){t.id===y.escapeString(i)&&Apex._chartInstances.splice(e,1)})),new Yt(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=this.w;return s.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map((function(t,i){return e.updateHelpers._extendSeries(t,i)}))),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),s.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,i,n,r,a)}},{key:"updateSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.w.config.series.slice();return n.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(n,e,i)}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var n=i.w.config.series.slice(),r=0;r0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(t,e)}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addXaxisAnnotationExternal(t,e,n)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addYaxisAnnotationExternal(t,e,n)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addPointAnnotationExternal(t,e,n)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"removeAnnotation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;e&&(i=e),i.annotations.removeAnnotation(i,t)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=new Q(this.ctx);return e.getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=new Q(this.ctx);return e.getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(t){return new U(this.ctx).dataURI(t)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;"function"==typeof t&&(t=t()),t&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=y.escapeString(t),i=Apex._chartInstances.filter((function(t){return t.id===e}))[0];return i&&i.chart}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),i=0;i2?r-2:0),s=2;s1?arguments[1]:void 0,i),l=s>2?arguments[2]:void 0,c=void 0===l?i:r(l,i);while(c>o)e[o++]=t;return e}},8533:function(t,e,i){"use strict";var n=i(2092).forEach,r=i(9341),a=r("forEach");t.exports=a?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},8457:function(t,e,i){"use strict";var n=i(7854),r=i(9974),a=i(6916),s=i(7908),o=i(3411),l=i(7659),c=i(4411),h=i(6244),u=i(6135),d=i(8554),f=i(1246),p=n.Array;t.exports=function(t){var e=s(t),i=c(this),n=arguments.length,g=n>1?arguments[1]:void 0,v=void 0!==g;v&&(g=r(g,n>2?arguments[2]:void 0));var m,x,b,y,w,k,S=f(e),A=0;if(!S||this==p&&l(S))for(m=h(e),x=i?new this(m):p(m);m>A;A++)k=v?g(e[A],A):e[A],u(x,A,k);else for(y=d(e,S),w=y.next,x=i?new this:[];!(b=a(w,y)).done;A++)k=v?o(y,g,[b.value,A],!0):b.value,u(x,A,k);return x.length=A,x}},1318:function(t,e,i){var n=i(5656),r=i(1400),a=i(6244),s=function(t){return function(e,i,s){var o,l=n(e),c=a(l),h=r(s,c);if(t&&i!=i){while(c>h)if(o=l[h++],o!=o)return!0}else for(;c>h;h++)if((t||h in l)&&l[h]===i)return t||h||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},2092:function(t,e,i){var n=i(9974),r=i(1702),a=i(8361),s=i(7908),o=i(6244),l=i(5417),c=r([].push),h=function(t){var e=1==t,i=2==t,r=3==t,h=4==t,u=6==t,d=7==t,f=5==t||u;return function(p,g,v,m){for(var x,b,y=s(p),w=a(y),k=n(g,v),S=o(w),A=0,C=m||l,L=e?C(p,S):i||d?C(p,0):void 0;S>A;A++)if((f||A in w)&&(x=w[A],b=k(x,A,y),t))if(e)L[A]=b;else if(b)switch(t){case 3:return!0;case 5:return x;case 6:return A;case 2:c(L,x)}else switch(t){case 4:return!1;case 7:c(L,x)}return u?-1:r||h?h:L}};t.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},1194:function(t,e,i){var n=i(7293),r=i(5112),a=i(7392),s=r("species");t.exports=function(t){return a>=51||!n((function(){var e=[],i=e.constructor={};return i[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,i){"use strict";var n=i(7293);t.exports=function(t,e){var i=[][t];return!!i&&n((function(){i.call(null,e||function(){return 1},1)}))}},1589:function(t,e,i){var n=i(7854),r=i(1400),a=i(6244),s=i(6135),o=n.Array,l=Math.max;t.exports=function(t,e,i){for(var n=a(t),c=r(e,n),h=r(void 0===i?n:i,n),u=o(l(h-c,0)),d=0;c0)t[n]=t[--n];n!==a++&&(t[n]=i)}return t},o=function(t,e,i,n){var r=e.length,a=i.length,s=0,o=0;while(s1?arguments[1]:void 0);while(e=e?e.next:i.first){n(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!x(this,t)}}),a(f,i?{get:function(t){var e=x(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),u&&n(f,"size",{get:function(){return v(this).size}}),h},setStrong:function(t,e,i){var n=e+" Iterator",r=g(e),a=g(n);c(t,e,(function(t,e){p(this,{type:n,target:t,state:r(t),kind:e,last:void 0})}),(function(){var t=a(this),e=t.kind,i=t.last;while(i&&i.removed)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?"keys"==e?{value:i.key,done:!1}:"values"==e?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),h(e)}}},7710:function(t,e,i){"use strict";var n=i(2109),r=i(7854),a=i(1702),s=i(4705),o=i(1320),l=i(2423),c=i(408),h=i(5787),u=i(614),d=i(111),f=i(7293),p=i(7072),g=i(8003),v=i(9587);t.exports=function(t,e,i){var m=-1!==t.indexOf("Map"),x=-1!==t.indexOf("Weak"),b=m?"set":"add",y=r[t],w=y&&y.prototype,k=y,S={},A=function(t){var e=a(w[t]);o(w,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(x&&!d(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return x&&!d(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(x&&!d(t))&&e(this,0===t?0:t)}:function(t,i){return e(this,0===t?0:t,i),this})},C=s(t,!u(y)||!(x||w.forEach&&!f((function(){(new y).entries().next()}))));if(C)k=i.getConstructor(e,t,m,b),l.enable();else if(s(t,!0)){var L=new k,_=L[b](x?{}:-0,1)!=L,E=f((function(){L.has(1)})),T=p((function(t){new y(t)})),P=!x&&f((function(){var t=new y,e=5;while(e--)t[b](e,e);return!t.has(-0)}));T||(k=e((function(t,e){h(t,w);var i=v(new y,t,k);return void 0!=e&&c(e,i[b],{that:i,AS_ENTRIES:m}),i})),k.prototype=w,w.constructor=k),(E||P)&&(A("delete"),A("has"),m&&A("get")),(P||_)&&A(b),x&&w.clear&&delete w.clear}return S[t]=k,n({global:!0,forced:k!=y},S),g(k,t),x||i.setStrong(k,t,m),k}},9920:function(t,e,i){var n=i(2597),r=i(3887),a=i(1236),s=i(3070);t.exports=function(t,e,i){for(var o=r(e),l=s.f,c=a.f,h=0;h"+l+""}},4994:function(t,e,i){"use strict";var n=i(3383).IteratorPrototype,r=i(30),a=i(9114),s=i(8003),o=i(7497),l=function(){return this};t.exports=function(t,e,i,c){var h=e+" Iterator";return t.prototype=r(n,{next:a(+!c,i)}),s(t,h,!1,!0),o[h]=l,t}},8880:function(t,e,i){var n=i(9781),r=i(3070),a=i(9114);t.exports=n?function(t,e,i){return r.f(t,e,a(1,i))}:function(t,e,i){return t[e]=i,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,i){"use strict";var n=i(4948),r=i(3070),a=i(9114);t.exports=function(t,e,i){var s=n(e);s in t?r.f(t,s,a(0,i)):t[s]=i}},654:function(t,e,i){"use strict";var n=i(2109),r=i(6916),a=i(1913),s=i(6530),o=i(614),l=i(4994),c=i(9518),h=i(7674),u=i(8003),d=i(8880),f=i(1320),p=i(5112),g=i(7497),v=i(3383),m=s.PROPER,x=s.CONFIGURABLE,b=v.IteratorPrototype,y=v.BUGGY_SAFARI_ITERATORS,w=p("iterator"),k="keys",S="values",A="entries",C=function(){return this};t.exports=function(t,e,i,s,p,v,L){l(i,e,s);var _,E,T,P=function(t){if(t===p&&R)return R;if(!y&&t in M)return M[t];switch(t){case k:return function(){return new i(this,t)};case S:return function(){return new i(this,t)};case A:return function(){return new i(this,t)}}return function(){return new i(this)}},O=e+" Iterator",I=!1,M=t.prototype,z=M[w]||M["@@iterator"]||p&&M[p],R=!y&&z||P(p),F="Array"==e&&M.entries||z;if(F&&(_=c(F.call(new t)),_!==Object.prototype&&_.next&&(a||c(_)===b||(h?h(_,b):o(_[w])||f(_,w,C)),u(_,O,!0,!0),a&&(g[O]=C))),m&&p==S&&z&&z.name!==S&&(!a&&x?d(M,"name",S):(I=!0,R=function(){return r(z,this)})),p)if(E={values:P(S),keys:v?R:P(k),entries:P(A)},L)for(T in E)(y||I||!(T in M))&&f(M,T,E[T]);else n({target:e,proto:!0,forced:y||I},E);return a&&!L||M[w]===R||f(M,w,R,{name:p}),g[e]=R,E}},7235:function(t,e,i){var n=i(857),r=i(2597),a=i(6061),s=i(3070).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});r(e,t)||s(e,t,{value:a.f(t)})}},9781:function(t,e,i){var n=i(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,i){var n=i(7854),r=i(111),a=n.document,s=r(a)&&r(a.createElement);t.exports=function(t){return s?a.createElement(t):{}}},8324:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(t,e,i){var n=i(317),r=n("span").classList,a=r&&r.constructor&&r.constructor.prototype;t.exports=a===Object.prototype?void 0:a},8886:function(t,e,i){var n=i(8113),r=n.match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},7871:function(t){t.exports="object"==typeof window},256:function(t,e,i){var n=i(8113);t.exports=/MSIE|Trident/.test(n)},1528:function(t,e,i){var n=i(8113),r=i(7854);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==r.Pebble},6833:function(t,e,i){var n=i(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},5268:function(t,e,i){var n=i(4326),r=i(7854);t.exports="process"==n(r.process)},1036:function(t,e,i){var n=i(8113);t.exports=/web0s(?!.*chrome)/i.test(n)},8113:function(t,e,i){var n=i(5005);t.exports=n("navigator","userAgent")||""},7392:function(t,e,i){var n,r,a=i(7854),s=i(8113),o=a.process,l=a.Deno,c=o&&o.versions||l&&l.version,h=c&&c.v8;h&&(n=h.split("."),r=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(r=+n[1]))),t.exports=r},8008:function(t,e,i){var n=i(8113),r=n.match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(t,e,i){var n=i(7293),r=i(9114);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},2109:function(t,e,i){var n=i(7854),r=i(1236).f,a=i(8880),s=i(1320),o=i(3505),l=i(9920),c=i(4705);t.exports=function(t,e){var i,h,u,d,f,p,g=t.target,v=t.global,m=t.stat;if(h=v?n:m?n[g]||o(g,{}):(n[g]||{}).prototype,h)for(u in e){if(f=e[u],t.noTargetGet?(p=r(h,u),d=p&&p.value):d=h[u],i=c(v?u:g+(m?".":"#")+u,t.forced),!i&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(t.sham||d&&d.sham)&&a(f,"sham",!0),s(h,u,f,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},7007:function(t,e,i){"use strict";i(4916);var n=i(1702),r=i(1320),a=i(2261),s=i(7293),o=i(5112),l=i(8880),c=o("species"),h=RegExp.prototype;t.exports=function(t,e,i,u){var d=o(t),f=!s((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=f&&!s((function(){var e=!1,i=/a/;return"split"===t&&(i={},i.constructor={},i.constructor[c]=function(){return i},i.flags="",i[d]=/./[d]),i.exec=function(){return e=!0,null},i[d](""),!e}));if(!f||!p||i){var g=n(/./[d]),v=e(d,""[t],(function(t,e,i,r,s){var o=n(t),l=e.exec;return l===a||l===h.exec?f&&!s?{done:!0,value:g(e,i,r)}:{done:!0,value:o(i,e,r)}:{done:!1}}));r(String.prototype,t,v[0]),r(h,d,v[1])}u&&l(h[d],"sham",!0)}},6790:function(t,e,i){"use strict";var n=i(7854),r=i(3157),a=i(6244),s=i(9974),o=n.TypeError,l=function(t,e,i,n,c,h,u,d){var f,p,g=c,v=0,m=!!u&&s(u,d);while(v0&&r(f))p=a(f),g=l(t,e,f,p,g,h-1)-1;else{if(g>=9007199254740991)throw o("Exceed the acceptable array length");t[g]=f}g++}v++}return g};t.exports=l},6677:function(t,e,i){var n=i(7293);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:function(t,e,i){var n=i(4374),r=Function.prototype,a=r.apply,s=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(a):function(){return s.apply(a,arguments)})},9974:function(t,e,i){var n=i(1702),r=i(9662),a=i(4374),s=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:a?s(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,i){var n=i(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},7065:function(t,e,i){"use strict";var n=i(7854),r=i(1702),a=i(9662),s=i(111),o=i(2597),l=i(206),c=i(4374),h=n.Function,u=r([].concat),d=r([].join),f={},p=function(t,e,i){if(!o(f,e)){for(var n=[],r=0;r]*>)/g,h=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,i,n,u,d){var f=i+t.length,p=n.length,g=h;return void 0!==u&&(u=r(u),g=c),o(d,g,(function(r,o){var c;switch(s(o,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,i);case"'":return l(e,f);case"<":c=u[l(o,1,-1)];break;default:var h=+o;if(0===h)return r;if(h>p){var d=a(h/10);return 0===d?r:d<=p?void 0===n[d-1]?s(o,1):n[d-1]+s(o,1):r}c=n[h-1]}return void 0===c?"":c}))}},7854:function(t,e,i){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||function(){return this}()||Function("return this")()},2597:function(t,e,i){var n=i(1702),r=i(7908),a=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(r(t),e)}},3501:function(t){t.exports={}},842:function(t,e,i){var n=i(7854);t.exports=function(t,e){var i=n.console;i&&i.error&&(1==arguments.length?i.error(t):i.error(t,e))}},490:function(t,e,i){var n=i(5005);t.exports=n("document","documentElement")},4664:function(t,e,i){var n=i(9781),r=i(7293),a=i(317);t.exports=!n&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,i){var n=i(7854),r=i(1702),a=i(7293),s=i(4326),o=n.Object,l=r("".split);t.exports=a((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?l(t,""):o(t)}:o},9587:function(t,e,i){var n=i(614),r=i(111),a=i(7674);t.exports=function(t,e,i){var s,o;return a&&n(s=e.constructor)&&s!==i&&r(o=s.prototype)&&o!==i.prototype&&a(t,o),t}},2788:function(t,e,i){var n=i(1702),r=i(614),a=i(5465),s=n(Function.toString);r(a.inspectSource)||(a.inspectSource=function(t){return s(t)}),t.exports=a.inspectSource},8340:function(t,e,i){var n=i(111),r=i(8880);t.exports=function(t,e){n(e)&&"cause"in e&&r(t,"cause",e.cause)}},2423:function(t,e,i){var n=i(2109),r=i(1702),a=i(3501),s=i(111),o=i(2597),l=i(3070).f,c=i(8006),h=i(1156),u=i(2050),d=i(9711),f=i(6677),p=!1,g=d("meta"),v=0,m=function(t){l(t,g,{value:{objectID:"O"+v++,weakData:{}}})},x=function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,g)){if(!u(t))return"F";if(!e)return"E";m(t)}return t[g].objectID},b=function(t,e){if(!o(t,g)){if(!u(t))return!0;if(!e)return!1;m(t)}return t[g].weakData},y=function(t){return f&&p&&u(t)&&!o(t,g)&&m(t),t},w=function(){k.enable=function(){},p=!0;var t=c.f,e=r([].splice),i={};i[g]=1,t(i).length&&(c.f=function(i){for(var n=t(i),r=0,a=n.length;rx;x++)if(y=T(t[x]),y&&h(v,y))return y;return new g(!1)}n=u(t,m)}w=n.next;while(!(k=a(w,n)).done){try{y=T(k.value)}catch(P){f(n,"throw",P)}if("object"==typeof y&&y&&h(v,y))return y}return new g(!1)}},9212:function(t,e,i){var n=i(6916),r=i(9670),a=i(8173);t.exports=function(t,e,i){var s,o;r(t);try{if(s=a(t,"return"),!s){if("throw"===e)throw i;return i}s=n(s,t)}catch(l){o=!0,s=l}if("throw"===e)throw i;if(o)throw s;return r(s),i}},3383:function(t,e,i){"use strict";var n,r,a,s=i(7293),o=i(614),l=i(30),c=i(9518),h=i(1320),u=i(5112),d=i(1913),f=u("iterator"),p=!1;[].keys&&(a=[].keys(),"next"in a?(r=c(c(a)),r!==Object.prototype&&(n=r)):p=!0);var g=void 0==n||s((function(){var t={};return n[f].call(t)!==t}));g?n={}:d&&(n=l(n)),o(n[f])||h(n,f,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},7497:function(t){t.exports={}},6244:function(t,e,i){var n=i(7466);t.exports=function(t){return n(t.length)}},4310:function(t){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},5948:function(t,e,i){var n,r,a,s,o,l,c,h,u=i(7854),d=i(9974),f=i(1236).f,p=i(261).set,g=i(6833),v=i(1528),m=i(1036),x=i(5268),b=u.MutationObserver||u.WebKitMutationObserver,y=u.document,w=u.process,k=u.Promise,S=f(u,"queueMicrotask"),A=S&&S.value;A||(n=function(){var t,e;x&&(t=w.domain)&&t.exit();while(r){e=r.fn,r=r.next;try{e()}catch(i){throw r?s():a=void 0,i}}a=void 0,t&&t.enter()},g||x||m||!b||!y?!v&&k&&k.resolve?(c=k.resolve(void 0),c.constructor=k,h=d(c.then,c),s=function(){h(n)}):x?s=function(){w.nextTick(n)}:(p=d(p,u),s=function(){p(n)}):(o=!0,l=y.createTextNode(""),new b(n).observe(l,{characterData:!0}),s=function(){l.data=o=!o})),t.exports=A||function(t){var e={fn:t,next:void 0};a&&(a.next=e),r||(r=e,s()),a=e}},3366:function(t,e,i){var n=i(7854);t.exports=n.Promise},133:function(t,e,i){var n=i(7392),r=i(7293);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8536:function(t,e,i){var n=i(7854),r=i(614),a=i(2788),s=n.WeakMap;t.exports=r(s)&&/native code/.test(a(s))},8523:function(t,e,i){"use strict";var n=i(9662),r=function(t){var e,i;this.promise=new t((function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n})),this.resolve=n(e),this.reject=n(i)};t.exports.f=function(t){return new r(t)}},6277:function(t,e,i){var n=i(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},3929:function(t,e,i){var n=i(7854),r=i(7850),a=n.TypeError;t.exports=function(t){if(r(t))throw a("The method doesn't accept regular expressions");return t}},1574:function(t,e,i){"use strict";var n=i(9781),r=i(1702),a=i(6916),s=i(7293),o=i(1956),l=i(5181),c=i(5296),h=i(7908),u=i(8361),d=Object.assign,f=Object.defineProperty,p=r([].concat);t.exports=!d||s((function(){if(n&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach((function(t){e[t]=t})),7!=d({},t)[i]||o(d({},e)).join("")!=r}))?function(t,e){var i=h(t),r=arguments.length,s=1,d=l.f,f=c.f;while(r>s){var g,v=u(arguments[s++]),m=d?p(o(v),d(v)):o(v),x=m.length,b=0;while(x>b)g=m[b++],n&&!a(f,v,g)||(i[g]=v[g])}return i}:d},30:function(t,e,i){var n,r=i(9670),a=i(6048),s=i(748),o=i(3501),l=i(490),c=i(317),h=i(6200),u=">",d="<",f="prototype",p="script",g=h("IE_PROTO"),v=function(){},m=function(t){return d+p+u+t+d+"/"+p+u},x=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=c("iframe"),i="java"+p+":";return e.style.display="none",l.appendChild(e),e.src=String(i),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}y="undefined"!=typeof document?document.domain&&n?x(n):b():x(n);var t=s.length;while(t--)delete y[f][s[t]];return y()};o[g]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(v[f]=r(t),i=new v,v[f]=null,i[g]=t):i=y(),void 0===e?i:a.f(i,e)}},6048:function(t,e,i){var n=i(9781),r=i(3353),a=i(3070),s=i(9670),o=i(5656),l=i(1956);e.f=n&&!r?Object.defineProperties:function(t,e){s(t);var i,n=o(e),r=l(e),c=r.length,h=0;while(c>h)a.f(t,i=r[h++],n[i]);return t}},3070:function(t,e,i){var n=i(7854),r=i(9781),a=i(4664),s=i(3353),o=i(9670),l=i(4948),c=n.TypeError,h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";e.f=r?s?function(t,e,i){if(o(t),e=l(e),o(i),"function"===typeof t&&"prototype"===e&&"value"in i&&p in i&&!i[p]){var n=u(t,e);n&&n[p]&&(t[e]=i.value,i={configurable:f in i?i[f]:n[f],enumerable:d in i?i[d]:n[d],writable:!1})}return h(t,e,i)}:h:function(t,e,i){if(o(t),e=l(e),o(i),a)try{return h(t,e,i)}catch(n){}if("get"in i||"set"in i)throw c("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},1236:function(t,e,i){var n=i(9781),r=i(6916),a=i(5296),s=i(9114),o=i(5656),l=i(4948),c=i(2597),h=i(4664),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=o(t),e=l(e),h)try{return u(t,e)}catch(i){}if(c(t,e))return s(!r(a.f,t,e),t[e])}},1156:function(t,e,i){var n=i(4326),r=i(5656),a=i(8006).f,s=i(1589),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(t){try{return a(t)}catch(e){return s(o)}};t.exports.f=function(t){return o&&"Window"==n(t)?l(t):a(r(t))}},8006:function(t,e,i){var n=i(6324),r=i(748),a=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,a)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,i){var n=i(7854),r=i(2597),a=i(614),s=i(7908),o=i(6200),l=i(8544),c=o("IE_PROTO"),h=n.Object,u=h.prototype;t.exports=l?h.getPrototypeOf:function(t){var e=s(t);if(r(e,c))return e[c];var i=e.constructor;return a(i)&&e instanceof i?i.prototype:e instanceof h?u:null}},2050:function(t,e,i){var n=i(7293),r=i(111),a=i(4326),s=i(7556),o=Object.isExtensible,l=n((function(){o(1)}));t.exports=l||s?function(t){return!!r(t)&&((!s||"ArrayBuffer"!=a(t))&&(!o||o(t)))}:o},7976:function(t,e,i){var n=i(1702);t.exports=n({}.isPrototypeOf)},6324:function(t,e,i){var n=i(1702),r=i(2597),a=i(5656),s=i(1318).indexOf,o=i(3501),l=n([].push);t.exports=function(t,e){var i,n=a(t),c=0,h=[];for(i in n)!r(o,i)&&r(n,i)&&l(h,i);while(e.length>c)r(n,i=e[c++])&&(~s(h,i)||l(h,i));return h}},1956:function(t,e,i){var n=i(6324),r=i(748);t.exports=Object.keys||function(t){return n(t,r)}},5296:function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);e.f=r?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},7674:function(t,e,i){var n=i(1702),r=i(9670),a=i(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(i,[]),e=i instanceof Array}catch(s){}return function(i,n){return r(i),a(n),e?t(i,n):i.__proto__=n,i}}():void 0)},4699:function(t,e,i){var n=i(9781),r=i(1702),a=i(1956),s=i(5656),o=i(5296).f,l=r(o),c=r([].push),h=function(t){return function(e){var i,r=s(e),o=a(r),h=o.length,u=0,d=[];while(h>u)i=o[u++],n&&!l(r,i)||c(d,t?[i,r[i]]:r[i]);return d}};t.exports={entries:h(!0),values:h(!1)}},288:function(t,e,i){"use strict";var n=i(1694),r=i(648);t.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},2140:function(t,e,i){var n=i(7854),r=i(6916),a=i(614),s=i(111),o=n.TypeError;t.exports=function(t,e){var i,n;if("string"===e&&a(i=t.toString)&&!s(n=r(i,t)))return n;if(a(i=t.valueOf)&&!s(n=r(i,t)))return n;if("string"!==e&&a(i=t.toString)&&!s(n=r(i,t)))return n;throw o("Can't convert object to primitive value")}},3887:function(t,e,i){var n=i(5005),r=i(1702),a=i(8006),s=i(5181),o=i(9670),l=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=a.f(o(t)),i=s.f;return i?l(e,i(t)):e}},857:function(t,e,i){var n=i(7854);t.exports=n},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},9478:function(t,e,i){var n=i(9670),r=i(111),a=i(8523);t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var i=a.f(t),s=i.resolve;return s(e),i.promise}},8572:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},2248:function(t,e,i){var n=i(1320);t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},1320:function(t,e,i){var n=i(7854),r=i(614),a=i(2597),s=i(8880),o=i(3505),l=i(2788),c=i(9909),h=i(6530).CONFIGURABLE,u=c.get,d=c.enforce,f=String(String).split("String");(t.exports=function(t,e,i,l){var c,u=!!l&&!!l.unsafe,p=!!l&&!!l.enumerable,g=!!l&&!!l.noTargetGet,v=l&&void 0!==l.name?l.name:e;r(i)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(i,"name")||h&&i.name!==v)&&s(i,"name",v),c=d(i),c.source||(c.source=f.join("string"==typeof v?v:""))),t!==n?(u?!g&&t[e]&&(p=!0):delete t[e],p?t[e]=i:s(t,e,i)):p?t[e]=i:o(e,i)})(Function.prototype,"toString",(function(){return r(this)&&u(this).source||l(this)}))},7651:function(t,e,i){var n=i(7854),r=i(6916),a=i(9670),s=i(614),o=i(4326),l=i(2261),c=n.TypeError;t.exports=function(t,e){var i=t.exec;if(s(i)){var n=r(i,t,e);return null!==n&&a(n),n}if("RegExp"===o(t))return r(l,t,e);throw c("RegExp#exec called on incompatible receiver")}},2261:function(t,e,i){"use strict";var n=i(6916),r=i(1702),a=i(1340),s=i(7066),o=i(2999),l=i(2309),c=i(30),h=i(9909).get,u=i(9441),d=i(7168),f=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,v=r("".charAt),m=r("".indexOf),x=r("".replace),b=r("".slice),y=function(){var t=/a/,e=/b*/g;return n(p,t,"a"),n(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),w=o.BROKEN_CARET,k=void 0!==/()??/.exec("")[1],S=y||k||w||u||d;S&&(g=function(t){var e,i,r,o,l,u,d,S=this,A=h(S),C=a(t),L=A.raw;if(L)return L.lastIndex=S.lastIndex,e=n(g,L,C),S.lastIndex=L.lastIndex,e;var _=A.groups,E=w&&S.sticky,T=n(s,S),P=S.source,O=0,I=C;if(E&&(T=x(T,"y",""),-1===m(T,"g")&&(T+="g"),I=b(C,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(C,S.lastIndex-1))&&(P="(?: "+P+")",I=" "+I,O++),i=new RegExp("^(?:"+P+")",T)),k&&(i=new RegExp("^"+P+"$(?!\\s)",T)),y&&(r=S.lastIndex),o=n(p,E?i:S,I),E?o?(o.input=b(o.input,O),o[0]=b(o[0],O),o.index=S.lastIndex,S.lastIndex+=o[0].length):S.lastIndex=0:y&&o&&(S.lastIndex=S.global?o.index+o[0].length:r),k&&o&&o.length>1&&n(f,o[0],i,(function(){for(l=1;lb)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},4488:function(t,e,i){var n=i(7854),r=n.TypeError;t.exports=function(t){if(void 0==t)throw r("Can't call method on "+t);return t}},3505:function(t,e,i){var n=i(7854),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},6340:function(t,e,i){"use strict";var n=i(5005),r=i(3070),a=i(5112),s=i(9781),o=a("species");t.exports=function(t){var e=n(t),i=r.f;s&&e&&!e[o]&&i(e,o,{configurable:!0,get:function(){return this}})}},8003:function(t,e,i){var n=i(3070).f,r=i(2597),a=i(5112),s=a("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype),t&&!r(t,s)&&n(t,s,{configurable:!0,value:e})}},6200:function(t,e,i){var n=i(2309),r=i(9711),a=n("keys");t.exports=function(t){return a[t]||(a[t]=r(t))}},5465:function(t,e,i){var n=i(7854),r=i(3505),a="__core-js_shared__",s=n[a]||r(a,{});t.exports=s},2309:function(t,e,i){var n=i(1913),r=i(5465);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(t,e,i){var n=i(9670),r=i(9483),a=i(5112),s=a("species");t.exports=function(t,e){var i,a=n(t).constructor;return void 0===a||void 0==(i=n(a)[s])?e:r(i)}},3429:function(t,e,i){var n=i(7293);t.exports=function(t){return n((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},8710:function(t,e,i){var n=i(1702),r=i(9303),a=i(1340),s=i(4488),o=n("".charAt),l=n("".charCodeAt),c=n("".slice),h=function(t){return function(e,i){var n,h,u=a(s(e)),d=r(i),f=u.length;return d<0||d>=f?t?"":void 0:(n=l(u,d),n<55296||n>56319||d+1===f||(h=l(u,d+1))<56320||h>57343?t?o(u,d):n:t?c(u,d,d+2):h-56320+(n-55296<<10)+65536)}};t.exports={codeAt:h(!1),charAt:h(!0)}},8415:function(t,e,i){"use strict";var n=i(7854),r=i(9303),a=i(1340),s=i(4488),o=n.RangeError;t.exports=function(t){var e=a(s(this)),i="",n=r(t);if(n<0||n==1/0)throw o("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(i+=e);return i}},6091:function(t,e,i){var n=i(6530).PROPER,r=i(7293),a=i(1361),s="​…᠎";t.exports=function(t){return r((function(){return!!a[t]()||s[t]()!==s||n&&a[t].name!==t}))}},3111:function(t,e,i){var n=i(1702),r=i(4488),a=i(1340),s=i(1361),o=n("".replace),l="["+s+"]",c=RegExp("^"+l+l+"*"),h=RegExp(l+l+"*$"),u=function(t){return function(e){var i=a(r(e));return 1&t&&(i=o(i,c,"")),2&t&&(i=o(i,h,"")),i}};t.exports={start:u(1),end:u(2),trim:u(3)}},261:function(t,e,i){var n,r,a,s,o=i(7854),l=i(2104),c=i(9974),h=i(614),u=i(2597),d=i(7293),f=i(490),p=i(206),g=i(317),v=i(8053),m=i(6833),x=i(5268),b=o.setImmediate,y=o.clearImmediate,w=o.process,k=o.Dispatch,S=o.Function,A=o.MessageChannel,C=o.String,L=0,_={},E="onreadystatechange";try{n=o.location}catch(M){}var T=function(t){if(u(_,t)){var e=_[t];delete _[t],e()}},P=function(t){return function(){T(t)}},O=function(t){T(t.data)},I=function(t){o.postMessage(C(t),n.protocol+"//"+n.host)};b&&y||(b=function(t){v(arguments.length,1);var e=h(t)?t:S(t),i=p(arguments,1);return _[++L]=function(){l(e,void 0,i)},r(L),L},y=function(t){delete _[t]},x?r=function(t){w.nextTick(P(t))}:k&&k.now?r=function(t){k.now(P(t))}:A&&!m?(a=new A,s=a.port2,a.port1.onmessage=O,r=c(s.postMessage,s)):o.addEventListener&&h(o.postMessage)&&!o.importScripts&&n&&"file:"!==n.protocol&&!d(I)?(r=I,o.addEventListener("message",O,!1)):r=E in g("script")?function(t){f.appendChild(g("script"))[E]=function(){f.removeChild(this),T(t)}}:function(t){setTimeout(P(t),0)}),t.exports={set:b,clear:y}},863:function(t,e,i){var n=i(1702);t.exports=n(1..valueOf)},1400:function(t,e,i){var n=i(9303),r=Math.max,a=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):a(i,e)}},5656:function(t,e,i){var n=i(8361),r=i(4488);t.exports=function(t){return n(r(t))}},9303:function(t){var e=Math.ceil,i=Math.floor;t.exports=function(t){var n=+t;return n!==n||0===n?0:(n>0?i:e)(n)}},7466:function(t,e,i){var n=i(9303),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},7908:function(t,e,i){var n=i(7854),r=i(4488),a=n.Object;t.exports=function(t){return a(r(t))}},7593:function(t,e,i){var n=i(7854),r=i(6916),a=i(111),s=i(2190),o=i(8173),l=i(2140),c=i(5112),h=n.TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!a(t)||s(t))return t;var i,n=o(t,u);if(n){if(void 0===e&&(e="default"),i=r(n,t,e),!a(i)||s(i))return i;throw h("Can't convert object to primitive value")}return void 0===e&&(e="number"),l(t,e)}},4948:function(t,e,i){var n=i(7593),r=i(2190);t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}},1694:function(t,e,i){var n=i(5112),r=n("toStringTag"),a={};a[r]="z",t.exports="[object z]"===String(a)},1340:function(t,e,i){var n=i(7854),r=i(648),a=n.String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return a(t)}},6330:function(t,e,i){var n=i(7854),r=n.String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},9711:function(t,e,i){var n=i(1702),r=0,a=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+a,36)}},3307:function(t,e,i){var n=i(133);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,i){var n=i(9781),r=i(7293);t.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t,e,i){var n=i(7854),r=n.TypeError;t.exports=function(t,e){if(tv&&u(n,arguments[v]),n}));if(k.prototype=y,"Error"!==x&&(o?o(k,w):l(k,w,{name:!0})),l(k,b),!p)try{y.name!==x&&a(y,"name",x),y.constructor=k}catch(S){}return k}}},2222:function(t,e,i){"use strict";var n=i(2109),r=i(7854),a=i(7293),s=i(3157),o=i(111),l=i(7908),c=i(6244),h=i(6135),u=i(5417),d=i(1194),f=i(5112),p=i(7392),g=f("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",x=r.TypeError,b=p>=51||!a((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),y=d("concat"),w=function(t){if(!o(t))return!1;var e=t[g];return void 0!==e?!!e:s(t)},k=!b||!y;n({target:"Array",proto:!0,forced:k},{concat:function(t){var e,i,n,r,a,s=l(this),o=u(s,0),d=0;for(e=-1,n=arguments.length;ev)throw x(m);for(i=0;i=v)throw x(m);h(o,d++,a)}return o.length=d,o}})},3290:function(t,e,i){var n=i(2109),r=i(1285),a=i(1223);n({target:"Array",proto:!0},{fill:r}),a("fill")},7327:function(t,e,i){"use strict";var n=i(2109),r=i(2092).filter,a=i(1194),s=a("filter");n({target:"Array",proto:!0,forced:!s},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},4553:function(t,e,i){"use strict";var n=i(2109),r=i(2092).findIndex,a=i(1223),s="findIndex",o=!0;s in[]&&Array(1)[s]((function(){o=!1})),n({target:"Array",proto:!0,forced:o},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a(s)},9826:function(t,e,i){"use strict";var n=i(2109),r=i(2092).find,a=i(1223),s="find",o=!0;s in[]&&Array(1)[s]((function(){o=!1})),n({target:"Array",proto:!0,forced:o},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a(s)},4944:function(t,e,i){"use strict";var n=i(2109),r=i(6790),a=i(7908),s=i(6244),o=i(9303),l=i(5417);n({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=a(this),i=s(e),n=l(e,0);return n.length=r(n,e,e,i,0,void 0===t?1:o(t)),n}})},1038:function(t,e,i){var n=i(2109),r=i(8457),a=i(7072),s=!a((function(t){Array.from(t)}));n({target:"Array",stat:!0,forced:s},{from:r})},6699:function(t,e,i){"use strict";var n=i(2109),r=i(1318).includes,a=i(1223);n({target:"Array",proto:!0},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6992:function(t,e,i){"use strict";var n=i(5656),r=i(1223),a=i(7497),s=i(9909),o=i(3070).f,l=i(654),c=i(1913),h=i(9781),u="Array Iterator",d=s.set,f=s.getterFor(u);t.exports=l(Array,"Array",(function(t,e){d(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");var p=a.Arguments=a.Array;if(r("keys"),r("values"),r("entries"),!c&&h&&"values"!==p.name)try{o(p,"name",{value:"values"})}catch(g){}},9600:function(t,e,i){"use strict";var n=i(2109),r=i(1702),a=i(8361),s=i(5656),o=i(9341),l=r([].join),c=a!=Object,h=o("join",",");n({target:"Array",proto:!0,forced:c||!h},{join:function(t){return l(s(this),void 0===t?",":t)}})},1249:function(t,e,i){"use strict";var n=i(2109),r=i(2092).map,a=i(1194),s=a("map");n({target:"Array",proto:!0,forced:!s},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},7042:function(t,e,i){"use strict";var n=i(2109),r=i(7854),a=i(3157),s=i(4411),o=i(111),l=i(1400),c=i(6244),h=i(5656),u=i(6135),d=i(5112),f=i(1194),p=i(206),g=f("slice"),v=d("species"),m=r.Array,x=Math.max;n({target:"Array",proto:!0,forced:!g},{slice:function(t,e){var i,n,r,d=h(this),f=c(d),g=l(t,f),b=l(void 0===e?f:e,f);if(a(d)&&(i=d.constructor,s(i)&&(i===m||a(i.prototype))?i=void 0:o(i)&&(i=i[v],null===i&&(i=void 0)),i===m||void 0===i))return p(d,g,b);for(n=new(void 0===i?m:i)(x(b-g,0)),r=0;g3)){if(f)return!0;if(g)return g<603;var t,e,i,n,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(n=0;n<47;n++)v.push({k:e+n,v:i})}for(v.sort((function(t,e){return e.v-t.v})),n=0;nl(i)?1:-1}};n({target:"Array",proto:!0,forced:S},{sort:function(t){void 0!==t&&a(t);var e=s(this);if(k)return void 0===t?m(e):m(e,t);var i,n,r=[],l=o(e);for(n=0;nv)throw f(m);for(r=c(b,n),u=0;uy-n+i;u--)delete b[u-1]}else if(i>n)for(u=y-n;u>w;u--)d=u+n-1,x=u+i-1,d in b?b[x]=b[d]:delete b[x];for(u=0;u2)if(c=x(c),e=A(c,0),43===e||45===e){if(i=A(c,2),88===i||120===i)return NaN}else if(48===e){switch(A(c,1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+c}for(a=S(c,2),s=a.length,o=0;or)return NaN;return parseInt(a,n)}return+c};if(s(b,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var _,E=function(t){var e=arguments.length<1?0:y(C(t)),i=this;return h(w,i)&&f((function(){m(i)}))?c(Object(e),i,E):e},T=n?p(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),P=0;T.length>P;P++)l(y,_=T[P])&&!l(E,_)&&v(E,_,g(y,_));E.prototype=w,w.constructor=E,o(r,b,E)}},6977:function(t,e,i){"use strict";var n=i(2109),r=i(7854),a=i(1702),s=i(9303),o=i(863),l=i(8415),c=i(7293),h=r.RangeError,u=r.String,d=Math.floor,f=a(l),p=a("".slice),g=a(1..toFixed),v=function(t,e,i){return 0===e?i:e%2===1?v(t,e-1,i*t):v(t*t,e/2,i)},m=function(t){var e=0,i=t;while(i>=4096)e+=12,i/=4096;while(i>=2)e+=1,i/=2;return e},x=function(t,e,i){var n=-1,r=i;while(++n<6)r+=e*t[n],t[n]=r%1e7,r=d(r/1e7)},b=function(t,e){var i=6,n=0;while(--i>=0)n+=t[i],t[i]=d(n/e),n=n%e*1e7},y=function(t){var e=6,i="";while(--e>=0)if(""!==i||0===e||0!==t[e]){var n=u(t[e]);i=""===i?n:i+f("0",7-n.length)+n}return i},w=c((function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)}))||!c((function(){g({})}));n({target:"Number",proto:!0,forced:w},{toFixed:function(t){var e,i,n,r,a=o(this),l=s(t),c=[0,0,0,0,0,0],d="",g="0";if(l<0||l>20)throw h("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return u(a);if(a<0&&(d="-",a=-a),a>1e-21)if(e=m(a*v(2,69,1))-69,i=e<0?a*v(2,-e,1):a/v(2,e,1),i*=4503599627370496,e=52-e,e>0){x(c,0,i),n=l;while(n>=7)x(c,1e7,0),n-=7;x(c,v(10,n,1),0),n=e-1;while(n>=23)b(c,1<<23),n-=23;b(c,1<0?(r=g.length,g=d+(r<=l?"0."+f("0",l-r)+g:p(g,0,r-l)+"."+p(g,r-l))):g=d+g,g}})},9601:function(t,e,i){var n=i(2109),r=i(1574);n({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},3371:function(t,e,i){var n=i(2109),r=i(6677),a=i(7293),s=i(111),o=i(2423).onFreeze,l=Object.freeze,c=a((function(){l(1)}));n({target:"Object",stat:!0,forced:c,sham:!r},{freeze:function(t){return l&&s(t)?l(o(t)):t}})},5003:function(t,e,i){var n=i(2109),r=i(7293),a=i(5656),s=i(1236).f,o=i(9781),l=r((function(){s(1)})),c=!o||l;n({target:"Object",stat:!0,forced:c,sham:!o},{getOwnPropertyDescriptor:function(t,e){return s(a(t),e)}})},9337:function(t,e,i){var n=i(2109),r=i(9781),a=i(3887),s=i(5656),o=i(1236),l=i(6135);n({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){var e,i,n=s(t),r=o.f,c=a(n),h={},u=0;while(c.length>u)i=r(n,e=c[u++]),void 0!==i&&l(h,e,i);return h}})},489:function(t,e,i){var n=i(2109),r=i(7293),a=i(7908),s=i(9518),o=i(8544),l=r((function(){s(1)}));n({target:"Object",stat:!0,forced:l,sham:!o},{getPrototypeOf:function(t){return s(a(t))}})},7941:function(t,e,i){var n=i(2109),r=i(7908),a=i(1956),s=i(7293),o=s((function(){a(1)}));n({target:"Object",stat:!0,forced:o},{keys:function(t){return a(r(t))}})},1539:function(t,e,i){var n=i(1694),r=i(1320),a=i(288);n||r(Object.prototype,"toString",a,{unsafe:!0})},2479:function(t,e,i){var n=i(2109),r=i(4699).values;n({target:"Object",stat:!0},{values:function(t){return r(t)}})},7727:function(t,e,i){"use strict";var n=i(2109),r=i(1913),a=i(3366),s=i(7293),o=i(5005),l=i(614),c=i(6707),h=i(9478),u=i(1320),d=!!a&&s((function(){a.prototype["finally"].call({then:function(){}},(function(){}))}));if(n({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(t){var e=c(this,o("Promise")),i=l(t);return this.then(i?function(i){return h(e,t()).then((function(){return i}))}:t,i?function(i){return h(e,t()).then((function(){throw i}))}:t)}}),!r&&l(a)){var f=o("Promise").prototype["finally"];a.prototype["finally"]!==f&&u(a.prototype,"finally",f,{unsafe:!0})}},8674:function(t,e,i){"use strict";var n,r,a,s,o=i(2109),l=i(1913),c=i(7854),h=i(5005),u=i(6916),d=i(3366),f=i(1320),p=i(2248),g=i(7674),v=i(8003),m=i(6340),x=i(9662),b=i(614),y=i(111),w=i(5787),k=i(2788),S=i(408),A=i(7072),C=i(6707),L=i(261).set,_=i(5948),E=i(9478),T=i(842),P=i(8523),O=i(2534),I=i(8572),M=i(9909),z=i(4705),R=i(5112),F=i(7871),N=i(5268),D=i(7392),X=R("species"),H="Promise",B=M.getterFor(H),Y=M.set,W=M.getterFor(H),j=d&&d.prototype,$=d,V=j,Z=c.TypeError,G=c.document,U=c.process,q=P.f,K=q,J=!!(G&&G.createEvent&&c.dispatchEvent),Q=b(c.PromiseRejectionEvent),tt="unhandledrejection",et="rejectionhandled",it=0,nt=1,rt=2,at=1,st=2,ot=!1,lt=z(H,(function(){var t=k($),e=t!==String($);if(!e&&66===D)return!0;if(l&&!V["finally"])return!0;if(D>=51&&/native code/.test(t))return!1;var i=new $((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))},r=i.constructor={};return r[X]=n,ot=i.then((function(){}))instanceof n,!ot||!e&&F&&!Q})),ct=lt||!A((function(t){$.all(t)["catch"]((function(){}))})),ht=function(t){var e;return!(!y(t)||!b(e=t.then))&&e},ut=function(t,e){var i,n,r,a=e.value,s=e.state==nt,o=s?t.ok:t.fail,l=t.resolve,c=t.reject,h=t.domain;try{o?(s||(e.rejection===st&&vt(e),e.rejection=at),!0===o?i=a:(h&&h.enter(),i=o(a),h&&(h.exit(),r=!0)),i===t.promise?c(Z("Promise-chain cycle")):(n=ht(i))?u(n,i,l,c):l(i)):c(a)}catch(d){h&&!r&&h.exit(),c(d)}},dt=function(t,e){t.notified||(t.notified=!0,_((function(){var i,n=t.reactions;while(i=n.get())ut(i,t);t.notified=!1,e&&!t.rejection&&pt(t)})))},ft=function(t,e,i){var n,r;J?(n=G.createEvent("Event"),n.promise=e,n.reason=i,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:i},!Q&&(r=c["on"+t])?r(n):t===tt&&T("Unhandled promise rejection",i)},pt=function(t){u(L,c,(function(){var e,i=t.facade,n=t.value,r=gt(t);if(r&&(e=O((function(){N?U.emit("unhandledRejection",n,i):ft(tt,i,n)})),t.rejection=N||gt(t)?st:at,e.error))throw e.value}))},gt=function(t){return t.rejection!==at&&!t.parent},vt=function(t){u(L,c,(function(){var e=t.facade;N?U.emit("rejectionHandled",e):ft(et,e,t.value)}))},mt=function(t,e,i){return function(n){t(e,n,i)}},xt=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=rt,dt(t,!0))},bt=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw Z("Promise can't be resolved itself");var n=ht(e);n?_((function(){var i={done:!1};try{u(n,e,mt(bt,i,t),mt(xt,i,t))}catch(r){xt(i,r,t)}})):(t.value=e,t.state=nt,dt(t,!1))}catch(r){xt({done:!1},r,t)}}};if(lt&&($=function(t){w(this,V),x(t),u(n,this);var e=B(this);try{t(mt(bt,e),mt(xt,e))}catch(i){xt(e,i)}},V=$.prototype,n=function(t){Y(this,{type:H,done:!1,notified:!1,parent:!1,reactions:new I,rejection:!1,state:it,value:void 0})},n.prototype=p(V,{then:function(t,e){var i=W(this),n=q(C(this,$));return i.parent=!0,n.ok=!b(t)||t,n.fail=b(e)&&e,n.domain=N?U.domain:void 0,i.state==it?i.reactions.add(n):_((function(){ut(n,i)})),n.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new n,e=B(t);this.promise=t,this.resolve=mt(bt,e),this.reject=mt(xt,e)},P.f=q=function(t){return t===$||t===a?new r(t):K(t)},!l&&b(d)&&j!==Object.prototype)){s=j.then,ot||(f(j,"then",(function(t,e){var i=this;return new $((function(t,e){u(s,i,t,e)})).then(t,e)}),{unsafe:!0}),f(j,"catch",V["catch"],{unsafe:!0}));try{delete j.constructor}catch(yt){}g&&g(j,V)}o({global:!0,wrap:!0,forced:lt},{Promise:$}),v($,H,!1,!0),m(H),a=h(H),o({target:H,stat:!0,forced:lt},{reject:function(t){var e=q(this);return u(e.reject,void 0,t),e.promise}}),o({target:H,stat:!0,forced:l||lt},{resolve:function(t){return E(l&&this===a?$:this,t)}}),o({target:H,stat:!0,forced:ct},{all:function(t){var e=this,i=q(e),n=i.resolve,r=i.reject,a=O((function(){var i=x(e.resolve),a=[],s=0,o=1;S(t,(function(t){var l=s++,c=!1;o++,u(i,e,t).then((function(t){c||(c=!0,a[l]=t,--o||n(a))}),r)})),--o||n(a)}));return a.error&&r(a.value),i.promise},race:function(t){var e=this,i=q(e),n=i.reject,r=O((function(){var r=x(e.resolve);S(t,(function(t){u(r,e,t).then(i.resolve,n)}))}));return r.error&&n(r.value),i.promise}})},2419:function(t,e,i){var n=i(2109),r=i(5005),a=i(2104),s=i(7065),o=i(9483),l=i(9670),c=i(111),h=i(30),u=i(7293),d=r("Reflect","construct"),f=Object.prototype,p=[].push,g=u((function(){function t(){}return!(d((function(){}),[],t)instanceof t)})),v=!u((function(){d((function(){}))})),m=g||v;n({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(t,e){o(t),l(e);var i=arguments.length<3?t:o(arguments[2]);if(v&&!g)return d(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return a(p,n,e),new(a(s,t,n))}var r=i.prototype,u=h(c(r)?r:f),m=a(t,u,e);return c(m)?m:u}})},1299:function(t,e,i){var n=i(2109),r=i(7854),a=i(8003);n({global:!0},{Reflect:{}}),a(r.Reflect,"Reflect",!0)},4603:function(t,e,i){var n=i(9781),r=i(7854),a=i(1702),s=i(4705),o=i(9587),l=i(8880),c=i(3070).f,h=i(8006).f,u=i(7976),d=i(7850),f=i(1340),p=i(7066),g=i(2999),v=i(1320),m=i(7293),x=i(2597),b=i(9909).enforce,y=i(6340),w=i(5112),k=i(9441),S=i(7168),A=w("match"),C=r.RegExp,L=C.prototype,_=r.SyntaxError,E=a(p),T=a(L.exec),P=a("".charAt),O=a("".replace),I=a("".indexOf),M=a("".slice),z=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,F=/a/g,N=new C(R)!==R,D=g.MISSED_STICKY,X=g.UNSUPPORTED_Y,H=n&&(!N||D||k||S||m((function(){return F[A]=!1,C(R)!=R||C(F)==F||"/a/i"!=C(R,"i")}))),B=function(t){for(var e,i=t.length,n=0,r="",a=!1;n<=i;n++)e=P(t,n),"\\"!==e?a||"."!==e?("["===e?a=!0:"]"===e&&(a=!1),r+=e):r+="[\\s\\S]":r+=e+P(t,++n);return r},Y=function(t){for(var e,i=t.length,n=0,r="",a=[],s={},o=!1,l=!1,c=0,h="";n<=i;n++){if(e=P(t,n),"\\"===e)e+=P(t,++n);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:T(z,M(t,n+1))&&(n+=2,l=!0),r+=e,c++;continue;case">"===e&&l:if(""===h||x(s,h))throw new _("Invalid capture group name");s[h]=!0,a[a.length]=[h,c],l=!1,h="";continue}l?h+=e:r+=e}return[r,a]};if(s("RegExp",H)){for(var W=function(t,e){var i,n,r,a,s,c,h=u(L,this),p=d(t),g=void 0===e,v=[],m=t;if(!h&&p&&g&&t.constructor===W)return t;if((p||u(L,t))&&(t=t.source,g&&(e="flags"in m?m.flags:E(m))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),m=t,k&&"dotAll"in R&&(n=!!e&&I(e,"s")>-1,n&&(e=O(e,/s/g,""))),i=e,D&&"sticky"in R&&(r=!!e&&I(e,"y")>-1,r&&X&&(e=O(e,/y/g,""))),S&&(a=Y(t),t=a[0],v=a[1]),s=o(C(t,e),h?this:L,W),(n||r||v.length)&&(c=b(s),n&&(c.dotAll=!0,c.raw=W(B(t),i)),r&&(c.sticky=!0),v.length&&(c.groups=v)),t!==m)try{l(s,"source",""===m?"(?:)":m)}catch(x){}return s},j=function(t){t in W||c(W,t,{configurable:!0,get:function(){return C[t]},set:function(e){C[t]=e}})},$=h(C),V=0;$.length>V;)j($[V++]);L.constructor=W,W.prototype=L,v(r,"RegExp",W)}y("RegExp")},8450:function(t,e,i){var n=i(7854),r=i(9781),a=i(9441),s=i(4326),o=i(3070).f,l=i(9909).get,c=RegExp.prototype,h=n.TypeError;r&&a&&o(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===s(this))return!!l(this).dotAll;throw h("Incompatible receiver, RegExp required")}}})},4916:function(t,e,i){"use strict";var n=i(2109),r=i(2261);n({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},8386:function(t,e,i){var n=i(7854),r=i(9781),a=i(2999).MISSED_STICKY,s=i(4326),o=i(3070).f,l=i(9909).get,c=RegExp.prototype,h=n.TypeError;r&&a&&o(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===s(this))return!!l(this).sticky;throw h("Incompatible receiver, RegExp required")}}})},7601:function(t,e,i){"use strict";i(4916);var n=i(2109),r=i(7854),a=i(6916),s=i(1702),o=i(614),l=i(111),c=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),h=r.Error,u=s(/./.test);n({target:"RegExp",proto:!0,forced:!c},{test:function(t){var e=this.exec;if(!o(e))return u(this,t);var i=a(e,this,t);if(null!==i&&!l(i))throw new h("RegExp exec method returned something other than an Object or null");return!!i}})},9714:function(t,e,i){"use strict";var n=i(1702),r=i(6530).PROPER,a=i(1320),s=i(9670),o=i(7976),l=i(1340),c=i(7293),h=i(7066),u="toString",d=RegExp.prototype,f=d[u],p=n(h),g=c((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),v=r&&f.name!=u;(g||v)&&a(RegExp.prototype,u,(function(){var t=s(this),e=l(t.source),i=t.flags,n=l(void 0===i&&o(d,t)&&!("flags"in d)?p(t):i);return"/"+e+"/"+n}),{unsafe:!0})},5218:function(t,e,i){"use strict";var n=i(2109),r=i(4230),a=i(3429);n({target:"String",proto:!0,forced:a("anchor")},{anchor:function(t){return r(this,"a","name",t)}})},7852:function(t,e,i){"use strict";var n=i(2109),r=i(1702),a=i(1236).f,s=i(7466),o=i(1340),l=i(3929),c=i(4488),h=i(4964),u=i(1913),d=r("".endsWith),f=r("".slice),p=Math.min,g=h("endsWith"),v=!u&&!g&&!!function(){var t=a(String.prototype,"endsWith");return t&&!t.writable}();n({target:"String",proto:!0,forced:!v&&!g},{endsWith:function(t){var e=o(c(this));l(t);var i=arguments.length>1?arguments[1]:void 0,n=e.length,r=void 0===i?n:p(s(i),n),a=o(t);return d?d(e,a,r):f(e,r-a.length,r)===a}})},9253:function(t,e,i){"use strict";var n=i(2109),r=i(4230),a=i(3429);n({target:"String",proto:!0,forced:a("fixed")},{fixed:function(){return r(this,"tt","","")}})},2023:function(t,e,i){"use strict";var n=i(2109),r=i(1702),a=i(3929),s=i(4488),o=i(1340),l=i(4964),c=r("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(t){return!!~c(o(s(this)),o(a(t)),arguments.length>1?arguments[1]:void 0)}})},8783:function(t,e,i){"use strict";var n=i(8710).charAt,r=i(1340),a=i(9909),s=i(654),o="String Iterator",l=a.set,c=a.getterFor(o);s(String,"String",(function(t){l(this,{type:o,string:r(t),index:0})}),(function(){var t,e=c(this),i=e.string,r=e.index;return r>=i.length?{value:void 0,done:!0}:(t=n(i,r),e.index+=t.length,{value:t,done:!1})}))},9254:function(t,e,i){"use strict";var n=i(2109),r=i(4230),a=i(3429);n({target:"String",proto:!0,forced:a("link")},{link:function(t){return r(this,"a","href",t)}})},4723:function(t,e,i){"use strict";var n=i(6916),r=i(7007),a=i(9670),s=i(7466),o=i(1340),l=i(4488),c=i(8173),h=i(1530),u=i(7651);r("match",(function(t,e,i){return[function(e){var i=l(this),r=void 0==e?void 0:c(e,t);return r?n(r,e,i):new RegExp(e)[t](o(i))},function(t){var n=a(this),r=o(t),l=i(e,n,r);if(l.done)return l.value;if(!n.global)return u(n,r);var c=n.unicode;n.lastIndex=0;var d,f=[],p=0;while(null!==(d=u(n,r))){var g=o(d[0]);f[p]=g,""===g&&(n.lastIndex=h(r,s(n.lastIndex),c)),p++}return 0===p?null:f}]}))},2481:function(t,e,i){var n=i(2109),r=i(8415);n({target:"String",proto:!0},{repeat:r})},5306:function(t,e,i){"use strict";var n=i(2104),r=i(6916),a=i(1702),s=i(7007),o=i(7293),l=i(9670),c=i(614),h=i(9303),u=i(7466),d=i(1340),f=i(4488),p=i(1530),g=i(8173),v=i(647),m=i(7651),x=i(5112),b=x("replace"),y=Math.max,w=Math.min,k=a([].concat),S=a([].push),A=a("".indexOf),C=a("".slice),L=function(t){return void 0===t?t:String(t)},_=function(){return"$0"==="a".replace(/./,"$0")}(),E=function(){return!!/./[b]&&""===/./[b]("a","$0")}(),T=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}));s("replace",(function(t,e,i){var a=E?"$":"$0";return[function(t,i){var n=f(this),a=void 0==t?void 0:g(t,b);return a?r(a,t,n,i):r(e,d(n),t,i)},function(t,r){var s=l(this),o=d(t);if("string"==typeof r&&-1===A(r,a)&&-1===A(r,"$<")){var f=i(e,s,o,r);if(f.done)return f.value}var g=c(r);g||(r=d(r));var x=s.global;if(x){var b=s.unicode;s.lastIndex=0}var _=[];while(1){var E=m(s,o);if(null===E)break;if(S(_,E),!x)break;var T=d(E[0]);""===T&&(s.lastIndex=p(o,u(s.lastIndex),b))}for(var P="",O=0,I=0;I<_.length;I++){E=_[I];for(var M=d(E[0]),z=y(w(h(E.index),o.length),0),R=[],F=1;F=O&&(P+=C(o,O,z)+X,O=z+M.length)}return P+C(o,O)}]}),!T||!_||E)},7268:function(t,e,i){"use strict";var n=i(2109),r=i(4230),a=i(3429);n({target:"String",proto:!0,forced:a("small")},{small:function(){return r(this,"small","","")}})},3123:function(t,e,i){"use strict";var n=i(2104),r=i(6916),a=i(1702),s=i(7007),o=i(7850),l=i(9670),c=i(4488),h=i(6707),u=i(1530),d=i(7466),f=i(1340),p=i(8173),g=i(1589),v=i(7651),m=i(2261),x=i(2999),b=i(7293),y=x.UNSUPPORTED_Y,w=4294967295,k=Math.min,S=[].push,A=a(/./.exec),C=a(S),L=a("".slice),_=!b((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}));s("split",(function(t,e,i){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var a=f(c(this)),s=void 0===i?w:i>>>0;if(0===s)return[];if(void 0===t)return[a];if(!o(t))return r(e,a,t,s);var l,h,u,d=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,x=new RegExp(t.source,p+"g");while(l=r(m,x,a)){if(h=x.lastIndex,h>v&&(C(d,L(a,v,l.index)),l.length>1&&l.index=s))break;x.lastIndex===l.index&&x.lastIndex++}return v===a.length?!u&&A(x,"")||C(d,""):C(d,L(a,v)),d.length>s?g(d,0,s):d}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:r(e,this,t,i)}:e,[function(e,i){var n=c(this),s=void 0==e?void 0:p(e,t);return s?r(s,e,n,i):r(a,f(n),e,i)},function(t,n){var r=l(this),s=f(t),o=i(a,r,s,n,a!==e);if(o.done)return o.value;var c=h(r,RegExp),p=r.unicode,g=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(y?"g":"y"),m=new c(y?"^(?:"+r.source+")":r,g),x=void 0===n?w:n>>>0;if(0===x)return[];if(0===s.length)return null===v(m,s)?[s]:[];var b=0,S=0,A=[];while(S1?arguments[1]:void 0,e.length)),n=o(t);return d?d(e,n,i):f(e,i,i+n.length)===n}})},3210:function(t,e,i){"use strict";var n=i(2109),r=i(3111).trim,a=i(6091);n({target:"String",proto:!0,forced:a("trim")},{trim:function(){return r(this)}})},1817:function(t,e,i){"use strict";var n=i(2109),r=i(9781),a=i(7854),s=i(1702),o=i(2597),l=i(614),c=i(7976),h=i(1340),u=i(3070).f,d=i(9920),f=a.Symbol,p=f&&f.prototype;if(r&&l(f)&&(!("description"in p)||void 0!==f().description)){var g={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:h(arguments[0]),e=c(p,this)?new f(t):void 0===t?f():f(t);return""===t&&(g[e]=!0),e};d(v,f),v.prototype=p,p.constructor=v;var m="Symbol(test)"==String(f("test")),x=s(p.toString),b=s(p.valueOf),y=/^Symbol\((.*)\)[^)]+$/,w=s("".replace),k=s("".slice);u(p,"description",{configurable:!0,get:function(){var t=b(this),e=x(t);if(o(g,t))return"";var i=m?k(e,7,-1):w(e,y,"$1");return""===i?void 0:i}}),n({global:!0,forced:!0},{Symbol:v})}},2165:function(t,e,i){var n=i(7235);n("iterator")},2526:function(t,e,i){"use strict";var n=i(2109),r=i(7854),a=i(5005),s=i(2104),o=i(6916),l=i(1702),c=i(1913),h=i(9781),u=i(133),d=i(7293),f=i(2597),p=i(3157),g=i(614),v=i(111),m=i(7976),x=i(2190),b=i(9670),y=i(7908),w=i(5656),k=i(4948),S=i(1340),A=i(9114),C=i(30),L=i(1956),_=i(8006),E=i(1156),T=i(5181),P=i(1236),O=i(3070),I=i(6048),M=i(5296),z=i(206),R=i(1320),F=i(2309),N=i(6200),D=i(3501),X=i(9711),H=i(5112),B=i(6061),Y=i(7235),W=i(8003),j=i(9909),$=i(2092).forEach,V=N("hidden"),Z="Symbol",G="prototype",U=H("toPrimitive"),q=j.set,K=j.getterFor(Z),J=Object[G],Q=r.Symbol,tt=Q&&Q[G],et=r.TypeError,it=r.QObject,nt=a("JSON","stringify"),rt=P.f,at=O.f,st=E.f,ot=M.f,lt=l([].push),ct=F("symbols"),ht=F("op-symbols"),ut=F("string-to-symbol-registry"),dt=F("symbol-to-string-registry"),ft=F("wks"),pt=!it||!it[G]||!it[G].findChild,gt=h&&d((function(){return 7!=C(at({},"a",{get:function(){return at(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=rt(J,e);n&&delete J[e],at(t,e,i),n&&t!==J&&at(J,e,n)}:at,vt=function(t,e){var i=ct[t]=C(tt);return q(i,{type:Z,tag:t,description:e}),h||(i.description=e),i},mt=function(t,e,i){t===J&&mt(ht,e,i),b(t);var n=k(e);return b(i),f(ct,n)?(i.enumerable?(f(t,V)&&t[V][n]&&(t[V][n]=!1),i=C(i,{enumerable:A(0,!1)})):(f(t,V)||at(t,V,A(1,{})),t[V][n]=!0),gt(t,n,i)):at(t,n,i)},xt=function(t,e){b(t);var i=w(e),n=L(i).concat(St(i));return $(n,(function(e){h&&!o(yt,i,e)||mt(t,e,i[e])})),t},bt=function(t,e){return void 0===e?C(t):xt(C(t),e)},yt=function(t){var e=k(t),i=o(ot,this,e);return!(this===J&&f(ct,e)&&!f(ht,e))&&(!(i||!f(this,e)||!f(ct,e)||f(this,V)&&this[V][e])||i)},wt=function(t,e){var i=w(t),n=k(e);if(i!==J||!f(ct,n)||f(ht,n)){var r=rt(i,n);return!r||!f(ct,n)||f(i,V)&&i[V][n]||(r.enumerable=!0),r}},kt=function(t){var e=st(w(t)),i=[];return $(e,(function(t){f(ct,t)||f(D,t)||lt(i,t)})),i},St=function(t){var e=t===J,i=st(e?ht:w(t)),n=[];return $(i,(function(t){!f(ct,t)||e&&!f(J,t)||lt(n,ct[t])})),n};if(u||(Q=function(){if(m(tt,this))throw et("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?S(arguments[0]):void 0,e=X(t),i=function(t){this===J&&o(i,ht,t),f(this,V)&&f(this[V],e)&&(this[V][e]=!1),gt(this,e,A(1,t))};return h&&pt&>(J,e,{configurable:!0,set:i}),vt(e,t)},tt=Q[G],R(tt,"toString",(function(){return K(this).tag})),R(Q,"withoutSetter",(function(t){return vt(X(t),t)})),M.f=yt,O.f=mt,I.f=xt,P.f=wt,_.f=E.f=kt,T.f=St,B.f=function(t){return vt(H(t),t)},h&&(at(tt,"description",{configurable:!0,get:function(){return K(this).description}}),c||R(J,"propertyIsEnumerable",yt,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Q}),$(L(ft),(function(t){Y(t)})),n({target:Z,stat:!0,forced:!u},{for:function(t){var e=S(t);if(f(ut,e))return ut[e];var i=Q(e);return ut[e]=i,dt[i]=e,i},keyFor:function(t){if(!x(t))throw et(t+" is not a symbol");if(f(dt,t))return dt[t]},useSetter:function(){pt=!0},useSimple:function(){pt=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!h},{create:bt,defineProperty:mt,defineProperties:xt,getOwnPropertyDescriptor:wt}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:kt,getOwnPropertySymbols:St}),n({target:"Object",stat:!0,forced:d((function(){T.f(1)}))},{getOwnPropertySymbols:function(t){return T.f(y(t))}}),nt){var At=!u||d((function(){var t=Q();return"[null]"!=nt([t])||"{}"!=nt({a:t})||"{}"!=nt(Object(t))}));n({target:"JSON",stat:!0,forced:At},{stringify:function(t,e,i){var n=z(arguments),r=e;if((v(e)||void 0!==t)&&!x(t))return p(e)||(e=function(t,e){if(g(r)&&(e=o(r,this,t,e)),!x(e))return e}),n[1]=e,s(nt,null,n)}})}if(!tt[U]){var Ct=tt.valueOf;R(tt,U,(function(t){return o(Ct,this)}))}W(Q,Z),D[V]=!0},4747:function(t,e,i){var n=i(7854),r=i(8324),a=i(8509),s=i(8533),o=i(8880),l=function(t){if(t&&t.forEach!==s)try{o(t,"forEach",s)}catch(e){t.forEach=s}};for(var c in r)r[c]&&l(n[c]&&n[c].prototype);l(a)},3948:function(t,e,i){var n=i(7854),r=i(8324),a=i(8509),s=i(6992),o=i(8880),l=i(5112),c=l("iterator"),h=l("toStringTag"),u=s.values,d=function(t,e){if(t){if(t[c]!==u)try{o(t,c,u)}catch(n){t[c]=u}if(t[h]||o(t,h,e),r[e])for(var i in s)if(t[i]!==s[i])try{o(t,i,s[i])}catch(n){t[i]=s[i]}}};for(var f in r)d(n[f]&&n[f].prototype,f);d(a,"DOMTokenList")},7187:function(t){"use strict";var e,i="object"===typeof Reflect?Reflect:null,n=i&&"function"===typeof i.apply?i.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};function r(t){console&&console.warn&&console.warn(t)}e=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!==t};function s(){s.init.call(this)}t.exports=s,t.exports.once=x,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function l(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function h(t,e,i,n){var a,s,o;if(l(i),s=t._events,void 0===s?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),s=t._events),o=s[e]),void 0===o)o=s[e]=i,++t._eventsCount;else if("function"===typeof o?o=s[e]=n?[i,o]:[o,i]:n?o.unshift(i):o.push(i),a=c(t),a>0&&o.length>a&&!o.warned){o.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=t,h.type=e,h.count=o.length,r(h)}return t}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=u.bind(n);return r.listener=i,n.wrapFn=r,r}function f(t,e,i){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"===typeof r?i?[r.listener||r]:[r]:i?m(r):g(r,r.length)}function p(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"===typeof i)return 1;if(void 0!==i)return i.length}return 0}function g(t,e){for(var i=new Array(e),n=0;n0&&(s=e[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var l=a[t];if(void 0===l)return!1;if("function"===typeof l)n(l,this,e);else{var c=l.length,h=g(l,c);for(i=0;i=0;a--)if(i[a]===e||i[a].listener===e){s=i[a].listener,r=a;break}if(r<0)return this;0===r?i.shift():v(i,r),1===i.length&&(n[t]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,i,n;if(i=this._events,void 0===i)return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0===arguments.length){var r,a=Object.keys(i);for(n=0;n=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return f(this,t,!0)},s.prototype.rawListeners=function(t){return f(this,t,!1)},s.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},7273:function(){},8582:function(){},5666:function(t){var e=function(t){"use strict";var e,i=Object.prototype,n=i.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(I){l=function(t,e,i){return t[e]=i}}function c(t,e,i,n){var r=e&&e.prototype instanceof v?e:v,a=Object.create(r.prototype),s=new T(n||[]);return a._invoke=C(t,i,s),a}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(I){return{type:"throw",arg:I}}}t.wrap=c;var u="suspendedStart",d="suspendedYield",f="executing",p="completed",g={};function v(){}function m(){}function x(){}var b={};l(b,a,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(P([])));w&&w!==i&&n.call(w,a)&&(b=w);var k=x.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function i(r,a,s,o){var l=h(t[r],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"===typeof u&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){i("next",t,s,o)}),(function(t){i("throw",t,s,o)})):e.resolve(u).then((function(t){c.value=t,s(c)}),(function(t){return i("throw",t,s,o)}))}o(l.arg)}var r;function a(t,n){function a(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(a,a):a()}this._invoke=a}function C(t,e,i){var n=u;return function(r,a){if(n===f)throw new Error("Generator is already running");if(n===p){if("throw"===r)throw a;return O()}i.method=r,i.arg=a;while(1){var s=i.delegate;if(s){var o=L(s,i);if(o){if(o===g)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===u)throw n=p,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=f;var l=h(t,e,i);if("normal"===l.type){if(n=i.done?p:d,l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n=p,i.method="throw",i.arg=l.arg)}}}function L(t,i){var n=t.iterator[i.method];if(n===e){if(i.delegate=null,"throw"===i.method){if(t.iterator["return"]&&(i.method="return",i.arg=e,L(t,i),"throw"===i.method))return g;i.method="throw",i.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=h(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,g;var a=r.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(t){if(t){var i=t[a];if(i)return i.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,s=function i(){while(++r=0;--a){var s=this.tryEntries[a],o=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),E(i),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;E(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:P(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},9146:function(t,e){"use strict";e.Z=void 0;var i={badge:"Abzeichen",close:"Schließen",dataIterator:{noResultsText:"Keine Elemente gefunden",loadingText:"Lade Elemente..."},dataTable:{itemsPerPageText:"Zeilen pro Seite:",ariaLabel:{sortDescending:"Absteigend sortiert.",sortAscending:"Aufsteigend sortiert.",sortNone:"Nicht sortiert.",activateNone:"Aktivieren um Sortierung zu entfernen.",activateDescending:"Aktivieren um absteigend zu sortieren.",activateAscending:"Aktivieren um aufsteigend zu sortieren."},sortBy:"Sortiere nach"},dataFooter:{itemsPerPageText:"Elemente pro Seite:",itemsPerPageAll:"Alle",nextPage:"Nächste Seite",prevPage:"Vorherige Seite",firstPage:"Erste Seite",lastPage:"Letzte Seite",pageText:"{0}-{1} von {2}"},datePicker:{itemsSelected:"{0} ausgewählt",nextMonthAriaLabel:"Nächsten Monat",nextYearAriaLabel:"Nächstes Jahr",prevMonthAriaLabel:"Vorheriger Monat",prevYearAriaLabel:"Vorheriges Jahr"},noDataText:"Keine Daten vorhanden",carousel:{prev:"Vorheriges Bild",next:"Nächstes Bild",ariaLabel:{delimiter:"Element {0} von {1}"}},calendar:{moreEvents:"{0} mehr"},fileInput:{counter:"{0} Dateien",counterSize:"{0} Dateien ({1} gesamt)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Seitennavigation",next:"Nächste Seite",previous:"Vorherige Seite",page:"Gehe zu Seite {0}",currentPage:"Aktuelle Seite, Seite {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}}};e.Z=i},1234:function(t,e,i){"use strict";i.d(e,{Z:function(){return p}});var n=i(4367),r=i(3796),a=(i(6699),i(5648)),s=i(8119),o=i(172),l=i(2936),c=i(8085),h=i(144),u=h.Z.extend({name:"transitionable",props:{mode:String,origin:String,transition:String}}),d=i(3325),f=i(1824),p=(0,d.Z)(a.Z,l.Z,u).extend({name:"v-alert",props:{border:{type:String,validator:function(t){return["top","right","bottom","left"].includes(t)}},closeLabel:{type:String,default:"$vuetify.close"},coloredBorder:Boolean,dense:Boolean,dismissible:Boolean,closeIcon:{type:String,default:"$cancel"},icon:{default:"",type:[Boolean,String],validator:function(t){return"string"===typeof t||!1===t}},outlined:Boolean,prominent:Boolean,text:Boolean,type:{type:String,validator:function(t){return["info","error","success","warning"].includes(t)}},value:{type:Boolean,default:!0}},computed:{__cachedBorder:function(){if(!this.border)return null;var t={staticClass:"v-alert__border",class:(0,r.Z)({},"v-alert__border--".concat(this.border),!0)};return this.coloredBorder&&(t=this.setBackgroundColor(this.computedColor,t),t.class["v-alert__border--has-color"]=!0),this.$createElement("div",t)},__cachedDismissible:function(){var t=this;if(!this.dismissible)return null;var e=this.iconColor;return this.$createElement(s.Z,{staticClass:"v-alert__dismissible",props:{color:e,icon:!0,small:!0},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:function(){return t.isActive=!1}}},[this.$createElement(o.Z,{props:{color:e}},this.closeIcon)])},__cachedIcon:function(){return this.computedIcon?this.$createElement(o.Z,{staticClass:"v-alert__icon",props:{color:this.iconColor}},this.computedIcon):null},classes:function(){var t=(0,n.Z)((0,n.Z)({},a.Z.options.computed.classes.call(this)),{},{"v-alert--border":Boolean(this.border),"v-alert--dense":this.dense,"v-alert--outlined":this.outlined,"v-alert--prominent":this.prominent,"v-alert--text":this.text});return this.border&&(t["v-alert--border-".concat(this.border)]=!0),t},computedColor:function(){return this.color||this.type},computedIcon:function(){return!1!==this.icon&&("string"===typeof this.icon&&this.icon?this.icon:!!["error","info","success","warning"].includes(this.type)&&"$".concat(this.type))},hasColoredIcon:function(){return this.hasText||Boolean(this.border)&&this.coloredBorder},hasText:function(){return this.text||this.outlined},iconColor:function(){return this.hasColoredIcon?this.computedColor:void 0},isDark:function(){return!(!this.type||this.coloredBorder||this.outlined)||c.Z.options.computed.isDark.call(this)}},created:function(){this.$attrs.hasOwnProperty("outline")&&(0,f.fK)("outline","outlined",this)},methods:{genWrapper:function(){var t=[this.$slots.prepend||this.__cachedIcon,this.genContent(),this.__cachedBorder,this.$slots.append,this.$scopedSlots.close?this.$scopedSlots.close({toggle:this.toggle}):this.__cachedDismissible],e={staticClass:"v-alert__wrapper"};return this.$createElement("div",e,t)},genContent:function(){return this.$createElement("div",{staticClass:"v-alert__content"},this.$slots.default)},genAlert:function(){var t={staticClass:"v-alert",attrs:{role:"alert"},on:this.listeners$,class:this.classes,style:this.styles,directives:[{name:"show",value:this.isActive}]};if(!this.coloredBorder){var e=this.hasText?this.setTextColor:this.setBackgroundColor;t=e(this.computedColor,t)}return this.$createElement("div",t,[this.genWrapper()])},toggle:function(){this.isActive=!this.isActive}},render:function(t){var e=this.genAlert();return this.transition?t("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[e]):e}})},7524:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(4367),r=(i(1703),i(8085)),a=i(3325),s=(0,a.Z)(r.Z).extend({name:"v-app",props:{dark:{type:Boolean,default:void 0},id:{type:String,default:"app"},light:{type:Boolean,default:void 0}},computed:{isDark:function(){return this.$vuetify.theme.dark}},beforeCreate:function(){if(!this.$vuetify||this.$vuetify===this.$root)throw new Error("Vuetify is not properly initialized, see https://vuetifyjs.com/getting-started/quick-start#bootstrapping-the-vuetify-object")},render:function(t){var e=t("div",{staticClass:"v-application--wrap"},this.$slots.default);return t("div",{staticClass:"v-application",class:(0,n.Z)({"v-application--is-rtl":this.$vuetify.rtl,"v-application--is-ltr":!this.$vuetify.rtl},this.themeClasses),attrs:{"data-app":!0},domProps:{id:this.id}},[e])}})},426:function(t,e,i){"use strict";i.d(e,{Z:function(){return k}});var n=i(4367),r=(i(9253),i(9653),i(5200)),a=(i(4944),i(3792),i(1539),i(3385)),s=i(7047),o=i(4589),l=i(1824),c=a.Z.extend({name:"v-toolbar",props:{absolute:Boolean,bottom:Boolean,collapse:Boolean,dense:Boolean,extended:Boolean,extensionHeight:{default:48,type:[Number,String]},flat:Boolean,floating:Boolean,prominent:Boolean,short:Boolean,src:{type:[String,Object],default:""},tag:{type:String,default:"header"}},data:function(){return{isExtended:!1}},computed:{computedHeight:function(){var t=this.computedContentHeight;if(!this.isExtended)return t;var e=parseInt(this.extensionHeight);return this.isCollapsed?t:t+(isNaN(e)?0:e)},computedContentHeight:function(){return this.height?parseInt(this.height):this.isProminent&&this.dense?96:this.isProminent&&this.short?112:this.isProminent?128:this.dense?48:this.short||this.$vuetify.breakpoint.smAndDown?56:64},classes:function(){return(0,n.Z)((0,n.Z)({},a.Z.options.computed.classes.call(this)),{},{"v-toolbar":!0,"v-toolbar--absolute":this.absolute,"v-toolbar--bottom":this.bottom,"v-toolbar--collapse":this.collapse,"v-toolbar--collapsed":this.isCollapsed,"v-toolbar--dense":this.dense,"v-toolbar--extended":this.isExtended,"v-toolbar--flat":this.flat,"v-toolbar--floating":this.floating,"v-toolbar--prominent":this.isProminent})},isCollapsed:function(){return this.collapse},isProminent:function(){return this.prominent},styles:function(){return(0,n.Z)((0,n.Z)({},this.measurableStyles),{},{height:(0,o.kb)(this.computedHeight)})}},created:function(){var t=this,e=[["app",""],["manual-scroll",''],["clipped-left",""],["clipped-right",""],["inverted-scroll",""],["scroll-off-screen",""],["scroll-target",""],["scroll-threshold",""],["card",""]];e.forEach((function(e){var i=(0,r.Z)(e,2),n=i[0],a=i[1];t.$attrs.hasOwnProperty(n)&&(0,l.fK)(n,a,t)}))},methods:{genBackground:function(){var t={height:(0,o.kb)(this.computedHeight),src:this.src},e=this.$scopedSlots.img?this.$scopedSlots.img({props:t}):this.$createElement(s.Z,{props:t});return this.$createElement("div",{staticClass:"v-toolbar__image"},[e])},genContent:function(){return this.$createElement("div",{staticClass:"v-toolbar__content",style:{height:(0,o.kb)(this.computedContentHeight)}},(0,o.z9)(this))},genExtension:function(){return this.$createElement("div",{staticClass:"v-toolbar__extension",style:{height:(0,o.kb)(this.extensionHeight)}},(0,o.z9)(this,"extension"))}},render:function(t){this.isExtended=this.extended||!!this.$scopedSlots.extension;var e=[this.genContent()],i=this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,on:this.$listeners});return this.isExtended&&e.push(this.genExtension()),(this.src||this.$scopedSlots.img)&&e.unshift(this.genBackground()),t(this.tag,i,e)}}),h=i(9726);function u(t,e,i){var n=e.modifiers||{},r=n.self,a=void 0!==r&&r,s=e.value,o="object"===(0,h.Z)(s)&&s.options||{passive:!0},l="function"===typeof s||"handleEvent"in s?s:s.handler,c=a?t:e.arg?document.querySelector(e.arg):window;c&&(c.addEventListener("scroll",l,o),t._onScroll=Object(t._onScroll),t._onScroll[i.context._uid]={handler:l,options:o,target:a?void 0:c})}function d(t,e,i){var n;if(null!=(n=t._onScroll)&&n[i.context._uid]){var r=t._onScroll[i.context._uid],a=r.handler,s=r.options,o=r.target,l=void 0===o?t:o;l.removeEventListener("scroll",a,s),delete t._onScroll[i.context._uid]}}var f={inserted:u,unbind:d},p=f,g=i(3358),v=i(144),m=v.Z.extend({name:"scrollable",directives:{Scroll:f},props:{scrollTarget:String,scrollThreshold:[String,Number]},data:function(){return{currentScroll:0,currentThreshold:0,isActive:!1,isScrollingUp:!1,previousScroll:0,savedScroll:0,target:null}},computed:{canScroll:function(){return"undefined"!==typeof window},computedScrollThreshold:function(){return this.scrollThreshold?Number(this.scrollThreshold):300}},watch:{isScrollingUp:function(){this.savedScroll=this.savedScroll||this.currentScroll},isActive:function(){this.savedScroll=0}},mounted:function(){this.scrollTarget&&(this.target=document.querySelector(this.scrollTarget),this.target||(0,l.Kd)("Unable to locate element with identifier ".concat(this.scrollTarget),this))},methods:{onScroll:function(){var t=this;this.canScroll&&(this.previousScroll=this.currentScroll,this.currentScroll=this.target?this.target.scrollTop:window.pageYOffset,this.isScrollingUp=this.currentScrollt.computedScrollThreshold&&t.thresholdMet()})))},thresholdMet:function(){}}}),x=i(9177),b=i(2936),y=i(3325),w=(0,y.Z)(c,m,x.Z,b.Z,(0,g.Z)("top",["clippedLeft","clippedRight","computedHeight","invertedScroll","isExtended","isProminent","value"])),k=w.extend({name:"v-app-bar",directives:{Scroll:p},provide:function(){return{VAppBar:this}},props:{clippedLeft:Boolean,clippedRight:Boolean,collapseOnScroll:Boolean,elevateOnScroll:Boolean,fadeImgOnScroll:Boolean,hideOnScroll:Boolean,invertedScroll:Boolean,scrollOffScreen:Boolean,shrinkOnScroll:Boolean,value:{type:Boolean,default:!0}},data:function(){return{isActive:this.value}},computed:{applicationProperty:function(){return this.bottom?"bottom":"top"},canScroll:function(){return m.options.computed.canScroll.call(this)&&(this.invertedScroll||this.elevateOnScroll||this.hideOnScroll||this.collapseOnScroll||this.isBooted||!this.value)},classes:function(){return(0,n.Z)((0,n.Z)({},c.options.computed.classes.call(this)),{},{"v-toolbar--collapse":this.collapse||this.collapseOnScroll,"v-app-bar":!0,"v-app-bar--clipped":this.clippedLeft||this.clippedRight,"v-app-bar--fade-img-on-scroll":this.fadeImgOnScroll,"v-app-bar--elevate-on-scroll":this.elevateOnScroll,"v-app-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-app-bar--hide-shadow":this.hideShadow,"v-app-bar--is-scrolled":this.currentScroll>0,"v-app-bar--shrink-on-scroll":this.shrinkOnScroll})},scrollRatio:function(){var t=this.computedScrollThreshold;return Math.max((t-this.currentScroll)/t,0)},computedContentHeight:function(){if(!this.shrinkOnScroll)return c.options.computed.computedContentHeight.call(this);var t=this.dense?48:56,e=this.computedOriginalHeight;return t+(e-t)*this.scrollRatio},computedFontSize:function(){if(this.isProminent){var t=1.25,e=1.5;return t+(e-t)*this.scrollRatio}},computedLeft:function(){return!this.app||this.clippedLeft?0:this.$vuetify.application.left},computedMarginTop:function(){return this.app?this.$vuetify.application.bar:0},computedOpacity:function(){if(this.fadeImgOnScroll)return this.scrollRatio},computedOriginalHeight:function(){var t=c.options.computed.computedContentHeight.call(this);return this.isExtended&&(t+=parseInt(this.extensionHeight)),t},computedRight:function(){return!this.app||this.clippedRight?0:this.$vuetify.application.right},computedScrollThreshold:function(){return this.scrollThreshold?Number(this.scrollThreshold):this.computedOriginalHeight-(this.dense?48:56)},computedTransform:function(){if(!this.canScroll||this.elevateOnScroll&&0===this.currentScroll&&this.isActive)return 0;if(this.isActive)return 0;var t=this.scrollOffScreen?this.computedHeight:this.computedContentHeight;return this.bottom?t:-t},hideShadow:function(){return this.elevateOnScroll&&this.isExtended?this.currentScroll0:c.options.computed.isCollapsed.call(this)},isProminent:function(){return c.options.computed.isProminent.call(this)||this.shrinkOnScroll},styles:function(){return(0,n.Z)((0,n.Z)({},c.options.computed.styles.call(this)),{},{fontSize:(0,o.kb)(this.computedFontSize,"rem"),marginTop:(0,o.kb)(this.computedMarginTop),transform:"translateY(".concat((0,o.kb)(this.computedTransform),")"),left:(0,o.kb)(this.computedLeft),right:(0,o.kb)(this.computedRight)})}},watch:{canScroll:"onScroll",computedTransform:function(){this.canScroll&&(this.clippedLeft||this.clippedRight)&&this.callUpdate()},invertedScroll:function(t){this.isActive=!t||0!==this.currentScroll},hideOnScroll:function(t){this.isActive=!t||this.currentScrollthis.computedScrollThreshold:(this.hideOnScroll&&(this.isActive=this.isScrollingUp||this.currentScroll0))},isRound:function(){return Boolean(this.icon||this.fab)},styles:function(){return(0,a.Z)({},this.measurableStyles)}},created:function(){var t=this,e=[["flat","text"],["outline","outlined"],["round","rounded"]];e.forEach((function(e){var i=(0,r.Z)(e,2),n=i[0],a=i[1];t.$attrs.hasOwnProperty(n)&&(0,v.fK)(n,a,t)}))},methods:{click:function(t){!this.retainFocusOnClick&&!this.fab&&t.detail&&this.$el.blur(),this.$emit("click",t),this.btnToggle&&this.toggle()},genContent:function(){return this.$createElement("span",{staticClass:"v-btn__content"},this.$slots.default)},genLoader:function(){return this.$createElement("span",{class:"v-btn__loader"},this.$slots.loader||[this.$createElement(l,{props:{indeterminate:!0,size:23,width:2}})])}},render:function(t){var e=[this.genContent(),this.loading&&this.genLoader()],i=this.generateRouteLink(),r=i.tag,a=i.data,s=this.hasBg?this.setBackgroundColor:this.setTextColor;return"button"===r&&(a.attrs.type=this.type,a.attrs.disabled=this.disabled),a.attrs.value=["string","number"].includes((0,n.Z)(this.value))?this.value:JSON.stringify(this.value),t(r,this.disabled?a:s(this.color,a),e)}})},8119:function(t,e,i){"use strict";var n=i(3150);e["Z"]=n.Z},5424:function(t,e,i){"use strict";i.d(e,{Z:function(){return g}});var n=i(5200),r=i(4367),a=(i(1539),i(7327),i(3325)),s=i(5827),o=i(172),l=i(6952),c=i(7352),h=i(8085),u=i(2936),d=i(6505),f=i(9131),p=i(1824),g=(0,a.Z)(l.Z,f.Z,d.Z,h.Z,(0,c.d)("chipGroup"),(0,u.d)("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default:function(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:function(){return{proxyClass:"v-chip--active"}},computed:{classes:function(){return(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"v-chip":!0},d.Z.options.computed.classes.call(this)),{},{"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose},this.themeClasses),this.sizeableClasses),this.groupClasses)},hasClose:function(){return Boolean(this.close)},isClickable:function(){return Boolean(d.Z.options.computed.isClickable.call(this)||this.chipGroup)}},created:function(){var t=this,e=[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]];e.forEach((function(e){var i=(0,n.Z)(e,2),r=i[0],a=i[1];t.$attrs.hasOwnProperty(r)&&(0,p.fK)(r,a,t)}))},methods:{click:function(t){this.$emit("click",t),this.chipGroup&&this.toggle()},genFilter:function(){var t=[];return this.isActive&&t.push(this.$createElement(o.Z,{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(s.Zq,t)},genClose:function(){var t=this;return this.$createElement(o.Z,{staticClass:"v-chip__close",props:{right:!0,size:18},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.$emit("click:close"),t.$emit("update:active",!1)}}},this.closeIcon)},genContent:function(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),this.$slots.default,this.hasClose&&this.genClose()])}},render:function(t){var e=[this.genContent()],i=this.generateRouteLink(),n=i.tag,a=i.data;a.attrs=(0,r.Z)((0,r.Z)({},a.attrs),{},{draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:a.attrs.tabindex}),a.directives.push({name:"show",value:this.active}),a=this.setBackgroundColor(this.color,a);var s=this.textColor||this.outlined&&this.color;return t(n,this.setTextColor(s,a),e)}})},1418:function(t,e,i){"use strict";i.d(e,{Z:function(){return a}});var n=i(4367),r=i(8085),a=r.Z.extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render:function(t){var e;return this.$attrs.role&&"separator"!==this.$attrs.role||(e=this.vertical?"vertical":"horizontal"),t("hr",{class:(0,n.Z)({"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical},this.themeClasses),attrs:(0,n.Z)({role:"separator","aria-orientation":e},this.$attrs),on:this.$listeners})}})},2102:function(t,e,i){"use strict";var n=i(3796),r=i(4367),a=(i(1539),i(9653),i(7941),i(4916),i(5306),i(1532),i(8783),i(3948),i(6699),i(4747),i(6755),i(7273),i(144)),s=i(6290),o=i(4589),l=["sm","md","lg","xl"],c=function(){return l.reduce((function(t,e){return t[e]={type:[Boolean,String,Number],default:!1},t}),{})}(),h=function(){return l.reduce((function(t,e){return t["offset"+(0,o.jC)(e)]={type:[String,Number],default:null},t}),{})}(),u=function(){return l.reduce((function(t,e){return t["order"+(0,o.jC)(e)]={type:[String,Number],default:null},t}),{})}(),d={col:Object.keys(c),offset:Object.keys(h),order:Object.keys(u)};function f(t,e,i){var n=t;if(null!=i&&!1!==i){if(e){var r=e.replace(t,"");n+="-".concat(r)}return"col"!==t||""!==i&&!0!==i?(n+="-".concat(i),n.toLowerCase()):n.toLowerCase()}}var p=new Map;e["Z"]=a.Z.extend({name:"v-col",functional:!0,props:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({cols:{type:[Boolean,String,Number],default:!1}},c),{},{offset:{type:[String,Number],default:null}},h),{},{order:{type:[String,Number],default:null}},u),{},{alignSelf:{type:String,default:null,validator:function(t){return["auto","start","end","center","baseline","stretch"].includes(t)}},tag:{type:String,default:"div"}}),render:function(t,e){var i=e.props,r=e.data,a=e.children,o=(e.parent,"");for(var l in i)o+=String(i[l]);var c=p.get(o);return c||function(){var t,e;for(e in c=[],d)d[e].forEach((function(t){var n=i[t],r=f(e,t,n);r&&c.push(r)}));var r=c.some((function(t){return t.startsWith("col-")}));c.push((t={col:!r||!i.cols},(0,n.Z)(t,"col-".concat(i.cols),i.cols),(0,n.Z)(t,"offset-".concat(i.offset),i.offset),(0,n.Z)(t,"order-".concat(i.order),i.order),(0,n.Z)(t,"align-self-".concat(i.alignSelf),i.alignSelf),t)),p.set(o,c)}(),t(i.tag,(0,s.ZP)(r,{class:c}),a)}})},9846:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});i(7327),i(1539),i(7941),i(6755),i(2222),i(8582),i(7273),i(3210),i(9600);var n=i(144);function r(t){return n.Z.extend({name:"v-".concat(t),functional:!0,props:{id:String,tag:{type:String,default:"div"}},render:function(e,i){var n=i.props,r=i.data,a=i.children;r.staticClass="".concat(t," ").concat(r.staticClass||"").trim();var s=r.attrs;if(s){r.attrs={};var o=Object.keys(s).filter((function(t){if("slot"===t)return!1;var e=s[t];return t.startsWith("data-")?(r.attrs[t]=e,!1):e||"string"===typeof e}));o.length&&(r.staticClass+=" ".concat(o.join(" ")))}return n.id&&(r.domProps=r.domProps||{},r.domProps.id=n.id),e(n.tag,r,a)}})}var a=i(6290),s=r("container").extend({name:"v-container",functional:!0,props:{id:String,tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},render:function(t,e){var i,n=e.props,r=e.data,s=e.children,o=r.attrs;return o&&(r.attrs={},i=Object.keys(o).filter((function(t){if("slot"===t)return!1;var e=o[t];return t.startsWith("data-")?(r.attrs[t]=e,!1):e||"string"===typeof e}))),n.id&&(r.domProps=r.domProps||{},r.domProps.id=n.id),t(n.tag,(0,a.ZP)(r,{staticClass:"container",class:Array({"container--fluid":n.fluid}).concat(i||[])}),s)}})},2877:function(t,e,i){"use strict";var n=i(3796),r=i(4367),a=(i(1539),i(6699),i(2023),i(2222),i(7941),i(4916),i(5306),i(1532),i(8783),i(3948),i(4747),i(7273),i(144)),s=i(6290),o=i(4589),l=["sm","md","lg","xl"],c=["start","end","center"];function h(t,e){return l.reduce((function(i,n){return i[t+(0,o.jC)(n)]=e(),i}),{})}var u=function(t){return[].concat(c,["baseline","stretch"]).includes(t)},d=h("align",(function(){return{type:String,default:null,validator:u}})),f=function(t){return[].concat(c,["space-between","space-around"]).includes(t)},p=h("justify",(function(){return{type:String,default:null,validator:f}})),g=function(t){return[].concat(c,["space-between","space-around","stretch"]).includes(t)},v=h("alignContent",(function(){return{type:String,default:null,validator:g}})),m={align:Object.keys(d),justify:Object.keys(p),alignContent:Object.keys(v)},x={align:"align",justify:"justify",alignContent:"align-content"};function b(t,e,i){var n=x[t];if(null!=i){if(e){var r=e.replace(t,"");n+="-".concat(r)}return n+="-".concat(i),n.toLowerCase()}}var y=new Map;e["Z"]=a.Z.extend({name:"v-row",functional:!0,props:(0,r.Z)((0,r.Z)((0,r.Z)({tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:u}},d),{},{justify:{type:String,default:null,validator:f}},p),{},{alignContent:{type:String,default:null,validator:g}},v),render:function(t,e){var i=e.props,r=e.data,a=e.children,o="";for(var l in i)o+=String(i[l]);var c=y.get(o);return c||function(){var t,e;for(e in c=[],m)m[e].forEach((function(t){var n=i[t],r=b(e,t,n);r&&c.push(r)}));c.push((t={"no-gutters":i.noGutters,"row--dense":i.dense},(0,n.Z)(t,"align-".concat(i.align),i.align),(0,n.Z)(t,"justify-".concat(i.justify),i.justify),(0,n.Z)(t,"align-content-".concat(i.alignContent),i.alignContent),t)),y.set(o,c)}(),t(i.tag,(0,s.ZP)(r,{staticClass:"row",class:c}),a)}})},9762:function(t,e,i){"use strict";i(8582);var n=i(4589);e["Z"]=(0,n.Ji)("spacer","div","v-spacer")},6428:function(t,e,i){"use strict";i.d(e,{Z:function(){return g}});var n,r=i(4367),a=(i(7268),i(1539),i(6699),i(2023),i(4916),i(7601),i(9653),i(3210),i(9826),i(7042),i(6210)),s=i(6952),o=i(9131),l=i(8085),c=i(4589),h=i(144),u=i(3325);function d(t){return["fas","far","fal","fab","fad","fak"].some((function(e){return t.includes(e)}))}function f(t){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4}(function(t){t["xSmall"]="12px",t["small"]="16px",t["default"]="24px",t["medium"]="28px",t["large"]="36px",t["xLarge"]="40px"})(n||(n={}));var p=(0,u.Z)(a.Z,s.Z,o.Z,l.Z).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium:function(){return!1},hasClickListener:function(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon:function(){var t="";return this.$slots.default&&(t=this.$slots.default[0].text.trim()),(0,c.RB)(this,t)},getSize:function(){var t={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},e=(0,c.XP)(t).find((function(e){return t[e]}));return e&&n[e]||(0,c.kb)(this.size)},getDefaultData:function(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:(0,r.Z)({"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0},this.attrs$),on:this.listeners$}},getSvgWrapperData:function(){var t=this.getSize(),e=(0,r.Z)((0,r.Z)({},this.getDefaultData()),{},{style:t?{fontSize:t,height:t,width:t}:void 0});return this.applyColors(e),e},applyColors:function(t){t.class=(0,r.Z)((0,r.Z)({},t.class),this.themeClasses),this.setTextColor(this.color,t)},renderFontIcon:function(t,e){var i=[],n=this.getDefaultData(),r="material-icons",a=t.indexOf("-"),s=a<=-1;s?i.push(t):(r=t.slice(0,a),d(r)&&(r="")),n.class[r]=!0,n.class[t]=!s;var o=this.getSize();return o&&(n.style={fontSize:o}),this.applyColors(n),e(this.hasClickListener?"button":this.tag,n,i)},renderSvgIcon:function(t,e){var i={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},n=this.getSize();return n&&(i.style={fontSize:n,height:n,width:n}),e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e("svg",i,[e("path",{attrs:{d:t}})])])},renderSvgIconComponent:function(t,e){var i={class:{"v-icon__component":!0}},n=this.getSize();n&&(i.style={fontSize:n,height:n,width:n}),this.applyColors(i);var r=t.component;return i.props=t.props,i.nativeOn=i.on,e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e(r,i)])}},render:function(t){var e=this.getIcon();return"string"===typeof e?f(e)?this.renderSvgIcon(e,t):this.renderFontIcon(e,t):this.renderSvgIconComponent(e,t)}}),g=h.Z.extend({name:"v-icon",$_wrapperFor:p,functional:!0,render:function(t,e){var i=e.data,n=e.children,r="";return i.domProps&&(r=i.domProps.textContent||i.domProps.innerHTML||r,delete i.domProps.textContent,delete i.domProps.innerHTML),t(p,i,r?[r]:n)}})},172:function(t,e,i){"use strict";var n=i(6428);e["Z"]=n.Z},7047:function(t,e,i){"use strict";i.d(e,{Z:function(){return f}});var n=i(9726),r=(i(9653),i(9600),i(7852),i(6755),i(8083)),a=i(2529),s=i(3325),o=(0,s.Z)(a.Z).extend({name:"v-responsive",props:{aspectRatio:[String,Number],contentClass:String},computed:{computedAspectRatio:function(){return Number(this.aspectRatio)},aspectStyle:function(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer:function(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent:function(){return this.$createElement("div",{staticClass:"v-responsive__content",class:this.contentClass},this.$slots.default)}},render:function(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),l=o,c=i(8085),h=i(6290),u=i(1824),d="undefined"!==typeof window&&"IntersectionObserver"in window,f=(0,s.Z)(l,c.Z).extend({name:"v-img",directives:{intersect:r.Z},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:function(){return{root:void 0,rootMargin:void 0,threshold:void 0}}},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data:function(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio:function(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc:function(){return this.src&&"object"===(0,n.Z)(this.src)?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage:function(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];var t=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push("linear-gradient(".concat(this.gradient,")")),e&&t.push('url("'.concat(e,'")'));var i=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[i]):i}},watch:{src:function(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted:function(){this.init()},methods:{init:function(t,e,i){if(!d||i||this.eager){if(this.normalisedSrc.lazySrc){var n=new Image;n.src=this.normalisedSrc.lazySrc,this.pollForSize(n,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad:function(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src),this.image&&(this.normalisedSrc.src.endsWith(".svg")||this.normalisedSrc.src.startsWith("data:image/svg+xml"))&&(this.image.naturalHeight&&this.image.naturalWidth?(this.naturalWidth=this.image.naturalWidth,this.calculatedAspectRatio=this.image.naturalWidth/this.image.naturalHeight):this.calculatedAspectRatio=1)},onError:function(){this.hasError=!0,this.$emit("error",this.src)},getSrc:function(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage:function(){var t=this,e=new Image;this.image=e,e.onload=function(){e.decode?e.decode().catch((function(e){(0,u.Kd)("Failed to decode image, trying to render anyway\n\n"+"src: ".concat(t.normalisedSrc.src)+(e.message?"\nOriginal error: ".concat(e.message):""),t)})).then(t.onLoad):t.onLoad()},e.onerror=this.onError,this.hasError=!1,this.sizes&&(e.sizes=this.sizes),this.normalisedSrc.srcset&&(e.srcset=this.normalisedSrc.srcset),e.src=this.normalisedSrc.src,this.$emit("loadstart",this.normalisedSrc.src),this.aspectRatio||this.pollForSize(e),this.getSrc()},pollForSize:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=function n(){var r=t.naturalHeight,a=t.naturalWidth;r||a?(e.naturalWidth=a,e.calculatedAspectRatio=a/r):t.complete||!e.isLoading||e.hasError||null==i||setTimeout(n,i)};n()},genContent:function(){var t=l.options.methods.genContent.call(this);return this.naturalWidth&&this._b(t.data,"div",{style:{width:"".concat(this.naturalWidth,"px")}}),t},__genPlaceholder:function(){if(this.$slots.placeholder){var t=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},this.$slots.placeholder)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},t):t[0]}}},render:function(t){var e=l.options.render.call(this,t),i=(0,h.ZP)(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:d?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(e.tag,i,e.children)}})},6816:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(2032),r=i(4367),a=(i(4944),i(3792),i(4553),i(561),i(3385)),s=a.Z.extend().extend({name:"v-list",provide:function(){return{isInList:!0,list:this}},inject:{isInMenu:{default:!1},isInNav:{default:!1}},props:{dense:Boolean,disabled:Boolean,expand:Boolean,flat:Boolean,nav:Boolean,rounded:Boolean,subheader:Boolean,threeLine:Boolean,twoLine:Boolean},data:function(){return{groups:[]}},computed:{classes:function(){return(0,r.Z)((0,r.Z)({},a.Z.options.computed.classes.call(this)),{},{"v-list--dense":this.dense,"v-list--disabled":this.disabled,"v-list--flat":this.flat,"v-list--nav":this.nav,"v-list--rounded":this.rounded,"v-list--subheader":this.subheader,"v-list--two-line":this.twoLine,"v-list--three-line":this.threeLine})}},methods:{register:function(t){this.groups.push(t)},unregister:function(t){var e=this.groups.findIndex((function(e){return e._uid===t._uid}));e>-1&&this.groups.splice(e,1)},listClick:function(t){if(!this.expand){var e,i=(0,n.Z)(this.groups);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.toggle(t)}}catch(a){i.e(a)}finally{i.f()}}}},render:function(t){var e={staticClass:"v-list",class:this.classes,style:this.styles,attrs:(0,r.Z)({role:this.isInNav||this.isInMenu?void 0:"list"},this.attrs$)};return t(this.tag,this.setBackgroundColor(this.color,e),[this.$slots.default])}})},9443:function(t,e,i){"use strict";i.d(e,{Z:function(){return x}});var n=i(4367),r=i(3796),a=(i(4603),i(8450),i(4916),i(8386),i(9714),i(4723),i(172)),s=i(7620),o=i(459),l=i(6210),c=i(8625),h=i(6952),u=i(2936),d=i(6257),f=i(6286),p=i(5827),g=i(3325),v=i(4589),m=(0,g.Z)(l.Z,c.Z,h.Z,(0,d.f)("list"),u.Z),x=m.extend().extend({name:"v-list-group",directives:{ripple:f.Z},props:{activeClass:{type:String,default:""},appendIcon:{type:String,default:"$expand"},color:{type:String,default:"primary"},disabled:Boolean,group:[String,RegExp],noAction:Boolean,prependIcon:String,ripple:{type:[Boolean,Object],default:!0},subGroup:Boolean},computed:{classes:function(){return{"v-list-group--active":this.isActive,"v-list-group--disabled":this.disabled,"v-list-group--no-action":this.noAction,"v-list-group--sub-group":this.subGroup}}},watch:{isActive:function(t){!this.subGroup&&t&&this.list&&this.list.listClick(this._uid)},$route:"onRouteChange"},created:function(){this.list&&this.list.register(this),this.group&&this.$route&&null==this.value&&(this.isActive=this.matchRoute(this.$route.path))},beforeDestroy:function(){this.list&&this.list.unregister(this)},methods:{click:function(t){var e=this;this.disabled||(this.isBooted=!0,this.$emit("click",t),this.$nextTick((function(){return e.isActive=!e.isActive})))},genIcon:function(t){return this.$createElement(a.Z,t)},genAppendIcon:function(){var t=!this.subGroup&&this.appendIcon;return t||this.$slots.appendIcon?this.$createElement(o.Z,{staticClass:"v-list-group__header__append-icon"},[this.$slots.appendIcon||this.genIcon(t)]):null},genHeader:function(){return this.$createElement(s.Z,{staticClass:"v-list-group__header",attrs:{"aria-expanded":String(this.isActive),role:"button"},class:(0,r.Z)({},this.activeClass,this.isActive),props:{inputValue:this.isActive},directives:[{name:"ripple",value:this.ripple}],on:(0,n.Z)((0,n.Z)({},this.listeners$),{},{click:this.click})},[this.genPrependIcon(),this.$slots.activator,this.genAppendIcon()])},genItems:function(){var t=this;return this.showLazyContent((function(){return[t.$createElement("div",{staticClass:"v-list-group__items",directives:[{name:"show",value:t.isActive}]},(0,v.z9)(t))]}))},genPrependIcon:function(){var t=this.subGroup&&null==this.prependIcon?"$subgroup":this.prependIcon;return t||this.$slots.prependIcon?this.$createElement(o.Z,{staticClass:"v-list-group__header__prepend-icon"},[this.$slots.prependIcon||this.genIcon(t)]):null},onRouteChange:function(t){if(this.group){var e=this.matchRoute(t.path);e&&this.isActive!==e&&this.list&&this.list.listClick(this._uid),this.isActive=e}},toggle:function(t){var e=this,i=this._uid===t;i&&(this.isBooted=!0),this.$nextTick((function(){return e.isActive=i}))},matchRoute:function(t){return null!==t.match(this.group)}},render:function(t){return t("div",this.setTextColor(this.isActive&&this.color,{staticClass:"v-list-group",class:this.classes}),[this.genHeader(),t(p.Fx,this.genItems())])}})},7620:function(t,e,i){"use strict";i.d(e,{Z:function(){return p}});var n=i(4367),r=i(6952),a=i(6505),s=i(7352),o=i(8085),l=i(2936),c=i(6286),h=i(4589),u=i(1824),d=i(3325),f=(0,d.Z)(r.Z,a.Z,o.Z,(0,s.d)("listItemGroup"),(0,l.d)("inputValue")),p=f.extend().extend({name:"v-list-item",directives:{Ripple:c.Z},inject:{isInGroup:{default:!1},isInList:{default:!1},isInMenu:{default:!1},isInNav:{default:!1}},inheritAttrs:!1,props:{activeClass:{type:String,default:function(){return this.listItemGroup?this.listItemGroup.activeClass:""}},dense:Boolean,inactive:Boolean,link:Boolean,selectable:{type:Boolean},tag:{type:String,default:"div"},threeLine:Boolean,twoLine:Boolean,value:null},data:function(){return{proxyClass:"v-list-item--active"}},computed:{classes:function(){return(0,n.Z)((0,n.Z)({"v-list-item":!0},a.Z.options.computed.classes.call(this)),{},{"v-list-item--dense":this.dense,"v-list-item--disabled":this.disabled,"v-list-item--link":this.isClickable&&!this.inactive,"v-list-item--selectable":this.selectable,"v-list-item--three-line":this.threeLine,"v-list-item--two-line":this.twoLine},this.themeClasses)},isClickable:function(){return Boolean(a.Z.options.computed.isClickable.call(this)||this.listItemGroup)}},created:function(){this.$attrs.hasOwnProperty("avatar")&&(0,u.Jk)("avatar",this)},methods:{click:function(t){t.detail&&this.$el.blur(),this.$emit("click",t),this.to||this.toggle()},genAttrs:function(){var t=(0,n.Z)({"aria-disabled":!!this.disabled||void 0,tabindex:this.isClickable&&!this.disabled?0:-1},this.$attrs);return this.$attrs.hasOwnProperty("role")||this.isInNav||(this.isInGroup?(t.role="option",t["aria-selected"]=String(this.isActive)):this.isInMenu?(t.role=this.isClickable?"menuitem":void 0,t.id=t.id||"list-item-".concat(this._uid)):this.isInList&&(t.role="listitem")),t},toggle:function(){this.to&&void 0===this.inputValue&&(this.isActive=!this.isActive),this.$emit("change")}},render:function(t){var e=this,i=this.generateRouteLink(),r=i.tag,a=i.data;a.attrs=(0,n.Z)((0,n.Z)({},a.attrs),this.genAttrs()),a[this.to?"nativeOn":"on"]=(0,n.Z)((0,n.Z)({},a[this.to?"nativeOn":"on"]),{},{keydown:function(t){t.keyCode===h.Do.enter&&e.click(t),e.$emit("keydown",t)}}),this.inactive&&(r="div"),this.inactive&&this.to&&(a.on=a.nativeOn,delete a.nativeOn);var s=this.$scopedSlots.default?this.$scopedSlots.default({active:this.isActive,toggle:this.toggle}):this.$slots.default;return t(r,this.isActive?this.setTextColor(this.color,a):a,s)}})},3099:function(t,e,i){"use strict";i(7327),i(1539);var n=i(144);e["Z"]=n.Z.extend({name:"v-list-item-action",functional:!0,render:function(t,e){var i=e.data,n=e.children,r=void 0===n?[]:n;i.staticClass=i.staticClass?"v-list-item__action ".concat(i.staticClass):"v-list-item__action";var a=r.filter((function(t){return!1===t.isComment&&" "!==t.text}));return a.length>1&&(i.staticClass+=" v-list-item__action--stack"),t("div",i,r)}})},3249:function(t,e,i){"use strict";i.d(e,{Z:function(){return u}});var n=i(4367),r=(i(9653),i(7327),i(1539),i(561),i(4747),i(7042),i(9826),i(4553),i(4419)),a=i(1431),s=i(8085),o=i(3325),l=i(1824),c=(0,o.Z)(r.Z,a.Z,s.Z).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean,tag:{type:String,default:"div"}},data:function(){return{internalLazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes:function(){return(0,n.Z)({"v-item-group":!0},this.themeClasses)},selectedIndex:function(){return this.selectedItem&&this.items.indexOf(this.selectedItem)||-1},selectedItem:function(){if(!this.multiple)return this.selectedItems[0]},selectedItems:function(){var t=this;return this.items.filter((function(e,i){return t.toggleMethod(t.getValue(e,i))}))},selectedValues:function(){return null==this.internalValue?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod:function(){var t=this;if(!this.multiple)return function(e){return t.valueComparator(t.internalValue,e)};var e=this.internalValue;return Array.isArray(e)?function(i){return e.some((function(e){return t.valueComparator(e,i)}))}:function(){return!1}}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created:function(){this.multiple&&!Array.isArray(this.internalValue)&&(0,l.Kd)("Model must be bound to an array if the multiple property is true.",this)},methods:{genData:function(){return{class:this.classes}},getValue:function(t,e){return void 0===t.value?e:t.value},onClick:function(t){this.updateInternalValue(this.getValue(t,this.items.indexOf(t)))},register:function(t){var e=this,i=this.items.push(t)-1;t.$on("change",(function(){return e.onClick(t)})),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(t,i)},unregister:function(t){if(!this._isDestroyed){var e=this.items.indexOf(t),i=this.getValue(t,e);this.items.splice(e,1);var n=this.selectedValues.indexOf(i);if(!(n<0)){if(!this.mandatory)return this.updateInternalValue(i);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter((function(t){return t!==i})):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}}},updateItem:function(t,e){var i=this.getValue(t,e);t.isActive=this.toggleMethod(i)},updateItemsState:function(){var t=this;this.$nextTick((function(){if(t.mandatory&&!t.selectedItems.length)return t.updateMandatory();t.items.forEach(t.updateItem)}))},updateInternalValue:function(t){this.multiple?this.updateMultiple(t):this.updateSingle(t)},updateMandatory:function(t){if(this.items.length){var e=this.items.slice();t&&e.reverse();var i=e.find((function(t){return!t.disabled}));if(i){var n=this.items.indexOf(i);this.updateInternalValue(this.getValue(i,n))}}},updateMultiple:function(t){var e=Array.isArray(this.internalValue)?this.internalValue:[],i=e.slice(),n=i.findIndex((function(e){return e===t}));this.mandatory&&n>-1&&i.length-1<1||null!=this.max&&n<0&&i.length+1>this.max||(n>-1?i.splice(n,1):i.push(t),this.internalValue=i)},updateSingle:function(t){var e=t===this.internalValue;this.mandatory&&e||(this.internalValue=e?void 0:t)}},render:function(t){return t(this.tag,this.genData(),this.$slots.default)}}),h=(c.extend({name:"v-item-group",provide:function(){return{itemGroup:this}}}),i(6952)),u=(0,o.Z)(c,h.Z).extend({name:"v-list-item-group",provide:function(){return{isInGroup:!0,listItemGroup:this}},computed:{classes:function(){return(0,n.Z)((0,n.Z)({},c.options.computed.classes.call(this)),{},{"v-list-item-group":!0})}},methods:{genData:function(){return this.setTextColor(this.color,(0,n.Z)((0,n.Z)({},c.options.methods.genData.call(this)),{},{attrs:{role:"listbox"}}))}}})},459:function(t,e,i){"use strict";i(3210);var n=i(144);e["Z"]=n.Z.extend({name:"v-list-item-icon",functional:!0,render:function(t,e){var i=e.data,n=e.children;return i.staticClass="v-list-item__icon ".concat(i.staticClass||"").trim(),t("div",i,n)}})},1960:function(t,e,i){"use strict";i.d(e,{km:function(){return b},oZ:function(){return w},V9:function(){return y}});var n=i(4589),r=i(6816),a=i(9443),s=i(7620),o=i(3249),l=i(3099),c=i(4367),h=(i(9653),i(6952)),u=i(2529),d=i(3712),f=i(3325),p=(0,f.Z)(h.Z,u.Z,d.Z).extend({name:"v-avatar",props:{left:Boolean,right:Boolean,size:{type:[Number,String],default:48}},computed:{classes:function(){return(0,c.Z)({"v-avatar--left":this.left,"v-avatar--right":this.right},this.roundedClasses)},styles:function(){return(0,c.Z)({height:(0,n.kb)(this.size),minWidth:(0,n.kb)(this.size),width:(0,n.kb)(this.size)},this.measurableStyles)}},render:function(t){var e={staticClass:"v-avatar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),this.$slots.default)}}),g=p,v=g.extend({name:"v-list-item-avatar",props:{horizontal:Boolean,size:{type:[Number,String],default:40}},computed:{classes:function(){return(0,c.Z)((0,c.Z)({"v-list-item__avatar--horizontal":this.horizontal},g.options.computed.classes.call(this)),{},{"v-avatar--tile":this.tile||this.horizontal})}},render:function(t){var e=g.options.render.call(this,t);return e.data=e.data||{},e.data.staticClass+=" v-list-item__avatar",e}}),m=i(459),x=(0,n.Ji)("v-list-item__action-text","span"),b=(0,n.Ji)("v-list-item__content","div"),y=(0,n.Ji)("v-list-item__title","div"),w=(0,n.Ji)("v-list-item__subtitle","div");r.Z,a.Z,s.Z,l.Z,o.Z,m.Z},7877:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var n=i(9177),r=n.Z.extend({name:"v-main",props:{tag:{type:String,default:"main"}},computed:{styles:function(){var t=this.$vuetify.application,e=t.bar,i=t.top,n=t.right,r=t.footer,a=t.insetFooter,s=t.bottom,o=t.left;return{paddingTop:"".concat(i+e,"px"),paddingRight:"".concat(n,"px"),paddingBottom:"".concat(r+a+s,"px"),paddingLeft:"".concat(o,"px")}}},render:function(t){var e={staticClass:"v-main",style:this.styles,ref:"main"};return t(this.tag,e,[t("div",{staticClass:"v-main__wrap"},this.$slots.default)])}})},5132:function(t,e,i){"use strict";i.d(e,{Z:function(){return x}});var n=i(4367),r=(i(9653),i(9253),i(2222),i(7047)),a=i(3358),s=i(6952),o=i(5907),l=i(6341),c=i(2879),h=i(9177),u=i(8085),d=i(5600),f=i(549),p=i(5500),g=i(4589),v=i(3325),m=(0,v.Z)((0,a.Z)("left",["isActive","isMobile","miniVariant","expandOnHover","permanent","right","temporary","width"]),s.Z,o.Z,l.Z,c.Z,h.Z,u.Z),x=m.extend({name:"v-navigation-drawer",directives:{ClickOutside:d.Z,Resize:f.Z,Touch:p.Z},provide:function(){return{isInNav:"nav"===this.tag}},props:{bottom:Boolean,clipped:Boolean,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,height:{type:[Number,String],default:function(){return this.app?"100vh":"100%"}},miniVariant:Boolean,miniVariantWidth:{type:[Number,String],default:56},permanent:Boolean,right:Boolean,src:{type:[String,Object],default:""},stateless:Boolean,tag:{type:String,default:function(){return this.app?"nav":"aside"}},temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},value:null},data:function(){return{isMouseover:!1,touchArea:{left:0,right:0},stackMinZIndex:6}},computed:{applicationProperty:function(){return this.right?"right":"left"},classes:function(){return(0,n.Z)({"v-navigation-drawer":!0,"v-navigation-drawer--absolute":this.absolute,"v-navigation-drawer--bottom":this.bottom,"v-navigation-drawer--clipped":this.clipped,"v-navigation-drawer--close":!this.isActive,"v-navigation-drawer--fixed":!this.absolute&&(this.app||this.fixed),"v-navigation-drawer--floating":this.floating,"v-navigation-drawer--is-mobile":this.isMobile,"v-navigation-drawer--is-mouseover":this.isMouseover,"v-navigation-drawer--mini-variant":this.isMiniVariant,"v-navigation-drawer--custom-mini-variant":56!==Number(this.miniVariantWidth),"v-navigation-drawer--open":this.isActive,"v-navigation-drawer--open-on-hover":this.expandOnHover,"v-navigation-drawer--right":this.right,"v-navigation-drawer--temporary":this.temporary},this.themeClasses)},computedMaxHeight:function(){if(!this.hasApp)return null;var t=this.$vuetify.application.bottom+this.$vuetify.application.footer+this.$vuetify.application.bar;return this.clipped?t+this.$vuetify.application.top:t},computedTop:function(){if(!this.hasApp)return 0;var t=this.$vuetify.application.bar;return t+=this.clipped?this.$vuetify.application.top:0,t},computedTransform:function(){return this.isActive?0:this.isBottom||this.right?100:-100},computedWidth:function(){return this.isMiniVariant?this.miniVariantWidth:this.width},hasApp:function(){return this.app&&!this.isMobile&&!this.temporary},isBottom:function(){return this.bottom&&this.isMobile},isMiniVariant:function(){return!this.expandOnHover&&this.miniVariant||this.expandOnHover&&!this.isMouseover},isMobile:function(){return!this.stateless&&!this.permanent&&l.Z.options.computed.isMobile.call(this)},reactsToClick:function(){return!this.stateless&&!this.permanent&&(this.isMobile||this.temporary)},reactsToMobile:function(){return this.app&&!this.disableResizeWatcher&&!this.permanent&&!this.stateless&&!this.temporary},reactsToResize:function(){return!this.disableResizeWatcher&&!this.stateless},reactsToRoute:function(){return!this.disableRouteWatcher&&!this.stateless&&(this.temporary||this.isMobile)},showOverlay:function(){return!this.hideOverlay&&this.isActive&&(this.isMobile||this.temporary)},styles:function(){var t=this.isBottom?"translateY":"translateX";return{height:(0,g.kb)(this.height),top:this.isBottom?"auto":(0,g.kb)(this.computedTop),maxHeight:null!=this.computedMaxHeight?"calc(100% - ".concat((0,g.kb)(this.computedMaxHeight),")"):void 0,transform:"".concat(t,"(").concat((0,g.kb)(this.computedTransform,"%"),")"),width:(0,g.kb)(this.computedWidth)}}},watch:{$route:"onRouteChange",isActive:function(t){this.$emit("input",t)},isMobile:function(t,e){!t&&this.isActive&&!this.temporary&&this.removeOverlay(),null!=e&&this.reactsToResize&&this.reactsToMobile&&(this.isActive=!t)},permanent:function(t){t&&(this.isActive=!0)},showOverlay:function(t){t?this.genOverlay():this.removeOverlay()},value:function(t){this.permanent||(null!=t?t!==this.isActive&&(this.isActive=t):this.init())},expandOnHover:"updateMiniVariant",isMouseover:function(t){this.updateMiniVariant(!t)}},beforeMount:function(){this.init()},methods:{calculateTouchArea:function(){var t=this.$el.parentNode;if(t){var e=t.getBoundingClientRect();this.touchArea={left:e.left+50,right:e.right-50}}},closeConditional:function(){return this.isActive&&!this._isDestroyed&&this.reactsToClick},genAppend:function(){return this.genPosition("append")},genBackground:function(){var t={height:"100%",width:"100%",src:this.src},e=this.$scopedSlots.img?this.$scopedSlots.img(t):this.$createElement(r.Z,{props:t});return this.$createElement("div",{staticClass:"v-navigation-drawer__image"},[e])},genDirectives:function(){var t=this,e=[{name:"click-outside",value:{handler:function(){t.isActive=!1},closeConditional:this.closeConditional,include:this.getOpenDependentElements}}];return this.touchless||this.stateless||e.push({name:"touch",value:{parent:!0,left:this.swipeLeft,right:this.swipeRight}}),e},genListeners:function(){var t=this,e={mouseenter:function(){return t.isMouseover=!0},mouseleave:function(){return t.isMouseover=!1},transitionend:function(e){if(e.target===e.currentTarget){t.$emit("transitionend",e);var i=document.createEvent("UIEvents");i.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(i)}}};return this.miniVariant&&(e.click=function(){return t.$emit("update:mini-variant",!1)}),e},genPosition:function(t){var e=(0,g.z9)(this,t);return e?this.$createElement("div",{staticClass:"v-navigation-drawer__".concat(t)},e):e},genPrepend:function(){return this.genPosition("prepend")},genContent:function(){return this.$createElement("div",{staticClass:"v-navigation-drawer__content"},this.$slots.default)},genBorder:function(){return this.$createElement("div",{staticClass:"v-navigation-drawer__border"})},init:function(){this.permanent?this.isActive=!0:this.stateless||null!=this.value?this.isActive=this.value:this.temporary||(this.isActive=!this.isMobile)},onRouteChange:function(){this.reactsToRoute&&this.closeConditional()&&(this.isActive=!1)},swipeLeft:function(t){this.isActive&&this.right||(this.calculateTouchArea(),Math.abs(t.touchendX-t.touchstartX)<100||(this.right&&t.touchstartX>=this.touchArea.right?this.isActive=!0:!this.right&&this.isActive&&(this.isActive=!1)))},swipeRight:function(t){this.isActive&&!this.right||(this.calculateTouchArea(),Math.abs(t.touchendX-t.touchstartX)<100||(!this.right&&t.touchstartX<=this.touchArea.left?this.isActive=!0:this.right&&this.isActive&&(this.isActive=!1)))},updateApplication:function(){if(!this.isActive||this.isMobile||this.temporary||!this.$el)return 0;var t=Number(this.miniVariant?this.miniVariantWidth:this.width);return isNaN(t)?this.$el.clientWidth:t},updateMiniVariant:function(t){this.expandOnHover&&this.miniVariant!==t&&this.$emit("update:mini-variant",t)}},render:function(t){var e=[this.genPrepend(),this.genContent(),this.genAppend(),this.genBorder()];return(this.src||(0,g.z9)(this,"img"))&&e.unshift(this.genBackground()),t(this.tag,this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,directives:this.genDirectives(),on:this.genListeners()}),e)}})},1058:function(t,e,i){"use strict";i.d(e,{Z:function(){return l}});var n=i(4367),r=(i(9653),i(6952)),a=i(8085),s=i(2936),o=i(3325),l=(0,o.Z)(r.Z,a.Z,s.Z).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim:function(){var t=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",t)},classes:function(){return(0,n.Z)({"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive},this.themeClasses)},computedOpacity:function(){return Number(this.isActive?this.opacity:0)},styles:function(){return{zIndex:this.zIndex}}},methods:{genContent:function(){return this.$createElement("div",{staticClass:"v-overlay__content"},this.$slots.default)}},render:function(t){var e=[this.__scrim];return this.isActive&&e.push(this.genContent()),t("div",{staticClass:"v-overlay",on:this.$listeners,class:this.classes,style:this.styles},e)}})},624:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});i(9653),i(2222);var n=i(8083),r=i(6952),a=i(4589),s=r.Z.extend({name:"v-progress-circular",directives:{intersect:n.Z},props:{button:Boolean,indeterminate:Boolean,rotate:{type:[Number,String],default:0},size:{type:[Number,String],default:32},width:{type:[Number,String],default:4},value:{type:[Number,String],default:0}},data:function(){return{radius:20,isVisible:!0}},computed:{calculatedSize:function(){return Number(this.size)+(this.button?8:0)},circumference:function(){return 2*Math.PI*this.radius},classes:function(){return{"v-progress-circular--visible":this.isVisible,"v-progress-circular--indeterminate":this.indeterminate,"v-progress-circular--button":this.button}},normalizedValue:function(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},strokeDashArray:function(){return Math.round(1e3*this.circumference)/1e3},strokeDashOffset:function(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth:function(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles:function(){return{height:(0,a.kb)(this.calculatedSize),width:(0,a.kb)(this.calculatedSize)}},svgStyles:function(){return{transform:"rotate(".concat(Number(this.rotate),"deg)")}},viewBoxSize:function(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle:function(t,e){return this.$createElement("circle",{class:"v-progress-circular__".concat(t),attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":e}})},genSvg:function(){var t=[this.indeterminate||this.genCircle("underlay",0),this.genCircle("overlay",this.strokeDashOffset)];return this.$createElement("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"".concat(this.viewBoxSize," ").concat(this.viewBoxSize," ").concat(2*this.viewBoxSize," ").concat(2*this.viewBoxSize)}},t)},genInfo:function(){return this.$createElement("div",{staticClass:"v-progress-circular__info"},this.$slots.default)},onObserve:function(t,e,i){this.isVisible=i}},render:function(t){return t("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:this.styles,on:this.$listeners}),[this.genSvg(),this.genInfo()])}})},3385:function(t,e,i){"use strict";i.d(e,{Z:function(){return u}});var n=i(4367),r=i(6210),a=i(6952),s=i(3377),o=i(2529),l=i(3712),c=i(8085),h=i(3325),u=(0,h.Z)(r.Z,a.Z,s.Z,o.Z,l.Z,c.Z).extend({name:"v-sheet",props:{outlined:Boolean,shaped:Boolean,tag:{type:String,default:"div"}},computed:{classes:function(){return(0,n.Z)((0,n.Z)((0,n.Z)({"v-sheet":!0,"v-sheet--outlined":this.outlined,"v-sheet--shaped":this.shaped},this.themeClasses),this.elevationClasses),this.roundedClasses)},styles:function(){return this.measurableStyles}},render:function(t){var e={class:this.classes,style:this.styles,on:this.listeners$};return t(this.tag,this.setBackgroundColor(this.color,e),this.$slots.default)}})},5648:function(t,e,i){"use strict";var n=i(3385);e["Z"]=n.Z},9330:function(t,e,i){"use strict";i.d(e,{Z:function(){return f}});var n=i(3796),r=(i(9653),i(5795)),a=i(6952),s=i(4561),o=i(5907),l=i(5936),c=i(2936),h=i(4589),u=i(1824),d=i(3325),f=(0,d.Z)(a.Z,s.Z,o.Z,l.Z,c.Z).extend({name:"v-tooltip",props:{closeDelay:{type:[Number,String],default:0},disabled:Boolean,openDelay:{type:[Number,String],default:0},openOnHover:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!0},tag:{type:String,default:"span"},transition:String},data:function(){return{calculatedMinWidth:0,closeDependents:!1}},computed:{calculatedLeft:function(){var t=this.dimensions,e=t.activator,i=t.content,n=!this.bottom&&!this.left&&!this.top&&!this.right,r=!1!==this.attach?e.offsetLeft:e.left,a=0;return this.top||this.bottom||n?a=r+e.width/2-i.width/2:(this.left||this.right)&&(a=r+(this.right?e.width:-i.width)+(this.right?10:-10)),this.nudgeLeft&&(a-=parseInt(this.nudgeLeft)),this.nudgeRight&&(a+=parseInt(this.nudgeRight)),"".concat(this.calcXOverflow(a,this.dimensions.content.width),"px")},calculatedTop:function(){var t=this.dimensions,e=t.activator,i=t.content,n=!1!==this.attach?e.offsetTop:e.top,r=0;return this.top||this.bottom?r=n+(this.bottom?e.height:-i.height)+(this.bottom?10:-10):(this.left||this.right)&&(r=n+e.height/2-i.height/2),this.nudgeTop&&(r-=parseInt(this.nudgeTop)),this.nudgeBottom&&(r+=parseInt(this.nudgeBottom)),!1===this.attach&&(r+=this.pageYOffset),"".concat(this.calcYOverflow(r),"px")},classes:function(){return{"v-tooltip--top":this.top,"v-tooltip--right":this.right,"v-tooltip--bottom":this.bottom,"v-tooltip--left":this.left,"v-tooltip--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},computedTransition:function(){return this.transition?this.transition:this.isActive?"scale-transition":"fade-transition"},offsetY:function(){return this.top||this.bottom},offsetX:function(){return this.left||this.right},styles:function(){return{left:this.calculatedLeft,maxWidth:(0,h.kb)(this.maxWidth),minWidth:(0,h.kb)(this.minWidth),top:this.calculatedTop,zIndex:this.zIndex||this.activeZIndex}}},beforeMount:function(){var t=this;this.$nextTick((function(){t.value&&t.callActivate()}))},mounted:function(){"v-slot"===(0,h.sp)(this,"activator",!0)&&(0,u.N6)("v-tooltip's activator slot must be bound, try '