diff --git a/public/CHANGELOG.md b/public/CHANGELOG.md
index 842a0ff..2c77b6e 100644
--- a/public/CHANGELOG.md
+++ b/public/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v4.3.0 (09.06.2024)
+## Panel
+- optimization of show/hide mainlevels
+## Settings
+- optimization of navigation settings
+- bugfix for iframes
# v4.2.0 (28.05.2024)
## Panel Colorpicker
- handling for hue values implemented
diff --git a/src/components/PanelCard.vue b/src/components/PanelCard.vue
index 77e8b81..f10ea0f 100644
--- a/src/components/PanelCard.vue
+++ b/src/components/PanelCard.vue
@@ -1,5 +1,5 @@
@@ -202,13 +224,13 @@
-
+
-
+
{{ item.panel.internals }}
diff --git a/src/components/SettingsGeneral.vue b/src/components/SettingsGeneral.vue
index a138462..faab9d7 100644
--- a/src/components/SettingsGeneral.vue
+++ b/src/components/SettingsGeneral.vue
@@ -1,7 +1,6 @@
-
-
-
-
-
-
-
-
-
-
- {{ navSettings.route.join(' > ') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ mdi-help-circle
+
+
+
+
+
+ {{ pathText }}
+
+
+
+
+
+
+
+ mdi-drag-vertical
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ xs
+ a-z
+ __
+
+
+
+ mdi-arrow-down-right
+
+ mdi-arrow-down-right
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t(preLang + 'optionsTitle') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t(preLang + 'optionsClose') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/SettingsPropsMain.vue b/src/components/SettingsPropsMain.vue
index f10ffbe..ed8cacf 100644
--- a/src/components/SettingsPropsMain.vue
+++ b/src/components/SettingsPropsMain.vue
@@ -27,7 +27,7 @@
{ title: 'info', value: 'info' },
{ title: 'slider', value: 'slider' },
{ title: 'image', value: 'image' },
- { title: 'iframe', value: 'frame' },
+ { title: 'iframe', value: 'iframe' },
{ title: 'menu', value: 'menu' },
{ title: 'chart', value: 'chart' },
{ title: 'colorpicker', value: 'colorpicker' }
diff --git a/src/locales/de.json b/src/locales/de.json
index 993539b..f4419e4 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -48,12 +48,14 @@
"title1Placeholder": "Startseite od. %t(navHome)",
"icon": "Icon",
"iconPlaceholder": "mdi-home",
- "groupAsChips": "Kompakt",
- "groupAsChipsHint": "Kompakte Darstellung untergeordneter Navigationspunkte",
- "sort": "sortiert",
- "sortHint": "Sortiert untergeordneter Navigationspunkte aufsteigend",
- "divider": "Trennlinie",
- "dividerHint": "Trennlinie unterhalb des Navigationspunktes"
+ "optionsTitle": "Optionen",
+ "optionsClose": "Schließen",
+ "optionsChipsTitle": "Darstellung",
+ "optionsChips": "Zeigt untergeordnete Navigationspunkte in kompakter Form an",
+ "optionsSortTitle": "Sortierung",
+ "optionsSort": "Sortiert untergeordnete Navigationspunkte aufsteigend",
+ "optionsDividerTitle": "Trennlinie",
+ "optionsDivider": "Zeigt eine Trennlinie unterhalb des Navigationspunktes"
},
"props": {
"panel": "Allgemein",
diff --git a/src/locales/en.json b/src/locales/en.json
index 2d65530..070708d 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -45,15 +45,17 @@
"name": "Name",
"namePlaceholder": "home",
"title1": "Label",
- "title1Placeholder": "Homepage or %t(navHome)",
+ "title1Placeholder": "Homepage od. %t(navHome)",
"icon": "Icon",
"iconPlaceholder": "mdi-home",
- "groupAsChips": "compact",
- "groupAsChipsHint": "Compact display of subordinate navigation points",
- "sort": "sorted",
- "sortHint": "Sorts subordinate navigation points in ascending order",
- "divider": "divider",
- "dividerHint": "Divider line below the navigation point"
+ "optionsTitle": "Options",
+ "optionsClose": "Close",
+ "optionsChipsTitle": "Style",
+ "optionsChips": "Displays subordinate navigation points in compact form",
+ "optionsSortTitle": "Sorting",
+ "optionsSort": "Sorts subordinate navigation items in ascending order",
+ "optionsDividerTitle": "Divider",
+ "optionsDivider": "Shows a dividing line below the navigation point"
},
"props": {
"panel": "General",
diff --git a/www/fhemapp4/CHANGELOG.md b/www/fhemapp4/CHANGELOG.md
index 842a0ff..2c77b6e 100644
--- a/www/fhemapp4/CHANGELOG.md
+++ b/www/fhemapp4/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v4.3.0 (09.06.2024)
+## Panel
+- optimization of show/hide mainlevels
+## Settings
+- optimization of navigation settings
+- bugfix for iframes
# v4.2.0 (28.05.2024)
## Panel Colorpicker
- handling for hue values implemented
diff --git a/www/fhemapp4/assets/DevicesView-BlmvjRvv.js b/www/fhemapp4/assets/DevicesView-DubAwhHL.js
similarity index 86%
rename from www/fhemapp4/assets/DevicesView-BlmvjRvv.js
rename to www/fhemapp4/assets/DevicesView-DubAwhHL.js
index f8dd8e4..cff2adc 100644
--- a/www/fhemapp4/assets/DevicesView-BlmvjRvv.js
+++ b/www/fhemapp4/assets/DevicesView-DubAwhHL.js
@@ -1 +1 @@
-import{u as f,c,r as p,o as n,a as u,w as i,b as d,d as h,F as v,e as w}from"./index-BX4CvJnf.js";import{_ as x}from"./PanelCard-CPIZ14o_.js";const V={__name:"DevicesView",setup(g){const s=f(),m=c(()=>{let e=[];if(s.app.panelMaximized)e.push(s.app.panelMaximized);else{for(const t of s.app.panelView)s.handleDefs(s.app.panelList[t].panel.show,["show"],[!0]).show&&e.push(s.app.panelList[t]);e.sort((t,o)=>a(t)>a(o)?1:a(o)>a(t)?-1:0)}return e}),l=c(()=>{let e={cols:12,sm:6,lg:4};return/=maximized$/.test(s.app.currentView)&&(e={cols:12}),e});function a(e){return s.handleDefs(e.panel.sortby,["sortby"],[null]).sortby||"999"}return(e,t)=>{const o=p("v-col"),_=p("v-row");return n(),u(_,{"no-gutters":""},{default:i(()=>[(n(!0),d(v,null,h(m.value,r=>(n(),u(o,{cols:l.value.cols,sm:l.value.sm,lg:l.value.lg,key:r.name,class:"pa-1"},{default:i(()=>[w(x,{panel:r},null,8,["panel"])]),_:2},1032,["cols","sm","lg"]))),128))]),_:1})}}};export{V as default};
+import{u as f,c,r as p,o as n,a as u,w as i,b as d,d as h,F as v,e as w}from"./index-7YMgWPA9.js";import{_ as x}from"./PanelCard-DFfdlPLX.js";const V={__name:"DevicesView",setup(g){const s=f(),m=c(()=>{let e=[];if(s.app.panelMaximized)e.push(s.app.panelMaximized);else{for(const t of s.app.panelView)s.handleDefs(s.app.panelList[t].panel.show,["show"],[!0]).show&&e.push(s.app.panelList[t]);e.sort((t,o)=>a(t)>a(o)?1:a(o)>a(t)?-1:0)}return e}),l=c(()=>{let e={cols:12,sm:6,lg:4};return/=maximized$/.test(s.app.currentView)&&(e={cols:12}),e});function a(e){return s.handleDefs(e.panel.sortby,["sortby"],[null]).sortby||"999"}return(e,t)=>{const o=p("v-col"),_=p("v-row");return n(),u(_,{"no-gutters":""},{default:i(()=>[(n(!0),d(v,null,h(m.value,r=>(n(),u(o,{cols:l.value.cols,sm:l.value.sm,lg:l.value.lg,key:r.name,class:"pa-1"},{default:i(()=>[w(x,{panel:r},null,8,["panel"])]),_:2},1032,["cols","sm","lg"]))),128))]),_:1})}}};export{V as default};
diff --git a/www/fhemapp4/assets/InternalsView-DQxyU_d0.js b/www/fhemapp4/assets/InternalsView--SrcFFhO.js
similarity index 90%
rename from www/fhemapp4/assets/InternalsView-DQxyU_d0.js
rename to www/fhemapp4/assets/InternalsView--SrcFFhO.js
index 17c3ddd..c9dedc9 100644
--- a/www/fhemapp4/assets/InternalsView-DQxyU_d0.js
+++ b/www/fhemapp4/assets/InternalsView--SrcFFhO.js
@@ -1 +1 @@
-import{S as C,u as V}from"./index-B_bLQsGw.js";import{aQ as k,u as S,r as e,o as B,a as N,w as o,e as t,O as p,b5 as i,ar as O,be as r}from"./index-BX4CvJnf.js";const z={__name:"InternalsView",setup($){const n=k(!0),a=S(),{toClipboard:u}=V();function d(){u(JSON.stringify(n.value?a.app.config:a.app,null," "))}return(l,c)=>{const m=e("v-toolbar-title"),v=e("v-toolbar"),f=e("v-switch"),_=e("v-col"),b=e("v-btn"),g=e("v-snackbar"),h=e("v-row"),w=e("v-divider"),x=e("v-card-text"),y=e("v-card");return B(),N(y,null,{default:o(()=>[t(v,null,{default:o(()=>[t(m,null,{default:o(()=>[p(i(l.$t("_app.internals.title")),1)]),_:1})]),_:1}),t(x,null,{default:o(()=>[t(h,{"no-gutters":"",class:"align-center pb-2"},{default:o(()=>[t(_,null,{default:o(()=>[t(f,{label:l.$t("_app.internals.onlyConfig"),modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=s=>n.value=s),color:"blue",density:"comfortable","hide-details":""},null,8,["label","modelValue"])]),_:1}),t(_,{cols:"1",class:"text-right"},{default:o(()=>[t(g,{timeout:2e3,rounded:"pill"},{activator:o(({props:s})=>[t(b,O(s,{variant:"text",icon:"mdi-clipboard-multiple-outline",size:"small",onClick:d}),null,16)]),default:o(()=>[p(" "+i(l.$t("_app.messages.clipboard.text")),1)]),_:1})]),_:1})]),_:1}),t(w,{class:"pb-3"}),t(r(C),{data:n.value?r(a).app.config:r(a).app,deep:1,showLine:!1,showIcon:!0,showLength:!0},null,8,["data"])]),_:1})]),_:1})}}};export{z as default};
+import{S as C,u as V}from"./index-DGrvJ_vX.js";import{aQ as k,u as S,r as e,o as B,a as N,w as o,e as t,O as p,b5 as i,ar as O,be as r}from"./index-7YMgWPA9.js";const z={__name:"InternalsView",setup($){const n=k(!0),a=S(),{toClipboard:u}=V();function d(){u(JSON.stringify(n.value?a.app.config:a.app,null," "))}return(l,c)=>{const m=e("v-toolbar-title"),v=e("v-toolbar"),f=e("v-switch"),_=e("v-col"),b=e("v-btn"),g=e("v-snackbar"),h=e("v-row"),w=e("v-divider"),x=e("v-card-text"),y=e("v-card");return B(),N(y,null,{default:o(()=>[t(v,null,{default:o(()=>[t(m,null,{default:o(()=>[p(i(l.$t("_app.internals.title")),1)]),_:1})]),_:1}),t(x,null,{default:o(()=>[t(h,{"no-gutters":"",class:"align-center pb-2"},{default:o(()=>[t(_,null,{default:o(()=>[t(f,{label:l.$t("_app.internals.onlyConfig"),modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=s=>n.value=s),color:"blue",density:"comfortable","hide-details":""},null,8,["label","modelValue"])]),_:1}),t(_,{cols:"1",class:"text-right"},{default:o(()=>[t(g,{timeout:2e3,rounded:"pill"},{activator:o(({props:s})=>[t(b,O(s,{variant:"text",icon:"mdi-clipboard-multiple-outline",size:"small",onClick:d}),null,16)]),default:o(()=>[p(" "+i(l.$t("_app.messages.clipboard.text")),1)]),_:1})]),_:1})]),_:1}),t(w,{class:"pb-3"}),t(r(C),{data:n.value?r(a).app.config:r(a).app,deep:1,showLine:!1,showIcon:!0,showLength:!0},null,8,["data"])]),_:1})]),_:1})}}};export{z as default};
diff --git a/www/fhemapp4/assets/PanelCard-CPIZ14o_.js b/www/fhemapp4/assets/PanelCard-CPIZ14o_.js
deleted file mode 100644
index 93eac64..0000000
--- a/www/fhemapp4/assets/PanelCard-CPIZ14o_.js
+++ /dev/null
@@ -1,19 +0,0 @@
-import{u as J,c as O,r as h,o as p,b as M,at as H,b5 as V,A as E,a as D,w as b,O as K,G as Q,F as Y,e as z,bH as ne,aQ as U,bu as ae,ar as ie,d as he,U as Ie,af as de,ba as Ue,a5 as He,bv as Oe,aC as ke,ay as Ve,a9 as Ee,b1 as ve,bI as Ne,as as qe,ak as $e,be as Z,bJ as Be,bK as We,bF as Ke,bG as Je,av as pe,b7 as Ge,bB as Ze,aV as Qe}from"./index-BX4CvJnf.js";const Ye={__name:"PanelMainInfo",props:{el:Object,iconmap:Array,devices:Object,height:String},setup(e){const t=e,n=J(),a=O(()=>n.handleDefs(t.el.text,["text","format"],["",!t.el.text2&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),d=O(()=>n.handleDefs(t.el.text2,["text","format"],["",t.el.text&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),r=O(()=>n.handleDefs(t.el.text3,["text","format"],["","text-caption"])),f=O(()=>{let o=n.handleDefs(t.el.icon,["icon","color","size"],["","","x-large"]);return o.icon&&(o.icon=n.getIcon(o.icon,t.iconmap)),o}),i=O(()=>{let o=n.handleDefs(t.el.status,["level","color","min","max","reverse","linear"],[0,"success",0,100,!1,!1]);return o.level=Math.round((o.level-o.min)/(o.max-o.min)*100),o.reverse=!!o.reverse,o});return(o,l)=>{const u=h("v-icon"),v=h("v-progress-circular"),g=h("v-progress-linear");return p(),M(Y,null,[e.el.text?(p(),M("div",{key:0,class:H(a.value.format)},V(a.value.text),3)):E("",!0),e.el.icon?(p(),D(u,{key:1,color:f.value.color,size:f.value.size},{default:b(()=>[K(V(f.value.icon),1)]),_:1},8,["color","size"])):E("",!0),e.el.status&&!i.value.linear?(p(),D(v,{key:2,width:"4",modelValue:i.value.level,"onUpdate:modelValue":l[0]||(l[0]=k=>i.value.level=k),color:i.value.color,reverse:i.value.reverse},null,8,["modelValue","color","reverse"])):E("",!0),e.el.status&&i.value.linear?(p(),D(g,{key:3,height:"7",rounded:"",modelValue:i.value.level,"onUpdate:modelValue":l[1]||(l[1]=k=>i.value.level=k),color:i.value.color,reverse:i.value.reverse},null,8,["modelValue","color","reverse"])):E("",!0),Q("div",{class:H(e.el.text2?d.value.format:r.value.format)},[e.el.text2?(p(),M("span",{key:0,class:H(d.value.format)},V(d.value.text),3)):E("",!0),e.el.text3?(p(),M("span",{key:1,class:H(r.value.format)},V(r.value.text),3)):E("",!0)],2)],64)}}},Xe={__name:"PanelMainBtn",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=J(),a=O(()=>{let o=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["",!1,"","text"]);return o.icon&&(o.icon=n.getIcon(o.icon,t.iconmap)),o}),d=O(()=>{let o=n.handleDefs(t.el.status,["level","color","min","max","reverse"],[0,"success",0,100,!1]);return o.level=Math.round((o.level-o.min)/(o.max-o.min)*100),o.reverse=!!o.reverse,o}),r={timer:!1,long:!1};function f(o){let l=[];if(o.cmd){if(o.type==="cmd"){l=o.cmd.split(";");for(const[u]of Object.entries(l))for(const v of t.devices)l[u]=l[u].replace(" "+v.split(":")[0]+" "," "+v.split(":")[1]+" ");n.request("text",l.join(";"))}o.type==="route"&&ne.push({name:"devices",params:{view:o.cmd},query:ne.currentRoute.value.query}),o.type==="url"&&window.open(o.cmd,"_self")}}function i(o){let l=n.handleDefs(t.el.click,["cmd","type"],["","cmd"],!1,null,!0),u=n.handleDefs(t.el.longClick,["cmd","type"],["","cmd"],!1,null,!0),v=n.handleDefs(t.el.longRelease,["cmd","type"],["","cmd"],!1,null,!0),g="ontouchstart"in document;(!g&&o==="mouseStart"||o==="touchStart")&&(r.timer=setTimeout(()=>{r.long=!0,u.cmd&&f(u)},1e3)),(!g&&o==="mouseEnd"||o==="touchEnd")&&(r.long?v.cmd&&f(v):l.cmd&&f(l),clearTimeout(r.timer),r.long=!1)}return(o,l)=>{const u=h("v-progress-linear"),v=h("v-icon"),g=h("v-btn");return p(),M(Y,null,[e.el.status?(p(),D(u,{key:0,height:"4",modelValue:d.value.level,"onUpdate:modelValue":l[0]||(l[0]=k=>d.value.level=k),color:d.value.color,reverse:d.value.reverse},null,8,["modelValue","color","reverse"])):E("",!0),z(g,{icon:"",variant:a.value.variant,disabled:a.value.disabled,color:a.value.color,onMousedown:l[1]||(l[1]=k=>i("mouseStart")),onTouchstart:l[2]||(l[2]=k=>i("touchStart")),onMouseup:l[3]||(l[3]=k=>i("mouseEnd")),onTouchend:l[4]||(l[4]=k=>i("touchEnd")),class:"my-2"},{default:b(()=>[z(v,{size:"large"},{default:b(()=>[K(V(a.value.icon),1)]),_:1})]),_:1},8,["variant","disabled","color"])],64)}}},et={class:"text-white"},tt={__name:"PanelMainSlider",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=J(),a=U();function d(o){a.value=o}const r=O(()=>{let o=n.handleDefs(t.el.slider,["cmd","current","color","min","max","steps","reverse","size","vertical"],["",0,"",0,100,10,!1,4,!1],!1,null,!0);return/%v/.test(o.current)&&(o.current=o.current.replace("%v",a.value)),d(o.current),o});let f=null;function i(o){let l=r.value.cmd,u=/\./.exec(r.value.steps),v=0;u&&(v=r.value.steps.slice(u.index).length-1),l=l.replace("%v",o.toFixed(v));for(const g of t.devices)l=l.replace(" "+g.split(":")[0]+" "," "+g.split(":")[1]+" ");clearTimeout(f),f=setTimeout(()=>{n.request("text",l)},500)}return(o,l)=>{const u=h("v-slider");return p(),D(u,{modelValue:a.value,"onUpdate:modelValue":[l[0]||(l[0]=v=>a.value=v),l[1]||(l[1]=v=>i(v))],min:r.value.min,max:r.value.max,step:r.value.steps,reverse:r.value.reverse,direction:r.value.vertical?"vertical":"horizontal","track-size":r.value.size,color:r.value.color,"hide-details":"","thumb-label":""},{"thumb-label":b(({modelValue:v})=>[Q("div",et,V(v),1)]),_:1},8,["modelValue","min","max","step","reverse","direction","track-size","color"])}}},nt={__name:"PanelMainImage",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=J(),a=U(!1),d=O(()=>n.handleDefs(t.el.image,["source","height"],["","auto"])),r=O(()=>({height:/=maximized$/.test(n.app.currentView)?window.innerHeight-170:d.value.height||t.height}));return(f,i)=>{const o=h("v-skeleton-loader"),l=h("v-img");return p(),M(Y,null,[a.value?E("",!0):(p(),D(o,{key:0,type:"image"})),z(l,{src:d.value.source,height:r.value.height,onLoad:i[0]||(i[0]=u=>a.value=!0)},null,8,["src","height"])],64)}}},at=["src","width","height"],it={__name:"PanelMainIframe",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=J(),a=U(),d=O(()=>n.handleDefs(t.el.iframe,["source"],[""])),r=O(()=>({width:a.value&&a.value.scrollWidth?a.value.scrollWidth:0,height:/=maximized$/.test(n.app.currentView)?window.innerHeight-170:t.height}));return(f,i)=>(p(),M("div",{ref_key:"extContent",ref:a},[Q("iframe",{src:d.value.source,width:r.value.width,height:r.value.height,loading:"lazy",style:{border:"none"}},null,8,at)],512))}},ot={__name:"PanelMainMenu",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=J(),a=U([]);ae(t.el,i=>{r()});const d=O(()=>{let i=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["mdi-dots-vertical",!1,"","text"]);return i.icon&&(i.icon=n.getIcon(i.icon,t.iconmap)),i});async function r(){let i=n.handleDefs(t.el.menu,["name","cmd","convert"],["","",null],!0,","),o,l,u;a.value=[];for(const v of i){o=/^get/.test(v.name)?await f(v.name):v.name;for(const g of[",","|",`
-`])RegExp(g).test(o)&&(l=g);for(const g of o.split(l))g&&(u=g,/%v/.test(v.cmd)&&v.convert==="regExp"&&(u=RegExp(g.replace(/[^a-z,^A-Z]/g,"."))),a.value.push({name:g,cmd:v.cmd.replace(/%v/g,u)}))}}async function f(i){let o=[];o=i.split(";");for(const[l]of Object.entries(o))for(const u of t.devices)o[l]=o[l].replace(" "+u.split(":")[0]+" "," "+u.split(":")[1]+" ");return n.request("text",o.join(";"))}return r(),(i,o)=>{const l=h("v-icon"),u=h("v-btn"),v=h("v-list-item-title"),g=h("v-list-item"),k=h("v-list"),y=h("v-menu");return p(),D(y,null,{activator:b(({props:_})=>[z(u,ie(_,{icon:"",variant:d.value.variant,disabled:d.value.disabled||a.value.length<1,color:d.value.color,class:"my-2"}),{default:b(()=>[z(l,{size:"large"},{default:b(()=>[K(V(d.value.icon),1)]),_:1})]),_:2},1040,["variant","disabled","color"])]),default:b(()=>[z(k,null,{default:b(()=>[(p(!0),M(Y,null,he(a.value,(_,m)=>(p(),D(g,{key:m,value:m,onClick:c=>f(_.cmd)},{default:b(()=>[z(v,null,{default:b(()=>[K(V(_.name),1)]),_:2},1024)]),_:2},1032,["value","onClick"]))),128))]),_:1})]),_:1})}}};var xe=null;function rt(e){return xe||(xe=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),xe(e)}var ye=null;function lt(e){ye||(ye=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),ye(e)}function st(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function fe(e,t){t===void 0&&(t={});var n=document.createElement(e);return Object.keys(t).forEach(function(a){n[a]=t[a]}),n}function Te(e,t,n){var a=window.getComputedStyle(e,null)||{display:"none"};return a[t]}function we(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if(Te(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var ct='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',ze=0,_e=null;function ut(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=ft.bind(e));var n=e.__resize_listeners__;if(!n){if(e.__resize_listeners__=[],window.ResizeObserver){var a=e.offsetWidth,d=e.offsetHeight,r=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===a&&e.offsetHeight===d)||ge(e)}),f=we(e),i=f.detached,o=f.rendered;e.__resize_observer_triggered__=i===!1&&o===!1,e.__resize_observer__=r,r.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){ge(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(ze||(_e=st(ct)),mt(e),e.__resize_rendered__=we(e).rendered,window.MutationObserver){var l=new MutationObserver(e.__resize_mutation_handler__);l.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=l}}e.__resize_listeners__.push(t),ze++}function dt(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",Se),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--ze&&_e&&_e.parentNode.removeChild(_e)}}function vt(e){var t=e.__resize_last__,n=t.width,a=t.height,d=e.offsetWidth,r=e.offsetHeight;return d!==n||r!==a?{width:d,height:r}:null}function ft(){var e=we(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(Ce(this),this.addEventListener("scroll",Se,!0)),this.__resize_rendered__=t,ge(this))}function Se(){var e=this;Ce(this),this.__resize_raf__&<(this.__resize_raf__),this.__resize_raf__=rt(function(){var t=vt(e);t&&(e.__resize_last__=t,ge(e))})}function ge(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(t){t.call(e,e)})}function mt(e){var t=Te(e,"position");(!t||t==="static")&&(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=fe("div",{className:"resize-triggers"}),a=fe("div",{className:"resize-expand-trigger"}),d=fe("div"),r=fe("div",{className:"resize-contract-trigger"});a.appendChild(d),n.appendChild(a),n.appendChild(r),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:a,expandChild:d,contract:r},Ce(e),e.addEventListener("scroll",Se,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function Ce(e){var t=e.__resize_triggers__,n=t.expand,a=t.expandChild,d=t.contract,r=d.scrollWidth,f=d.scrollHeight,i=n.offsetWidth,o=n.offsetHeight,l=n.scrollWidth,u=n.scrollHeight;d.scrollLeft=r,d.scrollTop=f,a.style.width=i+1+"px",a.style.height=o+1+"px",n.scrollLeft=l,n.scrollTop=u}var W=function(){return W=Object.assign||function(e){for(var t,n=1,a=arguments.length;n"u"||typeof customElements>"u")return re=!1;try{new Function("tag",`class EChartsElement extends HTMLElement {
- __dispose = null;
-
- disconnectedCallback() {
- if (this.__dispose) {
- this.__dispose();
- this.__dispose = null;
- }
- }
-}
-
-if (customElements.get(tag) == null) {
- customElements.define(tag, EChartsElement);
-}
-`)(je)}catch{return re=!1}return re=!0}(),wt="ecTheme",zt="ecInitOptions",kt="ecUpdateOptions",Ae=/(^&?~?!?)native:/,St=Ie({name:"echarts",props:W(W({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},ht),yt),emits:{},inheritAttrs:!1,setup:function(e,t){var n=t.attrs,a=ve(),d=ve(),r=ve(),f=ve(),i=de(wt,null),o=de(zt,null),l=de(kt,null),u=Ue(e),v=u.autoresize,g=u.manualUpdate,k=u.loading,y=u.loadingOptions,_=O(function(){return f.value||e.option||null}),m=O(function(){return e.theme||me(i,{})}),c=O(function(){return e.initOptions||me(o,{})}),A=O(function(){return e.updateOptions||me(l,{})}),x=O(function(){return function(w){var C={};for(var P in w)Le(P)||(C[P]=w[P]);return C}(n)}),R={},L=He().proxy.$listeners,N={};function q(w){if(d.value){var C=r.value=Ne(d.value,m.value,c.value);e.group&&(C.group=e.group),Object.keys(N).forEach(function(F){var j=N[F];if(j){var I=F.toLowerCase();I.charAt(0)==="~"&&(I=I.substring(1),j.__once__=!0);var ee=C;if(I.indexOf("zr:")===0&&(ee=C.getZr(),I=I.substring(3)),j.__once__){delete j.__once__;var X=j;j=function(){for(var te=[],B=0;B(k(),"height: "+(/=maximized$/.test(n.app.currentView)?window.innerHeight-250+"px":t.height)));function u(y){return r.d(y,{dateStyle:d.value?"short":"long"})}function v(y,_){let m;return i.value.from&&_&&(m=i.value.from),i.value.to&&!_&&(m=i.value.to),!m&&!isNaN(y)&&(m=(c=>new Date(c.setDate(c.getDate()+(Number(y)||0))))(new Date)),m||(m=new Date(/.*T.*/.test(y)?y:y+"T00:00:00")),!i.value.from&&_&&(i.value.from=m),!i.value.to&&!_&&(i.value.to=m),m=new Date(m.getTime()-m.getTimezoneOffset()*60*1e3),m.toISOString().split("T")[0]}async function g(){let y=n.handleDefs(t.el.serie,["data","name","digits","suffix","type"],[null,"",0,"","line"],!0),_,m,c=[],A,x,R,L,N,q=[];if(y.length>0)for(const S of y){if(/^get.*/.test(S.data)){N="time",_=S.data.split(" ");for(const s of t.devices)s.split(":")[0]===_[1]&&(_[1]=s.split(":")[1]);if(_[4]=v(_[4],!0),_[5]=v(_[5],!1),m=await n.request("text",_.join(" ")),L=[],c=m.split(`
-`),c.length>0)for(const s of c)A=s.split(" "),A.length>1&&(x=new Date(A[0].replace("_","T")),R=parseFloat(A[1]).toFixed(S.digits),L.push([x,R]))}else/^\[.*\]/.test(S.data)?L=n.stringToJson(S.data):L=[n.replacer("%n("+S.digits+")",S.data,!0)];q.push({xAxisType:N,type:S.type,name:S.name,digits:S.digits,suffix:S.suffix,data:L})}return q}async function k(){let y={tooltip:{trigger:"axis"},legend:{data:[],bottom:10},backgroundColor:"rgba(255, 255, 255, 0)",grid:{top:30,bottom:60,left:60,right:60},animationDuration:300,series:[],yAxis:[],xAxis:{}},_=JSON.parse(JSON.stringify(n.getEl(t.el,["options"])||{})),m=JSON.parse(JSON.stringify(n.getEl(t.el,["options2"])||{})),c=Object.assign(y,/=maximized$/.test(n.app.currentView)&&Object.keys(m).length>0?m:_),A;i.value.fromMenu=!1,i.value.toMenu=!1,i.value.loaded=!1,o=await g();for(const[x,R]of Object.entries(o))A={formatter:L=>L.toLocaleString(r.locale.value,{minimumFractionDigits:R.digits,maximumFractionDigits:R.digits})+R.suffix},c.series[x]||(c.series[x]={}),c.yAxis[x]||(c.yAxis[x]={}),c.legend.data||(c.legend.data=[]),c.xAxis.type||(c.xAxis.type=R.xAxisType),c.yAxis[x].type||(c.yAxis[x].type="value"),c.yAxis[x].axisLabel||(c.yAxis[x].axisLabel={}),c.yAxis[x].axisLabel.formatter||(c.yAxis[x].axisLabel.formatter=A.formatter),c.legend.data[x]||(c.legend.data[x]=R.name),c.series[x].name||(c.series[x].name=R.name),c.series[x].type||(c.series[x].type=R.type),c.series[x].data||(c.series[x].data=R.data),c.series[x].detail||(c.series[x].detail={}),c.series[x].detail.formatter||(c.series[x].detail.formatter=A.formatter),c.series[x].tooltip||(c.series[x].tooltip={}),c.series[x].tooltip.valueFormatter||(c.series[x].tooltip.valueFormatter=A.formatter);n.log(7,"Chartdata chart.loaded.",c),f.value=Object.assign({},c),i.value.loaded=!0}return(y,_)=>{const m=h("v-btn"),c=h("v-date-picker"),A=h("v-locale-provider"),x=h("v-menu"),R=h("v-skeleton-loader");return p(),M(Y,null,[/=maximized$/.test(Z(n).app.currentView)?(p(),M("div",Ct,[z(x,{modelValue:i.value.fromMenu,"onUpdate:modelValue":_[2]||(_[2]=L=>i.value.fromMenu=L),"close-on-content-click":!1},{activator:b(({props:L})=>[z(m,ie(L,{variant:"outlined","append-icon":"mdi-calendar",class:"mr-2"}),{default:b(()=>[K(V(u(i.value.from)),1)]),_:2},1040)]),default:b(()=>[z(A,{locale:Z(r).locale.value},{default:b(()=>[z(c,{modelValue:i.value.from,"onUpdate:modelValue":[_[0]||(_[0]=L=>i.value.from=L),_[1]||(_[1]=L=>k())],color:"secondary"},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1},8,["modelValue"]),K(" - "),z(x,{modelValue:i.value.toMenu,"onUpdate:modelValue":_[5]||(_[5]=L=>i.value.toMenu=L),"close-on-content-click":!1},{activator:b(({props:L})=>[z(m,ie(L,{variant:"outlined","append-icon":"mdi-calendar",class:"ml-2"}),{default:b(()=>[K(V(u(i.value.to)),1)]),_:2},1040)]),default:b(()=>[z(A,{locale:Z(r).locale.value},{default:b(()=>[z(c,{modelValue:i.value.to,"onUpdate:modelValue":[_[3]||(_[3]=L=>i.value.to=L),_[4]||(_[4]=L=>k())],color:"secondary"},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1},8,["modelValue"])])):E("",!0),Q("div",{style:pe(l.value)},[i.value.loaded?E("",!0):(p(),D(R,{key:0,type:"text, image, text"})),i.value.loaded?(p(),D(Z(St),{key:1,option:f.value,theme:Z(a).global.name.value==="dark"?"dark":"light",autoresize:""},null,8,["option","theme"])):E("",!0)],4)],64)}}},Et=180/Math.PI,Re=e=>{const t=e%360;return t<0?360+t:t},Lt=({x:e,y:t},n)=>{const a=n.left+n.width/2,d=n.top+n.height/2;return Math.atan2(t-d,e-a)*Et},be=()=>{};class Dt{constructor(t,n){this.active=!1,this.element=t,this.element.style.willChange="transform",this.initOptions(n),this.updateCSS(),this.bindHandlers(),this.addListeners()}get angle(){return this._angle}set angle(t){this._angle!==t&&(this._angle=Re(t),this.updateCSS())}initOptions(t){t=t||{},this.onRotate=t.onRotate||be,this.onDragStart=t.onDragStart||be,this.onDragStop=t.onDragStop||be,this._angle=t.angle||0}bindHandlers(){this.onRotationStart=this.onRotationStart.bind(this),this.onRotated=this.onRotated.bind(this),this.onRotationStop=this.onRotationStop.bind(this)}addListeners(){this.element.addEventListener("touchstart",this.onRotationStart,{passive:!0}),document.addEventListener("touchmove",this.onRotated,{passive:!1}),document.addEventListener("touchend",this.onRotationStop,{passive:!0}),document.addEventListener("touchcancel",this.onRotationStop,{passive:!0}),this.element.addEventListener("mousedown",this.onRotationStart,{passive:!0}),document.addEventListener("mousemove",this.onRotated,{passive:!1}),document.addEventListener("mouseup",this.onRotationStop,{passive:!0}),document.addEventListener("mouseleave",this.onRotationStop,{passive:!1})}removeListeners(){this.element.removeEventListener("touchstart",this.onRotationStart),document.removeEventListener("touchmove",this.onRotated),document.removeEventListener("touchend",this.onRotationStop),document.removeEventListener("touchcancel",this.onRotationStop),this.element.removeEventListener("mousedown",this.onRotationStart),document.removeEventListener("mousemove",this.onRotated),document.removeEventListener("mouseup",this.onRotationStop),document.removeEventListener("mouseleave",this.onRotationStop)}destroy(){this.onRotationStop(),this.removeListeners()}onRotationStart(t){(t.type==="touchstart"||t.button===0)&&(this.active=!0,this.onDragStart(t),this.setAngleFromEvent(t))}onRotationStop(){this.active&&(this.active=!1,this.onDragStop()),this.active=!1}onRotated(t){this.active&&(t.preventDefault(),this.setAngleFromEvent(t))}setAngleFromEvent(t){const n=t.targetTouches?t.targetTouches[0]:t,a=Lt({x:n.clientX,y:n.clientY},this.element.getBoundingClientRect());this._angle=Re(a+90),this.updateCSS(),this.onRotate(this._angle)}updateCSS(){this.element.style.transform="rotate("+this._angle+"deg)"}}const At=(e,t)=>{const n=e.__vccOpts||e;for(const[a,d]of t)n[a]=d;return n},Rt=["red","yellow","green","cyan","blue","magenta","red"],Me={ArrowUp:(e,t)=>e+t,ArrowRight:(e,t)=>e+t,ArrowDown:(e,t)=>e-t,ArrowLeft:(e,t)=>e-t,PageUp:(e,t)=>e+t*10,PageDown:(e,t)=>e-t*10,Home:()=>0,End:()=>359},Mt={name:"ColorPicker",emits:["select","input","change"],props:{hue:{default:0},saturation:{default:100},luminosity:{default:50},alpha:{default:1},step:{default:1},mouseScroll:{default:!1},variant:{default:"collapsible"},disabled:{default:!1},initiallyCollapsed:{default:!1},ariaLabel:{default:"color picker"},ariaRoledescription:{default:"radial slider"},ariaValuetext:{default:""},ariaLabelColorWell:{default:"color well"}},setup(e,{emit:t}){U(null);const n=U(null);let a=null;const d=e.hue+"deg",r=U(e.hue),f=U(!e.initiallyCollapsed),i=U(!e.initiallyCollapsed),o=U(!1),l=U(!1),u=O(()=>`hsla(${r.value}, ${e.saturation}%, ${e.luminosity}%, ${e.alpha})`),v=O(()=>Rt[Math.round(r.value/60)]);return ae(()=>e.hue,c=>{r.value=c,a.angle=c}),ke(()=>{a=new Dt(n.value,{angle:r.value,onRotate(c){r.value=c,t("input",r.value)},onDragStop(){t("change",r.value)}})}),Ve(()=>{a.destroy(),a=null}),{rcp:a,rotator:n,initialAngle:d,angle:r,isPaletteIn:f,isKnobIn:i,isRippling:l,isPressed:o,color:u,valuetext:v,onKeyDown:c=>{e.disabled||o.value||!i.value||!(c.key in Me)||(c.preventDefault(),a.angle=Me[c.key](a.angle,e.step),r.value=a.angle,t("input",r.value),t("change",r.value))},onScroll:c=>{o.value||!i.value||(c.preventDefault(),c.deltaY>0?a.angle+=e.step:a.angle-=e.step,r.value=a.angle,t("input",r.value),t("change",r.value))},selectColor:()=>{o.value=!0,f.value&&i.value?(t("select",r.value),l.value=!0):f.value=!0},togglePicker:()=>{e.variant!=="persistent"&&(i.value?i.value=!1:(i.value=!0,f.value=!0)),l.value=!1,o.value=!1},hidePalette:()=>{i.value||(f.value=!1)}}}},Vt=["aria-roledescription","aria-label","aria-expanded","aria-valuenow","aria-valuetext","aria-disabled","tabindex"],Tt=Q("div",{class:"rcp__palette"},null,-1),jt=["aria-label","disabled","tabindex"];function Pt(e,t,n,a,d,r){return p(),M("div",{role:"slider","aria-roledescription":n.ariaRoledescription,"aria-label":n.ariaLabel,"aria-expanded":a.isPaletteIn,"aria-valuemin":"0","aria-valuemax":"359","aria-valuenow":a.angle,"aria-valuetext":n.ariaValuetext||a.valuetext,"aria-disabled":n.disabled,class:"rcp",tabindex:n.disabled?-1:0,style:pe({"--rcp-initial-angle":a.initialAngle}),onKeyup:t[3]||(t[3]=Ze((...f)=>a.selectColor&&a.selectColor(...f),["enter"])),onKeydown:t[4]||(t[4]=(...f)=>a.onKeyDown&&a.onKeyDown(...f))},[Tt,Q("div",ie({class:"rcp__rotator",style:{"pointer-events":n.disabled||a.isPressed||!a.isKnobIn?"none":null}},Ge(n.mouseScroll?{wheel:a.onScroll}:{},!0),{ref:"rotator"}),[Q("div",{class:H(["rcp__knob",a.isKnobIn?"in":"out"]),onTransitionend:t[0]||(t[0]=(...f)=>a.hidePalette&&a.hidePalette(...f))},null,34)],16),Q("div",{class:H(["rcp__ripple",{rippling:a.isRippling}]),style:pe({borderColor:a.color})},null,6),Q("button",{type:"button",class:H(["rcp__well",{pressed:a.isPressed}]),"aria-label":n.ariaLabelColorWell,disabled:n.disabled,tabindex:n.disabled?-1:0,style:pe({backgroundColor:a.color}),onAnimationend:t[1]||(t[1]=(...f)=>a.togglePicker&&a.togglePicker(...f)),onClick:t[2]||(t[2]=(...f)=>a.selectColor&&a.selectColor(...f))},null,46,jt)],44,Vt)}const Ft=At(Mt,[["render",Pt]]),It={__name:"PanelMainColorpicker",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=J(),a=O(()=>n.handleDefs(t.el.picker,["cmd","current","type"],["",!1,"hex"]));function d(l){let u={hue:0,saturation:100,luminosity:50};return l.type==="hex"&&(u=i(l.current)),l.type==="hue"&&(u.hue=l.current||0),u}function r(l){let u=f(l,100,50),v=a.value.cmd.replace("%v",a.value.type==="hex"?u:Math.round(l));for(const g of t.devices)v=v.replace(" "+g.split(":")[0]+" "," "+g.split(":")[1]+" ");n.request("text",v)}function f(l,u,v){v/=100;const g=u*Math.min(v,1-v)/100,k=y=>{const _=(y+l/30)%12,m=v-g*Math.max(Math.min(_-3,9-_,1),-1);return Math.round(255*m).toString(16).padStart(2,"0")};return`${k(0)}${k(8)}${k(4)}`}function i(l){l&&l.split(" ").length>1&&(l=l.split(" ").slice(-1)[0]),l=l?l.replace(/^#/,""):0;let u=parseInt(l,16),v=u>>16&255,g=u>>8&255,k=u&255;v/=255,g/=255,k/=255;let y=Math.max(v,g,k),_=Math.min(v,g,k),m=y-_,c=(y+_)/2,A=0,x=0;return m!==0&&(y===v?A=((g-k)/m+(g{const v=h("v-spacer"),g=h("v-col"),k=h("v-row");return p(),D(k,null,{default:b(()=>[z(v),z(g,{class:"ma-4"},{default:b(()=>[z(Z(Ft),ie(d(a.value),{variant:"persistent",onChange:u[0]||(u[0]=y=>r(y)),style:o()}),null,16,["style"])]),_:1}),z(v)]),_:1})}}},Ut={__name:"PanelMain",props:{main:Object,levels:Array,iconmap:Object,devices:Object},setup(e){const t=J();function n(i,o){return t.handleDefs(i[o].size,["size"],[!1]).size}function a(i){let o="";return["info"].indexOf(i)!==-1&&(o="mx-2"),o}function d(i,o){return i[o]?t.handleDefs(i[o].divider,["show"],[!1]).show:!1}function r(i){return i.level?t.handleDefs(i.level.height,["height"],["64px"]).height:"64px"}function f(i){if(i==="info")return Ye;if(i==="btn")return Xe;if(i==="slider")return tt;if(i==="image")return nt;if(i==="iframe")return it;if(i==="menu")return ot;if(i==="chart")return Ot;if(i==="colorpicker")return It}return(i,o)=>{const l=h("v-sheet"),u=h("v-col"),v=h("v-divider"),g=h("v-row"),k=h("v-expand-transition");return p(!0),M(Y,null,he(e.main,(y,_)=>(p(),D(k,{key:_},{default:b(()=>[e.levels.indexOf(_)!==-1?(p(),D(g,{key:0,"no-gutters":"",class:"text-center align-center"},{default:b(()=>[z(l,{height:r(y,"level")},null,8,["height"]),(p(),M(Y,null,he(["left1","left2","mid","right1","right2"],m=>(p(),M(Y,{key:m},[y.level[m]?(p(),D(u,{key:0,cols:n(y,m),class:H(a(y.level[m]))},{default:b(()=>[(p(),D(Qe(f(y.level[m])),{el:y[m],iconmap:e.iconmap,devices:e.devices,height:r(y,"level")},null,8,["el","iconmap","devices","height"]))]),_:2},1032,["cols","class"])):E("",!0),d(y,m)?(p(),D(v,{key:1,vertical:""})):E("",!0)],64))),64)),d(y,"level")?(p(),D(v,{key:0})):E("",!0)]),_:2},1024)):E("",!0)]),_:2},1024))),128)}}},Ht={key:0},$t={__name:"PanelCard",props:{panel:Object},setup(e){const t=e,n=J();let a=n.thread();ke(()=>n.thread(a));function d(S){let s=n.handleDefs(t.panel.status[S],["level","color","min","max","reverse"],[0,"success",0,100,!1]);return s.level=Math.round((s.level-s.min)/(s.max-s.min)*100),s}const r=O(()=>d("bar")),f=O(()=>d("bar2")),i=O(()=>n.handleDefs(t.panel.status.imageUrl,["url"],[""])),o=O(()=>n.handleDefs(t.panel.panel.sortby,["sortby"],[null])),l=O(()=>n.handleDefs(t.panel.status.title,["title"],[""])),u=U(n.handleDefs(t.panel.panel.expandable,["expandable","expanded","maximizable"],[!1,!1,!1]));ae(t.panel.main,S=>{let s=v(S);u.value.activeLevels.join("-")!==s.join("-")&&(u.value.activeLevels=s,g(!0))});function v(S){let s=[];for(const[T,w]of Object.entries(S))n.handleDefs(w.level.show,["show"],[!0]).show&&s.push(Number(T));return s}function g(S){let s=u.value,T;S?(s.activeLevels=v(t.panel.main),/=maximized$/.test(n.app.currentView)&&(s.expanded=!0)):(s.expandable&&(s.expanded=!s.expanded),s.maximizable&&(s.expanded?ne.push({name:"devices",params:{view:"panel="+t.panel.name+"=maximized"},query:ne.currentRoute.value.query}):(n.app.currentView=n.app.currentView.replace(/=maximized$/,""),ne.back()))),s.expanded?s.levels=s.activeLevels:s.expandable||S?s.levels=[s.activeLevels[0]]:(T=s.activeLevels.indexOf(s.levels[0]),s.levels=[s.activeLevels[T+1]>=0?s.activeLevels[T+1]:s.activeLevels[0]]),s.activeLevels.length>1||s.maximizable?s.icon=s.expandable?s.expanded?"mdi-arrow-collapse":"mdi-arrow-expand":s.expanded?"":"mdi-swap-vertical":s.icon=""}function k(S){let s=n.app.config.panels.map(C=>C.name).indexOf(S),T,w;if(s!==-1&&(w=n.app.config.panels[s].template,T=n.app.config.templates.map(C=>C.name).indexOf(w),T!==-1&&!n.app.config.templates[T].dist))return w}function y(S,s){ne.push({name:"settings",params:{tab:s,item:S},query:ne.currentRoute.value.query})}function _(S){window.open(n.createURL("?detail="+S),"_self")}function m(S){let s=n.handleDefs(t.panel.info[S],["text","icon","color"],["","",""]);return s.icon&&(s.icon=n.getIcon(s.icon,t.panel.panel.iconmap)),s}function c(S){let s=["left1","left2","mid1","mid2","right1","right2"],T=m(S);return m(s[s.indexOf(S)-1]).text&&T.text&&!T.icon?"ml-1 text-truncate":T.text?"text-truncate":""}const A=O(()=>m("left1")),x=O(()=>m("left2")),R=O(()=>m("mid1")),L=O(()=>m("mid2")),N=O(()=>m("right1")),q=O(()=>m("right2"));return g(!0),(S,s)=>{const T=h("v-progress-linear"),w=h("v-col"),C=h("v-row"),P=h("v-toolbar-title"),F=h("v-btn"),j=h("v-list-item"),I=h("v-divider"),ee=h("v-list"),X=h("v-menu"),te=h("v-toolbar"),B=h("v-img"),se=h("v-sheet"),ce=h("v-card-text"),G=h("v-icon"),oe=h("v-spacer"),ue=h("v-system-bar"),Pe=h("v-layout"),Fe=h("v-card");return p(),D(Fe,{variant:"tonal"},{default:b(()=>[z(C,{"no-gutters":""},{default:b(()=>[e.panel.status.bar?(p(),D(w,{key:0},{default:b(()=>[z(T,{height:"7",modelValue:r.value.level,"onUpdate:modelValue":s[0]||(s[0]=$=>r.value.level=$),color:r.value.color,reverse:r.value.reverse},null,8,["modelValue","color","reverse"])]),_:1})):E("",!0),e.panel.status.bar2?(p(),D(w,{key:1},{default:b(()=>[z(T,{height:"7",modelValue:f.value.level,"onUpdate:modelValue":s[1]||(s[1]=$=>f.value.level=$),color:f.value.color,reverse:f.value.reverse},null,8,["modelValue","color","reverse"])]),_:1})):E("",!0)]),_:1}),z(se,{color:"primary"},{default:b(()=>[z(B,{src:i.value.url,gradient:i.value.url?Z(n).app.header.imageGradient:"",height:"48",cover:""},{default:b(()=>[z(te,{color:"transparent",density:"compact",class:"pr-1"},{append:b(()=>[Z(n).app.settings.loglevel>6?(p(),M("div",Ht,[K(V(o.value.sortby)+" ",1),z(X,null,{activator:b(({props:$})=>[z(F,ie({icon:"mdi-dots-vertical",density:"compact"},$),null,16)]),default:b(()=>[z(ee,{density:"compact"},{default:b(()=>[k(e.panel.name)?(p(),D(j,{key:"template",title:"Template","prepend-icon":"mdi-application-edit-outline",onClick:s[2]||(s[2]=$=>y(k(e.panel.name),"templates"))})):E("",!0),z(j,{key:"panel",title:"Panel","prepend-icon":"mdi-pencil",onClick:s[3]||(s[3]=$=>y(e.panel.name,"panels"))}),z(I),(p(!0),M(Y,null,he(e.panel.panel.devices,$=>(p(),D(j,{key:$.split(":")[0],title:$.split(":")[1],"prepend-icon":"mdi-link",onClick:Nt=>_($.split(":")[1])},null,8,["title","onClick"]))),128))]),_:1})]),_:1})])):E("",!0),u.value.icon?(p(),D(F,{key:1,icon:u.value.icon,size:"small",variant:"plain",density:"compact",onClick:s[4]||(s[4]=$=>g())},null,8,["icon"])):E("",!0)]),default:b(()=>[z(P,{class:"text-truncate"},{default:b(()=>[K(V(l.value.title),1)]),_:1})]),_:1})]),_:1},8,["src","gradient"])]),_:1}),z(Ut,{main:e.panel.main,levels:u.value.levels,iconmap:e.panel.panel.iconmap,devices:e.panel.panel.devices},null,8,["main","levels","iconmap","devices"]),t.panel.internals?(p(),D(ce,{key:0},{default:b(()=>[K(V(t.panel.internals),1)]),_:1})):E("",!0),z(Pe,{style:{height:"24px"}},{default:b(()=>[z(ue,{color:"secondary"},{default:b(()=>[A.value.icon?(p(),D(G,{key:0,icon:A.value.icon,color:A.value.color},null,8,["icon","color"])):E("",!0),A.value.text?(p(),M("span",{key:1,class:H(c("left1"))},V(A.value.text),3)):E("",!0),x.value.icon?(p(),D(G,{key:2,icon:x.value.icon,color:x.value.color},null,8,["icon","color"])):E("",!0),x.value.text?(p(),M("span",{key:3,class:H(c("left2"))},V(x.value.text),3)):E("",!0),z(oe),R.value.icon?(p(),D(G,{key:4,icon:R.value.icon,color:R.value.color},null,8,["icon","color"])):E("",!0),R.value.text?(p(),M("span",{key:5,class:H(c("mid1"))},V(R.value.text),3)):E("",!0),L.value.icon?(p(),D(G,{key:6,icon:L.value.icon,color:L.value.color},null,8,["icon","color"])):E("",!0),L.value.text?(p(),M("span",{key:7,class:H(c("mid2"))},V(L.value.text),3)):E("",!0),z(oe),N.value.icon?(p(),D(G,{key:8,icon:N.value.icon,color:N.value.color},null,8,["icon","color"])):E("",!0),N.value.text?(p(),M("span",{key:9,class:H(c("right1"))},V(N.value.text),3)):E("",!0),q.value.icon?(p(),D(G,{key:10,icon:q.value.icon,color:q.value.color},null,8,["icon","color"])):E("",!0),q.value.text?(p(),M("span",{key:11,class:H(c("right2"))},V(q.value.text),3)):E("",!0)]),_:1})]),_:1})]),_:1})}}};export{$t as _};
diff --git a/www/fhemapp4/assets/PanelCard-DFfdlPLX.js b/www/fhemapp4/assets/PanelCard-DFfdlPLX.js
new file mode 100644
index 0000000..16bd43f
--- /dev/null
+++ b/www/fhemapp4/assets/PanelCard-DFfdlPLX.js
@@ -0,0 +1,19 @@
+import{u as K,c as S,r as g,o as m,b as V,at as N,b5 as j,A as O,a as L,w as y,O as W,G as Q,F as Y,e as z,bH as ne,aQ as H,bu as ae,ar as ie,d as he,U as je,af as de,ba as Fe,a5 as Ie,bv as Ce,aC as Me,ay as Ve,a9 as Oe,b1 as ve,bI as Ue,as as He,ak as Ne,be as Z,bJ as qe,bK as $e,bF as Be,bG as We,av as pe,b7 as Ke,bB as Je,aV as Ge}from"./index-7YMgWPA9.js";const Ze={__name:"PanelMainInfo",props:{el:Object,iconmap:Array,devices:Object,height:String},setup(e){const t=e,n=K(),i=S(()=>n.handleDefs(t.el.text,["text","format"],["",!t.el.text2&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),u=S(()=>n.handleDefs(t.el.text2,["text","format"],["",t.el.text&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),r=S(()=>n.handleDefs(t.el.text3,["text","format"],["","text-caption"])),v=S(()=>{let l=n.handleDefs(t.el.icon,["icon","color","size"],["","","x-large"]);return l.icon&&(l.icon=n.getIcon(l.icon,t.iconmap)),l}),o=S(()=>{let l=n.handleDefs(t.el.status,["level","color","min","max","reverse","linear"],[0,"success",0,100,!1,!1]);return l.level=Math.round((l.level-l.min)/(l.max-l.min)*100),l.reverse=!!l.reverse,l});return(l,a)=>{const d=g("v-icon"),c=g("v-progress-circular"),b=g("v-progress-linear");return m(),V(Y,null,[e.el.text?(m(),V("div",{key:0,class:N(i.value.format)},j(i.value.text),3)):O("",!0),e.el.icon?(m(),L(d,{key:1,color:v.value.color,size:v.value.size},{default:y(()=>[W(j(v.value.icon),1)]),_:1},8,["color","size"])):O("",!0),e.el.status&&!o.value.linear?(m(),L(c,{key:2,width:"4",modelValue:o.value.level,"onUpdate:modelValue":a[0]||(a[0]=k=>o.value.level=k),color:o.value.color,reverse:o.value.reverse},null,8,["modelValue","color","reverse"])):O("",!0),e.el.status&&o.value.linear?(m(),L(b,{key:3,height:"7",rounded:"",modelValue:o.value.level,"onUpdate:modelValue":a[1]||(a[1]=k=>o.value.level=k),color:o.value.color,reverse:o.value.reverse},null,8,["modelValue","color","reverse"])):O("",!0),Q("div",{class:N(e.el.text2?u.value.format:r.value.format)},[e.el.text2?(m(),V("span",{key:0,class:N(u.value.format)},j(u.value.text),3)):O("",!0),e.el.text3?(m(),V("span",{key:1,class:N(r.value.format)},j(r.value.text),3)):O("",!0)],2)],64)}}},Qe={__name:"PanelMainBtn",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=K(),i=S(()=>{let l=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["",!1,"","text"]);return l.icon&&(l.icon=n.getIcon(l.icon,t.iconmap)),l}),u=S(()=>{let l=n.handleDefs(t.el.status,["level","color","min","max","reverse"],[0,"success",0,100,!1]);return l.level=Math.round((l.level-l.min)/(l.max-l.min)*100),l.reverse=!!l.reverse,l}),r={timer:!1,long:!1};function v(l){let a=[];if(l.cmd){if(l.type==="cmd"){a=l.cmd.split(";");for(const[d]of Object.entries(a))for(const c of t.devices)a[d]=a[d].replace(" "+c.split(":")[0]+" "," "+c.split(":")[1]+" ");n.request("text",a.join(";"))}l.type==="route"&&ne.push({name:"devices",params:{view:l.cmd},query:ne.currentRoute.value.query}),l.type==="url"&&window.open(l.cmd,"_self")}}function o(l){let a=n.handleDefs(t.el.click,["cmd","type"],["","cmd"],!1,null,!0),d=n.handleDefs(t.el.longClick,["cmd","type"],["","cmd"],!1,null,!0),c=n.handleDefs(t.el.longRelease,["cmd","type"],["","cmd"],!1,null,!0),b="ontouchstart"in document;(!b&&l==="mouseStart"||l==="touchStart")&&(r.timer=setTimeout(()=>{r.long=!0,d.cmd&&v(d)},1e3)),(!b&&l==="mouseEnd"||l==="touchEnd")&&(r.long?c.cmd&&v(c):a.cmd&&v(a),clearTimeout(r.timer),r.long=!1)}return(l,a)=>{const d=g("v-progress-linear"),c=g("v-icon"),b=g("v-btn");return m(),V(Y,null,[e.el.status?(m(),L(d,{key:0,height:"4",modelValue:u.value.level,"onUpdate:modelValue":a[0]||(a[0]=k=>u.value.level=k),color:u.value.color,reverse:u.value.reverse},null,8,["modelValue","color","reverse"])):O("",!0),z(b,{icon:"",variant:i.value.variant,disabled:i.value.disabled,color:i.value.color,onMousedown:a[1]||(a[1]=k=>o("mouseStart")),onTouchstart:a[2]||(a[2]=k=>o("touchStart")),onMouseup:a[3]||(a[3]=k=>o("mouseEnd")),onTouchend:a[4]||(a[4]=k=>o("touchEnd")),class:"my-2"},{default:y(()=>[z(c,{size:"large"},{default:y(()=>[W(j(i.value.icon),1)]),_:1})]),_:1},8,["variant","disabled","color"])],64)}}},Ye={class:"text-white"},Xe={__name:"PanelMainSlider",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=K(),i=H();function u(l){i.value=l}const r=S(()=>{let l=n.handleDefs(t.el.slider,["cmd","current","color","min","max","steps","reverse","size","vertical"],["",0,"",0,100,10,!1,4,!1],!1,null,!0);return/%v/.test(l.current)&&(l.current=l.current.replace("%v",i.value)),u(l.current),l});let v=null;function o(l){let a=r.value.cmd,d=/\./.exec(r.value.steps),c=0;d&&(c=r.value.steps.slice(d.index).length-1),a=a.replace("%v",l.toFixed(c));for(const b of t.devices)a=a.replace(" "+b.split(":")[0]+" "," "+b.split(":")[1]+" ");clearTimeout(v),v=setTimeout(()=>{n.request("text",a)},500)}return(l,a)=>{const d=g("v-slider");return m(),L(d,{modelValue:i.value,"onUpdate:modelValue":[a[0]||(a[0]=c=>i.value=c),a[1]||(a[1]=c=>o(c))],min:r.value.min,max:r.value.max,step:r.value.steps,reverse:r.value.reverse,direction:r.value.vertical?"vertical":"horizontal","track-size":r.value.size,color:r.value.color,"hide-details":"","thumb-label":""},{"thumb-label":y(({modelValue:c})=>[Q("div",Ye,j(c),1)]),_:1},8,["modelValue","min","max","step","reverse","direction","track-size","color"])}}},et={__name:"PanelMainImage",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=K(),i=H(!1),u=S(()=>n.handleDefs(t.el.image,["source","height"],["","auto"])),r=S(()=>({height:/=maximized$/.test(n.app.currentView)?window.innerHeight-170:u.value.height||t.height}));return(v,o)=>{const l=g("v-skeleton-loader"),a=g("v-img");return m(),V(Y,null,[i.value?O("",!0):(m(),L(l,{key:0,type:"image"})),z(a,{src:u.value.source,height:r.value.height,onLoad:o[0]||(o[0]=d=>i.value=!0)},null,8,["src","height"])],64)}}},tt=["src","width","height"],nt={__name:"PanelMainIframe",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=K(),i=H(),u=S(()=>n.handleDefs(t.el.iframe,["source"],[""])),r=S(()=>({width:i.value&&i.value.scrollWidth?i.value.scrollWidth:0,height:/=maximized$/.test(n.app.currentView)?window.innerHeight-170:t.height}));return(v,o)=>(m(),V("div",{ref_key:"extContent",ref:i},[Q("iframe",{src:u.value.source,width:r.value.width,height:r.value.height,loading:"lazy",style:{border:"none"}},null,8,tt)],512))}},at={__name:"PanelMainMenu",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=K(),i=H([]);ae(t.el,o=>{r()});const u=S(()=>{let o=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["mdi-dots-vertical",!1,"","text"]);return o.icon&&(o.icon=n.getIcon(o.icon,t.iconmap)),o});async function r(){let o=n.handleDefs(t.el.menu,["name","cmd","convert"],["","",null],!0,","),l,a,d;i.value=[];for(const c of o){l=/^get/.test(c.name)?await v(c.name):c.name;for(const b of[",","|",`
+`])RegExp(b).test(l)&&(a=b);for(const b of l.split(a))b&&(d=b,/%v/.test(c.cmd)&&c.convert==="regExp"&&(d=RegExp(b.replace(/[^a-z,^A-Z]/g,"."))),i.value.push({name:b,cmd:c.cmd.replace(/%v/g,d)}))}}async function v(o){let l=[];l=o.split(";");for(const[a]of Object.entries(l))for(const d of t.devices)l[a]=l[a].replace(" "+d.split(":")[0]+" "," "+d.split(":")[1]+" ");return n.request("text",l.join(";"))}return r(),(o,l)=>{const a=g("v-icon"),d=g("v-btn"),c=g("v-list-item-title"),b=g("v-list-item"),k=g("v-list"),h=g("v-menu");return m(),L(h,null,{activator:y(({props:f})=>[z(d,ie(f,{icon:"",variant:u.value.variant,disabled:u.value.disabled||i.value.length<1,color:u.value.color,class:"my-2"}),{default:y(()=>[z(a,{size:"large"},{default:y(()=>[W(j(u.value.icon),1)]),_:1})]),_:2},1040,["variant","disabled","color"])]),default:y(()=>[z(k,null,{default:y(()=>[(m(!0),V(Y,null,he(i.value,(f,p)=>(m(),L(b,{key:p,value:p,onClick:s=>v(f.cmd)},{default:y(()=>[z(c,null,{default:y(()=>[W(j(f.name),1)]),_:2},1024)]),_:2},1032,["value","onClick"]))),128))]),_:1})]),_:1})}}};var xe=null;function it(e){return xe||(xe=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),xe(e)}var be=null;function ot(e){be||(be=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),be(e)}function lt(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function fe(e,t){t===void 0&&(t={});var n=document.createElement(e);return Object.keys(t).forEach(function(i){n[i]=t[i]}),n}function Te(e,t,n){var i=window.getComputedStyle(e,null)||{display:"none"};return i[t]}function we(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if(Te(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var rt='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',ze=0,_e=null;function st(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=dt.bind(e));var n=e.__resize_listeners__;if(!n){if(e.__resize_listeners__=[],window.ResizeObserver){var i=e.offsetWidth,u=e.offsetHeight,r=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===i&&e.offsetHeight===u)||ge(e)}),v=we(e),o=v.detached,l=v.rendered;e.__resize_observer_triggered__=o===!1&&l===!1,e.__resize_observer__=r,r.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){ge(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(ze||(_e=lt(rt)),vt(e),e.__resize_rendered__=we(e).rendered,window.MutationObserver){var a=new MutationObserver(e.__resize_mutation_handler__);a.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=a}}e.__resize_listeners__.push(t),ze++}function ut(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",ke),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--ze&&_e&&_e.parentNode.removeChild(_e)}}function ct(e){var t=e.__resize_last__,n=t.width,i=t.height,u=e.offsetWidth,r=e.offsetHeight;return u!==n||r!==i?{width:u,height:r}:null}function dt(){var e=we(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(Se(this),this.addEventListener("scroll",ke,!0)),this.__resize_rendered__=t,ge(this))}function ke(){var e=this;Se(this),this.__resize_raf__&&ot(this.__resize_raf__),this.__resize_raf__=it(function(){var t=ct(e);t&&(e.__resize_last__=t,ge(e))})}function ge(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(t){t.call(e,e)})}function vt(e){var t=Te(e,"position");(!t||t==="static")&&(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=fe("div",{className:"resize-triggers"}),i=fe("div",{className:"resize-expand-trigger"}),u=fe("div"),r=fe("div",{className:"resize-contract-trigger"});i.appendChild(u),n.appendChild(i),n.appendChild(r),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:i,expandChild:u,contract:r},Se(e),e.addEventListener("scroll",ke,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function Se(e){var t=e.__resize_triggers__,n=t.expand,i=t.expandChild,u=t.contract,r=u.scrollWidth,v=u.scrollHeight,o=n.offsetWidth,l=n.offsetHeight,a=n.scrollWidth,d=n.scrollHeight;u.scrollLeft=r,u.scrollTop=v,i.style.width=o+1+"px",i.style.height=l+1+"px",n.scrollLeft=a,n.scrollTop=d}var B=function(){return B=Object.assign||function(e){for(var t,n=1,i=arguments.length;n"u"||typeof customElements>"u")return le=!1;try{new Function("tag",`class EChartsElement extends HTMLElement {
+ __dispose = null;
+
+ disconnectedCallback() {
+ if (this.__dispose) {
+ this.__dispose();
+ this.__dispose = null;
+ }
+ }
+}
+
+if (customElements.get(tag) == null) {
+ customElements.define(tag, EChartsElement);
+}
+`)(Pe)}catch{return le=!1}return le=!0}(),bt="ecTheme",yt="ecInitOptions",wt="ecUpdateOptions",Le=/(^&?~?!?)native:/,zt=je({name:"echarts",props:B(B({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},pt),gt),emits:{},inheritAttrs:!1,setup:function(e,t){var n=t.attrs,i=ve(),u=ve(),r=ve(),v=ve(),o=de(bt,null),l=de(yt,null),a=de(wt,null),d=Fe(e),c=d.autoresize,b=d.manualUpdate,k=d.loading,h=d.loadingOptions,f=S(function(){return v.value||e.option||null}),p=S(function(){return e.theme||me(o,{})}),s=S(function(){return e.initOptions||me(l,{})}),A=S(function(){return e.updateOptions||me(a,{})}),x=S(function(){return function(D){var C={};for(var P in D)Ee(P)||(C[P]=D[P]);return C}(n)}),M={},E=Ie().proxy.$listeners,R={};function _(D){if(u.value){var C=r.value=Ue(u.value,p.value,s.value);e.group&&(C.group=e.group),Object.keys(R).forEach(function(U){var F=R[U];if(F){var I=U.toLowerCase();I.charAt(0)==="~"&&(I=I.substring(1),F.__once__=!0);var ee=C;if(I.indexOf("zr:")===0&&(ee=C.getZr(),I=I.substring(3)),F.__once__){delete F.__once__;var X=F;F=function(){for(var te=[],$=0;$(k(),"height: "+(/=maximized$/.test(n.app.currentView)?window.innerHeight-250+"px":t.height)));function d(h){return r.d(h,{dateStyle:u.value?"short":"long"})}function c(h,f){let p;return o.value.from&&f&&(p=o.value.from),o.value.to&&!f&&(p=o.value.to),!p&&!isNaN(h)&&(p=(s=>new Date(s.setDate(s.getDate()+(Number(h)||0))))(new Date)),p||(p=new Date(/.*T.*/.test(h)?h:h+"T00:00:00")),!o.value.from&&f&&(o.value.from=p),!o.value.to&&!f&&(o.value.to=p),p=new Date(p.getTime()-p.getTimezoneOffset()*60*1e3),p.toISOString().split("T")[0]}async function b(){let h=n.handleDefs(t.el.serie,["data","name","digits","suffix","type"],[null,"",0,"","line"],!0),f,p,s=[],A,x,M,E,R,_=[];if(h.length>0)for(const w of h){if(/^get.*/.test(w.data)){R="time",f=w.data.split(" ");for(const T of t.devices)T.split(":")[0]===f[1]&&(f[1]=T.split(":")[1]);if(f[4]=c(f[4],!0),f[5]=c(f[5],!1),p=await n.request("text",f.join(" ")),E=[],s=p.split(`
+`),s.length>0)for(const T of s)A=T.split(" "),A.length>1&&(x=new Date(A[0].replace("_","T")),M=parseFloat(A[1]).toFixed(w.digits),E.push([x,M]))}else/^\[.*\]/.test(w.data)?E=n.stringToJson(w.data):E=[n.replacer("%n("+w.digits+")",w.data,!0)];_.push({xAxisType:R,type:w.type,name:w.name,digits:w.digits,suffix:w.suffix,data:E})}return _}async function k(){let h={tooltip:{trigger:"axis"},legend:{data:[],bottom:10},backgroundColor:"rgba(255, 255, 255, 0)",grid:{top:30,bottom:60,left:60,right:60},animationDuration:300,series:[],yAxis:[],xAxis:{}},f=JSON.parse(JSON.stringify(n.getEl(t.el,["options"])||{})),p=JSON.parse(JSON.stringify(n.getEl(t.el,["options2"])||{})),s=Object.assign(h,/=maximized$/.test(n.app.currentView)&&Object.keys(p).length>0?p:f),A;o.value.fromMenu=!1,o.value.toMenu=!1,o.value.loaded=!1,l=await b();for(const[x,M]of Object.entries(l))A={formatter:E=>E.toLocaleString(r.locale.value,{minimumFractionDigits:M.digits,maximumFractionDigits:M.digits})+M.suffix},s.series[x]||(s.series[x]={}),s.yAxis[x]||(s.yAxis[x]={}),s.legend.data||(s.legend.data=[]),s.xAxis.type||(s.xAxis.type=M.xAxisType),s.yAxis[x].type||(s.yAxis[x].type="value"),s.yAxis[x].axisLabel||(s.yAxis[x].axisLabel={}),s.yAxis[x].axisLabel.formatter||(s.yAxis[x].axisLabel.formatter=A.formatter),s.legend.data[x]||(s.legend.data[x]=M.name),s.series[x].name||(s.series[x].name=M.name),s.series[x].type||(s.series[x].type=M.type),s.series[x].data||(s.series[x].data=M.data),s.series[x].detail||(s.series[x].detail={}),s.series[x].detail.formatter||(s.series[x].detail.formatter=A.formatter),s.series[x].tooltip||(s.series[x].tooltip={}),s.series[x].tooltip.valueFormatter||(s.series[x].tooltip.valueFormatter=A.formatter);n.log(7,"Chartdata chart.loaded.",s),v.value=Object.assign({},s),o.value.loaded=!0}return(h,f)=>{const p=g("v-btn"),s=g("v-date-picker"),A=g("v-locale-provider"),x=g("v-menu"),M=g("v-skeleton-loader");return m(),V(Y,null,[/=maximized$/.test(Z(n).app.currentView)?(m(),V("div",kt,[z(x,{modelValue:o.value.fromMenu,"onUpdate:modelValue":f[2]||(f[2]=E=>o.value.fromMenu=E),"close-on-content-click":!1},{activator:y(({props:E})=>[z(p,ie(E,{variant:"outlined","append-icon":"mdi-calendar",class:"mr-2"}),{default:y(()=>[W(j(d(o.value.from)),1)]),_:2},1040)]),default:y(()=>[z(A,{locale:Z(r).locale.value},{default:y(()=>[z(s,{modelValue:o.value.from,"onUpdate:modelValue":[f[0]||(f[0]=E=>o.value.from=E),f[1]||(f[1]=E=>k())],color:"secondary"},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1},8,["modelValue"]),W(" - "),z(x,{modelValue:o.value.toMenu,"onUpdate:modelValue":f[5]||(f[5]=E=>o.value.toMenu=E),"close-on-content-click":!1},{activator:y(({props:E})=>[z(p,ie(E,{variant:"outlined","append-icon":"mdi-calendar",class:"ml-2"}),{default:y(()=>[W(j(d(o.value.to)),1)]),_:2},1040)]),default:y(()=>[z(A,{locale:Z(r).locale.value},{default:y(()=>[z(s,{modelValue:o.value.to,"onUpdate:modelValue":[f[3]||(f[3]=E=>o.value.to=E),f[4]||(f[4]=E=>k())],color:"secondary"},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1},8,["modelValue"])])):O("",!0),Q("div",{style:pe(a.value)},[o.value.loaded?O("",!0):(m(),L(M,{key:0,type:"text, image, text"})),o.value.loaded?(m(),L(Z(zt),{key:1,option:v.value,theme:Z(i).global.name.value==="dark"?"dark":"light",autoresize:""},null,8,["option","theme"])):O("",!0)],4)],64)}}},Ct=180/Math.PI,Ae=e=>{const t=e%360;return t<0?360+t:t},Ot=({x:e,y:t},n)=>{const i=n.left+n.width/2,u=n.top+n.height/2;return Math.atan2(t-u,e-i)*Ct},ye=()=>{};class Et{constructor(t,n){this.active=!1,this.element=t,this.element.style.willChange="transform",this.initOptions(n),this.updateCSS(),this.bindHandlers(),this.addListeners()}get angle(){return this._angle}set angle(t){this._angle!==t&&(this._angle=Ae(t),this.updateCSS())}initOptions(t){t=t||{},this.onRotate=t.onRotate||ye,this.onDragStart=t.onDragStart||ye,this.onDragStop=t.onDragStop||ye,this._angle=t.angle||0}bindHandlers(){this.onRotationStart=this.onRotationStart.bind(this),this.onRotated=this.onRotated.bind(this),this.onRotationStop=this.onRotationStop.bind(this)}addListeners(){this.element.addEventListener("touchstart",this.onRotationStart,{passive:!0}),document.addEventListener("touchmove",this.onRotated,{passive:!1}),document.addEventListener("touchend",this.onRotationStop,{passive:!0}),document.addEventListener("touchcancel",this.onRotationStop,{passive:!0}),this.element.addEventListener("mousedown",this.onRotationStart,{passive:!0}),document.addEventListener("mousemove",this.onRotated,{passive:!1}),document.addEventListener("mouseup",this.onRotationStop,{passive:!0}),document.addEventListener("mouseleave",this.onRotationStop,{passive:!1})}removeListeners(){this.element.removeEventListener("touchstart",this.onRotationStart),document.removeEventListener("touchmove",this.onRotated),document.removeEventListener("touchend",this.onRotationStop),document.removeEventListener("touchcancel",this.onRotationStop),this.element.removeEventListener("mousedown",this.onRotationStart),document.removeEventListener("mousemove",this.onRotated),document.removeEventListener("mouseup",this.onRotationStop),document.removeEventListener("mouseleave",this.onRotationStop)}destroy(){this.onRotationStop(),this.removeListeners()}onRotationStart(t){(t.type==="touchstart"||t.button===0)&&(this.active=!0,this.onDragStart(t),this.setAngleFromEvent(t))}onRotationStop(){this.active&&(this.active=!1,this.onDragStop()),this.active=!1}onRotated(t){this.active&&(t.preventDefault(),this.setAngleFromEvent(t))}setAngleFromEvent(t){const n=t.targetTouches?t.targetTouches[0]:t,i=Ot({x:n.clientX,y:n.clientY},this.element.getBoundingClientRect());this._angle=Ae(i+90),this.updateCSS(),this.onRotate(this._angle)}updateCSS(){this.element.style.transform="rotate("+this._angle+"deg)"}}const Dt=(e,t)=>{const n=e.__vccOpts||e;for(const[i,u]of t)n[i]=u;return n},Lt=["red","yellow","green","cyan","blue","magenta","red"],Re={ArrowUp:(e,t)=>e+t,ArrowRight:(e,t)=>e+t,ArrowDown:(e,t)=>e-t,ArrowLeft:(e,t)=>e-t,PageUp:(e,t)=>e+t*10,PageDown:(e,t)=>e-t*10,Home:()=>0,End:()=>359},At={name:"ColorPicker",emits:["select","input","change"],props:{hue:{default:0},saturation:{default:100},luminosity:{default:50},alpha:{default:1},step:{default:1},mouseScroll:{default:!1},variant:{default:"collapsible"},disabled:{default:!1},initiallyCollapsed:{default:!1},ariaLabel:{default:"color picker"},ariaRoledescription:{default:"radial slider"},ariaValuetext:{default:""},ariaLabelColorWell:{default:"color well"}},setup(e,{emit:t}){H(null);const n=H(null);let i=null;const u=e.hue+"deg",r=H(e.hue),v=H(!e.initiallyCollapsed),o=H(!e.initiallyCollapsed),l=H(!1),a=H(!1),d=S(()=>`hsla(${r.value}, ${e.saturation}%, ${e.luminosity}%, ${e.alpha})`),c=S(()=>Lt[Math.round(r.value/60)]);return ae(()=>e.hue,s=>{r.value=s,i.angle=s}),Me(()=>{i=new Et(n.value,{angle:r.value,onRotate(s){r.value=s,t("input",r.value)},onDragStop(){t("change",r.value)}})}),Ve(()=>{i.destroy(),i=null}),{rcp:i,rotator:n,initialAngle:u,angle:r,isPaletteIn:v,isKnobIn:o,isRippling:a,isPressed:l,color:d,valuetext:c,onKeyDown:s=>{e.disabled||l.value||!o.value||!(s.key in Re)||(s.preventDefault(),i.angle=Re[s.key](i.angle,e.step),r.value=i.angle,t("input",r.value),t("change",r.value))},onScroll:s=>{l.value||!o.value||(s.preventDefault(),s.deltaY>0?i.angle+=e.step:i.angle-=e.step,r.value=i.angle,t("input",r.value),t("change",r.value))},selectColor:()=>{l.value=!0,v.value&&o.value?(t("select",r.value),a.value=!0):v.value=!0},togglePicker:()=>{e.variant!=="persistent"&&(o.value?o.value=!1:(o.value=!0,v.value=!0)),a.value=!1,l.value=!1},hidePalette:()=>{o.value||(v.value=!1)}}}},Rt=["aria-roledescription","aria-label","aria-expanded","aria-valuenow","aria-valuetext","aria-disabled","tabindex"],Mt=Q("div",{class:"rcp__palette"},null,-1),Vt=["aria-label","disabled","tabindex"];function Tt(e,t,n,i,u,r){return m(),V("div",{role:"slider","aria-roledescription":n.ariaRoledescription,"aria-label":n.ariaLabel,"aria-expanded":i.isPaletteIn,"aria-valuemin":"0","aria-valuemax":"359","aria-valuenow":i.angle,"aria-valuetext":n.ariaValuetext||i.valuetext,"aria-disabled":n.disabled,class:"rcp",tabindex:n.disabled?-1:0,style:pe({"--rcp-initial-angle":i.initialAngle}),onKeyup:t[3]||(t[3]=Je((...v)=>i.selectColor&&i.selectColor(...v),["enter"])),onKeydown:t[4]||(t[4]=(...v)=>i.onKeyDown&&i.onKeyDown(...v))},[Mt,Q("div",ie({class:"rcp__rotator",style:{"pointer-events":n.disabled||i.isPressed||!i.isKnobIn?"none":null}},Ke(n.mouseScroll?{wheel:i.onScroll}:{},!0),{ref:"rotator"}),[Q("div",{class:N(["rcp__knob",i.isKnobIn?"in":"out"]),onTransitionend:t[0]||(t[0]=(...v)=>i.hidePalette&&i.hidePalette(...v))},null,34)],16),Q("div",{class:N(["rcp__ripple",{rippling:i.isRippling}]),style:pe({borderColor:i.color})},null,6),Q("button",{type:"button",class:N(["rcp__well",{pressed:i.isPressed}]),"aria-label":n.ariaLabelColorWell,disabled:n.disabled,tabindex:n.disabled?-1:0,style:pe({backgroundColor:i.color}),onAnimationend:t[1]||(t[1]=(...v)=>i.togglePicker&&i.togglePicker(...v)),onClick:t[2]||(t[2]=(...v)=>i.selectColor&&i.selectColor(...v))},null,46,Vt)],44,Rt)}const Pt=Dt(At,[["render",Tt]]),jt={__name:"PanelMainColorpicker",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=K(),i=S(()=>n.handleDefs(t.el.picker,["cmd","current","type"],["",!1,"hex"]));function u(a){let d={hue:0,saturation:100,luminosity:50};return a.type==="hex"&&(d=o(a.current)),a.type==="hue"&&(d.hue=a.current||0),d}function r(a){let d=v(a,100,50),c=i.value.cmd.replace("%v",i.value.type==="hex"?d:Math.round(a));for(const b of t.devices)c=c.replace(" "+b.split(":")[0]+" "," "+b.split(":")[1]+" ");n.request("text",c)}function v(a,d,c){c/=100;const b=d*Math.min(c,1-c)/100,k=h=>{const f=(h+a/30)%12,p=c-b*Math.max(Math.min(f-3,9-f,1),-1);return Math.round(255*p).toString(16).padStart(2,"0")};return`${k(0)}${k(8)}${k(4)}`}function o(a){a&&a.split(" ").length>1&&(a=a.split(" ").slice(-1)[0]),a=a?a.replace(/^#/,""):0;let d=parseInt(a,16),c=d>>16&255,b=d>>8&255,k=d&255;c/=255,b/=255,k/=255;let h=Math.max(c,b,k),f=Math.min(c,b,k),p=h-f,s=(h+f)/2,A=0,x=0;return p!==0&&(h===c?A=((b-k)/p+(b{const c=g("v-spacer"),b=g("v-col"),k=g("v-row");return m(),L(k,null,{default:y(()=>[z(c),z(b,{class:"ma-4"},{default:y(()=>[z(Z(Pt),ie(u(i.value),{variant:"persistent",onChange:d[0]||(d[0]=h=>r(h)),style:l()}),null,16,["style"])]),_:1}),z(c)]),_:1})}}},Ft={__name:"PanelMain",props:{main:Object,levels:Array,iconmap:Object,devices:Object},setup(e){const t=K();function n(o,l){return t.handleDefs(o[l].size,["size"],[!1]).size}function i(o){let l="";return["info"].indexOf(o)!==-1&&(l="mx-2"),l}function u(o,l){return o[l]?t.handleDefs(o[l].divider,["show"],[!1]).show:!1}function r(o){return o.level?t.handleDefs(o.level.height,["height"],["64px"]).height:"64px"}function v(o){if(o==="info")return Ze;if(o==="btn")return Qe;if(o==="slider")return Xe;if(o==="image")return et;if(o==="iframe")return nt;if(o==="menu")return at;if(o==="chart")return St;if(o==="colorpicker")return jt}return(o,l)=>{const a=g("v-sheet"),d=g("v-col"),c=g("v-divider"),b=g("v-row"),k=g("v-expand-transition");return m(!0),V(Y,null,he(e.main,(h,f)=>(m(),L(k,{key:f},{default:y(()=>[e.levels.indexOf(f)!==-1?(m(),L(b,{key:0,"no-gutters":"",class:"text-center align-center"},{default:y(()=>[z(a,{height:r(h,"level")},null,8,["height"]),(m(),V(Y,null,he(["left1","left2","mid","right1","right2"],p=>(m(),V(Y,{key:p},[h.level[p]?(m(),L(d,{key:0,cols:n(h,p),class:N(i(h.level[p]))},{default:y(()=>[(m(),L(Ge(v(h.level[p])),{el:h[p],iconmap:e.iconmap,devices:e.devices,height:r(h,"level")},null,8,["el","iconmap","devices","height"]))]),_:2},1032,["cols","class"])):O("",!0),u(h,p)?(m(),L(c,{key:1,vertical:""})):O("",!0)],64))),64)),u(h,"level")?(m(),L(c,{key:0})):O("",!0)]),_:2},1024)):O("",!0)]),_:2},1024))),128)}}},It={key:0},Nt={__name:"PanelCard",props:{panel:Object},setup(e){const t=e,n=K();function i(R){let _=n.handleDefs(t.panel.status[R],["level","color","min","max","reverse"],[0,"success",0,100,!1]);return _.level=Math.round((_.level-_.min)/(_.max-_.min)*100),_}const u=S(()=>i("bar")),r=S(()=>i("bar2")),v=S(()=>n.handleDefs(t.panel.status.imageUrl,["url"],[""])),o=S(()=>n.handleDefs(t.panel.panel.sortby,["sortby"],[null])),l=S(()=>n.handleDefs(t.panel.status.title,["title"],[""])),a=H({panel:{expandable:!1,expanded:!1,maximizable:!1},expandable:!1,expanded:!1,maximizable:!1,activeLevels:[],icon:"",isClick:!1}),d=S(()=>{let R,_={},w=[],T=[];_=n.handleDefs(t.panel.panel.expandable,["expandable","expanded","maximizable"],[!1,!1,!1]);for(const[J,D]of Object.entries(t.panel.main))n.handleDefs(D.level.show,["show"],[!0]).show&&w.push(Number(J));return _.expandable!==a.value.panel.expandable&&(a.value.panel.expandable=_.expandable,a.value.expandable=_.expandable),_.expanded!==a.value.panel.expanded&&(a.value.panel.expanded=_.expanded,a.value.expanded=_.expanded),_.maximizable!==a.value.panel.maximizable&&(a.value.panel.maximizable=_.maximizable,a.value.maximizable=_.maximizable),/=maximized$/.test(n.app.currentView)&&(a.value.expanded=!0),!a.value.expanded&&w.indexOf(a.value.activeLevels[0])==-1&&(a.value.activeLevels=[w[0]]),a.value.isClick&&(a.value.expandable?a.value.expanded=!a.value.expanded:(R=w.indexOf(a.value.activeLevels[0]),a.value.activeLevels=[w[R+1]>=0?w[R+1]:w[0]]),a.value.maximizable&&(a.value.expanded?ne.push({name:"devices",params:{view:"panel="+t.panel.name+"=maximized"},query:ne.currentRoute.value.query}):(n.app.currentView=n.app.currentView.replace(/=maximized$/,""),ne.back())),a.value.isClick=!1),a.value.expanded?a.value.activeLevels=w:(a.value.expandable||a.value.activeLevels.length===0)&&(a.value.activeLevels=[w[0]]),!a.value.expandable&&!a.value.expanded?a.value.icon=w.length>1?"mdi-swap-vertical":"":!a.value.maximizable&&w.length<2?a.icon="":a.value.icon=a.value.expandable?a.value.expanded?"mdi-arrow-collapse":"mdi-arrow-expand":"",T=a.value.activeLevels,T});function c(R){let _=n.app.config.panels.map(J=>J.name).indexOf(R),w,T;if(_!==-1&&(T=n.app.config.panels[_].template,w=n.app.config.templates.map(J=>J.name).indexOf(T),w!==-1&&!n.app.config.templates[w].dist))return T}function b(R,_){ne.push({name:"settings",params:{tab:_,item:R},query:ne.currentRoute.value.query})}function k(R){window.open(n.createURL("?detail="+R),"_self")}function h(R){let _=n.handleDefs(t.panel.info[R],["text","icon","color"],["","",""]);return _.icon&&(_.icon=n.getIcon(_.icon,t.panel.panel.iconmap)),_}function f(R){let _=["left1","left2","mid1","mid2","right1","right2"],w=h(R);return h(_[_.indexOf(R)-1]).text&&w.text&&!w.icon?"ml-1 text-truncate":w.text?"text-truncate":""}const p=S(()=>h("left1")),s=S(()=>h("left2")),A=S(()=>h("mid1")),x=S(()=>h("mid2")),M=S(()=>h("right1")),E=S(()=>h("right2"));return(R,_)=>{const w=g("v-progress-linear"),T=g("v-col"),J=g("v-row"),D=g("v-toolbar-title"),C=g("v-btn"),P=g("v-list-item"),U=g("v-divider"),F=g("v-list"),I=g("v-menu"),ee=g("v-toolbar"),X=g("v-img"),te=g("v-sheet"),$=g("v-card-text"),G=g("v-icon"),oe=g("v-spacer"),se=g("v-system-bar"),ue=g("v-layout"),ce=g("v-card");return m(),L(ce,{variant:"tonal"},{default:y(()=>[z(J,{"no-gutters":""},{default:y(()=>[e.panel.status.bar?(m(),L(T,{key:0},{default:y(()=>[z(w,{height:"7",modelValue:u.value.level,"onUpdate:modelValue":_[0]||(_[0]=q=>u.value.level=q),color:u.value.color,reverse:u.value.reverse},null,8,["modelValue","color","reverse"])]),_:1})):O("",!0),e.panel.status.bar2?(m(),L(T,{key:1},{default:y(()=>[z(w,{height:"7",modelValue:r.value.level,"onUpdate:modelValue":_[1]||(_[1]=q=>r.value.level=q),color:r.value.color,reverse:r.value.reverse},null,8,["modelValue","color","reverse"])]),_:1})):O("",!0)]),_:1}),z(te,{color:"primary"},{default:y(()=>[z(X,{src:v.value.url,gradient:v.value.url?Z(n).app.header.imageGradient:"",height:"48",cover:""},{default:y(()=>[z(ee,{color:"transparent",density:"compact",class:"pr-1"},{append:y(()=>[Z(n).app.settings.loglevel>6?(m(),V("div",It,[W(j(o.value.sortby)+" ",1),z(I,null,{activator:y(({props:q})=>[z(C,ie({icon:"mdi-dots-vertical",density:"compact"},q),null,16)]),default:y(()=>[z(F,{density:"compact"},{default:y(()=>[c(e.panel.name)?(m(),L(P,{key:"template",title:"Template","prepend-icon":"mdi-application-edit-outline",onClick:_[2]||(_[2]=q=>b(c(e.panel.name),"templates"))})):O("",!0),z(P,{key:"panel",title:"Panel","prepend-icon":"mdi-pencil",onClick:_[3]||(_[3]=q=>b(e.panel.name,"panels"))}),z(U),(m(!0),V(Y,null,he(e.panel.panel.devices,q=>(m(),L(P,{key:q.split(":")[0],title:q.split(":")[1],"prepend-icon":"mdi-link",onClick:Ut=>k(q.split(":")[1])},null,8,["title","onClick"]))),128))]),_:1})]),_:1})])):O("",!0),a.value.icon?(m(),L(C,{key:1,icon:a.value.icon,size:"small",variant:"plain",density:"compact",onClick:_[4]||(_[4]=q=>a.value.isClick=!0)},null,8,["icon"])):O("",!0)]),default:y(()=>[z(D,{class:"text-truncate"},{default:y(()=>[W(j(l.value.title),1)]),_:1})]),_:1})]),_:1},8,["src","gradient"])]),_:1}),z(Ft,{main:e.panel.main,levels:d.value,iconmap:e.panel.panel.iconmap,devices:e.panel.panel.devices},null,8,["main","levels","iconmap","devices"]),t.panel.internals?(m(),L($,{key:0},{default:y(()=>[W(j(t.panel.internals),1)]),_:1})):O("",!0),z(ue,{style:{height:"24px"}},{default:y(()=>[z(se,{color:"secondary"},{default:y(()=>[p.value.icon?(m(),L(G,{key:0,icon:p.value.icon,color:p.value.color},null,8,["icon","color"])):O("",!0),p.value.text?(m(),V("span",{key:1,class:N(f("left1"))},j(p.value.text),3)):O("",!0),s.value.icon?(m(),L(G,{key:2,icon:s.value.icon,color:s.value.color},null,8,["icon","color"])):O("",!0),s.value.text?(m(),V("span",{key:3,class:N(f("left2"))},j(s.value.text),3)):O("",!0),z(oe),A.value.icon?(m(),L(G,{key:4,icon:A.value.icon,color:A.value.color},null,8,["icon","color"])):O("",!0),A.value.text?(m(),V("span",{key:5,class:N(f("mid1"))},j(A.value.text),3)):O("",!0),x.value.icon?(m(),L(G,{key:6,icon:x.value.icon,color:x.value.color},null,8,["icon","color"])):O("",!0),x.value.text?(m(),V("span",{key:7,class:N(f("mid2"))},j(x.value.text),3)):O("",!0),z(oe),M.value.icon?(m(),L(G,{key:8,icon:M.value.icon,color:M.value.color},null,8,["icon","color"])):O("",!0),M.value.text?(m(),V("span",{key:9,class:N(f("right1"))},j(M.value.text),3)):O("",!0),E.value.icon?(m(),L(G,{key:10,icon:E.value.icon,color:E.value.color},null,8,["icon","color"])):O("",!0),E.value.text?(m(),V("span",{key:11,class:N(f("right2"))},j(E.value.text),3)):O("",!0)]),_:1})]),_:1})]),_:1})}}};export{Nt as _};
diff --git a/www/fhemapp4/assets/SettingsView-CFbDruGi.js b/www/fhemapp4/assets/SettingsView-CFbDruGi.js
new file mode 100644
index 0000000..8d9898c
--- /dev/null
+++ b/www/fhemapp4/assets/SettingsView-CFbDruGi.js
@@ -0,0 +1,27 @@
+import{B as $a,f as Ra,C as Va,D as Fa,E as ja,g as Na,h as Ma,F as Ke,K as La,R as Ua,S as Ka,i as Ga,T as Ba,j as Ha,k as ka,l as za,m as Wa,n as Ya,V as Xa,p as Ja,q as Za,s as Qa,t as qa,v as _a,x as er,y as tr,c as Ee,z as nr,a as z,A as Z,b as Me,G as ua,H as ar,I as rr,J as or,L as ir,M as lr,N as sr,O as de,e as g,P as ur,Q as dr,U as da,W as pr,X as cr,Y as fr,Z as vr,_ as mr,$ as gr,a0 as hr,a1 as yr,a2 as br,a3 as xr,a4 as Sr,a5 as Er,a6 as Ir,a7 as Or,a8 as Cr,a9 as pt,aa as Tr,ab as wr,ac as Dr,ad as Ar,ae as Pr,af as $r,ag as Rr,ah as Vr,ai as Fr,aj as jr,ak as Nr,al as Mr,am as Lr,an as Ur,ao as Kr,ap as Gr,aq as Br,ar as yn,as as Hr,at as kr,au as zr,av as Wr,aw as Yr,ax as Xr,ay as Jr,az as Zr,aA as Qr,aB as qr,aC as _r,aD as eo,aE as to,aF as no,aG as ao,aH as ro,aI as oo,o as B,aJ as io,aK as lo,aL as so,aM as uo,aN as po,aO as co,aP as fo,aQ as Te,aR as vo,aS as mo,d as Ze,aT as go,r as $,aU as ho,aV as pa,aW as yo,aX as bo,aY as xo,aZ as So,a_ as Eo,a$ as Io,b0 as Oo,b1 as Co,b2 as To,b3 as wo,b4 as Do,b5 as Ce,b6 as Ao,b7 as Po,b8 as $o,b9 as Ro,ba as Vo,bb as Fo,bc as jo,bd as No,be as N,bf as Mo,bg as Lo,bh as Uo,bi as Ko,bj as Go,bk as Bo,bl as Ho,bm as ko,bn as zo,bo as Wo,bp as Yo,bq as Xo,br as ca,bs as Jo,bt as Zo,bu as pn,bv as Qo,bw as qo,bx as _o,by as ei,w as b,bz as ti,bA as fa,bB as ni,bC as ai,bD as ri,bE as oi,u as qe,bF as bn,bG as va,bH as xt}from"./index-7YMgWPA9.js";import{g as ma,c as Fn,a as ii,S as li,u as si}from"./index-DGrvJ_vX.js";import{_ as ui}from"./PanelCard-DFfdlPLX.js";/**
+* vue v3.4.27
+* (c) 2018-present Yuxi (Evan) You and Vue contributors
+* @license MIT
+**/const di=()=>{},pi=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:$a,BaseTransitionPropsValidators:Ra,Comment:Va,DeprecationTypes:Fa,EffectScope:ja,ErrorCodes:Na,ErrorTypeStrings:Ma,Fragment:Ke,KeepAlive:La,ReactiveEffect:Ua,Static:Ka,Suspense:Ga,Teleport:Ba,Text:Ha,TrackOpTypes:ka,Transition:za,TransitionGroup:Wa,TriggerOpTypes:Ya,VueElement:Xa,assertNumber:Ja,callWithAsyncErrorHandling:Za,callWithErrorHandling:Qa,camelize:qa,capitalize:_a,cloneVNode:er,compatUtils:tr,compile:di,computed:Ee,createApp:nr,createBlock:z,createCommentVNode:Z,createElementBlock:Me,createElementVNode:ua,createHydrationRenderer:ar,createPropsRestProxy:rr,createRenderer:or,createSSRApp:ir,createSlots:lr,createStaticVNode:sr,createTextVNode:de,createVNode:g,customRef:ur,defineAsyncComponent:dr,defineComponent:da,defineCustomElement:pr,defineEmits:cr,defineExpose:fr,defineModel:vr,defineOptions:mr,defineProps:gr,defineSSRCustomElement:hr,defineSlots:yr,devtools:br,effect:xr,effectScope:Sr,getCurrentInstance:Er,getCurrentScope:Ir,getTransitionRawChildren:Or,guardReactiveProps:Cr,h:pt,handleError:Tr,hasInjectionContext:wr,hydrate:Dr,initCustomFormatter:Ar,initDirectivesForSSR:Pr,inject:$r,isMemoSame:Rr,isProxy:Vr,isReactive:Fr,isReadonly:jr,isRef:Nr,isRuntimeOnly:Mr,isShallow:Lr,isVNode:Ur,markRaw:Kr,mergeDefaults:Gr,mergeModels:Br,mergeProps:yn,nextTick:Hr,normalizeClass:kr,normalizeProps:zr,normalizeStyle:Wr,onActivated:Yr,onBeforeMount:Xr,onBeforeUnmount:Jr,onBeforeUpdate:Zr,onDeactivated:Qr,onErrorCaptured:qr,onMounted:_r,onRenderTracked:eo,onRenderTriggered:to,onScopeDispose:no,onServerPrefetch:ao,onUnmounted:ro,onUpdated:oo,openBlock:B,popScopeId:io,provide:lo,proxyRefs:so,pushScopeId:uo,queuePostFlushCb:po,reactive:co,readonly:fo,ref:Te,registerRuntimeCompiler:vo,render:mo,renderList:Ze,renderSlot:go,resolveComponent:$,resolveDirective:ho,resolveDynamicComponent:pa,resolveFilter:yo,resolveTransitionHooks:bo,setBlockTracking:xo,setDevtoolsHook:So,setTransitionHooks:Eo,shallowReactive:Io,shallowReadonly:Oo,shallowRef:Co,ssrContextKey:To,ssrUtils:wo,stop:Do,toDisplayString:Ce,toHandlerKey:Ao,toHandlers:Po,toRaw:$o,toRef:Ro,toRefs:Vo,toValue:Fo,transformVNodeArgs:jo,triggerRef:No,unref:N,useAttrs:Mo,useCssModule:Lo,useCssVars:Uo,useModel:Ko,useSSRContext:Go,useSlots:Bo,useTransitionState:Ho,vModelCheckbox:ko,vModelDynamic:zo,vModelRadio:Wo,vModelSelect:Yo,vModelText:Xo,vShow:ca,version:Jo,warn:Zo,watch:pn,watchEffect:Qo,watchPostEffect:qo,watchSyncEffect:_o,withAsyncContext:ei,withCtx:b,withDefaults:ti,withDirectives:fa,withKeys:ni,withMemo:ai,withModifiers:ri,withScopeId:oi},Symbol.toStringTag,{value:"Module"})),oe="_app.settings.general.",ci={__name:"SettingsGeneral",setup(d){const e=qe(),{mobile:n}=bn(),i=Te(),a=Te({name:"",title:"",icon:"",cmd:""}),o={required:s=>!!s||e.replacer("%t(_app.settings.rules.required)")};function t(s,u){let c=[];if(s&&s.length>0)for(const v of s)v.group&&v.group.length>0?c.push(...t(v.group,(u?u+"->":"")+v.name)):c.push((u?u+"->":"")+v.name);return c}function r(){e.app.config.header.commands||(e.app.config.header.commands=[]),e.app.config.header.commands.push(JSON.parse(JSON.stringify(a.value))),i.value.reset()}function l(s){e.app.config.header.commands.splice(s,1)}return(s,u)=>{const c=$("v-icon"),v=$("v-list-item"),f=$("v-text-field"),p=$("v-col"),h=$("v-switch"),y=$("v-list-item-action"),S=$("v-row"),m=$("v-divider"),x=$("v-select"),E=$("v-btn"),C=$("v-form"),I=$("v-list");return B(),z(I,null,{default:b(()=>[g(v,{title:s.$t(oe+"headLine")},{append:b(()=>[g(c,{color:"info",onClick:u[0]||(u[0]=T=>N(e).help("kopfzeile"))},{default:b(()=>[de("mdi-help-circle")]),_:1})]),_:1},8,["title"]),g(S,{"no-gutters":"",class:"mb-3"},{default:b(()=>[g(p,{cols:N(n)?"12":"6"},{default:b(()=>[g(v,{lines:N(n)?"two":"one",title:s.$t(oe+"headLineImageTitle"),subtitle:s.$t(oe+"headLineImageSubTitle")},{default:b(()=>[g(f,{modelValue:N(e).app.config.header.imageUrl,"onUpdate:modelValue":u[1]||(u[1]=T=>N(e).app.config.header.imageUrl=T),density:"compact",variant:"outlined",label:"Link",placeholder:"https://picsum.photos/1920/1080?random","persistent-placeholder":"","hide-details":"",clearable:"","max-width":"650px",class:"my-4"},null,8,["modelValue"])]),_:1},8,["lines","title","subtitle"])]),_:1},8,["cols"]),g(p,{cols:N(n)?"12":"6"},{default:b(()=>[g(v,{disabled:!N(e).app.config.header.imageUrl,lines:N(n)?"two":"one",title:s.$t(oe+"headLineImageGradientTitle"),subtitle:s.$t(oe+"headLineImageGradientSubTitle")},{default:b(()=>[g(f,{modelValue:N(e).app.config.header.imageGradient,"onUpdate:modelValue":u[2]||(u[2]=T=>N(e).app.config.header.imageGradient=T),density:"compact",variant:"outlined",label:"Definition",placeholder:"to top, rgba(33, 33, 33, 0.6), rgba(33, 33, 33, 0.6)","persistent-placeholder":"","hide-details":"",clearable:"","max-width":"650px",class:"my-4"},null,8,["modelValue"])]),_:1},8,["disabled","lines","title","subtitle"])]),_:1},8,["cols"]),g(p,{cols:N(n)?"12":"6"},{default:b(()=>[g(v,{lines:N(n)?"two":"one",title:s.$t(oe+"headLineTimeTitle"),subtitle:s.$t(oe+"headLineTimeSubTitle")},{append:b(()=>[g(y,{start:""},{default:b(()=>[g(h,{modelValue:N(e).app.config.header.showTime,"onUpdate:modelValue":u[3]||(u[3]=T=>N(e).app.config.header.showTime=T),color:"primary","hide-details":"",density:"compact"},null,8,["modelValue"])]),_:1})]),_:1},8,["lines","title","subtitle"]),g(v,{lines:N(n)?"two":"one",title:s.$t(oe+"headLineDateTitle"),subtitle:s.$t(oe+"headLineDateSubTitle")},{append:b(()=>[g(y,{start:""},{default:b(()=>[g(h,{modelValue:N(e).app.config.header.showDate,"onUpdate:modelValue":u[4]||(u[4]=T=>N(e).app.config.header.showDate=T),color:"primary","hide-details":"",density:"compact"},null,8,["modelValue"])]),_:1})]),_:1},8,["lines","title","subtitle"])]),_:1},8,["cols"]),g(p,{cols:N(n)?"12":"6"},{default:b(()=>[g(v,{lines:N(n)?"two":"one",title:s.$t(oe+"headLineRouteTitle"),subtitle:s.$t(oe+"headLineRouteSubTitle")},{append:b(()=>[g(y,{start:""},{default:b(()=>[g(h,{modelValue:N(e).app.config.header.showTitle,"onUpdate:modelValue":u[5]||(u[5]=T=>N(e).app.config.header.showTitle=T),color:"primary","hide-details":"",density:"compact"},null,8,["modelValue"])]),_:1})]),_:1},8,["lines","title","subtitle"]),g(v,{lines:N(n)?"two":"one",title:s.$t(oe+"headLineNavigationTitle"),subtitle:s.$t(oe+"headLineNavigationSubTitle")},{append:b(()=>[g(y,{start:""},{default:b(()=>[g(h,{modelValue:N(e).app.config.header.hideNavigation,"onUpdate:modelValue":u[6]||(u[6]=T=>N(e).app.config.header.hideNavigation=T),color:"primary","hide-details":"",density:"compact"},null,8,["modelValue"])]),_:1})]),_:1},8,["lines","title","subtitle"])]),_:1},8,["cols"])]),_:1}),g(m),g(v,{title:s.$t(oe+"darkMode")},{append:b(()=>[g(c,{color:"info",onClick:u[7]||(u[7]=T=>N(e).help("farbschema"))},{default:b(()=>[de("mdi-help-circle")]),_:1})]),_:1},8,["title"]),g(v,{lines:N(n)?"two":"one",title:s.$t(oe+"darkModeTitle"),subtitle:s.$t(oe+"darkModeSubTitle")},{default:b(()=>[g(f,{modelValue:N(e).app.config.header.darkModeOverFhem,"onUpdate:modelValue":u[8]||(u[8]=T=>N(e).app.config.header.darkModeOverFhem=T),density:"compact",variant:"outlined",label:"Definition",placeholder:"device-reading:value","persistent-placeholder":"","hide-details":"",clearable:"","max-width":"650px",class:"my-4"},null,8,["modelValue"])]),_:1},8,["lines","title","subtitle"]),g(m),g(v,{title:s.$t(oe+"defaultRoute")},{append:b(()=>[g(c,{color:"info",onClick:u[9]||(u[9]=T=>N(e).help("startseite"))},{default:b(()=>[de("mdi-help-circle")]),_:1})]),_:1},8,["title"]),g(v,{lines:N(n)?"two":"one",title:s.$t(oe+"defaultRouteTitle"),subtitle:s.$t(oe+"defaultRouteSubTitle")},{default:b(()=>[g(x,{modelValue:N(e).app.config.header.defaultRoute,"onUpdate:modelValue":u[10]||(u[10]=T=>N(e).app.config.header.defaultRoute=T),items:t(N(e).app.navigation),density:"compact",variant:"outlined",label:"Route",clearable:"","max-width":"650px",class:"my-4"},null,8,["modelValue","items"])]),_:1},8,["lines","title","subtitle"]),g(m),g(v,{title:s.$t(oe+"optionsMenu")},{append:b(()=>[g(c,{color:"info",onClick:u[11]||(u[11]=T=>N(e).help("optionsmenü"))},{default:b(()=>[de("mdi-help-circle")]),_:1})]),_:1},8,["title"]),g(S,{"no-gutters":"",class:"mb-3"},{default:b(()=>[g(p,{cols:N(n)?"12":"6"},{default:b(()=>[g(v,{lines:N(n)?"two":"one",title:s.$t(oe+"optionsMenuDarkModeTitle"),subtitle:s.$t(oe+"optionsMenuDarkModeSubTitle")},{append:b(()=>[g(y,{start:""},{default:b(()=>[g(h,{modelValue:N(e).app.config.header.showDarkMode,"onUpdate:modelValue":u[12]||(u[12]=T=>N(e).app.config.header.showDarkMode=T),color:"primary","hide-details":"",density:"compact"},null,8,["modelValue"])]),_:1})]),_:1},8,["lines","title","subtitle"]),g(v,{lines:N(n)?"two":"one",title:s.$t(oe+"optionsMenuReloadPageTitle"),subtitle:s.$t(oe+"optionsMenuReloadPageSubTitle")},{append:b(()=>[g(y,{start:""},{default:b(()=>[g(h,{modelValue:N(e).app.config.header.showReloadPage,"onUpdate:modelValue":u[13]||(u[13]=T=>N(e).app.config.header.showReloadPage=T),color:"primary","hide-details":"",density:"compact"},null,8,["modelValue"])]),_:1})]),_:1},8,["lines","title","subtitle"]),g(v,{lines:N(n)?"two":"one",title:s.$t(oe+"optionsMenuSettingsTitle"),subtitle:s.$t(oe+"optionsMenuSettingsSubTitle")},{append:b(()=>[g(y,{start:""},{default:b(()=>[g(h,{modelValue:N(e).app.config.header.showSettings,"onUpdate:modelValue":u[14]||(u[14]=T=>N(e).app.config.header.showSettings=T),color:"primary","hide-details":"",density:"compact"},null,8,["modelValue"])]),_:1})]),_:1},8,["lines","title","subtitle"])]),_:1},8,["cols"]),g(p,{cols:N(n)?"12":"6"},{default:b(()=>[g(v,{lines:N(n)?"two":"one",title:s.$t(oe+"optionsMenuUpdateTitle"),subtitle:s.$t(oe+"optionsMenuUpdateSubTitle")},{append:b(()=>[g(y,{start:""},{default:b(()=>[g(h,{modelValue:N(e).app.config.header.showUpdate,"onUpdate:modelValue":u[15]||(u[15]=T=>N(e).app.config.header.showUpdate=T),color:"primary","hide-details":"",density:"compact"},null,8,["modelValue"])]),_:1})]),_:1},8,["lines","title","subtitle"]),g(v,{lines:N(n)?"two":"one",title:s.$t(oe+"optionsMenuLanguagesTitle"),subtitle:s.$t(oe+"optionsMenuLanguagesSubTitle")},{append:b(()=>[g(y,{start:""},{default:b(()=>[g(h,{modelValue:N(e).app.config.header.showLanguages,"onUpdate:modelValue":u[16]||(u[16]=T=>N(e).app.config.header.showLanguages=T),color:"primary","hide-details":"",density:"compact"},null,8,["modelValue"])]),_:1})]),_:1},8,["lines","title","subtitle"])]),_:1},8,["cols"])]),_:1}),g(m),g(v,{title:s.$t(oe+"fhemCommands")},{append:b(()=>[g(c,{color:"info",onClick:u[17]||(u[17]=T=>N(e).help("optionsmenü-fhem-befehle"))},{default:b(()=>[de("mdi-help-circle")]),_:1})]),_:1},8,["title"]),(B(!0),Me(Ke,null,Ze(N(e).app.config.header.commands,(T,R)=>(B(),z(v,{key:R},{default:b(()=>[g(S,{class:"pt-2 align-center"},{default:b(()=>[g(p,{cols:N(n)?"12":"2"},{default:b(()=>[g(f,{modelValue:T.name,"onUpdate:modelValue":w=>T.name=w,density:"compact",variant:"outlined",rules:[o.required],label:s.$t(oe+"fhemCommandsName"),"hide-details":"",clearable:""},null,8,["modelValue","onUpdate:modelValue","rules","label"])]),_:2},1032,["cols"]),g(p,{cols:N(n)?"12":"3"},{default:b(()=>[g(f,{modelValue:T.title,"onUpdate:modelValue":w=>T.title=w,density:"compact",variant:"outlined",rules:[o.required],label:s.$t(oe+"fhemCommandsTitle"),"hide-details":"",clearable:""},null,8,["modelValue","onUpdate:modelValue","rules","label"])]),_:2},1032,["cols"]),g(p,{cols:N(n)?"12":"3"},{default:b(()=>[g(f,{modelValue:T.icon,"onUpdate:modelValue":w=>T.icon=w,density:"compact",variant:"outlined",label:s.$t(oe+"fhemCommandsIcon"),"append-inner-icon":T.icon,"hide-details":"",clearable:""},null,8,["modelValue","onUpdate:modelValue","label","append-inner-icon"])]),_:2},1032,["cols"]),g(p,{cols:N(n)?"9":"3"},{default:b(()=>[g(f,{modelValue:T.icon,"onUpdate:modelValue":w=>T.icon=w,density:"compact",variant:"outlined",rules:[o.required],label:s.$t(oe+"fhemCommandsCmd"),"hide-details":"",clearable:""},null,8,["modelValue","onUpdate:modelValue","rules","label"])]),_:2},1032,["cols"]),g(E,{variant:"text",icon:"mdi-delete",onClick:w=>l(R)},null,8,["onClick"])]),_:2},1024),g(m,{class:"mt-3"})]),_:2},1024))),128)),g(v,null,{default:b(()=>[g(C,{ref_key:"form",ref:i},{default:b(()=>[g(S,{class:"pt-3 align-center"},{default:b(()=>[g(p,{cols:N(n)?"12":"2"},{default:b(()=>[g(f,{modelValue:a.value.name,"onUpdate:modelValue":u[18]||(u[18]=T=>a.value.name=T),density:"compact",variant:"outlined",rules:[o.required],label:s.$t(oe+"fhemCommandsName"),placeholder:"restart","persistent-placeholder":"","hide-details":"",clearable:""},null,8,["modelValue","rules","label"])]),_:1},8,["cols"]),g(p,{cols:N(n)?"12":"3"},{default:b(()=>[g(f,{modelValue:a.value.title,"onUpdate:modelValue":u[19]||(u[19]=T=>a.value.title=T),density:"compact",variant:"outlined",rules:[o.required],label:s.$t(oe+"fhemCommandsTitle"),placeholder:"FHEM Restart | %t(optionsRestart)","persistent-placeholder":"","hide-details":"",clearable:""},null,8,["modelValue","rules","label"])]),_:1},8,["cols"]),g(p,{cols:N(n)?"12":"3"},{default:b(()=>[g(f,{modelValue:a.value.icon,"onUpdate:modelValue":u[20]||(u[20]=T=>a.value.icon=T),density:"compact",variant:"outlined",label:s.$t(oe+"fhemCommandsIcon"),"append-inner-icon":a.value.icon,placeholder:"mdi-rocket","persistent-placeholder":"","hide-details":"",clearable:""},null,8,["modelValue","label","append-inner-icon"])]),_:1},8,["cols"]),g(p,{cols:N(n)?"9":"3"},{default:b(()=>[g(f,{modelValue:a.value.cmd,"onUpdate:modelValue":u[21]||(u[21]=T=>a.value.cmd=T),density:"compact",variant:"outlined",rules:[o.required],label:s.$t(oe+"fhemCommandsCmd"),placeholder:"shutdown restart","persistent-placeholder":"","hide-details":"",clearable:""},null,8,["modelValue","rules","label"])]),_:1},8,["cols"]),g(E,{variant:"text",icon:"mdi-cancel",onClick:u[22]||(u[22]=T=>i.value.reset())}),g(E,{variant:"text",icon:"mdi-plus",disabled:!a.value.name||!a.value.title||!a.value.cmd,onClick:u[23]||(u[23]=T=>r())},null,8,["disabled"])]),_:1})]),_:1},512)]),_:1})]),_:1})}}};var ga={exports:{}};const fi=ma(pi);/**!
+ * Sortable 1.14.0
+ * @author RubaXa
+ * @author owenm
+ * @license MIT
+ */function zn(d,e){var n=Object.keys(d);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(d);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(d,a).enumerable})),n.push.apply(n,i)}return n}function lt(d){for(var e=1;e=0)&&(n[a]=d[a]);return n}function gi(d,e){if(d==null)return{};var n=mi(d,e),i,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(d);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(d,i)&&(n[i]=d[i])}return n}function hi(d){return yi(d)||bi(d)||xi(d)||Si()}function yi(d){if(Array.isArray(d))return jn(d)}function bi(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function xi(d,e){if(d){if(typeof d=="string")return jn(d,e);var n=Object.prototype.toString.call(d).slice(8,-1);if(n==="Object"&&d.constructor&&(n=d.constructor.name),n==="Map"||n==="Set")return Array.from(d);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jn(d,e)}}function jn(d,e){(e==null||e>d.length)&&(e=d.length);for(var n=0,i=new Array(e);n"&&(e=e.substring(1)),d)try{if(d.matches)return d.matches(e);if(d.msMatchesSelector)return d.msMatchesSelector(e);if(d.webkitMatchesSelector)return d.webkitMatchesSelector(e)}catch{return!1}return!1}}function Oi(d){return d.host&&d!==document&&d.host.nodeType?d.host:d.parentNode}function nt(d,e,n,i){if(d){n=n||document;do{if(e!=null&&(e[0]===">"?d.parentNode===n&&cn(d,e):cn(d,e))||i&&d===n)return d;if(d===n)break}while(d=Oi(d))}return null}var Yn=/\s+/g;function Oe(d,e,n){if(d&&e)if(d.classList)d.classList[n?"add":"remove"](e);else{var i=(" "+d.className+" ").replace(Yn," ").replace(" "+e+" "," ");d.className=(i+(n?" "+e:"")).replace(Yn," ")}}function Y(d,e,n){var i=d&&d.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(d,""):d.currentStyle&&(n=d.currentStyle),e===void 0?n:n[e];!(e in i)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),i[e]=n+(typeof n=="string"?"":"px")}}function St(d,e){var n="";if(typeof d=="string")n=d;else do{var i=Y(d,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!e&&(d=d.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function ba(d,e,n){if(d){var i=d.getElementsByTagName(e),a=0,o=i.length;if(n)for(;a=o,!t)return i;if(i===it())break;i=vt(i,!1)}return!1}function Dt(d,e,n,i){for(var a=0,o=0,t=d.children;o2&&arguments[2]!==void 0?arguments[2]:{},a=i.evt,o=gi(i,$i);Jt.pluginEvent.bind(q)(e,n,lt({dragEl:H,parentEl:we,ghostEl:ae,rootEl:xe,nextEl:bt,lastDownEl:ln,cloneEl:De,cloneHidden:ft,dragStarted:Ut,putSortable:Ne,activeSortable:q.active,originalEvent:a,oldIndex:wt,oldDraggableIndex:kt,newIndex:Ye,newDraggableIndex:ct,hideGhostForTarget:Ca,unhideGhostForTarget:Ta,cloneNowHidden:function(){ft=!0},cloneNowShown:function(){ft=!1},dispatchSortableEvent:function(r){Be({sortable:n,name:r,originalEvent:a})}},o))};function Be(d){Lt(lt({putSortable:Ne,cloneEl:De,targetEl:H,rootEl:xe,oldIndex:wt,oldDraggableIndex:kt,newIndex:Ye,newDraggableIndex:ct},d))}var H,we,ae,xe,bt,ln,De,ft,wt,Ye,kt,ct,qt,Ne,Tt=!1,fn=!1,vn=[],gt,et,Tn,wn,Qn,qn,Ut,Ot,zt,Wt=!1,_t=!1,sn,Le,Dn=[],Nn=!1,mn=[],xn=typeof document<"u",en=ha,_n=Xt||ut?"cssFloat":"float",Ri=xn&&!Ii&&!ha&&"draggable"in document.createElement("div"),Ea=function(){if(xn){if(ut)return!1;var d=document.createElement("x");return d.style.cssText="pointer-events:auto",d.style.pointerEvents==="auto"}}(),Ia=function(e,n){var i=Y(e),a=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=Dt(e,0,n),t=Dt(e,1,n),r=o&&Y(o),l=t&&Y(t),s=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+Se(o).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Se(t).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&r.float&&r.float!=="none"){var c=r.float==="left"?"left":"right";return t&&(l.clear==="both"||l.clear===c)?"vertical":"horizontal"}return o&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||s>=a&&i[_n]==="none"||t&&i[_n]==="none"&&s+u>a)?"vertical":"horizontal"},Vi=function(e,n,i){var a=i?e.left:e.top,o=i?e.right:e.bottom,t=i?e.width:e.height,r=i?n.left:n.top,l=i?n.right:n.bottom,s=i?n.width:n.height;return a===r||o===l||a+t/2===r+s/2},Fi=function(e,n){var i;return vn.some(function(a){var o=a[Ue].options.emptyInsertThreshold;if(!(!o||Kn(a))){var t=Se(a),r=e>=t.left-o&&e<=t.right+o,l=n>=t.top-o&&n<=t.bottom+o;if(r&&l)return i=a}}),i},Oa=function(e){function n(o,t){return function(r,l,s,u){var c=r.options.group.name&&l.options.group.name&&r.options.group.name===l.options.group.name;if(o==null&&(t||c))return!0;if(o==null||o===!1)return!1;if(t&&o==="clone")return o;if(typeof o=="function")return n(o(r,l,s,u),t)(r,l,s,u);var v=(t?r:l).options.group.name;return o===!0||typeof o=="string"&&o===v||o.join&&o.indexOf(v)>-1}}var i={},a=e.group;(!a||on(a)!="object")&&(a={name:a}),i.name=a.name,i.checkPull=n(a.pull,!0),i.checkPut=n(a.put),i.revertClone=a.revertClone,e.group=i},Ca=function(){!Ea&&ae&&Y(ae,"display","none")},Ta=function(){!Ea&&ae&&Y(ae,"display","")};xn&&document.addEventListener("click",function(d){if(fn)return d.preventDefault(),d.stopPropagation&&d.stopPropagation(),d.stopImmediatePropagation&&d.stopImmediatePropagation(),fn=!1,!1},!0);var ht=function(e){if(H){e=e.touches?e.touches[0]:e;var n=Fi(e.clientX,e.clientY);if(n){var i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=e[a]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[Ue]._onDragOver(i)}}},ji=function(e){H&&H.parentNode[Ue]._isOutsideThisEl(e.target)};function q(d,e){if(!(d&&d.nodeType&&d.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(d));this.el=d,this.options=e=Qe({},e),d[Ue]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(d.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ia(d,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,r){t.setData("Text",r.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:q.supportPointer!==!1&&"PointerEvent"in window&&!Bt,emptyInsertThreshold:5};Jt.initializePlugins(this,d,n);for(var i in n)!(i in e)&&(e[i]=n[i]);Oa(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:Ri,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?se(d,"pointerdown",this._onTapStart):(se(d,"mousedown",this._onTapStart),se(d,"touchstart",this._onTapStart)),this.nativeDraggable&&(se(d,"dragover",this),se(d,"dragenter",this)),vn.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Qe(this,Di())}q.prototype={constructor:q,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Ot=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,H):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,i=this.el,a=this.options,o=a.preventOnFilter,t=e.type,r=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(r||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=a.filter;if(Hi(i),!H&&!(/mousedown|pointerdown/.test(t)&&e.button!==0||a.disabled)&&!s.isContentEditable&&!(!this.nativeDraggable&&Bt&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=nt(l,a.draggable,i,!1),!(l&&l.animated)&&ln!==l)){if(wt=Ae(l),kt=Ae(l,a.draggable),typeof u=="function"){if(u.call(this,e,l,this)){Be({sortable:n,rootEl:s,name:"filter",targetEl:l,toEl:i,fromEl:i}),ke("filter",n,{evt:e}),o&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=nt(s,c.trim(),i,!1),c)return Be({sortable:n,rootEl:c,name:"filter",targetEl:l,fromEl:i,toEl:i}),ke("filter",n,{evt:e}),!0}),u)){o&&e.cancelable&&e.preventDefault();return}a.handle&&!nt(s,a.handle,i,!1)||this._prepareDragStart(e,r,l)}}},_prepareDragStart:function(e,n,i){var a=this,o=a.el,t=a.options,r=o.ownerDocument,l;if(i&&!H&&i.parentNode===o){var s=Se(i);if(xe=o,H=i,we=H.parentNode,bt=H.nextSibling,ln=i,qt=t.group,q.dragged=H,gt={target:H,clientX:(n||e).clientX,clientY:(n||e).clientY},Qn=gt.clientX-s.left,qn=gt.clientY-s.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,H.style["will-change"]="all",l=function(){if(ke("delayEnded",a,{evt:e}),q.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Wn&&a.nativeDraggable&&(H.draggable=!0),a._triggerDragStart(e,n),Be({sortable:a,name:"choose",originalEvent:e}),Oe(H,t.chosenClass,!0)},t.ignore.split(",").forEach(function(u){ba(H,u.trim(),An)}),se(r,"dragover",ht),se(r,"mousemove",ht),se(r,"touchmove",ht),se(r,"mouseup",a._onDrop),se(r,"touchend",a._onDrop),se(r,"touchcancel",a._onDrop),Wn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,H.draggable=!0),ke("delayStart",this,{evt:e}),t.delay&&(!t.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Xt||ut))){if(q.eventCanceled){this._onDrop();return}se(r,"mouseup",a._disableDelayedDrag),se(r,"touchend",a._disableDelayedDrag),se(r,"touchcancel",a._disableDelayedDrag),se(r,"mousemove",a._delayedDragTouchMoveHandler),se(r,"touchmove",a._delayedDragTouchMoveHandler),t.supportPointer&&se(r,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(l,t.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){H&&An(H),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ie(e,"mouseup",this._disableDelayedDrag),ie(e,"touchend",this._disableDelayedDrag),ie(e,"touchcancel",this._disableDelayedDrag),ie(e,"mousemove",this._delayedDragTouchMoveHandler),ie(e,"touchmove",this._delayedDragTouchMoveHandler),ie(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?se(document,"pointermove",this._onTouchMove):n?se(document,"touchmove",this._onTouchMove):se(document,"mousemove",this._onTouchMove):(se(H,"dragend",this),se(xe,"dragstart",this._onDragStart));try{document.selection?un(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Tt=!1,xe&&H){ke("dragStarted",this,{evt:n}),this.nativeDraggable&&se(document,"dragover",ji);var i=this.options;!e&&Oe(H,i.dragClass,!1),Oe(H,i.ghostClass,!0),q.active=this,e&&this._appendGhost(),Be({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(et){this._lastX=et.clientX,this._lastY=et.clientY,Ca();for(var e=document.elementFromPoint(et.clientX,et.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(et.clientX,et.clientY),e!==n);)n=e;if(H.parentNode[Ue]._isOutsideThisEl(e),n)do{if(n[Ue]){var i=void 0;if(i=n[Ue]._onDragOver({clientX:et.clientX,clientY:et.clientY,target:e,rootEl:n}),i&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);Ta()}},_onTouchMove:function(e){if(gt){var n=this.options,i=n.fallbackTolerance,a=n.fallbackOffset,o=e.touches?e.touches[0]:e,t=ae&&St(ae,!0),r=ae&&t&&t.a,l=ae&&t&&t.d,s=en&&Le&&Jn(Le),u=(o.clientX-gt.clientX+a.x)/(r||1)+(s?s[0]-Dn[0]:0)/(r||1),c=(o.clientY-gt.clientY+a.y)/(l||1)+(s?s[1]-Dn[1]:0)/(l||1);if(!q.active&&!Tt){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))=0&&(Be({rootEl:we,name:"add",toEl:we,fromEl:xe,originalEvent:e}),Be({sortable:this,name:"remove",toEl:we,originalEvent:e}),Be({rootEl:we,name:"sort",toEl:we,fromEl:xe,originalEvent:e}),Be({sortable:this,name:"sort",toEl:we,originalEvent:e})),Ne&&Ne.save()):Ye!==wt&&Ye>=0&&(Be({sortable:this,name:"update",toEl:we,originalEvent:e}),Be({sortable:this,name:"sort",toEl:we,originalEvent:e})),q.active&&((Ye==null||Ye===-1)&&(Ye=wt,ct=kt),Be({sortable:this,name:"end",toEl:we,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ke("nulling",this),xe=H=we=ae=bt=De=ln=ft=gt=et=Ut=Ye=ct=wt=kt=Ot=zt=Ne=qt=q.dragged=q.ghost=q.clone=q.active=null,mn.forEach(function(e){e.checked=!0}),mn.length=Tn=wn=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":H&&(this._onDragOver(e),Ni(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,i=this.el.children,a=0,o=i.length,t=this.options;ai.right+a||d.clientX<=i.right&&d.clientY>i.bottom&&d.clientX>=i.left:d.clientX>i.right&&d.clientY>i.top||d.clientX<=i.right&&d.clientY>i.bottom+a}function Ki(d,e,n,i,a,o,t,r){var l=i?d.clientY:d.clientX,s=i?n.height:n.width,u=i?n.top:n.left,c=i?n.bottom:n.right,v=!1;if(!t){if(r&&snu+s*o/2:lc-sn)return-zt}else if(l>u+s*(1-a)/2&&lc-s*o/2)?l>u+s/2?1:-1:0}function Gi(d){return Ae(H)1&&(ne.forEach(function(r){o.addAnimationState({target:r,rect:ze?Se(r):t}),On(r),r.fromRect=t,i.removeAnimationState(r)}),ze=!1,Xi(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(n){var i=n.sortable,a=n.isOwner,o=n.insertion,t=n.activeSortable,r=n.parentEl,l=n.putSortable,s=this.options;if(o){if(a&&t._hideClone(),Nt=!1,s.animation&&ne.length>1&&(ze||!a&&!t.options.sort&&!l)){var u=Se(be,!1,!0,!0);ne.forEach(function(v){v!==be&&(Zn(v,u),r.appendChild(v))}),ze=!0}if(!a)if(ze||an(),ne.length>1){var c=nn;t._showClone(i),t.options.animation&&!nn&&c&&We.forEach(function(v){t.addAnimationState({target:v,rect:Mt}),v.fromRect=Mt,v.thisAnimationDuration=null})}else t._showClone(i)}},dragOverAnimationCapture:function(n){var i=n.dragRect,a=n.isOwner,o=n.activeSortable;if(ne.forEach(function(r){r.thisAnimationDuration=null}),o.options.animation&&!a&&o.multiDrag.isMultiDrag){Mt=Qe({},i);var t=St(be,!0);Mt.top-=t.f,Mt.left-=t.e}},dragOverAnimationComplete:function(){ze&&(ze=!1,an())},drop:function(n){var i=n.originalEvent,a=n.rootEl,o=n.parentEl,t=n.sortable,r=n.dispatchSortableEvent,l=n.oldIndex,s=n.putSortable,u=s||this.sortable;if(i){var c=this.options,v=o.children;if(!Ct)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Oe(be,c.selectedClass,!~ne.indexOf(be)),~ne.indexOf(be))ne.splice(ne.indexOf(be),1),jt=null,Lt({sortable:t,rootEl:a,name:"deselect",targetEl:be,originalEvt:i});else{if(ne.push(be),Lt({sortable:t,rootEl:a,name:"select",targetEl:be,originalEvt:i}),i.shiftKey&&jt&&t.el.contains(jt)){var f=Ae(jt),p=Ae(be);if(~f&&~p&&f!==p){var h,y;for(p>f?(y=f,h=p):(y=p,h=f+1);y1){var S=Se(be),m=Ae(be,":not(."+this.options.selectedClass+")");if(!Nt&&c.animation&&(be.thisAnimationDuration=null),u.captureAnimationState(),!Nt&&(c.animation&&(be.fromRect=S,ne.forEach(function(E){if(E.thisAnimationDuration=null,E!==be){var C=ze?Se(E):S;E.fromRect=C,u.addAnimationState({target:E,rect:C})}})),an(),ne.forEach(function(E){v[m]?o.insertBefore(E,v[m]):o.appendChild(E),m++}),l===Ae(be))){var x=!1;ne.forEach(function(E){if(E.sortableIndex!==Ae(E)){x=!0;return}}),x&&r("update")}ne.forEach(function(E){On(E)}),u.animateAll()}tt=u}(a===o||s&&s.lastPutMode!=="clone")&&We.forEach(function(E){E.parentNode&&E.parentNode.removeChild(E)})}},nullingGlobal:function(){this.isMultiDrag=Ct=!1,We.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ie(document,"pointerup",this._deselectMultiDrag),ie(document,"mouseup",this._deselectMultiDrag),ie(document,"touchend",this._deselectMultiDrag),ie(document,"keydown",this._checkKeyDown),ie(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Ct<"u"&&Ct)&&tt===this.sortable&&!(n&&nt(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;ne.length;){var i=ne[0];Oe(i,this.options.selectedClass,!1),ne.shift(),Lt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:i,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Qe(d,{pluginName:"multiDrag",utils:{select:function(n){var i=n.parentNode[Ue];!i||!i.options.multiDrag||~ne.indexOf(n)||(tt&&tt!==i&&(tt.multiDrag._deselectMultiDrag(),tt=i),Oe(n,i.options.selectedClass,!0),ne.push(n))},deselect:function(n){var i=n.parentNode[Ue],a=ne.indexOf(n);!i||!i.options.multiDrag||!~a||(Oe(n,i.options.selectedClass,!1),ne.splice(a,1))}},eventProperties:function(){var n=this,i=[],a=[];return ne.forEach(function(o){i.push({multiDragElement:o,index:o.sortableIndex});var t;ze&&o!==be?t=-1:ze?t=Ae(o,":not(."+n.options.selectedClass+")"):t=Ae(o),a.push({multiDragElement:o,index:t})}),{items:hi(ne),clones:[].concat(We),oldIndicies:i,newIndicies:a}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Xi(d,e){ne.forEach(function(n,i){var a=e.children[n.sortableIndex+(d?Number(i):0)];a?e.insertBefore(n,a):e.appendChild(n)})}function ta(d,e){We.forEach(function(n,i){var a=e.children[n.sortableIndex+(d?Number(i):0)];a?e.insertBefore(n,a):e.appendChild(n)})}function an(){ne.forEach(function(d){d!==be&&d.parentNode&&d.parentNode.removeChild(d)})}q.mount(new ki);q.mount(Hn,Bn);const Ji=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Yi,Sortable:q,Swap:zi,default:q},Symbol.toStringTag,{value:"Module"})),Zi=ma(Ji);(function(d,e){(function(i,a){d.exports=a(fi,Zi)})(typeof self<"u"?self:Fn,function(n,i){return function(a){var o={};function t(r){if(o[r])return o[r].exports;var l=o[r]={i:r,l:!1,exports:{}};return a[r].call(l.exports,l,l.exports,t),l.l=!0,l.exports}return t.m=a,t.c=o,t.d=function(r,l,s){t.o(r,l)||Object.defineProperty(r,l,{enumerable:!0,get:s})},t.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,l){if(l&1&&(r=t(r)),l&8||l&4&&typeof r=="object"&&r&&r.__esModule)return r;var s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:r}),l&2&&typeof r!="string")for(var u in r)t.d(s,u,(function(c){return r[c]}).bind(null,u));return s},t.n=function(r){var l=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(l,"a",l),l},t.o=function(r,l){return Object.prototype.hasOwnProperty.call(r,l)},t.p="",t(t.s="fb15")}({"00ee":function(a,o,t){var r=t("b622"),l=r("toStringTag"),s={};s[l]="z",a.exports=String(s)==="[object z]"},"0366":function(a,o,t){var r=t("1c0b");a.exports=function(l,s,u){if(r(l),s===void 0)return l;switch(u){case 0:return function(){return l.call(s)};case 1:return function(c){return l.call(s,c)};case 2:return function(c,v){return l.call(s,c,v)};case 3:return function(c,v,f){return l.call(s,c,v,f)}}return function(){return l.apply(s,arguments)}}},"057f":function(a,o,t){var r=t("fc6a"),l=t("241c").f,s={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(v){try{return l(v)}catch{return u.slice()}};a.exports.f=function(f){return u&&s.call(f)=="[object Window]"?c(f):l(r(f))}},"06cf":function(a,o,t){var r=t("83ab"),l=t("d1e7"),s=t("5c6c"),u=t("fc6a"),c=t("c04e"),v=t("5135"),f=t("0cfb"),p=Object.getOwnPropertyDescriptor;o.f=r?p:function(y,S){if(y=u(y),S=c(S,!0),f)try{return p(y,S)}catch{}if(v(y,S))return s(!l.f.call(y,S),y[S])}},"0cfb":function(a,o,t){var r=t("83ab"),l=t("d039"),s=t("cc12");a.exports=!r&&!l(function(){return Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(a,o,t){var r=t("23e7"),l=t("d58f").left,s=t("a640"),u=t("ae40"),c=s("reduce"),v=u("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!v},{reduce:function(p){return l(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(a,o,t){var r=t("c6b6"),l=t("9263");a.exports=function(s,u){var c=s.exec;if(typeof c=="function"){var v=c.call(s,u);if(typeof v!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return v}if(r(s)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(s,u)}},"159b":function(a,o,t){var r=t("da84"),l=t("fdbc"),s=t("17c2"),u=t("9112");for(var c in l){var v=r[c],f=v&&v.prototype;if(f&&f.forEach!==s)try{u(f,"forEach",s)}catch{f.forEach=s}}},"17c2":function(a,o,t){var r=t("b727").forEach,l=t("a640"),s=t("ae40"),u=l("forEach"),c=s("forEach");a.exports=!u||!c?function(f){return r(this,f,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(a,o,t){var r=t("d066");a.exports=r("document","documentElement")},"1c0b":function(a,o){a.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(a,o,t){var r=t("b622"),l=r("iterator"),s=!1;try{var u=0,c={next:function(){return{done:!!u++}},return:function(){s=!0}};c[l]=function(){return this},Array.from(c,function(){throw 2})}catch{}a.exports=function(v,f){if(!f&&!s)return!1;var p=!1;try{var h={};h[l]=function(){return{next:function(){return{done:p=!0}}}},v(h)}catch{}return p}},"1d80":function(a,o){a.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(a,o,t){var r=t("d039"),l=t("b622"),s=t("2d00"),u=l("species");a.exports=function(c){return s>=51||!r(function(){var v=[],f=v.constructor={};return f[u]=function(){return{foo:1}},v[c](Boolean).foo!==1})}},"23cb":function(a,o,t){var r=t("a691"),l=Math.max,s=Math.min;a.exports=function(u,c){var v=r(u);return v<0?l(v+c,0):s(v,c)}},"23e7":function(a,o,t){var r=t("da84"),l=t("06cf").f,s=t("9112"),u=t("6eeb"),c=t("ce4e"),v=t("e893"),f=t("94ca");a.exports=function(p,h){var y=p.target,S=p.global,m=p.stat,x,E,C,I,T,R;if(S?E=r:m?E=r[y]||c(y,{}):E=(r[y]||{}).prototype,E)for(C in h){if(T=h[C],p.noTargetGet?(R=l(E,C),I=R&&R.value):I=E[C],x=f(S?C:y+(m?".":"#")+C,p.forced),!x&&I!==void 0){if(typeof T==typeof I)continue;v(T,I)}(p.sham||I&&I.sham)&&s(T,"sham",!0),u(E,C,T,p)}}},"241c":function(a,o,t){var r=t("ca84"),l=t("7839"),s=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(c){return r(c,s)}},"25f0":function(a,o,t){var r=t("6eeb"),l=t("825a"),s=t("d039"),u=t("ad6d"),c="toString",v=RegExp.prototype,f=v[c],p=s(function(){return f.call({source:"a",flags:"b"})!="/a/b"}),h=f.name!=c;(p||h)&&r(RegExp.prototype,c,function(){var S=l(this),m=String(S.source),x=S.flags,E=String(x===void 0&&S instanceof RegExp&&!("flags"in v)?u.call(S):x);return"/"+m+"/"+E},{unsafe:!0})},"2ca0":function(a,o,t){var r=t("23e7"),l=t("06cf").f,s=t("50c4"),u=t("5a34"),c=t("1d80"),v=t("ab13"),f=t("c430"),p="".startsWith,h=Math.min,y=v("startsWith"),S=!f&&!y&&!!function(){var m=l(String.prototype,"startsWith");return m&&!m.writable}();r({target:"String",proto:!0,forced:!S&&!y},{startsWith:function(x){var E=String(c(this));u(x);var C=s(h(arguments.length>1?arguments[1]:void 0,E.length)),I=String(x);return p?p.call(E,I,C):E.slice(C,C+I.length)===I}})},"2d00":function(a,o,t){var r=t("da84"),l=t("342f"),s=r.process,u=s&&s.versions,c=u&&u.v8,v,f;c?(v=c.split("."),f=v[0]+v[1]):l&&(v=l.match(/Edge\/(\d+)/),(!v||v[1]>=74)&&(v=l.match(/Chrome\/(\d+)/),v&&(f=v[1]))),a.exports=f&&+f},"342f":function(a,o,t){var r=t("d066");a.exports=r("navigator","userAgent")||""},"35a1":function(a,o,t){var r=t("f5df"),l=t("3f8c"),s=t("b622"),u=s("iterator");a.exports=function(c){if(c!=null)return c[u]||c["@@iterator"]||l[r(c)]}},"37e8":function(a,o,t){var r=t("83ab"),l=t("9bf2"),s=t("825a"),u=t("df75");a.exports=r?Object.defineProperties:function(v,f){s(v);for(var p=u(f),h=p.length,y=0,S;h>y;)l.f(v,S=p[y++],f[S]);return v}},"3bbe":function(a,o,t){var r=t("861d");a.exports=function(l){if(!r(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(a,o,t){var r=t("6547").charAt,l=t("69f3"),s=t("7dd0"),u="String Iterator",c=l.set,v=l.getterFor(u);s(String,"String",function(f){c(this,{type:u,string:String(f),index:0})},function(){var p=v(this),h=p.string,y=p.index,S;return y>=h.length?{value:void 0,done:!0}:(S=r(h,y),p.index+=S.length,{value:S,done:!1})})},"3f8c":function(a,o){a.exports={}},4160:function(a,o,t){var r=t("23e7"),l=t("17c2");r({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(a,o,t){var r=t("da84");a.exports=r},"44ad":function(a,o,t){var r=t("d039"),l=t("c6b6"),s="".split;a.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return l(u)=="String"?s.call(u,""):Object(u)}:Object},"44d2":function(a,o,t){var r=t("b622"),l=t("7c73"),s=t("9bf2"),u=r("unscopables"),c=Array.prototype;c[u]==null&&s.f(c,u,{configurable:!0,value:l(null)}),a.exports=function(v){c[u][v]=!0}},"44e7":function(a,o,t){var r=t("861d"),l=t("c6b6"),s=t("b622"),u=s("match");a.exports=function(c){var v;return r(c)&&((v=c[u])!==void 0?!!v:l(c)=="RegExp")}},4930:function(a,o,t){var r=t("d039");a.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(a,o,t){var r=t("fc6a"),l=t("50c4"),s=t("23cb"),u=function(c){return function(v,f,p){var h=r(v),y=l(h.length),S=s(p,y),m;if(c&&f!=f){for(;y>S;)if(m=h[S++],m!=m)return!0}else for(;y>S;S++)if((c||S in h)&&h[S]===f)return c||S||0;return!c&&-1}};a.exports={includes:u(!0),indexOf:u(!1)}},"4de4":function(a,o,t){var r=t("23e7"),l=t("b727").filter,s=t("1dde"),u=t("ae40"),c=s("filter"),v=u("filter");r({target:"Array",proto:!0,forced:!c||!v},{filter:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(a,o,t){var r=t("0366"),l=t("7b0b"),s=t("9bdd"),u=t("e95a"),c=t("50c4"),v=t("8418"),f=t("35a1");a.exports=function(h){var y=l(h),S=typeof this=="function"?this:Array,m=arguments.length,x=m>1?arguments[1]:void 0,E=x!==void 0,C=f(y),I=0,T,R,w,M,L,V;if(E&&(x=r(x,m>2?arguments[2]:void 0,2)),C!=null&&!(S==Array&&u(C)))for(M=C.call(y),L=M.next,R=new S;!(w=L.call(M)).done;I++)V=E?s(M,x,[w.value,I],!0):w.value,v(R,I,V);else for(T=c(y.length),R=new S(T);T>I;I++)V=E?x(y[I],I):y[I],v(R,I,V);return R.length=I,R}},"4fad":function(a,o,t){var r=t("23e7"),l=t("6f53").entries;r({target:"Object",stat:!0},{entries:function(u){return l(u)}})},"50c4":function(a,o,t){var r=t("a691"),l=Math.min;a.exports=function(s){return s>0?l(r(s),9007199254740991):0}},5135:function(a,o){var t={}.hasOwnProperty;a.exports=function(r,l){return t.call(r,l)}},5319:function(a,o,t){var r=t("d784"),l=t("825a"),s=t("7b0b"),u=t("50c4"),c=t("a691"),v=t("1d80"),f=t("8aa5"),p=t("14c3"),h=Math.max,y=Math.min,S=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,x=/\$([$&'`]|\d\d?)/g,E=function(C){return C===void 0?C:String(C)};r("replace",2,function(C,I,T,R){var w=R.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,M=R.REPLACE_KEEPS_$0,L=w?"$":"$0";return[function(j,k){var K=v(this),D=j==null?void 0:j[C];return D!==void 0?D.call(j,K,k):I.call(String(K),j,k)},function(O,j){if(!w&&M||typeof j=="string"&&j.indexOf(L)===-1){var k=T(I,O,this,j);if(k.done)return k.value}var K=l(O),D=String(this),G=typeof j=="function";G||(j=String(j));var ee=K.global;if(ee){var he=K.unicode;K.lastIndex=0}for(var me=[];;){var le=p(K,D);if(le===null||(me.push(le),!ee))break;var Ie=String(le[0]);Ie===""&&(K.lastIndex=f(D,u(K.lastIndex),he))}for(var ge="",ye=0,ce=0;ce=ye&&(ge+=D.slice(ye,Fe)+Pe,ye=Fe+ve.length)}return ge+D.slice(ye)}];function V(O,j,k,K,D,G){var ee=k+O.length,he=K.length,me=x;return D!==void 0&&(D=s(D),me=m),I.call(G,me,function(le,Ie){var ge;switch(Ie.charAt(0)){case"$":return"$";case"&":return O;case"`":return j.slice(0,k);case"'":return j.slice(ee);case"<":ge=D[Ie.slice(1,-1)];break;default:var ye=+Ie;if(ye===0)return le;if(ye>he){var ce=S(ye/10);return ce===0?le:ce<=he?K[ce-1]===void 0?Ie.charAt(1):K[ce-1]+Ie.charAt(1):le}ge=K[ye-1]}return ge===void 0?"":ge})}})},5692:function(a,o,t){var r=t("c430"),l=t("c6cd");(a.exports=function(s,u){return l[s]||(l[s]=u!==void 0?u:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(a,o,t){var r=t("d066"),l=t("241c"),s=t("7418"),u=t("825a");a.exports=r("Reflect","ownKeys")||function(v){var f=l.f(u(v)),p=s.f;return p?f.concat(p(v)):f}},"5a34":function(a,o,t){var r=t("44e7");a.exports=function(l){if(r(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(a,o){a.exports=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}}},"5db7":function(a,o,t){var r=t("23e7"),l=t("a2bf"),s=t("7b0b"),u=t("50c4"),c=t("1c0b"),v=t("65f0");r({target:"Array",proto:!0},{flatMap:function(p){var h=s(this),y=u(h.length),S;return c(p),S=v(h,0),S.length=l(S,h,h,y,0,1,p,arguments.length>1?arguments[1]:void 0),S}})},6547:function(a,o,t){var r=t("a691"),l=t("1d80"),s=function(u){return function(c,v){var f=String(l(c)),p=r(v),h=f.length,y,S;return p<0||p>=h?u?"":void 0:(y=f.charCodeAt(p),y<55296||y>56319||p+1===h||(S=f.charCodeAt(p+1))<56320||S>57343?u?f.charAt(p):y:u?f.slice(p,p+2):(y-55296<<10)+(S-56320)+65536)}};a.exports={codeAt:s(!1),charAt:s(!0)}},"65f0":function(a,o,t){var r=t("861d"),l=t("e8b5"),s=t("b622"),u=s("species");a.exports=function(c,v){var f;return l(c)&&(f=c.constructor,typeof f=="function"&&(f===Array||l(f.prototype))?f=void 0:r(f)&&(f=f[u],f===null&&(f=void 0))),new(f===void 0?Array:f)(v===0?0:v)}},"69f3":function(a,o,t){var r=t("7f9a"),l=t("da84"),s=t("861d"),u=t("9112"),c=t("5135"),v=t("f772"),f=t("d012"),p=l.WeakMap,h,y,S,m=function(w){return S(w)?y(w):h(w,{})},x=function(w){return function(M){var L;if(!s(M)||(L=y(M)).type!==w)throw TypeError("Incompatible receiver, "+w+" required");return L}};if(r){var E=new p,C=E.get,I=E.has,T=E.set;h=function(w,M){return T.call(E,w,M),M},y=function(w){return C.call(E,w)||{}},S=function(w){return I.call(E,w)}}else{var R=v("state");f[R]=!0,h=function(w,M){return u(w,R,M),M},y=function(w){return c(w,R)?w[R]:{}},S=function(w){return c(w,R)}}a.exports={set:h,get:y,has:S,enforce:m,getterFor:x}},"6eeb":function(a,o,t){var r=t("da84"),l=t("9112"),s=t("5135"),u=t("ce4e"),c=t("8925"),v=t("69f3"),f=v.get,p=v.enforce,h=String(String).split("String");(a.exports=function(y,S,m,x){var E=x?!!x.unsafe:!1,C=x?!!x.enumerable:!1,I=x?!!x.noTargetGet:!1;if(typeof m=="function"&&(typeof S=="string"&&!s(m,"name")&&l(m,"name",S),p(m).source=h.join(typeof S=="string"?S:"")),y===r){C?y[S]=m:u(S,m);return}else E?!I&&y[S]&&(C=!0):delete y[S];C?y[S]=m:l(y,S,m)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||c(this)})},"6f53":function(a,o,t){var r=t("83ab"),l=t("df75"),s=t("fc6a"),u=t("d1e7").f,c=function(v){return function(f){for(var p=s(f),h=l(p),y=h.length,S=0,m=[],x;y>S;)x=h[S++],(!r||u.call(p,x))&&m.push(v?[x,p[x]]:p[x]);return m}};a.exports={entries:c(!0),values:c(!1)}},"73d9":function(a,o,t){var r=t("44d2");r("flatMap")},7418:function(a,o){o.f=Object.getOwnPropertySymbols},"746f":function(a,o,t){var r=t("428f"),l=t("5135"),s=t("e538"),u=t("9bf2").f;a.exports=function(c){var v=r.Symbol||(r.Symbol={});l(v,c)||u(v,c,{value:s.f(c)})}},7839:function(a,o){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(a,o,t){var r=t("1d80");a.exports=function(l){return Object(r(l))}},"7c73":function(a,o,t){var r=t("825a"),l=t("37e8"),s=t("7839"),u=t("d012"),c=t("1be4"),v=t("cc12"),f=t("f772"),p=">",h="<",y="prototype",S="script",m=f("IE_PROTO"),x=function(){},E=function(w){return h+S+p+w+h+"/"+S+p},C=function(w){w.write(E("")),w.close();var M=w.parentWindow.Object;return w=null,M},I=function(){var w=v("iframe"),M="java"+S+":",L;return w.style.display="none",c.appendChild(w),w.src=String(M),L=w.contentWindow.document,L.open(),L.write(E("document.F=Object")),L.close(),L.F},T,R=function(){try{T=document.domain&&new ActiveXObject("htmlfile")}catch{}R=T?C(T):I();for(var w=s.length;w--;)delete R[y][s[w]];return R()};u[m]=!0,a.exports=Object.create||function(M,L){var V;return M!==null?(x[y]=r(M),V=new x,x[y]=null,V[m]=M):V=R(),L===void 0?V:l(V,L)}},"7dd0":function(a,o,t){var r=t("23e7"),l=t("9ed3"),s=t("e163"),u=t("d2bb"),c=t("d44e"),v=t("9112"),f=t("6eeb"),p=t("b622"),h=t("c430"),y=t("3f8c"),S=t("ae93"),m=S.IteratorPrototype,x=S.BUGGY_SAFARI_ITERATORS,E=p("iterator"),C="keys",I="values",T="entries",R=function(){return this};a.exports=function(w,M,L,V,O,j,k){l(L,M,V);var K=function(ce){if(ce===O&&me)return me;if(!x&&ce in ee)return ee[ce];switch(ce){case C:return function(){return new L(this,ce)};case I:return function(){return new L(this,ce)};case T:return function(){return new L(this,ce)}}return function(){return new L(this)}},D=M+" Iterator",G=!1,ee=w.prototype,he=ee[E]||ee["@@iterator"]||O&&ee[O],me=!x&&he||K(O),le=M=="Array"&&ee.entries||he,Ie,ge,ye;if(le&&(Ie=s(le.call(new w)),m!==Object.prototype&&Ie.next&&(!h&&s(Ie)!==m&&(u?u(Ie,m):typeof Ie[E]!="function"&&v(Ie,E,R)),c(Ie,D,!0,!0),h&&(y[D]=R))),O==I&&he&&he.name!==I&&(G=!0,me=function(){return he.call(this)}),(!h||k)&&ee[E]!==me&&v(ee,E,me),y[M]=me,O)if(ge={values:K(I),keys:j?me:K(C),entries:K(T)},k)for(ye in ge)(x||G||!(ye in ee))&&f(ee,ye,ge[ye]);else r({target:M,proto:!0,forced:x||G},ge);return ge}},"7f9a":function(a,o,t){var r=t("da84"),l=t("8925"),s=r.WeakMap;a.exports=typeof s=="function"&&/native code/.test(l(s))},"825a":function(a,o,t){var r=t("861d");a.exports=function(l){if(!r(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(a,o,t){var r=t("d039");a.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(a,o,t){var r=t("c04e"),l=t("9bf2"),s=t("5c6c");a.exports=function(u,c,v){var f=r(c);f in u?l.f(u,f,s(0,v)):u[f]=v}},"861d":function(a,o){a.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(a,o,t){var r,l,s;(function(u,c){l=[],r=c,s=typeof r=="function"?r.apply(o,l):r,s!==void 0&&(a.exports=s)})(typeof self<"u"?self:this,function(){function u(){var c=Object.getOwnPropertyDescriptor(document,"currentScript");if(!c&&"currentScript"in document&&document.currentScript||c&&c.get!==u&&document.currentScript)return document.currentScript;try{throw new Error}catch(T){var v=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,f=/@([^@]*):(\d+):(\d+)\s*$/ig,p=v.exec(T.stack)||f.exec(T.stack),h=p&&p[1]||!1,y=p&&p[2]||!1,S=document.location.href.replace(document.location.hash,""),m,x,E,C=document.getElementsByTagName("script");h===S&&(m=document.documentElement.outerHTML,x=new RegExp("(?:[^\\n]+?\\n){0,"+(y-2)+"}[^<]*
+